Skip to content

Commit d8c1d24

Browse files
author
SDKAuto
committed
CodeGen from PR 17810 in Azure/azure-rest-api-specs
Merge fd59696e3d5f0dad1d6e70e7fd816cc983bacae8 into 3ac3598d0973e21837f5d9251dce47cd6553a482
1 parent c691790 commit d8c1d24

File tree

64 files changed

+2452
-205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2452
-205
lines changed

sdk/datafactory/azure-resourcemanager-datafactory/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.11 (Unreleased)
3+
## 1.0.0-beta.1 (2022-02-14)
4+
5+
- 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).
46

57
### Features Added
68

sdk/datafactory/azure-resourcemanager-datafactory/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-datafactory</artifactId>
35-
<version>1.0.0-beta.10</version>
35+
<version>1.0.0-beta.11</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -78,15 +78,15 @@ See [API design][design] for general introduction on design and key concepts on
7878
// storage account
7979
StorageAccount storageAccount = storageManager.storageAccounts().define(STORAGE_ACCOUNT)
8080
.withRegion(REGION)
81-
.withExistingResourceGroup(RESOURCE_GROUP)
81+
.withExistingResourceGroup(resourceGroup)
8282
.create();
8383
final String storageAccountKey = storageAccount.getKeys().iterator().next().value();
8484
final String connectionString = getStorageConnectionString(STORAGE_ACCOUNT, storageAccountKey, storageManager.environment());
8585

8686
// container
8787
final String containerName = "adf";
8888
storageManager.blobContainers().defineContainer(containerName)
89-
.withExistingBlobService(RESOURCE_GROUP, STORAGE_ACCOUNT)
89+
.withExistingStorageAccount(resourceGroup, STORAGE_ACCOUNT)
9090
.withPublicAccess(PublicAccess.NONE)
9191
.create();
9292

@@ -99,9 +99,9 @@ BlobClient blobClient = new BlobClientBuilder()
9999
blobClient.upload(BinaryData.fromString("data"));
100100

101101
// data factory
102-
manager.factories().define(DATA_FACTORY)
102+
Factory dataFactory = manager.factories().define(DATA_FACTORY)
103103
.withRegion(REGION)
104-
.withExistingResourceGroup(RESOURCE_GROUP)
104+
.withExistingResourceGroup(resourceGroup)
105105
.create();
106106

107107
// linked service
@@ -111,15 +111,15 @@ connectionStringProperty.put("value", connectionString);
111111

112112
final String linkedServiceName = "LinkedService";
113113
manager.linkedServices().define(linkedServiceName)
114-
.withExistingFactory(RESOURCE_GROUP, DATA_FACTORY)
114+
.withExistingFactory(resourceGroup, DATA_FACTORY)
115115
.withProperties(new AzureStorageLinkedService()
116116
.withConnectionString(connectionStringProperty))
117117
.create();
118118

