diff --git a/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md b/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md
index 56e9b80d95a4..5a21fd681227 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 (2022-02-23)
+- Azure Resource Manager Batch client library for Java. This package contains Microsoft Azure SDK for Batch Management SDK. Batch Client. Package tag package-2022-01. 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..36cf520abd99 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-2022-01. 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..6f4b3dc2ba0d 100644
--- a/sdk/batch/azure-resourcemanager-batch/SAMPLE.md
+++ b/sdk/batch/azure-resourcemanager-batch/SAMPLE.md
@@ -1,68 +1,2012 @@
# 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)
+- [GetDetector](#batchaccount_getdetector)
+- [GetKeys](#batchaccount_getkeys)
+- [List](#batchaccount_list)
+- [ListByResourceGroup](#batchaccount_listbyresourcegroup)
+- [ListDetectors](#batchaccount_listdetectors)
+- [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)
+
+## Operations
+
+- [List](#operations_list)
+
+## 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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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_GetDetector
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount GetDetector. */
+public final class BatchAccountGetDetectorSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/DetectorGet.json
+ */
+ /**
+ * Sample code: GetDetector.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void getDetector(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager
+ .batchAccounts()
+ .getDetectorWithResponse("default-azurebatch-japaneast", "sampleacct", "poolsAndNodes", 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/2022-01-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/2022-01-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/2022-01-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_ListDetectors
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BatchAccount ListDetectors. */
+public final class BatchAccountListDetectorsSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/DetectorList.json
+ */
+ /**
+ * Sample code: ListDetectors.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void listDetectors(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.batchAccounts().listDetectors("default-azurebatch-japaneast", "sampleacct", 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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/OperationsList.json
+ */
+ /**
+ * Sample code: OperationsList.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void operationsList(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.operations().list(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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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/2022-01-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 800c8bb190b5..1e651f9b0ec1 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-2022-01.
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..6fd254abdce3 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
@@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
@@ -20,11 +21,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;
@@ -45,8 +46,9 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
-/** Entry point to BatchManager. */
+/** Entry point to BatchManager. Batch Client. */
public final class BatchManager {
private BatchAccounts batchAccounts;
@@ -66,13 +68,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 +204,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(" (")
@@ -225,11 +227,24 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies.addAll(this.policies);
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -315,10 +330,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/ApplicationPackagesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java
index 6dad4951d492..e84150a8e15a 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java
@@ -49,7 +49,8 @@ ApplicationPackageInner activate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response activateWithResponse(
@@ -92,7 +93,8 @@ ApplicationPackageInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createWithResponse(
@@ -128,7 +130,7 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -161,7 +163,7 @@ ApplicationPackageInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package.
+ * @return information about the specified application package along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -176,7 +178,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, String applicationName);
@@ -192,7 +194,7 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationsClient.java
index f4d2c5358f2a..3c46b10f2caf 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationsClient.java
@@ -38,7 +38,7 @@ public interface ApplicationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createWithResponse(
@@ -71,7 +71,7 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -101,7 +101,7 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application.
+ * @return information about the specified application along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -134,7 +134,7 @@ ApplicationInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -152,7 +152,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -167,7 +167,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
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..1b93fc0fbd75 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
@@ -13,6 +13,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.batch.fluent.models.BatchAccountInner;
import com.azure.resourcemanager.batch.fluent.models.BatchAccountKeysInner;
+import com.azure.resourcemanager.batch.fluent.models.DetectorResponseInner;
import com.azure.resourcemanager.batch.fluent.models.OutboundEnvironmentEndpointInner;
import com.azure.resourcemanager.batch.models.BatchAccountCreateParameters;
import com.azure.resourcemanager.batch.models.BatchAccountRegenerateKeyParameters;
@@ -33,9 +34,9 @@ public interface BatchAccountsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return the {@link SyncPoller} for polling of 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);
@@ -53,9 +54,9 @@ SyncPoller, BatchAccountInner> beginCreate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return the {@link SyncPoller} for polling of 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);
@@ -121,7 +122,7 @@ BatchAccountInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -135,9 +136,9 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName);
/**
@@ -149,9 +150,9 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context);
/**
@@ -201,7 +202,7 @@ Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account.
+ * @return information about the specified Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -212,7 +213,8 @@ Response getByResourceGroupWithResponse(
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the subscription.
+ * @return information about the Batch accounts associated with the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -224,7 +226,8 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the subscription.
+ * @return information about the Batch accounts associated with the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -236,7 +239,8 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the specified resource group.
+ * @return information about the Batch accounts associated with the specified resource group as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -249,7 +253,8 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the specified resource group.
+ * @return information about the Batch accounts associated with the specified resource group as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -277,7 +282,7 @@ Response getByResourceGroupWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response synchronizeAutoStorageKeysWithResponse(
@@ -314,7 +319,7 @@ BatchAccountKeysInner regenerateKey(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a set of Azure Batch account keys.
+ * @return a set of Azure Batch account keys along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response regenerateKeyWithResponse(
@@ -346,11 +351,70 @@ Response regenerateKeyWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a set of Azure Batch account keys.
+ * @return a set of Azure Batch account keys along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getKeysWithResponse(String resourceGroupName, String accountName, Context context);
+ /**
+ * Gets information about the detectors available for a given Batch account.
+ *
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param accountName The name of the Batch account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the detectors available for a given Batch account as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDetectors(String resourceGroupName, String accountName);
+
+ /**
+ * Gets information about the detectors available for a given Batch account.
+ *
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param accountName The name of the Batch account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the detectors available for a given Batch account as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDetectors(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Gets information about the given detector for a given Batch account.
+ *
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param accountName The name of the Batch account.
+ * @param detectorId The name of the detector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the given detector for a given Batch account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DetectorResponseInner getDetector(String resourceGroupName, String accountName, String detectorId);
+
+ /**
+ * Gets information about the given detector for a given Batch account.
+ *
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param accountName The name of the Batch account.
+ * @param detectorId The name of the detector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the given detector for a given Batch account along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDetectorWithResponse(
+ String resourceGroupName, String accountName, String detectorId, Context context);
+
/**
* Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service
* administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your
@@ -363,7 +427,7 @@ Response regenerateKeyWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listOutboundNetworkDependenciesEndpoints(
@@ -382,7 +446,7 @@ PagedIterable listOutboundNetworkDependenciesE
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listOutboundNetworkDependenciesEndpoints(
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..744baa622a1f 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
@@ -27,7 +27,7 @@ public interface CertificatesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
@@ -46,7 +46,7 @@ public interface CertificatesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBatchAccount(
@@ -160,9 +160,9 @@ CertificatesUpdateResponse updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String certificateName);
@@ -177,9 +177,9 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @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/LocationsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/LocationsClient.java
index 557c8d6eb3bb..763ccd23e0a1 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/LocationsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/LocationsClient.java
@@ -36,7 +36,8 @@ public interface LocationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Batch service quotas for the specified subscription at the given location.
+ * @return the Batch service quotas for the specified subscription at the given location along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getQuotasWithResponse(String locationName, Context context);
@@ -48,7 +49,8 @@ public interface LocationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of Batch supported Virtual Machine VM sizes available at the given location.
+ * @return the list of Batch supported Virtual Machine VM sizes available at the given location as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSupportedVirtualMachineSkus(String locationName);
@@ -63,7 +65,8 @@ public interface LocationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of Batch supported Virtual Machine VM sizes available at the given location.
+ * @return the list of Batch supported Virtual Machine VM sizes available at the given location as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSupportedVirtualMachineSkus(
@@ -76,7 +79,8 @@ PagedIterable listSupportedVirtualMachineSkus(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of Batch supported Cloud Service VM sizes available at the given location.
+ * @return the list of Batch supported Cloud Service VM sizes available at the given location as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSupportedCloudServiceSkus(String locationName);
@@ -91,7 +95,8 @@ PagedIterable listSupportedVirtualMachineSkus(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of Batch supported Cloud Service VM sizes available at the given location.
+ * @return the list of Batch supported Cloud Service VM sizes available at the given location as paginated response
+ * with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSupportedCloudServiceSkus(
@@ -120,7 +125,7 @@ CheckNameAvailabilityResultInner checkNameAvailability(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the CheckNameAvailability operation response.
+ * @return the CheckNameAvailability operation response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/OperationsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/OperationsClient.java
index 102a74354c69..d390b758f0e0 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/OperationsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/OperationsClient.java
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list REST API operations.
+ * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of the request to list REST API operations.
+ * @return result of the request to list REST API operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(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..6f6d9774380b 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
@@ -27,7 +27,7 @@ public interface PoolsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
@@ -49,7 +49,7 @@ public interface PoolsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBatchAccount(
@@ -152,9 +152,9 @@ PoolsUpdateResponse updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName);
/**
@@ -167,9 +167,9 @@ PoolsUpdateResponse updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @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..b8c8ab1302e8 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
@@ -23,7 +23,7 @@ public interface PrivateEndpointConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
@@ -38,7 +38,7 @@ public interface PrivateEndpointConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBatchAccount(
@@ -71,7 +71,7 @@ PrivateEndpointConnectionInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified private endpoint connection.
+ * @return information about the specified private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -91,9 +91,9 @@ Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about a private link resource.
+ * @return the {@link SyncPoller} for polling of contains information about a private link resource.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginUpdate(
String resourceGroupName,
String accountName,
@@ -116,9 +116,9 @@ SyncPoller, PrivateEndpointConnection
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about a private link resource.
+ * @return the {@link SyncPoller} for polling of 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/PrivateLinkResourcesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java
index 72ce20f09f61..0098137a7005 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java
@@ -21,7 +21,7 @@ public interface PrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
@@ -36,7 +36,7 @@ public interface PrivateLinkResourcesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBatchAccount(
@@ -66,7 +66,7 @@ PagedIterable listByBatchAccount(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified private link resource.
+ * @return information about the specified private link resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountInner.java
index 00221efeca71..3040fcad73ad 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountInner.java
@@ -168,7 +168,7 @@ public Integer dedicatedCoreQuota() {
}
/**
- * Get the lowPriorityCoreQuota property: The low-priority core quota for the Batch account. For accounts with
+ * Get the lowPriorityCoreQuota property: The Spot/low-priority core quota for the Batch account. For accounts with
* PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned.
*
* @return the lowPriorityCoreQuota value.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountProperties.java
index cdc6e055a500..49f3084cc2fc 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountProperties.java
@@ -83,8 +83,8 @@ public final class BatchAccountProperties {
private Integer dedicatedCoreQuota;
/*
- * The low-priority core quota for the Batch account. For accounts with
- * PoolAllocationMode set to UserSubscription, quota is managed on the
+ * The Spot/low-priority core quota for the Batch account. For accounts
+ * with PoolAllocationMode set to UserSubscription, quota is managed on the
* subscription so this value is not returned.
*/
@JsonProperty(value = "lowPriorityCoreQuota", access = JsonProperty.Access.WRITE_ONLY)
@@ -220,7 +220,7 @@ public Integer dedicatedCoreQuota() {
}
/**
- * Get the lowPriorityCoreQuota property: The low-priority core quota for the Batch account. For accounts with
+ * Get the lowPriorityCoreQuota property: The Spot/low-priority core quota for the Batch account. For accounts with
* PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned.
*
* @return the lowPriorityCoreQuota value.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseInner.java
new file mode 100644
index 000000000000..9513e01d0853
--- /dev/null
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseInner.java
@@ -0,0 +1,81 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Contains the information for a detector. */
+@Fluent
+public final class DetectorResponseInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DetectorResponseInner.class);
+
+ /*
+ * The properties associated with the detector.
+ */
+ @JsonProperty(value = "properties")
+ private DetectorResponseProperties innerProperties;
+
+ /*
+ * The ETag of the resource, used for concurrency statements.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /**
+ * Get the innerProperties property: The properties associated with the detector.
+ *
+ * @return the innerProperties value.
+ */
+ private DetectorResponseProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the etag property: The ETag of the resource, used for concurrency statements.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the value property: A base64 encoded string that represents the content of a detector.
+ *
+ * @return the value value.
+ */
+ public String value() {
+ return this.innerProperties() == null ? null : this.innerProperties().value();
+ }
+
+ /**
+ * Set the value property: A base64 encoded string that represents the content of a detector.
+ *
+ * @param value the value value to set.
+ * @return the DetectorResponseInner object itself.
+ */
+ public DetectorResponseInner withValue(String value) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DetectorResponseProperties();
+ }
+ this.innerProperties().withValue(value);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseProperties.java
new file mode 100644
index 000000000000..ac9f2f0ef6fb
--- /dev/null
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseProperties.java
@@ -0,0 +1,50 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Detector response properties. */
+@Fluent
+public final class DetectorResponseProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DetectorResponseProperties.class);
+
+ /*
+ * A base64 encoded string that represents the content of a detector.
+ */
+ @JsonProperty(value = "value")
+ private String value;
+
+ /**
+ * Get the value property: A base64 encoded string that represents the content of a detector.
+ *
+ * @return the value value.
+ */
+ public String value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: A base64 encoded string that represents the content of a detector.
+ *
+ * @param value the value value to set.
+ * @return the DetectorResponseProperties object itself.
+ */
+ public DetectorResponseProperties withValue(String value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolInner.java
index 6967a25236e4..b99975bad1f0 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolInner.java
@@ -248,7 +248,7 @@ public Integer currentDedicatedNodes() {
}
/**
- * Get the currentLowPriorityNodes property: The number of low-priority compute nodes currently in the pool.
+ * Get the currentLowPriorityNodes property: The number of Spot/low-priority compute nodes currently in the pool.
*
* @return the currentLowPriorityNodes value.
*/
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolProperties.java
index aa6b0c8addde..b3202b3ad0b5 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolProperties.java
@@ -112,7 +112,7 @@ public final class PoolProperties {
private Integer currentDedicatedNodes;
/*
- * The number of low-priority compute nodes currently in the pool.
+ * The number of Spot/low-priority compute nodes currently in the pool.
*/
@JsonProperty(value = "currentLowPriorityNodes", access = JsonProperty.Access.WRITE_ONLY)
private Integer currentLowPriorityNodes;
@@ -389,7 +389,7 @@ public Integer currentDedicatedNodes() {
}
/**
- * Get the currentLowPriorityNodes property: The number of low-priority compute nodes currently in the pool.
+ * Get the currentLowPriorityNodes property: The number of Spot/low-priority compute nodes currently in the pool.
*
* @return the currentLowPriorityNodes value.
*/
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..4a36c1049c97 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(
@@ -174,7 +174,8 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> activateWithResponseAsync(
@@ -246,7 +247,8 @@ private Mono> activateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> activateWithResponseAsync(
@@ -315,7 +317,8 @@ private Mono> activateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono activateAsync(
@@ -372,7 +375,8 @@ public ApplicationPackageInner activate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response activateWithResponse(
@@ -400,7 +404,8 @@ public Response activateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(
@@ -471,7 +476,8 @@ private Mono> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(
@@ -539,7 +545,8 @@ private Mono> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -571,7 +578,8 @@ private Mono createAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -623,7 +631,8 @@ public ApplicationPackageInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createWithResponse(
@@ -648,7 +657,7 @@ public Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
@@ -708,7 +717,7 @@ private Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
@@ -764,7 +773,7 @@ private Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(
@@ -800,7 +809,7 @@ public void delete(String resourceGroupName, String accountName, String applicat
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteWithResponse(
@@ -818,7 +827,8 @@ public Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package.
+ * @return information about the specified application package along with {@link Response} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -878,7 +888,8 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package.
+ * @return information about the specified application package along with {@link Response} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -934,7 +945,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package.
+ * @return information about the specified application package on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
@@ -979,7 +990,7 @@ public ApplicationPackageInner get(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package.
+ * @return information about the specified application package along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -997,7 +1008,8 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -1063,7 +1075,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -1125,7 +1138,7 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -1144,7 +1157,7 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -1166,7 +1179,7 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -1185,7 +1198,7 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -1205,7 +1218,7 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -1220,7 +1233,8 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1256,7 +1270,8 @@ private Mono> listNextSinglePageAsync(Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages.
+ * @return the result of performing list application packages along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesImpl.java
index f69dad67fe8a..4b1efb0ed325 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesImpl.java
@@ -216,7 +216,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
}
- this.deleteWithResponse(resourceGroupName, accountName, applicationName, versionName, Context.NONE).getValue();
+ this.deleteWithResponse(resourceGroupName, accountName, applicationName, versionName, Context.NONE);
}
public Response deleteByIdWithResponse(String id, Context context) {
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..77887db6e2d8 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(
@@ -166,7 +166,8 @@ Mono> listNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(
@@ -226,7 +227,8 @@ private Mono> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> createWithResponseAsync(
@@ -286,7 +288,7 @@ private Mono> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -311,7 +313,7 @@ private Mono createAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(String resourceGroupName, String accountName, String applicationName) {
@@ -355,7 +357,7 @@ public ApplicationInner create(String resourceGroupName, String accountName, Str
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createWithResponse(
@@ -376,7 +378,7 @@ public Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
@@ -431,7 +433,7 @@ private Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> deleteWithResponseAsync(
@@ -482,7 +484,7 @@ private Mono> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName, String applicationName) {
@@ -515,7 +517,7 @@ public void delete(String resourceGroupName, String accountName, String applicat
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteWithResponse(
@@ -532,7 +534,8 @@ public Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application.
+ * @return information about the specified application along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -587,7 +590,8 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application.
+ * @return information about the specified application along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getWithResponseAsync(
@@ -638,7 +642,7 @@ private Mono> getWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application.
+ * @return information about the specified application on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String accountName, String applicationName) {
@@ -679,7 +683,7 @@ public ApplicationInner get(String resourceGroupName, String accountName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application.
+ * @return information about the specified application along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(
@@ -697,7 +701,8 @@ public Response getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -759,7 +764,8 @@ private Mono> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -821,7 +827,7 @@ private Mono> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -866,7 +872,7 @@ public ApplicationInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateWithResponse(
@@ -887,7 +893,8 @@ public Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -947,7 +954,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -1003,7 +1011,7 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String accountName, Integer maxresults) {
@@ -1020,7 +1028,7 @@ private PagedFlux listAsync(String resourceGroupName, String a
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String accountName) {
@@ -1040,7 +1048,7 @@ private PagedFlux listAsync(String resourceGroupName, String a
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -1058,7 +1066,7 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String accountName) {
@@ -1076,7 +1084,7 @@ public PagedIterable list(String resourceGroupName, String acc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -1091,7 +1099,8 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
@@ -1127,7 +1136,8 @@ private Mono> listNextSinglePageAsync(String nex
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list applications.
+ * @return the result of performing list applications along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink, Context context) {
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsImpl.java
index 4f8bf8c893b9..6381852ed969 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsImpl.java
@@ -148,7 +148,7 @@ public void deleteById(String id) {
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'applications'.", id)));
}
- this.deleteWithResponse(resourceGroupName, accountName, applicationName, Context.NONE).getValue();
+ this.deleteWithResponse(resourceGroupName, accountName, applicationName, Context.NONE);
}
public Response deleteByIdWithResponse(String id, Context context) {
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..79498283436e 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
@@ -37,11 +37,13 @@
import com.azure.resourcemanager.batch.fluent.BatchAccountsClient;
import com.azure.resourcemanager.batch.fluent.models.BatchAccountInner;
import com.azure.resourcemanager.batch.fluent.models.BatchAccountKeysInner;
+import com.azure.resourcemanager.batch.fluent.models.DetectorResponseInner;
import com.azure.resourcemanager.batch.fluent.models.OutboundEnvironmentEndpointInner;
import com.azure.resourcemanager.batch.models.BatchAccountCreateParameters;
import com.azure.resourcemanager.batch.models.BatchAccountListResult;
import com.azure.resourcemanager.batch.models.BatchAccountRegenerateKeyParameters;
import com.azure.resourcemanager.batch.models.BatchAccountUpdateParameters;
+import com.azure.resourcemanager.batch.models.DetectorListResult;
import com.azure.resourcemanager.batch.models.OutboundEnvironmentEndpointCollection;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
@@ -55,25 +57,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(
@@ -208,6 +210,37 @@ Mono> getKeys(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts"
+ + "/{accountName}/detectors")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listDetectors(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("accountName") String accountName,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts"
+ + "/{accountName}/detectors/{detectorId}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getDetector(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("accountName") String accountName,
+ @PathParam("detectorId") String detectorId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts"
@@ -243,6 +276,16 @@ Mono> listByResourceGroupNext(
@HeaderParam("Accept") String accept,
Context context);
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listDetectorsNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
@Headers({"Content-Type: application/json"})
@Get("{nextLink}")
@ExpectedResponses({200})
@@ -267,7 +310,8 @@ Mono> listOutboundNetworkDepende
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -327,7 +371,8 @@ private Mono>> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> createWithResponseAsync(
@@ -383,16 +428,20 @@ private Mono>> createWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return the {@link PollerFlux} for polling of 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);
return this
.client
.getLroResult(
- mono, this.client.getHttpPipeline(), BatchAccountInner.class, BatchAccountInner.class, Context.NONE);
+ mono,
+ this.client.getHttpPipeline(),
+ BatchAccountInner.class,
+ BatchAccountInner.class,
+ this.client.getContext());
}
/**
@@ -409,9 +458,9 @@ private PollerFlux, BatchAccountInner> beginCreate
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return the {@link PollerFlux} for polling of 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);
@@ -436,9 +485,9 @@ private PollerFlux, BatchAccountInner> beginCreate
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return the {@link SyncPoller} for polling of 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();
@@ -458,9 +507,9 @@ public SyncPoller, BatchAccountInner> beginCreate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return the {@link SyncPoller} for polling of 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();
@@ -479,7 +528,7 @@ public SyncPoller, BatchAccountInner> beginCreate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -503,7 +552,7 @@ private Mono createAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
@@ -565,7 +614,8 @@ public BatchAccountInner create(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -621,7 +671,8 @@ private Mono> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> updateWithResponseAsync(
@@ -673,7 +724,7 @@ private Mono> updateWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(
@@ -716,7 +767,7 @@ public BatchAccountInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateWithResponse(
@@ -732,7 +783,7 @@ public Response updateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(String resourceGroupName, String accountName) {
@@ -780,7 +831,7 @@ private Mono>> deleteWithResponseAsync(String resource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(
@@ -825,14 +876,15 @@ private Mono>> deleteWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @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
.client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}
/**
@@ -844,9 +896,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
- @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);
@@ -864,9 +916,9 @@ private PollerFlux, Void> beginDeleteAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, Void> beginDelete(String resourceGroupName, String accountName) {
return beginDeleteAsync(resourceGroupName, accountName).getSyncPoller();
}
@@ -880,9 +932,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @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();
@@ -896,7 +948,7 @@ public SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName) {
@@ -912,7 +964,7 @@ private Mono deleteAsync(String resourceGroupName, String accountName) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName, Context context) {
@@ -958,7 +1010,8 @@ public void delete(String resourceGroupName, String accountName, Context context
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account.
+ * @return information about the specified Batch account along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -1007,7 +1060,8 @@ private Mono> getByResourceGroupWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account.
+ * @return information about the specified Batch account along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
@@ -1052,7 +1106,7 @@ private Mono> getByResourceGroupWithResponseAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account.
+ * @return information about the specified Batch account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) {
@@ -1091,7 +1145,7 @@ public BatchAccountInner getByResourceGroup(String resourceGroupName, String acc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account.
+ * @return information about the specified Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
@@ -1104,7 +1158,8 @@ public Response getByResourceGroupWithResponse(
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the subscription.
+ * @return information about the Batch accounts associated with the subscription along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync() {
@@ -1150,7 +1205,8 @@ private Mono> listSinglePageAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the subscription.
+ * @return information about the Batch accounts associated with the subscription along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(Context context) {
@@ -1191,7 +1247,8 @@ private Mono> listSinglePageAsync(Context conte
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the subscription.
+ * @return information about the Batch accounts associated with the subscription as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -1205,7 +1262,8 @@ private PagedFlux listAsync() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the subscription.
+ * @return information about the Batch accounts associated with the subscription as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -1218,7 +1276,8 @@ private PagedFlux listAsync(Context context) {
*
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the subscription.
+ * @return information about the Batch accounts associated with the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -1232,7 +1291,8 @@ public PagedIterable list() {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the subscription.
+ * @return information about the Batch accounts associated with the subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable