Skip to content

Commit 6915d4d

Browse files
author
SDKAuto
committed
CodeGen from PR 24226 in Azure/azure-rest-api-specs
Merge be64441d7c4397453c4e7dd1fff4f3bf82243a91 into 73d8ea03558929411b9f2e6be533e63409a2252c
1 parent 645bca4 commit 6915d4d

File tree

360 files changed

+10885
-1719
lines changed

Some content is hidden

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

360 files changed

+10885
-1719
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.23 (Unreleased)
3+
## 1.0.0-beta.1 (2023-05-31)
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.22</version>
35+
<version>1.0.0-beta.23</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 1372 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.azure.core.util.logging.ClientLogger;
2626
import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient;
2727
import com.azure.resourcemanager.datafactory.implementation.ActivityRunsImpl;
28+
import com.azure.resourcemanager.datafactory.implementation.ChangeDataCapturesImpl;
2829
import com.azure.resourcemanager.datafactory.implementation.CredentialOperationsImpl;
2930
import com.azure.resourcemanager.datafactory.implementation.DataFactoryManagementClientBuilder;
3031
import com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsImpl;
@@ -48,6 +49,7 @@
4849
import com.azure.resourcemanager.datafactory.implementation.TriggerRunsImpl;
4950
import com.azure.resourcemanager.datafactory.implementation.TriggersImpl;
5051
import com.azure.resourcemanager.datafactory.models.ActivityRuns;
52+
import com.azure.resourcemanager.datafactory.models.ChangeDataCaptures;
5153
import com.azure.resourcemanager.datafactory.models.CredentialOperations;
5254
import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessions;
5355
import com.azure.resourcemanager.datafactory.models.DataFlows;
@@ -125,6 +127,8 @@ public final class DataFactoryManager {
125127

126128
private GlobalParameters globalParameters;
127129

130+
private ChangeDataCaptures changeDataCaptures;
131+
128132
private final DataFactoryManagementClient clientObject;
129133

130134
private DataFactoryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -290,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
290294
.append("-")
291295
.append("com.azure.resourcemanager.datafactory")
292296
.append("/")
293-
.append("1.0.0-beta.22");
297+
.append("1.0.0-beta.1");
294298
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
295299
userAgentBuilder
296300
.append(" (")
@@ -619,6 +623,18 @@ public GlobalParameters globalParameters() {
619623
return globalParameters;
620624
}
621625

626+
/**
627+
* Gets the resource collection API of ChangeDataCaptures. It manages ChangeDataCaptureResource.
628+
*
629+
* @return Resource collection API of ChangeDataCaptures.
630+
*/
631+
public ChangeDataCaptures changeDataCaptures() {
632+
if (this.changeDataCaptures == null) {
633+
this.changeDataCaptures = new ChangeDataCapturesImpl(clientObject.getChangeDataCaptures(), this);
634+
}
635+
return changeDataCaptures;
636+
}
637+
622638
/**
623639
* @return Wrapped service client DataFactoryManagementClient providing direct access to the underlying
624640
* auto-generated API implementation, based on Azure REST API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.datafactory.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.datafactory.fluent.models.ChangeDataCaptureResourceInner;
13+
14+
/** An instance of this class provides access to all the operations defined in ChangeDataCapturesClient. */
15+
public interface ChangeDataCapturesClient {
16+
/**
17+
* Lists all resources of type change data capture.
18+
*
19+
* @param resourceGroupName The resource group name.
20+
* @param factoryName The factory name.
21+
* @throws IllegalArgumentException thrown if parameters fail the validation.
22+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
23+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24+
* @return a list of change data capture resources as paginated response with {@link PagedIterable}.
25+
*/
26+
@ServiceMethod(returns = ReturnType.COLLECTION)
27+
PagedIterable<ChangeDataCaptureResourceInner> listByFactory(String resourceGroupName, String factoryName);
28+
29+
/**
30+
* Lists all resources of type change data capture.
31+
*
32+
* @param resourceGroupName The resource group name.
33+
* @param factoryName The factory name.
34+
* @param context The context to associate with this operation.
35+
* @throws IllegalArgumentException thrown if parameters fail the validation.
36+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
37+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38+
* @return a list of change data capture resources as paginated response with {@link PagedIterable}.
39+
*/
40+
@ServiceMethod(returns = ReturnType.COLLECTION)
41+
PagedIterable<ChangeDataCaptureResourceInner> listByFactory(
42+
String resourceGroupName, String factoryName, Context context);
43+
44+
/**
45+
* Creates or updates a change data capture resource.
46+
*
47+
* @param resourceGroupName The resource group name.
48+
* @param factoryName The factory name.
49+
* @param changeDataCaptureName The change data capture name.
50+
* @param changeDataCapture Change data capture resource definition.
51+
* @param ifMatch ETag of the change data capture entity. Should only be specified for update, for which it should
52+
* match existing entity or can be * for unconditional update.
53+
* @param context The context to associate with this operation.
54+
* @throws IllegalArgumentException thrown if parameters fail the validation.
55+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
56+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
57+
* @return change data capture resource type along with {@link Response}.
58+
*/
59+
@ServiceMethod(returns = ReturnType.SINGLE)
60+
Response<ChangeDataCaptureResourceInner> createOrUpdateWithResponse(
61+
String resourceGroupName,
62+
String factoryName,
63+
String changeDataCaptureName,
64+
ChangeDataCaptureResourceInner changeDataCapture,
65+
String ifMatch,
66+
Context context);
67+
68+
/**
69+
* Creates or updates a change data capture resource.
70+
*
71+
* @param resourceGroupName The resource group name.
72+
* @param factoryName The factory name.
73+
* @param changeDataCaptureName The change data capture name.
74+
* @param changeDataCapture Change data capture resource definition.
75+
* @throws IllegalArgumentException thrown if parameters fail the validation.
76+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
77+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
78+
* @return change data capture resource type.
79+
*/
80+
@ServiceMethod(returns = ReturnType.SINGLE)
81+
ChangeDataCaptureResourceInner createOrUpdate(
82+
String resourceGroupName,
83+
String factoryName,
84+
String changeDataCaptureName,
85+
ChangeDataCaptureResourceInner changeDataCapture);
86+
87+
/**
88+
* Gets a change data capture.
89+
*
90+
* @param resourceGroupName The resource group name.
91+
* @param factoryName The factory name.
92+
* @param changeDataCaptureName The change data capture name.
93+
* @param ifNoneMatch ETag of the change data capture entity. Should only be specified for get. If the ETag matches
94+
* the existing entity tag, or if * was provided, then no content will be returned.
95+
* @param context The context to associate with this operation.
96+
* @throws IllegalArgumentException thrown if parameters fail the validation.
97+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
98+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
99+
* @return a change data capture along with {@link Response}.
100+
*/
101+
@ServiceMethod(returns = ReturnType.SINGLE)
102+
Response<ChangeDataCaptureResourceInner> getWithResponse(
103+
String resourceGroupName,
104+
String factoryName,
105+
String changeDataCaptureName,
106+
String ifNoneMatch,
107+
Context context);
108+
109+
/**
110+
* Gets a change data capture.
111+
*
112+
* @param resourceGroupName The resource group name.
113+
* @param factoryName The factory name.
114+
* @param changeDataCaptureName The change data capture name.
115+
* @throws IllegalArgumentException thrown if parameters fail the validation.
116+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
117+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
118+
* @return a change data capture.
119+
*/
120+
@ServiceMethod(returns = ReturnType.SINGLE)
121+
ChangeDataCaptureResourceInner get(String resourceGroupName, String factoryName, String changeDataCaptureName);
122+
123+
/**
124+
* Deletes a change data capture.
125+
*
126+
* @param resourceGroupName The resource group name.
127+
* @param factoryName The factory name.
128+
* @param changeDataCaptureName The change data capture name.
129+
* @param context The context to associate with this operation.
130+
* @throws IllegalArgumentException thrown if parameters fail the validation.
131+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
132+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
133+
* @return the {@link Response}.
134+
*/
135+
@ServiceMethod(returns = ReturnType.SINGLE)
136+
Response<Void> deleteWithResponse(
137+
String resourceGroupName, String factoryName, String changeDataCaptureName, Context context);
138+
139+
/**
140+
* Deletes a change data capture.
141+
*
142+
* @param resourceGroupName The resource group name.
143+
* @param factoryName The factory name.
144+
* @param changeDataCaptureName The change data capture name.
145+
* @throws IllegalArgumentException thrown if parameters fail the validation.
146+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
147+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
148+
*/
149+
@ServiceMethod(returns = ReturnType.SINGLE)
150+
void delete(String resourceGroupName, String factoryName, String changeDataCaptureName);
151+
152+
/**
153+
* Starts a change data capture.
154+
*
155+
* @param resourceGroupName The resource group name.
156+
* @param factoryName The factory name.
157+
* @param changeDataCaptureName The change data capture name.
158+
* @param context The context to associate with this operation.
159+
* @throws IllegalArgumentException thrown if parameters fail the validation.
160+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
161+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
162+
* @return the {@link Response}.
163+
*/
164+
@ServiceMethod(returns = ReturnType.SINGLE)
165+
Response<Void> startWithResponse(
166+
String resourceGroupName, String factoryName, String changeDataCaptureName, Context context);
167+
168+
/**
169+
* Starts a change data capture.
170+
*
171+
* @param resourceGroupName The resource group name.
172+
* @param factoryName The factory name.
173+
* @param changeDataCaptureName The change data capture name.
174+
* @throws IllegalArgumentException thrown if parameters fail the validation.
175+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
176+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
177+
*/
178+
@ServiceMethod(returns = ReturnType.SINGLE)
179+
void start(String resourceGroupName, String factoryName, String changeDataCaptureName);
180+
181+
/**
182+
* Stops a change data capture.
183+
*
184+
* @param resourceGroupName The resource group name.
185+
* @param factoryName The factory name.
186+
* @param changeDataCaptureName The change data capture name.
187+
* @param context The context to associate with this operation.
188+
* @throws IllegalArgumentException thrown if parameters fail the validation.
189+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
190+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
191+
* @return the {@link Response}.
192+
*/
193+
@ServiceMethod(returns = ReturnType.SINGLE)
194+
Response<Void> stopWithResponse(
195+
String resourceGroupName, String factoryName, String changeDataCaptureName, Context context);
196+
197+
/**
198+
* Stops a change data capture.
199+
*
200+
* @param resourceGroupName The resource group name.
201+
* @param factoryName The factory name.
202+
* @param changeDataCaptureName The change data capture name.
203+
* @throws IllegalArgumentException thrown if parameters fail the validation.
204+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
205+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
206+
*/
207+
@ServiceMethod(returns = ReturnType.SINGLE)
208+
void stop(String resourceGroupName, String factoryName, String changeDataCaptureName);
209+
210+
/**
211+
* Gets the current status for the change data capture resource.
212+
*
213+
* @param resourceGroupName The resource group name.
214+
* @param factoryName The factory name.
215+
* @param changeDataCaptureName The change data capture name.
216+
* @param context The context to associate with this operation.
217+
* @throws IllegalArgumentException thrown if parameters fail the validation.
218+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
219+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
220+
* @return the current status for the change data capture resource along with {@link Response}.
221+
*/
222+
@ServiceMethod(returns = ReturnType.SINGLE)
223+
Response<String> statusWithResponse(
224+
String resourceGroupName, String factoryName, String changeDataCaptureName, Context context);
225+
226+
/**
227+
* Gets the current status for the change data capture resource.
228+
*
229+
* @param resourceGroupName The resource group name.
230+
* @param factoryName The factory name.
231+
* @param changeDataCaptureName The change data capture name.
232+
* @throws IllegalArgumentException thrown if parameters fail the validation.
233+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
234+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
235+
* @return the current status for the change data capture resource.
236+
*/
237+
@ServiceMethod(returns = ReturnType.SINGLE)
238+
String status(String resourceGroupName, String factoryName, String changeDataCaptureName);
239+
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,11 @@ public interface DataFactoryManagementClient {
197197
* @return the GlobalParametersClient object.
198198
*/
199199
GlobalParametersClient getGlobalParameters();
200+
201+
/**
202+
* Gets the ChangeDataCapturesClient object to access its operations.
203+
*
204+
* @return the ChangeDataCapturesClient object.
205+
*/
206+
ChangeDataCapturesClient getChangeDataCaptures();
200207
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public final class AmazonMwsLinkedServiceTypeProperties {
7070

7171
/*
7272
* The encrypted credential used for authentication. Credentials are encrypted using the integration runtime
73-
* credential manager. Type: string (or Expression with resultType string).
73+
* credential manager. Type: string.
7474
*/
7575
@JsonProperty(value = "encryptedCredential")
76-
private Object encryptedCredential;
76+
private String encryptedCredential;
7777

7878
/** Creates an instance of AmazonMwsLinkedServiceTypeProperties class. */
7979
public AmazonMwsLinkedServiceTypeProperties() {
@@ -269,22 +269,22 @@ public AmazonMwsLinkedServiceTypeProperties withUsePeerVerification(Object usePe
269269

270270
/**
271271
* Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
272-
* using the integration runtime credential manager. Type: string (or Expression with resultType string).
272+
* using the integration runtime credential manager. Type: string.
273273
*
274274
* @return the encryptedCredential value.
275275
*/
276-
public Object encryptedCredential() {
276+
public String encryptedCredential() {
277277
return this.encryptedCredential;
278278
}
279279

280280
/**
281281
* Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
282-
* using the integration runtime credential manager. Type: string (or Expression with resultType string).
282+
* using the integration runtime credential manager. Type: string.
283283
*
284284
* @param encryptedCredential the encryptedCredential value to set.
285285
* @return the AmazonMwsLinkedServiceTypeProperties object itself.
286286
*/
287-
public AmazonMwsLinkedServiceTypeProperties withEncryptedCredential(Object encryptedCredential) {
287+
public AmazonMwsLinkedServiceTypeProperties withEncryptedCredential(String encryptedCredential) {
288288
this.encryptedCredential = encryptedCredential;
289289
return this;
290290
}

0 commit comments

Comments
 (0)