Skip to content

Commit 2d55f82

Browse files
author
SDKAuto
committed
CodeGen from PR 24255 in Azure/azure-rest-api-specs
Merge 0fd4938701687e1d3ef56d467d80ceb18263ba54 into 0724e72994ed3c77f76ed0bfa2df3b1f0c33a41b
1 parent 81f8ebf commit 2d55f82

File tree

357 files changed

+8515
-1660
lines changed

Some content is hidden

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

357 files changed

+8515
-1660
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-06-01)
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: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55

66
- [QueryByPipelineRun](#activityruns_querybypipelinerun)
77

8+
## ChangeDataCapture
9+
10+
- [CreateOrUpdate](#changedatacapture_createorupdate)
11+
- [Delete](#changedatacapture_delete)
12+
- [Get](#changedatacapture_get)
13+
- [ListByFactory](#changedatacapture_listbyfactory)
14+
- [Start](#changedatacapture_start)
15+
- [Status](#changedatacapture_status)
16+
- [Stop](#changedatacapture_stop)
17+
818
## CredentialOperations
919

1020
- [CreateOrUpdate](#credentialoperations_createorupdate)
@@ -193,6 +203,219 @@ public final class ActivityRunsQueryByPipelineRunSamples {
193203
}
194204
```
195205

206+
### ChangeDataCapture_CreateOrUpdate
207+
208+
```java
209+
import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource;
210+
import com.azure.resourcemanager.datafactory.models.MapperPolicy;
211+
import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo;
212+
import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo;
213+
import java.util.List;
214+
215+
/** Samples for ChangeDataCapture CreateOrUpdate. */
216+
public final class ChangeDataCaptureCreateOrUpdateSamples {
217+
/*
218+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Create.json
219+
*/
220+
/**
221+
* Sample code: ChangeDataCapture_Create.
222+
*
223+
* @param manager Entry point to DataFactoryManager.
224+
*/
225+
public static void changeDataCaptureCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
226+
manager
227+
.changeDataCaptures()
228+
.define("exampleChangeDataCapture")
229+
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
230+
.withSourceConnectionsInfo((List<MapperSourceConnectionsInfo>) null)
231+
.withTargetConnectionsInfo((List<MapperTargetConnectionsInfo>) null)
232+
.withPolicy((MapperPolicy) null)
233+
.withDescription(
234+
"Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with"
235+
+ " automapped and non-automapped mappings.")
236+
.withAllowVNetOverride(false)
237+
.create();
238+
}
239+
240+
/*
241+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Update.json
242+
*/
243+
/**
244+
* Sample code: ChangeDataCapture_Update.
245+
*
246+
* @param manager Entry point to DataFactoryManager.
247+
*/
248+
public static void changeDataCaptureUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
249+
ChangeDataCaptureResource resource =
250+
manager
251+
.changeDataCaptures()
252+
.getWithResponse(
253+
"exampleResourceGroup",
254+
"exampleFactoryName",
255+
"exampleChangeDataCapture",
256+
null,
257+
com.azure.core.util.Context.NONE)
258+
.getValue();
259+
resource
260+
.update()
261+
.withDescription(
262+
"Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating"
263+
+ " table mappings.")
264+
.withAllowVNetOverride(false)
265+
.withStatus("Stopped")
266+
.apply();
267+
}
268+
}
269+
```
270+
271+
### ChangeDataCapture_Delete
272+
273+
```java
274+
/** Samples for ChangeDataCapture Delete. */
275+
public final class ChangeDataCaptureDeleteSamples {
276+
/*
277+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Delete.json
278+
*/
279+
/**
280+
* Sample code: ChangeDataCapture_Delete.
281+
*
282+
* @param manager Entry point to DataFactoryManager.
283+
*/
284+
public static void changeDataCaptureDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
285+
manager
286+
.changeDataCaptures()
287+
.deleteWithResponse(
288+
"exampleResourceGroup",
289+
"exampleFactoryName",
290+
"exampleChangeDataCapture",
291+
com.azure.core.util.Context.NONE);
292+
}
293+
}
294+
```
295+
296+
### ChangeDataCapture_Get
297+
298+
```java
299+
/** Samples for ChangeDataCapture Get. */
300+
public final class ChangeDataCaptureGetSamples {
301+
/*
302+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get.json
303+
*/
304+
/**
305+
* Sample code: ChangeDataCapture_Get.
306+
*
307+
* @param manager Entry point to DataFactoryManager.
308+
*/
309+
public static void changeDataCaptureGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
310+
manager
311+
.changeDataCaptures()
312+
.getWithResponse(
313+
"exampleResourceGroup",
314+
"exampleFactoryName",
315+
"exampleChangeDataCapture",
316+
null,
317+
com.azure.core.util.Context.NONE);
318+
}
319+
}
320+
```
321+
322+
### ChangeDataCapture_ListByFactory
323+
324+
```java
325+
/** Samples for ChangeDataCapture ListByFactory. */
326+
public final class ChangeDataCaptureListByFactorySamples {
327+
/*
328+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_ListByFactory.json
329+
*/
330+
/**
331+
* Sample code: ChangeDataCapture_ListByFactory.
332+
*
333+
* @param manager Entry point to DataFactoryManager.
334+
*/
335+
public static void changeDataCaptureListByFactory(
336+
com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
337+
manager
338+
.changeDataCaptures()
339+
.listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
340+
}
341+
}
342+
```
343+
344+
### ChangeDataCapture_Start
345+
346+
```java
347+
/** Samples for ChangeDataCapture Start. */
348+
public final class ChangeDataCaptureStartSamples {
349+
/*
350+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Start.json
351+
*/
352+
/**
353+
* Sample code: ChangeDataCapture_Start.
354+
*
355+
* @param manager Entry point to DataFactoryManager.
356+
*/
357+
public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
358+
manager
359+
.changeDataCaptures()
360+
.startWithResponse(
361+
"exampleResourceGroup",
362+
"exampleFactoryName",
363+
"exampleChangeDataCapture",
364+
com.azure.core.util.Context.NONE);
365+
}
366+
}
367+
```
368+
369+
### ChangeDataCapture_Status
370+
371+
```java
372+
/** Samples for ChangeDataCapture Status. */
373+
public final class ChangeDataCaptureStatusSamples {
374+
/*
375+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Status.json
376+
*/
377+
/**
378+
* Sample code: ChangeDataCapture_Start.
379+
*
380+
* @param manager Entry point to DataFactoryManager.
381+
*/
382+
public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
383+
manager
384+
.changeDataCaptures()
385+
.statusWithResponse(
386+
"exampleResourceGroup",
387+
"exampleFactoryName",
388+
"exampleChangeDataCapture",
389+
com.azure.core.util.Context.NONE);
390+
}
391+
}
392+
```
393+
394+
### ChangeDataCapture_Stop
395+
396+
```java
397+
/** Samples for ChangeDataCapture Stop. */
398+
public final class ChangeDataCaptureStopSamples {
399+
/*
400+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Stop.json
401+
*/
402+
/**
403+
* Sample code: ChangeDataCapture_Stop.
404+
*
405+
* @param manager Entry point to DataFactoryManager.
406+
*/
407+
public static void changeDataCaptureStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
408+
manager
409+
.changeDataCaptures()
410+
.stopWithResponse(
411+
"exampleResourceGroup",
412+
"exampleFactoryName",
413+
"exampleChangeDataCapture",
414+
com.azure.core.util.Context.NONE);
415+
}
416+
}
417+
```
418+
196419
### CredentialOperations_CreateOrUpdate
197420

198421
```java

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.

0 commit comments

Comments
 (0)