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.resourcemanagerazure-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 @@
jarMicrosoft 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