119119
// input dataset
120120
final String inputDatasetName = "InputDataset";
121121
manager.datasets().define(inputDatasetName)
122-
.withExistingFactory(RESOURCE_GROUP, DATA_FACTORY)
122+
.withExistingFactory(resourceGroup, DATA_FACTORY)
123123
.withProperties(new AzureBlobDataset()
124124
.withLinkedServiceName(new LinkedServiceReference().withReferenceName(linkedServiceName))
125125
.withFolderPath(containerName)
@@ -130,7 +130,7 @@ manager.datasets().define(inputDatasetName)
130130
// output dataset
131131
final String outputDatasetName = "OutputDataset";
132132
manager.datasets().define(outputDatasetName)
133-
.withExistingFactory(RESOURCE_GROUP, DATA_FACTORY)
133+
.withExistingFactory(resourceGroup, DATA_FACTORY)
134134
.withProperties(new AzureBlobDataset()
135135
.withLinkedServiceName(new LinkedServiceReference().withReferenceName(linkedServiceName))
136136
.withFolderPath(containerName)
@@ -140,7 +140,7 @@ manager.datasets().define(outputDatasetName)
140140

141141
// pipeline
142142
PipelineResource pipeline = manager.pipelines().define("CopyBlobPipeline")
143-
.withExistingFactory(RESOURCE_GROUP, DATA_FACTORY)
143+
.withExistingFactory(resourceGroup, DATA_FACTORY)
144144
.withActivities(Collections.singletonList(new CopyActivity()
145145
.withName("CopyBlob")
146146
.withSource(new BlobSource())
@@ -153,11 +153,11 @@ PipelineResource pipeline = manager.pipelines().define("CopyBlobPipeline")
153153
CreateRunResponse createRun = pipeline.createRun();
154154

155155
// wait for completion
156-
PipelineRun pipelineRun = manager.pipelineRuns().get(RESOURCE_GROUP, DATA_FACTORY, createRun.runId());
156+
PipelineRun pipelineRun = manager.pipelineRuns().get(resourceGroup, DATA_FACTORY, createRun.runId());
157157
String runStatus = pipelineRun.status();
158158
while ("InProgress".equals(runStatus)) {
159159
sleepIfRunningAgainstService(10 * 1000); // wait 10 seconds
160-
pipelineRun = manager.pipelineRuns().get(RESOURCE_GROUP, DATA_FACTORY, createRun.runId());
160+
pipelineRun = manager.pipelineRuns().get(resourceGroup, DATA_FACTORY, createRun.runId());
161161
runStatus = pipelineRun.status();
162162
}
163163
```

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/DataFactoryManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
251251
.append("-")
252252
.append("com.azure.resourcemanager.datafactory")
253253
.append("/")
254-
.append("1.0.0-beta.10");
254+
.append("1.0.0-beta.1");
255255
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
256256
userAgentBuilder
257257
.append(" (")

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowDebugSessionsClient.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import com.azure.resourcemanager.datafactory.models.DataFlowDebugCommandRequest;
2020
import com.azure.resourcemanager.datafactory.models.DataFlowDebugPackage;
2121
import com.azure.resourcemanager.datafactory.models.DeleteDataFlowDebugSessionRequest;
22-
import reactor.core.publisher.Mono;
2322

2423
/** An instance of this class provides access to all the operations defined in DataFlowDebugSessionsClient. */
2524
public interface DataFlowDebugSessionsClient {
@@ -32,8 +31,7 @@ public interface DataFlowDebugSessionsClient {
3231
* @throws IllegalArgumentException thrown if parameters fail the validation.
3332
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3433
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
35-
* @return response body structure for creating data flow debug session along with {@link Response} on successful
36-
* completion of {@link Mono}.
34+
* @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session.
3735
*/
3836
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
3937
SyncPoller<PollResult<CreateDataFlowDebugSessionResponseInner>, CreateDataFlowDebugSessionResponseInner>
@@ -49,8 +47,7 @@ public interface DataFlowDebugSessionsClient {
4947
* @throws IllegalArgumentException thrown if parameters fail the validation.
5048
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5149
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
52-
* @return response body structure for creating data flow debug session along with {@link Response} on successful
53-
* completion of {@link Mono}.
50+
* @return the {@link SyncPoller} for polling of response body structure for creating data flow debug session.
5451
*/
5552
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
5653
SyncPoller<PollResult<CreateDataFlowDebugSessionResponseInner>, CreateDataFlowDebugSessionResponseInner>
@@ -96,7 +93,7 @@ CreateDataFlowDebugSessionResponseInner create(
9693
* @throws IllegalArgumentException thrown if parameters fail the validation.
9794
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9895
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
99-
* @return a list of active debug sessions.
96+
* @return a list of active debug sessions as paginated response with {@link PagedIterable}.
10097
*/
10198
@ServiceMethod(returns = ReturnType.COLLECTION)
10299
PagedIterable<DataFlowDebugSessionInfoInner> queryByFactory(String resourceGroupName, String factoryName);
@@ -110,7 +107,7 @@ CreateDataFlowDebugSessionResponseInner create(
110107
* @throws IllegalArgumentException thrown if parameters fail the validation.
111108
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
112109
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
113-
* @return a list of active debug sessions.
110+
* @return a list of active debug sessions as paginated response with {@link PagedIterable}.
114111
*/
115112
@ServiceMethod(returns = ReturnType.COLLECTION)
116113
PagedIterable<DataFlowDebugSessionInfoInner> queryByFactory(
@@ -185,8 +182,8 @@ Response<Void> deleteWithResponse(
185182
* @throws IllegalArgumentException thrown if parameters fail the validation.
186183
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
187184
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
188-
* @return response body structure of data flow result for data preview, statistics or expression preview along with
189-
* {@link Response} on successful completion of {@link Mono}.
185+
* @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview,
186+
* statistics or expression preview.
190187
*/
191188
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
192189
SyncPoller<PollResult<DataFlowDebugCommandResponseInner>, DataFlowDebugCommandResponseInner> beginExecuteCommand(
@@ -202,8 +199,8 @@ SyncPoller<PollResult<DataFlowDebugCommandResponseInner>, DataFlowDebugCommandRe
202199
* @throws IllegalArgumentException thrown if parameters fail the validation.
203200
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
204201
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
205-
* @return response body structure of data flow result for data preview, statistics or expression preview along with
206-
* {@link Response} on successful completion of {@link Mono}.
202+
* @return the {@link SyncPoller} for polling of response body structure of data flow result for data preview,
203+
* statistics or expression preview.
207204
*/
208205
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
209206
SyncPoller<PollResult<DataFlowDebugCommandResponseInner>, DataFlowDebugCommandResponseInner> beginExecuteCommand(

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DataFlowsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Response<Void> deleteWithResponse(
122122
* @throws IllegalArgumentException thrown if parameters fail the validation.
123123
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
124124
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
125-
* @return a list of data flow resources.
125+
* @return a list of data flow resources as paginated response with {@link PagedIterable}.
126126
*/
127127
@ServiceMethod(returns = ReturnType.COLLECTION)
128128
PagedIterable<DataFlowResourceInner> listByFactory(String resourceGroupName, String factoryName);
@@ -136,7 +136,7 @@ Response<Void> deleteWithResponse(
136136
* @throws IllegalArgumentException thrown if parameters fail the validation.
137137
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
138138
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
139-
* @return a list of data flow resources.
139+
* @return a list of data flow resources as paginated response with {@link PagedIterable}.
140140
*/
141141
@ServiceMethod(returns = ReturnType.COLLECTION)
142142
PagedIterable<DataFlowResourceInner> listByFactory(String resourceGroupName, String factoryName, Context context);

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/DatasetsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface DatasetsClient {
2121
* @throws IllegalArgumentException thrown if parameters fail the validation.
2222
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2323
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24-
* @return a list of dataset resources.
24+
* @return a list of dataset resources as paginated response with {@link PagedIterable}.
2525
*/
2626
@ServiceMethod(returns = ReturnType.COLLECTION)
2727
PagedIterable<DatasetResourceInner> listByFactory(String resourceGroupName, String factoryName);
@@ -35,7 +35,7 @@ public interface DatasetsClient {
3535
* @throws IllegalArgumentException thrown if parameters fail the validation.
3636
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3737
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38-
* @return a list of dataset resources.
38+
* @return a list of dataset resources as paginated response with {@link PagedIterable}.
3939
*/
4040
@ServiceMethod(returns = ReturnType.COLLECTION)
4141
PagedIterable<DatasetResourceInner> listByFactory(String resourceGroupName, String factoryName, Context context);

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/FactoriesClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public interface FactoriesClient {
2424
*
2525
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2626
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
27-
* @return a list of factory resources.
27+
* @return a list of factory resources as paginated response with {@link PagedIterable}.
2828
*/
2929
@ServiceMethod(returns = ReturnType.COLLECTION)
3030
PagedIterable<FactoryInner> list();
@@ -36,7 +36,7 @@ public interface FactoriesClient {
3636
* @throws IllegalArgumentException thrown if parameters fail the validation.
3737
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3838
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
39-
* @return a list of factory resources.
39+
* @return a list of factory resources as paginated response with {@link PagedIterable}.
4040
*/
4141
@ServiceMethod(returns = ReturnType.COLLECTION)
4242
PagedIterable<FactoryInner> list(Context context);
@@ -76,7 +76,7 @@ Response<FactoryInner> configureFactoryRepoWithResponse(
7676
* @throws IllegalArgumentException thrown if parameters fail the validation.
7777
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
7878
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
79-
* @return a list of factory resources.
79+
* @return a list of factory resources as paginated response with {@link PagedIterable}.
8080
*/
8181
@ServiceMethod(returns = ReturnType.COLLECTION)
8282
PagedIterable<FactoryInner> listByResourceGroup(String resourceGroupName);
@@ -89,7 +89,7 @@ Response<FactoryInner> configureFactoryRepoWithResponse(
8989
* @throws IllegalArgumentException thrown if parameters fail the validation.
9090
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9191
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
92-
* @return a list of factory resources.
92+
* @return a list of factory resources as paginated response with {@link PagedIterable}.
9393
*/
9494
@ServiceMethod(returns = ReturnType.COLLECTION)
9595
PagedIterable<FactoryInner> listByResourceGroup(String resourceGroupName, Context context);

sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimeObjectMetadatasClient.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataListResponseInner;
1414
import com.azure.resourcemanager.datafactory.fluent.models.SsisObjectMetadataStatusResponseInner;
1515
import com.azure.resourcemanager.datafactory.models.GetSsisObjectMetadataRequest;
16-
import reactor.core.publisher.Mono;
1716

1817
/**
1918
* An instance of this class provides access to all the operations defined in IntegrationRuntimeObjectMetadatasClient.
@@ -28,7 +27,7 @@ public interface IntegrationRuntimeObjectMetadatasClient {
2827
* @throws IllegalArgumentException thrown if parameters fail the validation.
2928
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3029
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
31-
* @return the status of the operation along with {@link Response} on successful completion of {@link Mono}.
30+
* @return the {@link SyncPoller} for polling of the status of the operation.
3231
*/
3332
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
3433
SyncPoller<PollResult<SsisObjectMetadataStatusResponseInner>, SsisObjectMetadataStatusResponseInner> beginRefresh(
@@ -44,7 +43,7 @@ SyncPoller<PollResult<SsisObjectMetadataStatusResponseInner>, SsisObjectMetadata
4443
* @throws IllegalArgumentException thrown if parameters fail the validation.
4544
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4645
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
47-
* @return the status of the operation along with {@link Response} on successful completion of {@link Mono}.
46+
* @return the {@link SyncPoller} for polling of the status of the operation.
4847
*/
4948
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
5049
SyncPoller<PollResult<SsisObjectMetadataStatusResponseInner>, SsisObjectMetadataStatusResponseInner> beginRefresh(

0 commit comments

Comments
 (0)