Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.16 (Unreleased)
## 1.0.0-beta.1 (2022-05-24)

- 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.15</version>
<version>1.0.0-beta.16</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
120 changes: 120 additions & 0 deletions sdk/datafactory/azure-resourcemanager-datafactory/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@
- [ListByResourceGroup](#factories_listbyresourcegroup)
- [Update](#factories_update)

## GlobalParameters

- [CreateOrUpdate](#globalparameters_createorupdate)
- [Delete](#globalparameters_delete)
- [Get](#globalparameters_get)
- [ListByFactory](#globalparameters_listbyfactory)

## IntegrationRuntimeNodes

- [Delete](#integrationruntimenodes_delete)
Expand Down Expand Up @@ -1191,6 +1198,119 @@ public final class FactoriesUpdateSamples {
}
```

### GlobalParameters_CreateOrUpdate

```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.datafactory.models.GlobalParameterResource;
import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification;
import java.util.Map;

/** Samples for GlobalParameters CreateOrUpdate. */
public final class GlobalParametersCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json
*/
/**
* Sample code: GlobalParameters_Create.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void globalParametersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.globalParameters()
.define("default")
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
.withProperties((Map<String, GlobalParameterSpecification>) null)
.create();
}

/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json
*/
/**
* Sample code: GlobalParameters_Update.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void globalParametersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
GlobalParameterResource resource =
manager
.globalParameters()
.getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", Context.NONE)
.getValue();
resource.update().apply();
}
}
```

### GlobalParameters_Delete

```java
import com.azure.core.util.Context;

/** Samples for GlobalParameters Delete. */
public final class GlobalParametersDeleteSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json
*/
/**
* Sample code: GlobalParameters_Delete.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void globalParametersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.globalParameters()
.deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "default", Context.NONE);
}
}
```

### GlobalParameters_Get

```java
import com.azure.core.util.Context;

/** Samples for GlobalParameters Get. */
public final class GlobalParametersGetSamples {
/*
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json
*/
/**
* Sample code: GlobalParameters_Get.
*
* @param manager Entry point to DataFactoryManager.
*/
public static void globalParametersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
manager
.globalParameters()
.getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", Context.NONE);
}
}
```

### GlobalParameters_ListByFactory

```java
import com.azure.core.util.Context;

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

### IntegrationRuntimeNodes_Delete

```java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import com.azure.resourcemanager.datafactory.implementation.DatasetsImpl;
import com.azure.resourcemanager.datafactory.implementation.ExposureControlsImpl;
import com.azure.resourcemanager.datafactory.implementation.FactoriesImpl;
import com.azure.resourcemanager.datafactory.implementation.GlobalParametersImpl;
import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeNodesImpl;
import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeObjectMetadatasImpl;
import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimesImpl;
Expand All @@ -51,6 +52,7 @@
import com.azure.resourcemanager.datafactory.models.Datasets;
import com.azure.resourcemanager.datafactory.models.ExposureControls;
import com.azure.resourcemanager.datafactory.models.Factories;
import com.azure.resourcemanager.datafactory.models.GlobalParameters;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodes;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeObjectMetadatas;
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimes;
Expand Down Expand Up @@ -117,6 +119,8 @@ public final class DataFactoryManager {

private PrivateLinkResources privateLinkResources;

private GlobalParameters globalParameters;

private final DataFactoryManagementClient clientObject;

private DataFactoryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -282,7 +286,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.datafactory")
.append("/")
.append("1.0.0-beta.15");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -352,7 +356,7 @@ public Operations operations() {
}

/**
* Gets the resource collection API of Factories.
* Gets the resource collection API of Factories. It manages Factory.
*
* @return Resource collection API of Factories.
*/
Expand All @@ -376,7 +380,7 @@ public ExposureControls exposureControls() {
}

/**
* Gets the resource collection API of IntegrationRuntimes.
* Gets the resource collection API of IntegrationRuntimes. It manages IntegrationRuntimeResource.
*
* @return Resource collection API of IntegrationRuntimes.
*/
Expand Down Expand Up @@ -414,7 +418,7 @@ public IntegrationRuntimeNodes integrationRuntimeNodes() {
}

/**
* Gets the resource collection API of LinkedServices.
* Gets the resource collection API of LinkedServices. It manages LinkedServiceResource.
*
* @return Resource collection API of LinkedServices.
*/
Expand All @@ -426,7 +430,7 @@ public LinkedServices linkedServices() {
}

/**
* Gets the resource collection API of Datasets.
* Gets the resource collection API of Datasets. It manages DatasetResource.
*
* @return Resource collection API of Datasets.
*/
Expand All @@ -438,7 +442,7 @@ public Datasets datasets() {
}

/**
* Gets the resource collection API of Pipelines.
* Gets the resource collection API of Pipelines. It manages PipelineResource.
*
* @return Resource collection API of Pipelines.
*/
Expand Down Expand Up @@ -474,7 +478,7 @@ public ActivityRuns activityRuns() {
}

/**
* Gets the resource collection API of Triggers.
* Gets the resource collection API of Triggers. It manages TriggerResource.
*
* @return Resource collection API of Triggers.
*/
Expand All @@ -498,7 +502,7 @@ public TriggerRuns triggerRuns() {
}

/**
* Gets the resource collection API of DataFlows.
* Gets the resource collection API of DataFlows. It manages DataFlowResource.
*
* @return Resource collection API of DataFlows.
*/
Expand All @@ -522,7 +526,7 @@ public DataFlowDebugSessions dataFlowDebugSessions() {
}

/**
* Gets the resource collection API of ManagedVirtualNetworks.
* Gets the resource collection API of ManagedVirtualNetworks. It manages ManagedVirtualNetworkResource.
*
* @return Resource collection API of ManagedVirtualNetworks.
*/
Expand All @@ -535,7 +539,7 @@ public ManagedVirtualNetworks managedVirtualNetworks() {
}

/**
* Gets the resource collection API of ManagedPrivateEndpoints.
* Gets the resource collection API of ManagedPrivateEndpoints. It manages ManagedPrivateEndpointResource.
*
* @return Resource collection API of ManagedPrivateEndpoints.
*/
Expand All @@ -561,7 +565,8 @@ public PrivateEndPointConnections privateEndPointConnections() {
}

/**
* Gets the resource collection API of PrivateEndpointConnectionOperations.
* Gets the resource collection API of PrivateEndpointConnectionOperations. It manages
* PrivateEndpointConnectionResource.
*
* @return Resource collection API of PrivateEndpointConnectionOperations.
*/
Expand All @@ -586,6 +591,18 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}

/**
* Gets the resource collection API of GlobalParameters. It manages GlobalParameterResource.
*
* @return Resource collection API of GlobalParameters.
*/
public GlobalParameters globalParameters() {
if (this.globalParameters == null) {
this.globalParameters = new GlobalParametersImpl(clientObject.getGlobalParameters(), this);
}
return globalParameters;
}

/**
* @return Wrapped service client DataFactoryManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,11 @@ public interface DataFactoryManagementClient {
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();

/**
* Gets the GlobalParametersClient object to access its operations.
*
* @return the GlobalParametersClient object.
*/
GlobalParametersClient getGlobalParameters();
}
Loading