diff --git a/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md b/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md index 3481ce371a42..533b9d738c91 100644 --- a/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md +++ b/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2022-05-27) + +- Azure Resource Manager Batch client library for Java. This package contains Microsoft Azure SDK for Batch Management SDK. Batch Client. Package tag package-2022-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/batch/azure-resourcemanager-batch/README.md b/sdk/batch/azure-resourcemanager-batch/README.md index e99e92b99215..bb54561b2041 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. 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). +This package contains Microsoft Azure SDK for Batch Management SDK. Batch Client. Package tag package-2022-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-batch - 1.0.0 + 1.1.0-beta.1 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/batch/azure-resourcemanager-batch/SAMPLE.md b/sdk/batch/azure-resourcemanager-batch/SAMPLE.md index 6f4b3dc2ba0d..49a9e41b454e 100644 --- a/sdk/batch/azure-resourcemanager-batch/SAMPLE.md +++ b/sdk/batch/azure-resourcemanager-batch/SAMPLE.md @@ -64,6 +64,7 @@ ## PrivateEndpointConnection +- [Delete](#privateendpointconnection_delete) - [Get](#privateendpointconnection_get) - [ListByBatchAccount](#privateendpointconnection_listbybatchaccount) - [Update](#privateendpointconnection_update) @@ -78,7 +79,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationCreate.json */ /** * Sample code: ApplicationCreate. @@ -105,7 +106,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationDelete.json */ /** * Sample code: ApplicationDelete. @@ -126,7 +127,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationGet.json */ /** * Sample code: ApplicationGet. @@ -147,7 +148,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationList.json */ /** * Sample code: ApplicationList. @@ -169,7 +170,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationUpdate.json */ /** * Sample code: ApplicationUpdate. @@ -196,7 +197,7 @@ import com.azure.resourcemanager.batch.models.ActivateApplicationPackageParamete /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageActivate.json */ /** * Sample code: ApplicationPackageActivate. @@ -223,7 +224,7 @@ public final class ApplicationPackageActivateSamples { /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageCreate.json */ /** * Sample code: ApplicationPackageCreate. @@ -248,7 +249,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageDelete.json */ /** * Sample code: ApplicationPackageDelete. @@ -271,7 +272,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageGet.json */ /** * Sample code: ApplicationPackageGet. @@ -294,7 +295,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageList.json */ /** * Sample code: ApplicationPackageList. @@ -323,7 +324,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_BYOS.json */ /** * Sample code: BatchAccountCreate_BYOS. @@ -350,7 +351,7 @@ public final class BatchAccountCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ /** * Sample code: BatchAccountCreate_UserAssignedIdentity. @@ -378,7 +379,7 @@ public final class BatchAccountCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateBatchAccountCreate.json */ /** * Sample code: PrivateBatchAccountCreate. @@ -405,7 +406,7 @@ public final class BatchAccountCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ /** * Sample code: BatchAccountCreate_SystemAssignedIdentity. @@ -427,7 +428,7 @@ public final class BatchAccountCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_Default.json */ /** * Sample code: BatchAccountCreate_Default. @@ -468,7 +469,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountDelete.json */ /** * Sample code: BatchAccountDelete. @@ -489,7 +490,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateBatchAccountGet.json */ /** * Sample code: PrivateBatchAccountGet. @@ -503,7 +504,7 @@ public final class BatchAccountGetByResourceGroupSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountGet.json */ /** * Sample code: BatchAccountGet. @@ -526,7 +527,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/DetectorGet.json */ /** * Sample code: GetDetector. @@ -549,7 +550,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountGetKeys.json */ /** * Sample code: BatchAccountGetKeys. @@ -570,7 +571,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountList.json */ /** * Sample code: BatchAccountList. @@ -591,7 +592,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountListByResourceGroup.json */ /** * Sample code: BatchAccountListByResourceGroup. @@ -612,7 +613,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/DetectorList.json */ /** * Sample code: ListDetectors. @@ -633,7 +634,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ /** * Sample code: ListOutboundNetworkDependencies. @@ -658,7 +659,7 @@ import com.azure.resourcemanager.batch.models.BatchAccountRegenerateKeyParameter /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountRegenerateKey.json */ /** * Sample code: BatchAccountRegenerateKey. @@ -685,7 +686,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ /** * Sample code: BatchAccountSynchronizeAutoStorageKeys. @@ -710,7 +711,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountUpdate.json */ /** * Sample code: BatchAccountUpdate. @@ -742,7 +743,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateCancelDeletion.json */ /** * Sample code: CertificateCancelDeletion. @@ -769,7 +770,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateCreate_Full.json */ /** * Sample code: CreateCertificate - Full. @@ -790,7 +791,7 @@ public final class CertificateCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateCreate_Minimal.json */ /** * Sample code: CreateCertificate - Minimal Pfx. @@ -808,7 +809,7 @@ public final class CertificateCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateCreate_MinimalCer.json */ /** * Sample code: CreateCertificate - Minimal Cer. @@ -835,7 +836,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateDelete.json */ /** * Sample code: CertificateDelete. @@ -862,7 +863,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateGetWithDeletionError.json */ /** * Sample code: Get Certificate with Deletion Error. @@ -880,7 +881,7 @@ public final class CertificateGetSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateGet.json */ /** * Sample code: Get Certificate. @@ -907,7 +908,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateListWithFilter.json */ /** * Sample code: ListCertificates - Filter and Select. @@ -928,7 +929,7 @@ public final class CertificateListByBatchAccountSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateList.json */ /** * Sample code: ListCertificates. @@ -952,7 +953,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateUpdate.json */ /** * Sample code: UpdateCertificate. @@ -983,7 +984,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ /** * Sample code: LocationCheckNameAvailability_AlreadyExists. @@ -999,7 +1000,7 @@ public final class LocationCheckNameAvailabilitySamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationCheckNameAvailability_Available.json */ /** * Sample code: LocationCheckNameAvailability_Available. @@ -1023,7 +1024,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationGetQuotas.json */ /** * Sample code: LocationGetQuotas. @@ -1044,7 +1045,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationListCloudServiceSkus.json */ /** * Sample code: LocationListCloudServiceSkus. @@ -1065,7 +1066,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationListVirtualMachineSkus.json */ /** * Sample code: LocationListVirtualMachineSkus. @@ -1086,7 +1087,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/OperationsList.json */ /** * Sample code: OperationsList. @@ -1161,7 +1162,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_SharedImageGallery.json */ /** * Sample code: CreatePool - Custom Image. @@ -1187,7 +1188,7 @@ public final class PoolCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_CloudServiceConfiguration.json */ /** * Sample code: CreatePool - Full CloudServiceConfiguration. @@ -1286,7 +1287,7 @@ public final class PoolCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ /** * Sample code: CreatePool - Minimal CloudServiceConfiguration. @@ -1308,7 +1309,7 @@ public final class PoolCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ /** * Sample code: CreatePool - Minimal VirtualMachineConfiguration. @@ -1343,7 +1344,7 @@ public final class PoolCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_NoPublicIPAddresses.json */ /** * Sample code: CreatePool - No public IP. @@ -1376,7 +1377,7 @@ public final class PoolCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ /** * Sample code: CreatePool - VirtualMachineConfiguration Extensions. @@ -1433,7 +1434,7 @@ public final class PoolCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_UserAssignedIdentities.json */ /** * Sample code: CreatePool - UserAssignedIdentities. @@ -1476,7 +1477,7 @@ public final class PoolCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_PublicIPs.json */ /** * Sample code: CreatePool - Public IPs. @@ -1513,7 +1514,7 @@ public final class PoolCreateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_VirtualMachineConfiguration.json */ /** * Sample code: CreatePool - Full VirtualMachineConfiguration. @@ -1619,7 +1620,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolDelete.json */ /** * Sample code: DeletePool. @@ -1640,7 +1641,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolDisableAutoScale.json */ /** * Sample code: Disable AutoScale. @@ -1663,7 +1664,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ /** * Sample code: GetPool - VirtualMachineConfiguration Extensions. @@ -1676,7 +1677,7 @@ public final class PoolGetSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolGet.json */ /** * Sample code: GetPool. @@ -1697,7 +1698,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolList.json */ /** * Sample code: ListPool. @@ -1711,7 +1712,7 @@ public final class PoolListByBatchAccountSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolListWithFilter.json */ /** * Sample code: ListPoolWithFilter. @@ -1741,7 +1742,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolStopResize.json */ /** * Sample code: StopPoolResize. @@ -1774,7 +1775,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolUpdate_EnableAutoScale.json */ /** * Sample code: UpdatePool - Enable Autoscale. @@ -1795,7 +1796,7 @@ public final class PoolUpdateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolUpdate_RemoveStartTask.json */ /** * Sample code: UpdatePool - Remove Start Task. @@ -1812,7 +1813,7 @@ public final class PoolUpdateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolUpdate_ResizePool.json */ /** * Sample code: UpdatePool - Resize Pool. @@ -1839,7 +1840,7 @@ public final class PoolUpdateSamples { } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolUpdate_OtherProperties.json */ /** * Sample code: UpdatePool - Other Properties. @@ -1878,6 +1879,33 @@ public final class PoolUpdateSamples { } ``` +### PrivateEndpointConnection_Delete + +```java +import com.azure.core.util.Context; + +/** Samples for PrivateEndpointConnection Delete. */ +public final class PrivateEndpointConnectionDeleteSamples { + /* + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateEndpointConnectionDelete.json + */ + /** + * Sample code: PrivateEndpointConnectionDelete. + * + * @param manager Entry point to BatchManager. + */ + public static void privateEndpointConnectionDelete(com.azure.resourcemanager.batch.BatchManager manager) { + manager + .privateEndpointConnections() + .delete( + "default-azurebatch-japaneast", + "sampleacct", + "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0", + Context.NONE); + } +} +``` + ### PrivateEndpointConnection_Get ```java @@ -1886,7 +1914,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateEndpointConnectionGet.json */ /** * Sample code: GetPrivateEndpointConnection. @@ -1913,7 +1941,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateEndpointConnectionsList.json */ /** * Sample code: ListPrivateEndpointConnections. @@ -1939,7 +1967,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateEndpointConnectionUpdate.json */ /** * Sample code: UpdatePrivateEndpointConnection. @@ -1972,7 +2000,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateLinkResourceGet.json */ /** * Sample code: GetPrivateLinkResource. @@ -1982,7 +2010,7 @@ public final class PrivateLinkResourceGetSamples { public static void getPrivateLinkResource(com.azure.resourcemanager.batch.BatchManager manager) { manager .privateLinkResources() - .getWithResponse("default-azurebatch-japaneast", "sampleacct", "sampleacct", Context.NONE); + .getWithResponse("default-azurebatch-japaneast", "sampleacct", "batchAccount", Context.NONE); } } ``` @@ -1995,7 +2023,7 @@ 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateLinkResourcesList.json */ /** * Sample code: ListPrivateLinkResource. diff --git a/sdk/batch/azure-resourcemanager-batch/pom.xml b/sdk/batch/azure-resourcemanager-batch/pom.xml index 2114f44620c4..6f807b3e9054 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. Batch Client. Package tag package-2022-01. + 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-06. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/BatchManager.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/BatchManager.java index 80a36a13b5b5..fbce220efc6e 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 @@ -10,11 +10,13 @@ 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.AddHeadersFromContextPolicy; import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.http.policy.HttpLoggingPolicy; import com.azure.core.http.policy.HttpPipelinePolicy; import com.azure.core.http.policy.HttpPolicyProviders; import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.RetryOptions; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy; @@ -95,6 +97,19 @@ public static BatchManager authenticate(TokenCredential credential, AzureProfile return configure().authenticate(credential, profile); } + /** + * Creates an instance of Batch service API entry point. + * + * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential. + * @param profile the Azure profile for client. + * @return the Batch service API instance. + */ + public static BatchManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) { + Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null."); + Objects.requireNonNull(profile, "'profile' cannot be null."); + return new BatchManager(httpPipeline, profile, null); + } + /** * Gets a Configurable instance that can be used to create BatchManager with optional configuration. * @@ -113,6 +128,7 @@ public static final class Configurable { private final List policies = new ArrayList<>(); private final List scopes = new ArrayList<>(); private RetryPolicy retryPolicy; + private RetryOptions retryOptions; private Duration defaultPollInterval; private Configurable() { @@ -173,6 +189,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) { return this; } + /** + * Sets the retry options for the HTTP pipeline retry policy. + * + *

