diff --git a/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md b/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md
index 56e9b80d95a4..eb00135deafd 100644
--- a/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md
+++ b/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2021-10-25)
+- Azure Resource Manager Batch client library for Java. This package contains Microsoft Azure SDK for Batch Management SDK. Batch Client. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.2 (2021-07-29)
diff --git a/sdk/batch/azure-resourcemanager-batch/README.md b/sdk/batch/azure-resourcemanager-batch/README.md
index 24bdd72cc5d2..a5fe41749117 100644
--- a/sdk/batch/azure-resourcemanager-batch/README.md
+++ b/sdk/batch/azure-resourcemanager-batch/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Batch client library for Java.
-This package contains Microsoft Azure SDK for Batch Management SDK. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Batch Management SDK. Batch Client. Package tag package-2021-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-batch
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/batch/azure-resourcemanager-batch/SAMPLE.md b/sdk/batch/azure-resourcemanager-batch/SAMPLE.md
index a014dad2fb0c..e491fbf30543 100644
--- a/sdk/batch/azure-resourcemanager-batch/SAMPLE.md
+++ b/sdk/batch/azure-resourcemanager-batch/SAMPLE.md
@@ -1,68 +1,1941 @@
# Code snippets and samples
-### Application
-
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationUpdateSamples.java)
-
-### ApplicationPackage
-
-- [Activate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageActivateSamples.java)
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageListSamples.java)
-
-### BatchAccount
-
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountDeleteSamples.java)
-- [GetByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountGetByResourceGroupSamples.java)
-- [GetKeys](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountGetKeysSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListSamples.java)
-- [ListByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListByResourceGroupSamples.java)
-- [ListOutboundNetworkDependenciesEndpoints](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java)
-- [RegenerateKey](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountRegenerateKeySamples.java)
-- [SynchronizeAutoStorageKeys](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountSynchronizeAutoStorageKeysSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountUpdateSamples.java)
-
-### Certificate
-
-- [CancelDeletion](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateCancelDeletionSamples.java)
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateGetSamples.java)
-- [ListByBatchAccount](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateListByBatchAccountSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateUpdateSamples.java)
-
-### Location
-
-- [CheckNameAvailability](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationCheckNameAvailabilitySamples.java)
-- [GetQuotas](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationGetQuotasSamples.java)
-- [ListSupportedCloudServiceSkus](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationListSupportedCloudServiceSkusSamples.java)
-- [ListSupportedVirtualMachineSkus](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationListSupportedVirtualMachineSkusSamples.java)
-
-### Pool
-
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolDeleteSamples.java)
-- [DisableAutoScale](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolDisableAutoScaleSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolGetSamples.java)
-- [ListByBatchAccount](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolListByBatchAccountSamples.java)
-- [StopResize](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolStopResizeSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolUpdateSamples.java)
-
-### PrivateEndpointConnection
-
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionGetSamples.java)
-- [ListByBatchAccount](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionListByBatchAccountSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionUpdateSamples.java)
-
-### PrivateLinkResource
-
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateLinkResourceGetSamples.java)
-- [ListByBatchAccount](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateLinkResourceListByBatchAccountSamples.java)
+## Application
+
+- [Create](#application_create)
+- [Delete](#application_delete)
+- [Get](#application_get)
+- [List](#application_list)
+- [Update](#application_update)
+
+## ApplicationPackage
+
+- [Activate](#applicationpackage_activate)
+- [Create](#applicationpackage_create)
+- [Delete](#applicationpackage_delete)
+- [Get](#applicationpackage_get)
+- [List](#applicationpackage_list)
+
+## BatchAccount
+
+- [Create](#batchaccount_create)
+- [Delete](#batchaccount_delete)
+- [GetByResourceGroup](#batchaccount_getbyresourcegroup)
+- [GetKeys](#batchaccount_getkeys)
+- [List](#batchaccount_list)
+- [ListByResourceGroup](#batchaccount_listbyresourcegroup)
+- [ListOutboundNetworkDependenciesEndpoints](#batchaccount_listoutboundnetworkdependenciesendpoints)
+- [RegenerateKey](#batchaccount_regeneratekey)
+- [SynchronizeAutoStorageKeys](#batchaccount_synchronizeautostoragekeys)
+- [Update](#batchaccount_update)
+
+## Certificate
+
+- [CancelDeletion](#certificate_canceldeletion)
+- [Create](#certificate_create)
+- [Delete](#certificate_delete)
+- [Get](#certificate_get)
+- [ListByBatchAccount](#certificate_listbybatchaccount)
+- [Update](#certificate_update)
+
+## Location
+
+- [CheckNameAvailability](#location_checknameavailability)
+- [GetQuotas](#location_getquotas)
+- [ListSupportedCloudServiceSkus](#location_listsupportedcloudserviceskus)
+- [ListSupportedVirtualMachineSkus](#location_listsupportedvirtualmachineskus)
+
+## Pool
+
+- [Create](#pool_create)
+- [Delete](#pool_delete)
+- [DisableAutoScale](#pool_disableautoscale)
+- [Get](#pool_get)
+- [ListByBatchAccount](#pool_listbybatchaccount)
+- [StopResize](#pool_stopresize)
+- [Update](#pool_update)
+
+## PrivateEndpointConnection
+
+- [Get](#privateendpointconnection_get)
+- [ListByBatchAccount](#privateendpointconnection_listbybatchaccount)
+- [Update](#privateendpointconnection_update)
+
+## PrivateLinkResource
+
+- [Get](#privatelinkresource_get)
+- [ListByBatchAccount](#privatelinkresource_listbybatchaccount)
+### Application_Create
+
+```java
+/** Samples for Application Create. */
+public final class ApplicationCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationCreate.json
+ */
+ /**
+ * Sample code: ApplicationCreate.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationCreate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .applications()
+ .define("app1")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withDisplayName("myAppName")
+ .withAllowUpdates(false)
+ .create();
+ }
+}
+```
+
+### Application_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Application Delete. */
+public final class ApplicationDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationDelete.json
+ */
+ /**
+ * Sample code: ApplicationDelete.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationDelete(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.applications().deleteWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", Context.NONE);
+ }
+}
+```
+
+### Application_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Application Get. */
+public final class ApplicationGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationGet.json
+ */
+ /**
+ * Sample code: ApplicationGet.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationGet(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.applications().getWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", Context.NONE);
+ }
+}
+```
+
+### Application_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Application List. */
+public final class ApplicationListSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationList.json
+ */
+ /**
+ * Sample code: ApplicationList.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationList(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.applications().list("default-azurebatch-japaneast", "sampleacct", null, Context.NONE);
+ }
+}
+```
+
+### Application_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.batch.models.Application;
+
+/** Samples for Application Update. */
+public final class ApplicationUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationUpdate.json
+ */
+ /**
+ * Sample code: ApplicationUpdate.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationUpdate(com.azure.resourcemanager.batch.BatchManager manager) {
+ Application resource =
+ manager
+ .applications()
+ .getWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", Context.NONE)
+ .getValue();
+ resource.update().withDisplayName("myAppName").withAllowUpdates(true).withDefaultVersion("2").apply();
+ }
+}
+```
+
+### ApplicationPackage_Activate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.batch.models.ActivateApplicationPackageParameters;
+
+/** Samples for ApplicationPackage Activate. */
+public final class ApplicationPackageActivateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageActivate.json
+ */
+ /**
+ * Sample code: ApplicationPackageActivate.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationPackageActivate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .applicationPackages()
+ .activateWithResponse(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ "app1",
+ "1",
+ new ActivateApplicationPackageParameters().withFormat("zip"),
+ Context.NONE);
+ }
+}
+```
+
+### ApplicationPackage_Create
+
+```java
+/** Samples for ApplicationPackage Create. */
+public final class ApplicationPackageCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageCreate.json
+ */
+ /**
+ * Sample code: ApplicationPackageCreate.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationPackageCreate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .applicationPackages()
+ .define("1")
+ .withExistingApplication("default-azurebatch-japaneast", "sampleacct", "app1")
+ .create();
+ }
+}
+```
+
+### ApplicationPackage_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ApplicationPackage Delete. */
+public final class ApplicationPackageDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageDelete.json
+ */
+ /**
+ * Sample code: ApplicationPackageDelete.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationPackageDelete(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .applicationPackages()
+ .deleteWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", "1", Context.NONE);
+ }
+}
+```
+
+### ApplicationPackage_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ApplicationPackage Get. */
+public final class ApplicationPackageGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageGet.json
+ */
+ /**
+ * Sample code: ApplicationPackageGet.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationPackageGet(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .applicationPackages()
+ .getWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", "1", Context.NONE);
+ }
+}
+```
+
+### ApplicationPackage_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ApplicationPackage List. */
+public final class ApplicationPackageListSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageList.json
+ */
+ /**
+ * Sample code: ApplicationPackageList.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void applicationPackageList(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.applicationPackages().list("default-azurebatch-japaneast", "sampleacct", "app1", null, Context.NONE);
+ }
+}
+```
+
+### BatchAccount_Create
+
+```java
+import com.azure.resourcemanager.batch.models.AutoStorageBaseProperties;
+import com.azure.resourcemanager.batch.models.BatchAccountIdentity;
+import com.azure.resourcemanager.batch.models.KeyVaultReference;
+import com.azure.resourcemanager.batch.models.PoolAllocationMode;
+import com.azure.resourcemanager.batch.models.PublicNetworkAccessType;
+import com.azure.resourcemanager.batch.models.ResourceIdentityType;
+import com.azure.resourcemanager.batch.models.UserAssignedIdentities;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for BatchAccount Create. */
+public final class BatchAccountCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountCreate_BYOS.json
+ */
+ /**
+ * Sample code: BatchAccountCreate_BYOS.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountCreateBYOS(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .define("sampleacct")
+ .withRegion("japaneast")
+ .withExistingResourceGroup("default-azurebatch-japaneast")
+ .withAutoStorage(
+ new AutoStorageBaseProperties()
+ .withStorageAccountId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ .withPoolAllocationMode(PoolAllocationMode.USER_SUBSCRIPTION)
+ .withKeyVaultReference(
+ new KeyVaultReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample")
+ .withUrl("http://sample.vault.azure.net/"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountCreate_UserAssignedIdentity.json
+ */
+ /**
+ * Sample code: BatchAccountCreate_UserAssignedIdentity.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountCreateUserAssignedIdentity(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .define("sampleacct")
+ .withRegion("japaneast")
+ .withExistingResourceGroup("default-azurebatch-japaneast")
+ .withIdentity(
+ new BatchAccountIdentity()
+ .withType(ResourceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
+ new UserAssignedIdentities())))
+ .withAutoStorage(
+ new AutoStorageBaseProperties()
+ .withStorageAccountId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateBatchAccountCreate.json
+ */
+ /**
+ * Sample code: PrivateBatchAccountCreate.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void privateBatchAccountCreate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .define("sampleacct")
+ .withRegion("japaneast")
+ .withExistingResourceGroup("default-azurebatch-japaneast")
+ .withAutoStorage(
+ new AutoStorageBaseProperties()
+ .withStorageAccountId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ .withKeyVaultReference(
+ new KeyVaultReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample")
+ .withUrl("http://sample.vault.azure.net/"))
+ .withPublicNetworkAccess(PublicNetworkAccessType.DISABLED)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
+ */
+ /**
+ * Sample code: BatchAccountCreate_SystemAssignedIdentity.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountCreateSystemAssignedIdentity(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .define("sampleacct")
+ .withRegion("japaneast")
+ .withExistingResourceGroup("default-azurebatch-japaneast")
+ .withIdentity(new BatchAccountIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
+ .withAutoStorage(
+ new AutoStorageBaseProperties()
+ .withStorageAccountId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountCreate_Default.json
+ */
+ /**
+ * Sample code: BatchAccountCreate_Default.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountCreateDefault(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .define("sampleacct")
+ .withRegion("japaneast")
+ .withExistingResourceGroup("default-azurebatch-japaneast")
+ .withAutoStorage(
+ new AutoStorageBaseProperties()
+ .withStorageAccountId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### BatchAccount_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount Delete. */
+public final class BatchAccountDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountDelete.json
+ */
+ /**
+ * Sample code: BatchAccountDelete.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountDelete(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().delete("default-azurebatch-japaneast", "sampleacct", Context.NONE);
+ }
+}
+```
+
+### BatchAccount_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount GetByResourceGroup. */
+public final class BatchAccountGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateBatchAccountGet.json
+ */
+ /**
+ * Sample code: PrivateBatchAccountGet.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void privateBatchAccountGet(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .getByResourceGroupWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountGet.json
+ */
+ /**
+ * Sample code: BatchAccountGet.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountGet(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .getByResourceGroupWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
+ }
+}
+```
+
+### BatchAccount_GetKeys
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount GetKeys. */
+public final class BatchAccountGetKeysSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountGetKeys.json
+ */
+ /**
+ * Sample code: BatchAccountGetKeys.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountGetKeys(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().getKeysWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
+ }
+}
+```
+
+### BatchAccount_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount List. */
+public final class BatchAccountListSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountList.json
+ */
+ /**
+ * Sample code: BatchAccountList.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountList(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().list(Context.NONE);
+ }
+}
+```
+
+### BatchAccount_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount ListByResourceGroup. */
+public final class BatchAccountListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountListByResourceGroup.json
+ */
+ /**
+ * Sample code: BatchAccountListByResourceGroup.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountListByResourceGroup(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().listByResourceGroup("default-azurebatch-japaneast", Context.NONE);
+ }
+}
+```
+
+### BatchAccount_ListOutboundNetworkDependenciesEndpoints
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount ListOutboundNetworkDependenciesEndpoints. */
+public final class BatchAccountListOutboundNetworkDependenciesEndpointsSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
+ */
+ /**
+ * Sample code: ListOutboundNetworkDependencies.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void listOutboundNetworkDependencies(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .listOutboundNetworkDependenciesEndpoints("default-azurebatch-japaneast", "sampleacct", Context.NONE);
+ }
+}
+```
+
+### BatchAccount_RegenerateKey
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.batch.models.AccountKeyType;
+import com.azure.resourcemanager.batch.models.BatchAccountRegenerateKeyParameters;
+
+/** Samples for BatchAccount RegenerateKey. */
+public final class BatchAccountRegenerateKeySamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountRegenerateKey.json
+ */
+ /**
+ * Sample code: BatchAccountRegenerateKey.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountRegenerateKey(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .regenerateKeyWithResponse(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ new BatchAccountRegenerateKeyParameters().withKeyName(AccountKeyType.PRIMARY),
+ Context.NONE);
+ }
+}
+```
+
+### BatchAccount_SynchronizeAutoStorageKeys
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount SynchronizeAutoStorageKeys. */
+public final class BatchAccountSynchronizeAutoStorageKeysSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
+ */
+ /**
+ * Sample code: BatchAccountSynchronizeAutoStorageKeys.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountSynchronizeAutoStorageKeys(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .synchronizeAutoStorageKeysWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
+ }
+}
+```
+
+### BatchAccount_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.batch.models.AutoStorageBaseProperties;
+import com.azure.resourcemanager.batch.models.BatchAccount;
+
+/** Samples for BatchAccount Update. */
+public final class BatchAccountUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountUpdate.json
+ */
+ /**
+ * Sample code: BatchAccountUpdate.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void batchAccountUpdate(com.azure.resourcemanager.batch.BatchManager manager) {
+ BatchAccount resource =
+ manager
+ .batchAccounts()
+ .getByResourceGroupWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withAutoStorage(
+ new AutoStorageBaseProperties()
+ .withStorageAccountId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ .apply();
+ }
+}
+```
+
+### Certificate_CancelDeletion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificate CancelDeletion. */
+public final class CertificateCancelDeletionSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateCancelDeletion.json
+ */
+ /**
+ * Sample code: CertificateCancelDeletion.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void certificateCancelDeletion(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .cancelDeletionWithResponse(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ Context.NONE);
+ }
+}
+```
+
+### Certificate_Create
+
+```java
+import com.azure.resourcemanager.batch.models.CertificateFormat;
+
+/** Samples for Certificate Create. */
+public final class CertificateCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateCreate_Full.json
+ */
+ /**
+ * Sample code: CreateCertificate - Full.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createCertificateFull(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withData("MIIJsgIBAzCCCW4GCSqGSIb3DQE...")
+ .withPassword("")
+ .withThumbprintAlgorithm("sha1")
+ .withThumbprint("0a0e4f50d51beadeac1d35afc5116098e7902e6e")
+ .withFormat(CertificateFormat.PFX)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateCreate_Minimal.json
+ */
+ /**
+ * Sample code: CreateCertificate - Minimal Pfx.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createCertificateMinimalPfx(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withData("MIIJsgIBAzCCCW4GCSqGSIb3DQE...")
+ .withPassword("")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateCreate_MinimalCer.json
+ */
+ /**
+ * Sample code: CreateCertificate - Minimal Cer.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createCertificateMinimalCer(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withData("MIICrjCCAZagAwI...")
+ .withFormat(CertificateFormat.CER)
+ .create();
+ }
+}
+```
+
+### Certificate_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificate Delete. */
+public final class CertificateDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateDelete.json
+ */
+ /**
+ * Sample code: CertificateDelete.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void certificateDelete(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .delete(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ Context.NONE);
+ }
+}
+```
+
+### Certificate_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificate Get. */
+public final class CertificateGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateGetWithDeletionError.json
+ */
+ /**
+ * Sample code: Get Certificate with Deletion Error.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getCertificateWithDeletionError(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .getWithResponse(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateGet.json
+ */
+ /**
+ * Sample code: Get Certificate.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getCertificate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .getWithResponse(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ Context.NONE);
+ }
+}
+```
+
+### Certificate_ListByBatchAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Certificate ListByBatchAccount. */
+public final class CertificateListByBatchAccountSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateListWithFilter.json
+ */
+ /**
+ * Sample code: ListCertificates - Filter and Select.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void listCertificatesFilterAndSelect(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .listByBatchAccount(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ null,
+ "properties/format,properties/provisioningState",
+ "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq"
+ + " 'Failed'",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateList.json
+ */
+ /**
+ * Sample code: ListCertificates.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void listCertificates(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .certificates()
+ .listByBatchAccount("default-azurebatch-japaneast", "sampleacct", 1, null, null, Context.NONE);
+ }
+}
+```
+
+### Certificate_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.batch.models.Certificate;
+
+/** Samples for Certificate Update. */
+public final class CertificateUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateUpdate.json
+ */
+ /**
+ * Sample code: UpdateCertificate.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void updateCertificate(com.azure.resourcemanager.batch.BatchManager manager) {
+ Certificate resource =
+ manager
+ .certificates()
+ .getWithResponse(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
+ Context.NONE)
+ .getValue();
+ resource.update().withData("MIIJsgIBAzCCCW4GCSqGSIb3DQE...").withPassword("").apply();
+ }
+}
+```
+
+### Location_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.batch.models.CheckNameAvailabilityParameters;
+
+/** Samples for Location CheckNameAvailability. */
+public final class LocationCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationCheckNameAvailability_AlreadyExists.json
+ */
+ /**
+ * Sample code: LocationCheckNameAvailability_AlreadyExists.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void locationCheckNameAvailabilityAlreadyExists(
+ com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .locations()
+ .checkNameAvailabilityWithResponse(
+ "japaneast", new CheckNameAvailabilityParameters().withName("existingaccountname"), Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationCheckNameAvailability_Available.json
+ */
+ /**
+ * Sample code: LocationCheckNameAvailability_Available.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void locationCheckNameAvailabilityAvailable(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .locations()
+ .checkNameAvailabilityWithResponse(
+ "japaneast", new CheckNameAvailabilityParameters().withName("newaccountname"), Context.NONE);
+ }
+}
+```
+
+### Location_GetQuotas
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Location GetQuotas. */
+public final class LocationGetQuotasSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationGetQuotas.json
+ */
+ /**
+ * Sample code: LocationGetQuotas.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void locationGetQuotas(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.locations().getQuotasWithResponse("japaneast", Context.NONE);
+ }
+}
+```
+
+### Location_ListSupportedCloudServiceSkus
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Location ListSupportedCloudServiceSkus. */
+public final class LocationListSupportedCloudServiceSkusSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationListCloudServiceSkus.json
+ */
+ /**
+ * Sample code: LocationListCloudServiceSkus.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void locationListCloudServiceSkus(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.locations().listSupportedCloudServiceSkus("japaneast", null, null, Context.NONE);
+ }
+}
+```
+
+### Location_ListSupportedVirtualMachineSkus
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Location ListSupportedVirtualMachineSkus. */
+public final class LocationListSupportedVirtualMachineSkusSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationListVirtualMachineSkus.json
+ */
+ /**
+ * Sample code: LocationListVirtualMachineSkus.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void locationListVirtualMachineSkus(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.locations().listSupportedVirtualMachineSkus("japaneast", null, null, Context.NONE);
+ }
+}
+```
+
+### Pool_Create
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.batch.models.ApplicationPackageReference;
+import com.azure.resourcemanager.batch.models.AutoScaleSettings;
+import com.azure.resourcemanager.batch.models.AutoUserScope;
+import com.azure.resourcemanager.batch.models.AutoUserSpecification;
+import com.azure.resourcemanager.batch.models.BatchPoolIdentity;
+import com.azure.resourcemanager.batch.models.CachingType;
+import com.azure.resourcemanager.batch.models.CertificateReference;
+import com.azure.resourcemanager.batch.models.CertificateStoreLocation;
+import com.azure.resourcemanager.batch.models.CertificateVisibility;
+import com.azure.resourcemanager.batch.models.CloudServiceConfiguration;
+import com.azure.resourcemanager.batch.models.ComputeNodeDeallocationOption;
+import com.azure.resourcemanager.batch.models.ComputeNodeFillType;
+import com.azure.resourcemanager.batch.models.DataDisk;
+import com.azure.resourcemanager.batch.models.DeploymentConfiguration;
+import com.azure.resourcemanager.batch.models.DiffDiskPlacement;
+import com.azure.resourcemanager.batch.models.DiffDiskSettings;
+import com.azure.resourcemanager.batch.models.DiskEncryptionConfiguration;
+import com.azure.resourcemanager.batch.models.DiskEncryptionTarget;
+import com.azure.resourcemanager.batch.models.ElevationLevel;
+import com.azure.resourcemanager.batch.models.EnvironmentSetting;
+import com.azure.resourcemanager.batch.models.FixedScaleSettings;
+import com.azure.resourcemanager.batch.models.ImageReference;
+import com.azure.resourcemanager.batch.models.InboundEndpointProtocol;
+import com.azure.resourcemanager.batch.models.InboundNatPool;
+import com.azure.resourcemanager.batch.models.InterNodeCommunicationState;
+import com.azure.resourcemanager.batch.models.IpAddressProvisioningType;
+import com.azure.resourcemanager.batch.models.LinuxUserConfiguration;
+import com.azure.resourcemanager.batch.models.MetadataItem;
+import com.azure.resourcemanager.batch.models.NetworkConfiguration;
+import com.azure.resourcemanager.batch.models.NetworkSecurityGroupRule;
+import com.azure.resourcemanager.batch.models.NetworkSecurityGroupRuleAccess;
+import com.azure.resourcemanager.batch.models.NodePlacementConfiguration;
+import com.azure.resourcemanager.batch.models.NodePlacementPolicyType;
+import com.azure.resourcemanager.batch.models.OSDisk;
+import com.azure.resourcemanager.batch.models.PoolEndpointConfiguration;
+import com.azure.resourcemanager.batch.models.PoolIdentityType;
+import com.azure.resourcemanager.batch.models.PublicIpAddressConfiguration;
+import com.azure.resourcemanager.batch.models.ResourceFile;
+import com.azure.resourcemanager.batch.models.ScaleSettings;
+import com.azure.resourcemanager.batch.models.StartTask;
+import com.azure.resourcemanager.batch.models.StorageAccountType;
+import com.azure.resourcemanager.batch.models.TaskSchedulingPolicy;
+import com.azure.resourcemanager.batch.models.UserAccount;
+import com.azure.resourcemanager.batch.models.UserAssignedIdentities;
+import com.azure.resourcemanager.batch.models.UserIdentity;
+import com.azure.resourcemanager.batch.models.VMExtension;
+import com.azure.resourcemanager.batch.models.VirtualMachineConfiguration;
+import com.azure.resourcemanager.batch.models.WindowsConfiguration;
+import java.io.IOException;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Pool Create. */
+public final class PoolCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_SharedImageGallery.json
+ */
+ /**
+ * Sample code: CreatePool - Custom Image.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolCustomImage(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withVirtualMachineConfiguration(
+ new VirtualMachineConfiguration()
+ .withImageReference(
+ new ImageReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
+ .withNodeAgentSkuId("batch.node.ubuntu 18.04")))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_CloudServiceConfiguration.json
+ */
+ /**
+ * Sample code: CreatePool - Full CloudServiceConfiguration.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolFullCloudServiceConfiguration(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withDisplayName("my-pool-name")
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withCloudServiceConfiguration(
+ new CloudServiceConfiguration().withOsFamily("4").withOsVersion("WA-GUEST-OS-4.45_201708-01")))
+ .withScaleSettings(
+ new ScaleSettings()
+ .withFixedScale(
+ new FixedScaleSettings()
+ .withResizeTimeout(Duration.parse("PT8M"))
+ .withTargetDedicatedNodes(6)
+ .withTargetLowPriorityNodes(28)
+ .withNodeDeallocationOption(ComputeNodeDeallocationOption.TASK_COMPLETION)))
+ .withInterNodeCommunication(InterNodeCommunicationState.ENABLED)
+ .withNetworkConfiguration(
+ new NetworkConfiguration()
+ .withSubnetId(
+ "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
+ .withPublicIpAddressConfiguration(
+ new PublicIpAddressConfiguration()
+ .withProvision(IpAddressProvisioningType.USER_MANAGED)
+ .withIpAddressIds(
+ Arrays
+ .asList(
+ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135",
+ "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268"))))
+ .withTaskSlotsPerNode(13)
+ .withTaskSchedulingPolicy(new TaskSchedulingPolicy().withNodeFillType(ComputeNodeFillType.PACK))
+ .withUserAccounts(
+ Arrays
+ .asList(
+ new UserAccount()
+ .withName("username1")
+ .withPassword("")
+ .withElevationLevel(ElevationLevel.ADMIN)
+ .withLinuxUserConfiguration(
+ new LinuxUserConfiguration()
+ .withUid(1234)
+ .withGid(4567)
+ .withSshPrivateKey("sshprivatekeyvalue"))))
+ .withMetadata(
+ Arrays
+ .asList(
+ new MetadataItem().withName("metadata-1").withValue("value-1"),
+ new MetadataItem().withName("metadata-2").withValue("value-2")))
+ .withStartTask(
+ new StartTask()
+ .withCommandLine("cmd /c SET")
+ .withResourceFiles(
+ Arrays
+ .asList(
+ new ResourceFile()
+ .withHttpUrl("https://testaccount.blob.core.windows.net/example-blob-file")
+ .withFilePath("c:\\temp\\gohere")
+ .withFileMode("777")))
+ .withEnvironmentSettings(
+ Arrays.asList(new EnvironmentSetting().withName("MYSET").withValue("1234")))
+ .withUserIdentity(
+ new UserIdentity()
+ .withAutoUser(
+ new AutoUserSpecification()
+ .withScope(AutoUserScope.POOL)
+ .withElevationLevel(ElevationLevel.ADMIN)))
+ .withMaxTaskRetryCount(6)
+ .withWaitForSuccess(true))
+ .withCertificates(
+ Arrays
+ .asList(
+ new CertificateReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567")
+ .withStoreLocation(CertificateStoreLocation.LOCAL_MACHINE)
+ .withStoreName("MY")
+ .withVisibility(Arrays.asList(CertificateVisibility.REMOTE_USER))))
+ .withApplicationPackages(
+ Arrays
+ .asList(
+ new ApplicationPackageReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234")
+ .withVersion("asdf")))
+ .withApplicationLicenses(Arrays.asList("app-license0", "app-license1"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
+ */
+ /**
+ * Sample code: CreatePool - Minimal CloudServiceConfiguration.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolMinimalCloudServiceConfiguration(
+ com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withCloudServiceConfiguration(new CloudServiceConfiguration().withOsFamily("5")))
+ .withScaleSettings(new ScaleSettings().withFixedScale(new FixedScaleSettings().withTargetDedicatedNodes(3)))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
+ */
+ /**
+ * Sample code: CreatePool - Minimal VirtualMachineConfiguration.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolMinimalVirtualMachineConfiguration(
+ com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withVirtualMachineConfiguration(
+ new VirtualMachineConfiguration()
+ .withImageReference(
+ new ImageReference()
+ .withPublisher("Canonical")
+ .withOffer("UbuntuServer")
+ .withSku("18.04-LTS")
+ .withVersion("latest"))
+ .withNodeAgentSkuId("batch.node.ubuntu 18.04")))
+ .withScaleSettings(
+ new ScaleSettings()
+ .withAutoScale(
+ new AutoScaleSettings()
+ .withFormula("$TargetDedicatedNodes=1")
+ .withEvaluationInterval(Duration.parse("PT5M"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_NoPublicIPAddresses.json
+ */
+ /**
+ * Sample code: CreatePool - No public IP.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolNoPublicIP(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withVirtualMachineConfiguration(
+ new VirtualMachineConfiguration()
+ .withImageReference(
+ new ImageReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
+ .withNodeAgentSkuId("batch.node.ubuntu 18.04")))
+ .withNetworkConfiguration(
+ new NetworkConfiguration()
+ .withSubnetId(
+ "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
+ .withPublicIpAddressConfiguration(
+ new PublicIpAddressConfiguration()
+ .withProvision(IpAddressProvisioningType.NO_PUBLIC_IPADDRESSES)))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
+ */
+ /**
+ * Sample code: CreatePool - VirtualMachineConfiguration Extensions.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolVirtualMachineConfigurationExtensions(
+ com.azure.resourcemanager.batch.BatchManager manager) throws IOException {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withVirtualMachineConfiguration(
+ new VirtualMachineConfiguration()
+ .withImageReference(
+ new ImageReference()
+ .withPublisher("Canonical")
+ .withOffer("0001-com-ubuntu-server-focal")
+ .withSku("20_04-lts"))
+ .withNodeAgentSkuId("batch.node.ubuntu 20.04")
+ .withExtensions(
+ Arrays
+ .asList(
+ new VMExtension()
+ .withName("batchextension1")
+ .withPublisher("Microsoft.Azure.Security.Monitoring")
+ .withType("SecurityMonitoringForLinux")
+ .withTypeHandlerVersion("1.0")
+ .withAutoUpgradeMinorVersion(true)
+ .withSettings(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"settingsKey\":\"settingsValue\"}",
+ Object.class,
+ SerializerEncoding.JSON))
+ .withProtectedSettings(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"protectedSettingsKey\":\"protectedSettingsValue\"}",
+ Object.class,
+ SerializerEncoding.JSON))))))
+ .withScaleSettings(
+ new ScaleSettings()
+ .withAutoScale(
+ new AutoScaleSettings()
+ .withFormula("$TargetDedicatedNodes=1")
+ .withEvaluationInterval(Duration.parse("PT5M"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_UserAssignedIdentities.json
+ */
+ /**
+ * Sample code: CreatePool - UserAssignedIdentities.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolUserAssignedIdentities(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withIdentity(
+ new BatchPoolIdentity()
+ .withType(PoolIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(
+ mapOf(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
+ new UserAssignedIdentities(),
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2",
+ new UserAssignedIdentities())))
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withVirtualMachineConfiguration(
+ new VirtualMachineConfiguration()
+ .withImageReference(
+ new ImageReference()
+ .withPublisher("Canonical")
+ .withOffer("UbuntuServer")
+ .withSku("18.04-LTS")
+ .withVersion("latest"))
+ .withNodeAgentSkuId("batch.node.ubuntu 18.04")))
+ .withScaleSettings(
+ new ScaleSettings()
+ .withAutoScale(
+ new AutoScaleSettings()
+ .withFormula("$TargetDedicatedNodes=1")
+ .withEvaluationInterval(Duration.parse("PT5M"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_PublicIPs.json
+ */
+ /**
+ * Sample code: CreatePool - Public IPs.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolPublicIPs(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withVirtualMachineConfiguration(
+ new VirtualMachineConfiguration()
+ .withImageReference(
+ new ImageReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
+ .withNodeAgentSkuId("batch.node.ubuntu 18.04")))
+ .withNetworkConfiguration(
+ new NetworkConfiguration()
+ .withSubnetId(
+ "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
+ .withPublicIpAddressConfiguration(
+ new PublicIpAddressConfiguration()
+ .withProvision(IpAddressProvisioningType.USER_MANAGED)
+ .withIpAddressIds(
+ Arrays
+ .asList(
+ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_VirtualMachineConfiguration.json
+ */
+ /**
+ * Sample code: CreatePool - Full VirtualMachineConfiguration.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolFullVirtualMachineConfiguration(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("STANDARD_D4")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration()
+ .withVirtualMachineConfiguration(
+ new VirtualMachineConfiguration()
+ .withImageReference(
+ new ImageReference()
+ .withPublisher("MicrosoftWindowsServer")
+ .withOffer("WindowsServer")
+ .withSku("2016-Datacenter-SmallDisk")
+ .withVersion("latest"))
+ .withNodeAgentSkuId("batch.node.windows amd64")
+ .withWindowsConfiguration(new WindowsConfiguration().withEnableAutomaticUpdates(false))
+ .withDataDisks(
+ Arrays
+ .asList(
+ new DataDisk()
+ .withLun(0)
+ .withCaching(CachingType.READ_WRITE)
+ .withDiskSizeGB(30)
+ .withStorageAccountType(StorageAccountType.PREMIUM_LRS),
+ new DataDisk()
+ .withLun(1)
+ .withCaching(CachingType.NONE)
+ .withDiskSizeGB(200)
+ .withStorageAccountType(StorageAccountType.STANDARD_LRS)))
+ .withLicenseType("Windows_Server")
+ .withDiskEncryptionConfiguration(
+ new DiskEncryptionConfiguration()
+ .withTargets(
+ Arrays
+ .asList(DiskEncryptionTarget.OS_DISK, DiskEncryptionTarget.TEMPORARY_DISK)))
+ .withNodePlacementConfiguration(
+ new NodePlacementConfiguration().withPolicy(NodePlacementPolicyType.ZONAL))
+ .withOsDisk(
+ new OSDisk()
+ .withEphemeralOSDiskSettings(
+ new DiffDiskSettings().withPlacement(DiffDiskPlacement.CACHE_DISK)))))
+ .withScaleSettings(
+ new ScaleSettings()
+ .withAutoScale(
+ new AutoScaleSettings()
+ .withFormula("$TargetDedicatedNodes=1")
+ .withEvaluationInterval(Duration.parse("PT5M"))))
+ .withNetworkConfiguration(
+ new NetworkConfiguration()
+ .withEndpointConfiguration(
+ new PoolEndpointConfiguration()
+ .withInboundNatPools(
+ Arrays
+ .asList(
+ new InboundNatPool()
+ .withName("testnat")
+ .withProtocol(InboundEndpointProtocol.TCP)
+ .withBackendPort(12001)
+ .withFrontendPortRangeStart(15000)
+ .withFrontendPortRangeEnd(15100)
+ .withNetworkSecurityGroupRules(
+ Arrays
+ .asList(
+ new NetworkSecurityGroupRule()
+ .withPriority(150)
+ .withAccess(NetworkSecurityGroupRuleAccess.ALLOW)
+ .withSourceAddressPrefix("192.100.12.45")
+ .withSourcePortRanges(Arrays.asList("1", "2")),
+ new NetworkSecurityGroupRule()
+ .withPriority(3500)
+ .withAccess(NetworkSecurityGroupRuleAccess.DENY)
+ .withSourceAddressPrefix("*")
+ .withSourcePortRanges(Arrays.asList("*"))))))))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Pool_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pool Delete. */
+public final class PoolDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolDelete.json
+ */
+ /**
+ * Sample code: DeletePool.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void deletePool(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools().delete("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ }
+}
+```
+
+### Pool_DisableAutoScale
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pool DisableAutoScale. */
+public final class PoolDisableAutoScaleSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolDisableAutoScale.json
+ */
+ /**
+ * Sample code: Disable AutoScale.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void disableAutoScale(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .disableAutoScaleWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ }
+}
+```
+
+### Pool_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pool Get. */
+public final class PoolGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json
+ */
+ /**
+ * Sample code: GetPool - VirtualMachineConfiguration Extensions.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getPoolVirtualMachineConfigurationExtensions(
+ com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools().getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolGet.json
+ */
+ /**
+ * Sample code: GetPool.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getPool(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools().getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ }
+}
+```
+
+### Pool_ListByBatchAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pool ListByBatchAccount. */
+public final class PoolListByBatchAccountSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolList.json
+ */
+ /**
+ * Sample code: ListPool.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void listPool(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .listByBatchAccount("default-azurebatch-japaneast", "sampleacct", null, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolListWithFilter.json
+ */
+ /**
+ * Sample code: ListPoolWithFilter.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void listPoolWithFilter(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .pools()
+ .listByBatchAccount(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ 50,
+ "properties/allocationState,properties/provisioningStateTransitionTime,properties/currentDedicatedNodes,properties/currentLowPriorityNodes",
+ "startswith(name, 'po') or (properties/allocationState eq 'Steady' and"
+ + " properties/provisioningStateTransitionTime lt datetime'2017-02-02')",
+ Context.NONE);
+ }
+}
+```
+
+### Pool_StopResize
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Pool StopResize. */
+public final class PoolStopResizeSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolStopResize.json
+ */
+ /**
+ * Sample code: StopPoolResize.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void stopPoolResize(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools().stopResizeWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ }
+}
+```
+
+### Pool_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.batch.models.ApplicationPackageReference;
+import com.azure.resourcemanager.batch.models.AutoScaleSettings;
+import com.azure.resourcemanager.batch.models.CertificateReference;
+import com.azure.resourcemanager.batch.models.CertificateStoreLocation;
+import com.azure.resourcemanager.batch.models.ComputeNodeDeallocationOption;
+import com.azure.resourcemanager.batch.models.FixedScaleSettings;
+import com.azure.resourcemanager.batch.models.MetadataItem;
+import com.azure.resourcemanager.batch.models.Pool;
+import com.azure.resourcemanager.batch.models.ScaleSettings;
+import com.azure.resourcemanager.batch.models.StartTask;
+import java.time.Duration;
+import java.util.Arrays;
+
+/** Samples for Pool Update. */
+public final class PoolUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolUpdate_EnableAutoScale.json
+ */
+ /**
+ * Sample code: UpdatePool - Enable Autoscale.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void updatePoolEnableAutoscale(com.azure.resourcemanager.batch.BatchManager manager) {
+ Pool resource =
+ manager
+ .pools()
+ .getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withScaleSettings(
+ new ScaleSettings().withAutoScale(new AutoScaleSettings().withFormula("$TargetDedicatedNodes=34")))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolUpdate_RemoveStartTask.json
+ */
+ /**
+ * Sample code: UpdatePool - Remove Start Task.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void updatePoolRemoveStartTask(com.azure.resourcemanager.batch.BatchManager manager) {
+ Pool resource =
+ manager
+ .pools()
+ .getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE)
+ .getValue();
+ resource.update().withStartTask(new StartTask()).apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolUpdate_ResizePool.json
+ */
+ /**
+ * Sample code: UpdatePool - Resize Pool.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void updatePoolResizePool(com.azure.resourcemanager.batch.BatchManager manager) {
+ Pool resource =
+ manager
+ .pools()
+ .getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withScaleSettings(
+ new ScaleSettings()
+ .withFixedScale(
+ new FixedScaleSettings()
+ .withResizeTimeout(Duration.parse("PT8M"))
+ .withTargetDedicatedNodes(5)
+ .withTargetLowPriorityNodes(0)
+ .withNodeDeallocationOption(ComputeNodeDeallocationOption.TASK_COMPLETION)))
+ .apply();
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolUpdate_OtherProperties.json
+ */
+ /**
+ * Sample code: UpdatePool - Other Properties.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void updatePoolOtherProperties(com.azure.resourcemanager.batch.BatchManager manager) {
+ Pool resource =
+ manager
+ .pools()
+ .getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withMetadata(Arrays.asList(new MetadataItem().withName("key1").withValue("value1")))
+ .withCertificates(
+ Arrays
+ .asList(
+ new CertificateReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567")
+ .withStoreLocation(CertificateStoreLocation.LOCAL_MACHINE)
+ .withStoreName("MY")))
+ .withApplicationPackages(
+ Arrays
+ .asList(
+ new ApplicationPackageReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234"),
+ new ApplicationPackageReference()
+ .withId(
+ "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678")
+ .withVersion("1.0")))
+ .apply();
+ }
+}
+```
+
+### PrivateEndpointConnection_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnection Get. */
+public final class PrivateEndpointConnectionGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateEndpointConnectionGet.json
+ */
+ /**
+ * Sample code: GetPrivateEndpointConnection.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getPrivateEndpointConnection(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnection_ListByBatchAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnection ListByBatchAccount. */
+public final class PrivateEndpointConnectionListByBatchAccountSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateEndpointConnectionsList.json
+ */
+ /**
+ * Sample code: ListPrivateEndpointConnections.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void listPrivateEndpointConnections(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .privateEndpointConnections()
+ .listByBatchAccount("default-azurebatch-japaneast", "sampleacct", null, Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnection_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.batch.fluent.models.PrivateEndpointConnectionInner;
+import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionStatus;
+
+/** Samples for PrivateEndpointConnection Update. */
+public final class PrivateEndpointConnectionUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateEndpointConnectionUpdate.json
+ */
+ /**
+ * Sample code: UpdatePrivateEndpointConnection.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void updatePrivateEndpointConnection(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .privateEndpointConnections()
+ .update(
+ "default-azurebatch-japaneast",
+ "sampleacct",
+ "testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0",
+ new PrivateEndpointConnectionInner()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withStatus(PrivateLinkServiceConnectionStatus.APPROVED)
+ .withDescription("Approved by xyz.abc@company.com")),
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResource_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResource Get. */
+public final class PrivateLinkResourceGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateLinkResourceGet.json
+ */
+ /**
+ * Sample code: GetPrivateLinkResource.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getPrivateLinkResource(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .privateLinkResources()
+ .getWithResponse("default-azurebatch-japaneast", "sampleacct", "sampleacct", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResource_ListByBatchAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResource ListByBatchAccount. */
+public final class PrivateLinkResourceListByBatchAccountSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateLinkResourcesList.json
+ */
+ /**
+ * Sample code: ListPrivateLinkResource.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void listPrivateLinkResource(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .privateLinkResources()
+ .listByBatchAccount("default-azurebatch-japaneast", "sampleacct", null, Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/batch/azure-resourcemanager-batch/pom.xml b/sdk/batch/azure-resourcemanager-batch/pom.xml
index 3d36a11693f8..7894779cd54d 100644
--- a/sdk/batch/azure-resourcemanager-batch/pom.xml
+++ b/sdk/batch/azure-resourcemanager-batch/pom.xml
@@ -13,7 +13,7 @@
jar
Microsoft Azure SDK for Batch Management
- This package contains Microsoft Azure SDK for Batch Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-06.
+ This package contains Microsoft Azure SDK for Batch Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Batch Client. Package tag package-2021-06.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/BatchManager.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/BatchManager.java
index c84c8c5cfa63..526f9ce51d5c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/BatchManager.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/BatchManager.java
@@ -20,11 +20,11 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.batch.fluent.BatchManagement;
+import com.azure.resourcemanager.batch.fluent.BatchManagementClient;
import com.azure.resourcemanager.batch.implementation.ApplicationPackagesImpl;
import com.azure.resourcemanager.batch.implementation.ApplicationsImpl;
import com.azure.resourcemanager.batch.implementation.BatchAccountsImpl;
-import com.azure.resourcemanager.batch.implementation.BatchManagementBuilder;
+import com.azure.resourcemanager.batch.implementation.BatchManagementClientBuilder;
import com.azure.resourcemanager.batch.implementation.CertificatesImpl;
import com.azure.resourcemanager.batch.implementation.LocationsImpl;
import com.azure.resourcemanager.batch.implementation.OperationsImpl;
@@ -46,7 +46,7 @@
import java.util.List;
import java.util.Objects;
-/** Entry point to BatchManager. */
+/** Entry point to BatchManager. Batch Client. */
public final class BatchManager {
private BatchAccounts batchAccounts;
@@ -66,13 +66,13 @@ public final class BatchManager {
private Pools pools;
- private final BatchManagement clientObject;
+ private final BatchManagementClient clientObject;
private BatchManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject =
- new BatchManagementBuilder()
+ new BatchManagementClientBuilder()
.pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
@@ -202,7 +202,7 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.batch")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -315,10 +315,10 @@ public Pools pools() {
}
/**
- * @return Wrapped service client BatchManagement providing direct access to the underlying auto-generated API
+ * @return Wrapped service client BatchManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*/
- public BatchManagement serviceClient() {
+ public BatchManagementClient serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchAccountsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchAccountsClient.java
index d0530a007036..22a381fc336c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchAccountsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchAccountsClient.java
@@ -35,7 +35,7 @@ public interface BatchAccountsClient {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BatchAccountInner> beginCreate(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters);
@@ -55,7 +55,7 @@ SyncPoller, BatchAccountInner> beginCreate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BatchAccountInner> beginCreate(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, Context context);
@@ -137,7 +137,7 @@ Response updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName);
/**
@@ -151,7 +151,7 @@ Response updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context);
/**
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagement.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagementClient.java
similarity index 96%
rename from sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagement.java
rename to sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagementClient.java
index dd2c8e05e25f..29df78dc2098 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagement.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagementClient.java
@@ -7,8 +7,8 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for BatchManagement class. */
-public interface BatchManagement {
+/** The interface for BatchManagementClient class. */
+public interface BatchManagementClient {
/**
* Gets The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
*
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java
index c2a055cae8cf..cdf63b2837cc 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java
@@ -162,7 +162,7 @@ CertificatesUpdateResponse updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String certificateName);
@@ -179,7 +179,7 @@ SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String certificateName, Context context);
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PoolsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PoolsClient.java
index 2e42e0e0d21d..db065c7168ed 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PoolsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PoolsClient.java
@@ -154,7 +154,7 @@ PoolsUpdateResponse updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName);
/**
@@ -169,7 +169,7 @@ PoolsUpdateResponse updateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String poolName, Context context);
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateEndpointConnectionsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateEndpointConnectionsClient.java
index e38582df1f23..6ff465c9c19d 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateEndpointConnectionsClient.java
@@ -93,7 +93,7 @@ Response getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about a private link resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdate(
String resourceGroupName,
String accountName,
@@ -118,7 +118,7 @@ SyncPoller, PrivateEndpointConnection
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about a private link resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdate(
String resourceGroupName,
String accountName,
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/package-info.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/package-info.java
index 84e1c03ace96..3349317527bf 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/package-info.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/package-info.java
@@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the inner data models for BatchManagement. null. */
+/** Package containing the inner data models for BatchManagementClient. Batch Client. */
package com.azure.resourcemanager.batch.fluent.models;
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/package-info.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/package-info.java
index 9dd56b992022..a4747ad952c9 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/package-info.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/package-info.java
@@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the service clients for BatchManagement. null. */
+/** Package containing the service clients for BatchManagementClient. Batch Client. */
package com.azure.resourcemanager.batch.fluent;
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesClientImpl.java
index c734776fe44f..7a324a6a93d4 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesClientImpl.java
@@ -44,25 +44,25 @@ public final class ApplicationPackagesClientImpl implements ApplicationPackagesC
private final ApplicationPackagesService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of ApplicationPackagesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ApplicationPackagesClientImpl(BatchManagementImpl client) {
+ ApplicationPackagesClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(ApplicationPackagesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for BatchManagementApplicationPackages to be used by the proxy service to
- * perform REST calls.
+ * The interface defining all the services for BatchManagementClientApplicationPackages to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementAppli")
+ @ServiceInterface(name = "BatchManagementClien")
private interface ApplicationPackagesService {
@Headers({"Content-Type: application/json"})
@Post(
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsClientImpl.java
index e956e2b0f53a..854bb63ae10b 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsClientImpl.java
@@ -43,25 +43,25 @@ public final class ApplicationsClientImpl implements ApplicationsClient {
private final ApplicationsService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of ApplicationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ApplicationsClientImpl(BatchManagementImpl client) {
+ ApplicationsClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(ApplicationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for BatchManagementApplications to be used by the proxy service to
+ * The interface defining all the services for BatchManagementClientApplications to be used by the proxy service to
* perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementAppli")
+ @ServiceInterface(name = "BatchManagementClien")
private interface ApplicationsService {
@Headers({"Content-Type: application/json"})
@Put(
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountsClientImpl.java
index e5fd98147bb6..a8afbd17bcd6 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountsClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountsClientImpl.java
@@ -55,25 +55,25 @@ public final class BatchAccountsClientImpl implements BatchAccountsClient {
private final BatchAccountsService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of BatchAccountsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- BatchAccountsClientImpl(BatchManagementImpl client) {
+ BatchAccountsClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(BatchAccountsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for BatchManagementBatchAccounts to be used by the proxy service to
+ * The interface defining all the services for BatchManagementClientBatchAccounts to be used by the proxy service to
* perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementBatch")
+ @ServiceInterface(name = "BatchManagementClien")
private interface BatchAccountsService {
@Headers({"Content-Type: application/json"})
@Put(
@@ -385,7 +385,7 @@ private Mono>> createWithResponseAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, BatchAccountInner> beginCreateAsync(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters) {
Mono>> mono = createWithResponseAsync(resourceGroupName, accountName, parameters);
@@ -411,7 +411,7 @@ private PollerFlux, BatchAccountInner> beginCreate
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, BatchAccountInner> beginCreateAsync(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, Context context) {
context = this.client.mergeContext(context);
@@ -438,7 +438,7 @@ private PollerFlux, BatchAccountInner> beginCreate
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, BatchAccountInner> beginCreate(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters) {
return beginCreateAsync(resourceGroupName, accountName, parameters).getSyncPoller();
@@ -460,7 +460,7 @@ public SyncPoller, BatchAccountInner> beginCreate(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about an Azure Batch account.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, BatchAccountInner> beginCreate(
String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, Context context) {
return beginCreateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller();
@@ -827,7 +827,7 @@ private Mono>> deleteWithResponseAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String accountName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName);
return this
@@ -846,7 +846,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String accountName, Context context) {
context = this.client.mergeContext(context);
@@ -866,7 +866,7 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) {
return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller();
}
@@ -882,7 +882,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, Context context) {
return beginDeleteAsync(resourceGroupName, accountName, context).getSyncPoller();
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementBuilder.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientBuilder.java
similarity index 74%
rename from sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementBuilder.java
rename to sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientBuilder.java
index 4330caf2ccbc..b8c93ae89743 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementBuilder.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientBuilder.java
@@ -15,9 +15,9 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the BatchManagementImpl type. */
-@ServiceClientBuilder(serviceClients = {BatchManagementImpl.class})
-public final class BatchManagementBuilder {
+/** A builder for creating a new instance of the BatchManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {BatchManagementClientImpl.class})
+public final class BatchManagementClientBuilder {
/*
* The Azure subscription ID. This is a GUID-formatted string (e.g.
* 00000000-0000-0000-0000-000000000000)
@@ -28,9 +28,9 @@ public final class BatchManagementBuilder {
* Sets The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
*
* @param subscriptionId the subscriptionId value.
- * @return the BatchManagementBuilder.
+ * @return the BatchManagementClientBuilder.
*/
- public BatchManagementBuilder subscriptionId(String subscriptionId) {
+ public BatchManagementClientBuilder subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
@@ -44,9 +44,9 @@ public BatchManagementBuilder subscriptionId(String subscriptionId) {
* Sets server parameter.
*
* @param endpoint the endpoint value.
- * @return the BatchManagementBuilder.
+ * @return the BatchManagementClientBuilder.
*/
- public BatchManagementBuilder endpoint(String endpoint) {
+ public BatchManagementClientBuilder endpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}
@@ -60,9 +60,9 @@ public BatchManagementBuilder endpoint(String endpoint) {
* Sets The environment to connect to.
*
* @param environment the environment value.
- * @return the BatchManagementBuilder.
+ * @return the BatchManagementClientBuilder.
*/
- public BatchManagementBuilder environment(AzureEnvironment environment) {
+ public BatchManagementClientBuilder environment(AzureEnvironment environment) {
this.environment = environment;
return this;
}
@@ -76,9 +76,9 @@ public BatchManagementBuilder environment(AzureEnvironment environment) {
* Sets The default poll interval for long-running operation.
*
* @param defaultPollInterval the defaultPollInterval value.
- * @return the BatchManagementBuilder.
+ * @return the BatchManagementClientBuilder.
*/
- public BatchManagementBuilder defaultPollInterval(Duration defaultPollInterval) {
+ public BatchManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -92,9 +92,9 @@ public BatchManagementBuilder defaultPollInterval(Duration defaultPollInterval)
* Sets The HTTP pipeline to send requests through.
*
* @param pipeline the pipeline value.
- * @return the BatchManagementBuilder.
+ * @return the BatchManagementClientBuilder.
*/
- public BatchManagementBuilder pipeline(HttpPipeline pipeline) {
+ public BatchManagementClientBuilder pipeline(HttpPipeline pipeline) {
this.pipeline = pipeline;
return this;
}
@@ -108,19 +108,19 @@ public BatchManagementBuilder pipeline(HttpPipeline pipeline) {
* Sets The serializer to serialize an object into a string.
*
* @param serializerAdapter the serializerAdapter value.
- * @return the BatchManagementBuilder.
+ * @return the BatchManagementClientBuilder.
*/
- public BatchManagementBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ public BatchManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
this.serializerAdapter = serializerAdapter;
return this;
}
/**
- * Builds an instance of BatchManagementImpl with the provided parameters.
+ * Builds an instance of BatchManagementClientImpl with the provided parameters.
*
- * @return an instance of BatchManagementImpl.
+ * @return an instance of BatchManagementClientImpl.
*/
- public BatchManagementImpl buildClient() {
+ public BatchManagementClientImpl buildClient() {
if (endpoint == null) {
this.endpoint = "https://management.azure.com";
}
@@ -139,8 +139,8 @@ public BatchManagementImpl buildClient() {
if (serializerAdapter == null) {
this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
}
- BatchManagementImpl client =
- new BatchManagementImpl(
+ BatchManagementClientImpl client =
+ new BatchManagementClientImpl(
pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
return client;
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientImpl.java
similarity index 97%
rename from sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementImpl.java
rename to sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientImpl.java
index d393afe132cc..26f3d993d70b 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientImpl.java
@@ -24,7 +24,7 @@
import com.azure.resourcemanager.batch.fluent.ApplicationPackagesClient;
import com.azure.resourcemanager.batch.fluent.ApplicationsClient;
import com.azure.resourcemanager.batch.fluent.BatchAccountsClient;
-import com.azure.resourcemanager.batch.fluent.BatchManagement;
+import com.azure.resourcemanager.batch.fluent.BatchManagementClient;
import com.azure.resourcemanager.batch.fluent.CertificatesClient;
import com.azure.resourcemanager.batch.fluent.LocationsClient;
import com.azure.resourcemanager.batch.fluent.OperationsClient;
@@ -41,10 +41,10 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the BatchManagementImpl type. */
-@ServiceClient(builder = BatchManagementBuilder.class)
-public final class BatchManagementImpl implements BatchManagement {
- private final ClientLogger logger = new ClientLogger(BatchManagementImpl.class);
+/** Initializes a new instance of the BatchManagementClientImpl type. */
+@ServiceClient(builder = BatchManagementClientBuilder.class)
+public final class BatchManagementClientImpl implements BatchManagementClient {
+ private final ClientLogger logger = new ClientLogger(BatchManagementClientImpl.class);
/** The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). */
private final String subscriptionId;
@@ -227,7 +227,7 @@ public PoolsClient getPools() {
}
/**
- * Initializes an instance of BatchManagement client.
+ * Initializes an instance of BatchManagementClient client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
@@ -237,7 +237,7 @@ public PoolsClient getPools() {
* 00000000-0000-0000-0000-000000000000).
* @param endpoint server parameter.
*/
- BatchManagementImpl(
+ BatchManagementClientImpl(
HttpPipeline httpPipeline,
SerializerAdapter serializerAdapter,
Duration defaultPollInterval,
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificatesClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificatesClientImpl.java
index d45f0cfd7c4c..8f9d45610039 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificatesClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificatesClientImpl.java
@@ -54,25 +54,25 @@ public final class CertificatesClientImpl implements CertificatesClient {
private final CertificatesService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of CertificatesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- CertificatesClientImpl(BatchManagementImpl client) {
+ CertificatesClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(CertificatesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for BatchManagementCertificates to be used by the proxy service to
+ * The interface defining all the services for BatchManagementClientCertificates to be used by the proxy service to
* perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementCerti")
+ @ServiceInterface(name = "BatchManagementClien")
private interface CertificatesService {
@Headers({"Content-Type: application/json"})
@Get(
@@ -1083,7 +1083,7 @@ private Mono>> deleteWithResponseAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String accountName, String certificateName) {
Mono>> mono =
@@ -1106,7 +1106,7 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String accountName, String certificateName, Context context) {
context = this.client.mergeContext(context);
@@ -1129,7 +1129,7 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String certificateName) {
return beginDeleteAsync(resourceGroupName, accountName, certificateName).getSyncPoller();
@@ -1148,7 +1148,7 @@ public SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String certificateName, Context context) {
return beginDeleteAsync(resourceGroupName, accountName, certificateName, context).getSyncPoller();
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/LocationsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/LocationsClientImpl.java
index f9e768ebd91e..c56ba4918149 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/LocationsClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/LocationsClientImpl.java
@@ -44,25 +44,25 @@ public final class LocationsClientImpl implements LocationsClient {
private final LocationsService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of LocationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- LocationsClientImpl(BatchManagementImpl client) {
+ LocationsClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(LocationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for BatchManagementLocations to be used by the proxy service to perform
- * REST calls.
+ * The interface defining all the services for BatchManagementClientLocations to be used by the proxy service to
+ * perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementLocat")
+ @ServiceInterface(name = "BatchManagementClien")
private interface LocationsService {
@Headers({"Content-Type: application/json"})
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas")
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/OperationsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/OperationsClientImpl.java
index c415fb2aeaa2..003fbc1790a6 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/OperationsClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/OperationsClientImpl.java
@@ -39,25 +39,25 @@ public final class OperationsClientImpl implements OperationsClient {
private final OperationsService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of OperationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- OperationsClientImpl(BatchManagementImpl client) {
+ OperationsClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for BatchManagementOperations to be used by the proxy service to perform
- * REST calls.
+ * The interface defining all the services for BatchManagementClientOperations to be used by the proxy service to
+ * perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementOpera")
+ @ServiceInterface(name = "BatchManagementClien")
private interface OperationsService {
@Headers({"Content-Type: application/json"})
@Get("/providers/Microsoft.Batch/operations")
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolsClientImpl.java
index a9e753cd3e17..3deed871470a 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolsClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolsClientImpl.java
@@ -54,24 +54,24 @@ public final class PoolsClientImpl implements PoolsClient {
private final PoolsService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of PoolsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- PoolsClientImpl(BatchManagementImpl client) {
+ PoolsClientImpl(BatchManagementClientImpl client) {
this.service = RestProxy.create(PoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for BatchManagementPools to be used by the proxy service to perform REST
- * calls.
+ * The interface defining all the services for BatchManagementClientPools to be used by the proxy service to perform
+ * REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementPools")
+ @ServiceInterface(name = "BatchManagementClien")
private interface PoolsService {
@Headers({"Content-Type: application/json"})
@Get(
@@ -1073,7 +1073,7 @@ private Mono>> deleteWithResponseAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String accountName, String poolName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, poolName);
@@ -1094,7 +1094,7 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(
String resourceGroupName, String accountName, String poolName, Context context) {
context = this.client.mergeContext(context);
@@ -1116,7 +1116,7 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String poolName) {
return beginDeleteAsync(resourceGroupName, accountName, poolName).getSyncPoller();
@@ -1134,7 +1134,7 @@ public SyncPoller, Void> beginDelete(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String poolName, Context context) {
return beginDeleteAsync(resourceGroupName, accountName, poolName, context).getSyncPoller();
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsClientImpl.java
index cb017f5c6753..d34c963481ca 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -46,14 +46,14 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi
private final PrivateEndpointConnectionsService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of PrivateEndpointConnectionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- PrivateEndpointConnectionsClientImpl(BatchManagementImpl client) {
+ PrivateEndpointConnectionsClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy
.create(
@@ -62,11 +62,11 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi
}
/**
- * The interface defining all the services for BatchManagementPrivateEndpointConnections to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for BatchManagementClientPrivateEndpointConnections to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementPriva")
+ @ServiceInterface(name = "BatchManagementClien")
private interface PrivateEndpointConnectionsService {
@Headers({"Content-Type: application/json"})
@Get(
@@ -672,7 +672,7 @@ private Mono>> updateWithResponseAsync(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about a private link resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, PrivateEndpointConnectionInner> beginUpdateAsync(
String resourceGroupName,
String accountName,
@@ -708,7 +708,7 @@ private PollerFlux, PrivateEndpointCo
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about a private link resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, PrivateEndpointConnectionInner> beginUpdateAsync(
String resourceGroupName,
String accountName,
@@ -746,7 +746,7 @@ private PollerFlux, PrivateEndpointCo
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about a private link resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, PrivateEndpointConnectionInner> beginUpdate(
String resourceGroupName,
String accountName,
@@ -774,7 +774,7 @@ public SyncPoller, PrivateEndpointCon
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return contains information about a private link resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, PrivateEndpointConnectionInner> beginUpdate(
String resourceGroupName,
String accountName,
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateLinkResourcesClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateLinkResourcesClientImpl.java
index b0ef5dde4877..9c7836e5e53d 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateLinkResourcesClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateLinkResourcesClientImpl.java
@@ -39,14 +39,14 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource
private final PrivateLinkResourcesService service;
/** The service client containing this operation class. */
- private final BatchManagementImpl client;
+ private final BatchManagementClientImpl client;
/**
* Initializes an instance of PrivateLinkResourcesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- PrivateLinkResourcesClientImpl(BatchManagementImpl client) {
+ PrivateLinkResourcesClientImpl(BatchManagementClientImpl client) {
this.service =
RestProxy
.create(PrivateLinkResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
@@ -54,11 +54,11 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource
}
/**
- * The interface defining all the services for BatchManagementPrivateLinkResources to be used by the proxy service
- * to perform REST calls.
+ * The interface defining all the services for BatchManagementClientPrivateLinkResources to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
- @ServiceInterface(name = "BatchManagementPriva")
+ @ServiceInterface(name = "BatchManagementClien")
private interface PrivateLinkResourcesService {
@Headers({"Content-Type: application/json"})
@Get(
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/package-info.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/package-info.java
index 744890726c4d..4aff45e58c3b 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/package-info.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/package-info.java
@@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the implementations for BatchManagement. null. */
+/** Package containing the implementations for BatchManagementClient. Batch Client. */
package com.azure.resourcemanager.batch.implementation;
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CheckNameAvailabilityParameters.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CheckNameAvailabilityParameters.java
index acb696eb191b..4c40c67f12e4 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CheckNameAvailabilityParameters.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CheckNameAvailabilityParameters.java
@@ -24,7 +24,7 @@ public final class CheckNameAvailabilityParameters {
* The resource type.
*/
@JsonProperty(value = "type", required = true)
- private String type;
+ private String type = "Microsoft.Batch/batchAccounts";
/** Creates an instance of CheckNameAvailabilityParameters class. */
public CheckNameAvailabilityParameters() {
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ContainerConfiguration.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ContainerConfiguration.java
index ee95a8f3bcce..2bfc1f52a7c9 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ContainerConfiguration.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ContainerConfiguration.java
@@ -19,7 +19,7 @@ public final class ContainerConfiguration {
* The container technology to be used.
*/
@JsonProperty(value = "type", required = true)
- private String type;
+ private String type = "DockerCompatible";
/*
* The collection of container image names. This is the full image
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/MetadataItem.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/MetadataItem.java
index 46ad6ad2c298..9fa1f05658f1 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/MetadataItem.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/MetadataItem.java
@@ -9,7 +9,10 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The Batch service does not assign any meaning to this metadata; it is solely for the use of user code. */
+/**
+ * A name-value pair associated with a Batch service resource. The Batch service does not assign any meaning to this
+ * metadata; it is solely for the use of user code.
+ */
@Fluent
public final class MetadataItem {
@JsonIgnore private final ClientLogger logger = new ClientLogger(MetadataItem.class);
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/NodePlacementConfiguration.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/NodePlacementConfiguration.java
index b3566b5f3a9e..bc00169968ba 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/NodePlacementConfiguration.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/NodePlacementConfiguration.java
@@ -9,7 +9,9 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Allocation configuration used by Batch Service to provision the nodes. */
+/**
+ * Node placement configuration for batch pools. Allocation configuration used by Batch Service to provision the nodes.
+ */
@Fluent
public final class NodePlacementConfiguration {
@JsonIgnore private final ClientLogger logger = new ClientLogger(NodePlacementConfiguration.class);
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ResizeOperationStatus.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ResizeOperationStatus.java
index 1fe4b8aaa70a..6740bda764be 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ResizeOperationStatus.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ResizeOperationStatus.java
@@ -13,8 +13,8 @@
import java.util.List;
/**
- * Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed
- * operation (if the AllocationState is Steady).
+ * Details about the current or last completed resize operation. Describes either the current operation (if the pool
+ * AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady).
*/
@Fluent
public final class ResizeOperationStatus {
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ScaleSettings.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ScaleSettings.java
index a3a9c68520f6..db8b55ace552 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ScaleSettings.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ScaleSettings.java
@@ -10,9 +10,9 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/**
- * Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is
- * specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
- * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
+ * Scale settings for the pool Defines the desired size of the pool. This can either be 'fixedScale' where the requested
+ * targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this
+ * property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*/
@Fluent
public final class ScaleSettings {
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/StartTask.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/StartTask.java
index e950286c7865..74ee19c73480 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/StartTask.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/StartTask.java
@@ -11,10 +11,11 @@
import java.util.List;
/**
- * In some cases the start task may be re-run even though the node was not rebooted. Due to this, start tasks should be
- * idempotent and exit gracefully if the setup they're performing has already been done. Special care should be taken to
- * avoid start tasks which create breakaway process or install/launch services from the start task working directory, as
- * this will block Batch from being able to re-run the start task.
+ * A task which is run when a compute node joins a pool in the Azure Batch service, or when the compute node is rebooted
+ * or reimaged. In some cases the start task may be re-run even though the node was not rebooted. Due to this, start
+ * tasks should be idempotent and exit gracefully if the setup they're performing has already been done. Special care
+ * should be taken to avoid start tasks which create breakaway process or install/launch services from the start task
+ * working directory, as this will block Batch from being able to re-run the start task.
*/
@Fluent
public final class StartTask {
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/UserIdentity.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/UserIdentity.java
index 98eca5d5b326..eb5b4172a9fe 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/UserIdentity.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/UserIdentity.java
@@ -9,7 +9,10 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Specify either the userName or autoUser property, but not both. */
+/**
+ * The definition of the user identity under which the task is run. Specify either the userName or autoUser property,
+ * but not both.
+ */
@Fluent
public class UserIdentity {
@JsonIgnore private final ClientLogger logger = new ClientLogger(UserIdentity.class);
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/package-info.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/package-info.java
index 2a7f85de666d..f7a8bcc2550e 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/package-info.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/package-info.java
@@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the data models for BatchManagement. null. */
+/** Package containing the data models for BatchManagementClient. Batch Client. */
package com.azure.resourcemanager.batch.models;
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/package-info.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/package-info.java
index f927ece06812..8284b4fa83e5 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/package-info.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/package-info.java
@@ -2,5 +2,5 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-/** Package containing the classes for BatchManagement. null. */
+/** Package containing the classes for BatchManagementClient. Batch Client. */
package com.azure.resourcemanager.batch;
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolGetSamples.java
deleted file mode 100644
index eeee18c2e7ec..000000000000
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolGetSamples.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.batch;
-
-import com.azure.core.util.Context;
-
-/** Samples for Pool Get. */
-public final class PoolGetSamples {
- /**
- * Sample code: GetPool - VirtualMachineConfiguration Extensions.
- *
- * @param batchManager Entry point to BatchManager.
- */
- public static void getPoolVirtualMachineConfigurationExtensions(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.pools().getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
- }
-
- /**
- * Sample code: GetPool.
- *
- * @param batchManager Entry point to BatchManager.
- */
- public static void getPool(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.pools().getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
- }
-}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationCreateSamples.java
similarity index 67%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationCreateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationCreateSamples.java
index 39e802537162..d26d6789fa02 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationCreateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationCreateSamples.java
@@ -2,17 +2,20 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
/** Samples for Application Create. */
public final class ApplicationCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationCreate.json
+ */
/**
* Sample code: ApplicationCreate.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationCreate(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void applicationCreate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.applications()
.define("app1")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationDeleteSamples.java
similarity index 50%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationDeleteSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationDeleteSamples.java
index ca9a8ee6b759..1a4d080774d0 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationDeleteSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationDeleteSamples.java
@@ -2,20 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Application Delete. */
public final class ApplicationDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationDelete.json
+ */
/**
* Sample code: ApplicationDelete.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationDelete(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
- .applications()
- .deleteWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", Context.NONE);
+ public static void applicationDelete(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.applications().deleteWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationGetSamples.java
similarity index 50%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationGetSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationGetSamples.java
index 271863d1652e..ca16285eaeb6 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationGetSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationGetSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Application Get. */
public final class ApplicationGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationGet.json
+ */
/**
* Sample code: ApplicationGet.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationGet(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.applications().getWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", Context.NONE);
+ public static void applicationGet(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.applications().getWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationListSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationListSamples.java
similarity index 51%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationListSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationListSamples.java
index d2872fff6c18..e3b7dcff1113 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationListSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationListSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Application List. */
public final class ApplicationListSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationList.json
+ */
/**
* Sample code: ApplicationList.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationList(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.applications().list("default-azurebatch-japaneast", "sampleacct", null, Context.NONE);
+ public static void applicationList(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.applications().list("default-azurebatch-japaneast", "sampleacct", null, Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageActivateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageActivateSamples.java
similarity index 72%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageActivateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageActivateSamples.java
index 3728d8c08c49..0a88b21db1e8 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageActivateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageActivateSamples.java
@@ -2,20 +2,23 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.models.ActivateApplicationPackageParameters;
/** Samples for ApplicationPackage Activate. */
public final class ApplicationPackageActivateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageActivate.json
+ */
/**
* Sample code: ApplicationPackageActivate.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationPackageActivate(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void applicationPackageActivate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.applicationPackages()
.activateWithResponse(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageCreateSamples.java
similarity index 64%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageCreateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageCreateSamples.java
index a62dfc3031f0..d4a1a8231929 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageCreateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageCreateSamples.java
@@ -2,17 +2,20 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
/** Samples for ApplicationPackage Create. */
public final class ApplicationPackageCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageCreate.json
+ */
/**
* Sample code: ApplicationPackageCreate.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationPackageCreate(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void applicationPackageCreate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.applicationPackages()
.define("1")
.withExistingApplication("default-azurebatch-japaneast", "sampleacct", "app1")
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageDeleteSamples.java
similarity index 65%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageDeleteSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageDeleteSamples.java
index 88afb0671b35..0946ae0d04b5 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageDeleteSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageDeleteSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for ApplicationPackage Delete. */
public final class ApplicationPackageDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageDelete.json
+ */
/**
* Sample code: ApplicationPackageDelete.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationPackageDelete(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void applicationPackageDelete(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.applicationPackages()
.deleteWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", "1", Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageGetSamples.java
similarity index 64%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageGetSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageGetSamples.java
index e4f7f901a17b..d585936113fd 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageGetSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageGetSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for ApplicationPackage Get. */
public final class ApplicationPackageGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageGet.json
+ */
/**
* Sample code: ApplicationPackageGet.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationPackageGet(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void applicationPackageGet(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.applicationPackages()
.getWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", "1", Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageListSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageListSamples.java
similarity index 51%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageListSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageListSamples.java
index 619060f6ffd9..b6d8dbd09851 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationPackageListSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageListSamples.java
@@ -2,20 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for ApplicationPackage List. */
public final class ApplicationPackageListSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationPackageList.json
+ */
/**
* Sample code: ApplicationPackageList.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationPackageList(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
- .applicationPackages()
- .list("default-azurebatch-japaneast", "sampleacct", "app1", null, Context.NONE);
+ public static void applicationPackageList(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.applicationPackages().list("default-azurebatch-japaneast", "sampleacct", "app1", null, Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationUpdateSamples.java
similarity index 72%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationUpdateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationUpdateSamples.java
index 8566c3fe7cc6..f4970c371525 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/ApplicationUpdateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationUpdateSamples.java
@@ -2,21 +2,24 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.models.Application;
/** Samples for Application Update. */
public final class ApplicationUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/ApplicationUpdate.json
+ */
/**
* Sample code: ApplicationUpdate.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void applicationUpdate(com.azure.resourcemanager.batch.BatchManager batchManager) {
+ public static void applicationUpdate(com.azure.resourcemanager.batch.BatchManager manager) {
Application resource =
- batchManager
+ manager
.applications()
.getWithResponse("default-azurebatch-japaneast", "sampleacct", "app1", Context.NONE)
.getValue();
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountCreateSamples.java
similarity index 78%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountCreateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountCreateSamples.java
index af42d5f5168d..0695a4a2d866 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountCreateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountCreateSamples.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.resourcemanager.batch.models.AutoStorageBaseProperties;
import com.azure.resourcemanager.batch.models.BatchAccountIdentity;
@@ -16,13 +16,16 @@
/** Samples for BatchAccount Create. */
public final class BatchAccountCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountCreate_BYOS.json
+ */
/**
* Sample code: BatchAccountCreate_BYOS.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountCreateBYOS(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void batchAccountCreateBYOS(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.define("sampleacct")
.withRegion("japaneast")
@@ -40,14 +43,16 @@ public static void batchAccountCreateBYOS(com.azure.resourcemanager.batch.BatchM
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountCreate_UserAssignedIdentity.json
+ */
/**
* Sample code: BatchAccountCreate_UserAssignedIdentity.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountCreateUserAssignedIdentity(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void batchAccountCreateUserAssignedIdentity(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.define("sampleacct")
.withRegion("japaneast")
@@ -66,13 +71,16 @@ public static void batchAccountCreateUserAssignedIdentity(
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateBatchAccountCreate.json
+ */
/**
* Sample code: PrivateBatchAccountCreate.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void privateBatchAccountCreate(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void privateBatchAccountCreate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.define("sampleacct")
.withRegion("japaneast")
@@ -90,14 +98,16 @@ public static void privateBatchAccountCreate(com.azure.resourcemanager.batch.Bat
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
+ */
/**
* Sample code: BatchAccountCreate_SystemAssignedIdentity.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountCreateSystemAssignedIdentity(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void batchAccountCreateSystemAssignedIdentity(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.define("sampleacct")
.withRegion("japaneast")
@@ -110,13 +120,16 @@ public static void batchAccountCreateSystemAssignedIdentity(
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountCreate_Default.json
+ */
/**
* Sample code: BatchAccountCreate_Default.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountCreateDefault(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void batchAccountCreateDefault(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.define("sampleacct")
.withRegion("japaneast")
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountDeleteSamples.java
similarity index 52%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountDeleteSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountDeleteSamples.java
index aac1391190c9..dd44ff561409 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountDeleteSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountDeleteSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for BatchAccount Delete. */
public final class BatchAccountDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountDelete.json
+ */
/**
* Sample code: BatchAccountDelete.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountDelete(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.batchAccounts().delete("default-azurebatch-japaneast", "sampleacct", Context.NONE);
+ public static void batchAccountDelete(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().delete("default-azurebatch-japaneast", "sampleacct", Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountGetByResourceGroupSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetByResourceGroupSamples.java
similarity index 60%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountGetByResourceGroupSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetByResourceGroupSamples.java
index b7367a3f91b1..2b019519db7d 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountGetByResourceGroupSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetByResourceGroupSamples.java
@@ -2,30 +2,36 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for BatchAccount GetByResourceGroup. */
public final class BatchAccountGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateBatchAccountGet.json
+ */
/**
* Sample code: PrivateBatchAccountGet.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void privateBatchAccountGet(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void privateBatchAccountGet(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.getByResourceGroupWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountGet.json
+ */
/**
* Sample code: BatchAccountGet.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountGet(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void batchAccountGet(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.getByResourceGroupWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountGetKeysSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetKeysSamples.java
similarity index 51%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountGetKeysSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetKeysSamples.java
index 7d7a566117df..1ebc0e716b1a 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountGetKeysSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetKeysSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for BatchAccount GetKeys. */
public final class BatchAccountGetKeysSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountGetKeys.json
+ */
/**
* Sample code: BatchAccountGetKeys.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountGetKeys(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.batchAccounts().getKeysWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
+ public static void batchAccountGetKeys(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().getKeysWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListByResourceGroupSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListByResourceGroupSamples.java
similarity index 52%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListByResourceGroupSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListByResourceGroupSamples.java
index 014ada9821dd..eb0fc226a7fe 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListByResourceGroupSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListByResourceGroupSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for BatchAccount ListByResourceGroup. */
public final class BatchAccountListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountListByResourceGroup.json
+ */
/**
* Sample code: BatchAccountListByResourceGroup.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountListByResourceGroup(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.batchAccounts().listByResourceGroup("default-azurebatch-japaneast", Context.NONE);
+ public static void batchAccountListByResourceGroup(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().listByResourceGroup("default-azurebatch-japaneast", Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java
similarity index 65%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java
index 58b683e2f452..3800af1ca732 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for BatchAccount ListOutboundNetworkDependenciesEndpoints. */
public final class BatchAccountListOutboundNetworkDependenciesEndpointsSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
+ */
/**
* Sample code: ListOutboundNetworkDependencies.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void listOutboundNetworkDependencies(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void listOutboundNetworkDependencies(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.listOutboundNetworkDependenciesEndpoints("default-azurebatch-japaneast", "sampleacct", Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListSamples.java
similarity index 55%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListSamples.java
index 6652bcf39280..b7fc66f18bc4 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountListSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for BatchAccount List. */
public final class BatchAccountListSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountList.json
+ */
/**
* Sample code: BatchAccountList.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountList(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.batchAccounts().list(Context.NONE);
+ public static void batchAccountList(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().list(Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountRegenerateKeySamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountRegenerateKeySamples.java
similarity index 73%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountRegenerateKeySamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountRegenerateKeySamples.java
index 40414b04d3a7..d38fc7a2584c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountRegenerateKeySamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountRegenerateKeySamples.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.models.AccountKeyType;
@@ -10,13 +10,16 @@
/** Samples for BatchAccount RegenerateKey. */
public final class BatchAccountRegenerateKeySamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountRegenerateKey.json
+ */
/**
* Sample code: BatchAccountRegenerateKey.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountRegenerateKey(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void batchAccountRegenerateKey(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.regenerateKeyWithResponse(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountSynchronizeAutoStorageKeysSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountSynchronizeAutoStorageKeysSamples.java
similarity index 57%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountSynchronizeAutoStorageKeysSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountSynchronizeAutoStorageKeysSamples.java
index 37420a6e2f21..465f3cf5c775 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountSynchronizeAutoStorageKeysSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountSynchronizeAutoStorageKeysSamples.java
@@ -2,20 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for BatchAccount SynchronizeAutoStorageKeys. */
public final class BatchAccountSynchronizeAutoStorageKeysSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
+ */
/**
* Sample code: BatchAccountSynchronizeAutoStorageKeys.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountSynchronizeAutoStorageKeys(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void batchAccountSynchronizeAutoStorageKeys(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.batchAccounts()
.synchronizeAutoStorageKeysWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountUpdateSamples.java
similarity index 78%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountUpdateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountUpdateSamples.java
index 6ae8c3820799..739252d12c1e 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/BatchAccountUpdateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountUpdateSamples.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.models.AutoStorageBaseProperties;
@@ -10,14 +10,17 @@
/** Samples for BatchAccount Update. */
public final class BatchAccountUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/BatchAccountUpdate.json
+ */
/**
* Sample code: BatchAccountUpdate.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void batchAccountUpdate(com.azure.resourcemanager.batch.BatchManager batchManager) {
+ public static void batchAccountUpdate(com.azure.resourcemanager.batch.BatchManager manager) {
BatchAccount resource =
- batchManager
+ manager
.batchAccounts()
.getByResourceGroupWithResponse("default-azurebatch-japaneast", "sampleacct", Context.NONE)
.getValue();
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateCancelDeletionSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCancelDeletionSamples.java
similarity index 68%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateCancelDeletionSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCancelDeletionSamples.java
index 5e72e14af4ab..020c4de5dd5e 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateCancelDeletionSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCancelDeletionSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Certificate CancelDeletion. */
public final class CertificateCancelDeletionSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateCancelDeletion.json
+ */
/**
* Sample code: CertificateCancelDeletion.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void certificateCancelDeletion(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void certificateCancelDeletion(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.cancelDeletionWithResponse(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCreateSamples.java
similarity index 68%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateCreateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCreateSamples.java
index 4583cc8eb26a..c42200686768 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateCreateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCreateSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.resourcemanager.batch.models.CertificateFormat;
/** Samples for Certificate Create. */
public final class CertificateCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateCreate_Full.json
+ */
/**
* Sample code: CreateCertificate - Full.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createCertificateFull(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createCertificateFull(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -26,13 +29,16 @@ public static void createCertificateFull(com.azure.resourcemanager.batch.BatchMa
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateCreate_Minimal.json
+ */
/**
* Sample code: CreateCertificate - Minimal Pfx.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createCertificateMinimalPfx(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createCertificateMinimalPfx(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -41,13 +47,16 @@ public static void createCertificateMinimalPfx(com.azure.resourcemanager.batch.B
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateCreate_MinimalCer.json
+ */
/**
* Sample code: CreateCertificate - Minimal Cer.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createCertificateMinimalCer(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createCertificateMinimalCer(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateDeleteSamples.java
similarity index 68%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateDeleteSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateDeleteSamples.java
index 87b956e114df..cd0700796b0e 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateDeleteSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateDeleteSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Certificate Delete. */
public final class CertificateDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateDelete.json
+ */
/**
* Sample code: CertificateDelete.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void certificateDelete(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void certificateDelete(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.delete(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateGetSamples.java
similarity index 64%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateGetSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateGetSamples.java
index 92424c61502c..617d5a05ad9d 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateGetSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateGetSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Certificate Get. */
public final class CertificateGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateGetWithDeletionError.json
+ */
/**
* Sample code: Get Certificate with Deletion Error.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void getCertificateWithDeletionError(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void getCertificateWithDeletionError(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.getWithResponse(
"default-azurebatch-japaneast",
@@ -23,13 +26,16 @@ public static void getCertificateWithDeletionError(com.azure.resourcemanager.bat
Context.NONE);
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateGet.json
+ */
/**
* Sample code: Get Certificate.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void getCertificate(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void getCertificate(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.getWithResponse(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateListByBatchAccountSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateListByBatchAccountSamples.java
similarity index 66%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateListByBatchAccountSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateListByBatchAccountSamples.java
index 970948571b6b..8635ee66583f 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateListByBatchAccountSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateListByBatchAccountSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Certificate ListByBatchAccount. */
public final class CertificateListByBatchAccountSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateListWithFilter.json
+ */
/**
* Sample code: ListCertificates - Filter and Select.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void listCertificatesFilterAndSelect(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void listCertificatesFilterAndSelect(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.listByBatchAccount(
"default-azurebatch-japaneast",
@@ -26,13 +29,16 @@ public static void listCertificatesFilterAndSelect(com.azure.resourcemanager.bat
Context.NONE);
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateList.json
+ */
/**
* Sample code: ListCertificates.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void listCertificates(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void listCertificates(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.certificates()
.listByBatchAccount("default-azurebatch-japaneast", "sampleacct", 1, null, null, Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateUpdateSamples.java
similarity index 75%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateUpdateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateUpdateSamples.java
index c9a7258a14f2..a8352a8e9cba 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/CertificateUpdateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateUpdateSamples.java
@@ -2,21 +2,24 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.models.Certificate;
/** Samples for Certificate Update. */
public final class CertificateUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/CertificateUpdate.json
+ */
/**
* Sample code: UpdateCertificate.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void updateCertificate(com.azure.resourcemanager.batch.BatchManager batchManager) {
+ public static void updateCertificate(com.azure.resourcemanager.batch.BatchManager manager) {
Certificate resource =
- batchManager
+ manager
.certificates()
.getWithResponse(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationCheckNameAvailabilitySamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationCheckNameAvailabilitySamples.java
similarity index 58%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationCheckNameAvailabilitySamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationCheckNameAvailabilitySamples.java
index a07455210ff2..e6430ca567f3 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationCheckNameAvailabilitySamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationCheckNameAvailabilitySamples.java
@@ -2,34 +2,39 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.models.CheckNameAvailabilityParameters;
/** Samples for Location CheckNameAvailability. */
public final class LocationCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationCheckNameAvailability_AlreadyExists.json
+ */
/**
* Sample code: LocationCheckNameAvailability_AlreadyExists.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
public static void locationCheckNameAvailabilityAlreadyExists(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.locations()
.checkNameAvailabilityWithResponse(
"japaneast", new CheckNameAvailabilityParameters().withName("existingaccountname"), Context.NONE);
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationCheckNameAvailability_Available.json
+ */
/**
* Sample code: LocationCheckNameAvailability_Available.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void locationCheckNameAvailabilityAvailable(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void locationCheckNameAvailabilityAvailable(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.locations()
.checkNameAvailabilityWithResponse(
"japaneast", new CheckNameAvailabilityParameters().withName("newaccountname"), Context.NONE);
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationGetQuotasSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationGetQuotasSamples.java
similarity index 53%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationGetQuotasSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationGetQuotasSamples.java
index 235becd58a30..2f3540d168b8 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationGetQuotasSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationGetQuotasSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Location GetQuotas. */
public final class LocationGetQuotasSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationGetQuotas.json
+ */
/**
* Sample code: LocationGetQuotas.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void locationGetQuotas(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.locations().getQuotasWithResponse("japaneast", Context.NONE);
+ public static void locationGetQuotas(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.locations().getQuotasWithResponse("japaneast", Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationListSupportedCloudServiceSkusSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedCloudServiceSkusSamples.java
similarity index 53%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationListSupportedCloudServiceSkusSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedCloudServiceSkusSamples.java
index 4717d3322591..f571dce0869c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationListSupportedCloudServiceSkusSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedCloudServiceSkusSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Location ListSupportedCloudServiceSkus. */
public final class LocationListSupportedCloudServiceSkusSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationListCloudServiceSkus.json
+ */
/**
* Sample code: LocationListCloudServiceSkus.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void locationListCloudServiceSkus(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.locations().listSupportedCloudServiceSkus("japaneast", null, null, Context.NONE);
+ public static void locationListCloudServiceSkus(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.locations().listSupportedCloudServiceSkus("japaneast", null, null, Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationListSupportedVirtualMachineSkusSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedVirtualMachineSkusSamples.java
similarity index 53%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationListSupportedVirtualMachineSkusSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedVirtualMachineSkusSamples.java
index f35a5a4d5969..079ebef2f970 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/LocationListSupportedVirtualMachineSkusSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedVirtualMachineSkusSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Location ListSupportedVirtualMachineSkus. */
public final class LocationListSupportedVirtualMachineSkusSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/LocationListVirtualMachineSkus.json
+ */
/**
* Sample code: LocationListVirtualMachineSkus.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void locationListVirtualMachineSkus(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.locations().listSupportedVirtualMachineSkus("japaneast", null, null, Context.NONE);
+ public static void locationListVirtualMachineSkus(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.locations().listSupportedVirtualMachineSkus("japaneast", null, null, Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolCreateSamples.java
similarity index 90%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolCreateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolCreateSamples.java
index cca3ebf15a2e..8304faa537ca 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolCreateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolCreateSamples.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
@@ -62,13 +62,16 @@
/** Samples for Pool Create. */
public final class PoolCreateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_SharedImageGallery.json
+ */
/**
* Sample code: CreatePool - Custom Image.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createPoolCustomImage(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createPoolCustomImage(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -85,14 +88,16 @@ public static void createPoolCustomImage(com.azure.resourcemanager.batch.BatchMa
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_CloudServiceConfiguration.json
+ */
/**
* Sample code: CreatePool - Full CloudServiceConfiguration.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createPoolFullCloudServiceConfiguration(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createPoolFullCloudServiceConfiguration(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -182,14 +187,17 @@ public static void createPoolFullCloudServiceConfiguration(
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json
+ */
/**
* Sample code: CreatePool - Minimal CloudServiceConfiguration.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
public static void createPoolMinimalCloudServiceConfiguration(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -201,14 +209,17 @@ public static void createPoolMinimalCloudServiceConfiguration(
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json
+ */
/**
* Sample code: CreatePool - Minimal VirtualMachineConfiguration.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
public static void createPoolMinimalVirtualMachineConfiguration(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -233,13 +244,16 @@ public static void createPoolMinimalVirtualMachineConfiguration(
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_NoPublicIPAddresses.json
+ */
/**
* Sample code: CreatePool - No public IP.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createPoolNoPublicIP(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createPoolNoPublicIP(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -263,14 +277,17 @@ public static void createPoolNoPublicIP(com.azure.resourcemanager.batch.BatchMan
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json
+ */
/**
* Sample code: CreatePool - VirtualMachineConfiguration Extensions.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
public static void createPoolVirtualMachineConfigurationExtensions(
- com.azure.resourcemanager.batch.BatchManager batchManager) throws IOException {
- batchManager
+ com.azure.resourcemanager.batch.BatchManager manager) throws IOException {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -317,13 +334,16 @@ public static void createPoolVirtualMachineConfigurationExtensions(
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_UserAssignedIdentities.json
+ */
/**
* Sample code: CreatePool - UserAssignedIdentities.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createPoolUserAssignedIdentities(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createPoolUserAssignedIdentities(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -357,13 +377,16 @@ public static void createPoolUserAssignedIdentities(com.azure.resourcemanager.ba
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_PublicIPs.json
+ */
/**
* Sample code: CreatePool - Public IPs.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createPoolPublicIPs(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createPoolPublicIPs(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
@@ -391,14 +414,16 @@ public static void createPoolPublicIPs(com.azure.resourcemanager.batch.BatchMana
.create();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolCreate_VirtualMachineConfiguration.json
+ */
/**
* Sample code: CreatePool - Full VirtualMachineConfiguration.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void createPoolFullVirtualMachineConfiguration(
- com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void createPoolFullVirtualMachineConfiguration(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDeleteSamples.java
similarity index 51%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolDeleteSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDeleteSamples.java
index 4ef465a51bed..f7b94e39be56 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolDeleteSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDeleteSamples.java
@@ -2,18 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Pool Delete. */
public final class PoolDeleteSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolDelete.json
+ */
/**
* Sample code: DeletePool.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void deletePool(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager.pools().delete("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ public static void deletePool(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools().delete("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolDisableAutoScaleSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDisableAutoScaleSamples.java
similarity index 65%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolDisableAutoScaleSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDisableAutoScaleSamples.java
index aed1c3d89874..93256cae80e0 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolDisableAutoScaleSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDisableAutoScaleSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Pool DisableAutoScale. */
public final class PoolDisableAutoScaleSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolDisableAutoScale.json
+ */
/**
* Sample code: Disable AutoScale.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void disableAutoScale(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void disableAutoScale(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.disableAutoScaleWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolGetSamples.java
new file mode 100644
index 000000000000..2474ec8004ea
--- /dev/null
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolGetSamples.java
@@ -0,0 +1,35 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.batch.generated;
+
+import com.azure.core.util.Context;
+
+/** Samples for Pool Get. */
+public final class PoolGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json
+ */
+ /**
+ * Sample code: GetPool - VirtualMachineConfiguration Extensions.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getPoolVirtualMachineConfigurationExtensions(
+ com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools().getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolGet.json
+ */
+ /**
+ * Sample code: GetPool.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getPool(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools().getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ }
+}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolListByBatchAccountSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolListByBatchAccountSamples.java
similarity index 69%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolListByBatchAccountSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolListByBatchAccountSamples.java
index ef80e20e981a..bf0541c3c9d6 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolListByBatchAccountSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolListByBatchAccountSamples.java
@@ -2,30 +2,36 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Pool ListByBatchAccount. */
public final class PoolListByBatchAccountSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolList.json
+ */
/**
* Sample code: ListPool.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void listPool(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void listPool(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.listByBatchAccount("default-azurebatch-japaneast", "sampleacct", null, null, null, Context.NONE);
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolListWithFilter.json
+ */
/**
* Sample code: ListPoolWithFilter.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void listPoolWithFilter(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void listPoolWithFilter(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.pools()
.listByBatchAccount(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolStopResizeSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolStopResizeSamples.java
similarity index 50%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolStopResizeSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolStopResizeSamples.java
index 3cc4afc26d7d..587d42f357b8 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolStopResizeSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolStopResizeSamples.java
@@ -2,20 +2,21 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for Pool StopResize. */
public final class PoolStopResizeSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolStopResize.json
+ */
/**
* Sample code: StopPoolResize.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void stopPoolResize(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
- .pools()
- .stopResizeWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
+ public static void stopPoolResize(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools().stopResizeWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolUpdateSamples.java
similarity index 80%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolUpdateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolUpdateSamples.java
index 329198503c9c..c447f182cf2f 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PoolUpdateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolUpdateSamples.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.models.ApplicationPackageReference;
@@ -20,14 +20,17 @@
/** Samples for Pool Update. */
public final class PoolUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolUpdate_EnableAutoScale.json
+ */
/**
* Sample code: UpdatePool - Enable Autoscale.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void updatePoolEnableAutoscale(com.azure.resourcemanager.batch.BatchManager batchManager) {
+ public static void updatePoolEnableAutoscale(com.azure.resourcemanager.batch.BatchManager manager) {
Pool resource =
- batchManager
+ manager
.pools()
.getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE)
.getValue();
@@ -38,28 +41,34 @@ public static void updatePoolEnableAutoscale(com.azure.resourcemanager.batch.Bat
.apply();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolUpdate_RemoveStartTask.json
+ */
/**
* Sample code: UpdatePool - Remove Start Task.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void updatePoolRemoveStartTask(com.azure.resourcemanager.batch.BatchManager batchManager) {
+ public static void updatePoolRemoveStartTask(com.azure.resourcemanager.batch.BatchManager manager) {
Pool resource =
- batchManager
+ manager
.pools()
.getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE)
.getValue();
resource.update().withStartTask(new StartTask()).apply();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolUpdate_ResizePool.json
+ */
/**
* Sample code: UpdatePool - Resize Pool.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void updatePoolResizePool(com.azure.resourcemanager.batch.BatchManager batchManager) {
+ public static void updatePoolResizePool(com.azure.resourcemanager.batch.BatchManager manager) {
Pool resource =
- batchManager
+ manager
.pools()
.getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE)
.getValue();
@@ -76,14 +85,17 @@ public static void updatePoolResizePool(com.azure.resourcemanager.batch.BatchMan
.apply();
}
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PoolUpdate_OtherProperties.json
+ */
/**
* Sample code: UpdatePool - Other Properties.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void updatePoolOtherProperties(com.azure.resourcemanager.batch.BatchManager batchManager) {
+ public static void updatePoolOtherProperties(com.azure.resourcemanager.batch.BatchManager manager) {
Pool resource =
- batchManager
+ manager
.pools()
.getWithResponse("default-azurebatch-japaneast", "sampleacct", "testpool", Context.NONE)
.getValue();
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionGetSamples.java
similarity index 70%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionGetSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionGetSamples.java
index 91a07364976c..240f6cf5c9a0 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionGetSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionGetSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for PrivateEndpointConnection Get. */
public final class PrivateEndpointConnectionGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateEndpointConnectionGet.json
+ */
/**
* Sample code: GetPrivateEndpointConnection.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void getPrivateEndpointConnection(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void getPrivateEndpointConnection(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.privateEndpointConnections()
.getWithResponse(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionListByBatchAccountSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionListByBatchAccountSamples.java
similarity index 65%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionListByBatchAccountSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionListByBatchAccountSamples.java
index 82f63e1de8d0..619175064a74 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionListByBatchAccountSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionListByBatchAccountSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for PrivateEndpointConnection ListByBatchAccount. */
public final class PrivateEndpointConnectionListByBatchAccountSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateEndpointConnectionsList.json
+ */
/**
* Sample code: ListPrivateEndpointConnections.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void listPrivateEndpointConnections(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void listPrivateEndpointConnections(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.privateEndpointConnections()
.listByBatchAccount("default-azurebatch-japaneast", "sampleacct", null, Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionUpdateSamples.java
similarity index 80%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionUpdateSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionUpdateSamples.java
index afd769d5e837..5114c619aa2a 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateEndpointConnectionUpdateSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionUpdateSamples.java
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.fluent.models.PrivateEndpointConnectionInner;
@@ -11,13 +11,16 @@
/** Samples for PrivateEndpointConnection Update. */
public final class PrivateEndpointConnectionUpdateSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateEndpointConnectionUpdate.json
+ */
/**
* Sample code: UpdatePrivateEndpointConnection.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void updatePrivateEndpointConnection(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void updatePrivateEndpointConnection(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.privateEndpointConnections()
.update(
"default-azurebatch-japaneast",
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateLinkResourceGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceGetSamples.java
similarity index 65%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateLinkResourceGetSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceGetSamples.java
index 684e116d654c..4e3ab1e659e2 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateLinkResourceGetSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceGetSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for PrivateLinkResource Get. */
public final class PrivateLinkResourceGetSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateLinkResourceGet.json
+ */
/**
* Sample code: GetPrivateLinkResource.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void getPrivateLinkResource(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void getPrivateLinkResource(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.privateLinkResources()
.getWithResponse("default-azurebatch-japaneast", "sampleacct", "sampleacct", Context.NONE);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateLinkResourceListByBatchAccountSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceListByBatchAccountSamples.java
similarity index 65%
rename from sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateLinkResourceListByBatchAccountSamples.java
rename to sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceListByBatchAccountSamples.java
index d87f7ffe6bca..9d22ff761c35 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/PrivateLinkResourceListByBatchAccountSamples.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceListByBatchAccountSamples.java
@@ -2,19 +2,22 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.batch;
+package com.azure.resourcemanager.batch.generated;
import com.azure.core.util.Context;
/** Samples for PrivateLinkResource ListByBatchAccount. */
public final class PrivateLinkResourceListByBatchAccountSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2021-06-01/examples/PrivateLinkResourcesList.json
+ */
/**
* Sample code: ListPrivateLinkResource.
*
- * @param batchManager Entry point to BatchManager.
+ * @param manager Entry point to BatchManager.
*/
- public static void listPrivateLinkResource(com.azure.resourcemanager.batch.BatchManager batchManager) {
- batchManager
+ public static void listPrivateLinkResource(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
.privateLinkResources()
.listByBatchAccount("default-azurebatch-japaneast", "sampleacct", null, Context.NONE);
}