Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-datafactory] change MongoDbAtlasDriver name #5965

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.23 (Unreleased)
## 1.0.0-beta.1 (2023-07-06)

- 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).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-datafactory</artifactId>
<version>1.0.0-beta.22</version>
<version>1.0.0-beta.23</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
223 changes: 223 additions & 0 deletions sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@

- [QueryByPipelineRun](#activityruns_querybypipelinerun)

## ChangeDataCapture

- [CreateOrUpdate](#changedatacapture_createorupdate)
- [Delete](#changedatacapture_delete)
- [Get](#changedatacapture_get)
- [ListByFactory](#changedatacapture_listbyfactory)
- [Start](#changedatacapture_start)
- [Status](#changedatacapture_status)
- [Stop](#changedatacapture_stop)

## CredentialOperations

- [CreateOrUpdate](#credentialoperations_createorupdate)
Expand Down Expand Up @@ -193,6 +203,219 @@ public final class ActivityRunsQueryByPipelineRunSamples {
}
```

### ChangeDataCapture_CreateOrUpdate

```java
import com.azure.resourcemanager.datafactory.models.ChangeDataCaptureResource;
import com.azure.resourcemanager.datafactory.models.MapperPolicy;
import com.azure.resourcemanager.datafactory.models.MapperSourceConnectionsInfo;
import com.azure.resourcemanager.datafactory.models.MapperTargetConnectionsInfo;
import java.util.List;

/** Samples for ChangeDataCapture CreateOrUpdate. */
public final class ChangeDataCaptureCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Create.json
*/
/**
* Sample code: ChangeDataCapture_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void changeDataCaptureCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.changeDataCaptures()
.define("exampleChangeDataCapture")
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
.withSourceConnectionsInfo((List<MapperSourceConnectionsInfo>) null)
.withTargetConnectionsInfo((List<MapperTargetConnectionsInfo>) null)
.withPolicy((MapperPolicy) null)
.withDescription(
"Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database with"
+ " automapped and non-automapped mappings.")
.withAllowVNetOverride(false)
.create();
}

/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Update.json
*/
/**
* Sample code: ChangeDataCapture_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void changeDataCaptureUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
ChangeDataCaptureResource resource =
manager
.changeDataCaptures()
.getWithResponse(
"exampleResourceGroup",
"exampleFactoryName",
"exampleChangeDataCapture",
null,
com.azure.core.util.Context.NONE)
.getValue();
resource
.update()
.withDescription(
"Sample demo change data capture to transfer data from delimited (csv) to Azure SQL Database. Updating"
+ " table mappings.")
.withAllowVNetOverride(false)
.withStatus("Stopped")
.apply();
}
}
```

### ChangeDataCapture_Delete

```java
/** Samples for ChangeDataCapture Delete. */
public final class ChangeDataCaptureDeleteSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Delete.json
*/
/**
* Sample code: ChangeDataCapture_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void changeDataCaptureDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.changeDataCaptures()
.deleteWithResponse(
"exampleResourceGroup",
"exampleFactoryName",
"exampleChangeDataCapture",
com.azure.core.util.Context.NONE);
}
}
```

### ChangeDataCapture_Get

```java
/** Samples for ChangeDataCapture Get. */
public final class ChangeDataCaptureGetSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Get.json
*/
/**
* Sample code: ChangeDataCapture_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void changeDataCaptureGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.changeDataCaptures()
.getWithResponse(
"exampleResourceGroup",
"exampleFactoryName",
"exampleChangeDataCapture",
null,
com.azure.core.util.Context.NONE);
}
}
```

### ChangeDataCapture_ListByFactory

```java
/** Samples for ChangeDataCapture ListByFactory. */
public final class ChangeDataCaptureListByFactorySamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_ListByFactory.json
*/
/**
* Sample code: ChangeDataCapture_ListByFactory.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void changeDataCaptureListByFactory(
com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.changeDataCaptures()
.listByFactory("exampleResourceGroup", "exampleFactoryName", com.azure.core.util.Context.NONE);
}
}
```

### ChangeDataCapture_Start

```java
/** Samples for ChangeDataCapture Start. */
public final class ChangeDataCaptureStartSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Start.json
*/
/**
* Sample code: ChangeDataCapture_Start.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.changeDataCaptures()
.startWithResponse(
"exampleResourceGroup",
"exampleFactoryName",
"exampleChangeDataCapture",
com.azure.core.util.Context.NONE);
}
}
```

### ChangeDataCapture_Status

```java
/** Samples for ChangeDataCapture Status. */
public final class ChangeDataCaptureStatusSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Status.json
*/
/**
* Sample code: ChangeDataCapture_Start.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void changeDataCaptureStart(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.changeDataCaptures()
.statusWithResponse(
"exampleResourceGroup",
"exampleFactoryName",
"exampleChangeDataCapture",
com.azure.core.util.Context.NONE);
}
}
```

### ChangeDataCapture_Stop

```java
/** Samples for ChangeDataCapture Stop. */
public final class ChangeDataCaptureStopSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ChangeDataCapture_Stop.json
*/
/**
* Sample code: ChangeDataCapture_Stop.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void changeDataCaptureStop(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.changeDataCaptures()
.stopWithResponse(
"exampleResourceGroup",
"exampleFactoryName",
"exampleChangeDataCapture",
com.azure.core.util.Context.NONE);
}
}
```

### CredentialOperations_CreateOrUpdate

```java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.datafactory.fluent.DataFactoryManagementClient;
import com.azure.resourcemanager.datafactory.implementation.ActivityRunsImpl;
import com.azure.resourcemanager.datafactory.implementation.ChangeDataCapturesImpl;
import com.azure.resourcemanager.datafactory.implementation.CredentialOperationsImpl;
import com.azure.resourcemanager.datafactory.implementation.DataFactoryManagementClientBuilder;
import com.azure.resourcemanager.datafactory.implementation.DataFlowDebugSessionsImpl;
Expand All @@ -48,6 +49,7 @@
import com.azure.resourcemanager.datafactory.implementation.TriggerRunsImpl;
import com.azure.resourcemanager.datafactory.implementation.TriggersImpl;
import com.azure.resourcemanager.datafactory.models.ActivityRuns;
import com.azure.resourcemanager.datafactory.models.ChangeDataCaptures;
import com.azure.resourcemanager.datafactory.models.CredentialOperations;
import com.azure.resourcemanager.datafactory.models.DataFlowDebugSessions;
import com.azure.resourcemanager.datafactory.models.DataFlows;
Expand Down Expand Up @@ -125,6 +127,8 @@ public final class DataFactoryManager {

private GlobalParameters globalParameters;

private ChangeDataCaptures changeDataCaptures;

private final DataFactoryManagementClient clientObject;

private DataFactoryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -290,7 +294,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.22");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -619,6 +623,18 @@ public GlobalParameters globalParameters() {
return globalParameters;
}

/**
* Gets the resource collection API of ChangeDataCaptures. It manages ChangeDataCaptureResource.
*
* @return Resource collection API of ChangeDataCaptures.
*/
public ChangeDataCaptures changeDataCaptures() {
if (this.changeDataCaptures == null) {
this.changeDataCaptures = new ChangeDataCapturesImpl(clientObject.getChangeDataCaptures(), this);
}
return changeDataCaptures;
}

/**
* @return Wrapped service client DataFactoryManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Loading