This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}. + * + * @param retryOptions the retry options for the HTTP pipeline retry policy. + * @return the configurable object itself. + */ + public Configurable withRetryOptions(RetryOptions retryOptions) { + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + /** * Sets the default poll interval, used when service does not provide "Retry-After" header. * @@ -206,7 +235,7 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil .append("-") .append("com.azure.resourcemanager.batch") .append("/") - .append("1.0.0-beta.3"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -224,10 +253,15 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default"); } if (retryPolicy == null) { - retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + if (retryOptions != null) { + retryPolicy = new RetryPolicy(retryOptions); + } else { + retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS); + } } List policies = new ArrayList<>(); policies.add(new UserAgentPolicy(userAgentBuilder.toString())); + policies.add(new AddHeadersFromContextPolicy()); policies.add(new RequestIdPolicy()); policies .addAll( @@ -258,7 +292,11 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil } } - /** @return Resource collection API of BatchAccounts. */ + /** + * Gets the resource collection API of BatchAccounts. It manages BatchAccount. + * + * @return Resource collection API of BatchAccounts. + */ public BatchAccounts batchAccounts() { if (this.batchAccounts == null) { this.batchAccounts = new BatchAccountsImpl(clientObject.getBatchAccounts(), this); @@ -266,7 +304,11 @@ public BatchAccounts batchAccounts() { return batchAccounts; } - /** @return Resource collection API of ApplicationPackages. */ + /** + * Gets the resource collection API of ApplicationPackages. It manages ApplicationPackage. + * + * @return Resource collection API of ApplicationPackages. + */ public ApplicationPackages applicationPackages() { if (this.applicationPackages == null) { this.applicationPackages = new ApplicationPackagesImpl(clientObject.getApplicationPackages(), this); @@ -274,7 +316,11 @@ public ApplicationPackages applicationPackages() { return applicationPackages; } - /** @return Resource collection API of Applications. */ + /** + * Gets the resource collection API of Applications. It manages Application. + * + * @return Resource collection API of Applications. + */ public Applications applications() { if (this.applications == null) { this.applications = new ApplicationsImpl(clientObject.getApplications(), this); @@ -282,7 +328,11 @@ public Applications applications() { return applications; } - /** @return Resource collection API of Locations. */ + /** + * Gets the resource collection API of Locations. + * + * @return Resource collection API of Locations. + */ public Locations locations() { if (this.locations == null) { this.locations = new LocationsImpl(clientObject.getLocations(), this); @@ -290,7 +340,11 @@ public Locations locations() { return locations; } - /** @return Resource collection API of Operations. */ + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ public Operations operations() { if (this.operations == null) { this.operations = new OperationsImpl(clientObject.getOperations(), this); @@ -298,7 +352,11 @@ public Operations operations() { return operations; } - /** @return Resource collection API of Certificates. */ + /** + * Gets the resource collection API of Certificates. It manages Certificate. + * + * @return Resource collection API of Certificates. + */ public Certificates certificates() { if (this.certificates == null) { this.certificates = new CertificatesImpl(clientObject.getCertificates(), this); @@ -306,7 +364,11 @@ public Certificates certificates() { return certificates; } - /** @return Resource collection API of PrivateLinkResources. */ + /** + * Gets the resource collection API of PrivateLinkResources. + * + * @return Resource collection API of PrivateLinkResources. + */ public PrivateLinkResources privateLinkResources() { if (this.privateLinkResources == null) { this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this); @@ -314,7 +376,11 @@ public PrivateLinkResources privateLinkResources() { return privateLinkResources; } - /** @return Resource collection API of PrivateEndpointConnections. */ + /** + * Gets the resource collection API of PrivateEndpointConnections. + * + * @return Resource collection API of PrivateEndpointConnections. + */ public PrivateEndpointConnections privateEndpointConnections() { if (this.privateEndpointConnections == null) { this.privateEndpointConnections = @@ -323,7 +389,11 @@ public PrivateEndpointConnections privateEndpointConnections() { return privateEndpointConnections; } - /** @return Resource collection API of Pools. */ + /** + * Gets the resource collection API of Pools. It manages Pool. + * + * @return Resource collection API of Pools. + */ public Pools pools() { if (this.pools == null) { this.pools = new PoolsImpl(clientObject.getPools(), this); 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 b8c8ab1302e8..5e65bbc04fc4 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 @@ -197,4 +197,66 @@ PrivateEndpointConnectionInner update( PrivateEndpointConnectionInner parameters, String ifMatch, Context context); + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * 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 the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String privateEndpointConnectionName); + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * 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 the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context); + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName); + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context); } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountCreateProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountCreateProperties.java index 684f527d4e8b..eadac75eb46c 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountCreateProperties.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountCreateProperties.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.batch.models.AutoStorageBaseProperties; import com.azure.resourcemanager.batch.models.EncryptionProperties; import com.azure.resourcemanager.batch.models.KeyVaultReference; +import com.azure.resourcemanager.batch.models.NetworkProfile; import com.azure.resourcemanager.batch.models.PoolAllocationMode; import com.azure.resourcemanager.batch.models.PublicNetworkAccessType; import com.fasterxml.jackson.annotation.JsonProperty; @@ -45,6 +46,13 @@ public final class BatchAccountCreateProperties { @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccessType publicNetworkAccess; + /* + * The network profile only takes effect when publicNetworkAccess is + * enabled. + */ + @JsonProperty(value = "networkProfile") + private NetworkProfile networkProfile; + /* * Configures how customer data is encrypted inside the Batch account. By * default, accounts are encrypted using a Microsoft managed key. For @@ -145,6 +153,26 @@ public BatchAccountCreateProperties withPublicNetworkAccess(PublicNetworkAccessT return this; } + /** + * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @return the networkProfile value. + */ + public NetworkProfile networkProfile() { + return this.networkProfile; + } + + /** + * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @param networkProfile the networkProfile value to set. + * @return the BatchAccountCreateProperties object itself. + */ + public BatchAccountCreateProperties withNetworkProfile(NetworkProfile networkProfile) { + this.networkProfile = networkProfile; + return this; + } + /** * Get the encryption property: Configures how customer data is encrypted inside the Batch account. By default, * accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used @@ -204,6 +232,9 @@ public void validate() { if (keyVaultReference() != null) { keyVaultReference().validate(); } + if (networkProfile() != null) { + networkProfile().validate(); + } if (encryption() != null) { encryption().validate(); } 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 cbe706f1a279..3878f4ae194d 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 @@ -11,6 +11,7 @@ import com.azure.resourcemanager.batch.models.BatchAccountIdentity; import com.azure.resourcemanager.batch.models.EncryptionProperties; import com.azure.resourcemanager.batch.models.KeyVaultReference; +import com.azure.resourcemanager.batch.models.NetworkProfile; import com.azure.resourcemanager.batch.models.PoolAllocationMode; import com.azure.resourcemanager.batch.models.ProvisioningState; import com.azure.resourcemanager.batch.models.PublicNetworkAccessType; @@ -86,6 +87,16 @@ public String accountEndpoint() { return this.innerProperties() == null ? null : this.innerProperties().accountEndpoint(); } + /** + * Get the nodeManagementEndpoint property: The endpoint used by compute node to connect to the Batch node + * management service. + * + * @return the nodeManagementEndpoint value. + */ + public String nodeManagementEndpoint() { + return this.innerProperties() == null ? null : this.innerProperties().nodeManagementEndpoint(); + } + /** * Get the provisioningState property: The provisioned state of the resource. * @@ -122,6 +133,43 @@ public PublicNetworkAccessType publicNetworkAccess() { return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess(); } + /** + * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'. + * + * @param publicNetworkAccess the publicNetworkAccess value to set. + * @return the BatchAccountInner object itself. + */ + public BatchAccountInner withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) { + if (this.innerProperties() == null) { + this.innerProperties = new BatchAccountProperties(); + } + this.innerProperties().withPublicNetworkAccess(publicNetworkAccess); + return this; + } + + /** + * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @return the networkProfile value. + */ + public NetworkProfile networkProfile() { + return this.innerProperties() == null ? null : this.innerProperties().networkProfile(); + } + + /** + * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @param networkProfile the networkProfile value to set. + * @return the BatchAccountInner object itself. + */ + public BatchAccountInner withNetworkProfile(NetworkProfile networkProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new BatchAccountProperties(); + } + this.innerProperties().withNetworkProfile(networkProfile); + return this; + } + /** * Get the privateEndpointConnections property: List of private endpoint connections associated with the Batch * account. @@ -164,7 +212,7 @@ public Integer dedicatedCoreQuota() { } /** - * Get the lowPriorityCoreQuota property: The Spot/low-priority core quota for the Batch account. For accounts with + * Get the lowPriorityCoreQuota property: The 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. @@ -186,12 +234,10 @@ public List dedicatedCoreQuotaPerVMFamily() { /** * Get the dedicatedCoreQuotaPerVMFamilyEnforced property: A value indicating whether core quotas per Virtual - * Machine family are enforced for this account Batch is transitioning its core quota system for dedicated cores to - * be enforced per Virtual Machine family. During this transitional phase, the dedicated core quota per Virtual - * Machine family may not yet be enforced. If this flag is false, dedicated core quota is enforced via the old - * dedicatedCoreQuota property on the account and does not consider Virtual Machine family. If this flag is true, - * dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily property on the account, and the old - * dedicatedCoreQuota does not apply. + * Machine family are enforced for this account If this flag is true, dedicated core quota is enforced via both the + * dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the account. If this flag is false, dedicated + * core quota is enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual + * Machine family. * * @return the dedicatedCoreQuotaPerVMFamilyEnforced 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 55f1568e1e0e..c0cac50b1133 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 @@ -4,11 +4,12 @@ package com.azure.resourcemanager.batch.fluent.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.batch.models.AuthenticationMode; import com.azure.resourcemanager.batch.models.AutoStorageProperties; import com.azure.resourcemanager.batch.models.EncryptionProperties; import com.azure.resourcemanager.batch.models.KeyVaultReference; +import com.azure.resourcemanager.batch.models.NetworkProfile; import com.azure.resourcemanager.batch.models.PoolAllocationMode; import com.azure.resourcemanager.batch.models.ProvisioningState; import com.azure.resourcemanager.batch.models.PublicNetworkAccessType; @@ -17,7 +18,7 @@ import java.util.List; /** Account specific properties. */ -@Immutable +@Fluent public final class BatchAccountProperties { /* * The account endpoint used to interact with the Batch service. @@ -25,6 +26,13 @@ public final class BatchAccountProperties { @JsonProperty(value = "accountEndpoint", access = JsonProperty.Access.WRITE_ONLY) private String accountEndpoint; + /* + * The endpoint used by compute node to connect to the Batch node + * management service. + */ + @JsonProperty(value = "nodeManagementEndpoint", access = JsonProperty.Access.WRITE_ONLY) + private String nodeManagementEndpoint; + /* * The provisioned state of the resource */ @@ -46,9 +54,16 @@ public final class BatchAccountProperties { /* * If not specified, the default value is 'enabled'. */ - @JsonProperty(value = "publicNetworkAccess", access = JsonProperty.Access.WRITE_ONLY) + @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccessType publicNetworkAccess; + /* + * The network profile only takes effect when publicNetworkAccess is + * enabled. + */ + @JsonProperty(value = "networkProfile") + private NetworkProfile networkProfile; + /* * List of private endpoint connections associated with the Batch account */ @@ -79,8 +94,8 @@ public final class BatchAccountProperties { private Integer dedicatedCoreQuota; /* - * The Spot/low-priority core quota for the Batch account. For accounts - * with PoolAllocationMode set to UserSubscription, quota is managed on the + * The 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) @@ -97,14 +112,11 @@ public final class BatchAccountProperties { /* * A value indicating whether core quotas per Virtual Machine family are - * enforced for this account Batch is transitioning its core quota system - * for dedicated cores to be enforced per Virtual Machine family. During - * this transitional phase, the dedicated core quota per Virtual Machine - * family may not yet be enforced. If this flag is false, dedicated core - * quota is enforced via the old dedicatedCoreQuota property on the account - * and does not consider Virtual Machine family. If this flag is true, - * dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily - * property on the account, and the old dedicatedCoreQuota does not apply. + * enforced for this account If this flag is true, dedicated core quota is + * enforced via both the dedicatedCoreQuotaPerVMFamily and + * dedicatedCoreQuota properties on the account. If this flag is false, + * dedicated core quota is enforced only via the dedicatedCoreQuota + * property on the account and does not consider Virtual Machine family. */ @JsonProperty(value = "dedicatedCoreQuotaPerVMFamilyEnforced", access = JsonProperty.Access.WRITE_ONLY) private Boolean dedicatedCoreQuotaPerVMFamilyEnforced; @@ -138,6 +150,16 @@ public String accountEndpoint() { return this.accountEndpoint; } + /** + * Get the nodeManagementEndpoint property: The endpoint used by compute node to connect to the Batch node + * management service. + * + * @return the nodeManagementEndpoint value. + */ + public String nodeManagementEndpoint() { + return this.nodeManagementEndpoint; + } + /** * Get the provisioningState property: The provisioned state of the resource. * @@ -174,6 +196,37 @@ public PublicNetworkAccessType publicNetworkAccess() { return this.publicNetworkAccess; } + /** + * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'. + * + * @param publicNetworkAccess the publicNetworkAccess value to set. + * @return the BatchAccountProperties object itself. + */ + public BatchAccountProperties withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) { + this.publicNetworkAccess = publicNetworkAccess; + return this; + } + + /** + * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @return the networkProfile value. + */ + public NetworkProfile networkProfile() { + return this.networkProfile; + } + + /** + * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @param networkProfile the networkProfile value to set. + * @return the BatchAccountProperties object itself. + */ + public BatchAccountProperties withNetworkProfile(NetworkProfile networkProfile) { + this.networkProfile = networkProfile; + return this; + } + /** * Get the privateEndpointConnections property: List of private endpoint connections associated with the Batch * account. @@ -216,7 +269,7 @@ public Integer dedicatedCoreQuota() { } /** - * Get the lowPriorityCoreQuota property: The Spot/low-priority core quota for the Batch account. For accounts with + * Get the lowPriorityCoreQuota property: The 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. @@ -238,12 +291,10 @@ public List dedicatedCoreQuotaPerVMFamily() { /** * Get the dedicatedCoreQuotaPerVMFamilyEnforced property: A value indicating whether core quotas per Virtual - * Machine family are enforced for this account Batch is transitioning its core quota system for dedicated cores to - * be enforced per Virtual Machine family. During this transitional phase, the dedicated core quota per Virtual - * Machine family may not yet be enforced. If this flag is false, dedicated core quota is enforced via the old - * dedicatedCoreQuota property on the account and does not consider Virtual Machine family. If this flag is true, - * dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily property on the account, and the old - * dedicatedCoreQuota does not apply. + * Machine family are enforced for this account If this flag is true, dedicated core quota is enforced via both the + * dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the account. If this flag is false, dedicated + * core quota is enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual + * Machine family. * * @return the dedicatedCoreQuotaPerVMFamilyEnforced value. */ @@ -288,6 +339,9 @@ public void validate() { if (keyVaultReference() != null) { keyVaultReference().validate(); } + if (networkProfile() != null) { + networkProfile().validate(); + } if (privateEndpointConnections() != null) { privateEndpointConnections().forEach(e -> e.validate()); } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java index 236461db87df..fc59d35bd89b 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java @@ -8,6 +8,8 @@ import com.azure.resourcemanager.batch.models.AuthenticationMode; import com.azure.resourcemanager.batch.models.AutoStorageBaseProperties; import com.azure.resourcemanager.batch.models.EncryptionProperties; +import com.azure.resourcemanager.batch.models.NetworkProfile; +import com.azure.resourcemanager.batch.models.PublicNetworkAccessType; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -36,6 +38,19 @@ public final class BatchAccountUpdateProperties { @JsonProperty(value = "allowedAuthenticationModes") private List allowedAuthenticationModes; + /* + * If not specified, the default value is 'enabled'. + */ + @JsonProperty(value = "publicNetworkAccess") + private PublicNetworkAccessType publicNetworkAccess; + + /* + * The network profile only takes effect when publicNetworkAccess is + * enabled. + */ + @JsonProperty(value = "networkProfile") + private NetworkProfile networkProfile; + /** * Get the autoStorage property: The properties related to the auto-storage account. * @@ -103,6 +118,46 @@ public BatchAccountUpdateProperties withAllowedAuthenticationModes( return this; } + /** + * Get the publicNetworkAccess property: If not specified, the default value is 'enabled'. + * + * @return the publicNetworkAccess value. + */ + public PublicNetworkAccessType publicNetworkAccess() { + return this.publicNetworkAccess; + } + + /** + * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'. + * + * @param publicNetworkAccess the publicNetworkAccess value to set. + * @return the BatchAccountUpdateProperties object itself. + */ + public BatchAccountUpdateProperties withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) { + this.publicNetworkAccess = publicNetworkAccess; + return this; + } + + /** + * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @return the networkProfile value. + */ + public NetworkProfile networkProfile() { + return this.networkProfile; + } + + /** + * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @param networkProfile the networkProfile value to set. + * @return the BatchAccountUpdateProperties object itself. + */ + public BatchAccountUpdateProperties withNetworkProfile(NetworkProfile networkProfile) { + this.networkProfile = networkProfile; + return this; + } + /** * Validates the instance. * @@ -115,5 +170,8 @@ public void validate() { if (encryption() != null) { encryption().validate(); } + if (networkProfile() != null) { + networkProfile().validate(); + } } } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OperationInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OperationInner.java index 3b1a9430134a..7af549bde92d 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OperationInner.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OperationInner.java @@ -37,7 +37,7 @@ public final class OperationInner { private String origin; /* - * Any object + * Properties of the operation. */ @JsonProperty(value = "properties") private Object properties; @@ -123,7 +123,7 @@ public OperationInner withOrigin(String origin) { } /** - * Get the properties property: Any object. + * Get the properties property: Properties of the operation. * * @return the properties value. */ @@ -132,7 +132,7 @@ public Object properties() { } /** - * Set the properties property: Any object. + * Set the properties property: Properties of the operation. * * @param properties the properties value to set. * @return the OperationInner object itself. 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 3a1a39d37b8e..a5139621caa9 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 @@ -244,7 +244,7 @@ public Integer currentDedicatedNodes() { } /** - * Get the currentLowPriorityNodes property: The number of Spot/low-priority compute nodes currently in the pool. + * Get the currentLowPriorityNodes property: The number of 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 c09fdc6ec744..f097fc00fa2a 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 @@ -108,7 +108,7 @@ public final class PoolProperties { private Integer currentDedicatedNodes; /* - * The number of Spot/low-priority compute nodes currently in the pool. + * The number of low-priority compute nodes currently in the pool. */ @JsonProperty(value = "currentLowPriorityNodes", access = JsonProperty.Access.WRITE_ONLY) private Integer currentLowPriorityNodes; @@ -385,7 +385,7 @@ public Integer currentDedicatedNodes() { } /** - * Get the currentLowPriorityNodes property: The number of Spot/low-priority compute nodes currently in the pool. + * Get the currentLowPriorityNodes property: The number of 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/PrivateEndpointConnectionInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionInner.java index 973622967360..7a61c1cf36b8 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionInner.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.batch.models.PrivateEndpointConnectionProvisioningState; import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionState; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** Contains information about a private link resource. */ @Fluent @@ -63,17 +64,13 @@ public PrivateEndpoint privateEndpoint() { } /** - * Set the privateEndpoint property: The private endpoint of the private endpoint connection. + * Get the groupIds property: The group id of the private endpoint connection. The value has one and only one group + * id. * - * @param privateEndpoint the privateEndpoint value to set. - * @return the PrivateEndpointConnectionInner object itself. + * @return the groupIds value. */ - public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) { - if (this.innerProperties() == null) { - this.innerProperties = new PrivateEndpointConnectionProperties(); - } - this.innerProperties().withPrivateEndpoint(privateEndpoint); - return this; + public List groupIds() { + return this.innerProperties() == null ? null : this.innerProperties().groupIds(); } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionProperties.java index 076a6c9ffb69..e480c42431d9 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionProperties.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.batch.models.PrivateEndpointConnectionProvisioningState; import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionState; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** Private endpoint connection properties. */ @Fluent @@ -22,9 +23,16 @@ public final class PrivateEndpointConnectionProperties { /* * The private endpoint of the private endpoint connection. */ - @JsonProperty(value = "privateEndpoint") + @JsonProperty(value = "privateEndpoint", access = JsonProperty.Access.WRITE_ONLY) private PrivateEndpoint privateEndpoint; + /* + * The group id of the private endpoint connection. The value has one and + * only one group id. + */ + @JsonProperty(value = "groupIds", access = JsonProperty.Access.WRITE_ONLY) + private List groupIds; + /* * The private link service connection state of the private endpoint * connection @@ -51,14 +59,13 @@ public PrivateEndpoint privateEndpoint() { } /** - * Set the privateEndpoint property: The private endpoint of the private endpoint connection. + * Get the groupIds property: The group id of the private endpoint connection. The value has one and only one group + * id. * - * @param privateEndpoint the privateEndpoint value to set. - * @return the PrivateEndpointConnectionProperties object itself. + * @return the groupIds value. */ - public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) { - this.privateEndpoint = privateEndpoint; - return this; + public List groupIds() { + return this.groupIds; } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationImpl.java index e0d83b6bdbb7..c2b473a36edd 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationImpl.java @@ -41,6 +41,10 @@ public String defaultVersion() { return this.innerModel().defaultVersion(); } + public String resourceGroupName() { + return resourceGroupName; + } + public ApplicationInner innerModel() { return this.innerObject; } 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 2403ac1de5e4..bb0f9ba8d0b4 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 @@ -325,14 +325,7 @@ private Mono activateAsync( String versionName, ActivateApplicationPackageParameters parameters) { return activateWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -553,14 +546,7 @@ private Mono createAsync( String versionName, ApplicationPackageInner parameters) { return createWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -583,14 +569,7 @@ private Mono createAsync( String resourceGroupName, String accountName, String applicationName, String versionName) { final ApplicationPackageInner parameters = null; return createWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -776,7 +755,7 @@ private Mono> deleteWithResponseAsync( private Mono deleteAsync( String resourceGroupName, String accountName, String applicationName, String versionName) { return deleteWithResponseAsync(resourceGroupName, accountName, applicationName, versionName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -948,14 +927,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String accountName, String applicationName, String versionName) { return getWithResponseAsync(resourceGroupName, accountName, applicationName, versionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** 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 8a674ddbb454..3b50efbbe3cb 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 @@ -291,14 +291,7 @@ private Mono> createWithResponseAsync( private Mono createAsync( String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters) { return createWithResponseAsync(resourceGroupName, accountName, applicationName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -316,14 +309,7 @@ private Mono createAsync( private Mono createAsync(String resourceGroupName, String accountName, String applicationName) { final ApplicationInner parameters = null; return createWithResponseAsync(resourceGroupName, accountName, applicationName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -486,7 +472,7 @@ private Mono> deleteWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono deleteAsync(String resourceGroupName, String accountName, String applicationName) { return deleteWithResponseAsync(resourceGroupName, accountName, applicationName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -644,14 +630,7 @@ private Mono> getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String accountName, String applicationName) { return getWithResponseAsync(resourceGroupName, accountName, applicationName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -830,14 +809,7 @@ private Mono> updateWithResponseAsync( private Mono updateAsync( String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters) { return updateWithResponseAsync(resourceGroupName, accountName, applicationName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountImpl.java index 31a3e1ed8831..457b2b420498 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountImpl.java @@ -20,6 +20,7 @@ import com.azure.resourcemanager.batch.models.BatchAccountUpdateParameters; import com.azure.resourcemanager.batch.models.EncryptionProperties; import com.azure.resourcemanager.batch.models.KeyVaultReference; +import com.azure.resourcemanager.batch.models.NetworkProfile; import com.azure.resourcemanager.batch.models.PoolAllocationMode; import com.azure.resourcemanager.batch.models.PrivateEndpointConnection; import com.azure.resourcemanager.batch.models.ProvisioningState; @@ -68,6 +69,10 @@ public String accountEndpoint() { return this.innerModel().accountEndpoint(); } + public String nodeManagementEndpoint() { + return this.innerModel().nodeManagementEndpoint(); + } + public ProvisioningState provisioningState() { return this.innerModel().provisioningState(); } @@ -84,6 +89,10 @@ public PublicNetworkAccessType publicNetworkAccess() { return this.innerModel().publicNetworkAccess(); } + public NetworkProfile networkProfile() { + return this.innerModel().networkProfile(); + } + public List privateEndpointConnections() { List inner = this.innerModel().privateEndpointConnections(); if (inner != null) { @@ -152,6 +161,10 @@ public String regionName() { return this.location(); } + public String resourceGroupName() { + return resourceGroupName; + } + public BatchAccountInner innerModel() { return this.innerObject; } @@ -330,8 +343,23 @@ public BatchAccountImpl withKeyVaultReference(KeyVaultReference keyVaultReferenc } public BatchAccountImpl withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) { - this.createParameters.withPublicNetworkAccess(publicNetworkAccess); - return this; + if (isInCreateMode()) { + this.createParameters.withPublicNetworkAccess(publicNetworkAccess); + return this; + } else { + this.updateParameters.withPublicNetworkAccess(publicNetworkAccess); + return this; + } + } + + public BatchAccountImpl withNetworkProfile(NetworkProfile networkProfile) { + if (isInCreateMode()) { + this.createParameters.withNetworkProfile(networkProfile); + return this; + } else { + this.updateParameters.withNetworkProfile(networkProfile); + return this; + } } public BatchAccountImpl withEncryption(EncryptionProperties encryption) { 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 336ca4c6e914..817d363cd0db 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 @@ -727,14 +727,7 @@ private Mono> updateWithResponseAsync( private Mono updateAsync( String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters) { return updateWithResponseAsync(resourceGroupName, accountName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1108,14 +1101,7 @@ private Mono> getByResourceGroupWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) { return getByResourceGroupWithResponseAsync(resourceGroupName, accountName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1575,7 +1561,7 @@ private Mono> synchronizeAutoStorageKeysWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono synchronizeAutoStorageKeysAsync(String resourceGroupName, String accountName) { return synchronizeAutoStorageKeysWithResponseAsync(resourceGroupName, accountName) - .flatMap((Response res) -> Mono.empty()); + .flatMap(ignored -> Mono.empty()); } /** @@ -1743,14 +1729,7 @@ private Mono> regenerateKeyWithResponseAsync( private Mono regenerateKeyAsync( String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters) { return regenerateKeyWithResponseAsync(resourceGroupName, accountName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1907,14 +1886,7 @@ private Mono> getKeysWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getKeysAsync(String resourceGroupName, String accountName) { return getKeysWithResponseAsync(resourceGroupName, accountName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -2260,14 +2232,7 @@ private Mono> getDetectorWithResponseAsync( private Mono getDetectorAsync( String resourceGroupName, String accountName, String detectorId) { return getDetectorWithResponseAsync(resourceGroupName, accountName, detectorId) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientBuilder.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientBuilder.java index b8c93ae89743..edc22abc2cbe 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientBuilder.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientBuilder.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.http.HttpPipelineBuilder; -import com.azure.core.http.policy.CookiePolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; import com.azure.core.management.AzureEnvironment; @@ -68,34 +67,34 @@ public BatchManagementClientBuilder environment(AzureEnvironment environment) { } /* - * The default poll interval for long-running operation + * The HTTP pipeline to send requests through */ - private Duration defaultPollInterval; + private HttpPipeline pipeline; /** - * Sets The default poll interval for long-running operation. + * Sets The HTTP pipeline to send requests through. * - * @param defaultPollInterval the defaultPollInterval value. + * @param pipeline the pipeline value. * @return the BatchManagementClientBuilder. */ - public BatchManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { - this.defaultPollInterval = defaultPollInterval; + public BatchManagementClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; return this; } /* - * The HTTP pipeline to send requests through + * The default poll interval for long-running operation */ - private HttpPipeline pipeline; + private Duration defaultPollInterval; /** - * Sets The HTTP pipeline to send requests through. + * Sets The default poll interval for long-running operation. * - * @param pipeline the pipeline value. + * @param defaultPollInterval the defaultPollInterval value. * @return the BatchManagementClientBuilder. */ - public BatchManagementClientBuilder pipeline(HttpPipeline pipeline) { - this.pipeline = pipeline; + public BatchManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) { + this.defaultPollInterval = defaultPollInterval; return this; } @@ -127,15 +126,12 @@ public BatchManagementClientImpl buildClient() { if (environment == null) { this.environment = AzureEnvironment.AZURE; } + if (pipeline == null) { + this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + } if (defaultPollInterval == null) { this.defaultPollInterval = Duration.ofSeconds(30); } - if (pipeline == null) { - this.pipeline = - new HttpPipelineBuilder() - .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) - .build(); - } if (serializerAdapter == null) { this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientImpl.java index 135451de7dac..68479f739f71 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchManagementClientImpl.java @@ -15,6 +15,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.management.polling.PollerFactory; import com.azure.core.util.Context; +import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.polling.AsyncPollResponse; import com.azure.core.util.polling.LongRunningOperationStatus; @@ -37,7 +38,6 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.Duration; -import java.util.Map; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -247,7 +247,7 @@ public PoolsClient getPools() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-01-01"; + this.apiVersion = "2022-06-01"; this.batchAccounts = new BatchAccountsClientImpl(this); this.applicationPackages = new ApplicationPackagesClientImpl(this); this.applications = new ApplicationsClientImpl(this); @@ -275,10 +275,7 @@ public Context getContext() { * @return the merged context. */ public Context mergeContext(Context context) { - for (Map.Entry entry : this.getContext().getValues().entrySet()) { - context = context.addData(entry.getKey(), entry.getValue()); - } - return context; + return CoreUtils.mergeContexts(this.getContext(), context); } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificateImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificateImpl.java index 27e2e73c8edc..a79dace7d380 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificateImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificateImpl.java @@ -71,6 +71,10 @@ public CertificateFormat format() { return this.innerModel().format(); } + public String resourceGroupName() { + return resourceGroupName; + } + public CertificateInner innerModel() { return this.innerObject; } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificatesClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificatesClientImpl.java index 502fa574292b..90c866a3a62f 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificatesClientImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/CertificatesClientImpl.java @@ -611,14 +611,7 @@ private Mono createAsync( String ifNoneMatch) { return createWithResponseAsync( resourceGroupName, accountName, certificateName, parameters, ifMatch, ifNoneMatch) - .flatMap( - (CertificatesCreateResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -644,14 +637,7 @@ private Mono createAsync( final String ifNoneMatch = null; return createWithResponseAsync( resourceGroupName, accountName, certificateName, parameters, ifMatch, ifNoneMatch) - .flatMap( - (CertificatesCreateResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -870,14 +856,7 @@ private Mono updateAsync( CertificateCreateOrUpdateParameters parameters, String ifMatch) { return updateWithResponseAsync(resourceGroupName, accountName, certificateName, parameters, ifMatch) - .flatMap( - (CertificatesUpdateResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -901,14 +880,7 @@ private Mono updateAsync( CertificateCreateOrUpdateParameters parameters) { final String ifMatch = null; return updateWithResponseAsync(resourceGroupName, accountName, certificateName, parameters, ifMatch) - .flatMap( - (CertificatesUpdateResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1350,14 +1322,7 @@ private Mono getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String accountName, String certificateName) { return getWithResponseAsync(resourceGroupName, accountName, certificateName) - .flatMap( - (CertificatesGetResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1532,14 +1497,7 @@ private Mono cancelDeletionWithResponseAsync private Mono cancelDeletionAsync( String resourceGroupName, String accountName, String certificateName) { return cancelDeletionWithResponseAsync(resourceGroupName, accountName, certificateName) - .flatMap( - (CertificatesCancelDeletionResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/LocationsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/LocationsClientImpl.java index 4d842fcc962e..e03c96b8e00d 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/LocationsClientImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/LocationsClientImpl.java @@ -230,15 +230,7 @@ private Mono> getQuotasWithResponseAsync(Strin */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono getQuotasAsync(String locationName) { - return getQuotasWithResponseAsync(locationName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + return getQuotasWithResponseAsync(locationName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -795,14 +787,7 @@ private Mono> checkNameAvailabilityWi private Mono checkNameAvailabilityAsync( String locationName, CheckNameAvailabilityParameters parameters) { return checkNameAvailabilityWithResponseAsync(locationName, parameters) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolImpl.java index e6029187b779..ebaee87bc9f5 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolImpl.java @@ -183,6 +183,10 @@ public List mountConfiguration() { } } + public String resourceGroupName() { + return resourceGroupName; + } + public PoolInner innerModel() { return this.innerObject; } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolsClientImpl.java index 6994e69be9f8..575cd7228a15 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolsClientImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PoolsClientImpl.java @@ -635,14 +635,7 @@ private Mono createAsync( String ifMatch, String ifNoneMatch) { return createWithResponseAsync(resourceGroupName, accountName, poolName, parameters, ifMatch, ifNoneMatch) - .flatMap( - (PoolsCreateResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -663,14 +656,7 @@ private Mono createAsync( final String ifMatch = null; final String ifNoneMatch = null; return createWithResponseAsync(resourceGroupName, accountName, poolName, parameters, ifMatch, ifNoneMatch) - .flatMap( - (PoolsCreateResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -873,14 +859,7 @@ private Mono updateWithResponseAsync( private Mono updateAsync( String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch) { return updateWithResponseAsync(resourceGroupName, accountName, poolName, parameters, ifMatch) - .flatMap( - (PoolsUpdateResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -901,14 +880,7 @@ private Mono updateAsync( String resourceGroupName, String accountName, String poolName, PoolInner parameters) { final String ifMatch = null; return updateWithResponseAsync(resourceGroupName, accountName, poolName, parameters, ifMatch) - .flatMap( - (PoolsUpdateResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1325,14 +1297,7 @@ private Mono getWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono getAsync(String resourceGroupName, String accountName, String poolName) { return getWithResponseAsync(resourceGroupName, accountName, poolName) - .flatMap( - (PoolsGetResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1487,14 +1452,7 @@ private Mono disableAutoScaleWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono disableAutoScaleAsync(String resourceGroupName, String accountName, String poolName) { return disableAutoScaleWithResponseAsync(resourceGroupName, accountName, poolName) - .flatMap( - (PoolsDisableAutoScaleResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -1661,14 +1619,7 @@ private Mono stopResizeWithResponseAsync( @ServiceMethod(returns = ReturnType.SINGLE) private Mono stopResizeAsync(String resourceGroupName, String accountName, String poolName) { return stopResizeWithResponseAsync(resourceGroupName, accountName, poolName) - .flatMap( - (PoolsStopResizeResponse res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionImpl.java index 39923cff73b9..3786dd60ece7 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionImpl.java @@ -9,6 +9,8 @@ import com.azure.resourcemanager.batch.models.PrivateEndpointConnection; import com.azure.resourcemanager.batch.models.PrivateEndpointConnectionProvisioningState; import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionState; +import java.util.Collections; +import java.util.List; public final class PrivateEndpointConnectionImpl implements PrivateEndpointConnection { private PrivateEndpointConnectionInner innerObject; @@ -45,6 +47,15 @@ public PrivateEndpoint privateEndpoint() { return this.innerModel().privateEndpoint(); } + public List groupIds() { + List inner = this.innerModel().groupIds(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { return this.innerModel().privateLinkServiceConnectionState(); } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsClientImpl.java index 2ac9cdf6810e..7025a2a97849 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsClientImpl.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.batch.implementation; import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.HeaderParam; @@ -115,6 +116,22 @@ Mono>> update( @HeaderParam("Accept") String accept, Context context); + @Headers({"Content-Type: application/json"}) + @Delete( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts" + + "/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}") + @ExpectedResponses({202, 204}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + @Headers({"Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @@ -467,14 +484,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String accountName, String privateEndpointConnectionName) { return getWithResponseAsync(resourceGroupName, accountName, privateEndpointConnectionName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** @@ -954,6 +964,276 @@ public PrivateEndpointConnectionInner update( .block(); } + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @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 {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String accountName, String privateEndpointConnectionName) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (privateEndpointConnectionName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .delete( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + privateEndpointConnectionName, + this.client.getApiVersion(), + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @param context The context to associate with this operation. + * @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 {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (privateEndpointConnectionName == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter privateEndpointConnectionName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .delete( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + privateEndpointConnectionName, + this.client.getApiVersion(), + accept, + context); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @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 {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String accountName, String privateEndpointConnectionName) { + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, accountName, privateEndpointConnectionName); + return this + .client + .getLroResult( + mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @param context The context to associate with this operation. + * @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 {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = + deleteWithResponseAsync(resourceGroupName, accountName, privateEndpointConnectionName, context); + return this + .client + .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String privateEndpointConnectionName) { + return beginDeleteAsync(resourceGroupName, accountName, privateEndpointConnectionName).getSyncPoller(); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @param context The context to associate with this operation. + * @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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, Void> beginDelete( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, privateEndpointConnectionName, context).getSyncPoller(); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String accountName, String privateEndpointConnectionName) { + return beginDeleteAsync(resourceGroupName, accountName, privateEndpointConnectionName) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @param context The context to associate with this operation. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + return beginDeleteAsync(resourceGroupName, accountName, privateEndpointConnectionName, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName) { + deleteAsync(resourceGroupName, accountName, privateEndpointConnectionName).block(); + } + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * account. + * @param context The context to associate with this operation. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + deleteAsync(resourceGroupName, accountName, privateEndpointConnectionName, context).block(); + } + /** * Get the next page of items. * diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsImpl.java index 2645e62a84e6..eab6293f229d 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateEndpointConnectionsImpl.java @@ -117,6 +117,15 @@ public PrivateEndpointConnection update( } } + public void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName) { + this.serviceClient().delete(resourceGroupName, accountName, privateEndpointConnectionName); + } + + public void delete( + String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, privateEndpointConnectionName, context); + } + private PrivateEndpointConnectionsClient serviceClient() { return this.innerClient; } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateLinkResourcesClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateLinkResourcesClientImpl.java index 1407cd258e27..a49c8804b32c 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/PrivateLinkResourcesClientImpl.java @@ -434,14 +434,7 @@ private Mono> getWithResponseAsync( private Mono getAsync( String resourceGroupName, String accountName, String privateLinkResourceName) { return getWithResponseAsync(resourceGroupName, accountName, privateLinkResourceName) - .flatMap( - (Response res) -> { - if (res.getValue() != null) { - return Mono.just(res.getValue()); - } else { - return Mono.empty(); - } - }); + .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Application.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Application.java index 1349913ca536..3bf82587d1d8 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Application.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Application.java @@ -60,6 +60,13 @@ public interface Application { */ String defaultVersion(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.batch.fluent.models.ApplicationInner object. * diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccount.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccount.java index 3ca6e99452dd..f22fb68e8a92 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccount.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccount.java @@ -62,6 +62,14 @@ public interface BatchAccount { */ String accountEndpoint(); + /** + * Gets the nodeManagementEndpoint property: The endpoint used by compute node to connect to the Batch node + * management service. + * + * @return the nodeManagementEndpoint value. + */ + String nodeManagementEndpoint(); + /** * Gets the provisioningState property: The provisioned state of the resource. * @@ -90,6 +98,13 @@ public interface BatchAccount { */ PublicNetworkAccessType publicNetworkAccess(); + /** + * Gets the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @return the networkProfile value. + */ + NetworkProfile networkProfile(); + /** * Gets the privateEndpointConnections property: List of private endpoint connections associated with the Batch * account. @@ -124,7 +139,7 @@ public interface BatchAccount { Integer dedicatedCoreQuota(); /** - * Gets the lowPriorityCoreQuota property: The Spot/low-priority core quota for the Batch account. For accounts with + * Gets the lowPriorityCoreQuota property: The 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. @@ -142,12 +157,10 @@ public interface BatchAccount { /** * Gets the dedicatedCoreQuotaPerVMFamilyEnforced property: A value indicating whether core quotas per Virtual - * Machine family are enforced for this account Batch is transitioning its core quota system for dedicated cores to - * be enforced per Virtual Machine family. During this transitional phase, the dedicated core quota per Virtual - * Machine family may not yet be enforced. If this flag is false, dedicated core quota is enforced via the old - * dedicatedCoreQuota property on the account and does not consider Virtual Machine family. If this flag is true, - * dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily property on the account, and the old - * dedicatedCoreQuota does not apply. + * Machine family are enforced for this account If this flag is true, dedicated core quota is enforced via both the + * dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the account. If this flag is false, dedicated + * core quota is enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual + * Machine family. * * @return the dedicatedCoreQuotaPerVMFamilyEnforced value. */ @@ -189,6 +202,13 @@ public interface BatchAccount { */ String regionName(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.batch.fluent.models.BatchAccountInner object. * @@ -247,6 +267,7 @@ interface WithCreate DefinitionStages.WithPoolAllocationMode, DefinitionStages.WithKeyVaultReference, DefinitionStages.WithPublicNetworkAccess, + DefinitionStages.WithNetworkProfile, DefinitionStages.WithEncryption, DefinitionStages.WithAllowedAuthenticationModes { /** @@ -331,6 +352,17 @@ interface WithPublicNetworkAccess { */ WithCreate withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess); } + /** The stage of the BatchAccount definition allowing to specify networkProfile. */ + interface WithNetworkProfile { + /** + * Specifies the networkProfile property: The network profile only takes effect when publicNetworkAccess is + * enabled.. + * + * @param networkProfile The network profile only takes effect when publicNetworkAccess is enabled. + * @return the next definition stage. + */ + WithCreate withNetworkProfile(NetworkProfile networkProfile); + } /** The stage of the BatchAccount definition allowing to specify encryption. */ interface WithEncryption { /** @@ -372,7 +404,9 @@ interface Update UpdateStages.WithIdentity, UpdateStages.WithAutoStorage, UpdateStages.WithEncryption, - UpdateStages.WithAllowedAuthenticationModes { + UpdateStages.WithAllowedAuthenticationModes, + UpdateStages.WithPublicNetworkAccess, + UpdateStages.WithNetworkProfile { /** * Executes the update request. * @@ -447,6 +481,27 @@ interface WithAllowedAuthenticationModes { */ Update withAllowedAuthenticationModes(List allowedAuthenticationModes); } + /** The stage of the BatchAccount update allowing to specify publicNetworkAccess. */ + interface WithPublicNetworkAccess { + /** + * Specifies the publicNetworkAccess property: If not specified, the default value is 'enabled'.. + * + * @param publicNetworkAccess If not specified, the default value is 'enabled'. + * @return the next definition stage. + */ + Update withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess); + } + /** The stage of the BatchAccount update allowing to specify networkProfile. */ + interface WithNetworkProfile { + /** + * Specifies the networkProfile property: The network profile only takes effect when publicNetworkAccess is + * enabled.. + * + * @param networkProfile The network profile only takes effect when publicNetworkAccess is enabled. + * @return the next definition stage. + */ + Update withNetworkProfile(NetworkProfile networkProfile); + } } /** * Refreshes the resource to sync with Azure. diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountCreateParameters.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountCreateParameters.java index 29a0ee1024bd..9c79890e6032 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountCreateParameters.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountCreateParameters.java @@ -205,6 +205,29 @@ public BatchAccountCreateParameters withPublicNetworkAccess(PublicNetworkAccessT return this; } + /** + * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @return the networkProfile value. + */ + public NetworkProfile networkProfile() { + return this.innerProperties() == null ? null : this.innerProperties().networkProfile(); + } + + /** + * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @param networkProfile the networkProfile value to set. + * @return the BatchAccountCreateParameters object itself. + */ + public BatchAccountCreateParameters withNetworkProfile(NetworkProfile networkProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new BatchAccountCreateProperties(); + } + this.innerProperties().withNetworkProfile(networkProfile); + return this; + } + /** * Get the encryption property: Configures how customer data is encrypted inside the Batch account. By default, * accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountUpdateParameters.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountUpdateParameters.java index d5777b4d0580..4549566b3beb 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountUpdateParameters.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountUpdateParameters.java @@ -158,6 +158,52 @@ public BatchAccountUpdateParameters withAllowedAuthenticationModes( return this; } + /** + * Get the publicNetworkAccess property: If not specified, the default value is 'enabled'. + * + * @return the publicNetworkAccess value. + */ + public PublicNetworkAccessType publicNetworkAccess() { + return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess(); + } + + /** + * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'. + * + * @param publicNetworkAccess the publicNetworkAccess value to set. + * @return the BatchAccountUpdateParameters object itself. + */ + public BatchAccountUpdateParameters withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) { + if (this.innerProperties() == null) { + this.innerProperties = new BatchAccountUpdateProperties(); + } + this.innerProperties().withPublicNetworkAccess(publicNetworkAccess); + return this; + } + + /** + * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @return the networkProfile value. + */ + public NetworkProfile networkProfile() { + return this.innerProperties() == null ? null : this.innerProperties().networkProfile(); + } + + /** + * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled. + * + * @param networkProfile the networkProfile value to set. + * @return the BatchAccountUpdateParameters object itself. + */ + public BatchAccountUpdateParameters withNetworkProfile(NetworkProfile networkProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new BatchAccountUpdateProperties(); + } + this.innerProperties().withNetworkProfile(networkProfile); + return this; + } + /** * Validates the instance. * diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsCreateHeaders.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsCreateHeaders.java deleted file mode 100644 index d92e93f81c3b..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsCreateHeaders.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The BatchAccountsCreateHeaders model. */ -@Fluent -public final class BatchAccountsCreateHeaders { - /* - * The Retry-After property. - */ - @JsonProperty(value = "Retry-After") - private Integer retryAfter; - - /* - * The Location property. - */ - @JsonProperty(value = "Location") - private String location; - - /** - * Get the retryAfter property: The Retry-After property. - * - * @return the retryAfter value. - */ - public Integer retryAfter() { - return this.retryAfter; - } - - /** - * Set the retryAfter property: The Retry-After property. - * - * @param retryAfter the retryAfter value to set. - * @return the BatchAccountsCreateHeaders object itself. - */ - public BatchAccountsCreateHeaders withRetryAfter(Integer retryAfter) { - this.retryAfter = retryAfter; - return this; - } - - /** - * Get the location property: The Location property. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The Location property. - * - * @param location the location value to set. - * @return the BatchAccountsCreateHeaders object itself. - */ - public BatchAccountsCreateHeaders withLocation(String location) { - this.location = location; - 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/models/BatchAccountsCreateResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsCreateResponse.java deleted file mode 100644 index 3f39d82422d7..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsCreateResponse.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.rest.ResponseBase; -import com.azure.resourcemanager.batch.fluent.models.BatchAccountInner; - -/** Contains all response data for the create operation. */ -public final class BatchAccountsCreateResponse extends ResponseBase { - /** - * Creates an instance of BatchAccountsCreateResponse. - * - * @param request the request which resulted in this BatchAccountsCreateResponse. - * @param statusCode the status code of the HTTP response. - * @param rawHeaders the raw headers of the HTTP response. - * @param value the deserialized value of the HTTP response. - * @param headers the deserialized headers of the HTTP response. - */ - public BatchAccountsCreateResponse( - HttpRequest request, - int statusCode, - HttpHeaders rawHeaders, - BatchAccountInner value, - BatchAccountsCreateHeaders headers) { - super(request, statusCode, rawHeaders, value, headers); - } - - /** @return the deserialized response body. */ - @Override - public BatchAccountInner getValue() { - return super.getValue(); - } -} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsDeleteHeaders.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsDeleteHeaders.java deleted file mode 100644 index 28f35818a115..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsDeleteHeaders.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The BatchAccountsDeleteHeaders model. */ -@Fluent -public final class BatchAccountsDeleteHeaders { - /* - * The Retry-After property. - */ - @JsonProperty(value = "Retry-After") - private Integer retryAfter; - - /* - * The Location property. - */ - @JsonProperty(value = "Location") - private String location; - - /** - * Get the retryAfter property: The Retry-After property. - * - * @return the retryAfter value. - */ - public Integer retryAfter() { - return this.retryAfter; - } - - /** - * Set the retryAfter property: The Retry-After property. - * - * @param retryAfter the retryAfter value to set. - * @return the BatchAccountsDeleteHeaders object itself. - */ - public BatchAccountsDeleteHeaders withRetryAfter(Integer retryAfter) { - this.retryAfter = retryAfter; - return this; - } - - /** - * Get the location property: The Location property. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The Location property. - * - * @param location the location value to set. - * @return the BatchAccountsDeleteHeaders object itself. - */ - public BatchAccountsDeleteHeaders withLocation(String location) { - this.location = location; - 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/models/BatchAccountsDeleteResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsDeleteResponse.java deleted file mode 100644 index 7fb616d19e8b..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/BatchAccountsDeleteResponse.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.rest.ResponseBase; - -/** Contains all response data for the delete operation. */ -public final class BatchAccountsDeleteResponse extends ResponseBase { - /** - * Creates an instance of BatchAccountsDeleteResponse. - * - * @param request the request which resulted in this BatchAccountsDeleteResponse. - * @param statusCode the status code of the HTTP response. - * @param rawHeaders the raw headers of the HTTP response. - * @param value the deserialized value of the HTTP response. - * @param headers the deserialized headers of the HTTP response. - */ - public BatchAccountsDeleteResponse( - HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, BatchAccountsDeleteHeaders headers) { - super(request, statusCode, rawHeaders, value, headers); - } -} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Certificate.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Certificate.java index a539d210ef23..e0bfde7cfc2e 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Certificate.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Certificate.java @@ -105,6 +105,13 @@ public interface Certificate { */ CertificateFormat format(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.batch.fluent.models.CertificateInner object. * diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesCancelDeletionResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesCancelDeletionResponse.java index c1a1b17048fc..6810f1ae6776 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesCancelDeletionResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesCancelDeletionResponse.java @@ -30,7 +30,11 @@ public CertificatesCancelDeletionResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public CertificateInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesCreateResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesCreateResponse.java index 190b8bd05497..16ff684f0791 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesCreateResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesCreateResponse.java @@ -29,7 +29,11 @@ public CertificatesCreateResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public CertificateInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesDeleteHeaders.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesDeleteHeaders.java deleted file mode 100644 index 4faed4f46b5b..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesDeleteHeaders.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The CertificatesDeleteHeaders model. */ -@Fluent -public final class CertificatesDeleteHeaders { - /* - * The Retry-After property. - */ - @JsonProperty(value = "Retry-After") - private Integer retryAfter; - - /* - * The Location property. - */ - @JsonProperty(value = "Location") - private String location; - - /** - * Get the retryAfter property: The Retry-After property. - * - * @return the retryAfter value. - */ - public Integer retryAfter() { - return this.retryAfter; - } - - /** - * Set the retryAfter property: The Retry-After property. - * - * @param retryAfter the retryAfter value to set. - * @return the CertificatesDeleteHeaders object itself. - */ - public CertificatesDeleteHeaders withRetryAfter(Integer retryAfter) { - this.retryAfter = retryAfter; - return this; - } - - /** - * Get the location property: The Location property. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The Location property. - * - * @param location the location value to set. - * @return the CertificatesDeleteHeaders object itself. - */ - public CertificatesDeleteHeaders withLocation(String location) { - this.location = location; - 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/models/CertificatesDeleteResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesDeleteResponse.java deleted file mode 100644 index c4203bca6627..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesDeleteResponse.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.rest.ResponseBase; - -/** Contains all response data for the delete operation. */ -public final class CertificatesDeleteResponse extends ResponseBase { - /** - * Creates an instance of CertificatesDeleteResponse. - * - * @param request the request which resulted in this CertificatesDeleteResponse. - * @param statusCode the status code of the HTTP response. - * @param rawHeaders the raw headers of the HTTP response. - * @param value the deserialized value of the HTTP response. - * @param headers the deserialized headers of the HTTP response. - */ - public CertificatesDeleteResponse( - HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, CertificatesDeleteHeaders headers) { - super(request, statusCode, rawHeaders, value, headers); - } -} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesGetResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesGetResponse.java index 7f3da4712b33..58256f6e499b 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesGetResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesGetResponse.java @@ -29,7 +29,11 @@ public CertificatesGetResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public CertificateInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesUpdateResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesUpdateResponse.java index 6069707cc894..4507079390fb 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesUpdateResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/CertificatesUpdateResponse.java @@ -29,7 +29,11 @@ public CertificatesUpdateResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public CertificateInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/EndpointAccessDefaultAction.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/EndpointAccessDefaultAction.java new file mode 100644 index 000000000000..fa6f3ea6806a --- /dev/null +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/EndpointAccessDefaultAction.java @@ -0,0 +1,47 @@ +// 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.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** Defines values for EndpointAccessDefaultAction. */ +public enum EndpointAccessDefaultAction { + /** Enum value Allow. */ + ALLOW("Allow"), + + /** Enum value Deny. */ + DENY("Deny"); + + /** The actual serialized value for a EndpointAccessDefaultAction instance. */ + private final String value; + + EndpointAccessDefaultAction(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a EndpointAccessDefaultAction instance. + * + * @param value the serialized value to parse. + * @return the parsed EndpointAccessDefaultAction object, or null if unable to parse. + */ + @JsonCreator + public static EndpointAccessDefaultAction fromString(String value) { + EndpointAccessDefaultAction[] items = EndpointAccessDefaultAction.values(); + for (EndpointAccessDefaultAction item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/EndpointAccessProfile.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/EndpointAccessProfile.java new file mode 100644 index 000000000000..c573ff0ffa19 --- /dev/null +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/EndpointAccessProfile.java @@ -0,0 +1,89 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** Network access profile for Batch endpoint. */ +@Fluent +public final class EndpointAccessProfile { + /* + * The default action when there is no IPRule matched. Default action for + * endpoint access. It is only applicable when publicNetworkAccess is + * enabled. + */ + @JsonProperty(value = "defaultAction", required = true) + private EndpointAccessDefaultAction defaultAction; + + /* + * Array of IP ranges to filter client IP address. + */ + @JsonProperty(value = "ipRules") + private List ipRules; + + /** + * Get the defaultAction property: The default action when there is no IPRule matched. Default action for endpoint + * access. It is only applicable when publicNetworkAccess is enabled. + * + * @return the defaultAction value. + */ + public EndpointAccessDefaultAction defaultAction() { + return this.defaultAction; + } + + /** + * Set the defaultAction property: The default action when there is no IPRule matched. Default action for endpoint + * access. It is only applicable when publicNetworkAccess is enabled. + * + * @param defaultAction the defaultAction value to set. + * @return the EndpointAccessProfile object itself. + */ + public EndpointAccessProfile withDefaultAction(EndpointAccessDefaultAction defaultAction) { + this.defaultAction = defaultAction; + return this; + } + + /** + * Get the ipRules property: Array of IP ranges to filter client IP address. + * + * @return the ipRules value. + */ + public List ipRules() { + return this.ipRules; + } + + /** + * Set the ipRules property: Array of IP ranges to filter client IP address. + * + * @param ipRules the ipRules value to set. + * @return the EndpointAccessProfile object itself. + */ + public EndpointAccessProfile withIpRules(List ipRules) { + this.ipRules = ipRules; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (defaultAction() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property defaultAction in model EndpointAccessProfile")); + } + if (ipRules() != null) { + ipRules().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(EndpointAccessProfile.class); +} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/FixedScaleSettings.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/FixedScaleSettings.java index 8a2f639c0280..95b8dde44313 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/FixedScaleSettings.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/FixedScaleSettings.java @@ -30,8 +30,8 @@ public final class FixedScaleSettings { private Integer targetDedicatedNodes; /* - * The desired number of Spot/low-priority compute nodes in the pool. At - * least one of targetDedicatedNodes, targetLowPriorityNodes must be set. + * The desired number of low-priority compute nodes in the pool. At least + * one of targetDedicatedNodes, targetLowPriorityNodes must be set. */ @JsonProperty(value = "targetLowPriorityNodes") private Integer targetLowPriorityNodes; @@ -93,8 +93,8 @@ public FixedScaleSettings withTargetDedicatedNodes(Integer targetDedicatedNodes) } /** - * Get the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool. At - * least one of targetDedicatedNodes, targetLowPriorityNodes must be set. + * Get the targetLowPriorityNodes property: The desired number of low-priority compute nodes in the pool. At least + * one of targetDedicatedNodes, targetLowPriorityNodes must be set. * * @return the targetLowPriorityNodes value. */ @@ -103,8 +103,8 @@ public Integer targetLowPriorityNodes() { } /** - * Set the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool. At - * least one of targetDedicatedNodes, targetLowPriorityNodes must be set. + * Set the targetLowPriorityNodes property: The desired number of low-priority compute nodes in the pool. At least + * one of targetDedicatedNodes, targetLowPriorityNodes must be set. * * @param targetLowPriorityNodes the targetLowPriorityNodes value to set. * @return the FixedScaleSettings object itself. diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/IpRule.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/IpRule.java new file mode 100644 index 000000000000..4be74c9fb730 --- /dev/null +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/IpRule.java @@ -0,0 +1,87 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Rule to filter client IP address. */ +@Fluent +public final class IpRule { + /* + * Action when client IP address is matched. + */ + @JsonProperty(value = "action", required = true) + private String action = "Allow"; + + /* + * The IP address or IP address range to filter IPv4 address, or IPv4 + * address range in CIDR format. + */ + @JsonProperty(value = "value", required = true) + private String value; + + /** Creates an instance of IpRule class. */ + public IpRule() { + action = "Allow"; + } + + /** + * Get the action property: Action when client IP address is matched. + * + * @return the action value. + */ + public String action() { + return this.action; + } + + /** + * Set the action property: Action when client IP address is matched. + * + * @param action the action value to set. + * @return the IpRule object itself. + */ + public IpRule withAction(String action) { + this.action = action; + return this; + } + + /** + * Get the value property: The IP address or IP address range to filter IPv4 address, or IPv4 address range in CIDR + * format. + * + * @return the value value. + */ + public String value() { + return this.value; + } + + /** + * Set the value property: The IP address or IP address range to filter IPv4 address, or IPv4 address range in CIDR + * format. + * + * @param value the value value to set. + * @return the IpRule object itself. + */ + public IpRule withValue(String value) { + this.value = value; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER + .logExceptionAsError(new IllegalArgumentException("Missing required property value in model IpRule")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(IpRule.class); +} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/NetworkProfile.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/NetworkProfile.java new file mode 100644 index 000000000000..f302c3493df9 --- /dev/null +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/NetworkProfile.java @@ -0,0 +1,82 @@ +// 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.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Network profile for Batch account, which contains network rule settings for each endpoint. */ +@Fluent +public final class NetworkProfile { + /* + * Network access profile for batchAccount endpoint (Batch account data + * plane API). + */ + @JsonProperty(value = "accountAccess") + private EndpointAccessProfile accountAccess; + + /* + * Network access profile for nodeManagement endpoint (Batch service + * managing compute nodes for Batch pools). + */ + @JsonProperty(value = "nodeManagementAccess") + private EndpointAccessProfile nodeManagementAccess; + + /** + * Get the accountAccess property: Network access profile for batchAccount endpoint (Batch account data plane API). + * + * @return the accountAccess value. + */ + public EndpointAccessProfile accountAccess() { + return this.accountAccess; + } + + /** + * Set the accountAccess property: Network access profile for batchAccount endpoint (Batch account data plane API). + * + * @param accountAccess the accountAccess value to set. + * @return the NetworkProfile object itself. + */ + public NetworkProfile withAccountAccess(EndpointAccessProfile accountAccess) { + this.accountAccess = accountAccess; + return this; + } + + /** + * Get the nodeManagementAccess property: Network access profile for nodeManagement endpoint (Batch service managing + * compute nodes for Batch pools). + * + * @return the nodeManagementAccess value. + */ + public EndpointAccessProfile nodeManagementAccess() { + return this.nodeManagementAccess; + } + + /** + * Set the nodeManagementAccess property: Network access profile for nodeManagement endpoint (Batch service managing + * compute nodes for Batch pools). + * + * @param nodeManagementAccess the nodeManagementAccess value to set. + * @return the NetworkProfile object itself. + */ + public NetworkProfile withNodeManagementAccess(EndpointAccessProfile nodeManagementAccess) { + this.nodeManagementAccess = nodeManagementAccess; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (accountAccess() != null) { + accountAccess().validate(); + } + if (nodeManagementAccess() != null) { + nodeManagementAccess().validate(); + } + } +} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Operation.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Operation.java index 6626afd20634..7f985805a441 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Operation.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Operation.java @@ -37,7 +37,7 @@ public interface Operation { String origin(); /** - * Gets the properties property: Any object. + * Gets the properties property: Properties of the operation. * * @return the properties value. */ diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Pool.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Pool.java index 9f615e97f2a0..81ab9aad32d9 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Pool.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/Pool.java @@ -132,7 +132,7 @@ public interface Pool { Integer currentDedicatedNodes(); /** - * Gets the currentLowPriorityNodes property: The number of Spot/low-priority compute nodes currently in the pool. + * Gets the currentLowPriorityNodes property: The number of low-priority compute nodes currently in the pool. * * @return the currentLowPriorityNodes value. */ @@ -261,6 +261,13 @@ public interface Pool { */ List mountConfiguration(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.batch.fluent.models.PoolInner object. * diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsCreateResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsCreateResponse.java index 4137d4355c34..0bf99009ec37 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsCreateResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsCreateResponse.java @@ -25,7 +25,11 @@ public PoolsCreateResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public PoolInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDeleteHeaders.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDeleteHeaders.java deleted file mode 100644 index ec6c63b6edbd..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDeleteHeaders.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The PoolsDeleteHeaders model. */ -@Fluent -public final class PoolsDeleteHeaders { - /* - * The Retry-After property. - */ - @JsonProperty(value = "Retry-After") - private Integer retryAfter; - - /* - * The Location property. - */ - @JsonProperty(value = "Location") - private String location; - - /** - * Get the retryAfter property: The Retry-After property. - * - * @return the retryAfter value. - */ - public Integer retryAfter() { - return this.retryAfter; - } - - /** - * Set the retryAfter property: The Retry-After property. - * - * @param retryAfter the retryAfter value to set. - * @return the PoolsDeleteHeaders object itself. - */ - public PoolsDeleteHeaders withRetryAfter(Integer retryAfter) { - this.retryAfter = retryAfter; - return this; - } - - /** - * Get the location property: The Location property. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The Location property. - * - * @param location the location value to set. - * @return the PoolsDeleteHeaders object itself. - */ - public PoolsDeleteHeaders withLocation(String location) { - this.location = location; - 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/models/PoolsDeleteResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDeleteResponse.java deleted file mode 100644 index 6b90acdf24c5..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDeleteResponse.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.rest.ResponseBase; - -/** Contains all response data for the delete operation. */ -public final class PoolsDeleteResponse extends ResponseBase { - /** - * Creates an instance of PoolsDeleteResponse. - * - * @param request the request which resulted in this PoolsDeleteResponse. - * @param statusCode the status code of the HTTP response. - * @param rawHeaders the raw headers of the HTTP response. - * @param value the deserialized value of the HTTP response. - * @param headers the deserialized headers of the HTTP response. - */ - public PoolsDeleteResponse( - HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PoolsDeleteHeaders headers) { - super(request, statusCode, rawHeaders, value, headers); - } -} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDisableAutoScaleResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDisableAutoScaleResponse.java index e828f6f2385d..e2963cb04173 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDisableAutoScaleResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsDisableAutoScaleResponse.java @@ -29,7 +29,11 @@ public PoolsDisableAutoScaleResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public PoolInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsGetResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsGetResponse.java index 30fda7dd1b2c..e1be0ad4415a 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsGetResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsGetResponse.java @@ -25,7 +25,11 @@ public PoolsGetResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public PoolInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsStopResizeResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsStopResizeResponse.java index 3273356b0315..e2753ee0060a 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsStopResizeResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsStopResizeResponse.java @@ -25,7 +25,11 @@ public PoolsStopResizeResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public PoolInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsUpdateResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsUpdateResponse.java index 33769f567010..8b622ae5066b 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsUpdateResponse.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PoolsUpdateResponse.java @@ -25,7 +25,11 @@ public PoolsUpdateResponse( super(request, statusCode, rawHeaders, value, headers); } - /** @return the deserialized response body. */ + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ @Override public PoolInner getValue() { return super.getValue(); diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnection.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnection.java index ab0c8597f6f1..6d3541be6fd5 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnection.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnection.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.batch.models; import com.azure.resourcemanager.batch.fluent.models.PrivateEndpointConnectionInner; +import java.util.List; /** An immutable client-side representation of PrivateEndpointConnection. */ public interface PrivateEndpointConnection { @@ -50,6 +51,14 @@ public interface PrivateEndpointConnection { */ PrivateEndpoint privateEndpoint(); + /** + * Gets the groupIds property: The group id of the private endpoint connection. The value has one and only one group + * id. + * + * @return the groupIds value. + */ + List groupIds(); + /** * Gets the privateLinkServiceConnectionState property: The private link service connection state of the private * endpoint connection. diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionProvisioningState.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionProvisioningState.java index 9888532c7b22..bb46e1566de9 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionProvisioningState.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionProvisioningState.java @@ -9,14 +9,23 @@ /** Defines values for PrivateEndpointConnectionProvisioningState. */ public enum PrivateEndpointConnectionProvisioningState { - /** Enum value Succeeded. */ - SUCCEEDED("Succeeded"), + /** Enum value Creating. */ + CREATING("Creating"), /** Enum value Updating. */ UPDATING("Updating"), + /** Enum value Deleting. */ + DELETING("Deleting"), + + /** Enum value Succeeded. */ + SUCCEEDED("Succeeded"), + /** Enum value Failed. */ - FAILED("Failed"); + FAILED("Failed"), + + /** Enum value Cancelled. */ + CANCELLED("Cancelled"); /** The actual serialized value for a PrivateEndpointConnectionProvisioningState instance. */ private final String value; diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnections.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnections.java index 9f0270e4dea5..caa365745549 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnections.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnections.java @@ -135,4 +135,31 @@ PrivateEndpointConnection update( PrivateEndpointConnectionInner parameters, String ifMatch, Context context); + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * 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. + */ + void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName); + + /** + * Deletes the specified private endpoint connection. + * + * @param resourceGroupName The name of the resource group that contains the Batch account. + * @param accountName The name of the Batch account. + * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the + * 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. + */ + void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context); } diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionsUpdateHeaders.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionsUpdateHeaders.java deleted file mode 100644 index eb3acfc734d5..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionsUpdateHeaders.java +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** The PrivateEndpointConnectionsUpdateHeaders model. */ -@Fluent -public final class PrivateEndpointConnectionsUpdateHeaders { - /* - * The Retry-After property. - */ - @JsonProperty(value = "Retry-After") - private Integer retryAfter; - - /* - * The Location property. - */ - @JsonProperty(value = "Location") - private String location; - - /** - * Get the retryAfter property: The Retry-After property. - * - * @return the retryAfter value. - */ - public Integer retryAfter() { - return this.retryAfter; - } - - /** - * Set the retryAfter property: The Retry-After property. - * - * @param retryAfter the retryAfter value to set. - * @return the PrivateEndpointConnectionsUpdateHeaders object itself. - */ - public PrivateEndpointConnectionsUpdateHeaders withRetryAfter(Integer retryAfter) { - this.retryAfter = retryAfter; - return this; - } - - /** - * Get the location property: The Location property. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Set the location property: The Location property. - * - * @param location the location value to set. - * @return the PrivateEndpointConnectionsUpdateHeaders object itself. - */ - public PrivateEndpointConnectionsUpdateHeaders withLocation(String location) { - this.location = location; - 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/models/PrivateEndpointConnectionsUpdateResponse.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionsUpdateResponse.java deleted file mode 100644 index 7f3a02145be6..000000000000 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PrivateEndpointConnectionsUpdateResponse.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.batch.models; - -import com.azure.core.http.HttpHeaders; -import com.azure.core.http.HttpRequest; -import com.azure.core.http.rest.ResponseBase; -import com.azure.resourcemanager.batch.fluent.models.PrivateEndpointConnectionInner; - -/** Contains all response data for the update operation. */ -public final class PrivateEndpointConnectionsUpdateResponse - extends ResponseBase { - /** - * Creates an instance of PrivateEndpointConnectionsUpdateResponse. - * - * @param request the request which resulted in this PrivateEndpointConnectionsUpdateResponse. - * @param statusCode the status code of the HTTP response. - * @param rawHeaders the raw headers of the HTTP response. - * @param value the deserialized value of the HTTP response. - * @param headers the deserialized headers of the HTTP response. - */ - public PrivateEndpointConnectionsUpdateResponse( - HttpRequest request, - int statusCode, - HttpHeaders rawHeaders, - PrivateEndpointConnectionInner value, - PrivateEndpointConnectionsUpdateHeaders headers) { - super(request, statusCode, rawHeaders, value, headers); - } - - /** @return the deserialized response body. */ - @Override - public PrivateEndpointConnectionInner getValue() { - return super.getValue(); - } -} diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PublicIpAddressConfiguration.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PublicIpAddressConfiguration.java index f813d303235b..e7911874ccce 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PublicIpAddressConfiguration.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/PublicIpAddressConfiguration.java @@ -21,10 +21,10 @@ public final class PublicIpAddressConfiguration { /* * The list of public IPs which the Batch service will use when * provisioning Compute Nodes. The number of IPs specified here limits the - * maximum size of the Pool - 100 dedicated nodes or 100 Spot/low-priority - * nodes can be allocated for each public IP. For example, a pool needing - * 250 dedicated VMs would need at least 3 public IPs specified. Each - * element of this collection is of the form: + * maximum size of the Pool - 100 dedicated nodes or 100 low-priority nodes + * can be allocated for each public IP. For example, a pool needing 250 + * dedicated VMs would need at least 3 public IPs specified. Each element + * of this collection is of the form: * /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. */ @JsonProperty(value = "ipAddressIds") @@ -55,8 +55,8 @@ public PublicIpAddressConfiguration withProvision(IpAddressProvisioningType prov /** * Get the ipAddressIds property: The list of public IPs which the Batch service will use when provisioning Compute * Nodes. The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 - * Spot/low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would - * need at least 3 public IPs specified. Each element of this collection is of the form: + * low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need + * at least 3 public IPs specified. Each element of this collection is of the form: * /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. * * @return the ipAddressIds value. @@ -68,8 +68,8 @@ public List ipAddressIds() { /** * Set the ipAddressIds property: The list of public IPs which the Batch service will use when provisioning Compute * Nodes. The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 - * Spot/low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would - * need at least 3 public IPs specified. Each element of this collection is of the form: + * low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need + * at least 3 public IPs specified. Each element of this collection is of the form: * /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. * * @param ipAddressIds the ipAddressIds value to set. diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ResizeOperationStatus.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ResizeOperationStatus.java index c32120464226..874bff260cc3 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ResizeOperationStatus.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/ResizeOperationStatus.java @@ -23,7 +23,7 @@ public final class ResizeOperationStatus { private Integer targetDedicatedNodes; /* - * The desired number of Spot/low-priority compute nodes in the pool. + * The desired number of low-priority compute nodes in the pool. */ @JsonProperty(value = "targetLowPriorityNodes") private Integer targetLowPriorityNodes; @@ -80,7 +80,7 @@ public ResizeOperationStatus withTargetDedicatedNodes(Integer targetDedicatedNod } /** - * Get the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool. + * Get the targetLowPriorityNodes property: The desired number of low-priority compute nodes in the pool. * * @return the targetLowPriorityNodes value. */ @@ -89,7 +89,7 @@ public Integer targetLowPriorityNodes() { } /** - * Set the targetLowPriorityNodes property: The desired number of Spot/low-priority compute nodes in the pool. + * Set the targetLowPriorityNodes property: The desired number of low-priority compute nodes in the pool. * * @param targetLowPriorityNodes the targetLowPriorityNodes value to set. * @return the ResizeOperationStatus object itself. diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/StartTask.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/StartTask.java index 1d3767d31f9d..b234754bc709 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/StartTask.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/StartTask.java @@ -56,9 +56,7 @@ public final class StartTask { * maximum retry count is 3, Batch tries the task up to 4 times (one * initial try and 3 retries). If the maximum retry count is 0, the Batch * service does not retry the task. If the maximum retry count is -1, the - * Batch service retries the task without limit, however this is not - * recommended for a start task or any task. The default value is 0 (no - * retries). + * Batch service retries the task without limit. */ @JsonProperty(value = "maxTaskRetryCount") private Integer maxTaskRetryCount; @@ -186,7 +184,7 @@ public StartTask withUserIdentity(UserIdentity userIdentity) { * Batch service will try the task once, and may then retry up to this limit. For example, if the maximum retry * count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, * the Batch service does not retry the task. If the maximum retry count is -1, the Batch service retries the task - * without limit, however this is not recommended for a start task or any task. The default value is 0 (no retries). + * without limit. * * @return the maxTaskRetryCount value. */ @@ -200,7 +198,7 @@ public Integer maxTaskRetryCount() { * Batch service will try the task once, and may then retry up to this limit. For example, if the maximum retry * count is 3, Batch tries the task up to 4 times (one initial try and 3 retries). If the maximum retry count is 0, * the Batch service does not retry the task. If the maximum retry count is -1, the Batch service retries the task - * without limit, however this is not recommended for a start task or any task. The default value is 0 (no retries). + * without limit. * * @param maxTaskRetryCount the maxTaskRetryCount value to set. * @return the StartTask object itself. diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/VMExtension.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/VMExtension.java index abb47ff917ad..bb339d89c1ba 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/VMExtension.java +++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/models/VMExtension.java @@ -46,7 +46,7 @@ public final class VMExtension { private Boolean autoUpgradeMinorVersion; /* - * Any object + * JSON formatted public settings for the extension. */ @JsonProperty(value = "settings") private Object settings; @@ -170,7 +170,7 @@ public VMExtension withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) } /** - * Get the settings property: Any object. + * Get the settings property: JSON formatted public settings for the extension. * * @return the settings value. */ @@ -179,7 +179,7 @@ public Object settings() { } /** - * Set the settings property: Any object. + * Set the settings property: JSON formatted public settings for the extension. * * @param settings the settings value to set. * @return the VMExtension object itself. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationCreateSamples.java index eefae5e29fd9..bb0d73197348 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationCreateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationCreateSamples.java @@ -7,7 +7,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationCreate.json */ /** * Sample code: ApplicationCreate. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationDeleteSamples.java index 805411b86541..054ec615eb11 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationDeleteSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationDeleteSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationDelete.json */ /** * Sample code: ApplicationDelete. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationGetSamples.java index ad17f802ec8c..439f6e11aa5f 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationGetSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationGetSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationGet.json */ /** * Sample code: ApplicationGet. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationListSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationListSamples.java index e0c7bcb26603..3392336f8d22 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationListSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationListSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationList.json */ /** * Sample code: ApplicationList. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageActivateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageActivateSamples.java index e3620e4554c4..c2a13278bf9c 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageActivateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageActivateSamples.java @@ -10,7 +10,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageActivate.json */ /** * Sample code: ApplicationPackageActivate. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageCreateSamples.java index 0d0733c20ddd..321147ca8d06 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageCreateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageCreateSamples.java @@ -7,7 +7,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageCreate.json */ /** * Sample code: ApplicationPackageCreate. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageDeleteSamples.java index 7622c5bb1322..e0c8946f6986 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageDeleteSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageDeleteSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageDelete.json */ /** * Sample code: ApplicationPackageDelete. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageGetSamples.java index 51841383ea74..667f9a727e8c 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageGetSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageGetSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageGet.json */ /** * Sample code: ApplicationPackageGet. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageListSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageListSamples.java index e2aa1fccb8b1..3b094d7f00d2 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageListSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationPackageListSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationPackageList.json */ /** * Sample code: ApplicationPackageList. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationUpdateSamples.java index f93068322322..9e36037a341a 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationUpdateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/ApplicationUpdateSamples.java @@ -10,7 +10,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/ApplicationUpdate.json */ /** * Sample code: ApplicationUpdate. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountCreateSamples.java index 64944f99f8c4..fb9f2566f9d2 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountCreateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountCreateSamples.java @@ -17,7 +17,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_BYOS.json */ /** * Sample code: BatchAccountCreate_BYOS. @@ -44,7 +44,7 @@ public static void batchAccountCreateBYOS(com.azure.resourcemanager.batch.BatchM } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ /** * Sample code: BatchAccountCreate_UserAssignedIdentity. @@ -72,7 +72,7 @@ public static void batchAccountCreateUserAssignedIdentity(com.azure.resourcemana } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateBatchAccountCreate.json */ /** * Sample code: PrivateBatchAccountCreate. @@ -99,7 +99,7 @@ public static void privateBatchAccountCreate(com.azure.resourcemanager.batch.Bat } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ /** * Sample code: BatchAccountCreate_SystemAssignedIdentity. @@ -121,7 +121,7 @@ public static void batchAccountCreateSystemAssignedIdentity(com.azure.resourcema } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountCreate_Default.json */ /** * Sample code: BatchAccountCreate_Default. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountDeleteSamples.java index d9964c33077e..18d63a078d15 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountDeleteSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountDeleteSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountDelete.json */ /** * Sample code: BatchAccountDelete. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetByResourceGroupSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetByResourceGroupSamples.java index 304e186fccca..07ac21a4d055 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetByResourceGroupSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateBatchAccountGet.json */ /** * Sample code: PrivateBatchAccountGet. @@ -23,7 +23,7 @@ public static void privateBatchAccountGet(com.azure.resourcemanager.batch.BatchM } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountGet.json */ /** * Sample code: BatchAccountGet. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetDetectorSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetDetectorSamples.java index 41546ccd4ee0..0dde1bebafa4 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetDetectorSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetDetectorSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/DetectorGet.json */ /** * Sample code: GetDetector. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetKeysSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetKeysSamples.java index 06bcd6b3f206..b87b8fdc4205 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetKeysSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountGetKeysSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountGetKeys.json */ /** * Sample code: BatchAccountGetKeys. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListByResourceGroupSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListByResourceGroupSamples.java index ba6093afd84d..4fe8d247d210 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListByResourceGroupSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountListByResourceGroup.json */ /** * Sample code: BatchAccountListByResourceGroup. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListDetectorsSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListDetectorsSamples.java index 1ec565749a49..22afaf9a2b5b 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListDetectorsSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListDetectorsSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/DetectorList.json */ /** * Sample code: ListDetectors. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java index 5cef25f74769..a564f8a45246 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListOutboundNetworkDependenciesEndpointsSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ /** * Sample code: ListOutboundNetworkDependencies. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListSamples.java index 8c291663cbe5..74246f434de2 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountListSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountList.json */ /** * Sample code: BatchAccountList. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountRegenerateKeySamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountRegenerateKeySamples.java index 0cb90d2161e9..3166ba060b38 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountRegenerateKeySamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountRegenerateKeySamples.java @@ -11,7 +11,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountRegenerateKey.json */ /** * Sample code: BatchAccountRegenerateKey. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountSynchronizeAutoStorageKeysSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountSynchronizeAutoStorageKeysSamples.java index 3933272d2e8f..3722e70cab27 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountSynchronizeAutoStorageKeysSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountSynchronizeAutoStorageKeysSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ /** * Sample code: BatchAccountSynchronizeAutoStorageKeys. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountUpdateSamples.java index 147f68531bce..31b314297343 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountUpdateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/BatchAccountUpdateSamples.java @@ -11,7 +11,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/BatchAccountUpdate.json */ /** * Sample code: BatchAccountUpdate. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCancelDeletionSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCancelDeletionSamples.java index 9950ac513e8f..281ce316378e 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCancelDeletionSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCancelDeletionSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateCancelDeletion.json */ /** * Sample code: CertificateCancelDeletion. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCreateSamples.java index 0df6cba5a75f..7d9908e61315 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCreateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateCreateSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateCreate_Full.json */ /** * Sample code: CreateCertificate - Full. @@ -30,7 +30,7 @@ public static void createCertificateFull(com.azure.resourcemanager.batch.BatchMa } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateCreate_Minimal.json */ /** * Sample code: CreateCertificate - Minimal Pfx. @@ -48,7 +48,7 @@ public static void createCertificateMinimalPfx(com.azure.resourcemanager.batch.B } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateCreate_MinimalCer.json */ /** * Sample code: CreateCertificate - Minimal Cer. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateDeleteSamples.java index c72dd18be7fe..41510530945c 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateDeleteSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateDeleteSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateDelete.json */ /** * Sample code: CertificateDelete. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateGetSamples.java index 5086cb4ddb04..2b794a23f403 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateGetSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateGetSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateGetWithDeletionError.json */ /** * Sample code: Get Certificate with Deletion Error. @@ -27,7 +27,7 @@ public static void getCertificateWithDeletionError(com.azure.resourcemanager.bat } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateGet.json */ /** * Sample code: Get Certificate. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateListByBatchAccountSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateListByBatchAccountSamples.java index 221c63d70aa9..6caee3e4620e 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateListByBatchAccountSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateListByBatchAccountSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateListWithFilter.json */ /** * Sample code: ListCertificates - Filter and Select. @@ -30,7 +30,7 @@ public static void listCertificatesFilterAndSelect(com.azure.resourcemanager.bat } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateList.json */ /** * Sample code: ListCertificates. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateUpdateSamples.java index ac24588c0e6d..f13712b0489a 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateUpdateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/CertificateUpdateSamples.java @@ -10,7 +10,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/CertificateUpdate.json */ /** * Sample code: UpdateCertificate. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationCheckNameAvailabilitySamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationCheckNameAvailabilitySamples.java index e704cd655bcb..589161c99040 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationCheckNameAvailabilitySamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationCheckNameAvailabilitySamples.java @@ -10,7 +10,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ /** * Sample code: LocationCheckNameAvailability_AlreadyExists. @@ -26,7 +26,7 @@ public static void locationCheckNameAvailabilityAlreadyExists( } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationCheckNameAvailability_Available.json */ /** * Sample code: LocationCheckNameAvailability_Available. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationGetQuotasSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationGetQuotasSamples.java index 475d5f82d953..c03996fee007 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationGetQuotasSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationGetQuotasSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationGetQuotas.json */ /** * Sample code: LocationGetQuotas. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedCloudServiceSkusSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedCloudServiceSkusSamples.java index 4d60ecfb5daa..32ac0544a05a 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedCloudServiceSkusSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedCloudServiceSkusSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationListCloudServiceSkus.json */ /** * Sample code: LocationListCloudServiceSkus. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedVirtualMachineSkusSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedVirtualMachineSkusSamples.java index 476764b0de93..c9a594cd0aca 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedVirtualMachineSkusSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/LocationListSupportedVirtualMachineSkusSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/LocationListVirtualMachineSkus.json */ /** * Sample code: LocationListVirtualMachineSkus. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/OperationsListSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/OperationsListSamples.java index 1e5f57bfaa0e..93c4149c5b6b 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/OperationsListSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/OperationsList.json */ /** * Sample code: OperationsList. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolCreateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolCreateSamples.java index 90942b072bfa..1266bb0dbd8b 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolCreateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolCreateSamples.java @@ -63,7 +63,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_SharedImageGallery.json */ /** * Sample code: CreatePool - Custom Image. @@ -89,7 +89,7 @@ public static void createPoolCustomImage(com.azure.resourcemanager.batch.BatchMa } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_CloudServiceConfiguration.json */ /** * Sample code: CreatePool - Full CloudServiceConfiguration. @@ -188,7 +188,7 @@ public static void createPoolFullCloudServiceConfiguration(com.azure.resourceman } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ /** * Sample code: CreatePool - Minimal CloudServiceConfiguration. @@ -210,7 +210,7 @@ public static void createPoolMinimalCloudServiceConfiguration( } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ /** * Sample code: CreatePool - Minimal VirtualMachineConfiguration. @@ -245,7 +245,7 @@ public static void createPoolMinimalVirtualMachineConfiguration( } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_NoPublicIPAddresses.json */ /** * Sample code: CreatePool - No public IP. @@ -278,7 +278,7 @@ public static void createPoolNoPublicIP(com.azure.resourcemanager.batch.BatchMan } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ /** * Sample code: CreatePool - VirtualMachineConfiguration Extensions. @@ -335,7 +335,7 @@ public static void createPoolVirtualMachineConfigurationExtensions( } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_UserAssignedIdentities.json */ /** * Sample code: CreatePool - UserAssignedIdentities. @@ -378,7 +378,7 @@ public static void createPoolUserAssignedIdentities(com.azure.resourcemanager.ba } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_PublicIPs.json */ /** * Sample code: CreatePool - Public IPs. @@ -415,7 +415,7 @@ public static void createPoolPublicIPs(com.azure.resourcemanager.batch.BatchMana } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolCreate_VirtualMachineConfiguration.json */ /** * Sample code: CreatePool - Full VirtualMachineConfiguration. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDeleteSamples.java index bb581b3cacb6..03ebda68d627 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDeleteSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDeleteSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolDelete.json */ /** * Sample code: DeletePool. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDisableAutoScaleSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDisableAutoScaleSamples.java index c56aad12913c..f356ad616085 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDisableAutoScaleSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolDisableAutoScaleSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolDisableAutoScale.json */ /** * Sample code: Disable AutoScale. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolGetSamples.java index 6f410492eca5..f2b44e2e2dab 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolGetSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolGetSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ /** * Sample code: GetPool - VirtualMachineConfiguration Extensions. @@ -22,7 +22,7 @@ public static void getPoolVirtualMachineConfigurationExtensions( } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolGet.json */ /** * Sample code: GetPool. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolListByBatchAccountSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolListByBatchAccountSamples.java index a5fbaa28741e..8f4eb4ef5332 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolListByBatchAccountSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolListByBatchAccountSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolList.json */ /** * Sample code: ListPool. @@ -23,7 +23,7 @@ public static void listPool(com.azure.resourcemanager.batch.BatchManager manager } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolListWithFilter.json */ /** * Sample code: ListPoolWithFilter. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolStopResizeSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolStopResizeSamples.java index 6fc64b313441..124ea2ebc8e0 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolStopResizeSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolStopResizeSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolStopResize.json */ /** * Sample code: StopPoolResize. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolUpdateSamples.java index 12cc2f5ec5c8..baad75841bcd 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolUpdateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PoolUpdateSamples.java @@ -21,7 +21,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolUpdate_EnableAutoScale.json */ /** * Sample code: UpdatePool - Enable Autoscale. @@ -42,7 +42,7 @@ public static void updatePoolEnableAutoscale(com.azure.resourcemanager.batch.Bat } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolUpdate_RemoveStartTask.json */ /** * Sample code: UpdatePool - Remove Start Task. @@ -59,7 +59,7 @@ public static void updatePoolRemoveStartTask(com.azure.resourcemanager.batch.Bat } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolUpdate_ResizePool.json */ /** * Sample code: UpdatePool - Resize Pool. @@ -86,7 +86,7 @@ public static void updatePoolResizePool(com.azure.resourcemanager.batch.BatchMan } /* - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-01-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PoolUpdate_OtherProperties.json */ /** * Sample code: UpdatePool - Other Properties. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionDeleteSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionDeleteSamples.java new file mode 100644 index 000000000000..6a4d545e97b8 --- /dev/null +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionDeleteSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.batch.generated; + +import com.azure.core.util.Context; + +/** Samples for PrivateEndpointConnection Delete. */ +public final class PrivateEndpointConnectionDeleteSamples { + /* + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateEndpointConnectionDelete.json + */ + /** + * Sample code: PrivateEndpointConnectionDelete. + * + * @param manager Entry point to BatchManager. + */ + public static void privateEndpointConnectionDelete(com.azure.resourcemanager.batch.BatchManager manager) { + manager + .privateEndpointConnections() + .delete( + "default-azurebatch-japaneast", + "sampleacct", + "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0", + Context.NONE); + } +} diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionGetSamples.java index 7309d274fe36..47e7070b847d 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionGetSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionGetSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateEndpointConnectionGet.json */ /** * Sample code: GetPrivateEndpointConnection. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionListByBatchAccountSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionListByBatchAccountSamples.java index 0ab753fbe07c..218fe1d213a1 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionListByBatchAccountSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionListByBatchAccountSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateEndpointConnectionsList.json */ /** * Sample code: ListPrivateEndpointConnections. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionUpdateSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionUpdateSamples.java index b204d45bca37..e0bd9bada875 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionUpdateSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateEndpointConnectionUpdateSamples.java @@ -12,7 +12,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateEndpointConnectionUpdate.json */ /** * Sample code: UpdatePrivateEndpointConnection. diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceGetSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceGetSamples.java index eaa58efd61a8..26365a57dbcb 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceGetSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceGetSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateLinkResourceGet.json */ /** * Sample code: GetPrivateLinkResource. @@ -19,6 +19,6 @@ public final class PrivateLinkResourceGetSamples { public static void getPrivateLinkResource(com.azure.resourcemanager.batch.BatchManager manager) { manager .privateLinkResources() - .getWithResponse("default-azurebatch-japaneast", "sampleacct", "sampleacct", Context.NONE); + .getWithResponse("default-azurebatch-japaneast", "sampleacct", "batchAccount", Context.NONE); } } diff --git a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceListByBatchAccountSamples.java b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceListByBatchAccountSamples.java index 422472166287..98490c6d6f5b 100644 --- a/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceListByBatchAccountSamples.java +++ b/sdk/batch/azure-resourcemanager-batch/src/samples/java/com/azure/resourcemanager/batch/generated/PrivateLinkResourceListByBatchAccountSamples.java @@ -9,7 +9,7 @@ /** 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 + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-06-01/examples/PrivateLinkResourcesList.json */ /** * Sample code: ListPrivateLinkResource.