Skip to content

Commit 5dca1a9

Browse files
author
SDKAuto
committed
CodeGen from PR 16563 in Azure/azure-rest-api-specs
Merge f1fa3b0a04d75f2982a7d316b8e153f611ff0089 into 330702f6561bceb832d51f0a65090c0652f8ca9b
1 parent 64022db commit 5dca1a9

Some content is hidden

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

46 files changed

+943
-374
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.7 (Unreleased)
3+
## 1.0.0-beta.1 (2021-10-29)
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: 1 addition & 1 deletion
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.6</version>
35+
<version>1.0.0-beta.7</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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
@@ -249,7 +249,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
249249
.append("-")
250250
.append("com.azure.resourcemanager.datafactory")
251251
.append("/")
252-
.append("1.0.0-beta.6");
252+
.append("1.0.0-beta.1");
253253
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
254254
userAgentBuilder
255255
.append(" (")

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public interface DataFlowDebugSessionsClient {
3333
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
3434
* @return response body structure for creating data flow debug session.
3535
*/
36-
@ServiceMethod(returns = ReturnType.SINGLE)
36+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
3737
SyncPoller<PollResult<CreateDataFlowDebugSessionResponseInner>, CreateDataFlowDebugSessionResponseInner>
3838
beginCreate(String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request);
3939

@@ -49,7 +49,7 @@ public interface DataFlowDebugSessionsClient {
4949
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
5050
* @return response body structure for creating data flow debug session.
5151
*/
52-
@ServiceMethod(returns = ReturnType.SINGLE)
52+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
5353
SyncPoller<PollResult<CreateDataFlowDebugSessionResponseInner>, CreateDataFlowDebugSessionResponseInner>
5454
beginCreate(
5555
String resourceGroupName, String factoryName, CreateDataFlowDebugSessionRequest request, Context context);
@@ -184,7 +184,7 @@ Response<Void> deleteWithResponse(
184184
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
185185
* @return response body structure of data flow result for data preview, statistics or expression preview.
186186
*/
187-
@ServiceMethod(returns = ReturnType.SINGLE)
187+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
188188
SyncPoller<PollResult<DataFlowDebugCommandResponseInner>, DataFlowDebugCommandResponseInner> beginExecuteCommand(
189189
String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request);
190190

@@ -200,7 +200,7 @@ SyncPoller<PollResult<DataFlowDebugCommandResponseInner>, DataFlowDebugCommandRe
200200
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
201201
* @return response body structure of data flow result for data preview, statistics or expression preview.
202202
*/
203-
@ServiceMethod(returns = ReturnType.SINGLE)
203+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
204204
SyncPoller<PollResult<DataFlowDebugCommandResponseInner>, DataFlowDebugCommandResponseInner> beginExecuteCommand(
205205
String resourceGroupName, String factoryName, DataFlowDebugCommandRequest request, Context context);
206206

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public interface IntegrationRuntimeObjectMetadatasClient {
2929
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
3030
* @return the status of the operation.
3131
*/
32-
@ServiceMethod(returns = ReturnType.SINGLE)
32+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
3333
SyncPoller<PollResult<SsisObjectMetadataStatusResponseInner>, SsisObjectMetadataStatusResponseInner> beginRefresh(
3434
String resourceGroupName, String factoryName, String integrationRuntimeName);
3535

@@ -45,7 +45,7 @@ SyncPoller<PollResult<SsisObjectMetadataStatusResponseInner>, SsisObjectMetadata
4545
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
4646
* @return the status of the operation.
4747
*/
48-
@ServiceMethod(returns = ReturnType.SINGLE)
48+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
4949
SyncPoller<PollResult<SsisObjectMetadataStatusResponseInner>, SsisObjectMetadataStatusResponseInner> beginRefresh(
5050
String resourceGroupName, String factoryName, String integrationRuntimeName, Context context);
5151

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ Response<IntegrationRuntimeAuthKeysInner> listAuthKeysWithResponse(
380380
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
381381
* @return integration runtime status response.
382382
*/
383-
@ServiceMethod(returns = ReturnType.SINGLE)
383+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
384384
SyncPoller<PollResult<IntegrationRuntimeStatusResponseInner>, IntegrationRuntimeStatusResponseInner> beginStart(
385385
String resourceGroupName, String factoryName, String integrationRuntimeName);
386386

@@ -396,7 +396,7 @@ SyncPoller<PollResult<IntegrationRuntimeStatusResponseInner>, IntegrationRuntime
396396
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
397397
* @return integration runtime status response.
398398
*/
399-
@ServiceMethod(returns = ReturnType.SINGLE)
399+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
400400
SyncPoller<PollResult<IntegrationRuntimeStatusResponseInner>, IntegrationRuntimeStatusResponseInner> beginStart(
401401
String resourceGroupName, String factoryName, String integrationRuntimeName, Context context);
402402

@@ -442,7 +442,7 @@ IntegrationRuntimeStatusResponseInner start(
442442
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
443443
* @return the completion.
444444
*/
445-
@ServiceMethod(returns = ReturnType.SINGLE)
445+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
446446
SyncPoller<PollResult<Void>, Void> beginStop(
447447
String resourceGroupName, String factoryName, String integrationRuntimeName);
448448

@@ -458,7 +458,7 @@ SyncPoller<PollResult<Void>, Void> beginStop(
458458
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
459459
* @return the completion.
460460
*/
461-
@ServiceMethod(returns = ReturnType.SINGLE)
461+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
462462
SyncPoller<PollResult<Void>, Void> beginStop(
463463
String resourceGroupName, String factoryName, String integrationRuntimeName, Context context);
464464

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Response<Void> deleteWithResponse(
188188
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
189189
* @return defines the response of a trigger subscription operation.
190190
*/
191-
@ServiceMethod(returns = ReturnType.SINGLE)
191+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
192192
SyncPoller<PollResult<TriggerSubscriptionOperationStatusInner>, TriggerSubscriptionOperationStatusInner>
193193
beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName);
194194

@@ -204,7 +204,7 @@ Response<Void> deleteWithResponse(
204204
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
205205
* @return defines the response of a trigger subscription operation.
206206
*/
207-
@ServiceMethod(returns = ReturnType.SINGLE)
207+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
208208
SyncPoller<PollResult<TriggerSubscriptionOperationStatusInner>, TriggerSubscriptionOperationStatusInner>
209209
beginSubscribeToEvents(String resourceGroupName, String factoryName, String triggerName, Context context);
210210

@@ -281,7 +281,7 @@ Response<TriggerSubscriptionOperationStatusInner> getEventSubscriptionStatusWith
281281
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
282282
* @return defines the response of a trigger subscription operation.
283283
*/
284-
@ServiceMethod(returns = ReturnType.SINGLE)
284+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
285285
SyncPoller<PollResult<TriggerSubscriptionOperationStatusInner>, TriggerSubscriptionOperationStatusInner>
286286
beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName);
287287

@@ -297,7 +297,7 @@ Response<TriggerSubscriptionOperationStatusInner> getEventSubscriptionStatusWith
297297
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
298298
* @return defines the response of a trigger subscription operation.
299299
*/
300-
@ServiceMethod(returns = ReturnType.SINGLE)
300+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
301301
SyncPoller<PollResult<TriggerSubscriptionOperationStatusInner>, TriggerSubscriptionOperationStatusInner>
302302
beginUnsubscribeFromEvents(String resourceGroupName, String factoryName, String triggerName, Context context);
303303

@@ -343,7 +343,7 @@ TriggerSubscriptionOperationStatusInner unsubscribeFromEvents(
343343
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
344344
* @return the completion.
345345
*/
346-
@ServiceMethod(returns = ReturnType.SINGLE)
346+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
347347
SyncPoller<PollResult<Void>, Void> beginStart(String resourceGroupName, String factoryName, String triggerName);
348348

349349
/**
@@ -358,7 +358,7 @@ TriggerSubscriptionOperationStatusInner unsubscribeFromEvents(
358358
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
359359
* @return the completion.
360360
*/
361-
@ServiceMethod(returns = ReturnType.SINGLE)
361+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
362362
SyncPoller<PollResult<Void>, Void> beginStart(
363363
String resourceGroupName, String factoryName, String triggerName, Context context);
364364

@@ -400,7 +400,7 @@ SyncPoller<PollResult<Void>, Void> beginStart(
400400
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
401401
* @return the completion.
402402
*/
403-
@ServiceMethod(returns = ReturnType.SINGLE)
403+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
404404
SyncPoller<PollResult<Void>, Void> beginStop(String resourceGroupName, String factoryName, String triggerName);
405405

406406
/**
@@ -415,7 +415,7 @@ SyncPoller<PollResult<Void>, Void> beginStart(
415415
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
416416
* @return the completion.
417417
*/
418-
@ServiceMethod(returns = ReturnType.SINGLE)
418+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
419419
SyncPoller<PollResult<Void>, Void> beginStop(
420420
String resourceGroupName, String factoryName, String triggerName, Context context);
421421

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

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
import com.azure.resourcemanager.datafactory.models.ExecuteDataFlowActivityTypePropertiesCompute;
1212
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeReference;
1313
import com.azure.resourcemanager.datafactory.models.PowerQuerySink;
14+
import com.azure.resourcemanager.datafactory.models.PowerQuerySinkMapping;
1415
import com.fasterxml.jackson.annotation.JsonIgnore;
1516
import com.fasterxml.jackson.annotation.JsonInclude;
1617
import com.fasterxml.jackson.annotation.JsonProperty;
18+
import java.util.List;
1719
import java.util.Map;
1820

1921
/** Execute power query data flow activity properties. */
@@ -22,14 +24,22 @@ public final class ExecutePowerQueryActivityTypeProperties extends ExecuteDataFl
2224
@JsonIgnore private final ClientLogger logger = new ClientLogger(ExecutePowerQueryActivityTypeProperties.class);
2325

2426
/*
25-
* List of Power Query activity sinks mapped to a queryName.
27+
* (Deprecated. Please use Queries). List of Power Query activity sinks
28+
* mapped to a queryName.
2629
*/
2730
@JsonProperty(value = "sinks")
2831
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
2932
private Map<String, PowerQuerySink> sinks;
3033

34+
/*
35+
* List of mapping for Power Query mashup query to sink dataset(s).
36+
*/
37+
@JsonProperty(value = "queries")
38+
private List<PowerQuerySinkMapping> queries;
39+
3140
/**
32-
* Get the sinks property: List of Power Query activity sinks mapped to a queryName.
41+
* Get the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a
42+
* queryName.
3343
*
3444
* @return the sinks value.
3545
*/
@@ -38,7 +48,8 @@ public Map<String, PowerQuerySink> sinks() {
3848
}
3949

4050
/**
41-
* Set the sinks property: List of Power Query activity sinks mapped to a queryName.
51+
* Set the sinks property: (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a
52+
* queryName.
4253
*
4354
* @param sinks the sinks value to set.
4455
* @return the ExecutePowerQueryActivityTypeProperties object itself.
@@ -48,6 +59,26 @@ public ExecutePowerQueryActivityTypeProperties withSinks(Map<String, PowerQueryS
4859
return this;
4960
}
5061

62+
/**
63+
* Get the queries property: List of mapping for Power Query mashup query to sink dataset(s).
64+
*
65+
* @return the queries value.
66+
*/
67+
public List<PowerQuerySinkMapping> queries() {
68+
return this.queries;
69+
}
70+
71+
/**
72+
* Set the queries property: List of mapping for Power Query mashup query to sink dataset(s).
73+
*
74+
* @param queries the queries value to set.
75+
* @return the ExecutePowerQueryActivityTypeProperties object itself.
76+
*/
77+
public ExecutePowerQueryActivityTypeProperties withQueries(List<PowerQuerySinkMapping> queries) {
78+
this.queries = queries;
79+
return this;
80+
}
81+
5182
/** {@inheritDoc} */
5283
@Override
5384
public ExecutePowerQueryActivityTypeProperties withDataFlow(DataFlowReference dataFlow) {
@@ -116,5 +147,8 @@ public void validate() {
116147
}
117148
});
118149
}
150+
if (queries() != null) {
151+
queries().forEach(e -> e.validate());
152+
}
119153
}
120154
}

0 commit comments

Comments
 (0)