Skip to content

Commit c1db41f

Browse files
author
SDKAuto
committed
CodeGen from PR 19247 in Azure/azure-rest-api-specs
Merge 59fdc57bc4684aed97ea547d42ba7ee9915dc7a6 into 40fdd84627937fdd8b3b06486497c8f2cfced350
1 parent 18586e8 commit c1db41f

File tree

66 files changed

+2891
-602
lines changed

Some content is hidden

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

66 files changed

+2891
-602
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.16 (Unreleased)
3+
## 1.0.0-beta.1 (2022-05-27)
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.15</version>
35+
<version>1.0.0-beta.16</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@
4545
- [ListByResourceGroup](#factories_listbyresourcegroup)
4646
- [Update](#factories_update)
4747

48+
## GlobalParameters
49+
50+
- [CreateOrUpdate](#globalparameters_createorupdate)
51+
- [Delete](#globalparameters_delete)
52+
- [Get](#globalparameters_get)
53+
- [ListByFactory](#globalparameters_listbyfactory)
54+
4855
## IntegrationRuntimeNodes
4956

5057
- [Delete](#integrationruntimenodes_delete)
@@ -1191,6 +1198,119 @@ public final class FactoriesUpdateSamples {
11911198
}
11921199
```
11931200

1201+
### GlobalParameters_CreateOrUpdate
1202+
1203+
```java
1204+
import com.azure.core.util.Context;
1205+
import com.azure.resourcemanager.datafactory.models.GlobalParameterResource;
1206+
import com.azure.resourcemanager.datafactory.models.GlobalParameterSpecification;
1207+
import java.util.Map;
1208+
1209+
/** Samples for GlobalParameters CreateOrUpdate. */
1210+
public final class GlobalParametersCreateOrUpdateSamples {
1211+
/*
1212+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json
1213+
*/
1214+
/**
1215+
* Sample code: GlobalParameters_Create.
1216+
*
1217+
* @param manager Entry point to DataFactoryManager.
1218+
*/
1219+
public static void globalParametersCreate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
1220+
manager
1221+
.globalParameters()
1222+
.define("default")
1223+
.withExistingFactory("exampleResourceGroup", "exampleFactoryName")
1224+
.withProperties((Map<String, GlobalParameterSpecification>) null)
1225+
.create();
1226+
}
1227+
1228+
/*
1229+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json
1230+
*/
1231+
/**
1232+
* Sample code: GlobalParameters_Update.
1233+
*
1234+
* @param manager Entry point to DataFactoryManager.
1235+
*/
1236+
public static void globalParametersUpdate(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
1237+
GlobalParameterResource resource =
1238+
manager
1239+
.globalParameters()
1240+
.getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", Context.NONE)
1241+
.getValue();
1242+
resource.update().apply();
1243+
}
1244+
}
1245+
```
1246+
1247+
### GlobalParameters_Delete
1248+
1249+
```java
1250+
import com.azure.core.util.Context;
1251+
1252+
/** Samples for GlobalParameters Delete. */
1253+
public final class GlobalParametersDeleteSamples {
1254+
/*
1255+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json
1256+
*/
1257+
/**
1258+
* Sample code: GlobalParameters_Delete.
1259+
*
1260+
* @param manager Entry point to DataFactoryManager.
1261+
*/
1262+
public static void globalParametersDelete(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
1263+
manager
1264+
.globalParameters()
1265+
.deleteWithResponse("exampleResourceGroup", "exampleFactoryName", "default", Context.NONE);
1266+
}
1267+
}
1268+
```
1269+
1270+
### GlobalParameters_Get
1271+
1272+
```java
1273+
import com.azure.core.util.Context;
1274+
1275+
/** Samples for GlobalParameters Get. */
1276+
public final class GlobalParametersGetSamples {
1277+
/*
1278+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json
1279+
*/
1280+
/**
1281+
* Sample code: GlobalParameters_Get.
1282+
*
1283+
* @param manager Entry point to DataFactoryManager.
1284+
*/
1285+
public static void globalParametersGet(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
1286+
manager
1287+
.globalParameters()
1288+
.getWithResponse("exampleResourceGroup", "exampleFactoryName", "default", Context.NONE);
1289+
}
1290+
}
1291+
```
1292+
1293+
### GlobalParameters_ListByFactory
1294+
1295+
```java
1296+
import com.azure.core.util.Context;
1297+
1298+
/** Samples for GlobalParameters ListByFactory. */
1299+
public final class GlobalParametersListByFactorySamples {
1300+
/*
1301+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json
1302+
*/
1303+
/**
1304+
* Sample code: GlobalParameters_ListByFactory.
1305+
*
1306+
* @param manager Entry point to DataFactoryManager.
1307+
*/
1308+
public static void globalParametersListByFactory(com.azure.resourcemanager.datafactory.DataFactoryManager manager) {
1309+
manager.globalParameters().listByFactory("exampleResourceGroup", "exampleFactoryName", Context.NONE);
1310+
}
1311+
}
1312+
```
1313+
11941314
### IntegrationRuntimeNodes_Delete
11951315

11961316
```java

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

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.azure.resourcemanager.datafactory.implementation.DatasetsImpl;
3232
import com.azure.resourcemanager.datafactory.implementation.ExposureControlsImpl;
3333
import com.azure.resourcemanager.datafactory.implementation.FactoriesImpl;
34+
import com.azure.resourcemanager.datafactory.implementation.GlobalParametersImpl;
3435
import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeNodesImpl;
3536
import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimeObjectMetadatasImpl;
3637
import com.azure.resourcemanager.datafactory.implementation.IntegrationRuntimesImpl;
@@ -51,6 +52,7 @@
5152
import com.azure.resourcemanager.datafactory.models.Datasets;
5253
import com.azure.resourcemanager.datafactory.models.ExposureControls;
5354
import com.azure.resourcemanager.datafactory.models.Factories;
55+
import com.azure.resourcemanager.datafactory.models.GlobalParameters;
5456
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeNodes;
5557
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimeObjectMetadatas;
5658
import com.azure.resourcemanager.datafactory.models.IntegrationRuntimes;
@@ -117,6 +119,8 @@ public final class DataFactoryManager {
117119

118120
private PrivateLinkResources privateLinkResources;
119121

122+
private GlobalParameters globalParameters;
123+
120124
private final DataFactoryManagementClient clientObject;
121125

122126
private DataFactoryManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -282,7 +286,7 @@ public DataFactoryManager authenticate(TokenCredential credential, AzureProfile
282286
.append("-")
283287
.append("com.azure.resourcemanager.datafactory")
284288
.append("/")
285-
.append("1.0.0-beta.15");
289+
.append("1.0.0-beta.1");
286290
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
287291
userAgentBuilder
288292
.append(" (")
@@ -352,7 +356,7 @@ public Operations operations() {
352356
}
353357

354358
/**
355-
* Gets the resource collection API of Factories.
359+
* Gets the resource collection API of Factories. It manages Factory.
356360
*
357361
* @return Resource collection API of Factories.
358362
*/
@@ -376,7 +380,7 @@ public ExposureControls exposureControls() {
376380
}
377381

378382
/**
379-
* Gets the resource collection API of IntegrationRuntimes.
383+
* Gets the resource collection API of IntegrationRuntimes. It manages IntegrationRuntimeResource.
380384
*
381385
* @return Resource collection API of IntegrationRuntimes.
382386
*/
@@ -414,7 +418,7 @@ public IntegrationRuntimeNodes integrationRuntimeNodes() {
414418
}
415419

416420
/**
417-
* Gets the resource collection API of LinkedServices.
421+
* Gets the resource collection API of LinkedServices. It manages LinkedServiceResource.
418422
*
419423
* @return Resource collection API of LinkedServices.
420424
*/
@@ -426,7 +430,7 @@ public LinkedServices linkedServices() {
426430
}
427431

428432
/**
429-
* Gets the resource collection API of Datasets.
433+
* Gets the resource collection API of Datasets. It manages DatasetResource.
430434
*
431435
* @return Resource collection API of Datasets.
432436
*/
@@ -438,7 +442,7 @@ public Datasets datasets() {
438442
}
439443

440444
/**
441-
* Gets the resource collection API of Pipelines.
445+
* Gets the resource collection API of Pipelines. It manages PipelineResource.
442446
*
443447
* @return Resource collection API of Pipelines.
444448
*/
@@ -474,7 +478,7 @@ public ActivityRuns activityRuns() {
474478
}
475479

476480
/**
477-
* Gets the resource collection API of Triggers.
481+
* Gets the resource collection API of Triggers. It manages TriggerResource.
478482
*
479483
* @return Resource collection API of Triggers.
480484
*/
@@ -498,7 +502,7 @@ public TriggerRuns triggerRuns() {
498502
}
499503

500504
/**
501-
* Gets the resource collection API of DataFlows.
505+
* Gets the resource collection API of DataFlows. It manages DataFlowResource.
502506
*
503507
* @return Resource collection API of DataFlows.
504508
*/
@@ -522,7 +526,7 @@ public DataFlowDebugSessions dataFlowDebugSessions() {
522526
}
523527

524528
/**
525-
* Gets the resource collection API of ManagedVirtualNetworks.
529+
* Gets the resource collection API of ManagedVirtualNetworks. It manages ManagedVirtualNetworkResource.
526530
*
527531
* @return Resource collection API of ManagedVirtualNetworks.
528532
*/
@@ -535,7 +539,7 @@ public ManagedVirtualNetworks managedVirtualNetworks() {
535539
}
536540

537541
/**
538-
* Gets the resource collection API of ManagedPrivateEndpoints.
542+
* Gets the resource collection API of ManagedPrivateEndpoints. It manages ManagedPrivateEndpointResource.
539543
*
540544
* @return Resource collection API of ManagedPrivateEndpoints.
541545
*/
@@ -561,7 +565,8 @@ public PrivateEndPointConnections privateEndPointConnections() {
561565
}
562566

563567
/**
564-
* Gets the resource collection API of PrivateEndpointConnectionOperations.
568+
* Gets the resource collection API of PrivateEndpointConnectionOperations. It manages
569+
* PrivateEndpointConnectionResource.
565570
*
566571
* @return Resource collection API of PrivateEndpointConnectionOperations.
567572
*/
@@ -586,6 +591,18 @@ public PrivateLinkResources privateLinkResources() {
586591
return privateLinkResources;
587592
}
588593

594+
/**
595+
* Gets the resource collection API of GlobalParameters. It manages GlobalParameterResource.
596+
*
597+
* @return Resource collection API of GlobalParameters.
598+
*/
599+
public GlobalParameters globalParameters() {
600+
if (this.globalParameters == null) {
601+
this.globalParameters = new GlobalParametersImpl(clientObject.getGlobalParameters(), this);
602+
}
603+
return globalParameters;
604+
}
605+
589606
/**
590607
* @return Wrapped service client DataFactoryManagementClient providing direct access to the underlying
591608
* auto-generated API implementation, based on Azure REST API.

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
@@ -183,4 +183,11 @@ public interface DataFactoryManagementClient {
183183
* @return the PrivateLinkResourcesClient object.
184184
*/
185185
PrivateLinkResourcesClient getPrivateLinkResources();
186+
187+
/**
188+
* Gets the GlobalParametersClient object to access its operations.
189+
*
190+
* @return the GlobalParametersClient object.
191+
*/
192+
GlobalParametersClient getGlobalParameters();
186193
}

0 commit comments

Comments
 (0)