Skip to content

Commit 25adb93

Browse files
synapse, regenerate with tag=package-artifacts-composite-v6 (Azure#32766)
* synapse_package-artifacts-composite-v6 * regen with latest swagger * changelog
1 parent 9ffa37c commit 25adb93

File tree

774 files changed

+5442
-1649
lines changed

Some content is hidden

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

774 files changed

+5442
-1649
lines changed

sdk/synapse/azure-analytics-synapse-artifacts/CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,26 @@
44

55
### Features Added
66

7+
- Added `workspaceResourceId` to `AzureSynapseArtifactsLinkedService`.
8+
- Added `pythonCodeReference`, `filesV2`, `scanFolder`, `configurationType`, `targetSparkConfiguration` and `sparkConfig` properties to `SynapseSparkJobDefinitionActivity`.
9+
- Added `authHeaders` property to `RestServiceLinkedService`.
10+
- Added new APIs of Pause/Resume for Synapse Link in `LinkConnectionClient`.
11+
- Added `PowerBIWorkspaceLinkedService`.
12+
713
### Breaking Changes
814

9-
### Bugs Fixed
15+
- Renamed API `createOrUpdateLinkConnection` to `createOrUpdate` in `LinkConnectionClient`.
16+
- Renamed API `deleteLinkConnection` to `delete` in `LinkConnectionClient`.
17+
- Renamed API `getLinkConnection` to `get` in `LinkConnectionClient`.
18+
- Renamed API `listLinkConnectionsByWorkspace` to `listByWorkspace` in `LinkConnectionClient`.
1019

1120
### Other Changes
1221

22+
#### Dependency Updates
23+
24+
- Upgraded `azure-core` to `1.35.0`.
25+
- Upgraded `azure-core-http-netty` to `1.12.8`.
26+
1327
## 1.0.0-beta.11 (2022-09-19)
1428

1529
### Features Added

sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/ArtifactsClientBuilder.java

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import java.util.ArrayList;
4040
import java.util.List;
4141
import java.util.Map;
42+
import java.util.Objects;
4243
import java.util.stream.Collectors;
4344

4445
/** A builder for creating a new instance of the ArtifactsClient type. */
@@ -103,7 +104,7 @@ public final class ArtifactsClientBuilder
103104
@Generated private static final String[] DEFAULT_SCOPES = new String[] {"https://dev.azuresynapse.net/.default"};
104105

105106
@Generated
106-
private final Map<String, String> properties =
107+
private static final Map<String, String> PROPERTIES =
107108
CoreUtils.getProperties("azure-analytics-synapse-artifacts.properties");
108109

109110
@Generated private final List<HttpPipelinePolicy> pipelinePolicies;
@@ -183,6 +184,7 @@ public ArtifactsClientBuilder retryOptions(RetryOptions retryOptions) {
183184
@Generated
184185
@Override
185186
public ArtifactsClientBuilder addPolicy(HttpPipelinePolicy customPolicy) {
187+
Objects.requireNonNull(customPolicy, "'customPolicy' cannot be null.");
186188
pipelinePolicies.add(customPolicy);
187189
return this;
188190
}
@@ -278,21 +280,17 @@ private ArtifactsClientImpl buildInnerClient() {
278280
private HttpPipeline createHttpPipeline() {
279281
Configuration buildConfiguration =
280282
(configuration == null) ? Configuration.getGlobalConfiguration() : configuration;
281-
if (httpLogOptions == null) {
282-
httpLogOptions = new HttpLogOptions();
283-
}
284-
if (clientOptions == null) {
285-
clientOptions = new ClientOptions();
286-
}
283+
HttpLogOptions localHttpLogOptions = this.httpLogOptions == null ? new HttpLogOptions() : this.httpLogOptions;
284+
ClientOptions localClientOptions = this.clientOptions == null ? new ClientOptions() : this.clientOptions;
287285
List<HttpPipelinePolicy> policies = new ArrayList<>();
288-
String clientName = properties.getOrDefault(SDK_NAME, "UnknownName");
289-
String clientVersion = properties.getOrDefault(SDK_VERSION, "UnknownVersion");
290-
String applicationId = CoreUtils.getApplicationId(clientOptions, httpLogOptions);
286+
String clientName = PROPERTIES.getOrDefault(SDK_NAME, "UnknownName");
287+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
288+
String applicationId = CoreUtils.getApplicationId(localClientOptions, localHttpLogOptions);
291289
policies.add(new UserAgentPolicy(applicationId, clientName, clientVersion, buildConfiguration));
292290
policies.add(new RequestIdPolicy());
293291
policies.add(new AddHeadersFromContextPolicy());
294292
HttpHeaders headers = new HttpHeaders();
295-
clientOptions.getHeaders().forEach(header -> headers.set(header.getName(), header.getValue()));
293+
localClientOptions.getHeaders().forEach(header -> headers.set(header.getName(), header.getValue()));
296294
if (headers.getSize() > 0) {
297295
policies.add(new AddHeadersPolicy(headers));
298296
}
@@ -317,7 +315,7 @@ private HttpPipeline createHttpPipeline() {
317315
new HttpPipelineBuilder()
318316
.policies(policies.toArray(new HttpPipelinePolicy[0]))
319317
.httpClient(httpClient)
320-
.clientOptions(clientOptions)
318+
.clientOptions(localClientOptions)
321319
.build();
322320
return httpPipeline;
323321
}

sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/BigDataPoolsClient.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,59 +33,59 @@ public final class BigDataPoolsClient {
3333
/**
3434
* List Big Data Pools.
3535
*
36+
* @param context The context to associate with this operation.
37+
* @throws IllegalArgumentException thrown if parameters fail the validation.
3638
* @throws ErrorContractException thrown if the request is rejected by server.
3739
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38-
* @return collection of Big Data pools.
40+
* @return collection of Big Data pools along with {@link Response}.
3941
*/
4042
@Generated
4143
@ServiceMethod(returns = ReturnType.SINGLE)
42-
public BigDataPoolResourceInfoListResult list() {
43-
return this.serviceClient.list();
44+
public Response<BigDataPoolResourceInfoListResult> listWithResponse(Context context) {
45+
return this.serviceClient.listWithResponse(context);
4446
}
4547

4648
/**
4749
* List Big Data Pools.
4850
*
49-
* @param context The context to associate with this operation.
50-
* @throws IllegalArgumentException thrown if parameters fail the validation.
5151
* @throws ErrorContractException thrown if the request is rejected by server.
5252
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
53-
* @return collection of Big Data pools along with {@link Response}.
53+
* @return collection of Big Data pools.
5454
*/
5555
@Generated
5656
@ServiceMethod(returns = ReturnType.SINGLE)
57-
public Response<BigDataPoolResourceInfoListResult> listWithResponse(Context context) {
58-
return this.serviceClient.listWithResponse(context);
57+
public BigDataPoolResourceInfoListResult list() {
58+
return this.serviceClient.list();
5959
}
6060

6161
/**
6262
* Get Big Data Pool.
6363
*
6464
* @param bigDataPoolName The Big Data Pool name.
65+
* @param context The context to associate with this operation.
6566
* @throws IllegalArgumentException thrown if parameters fail the validation.
6667
* @throws ErrorContractException thrown if the request is rejected by server.
6768
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
68-
* @return big Data Pool.
69+
* @return big Data Pool along with {@link Response}.
6970
*/
7071
@Generated
7172
@ServiceMethod(returns = ReturnType.SINGLE)
72-
public BigDataPoolResourceInfo get(String bigDataPoolName) {
73-
return this.serviceClient.get(bigDataPoolName);
73+
public Response<BigDataPoolResourceInfo> getWithResponse(String bigDataPoolName, Context context) {
74+
return this.serviceClient.getWithResponse(bigDataPoolName, context);
7475
}
7576

7677
/**
7778
* Get Big Data Pool.
7879
*
7980
* @param bigDataPoolName The Big Data Pool name.
80-
* @param context The context to associate with this operation.
8181
* @throws IllegalArgumentException thrown if parameters fail the validation.
8282
* @throws ErrorContractException thrown if the request is rejected by server.
8383
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
84-
* @return big Data Pool along with {@link Response}.
84+
* @return big Data Pool.
8585
*/
8686
@Generated
8787
@ServiceMethod(returns = ReturnType.SINGLE)
88-
public Response<BigDataPoolResourceInfo> getWithResponse(String bigDataPoolName, Context context) {
89-
return this.serviceClient.getWithResponse(bigDataPoolName, context);
88+
public BigDataPoolResourceInfo get(String bigDataPoolName) {
89+
return this.serviceClient.get(bigDataPoolName);
9090
}
9191
}

sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/DataFlowClient.java

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@ public final class DataFlowClient {
3131
this.serviceClient = serviceClient;
3232
}
3333

34+
/**
35+
* Creates or updates a data flow.
36+
*
37+
* @param dataFlowName The data flow name.
38+
* @param dataFlow Data flow resource definition.
39+
* @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should match
40+
* existing entity or can be * for unconditional update.
41+
* @param context The context to associate with this operation.
42+
* @throws IllegalArgumentException thrown if parameters fail the validation.
43+
* @throws CloudErrorException thrown if the request is rejected by server.
44+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
45+
* @return data flow resource type along with {@link Response}.
46+
*/
47+
@Generated
48+
@ServiceMethod(returns = ReturnType.SINGLE)
49+
public Response<DataFlowResource> createOrUpdateDataFlowWithResponse(
50+
String dataFlowName, DataFlowResource dataFlow, String ifMatch, Context context) {
51+
return this.serviceClient.createOrUpdateDataFlowWithResponse(dataFlowName, dataFlow, ifMatch, context);
52+
}
53+
3454
/**
3555
* Creates or updates a data flow.
3656
*
@@ -66,23 +86,22 @@ public DataFlowResource createOrUpdateDataFlow(String dataFlowName, DataFlowReso
6686
}
6787

6888
/**
69-
* Creates or updates a data flow.
89+
* Gets a data flow.
7090
*
7191
* @param dataFlowName The data flow name.
72-
* @param dataFlow Data flow resource definition.
73-
* @param ifMatch ETag of the data flow entity. Should only be specified for update, for which it should match
74-
* existing entity or can be * for unconditional update.
92+
* @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the
93+
* existing entity tag, or if * was provided, then no content will be returned.
7594
* @param context The context to associate with this operation.
7695
* @throws IllegalArgumentException thrown if parameters fail the validation.
7796
* @throws CloudErrorException thrown if the request is rejected by server.
7897
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
79-
* @return data flow resource type along with {@link Response}.
98+
* @return a data flow along with {@link Response}.
8099
*/
81100
@Generated
82101
@ServiceMethod(returns = ReturnType.SINGLE)
83-
public Response<DataFlowResource> createOrUpdateDataFlowWithResponse(
84-
String dataFlowName, DataFlowResource dataFlow, String ifMatch, Context context) {
85-
return this.serviceClient.createOrUpdateDataFlowWithResponse(dataFlowName, dataFlow, ifMatch, context);
102+
public Response<DataFlowResource> getDataFlowWithResponse(
103+
String dataFlowName, String ifNoneMatch, Context context) {
104+
return this.serviceClient.getDataFlowWithResponse(dataFlowName, ifNoneMatch, context);
86105
}
87106

88107
/**
@@ -118,22 +137,19 @@ public DataFlowResource getDataFlow(String dataFlowName) {
118137
}
119138

120139
/**
121-
* Gets a data flow.
140+
* Deletes a data flow.
122141
*
123142
* @param dataFlowName The data flow name.
124-
* @param ifNoneMatch ETag of the data flow entity. Should only be specified for get. If the ETag matches the
125-
* existing entity tag, or if * was provided, then no content will be returned.
126143
* @param context The context to associate with this operation.
127144
* @throws IllegalArgumentException thrown if parameters fail the validation.
128145
* @throws CloudErrorException thrown if the request is rejected by server.
129146
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
130-
* @return a data flow along with {@link Response}.
147+
* @return the {@link Response}.
131148
*/
132149
@Generated
133150
@ServiceMethod(returns = ReturnType.SINGLE)
134-
public Response<DataFlowResource> getDataFlowWithResponse(
135-
String dataFlowName, String ifNoneMatch, Context context) {
136-
return this.serviceClient.getDataFlowWithResponse(dataFlowName, ifNoneMatch, context);
151+
public Response<Void> deleteDataFlowWithResponse(String dataFlowName, Context context) {
152+
return this.serviceClient.deleteDataFlowWithResponse(dataFlowName, context);
137153
}
138154

139155
/**
@@ -151,9 +167,10 @@ public void deleteDataFlow(String dataFlowName) {
151167
}
152168

153169
/**
154-
* Deletes a data flow.
170+
* Renames a dataflow.
155171
*
156172
* @param dataFlowName The data flow name.
173+
* @param request proposed new name.
157174
* @param context The context to associate with this operation.
158175
* @throws IllegalArgumentException thrown if parameters fail the validation.
159176
* @throws CloudErrorException thrown if the request is rejected by server.
@@ -162,8 +179,9 @@ public void deleteDataFlow(String dataFlowName) {
162179
*/
163180
@Generated
164181
@ServiceMethod(returns = ReturnType.SINGLE)
165-
public Response<Void> deleteDataFlowWithResponse(String dataFlowName, Context context) {
166-
return this.serviceClient.deleteDataFlowWithResponse(dataFlowName, context);
182+
public Response<Void> renameDataFlowWithResponse(
183+
String dataFlowName, ArtifactRenameRequest request, Context context) {
184+
return this.serviceClient.renameDataFlowWithResponse(dataFlowName, request, context);
167185
}
168186

169187
/**
@@ -181,24 +199,6 @@ public void renameDataFlow(String dataFlowName, ArtifactRenameRequest request) {
181199
this.serviceClient.renameDataFlow(dataFlowName, request);
182200
}
183201

184-
/**
185-
* Renames a dataflow.
186-
*
187-
* @param dataFlowName The data flow name.
188-
* @param request proposed new name.
189-
* @param context The context to associate with this operation.
190-
* @throws IllegalArgumentException thrown if parameters fail the validation.
191-
* @throws CloudErrorException thrown if the request is rejected by server.
192-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
193-
* @return the {@link Response}.
194-
*/
195-
@Generated
196-
@ServiceMethod(returns = ReturnType.SINGLE)
197-
public Response<Void> renameDataFlowWithResponse(
198-
String dataFlowName, ArtifactRenameRequest request, Context context) {
199-
return this.serviceClient.renameDataFlowWithResponse(dataFlowName, request, context);
200-
}
201-
202202
/**
203203
* Lists data flows.
204204
*

0 commit comments

Comments
 (0)