Skip to content

Commit 34b531d

Browse files
author
SDKAuto
committed
CodeGen from PR 16633 in Azure/azure-rest-api-specs
Merge 2dbf7252a10bc2c4b31f79d90af9e56e1e654a11 into ad6f098218e4f5eab87e784f1b6fc8a713147cab
1 parent 82665c5 commit 34b531d

File tree

60 files changed

+1034
-402
lines changed

Some content is hidden

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

60 files changed

+1034
-402
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-11-04)
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/SAMPLE.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,7 @@ public final class DataFlowsCreateOrUpdateSamples {
521521
+ " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)"
522522
+ " ~> CADSource\n"
523523
+ "USDCurrency, CADSource union(byName: true)~> Union\n"
524-
+ "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~>"
525-
+ " NewCurrencyColumn\n"
524+
+ "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\n"
526525
+ "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>"
527526
+ " ConditionalSplit1@(USD, CAD)\n"
528527
+ "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n"
@@ -577,8 +576,7 @@ public final class DataFlowsCreateOrUpdateSamples {
577576
+ " string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false)"
578577
+ " ~> CADSource\n"
579578
+ "USDCurrency, CADSource union(byName: true)~> Union\n"
580-
+ "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~>"
581-
+ " NewCurrencyColumn\n"
579+
+ "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\n"
582580
+ "NewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~>"
583581
+ " ConditionalSplit1@(USD, CAD)\n"
584582
+ "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\n"

sdk/datafactory/azure-resourcemanager-datafactory/pom.xml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
</developers>
3939
<properties>
4040
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41-
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
41+
<jacoco.skip.coverage.check>true</jacoco.skip.coverage.check>
42+
<skipNewCodesnippetTooling>false</skipNewCodesnippetTooling>
43+
<javadocDoclet></javadocDoclet>
44+
<javadocDocletOptions></javadocDocletOptions>
4245
</properties>
4346
<dependencies>
4447
<dependency>
@@ -84,14 +87,6 @@
8487
</dependencies>
8588
<build>
8689
<plugins>
87-
<plugin>
88-
<groupId>org.jacoco</groupId>
89-
<artifactId>jacoco-maven-plugin</artifactId>
90-
<version>0.8.7</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
91-
<configuration>
92-
<skip>true</skip>
93-
</configuration>
94-
</plugin>
9590
<plugin>
9691
<groupId>org.revapi</groupId>
9792
<artifactId>revapi-maven-plugin</artifactId>

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.http.HttpClient;
99
import com.azure.core.http.HttpPipeline;
1010
import com.azure.core.http.HttpPipelineBuilder;
11+
import com.azure.core.http.HttpPipelinePosition;
1112
import com.azure.core.http.policy.AddDatePolicy;
1213
import com.azure.core.http.policy.HttpLogOptions;
1314
import com.azure.core.http.policy.HttpLoggingPolicy;
@@ -67,6 +68,7 @@
6768
import java.util.ArrayList;
6869
import java.util.List;
6970
import java.util.Objects;
71+
import java.util.stream.Collectors;
7072

7173
/**
7274
* Entry point to DataFactoryManager. The Azure Data Factory V2 management API provides a RESTful set of web services
@@ -249,7 +251,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
249251
.append("-")
250252
.append("com.azure.resourcemanager.datafactory")
251253
.append("/")
252-
.append("1.0.0-beta.6");
254+
.append("1.0.0-beta.1");
253255
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
254256
userAgentBuilder
255257
.append(" (")
@@ -272,11 +274,24 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
272274
List<HttpPipelinePolicy> policies = new ArrayList<>();
273275
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
274276
policies.add(new RequestIdPolicy());
277+
policies
278+
.addAll(
279+
this
280+
.policies
281+
.stream()
282+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
283+
.collect(Collectors.toList()));
275284
HttpPolicyProviders.addBeforeRetryPolicies(policies);
276285
policies.add(retryPolicy);
277286
policies.add(new AddDatePolicy());
278287
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
279-
policies.addAll(this.policies);
288+
policies
289+
.addAll(
290+
this
291+
.policies
292+
.stream()
293+
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
294+
.collect(Collectors.toList()));
280295
HttpPolicyProviders.addAfterRetryPolicies(policies);
281296
policies.add(new HttpLoggingPolicy(httpLogOptions));
282297
HttpPipeline httpPipeline =

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)