Skip to content

Commit

Permalink
CodeGen from PR 24226 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 655758d91fdaa646b8d7e87cba6d2486f134aab8 into e79a5aa63c0551c1b5af1d2853cceb495283d334
  • Loading branch information
SDKAuto committed May 31, 2023
1 parent 645bca4 commit 9339403
Show file tree
Hide file tree
Showing 360 changed files with 10,883 additions and 1,719 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.23 (Unreleased)
## 1.0.0-beta.1 (2023-05-31)

- Azure Resource Manager DataFactory client library for Java. This package contains Microsoft Azure SDK for DataFactory Management SDK. The Azure Data Factory V2 management API provides a RESTful set of web services that interact with Azure Data Factory V2 services. Package tag package-2018-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-datafactory</artifactId>
<version>1.0.0-beta.22</version>
<version>1.0.0-beta.23</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
1,372 changes: 1,372 additions & 0 deletions sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient;
import com.azure.resourcemanager.datafactory.implementation.ActivityRunsImpl;
import com.azure.resourcemanager.datafactory.implementation.ChangeDataCapturesImpl;
import com.azure.resourcemanager.datafactory.implementation.CredentialOperationsImpl;
import com.azure.resourcemanager.datafactory.implementation.DataFactoryManagementClientBuilder;
import com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsImpl;
Expand All @@ -48,6 +49,7 @@
import com.azure.resourcemanager.datafactory.implementation.TriggerRunsImpl;
import com.azure.resourcemanager.datafactory.implementation.TriggersImpl;
import com.azure.resourcemanager.datafactory.models.ActivityRuns;
import com.azure.resourcemanager.datafactory.models.ChangeDataCaptures;
import com.azure.resourcemanager.datafactory.models.CredentialOperations;
import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessions;
import com.azure.resourcemanager.datafactory.models.DataFlows;
Expand Down Expand Up @@ -125,6 +127,8 @@ public final class DataFactoryManager {

private GlobalParameters globalParameters;

private ChangeDataCaptures changeDataCaptures;

private final DataFactoryManagementClient clientObject;

private DataFactoryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -290,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.22");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -619,6 +623,18 @@ public GlobalParameters globalParameters() {
return globalParameters;
}

/**
* Gets the resource collection API of ChangeDataCaptures. It manages ChangeDataCaptureResource.
*
* @return Resource collection API of ChangeDataCaptures.
*/
public ChangeDataCaptures changeDataCaptures() {
if (this.changeDataCaptures == null) {
this.changeDataCaptures = new ChangeDataCapturesImpl(clientObject.getChangeDataCaptures(), this);
}
return changeDataCaptures;
}

/**
* @return Wrapped service client DataFactoryManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.datafactory.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner;

/** An instance of this class provides access to all the operations defined in ChangeDataCapturesClient. */
public interface ChangeDataCapturesClient {
/**
* Lists all resources of type change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of change data capture resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ChangeDataCaptureResourceInner> listByFactory(String resourceGroupName, String factoryName);

/**
* Lists all resources of type change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of change data capture resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ChangeDataCaptureResourceInner> listByFactory(
String resourceGroupName, String factoryName, Context context);

/**
* Creates or updates a change data capture resource.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @param changeDataCapture Change data capture resource definition.
* @param ifMatch ETag of the change data capture entity. Should only be specified for update, for which it should
* match existing entity or can be * for unconditional update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return change data capture resource type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ChangeDataCaptureResourceInner> createOrUpdateWithResponse(
String resourceGroupName,
String factoryName,
String changeDataCaptureName,
ChangeDataCaptureResourceInner changeDataCapture,
String ifMatch,
Context context);

/**
* Creates or updates a change data capture resource.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @param changeDataCapture Change data capture resource definition.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return change data capture resource type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ChangeDataCaptureResourceInner createOrUpdate(
String resourceGroupName,
String factoryName,
String changeDataCaptureName,
ChangeDataCaptureResourceInner changeDataCapture);

/**
* Gets a change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @param ifNoneMatch ETag of the change data capture entity. Should only be specified for get. If the ETag matches
* the existing entity tag, or if * was provided, then no content will be returned.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a change data capture along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ChangeDataCaptureResourceInner> getWithResponse(
String resourceGroupName,
String factoryName,
String changeDataCaptureName,
String ifNoneMatch,
Context context);

/**
* Gets a change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a change data capture.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ChangeDataCaptureResourceInner get(String resourceGroupName, String factoryName, String changeDataCaptureName);

/**
* Deletes a change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String resourceGroupName, String factoryName, String changeDataCaptureName, Context context);

/**
* Deletes a change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String factoryName, String changeDataCaptureName);

/**
* Starts a change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> startWithResponse(
String resourceGroupName, String factoryName, String changeDataCaptureName, Context context);

/**
* Starts a change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void start(String resourceGroupName, String factoryName, String changeDataCaptureName);

/**
* Stops a change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> stopWithResponse(
String resourceGroupName, String factoryName, String changeDataCaptureName, Context context);

/**
* Stops a change data capture.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void stop(String resourceGroupName, String factoryName, String changeDataCaptureName);

/**
* Gets the current status for the change data capture resource.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the current status for the change data capture resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<String> statusWithResponse(
String resourceGroupName, String factoryName, String changeDataCaptureName, Context context);

/**
* Gets the current status for the change data capture resource.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param changeDataCaptureName The change data capture name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the current status for the change data capture resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
String status(String resourceGroupName, String factoryName, String changeDataCaptureName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,11 @@ public interface DataFactoryManagementClient {
* @return the GlobalParametersClient object.
*/
GlobalParametersClient getGlobalParameters();

/**
* Gets the ChangeDataCapturesClient object to access its operations.
*
* @return the ChangeDataCapturesClient object.
*/
ChangeDataCapturesClient getChangeDataCaptures();
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ public final class AmazonMwsLinkedServiceTypeProperties {

/*
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string (or Expression with resultType string).
* credential manager. Type: string.
*/
@JsonProperty(value = "encryptedCredential")
private Object encryptedCredential;
private String encryptedCredential;

/** Creates an instance of AmazonMwsLinkedServiceTypeProperties class. */
public AmazonMwsLinkedServiceTypeProperties() {
Expand Down Expand Up @@ -269,22 +269,22 @@ public AmazonMwsLinkedServiceTypeProperties withUsePeerVerification(Object usePe

/**
* Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
* using the integration runtime credential manager. Type: string (or Expression with resultType string).
* using the integration runtime credential manager. Type: string.
*
* @return the encryptedCredential value.
*/
public Object encryptedCredential() {
public String encryptedCredential() {
return this.encryptedCredential;
}

/**
* Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
* using the integration runtime credential manager. Type: string (or Expression with resultType string).
* using the integration runtime credential manager. Type: string.
*
* @param encryptedCredential the encryptedCredential value to set.
* @return the AmazonMwsLinkedServiceTypeProperties object itself.
*/
public AmazonMwsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) {
public AmazonMwsLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) {
this.encryptedCredential = encryptedCredential;
return this;
}
Expand Down
Loading

0 comments on commit 9339403

Please sign in to comment.