diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index fdf8d0077ec4..ad4e92616b3e 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -369,7 +369,7 @@ com.azure.resourcemanager:azure-resourcemanager-marketplaceordering;1.0.0;1.1.0-
com.azure.resourcemanager:azure-resourcemanager-timeseriesinsights;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-streamanalytics;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-operationsmanagement;1.0.0-beta.3;1.0.0-beta.4
-com.azure.resourcemanager:azure-resourcemanager-batch;2.0.0;2.1.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-batch;2.0.0;2.1.0
com.azure.resourcemanager:azure-resourcemanager-datalakeanalytics;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-datalakestore;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-iotcentral;1.0.0;1.1.0-beta.3
diff --git a/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md b/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md
index b3156e715763..cf62f51b1350 100644
--- a/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md
+++ b/sdk/batch/azure-resourcemanager-batch/CHANGELOG.md
@@ -1,14 +1,364 @@
# Release History
-## 2.1.0-beta.1 (Unreleased)
+## 2.1.0 (2026-02-11)
-### Features Added
+- Azure Resource Manager Batch client library for Java. This package contains Microsoft Azure SDK for Batch Management SDK. The Batch Management Client. Package api-version 2025-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.ListPoolsResult` was removed
+
+#### `models.CertificateProvisioningState` was removed
+
+#### `models.DetectorListResult` was removed
+
+#### `models.CertificateReference` was removed
+
+#### `models.Certificate` was removed
+
+#### `models.CertificateStoreLocation` was removed
+
+#### `models.Certificate$Update` was removed
+
+#### `models.Certificate$UpdateStages` was removed
+
+#### `models.SupportedSkusResult` was removed
+
+#### `models.CertificatesCancelDeletionHeaders` was removed
+
+#### `models.OperationListResult` was removed
+
+#### `models.ListApplicationPackagesResult` was removed
+
+#### `models.CertificatesUpdateHeaders` was removed
+
+#### `models.AccessRulePropertiesSubscriptionsItem` was removed
+
+#### `models.Certificate$Definition` was removed
+
+#### `models.CertificateCreateOrUpdateParameters` was removed
+
+#### `models.Certificates` was removed
+
+#### `models.Certificate$DefinitionStages` was removed
+
+#### `models.CertificatesCreateResponse` was removed
+
+#### `models.OutboundEnvironmentEndpointCollection` was removed
+
+#### `models.CertificatesCreateHeaders` was removed
+
+#### `models.CertificatesUpdateResponse` was removed
+
+#### `models.NodeCommunicationMode` was removed
+
+#### `models.CertificatesGetHeaders` was removed
+
+#### `models.CertificatesCancelDeletionResponse` was removed
+
+#### `models.CertificateBaseProperties` was removed
+
+#### `models.CertificatesGetResponse` was removed
+
+#### `models.ListPrivateEndpointConnectionsResult` was removed
+
+#### `models.BatchAccountListResult` was removed
+
+#### `models.ListCertificatesResult` was removed
+
+#### `models.DeleteCertificateError` was removed
+
+#### `models.ListApplicationsResult` was removed
+
+#### `models.CertificateFormat` was removed
+
+#### `models.CertificateVisibility` was removed
+
+#### `models.ListPrivateLinkResourcesResult` was removed
+
+#### `models.NetworkSecurityPerimeterConfigurationListResult` was removed
+
+#### `models.AzureProxyResource` was removed
+
+#### `models.PoolsDisableAutoScaleHeaders` was modified
+
+* `withEtag(java.lang.String)` was removed
+
+#### `models.AutoScaleRunError` was modified
+
+* `AutoScaleRunError()` was changed to private access
+* `withMessage(java.lang.String)` was removed
+* `withCode(java.lang.String)` was removed
+* `withDetails(java.util.List)` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `OperationDisplay()` was changed to private access
+* `withResource(java.lang.String)` was removed
+* `withProvider(java.lang.String)` was removed
+* `withOperation(java.lang.String)` was removed
+* `withDescription(java.lang.String)` was removed
+
+#### `models.CheckNameAvailabilityParameters` was modified
+
+* `java.lang.String type()` -> `models.ResourceType type()`
+* `withType(java.lang.String)` was removed
+
+#### `models.AutoScaleRun` was modified
+
+* `AutoScaleRun()` was changed to private access
+* `withError(models.AutoScaleRunError)` was removed
+* `withResults(java.lang.String)` was removed
+* `withEvaluationTime(java.time.OffsetDateTime)` was removed
+
+#### `models.EndpointDependency` was modified
+
+* `EndpointDependency()` was changed to private access
+
+#### `models.ResizeOperationStatus` was modified
+
+* `ResizeOperationStatus()` was changed to private access
+* `withStartTime(java.time.OffsetDateTime)` was removed
+* `withNodeDeallocationOption(models.ComputeNodeDeallocationOption)` was removed
+* `withErrors(java.util.List)` was removed
+* `withTargetDedicatedNodes(java.lang.Integer)` was removed
+* `withTargetLowPriorityNodes(java.lang.Integer)` was removed
+* `withResizeTimeout(java.time.Duration)` was removed
+
+#### `models.ProvisioningIssue` was modified
+
+* `ProvisioningIssue()` was changed to private access
+
+#### `models.PoolsStopResizeHeaders` was modified
+
+* `withEtag(java.lang.String)` was removed
+
+#### `models.EndpointDetail` was modified
+
+* `EndpointDetail()` was changed to private access
+
+#### `models.NetworkSecurityProfile` was modified
+
+* `NetworkSecurityProfile()` was changed to private access
+* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed
+* `withEnabledLogCategories(java.util.List)` was removed
+* `withAccessRulesVersion(java.lang.Integer)` was removed
+* `withAccessRules(java.util.List)` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.PoolsUpdateHeaders` was modified
+
+* `withEtag(java.lang.String)` was removed
+
+#### `models.AccessRule` was modified
+
+* `AccessRule()` was changed to private access
+* `withName(java.lang.String)` was removed
+* `withProperties(models.AccessRuleProperties)` was removed
+
+#### `BatchManager` was modified
+
+* `certificates()` was removed
+
+#### `models.DataDisk` was modified
+
+* `withStorageAccountType(models.StorageAccountType)` was removed
+* `storageAccountType()` was removed
+
+#### `models.AutoStorageProperties` was modified
+
+* `AutoStorageProperties()` was changed to private access
+* `withNodeIdentityReference(models.ComputeNodeIdentityReference)` was removed
+* `withStorageAccountId(java.lang.String)` was removed
+* `withAuthenticationMode(models.AutoStorageAuthenticationMode)` was removed
+* `withLastKeySync(java.time.OffsetDateTime)` was removed
+
+#### `models.ProvisioningIssueProperties` was modified
+
+* `ProvisioningIssueProperties()` was changed to private access
+
+#### `models.NetworkSecurityPerimeter` was modified
+
+* `NetworkSecurityPerimeter()` was changed to private access
+* `java.util.UUID perimeterGuid()` -> `java.lang.String perimeterGuid()`
+* `withLocation(java.lang.String)` was removed
+* `withId(java.lang.String)` was removed
+* `withPerimeterGuid(java.util.UUID)` was removed
+
+#### `models.PrivateEndpoint` was modified
+
+* `PrivateEndpoint()` was changed to private access
+
+#### `models.VirtualMachineFamilyCoreQuota` was modified
+
+* `VirtualMachineFamilyCoreQuota()` was changed to private access
+
+#### `models.PoolsCreateHeaders` was modified
+
+* `withEtag(java.lang.String)` was removed
+
+#### `models.AccessRuleProperties` was modified
+
+* `AccessRuleProperties()` was changed to private access
+* `withEmailAddresses(java.util.List)` was removed
+* `withDirection(models.AccessRuleDirection)` was removed
+* `withSubscriptions(java.util.List)` was removed
+* `withFullyQualifiedDomainNames(java.util.List)` was removed
+* `withNetworkSecurityPerimeters(java.util.List)` was removed
+* `withAddressPrefixes(java.util.List)` was removed
+* `withPhoneNumbers(java.util.List)` was removed
+
+#### `models.Pool$Definition` was modified
+
+* `withCertificates(java.util.List)` was removed
+* `withTargetNodeCommunicationMode(models.NodeCommunicationMode)` was removed
+* `withResourceTags(java.util.Map)` was removed
+* `withApplicationLicenses(java.util.List)` was removed
+
+#### `models.NetworkSecurityPerimeterConfigurationProperties` was modified
+
+* `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access
+* `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` was removed
+* `withProfile(models.NetworkSecurityProfile)` was removed
+* `withResourceAssociation(models.ResourceAssociation)` was removed
+
+#### `models.SkuCapability` was modified
+
+* `SkuCapability()` was changed to private access
+
+#### `models.PoolsGetHeaders` was modified
+
+* `withEtag(java.lang.String)` was removed
+
+#### `models.ResourceAssociation` was modified
+
+* `ResourceAssociation()` was changed to private access
+* `withAccessMode(models.ResourceAssociationAccessMode)` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.Pool` was modified
+
+* `applicationLicenses()` was removed
+* `certificates()` was removed
+* `resourceTags()` was removed
+* `targetNodeCommunicationMode()` was removed
+* `currentNodeCommunicationMode()` was removed
+
+#### `models.Pool$Update` was modified
+
+* `withTargetNodeCommunicationMode(models.NodeCommunicationMode)` was removed
+* `withApplicationLicenses(java.util.List)` was removed
+* `withCertificates(java.util.List)` was removed
+* `withResourceTags(java.util.Map)` was removed
+
+#### `models.ResizeError` was modified
+
+* `ResizeError()` was changed to private access
+* `withCode(java.lang.String)` was removed
+* `withDetails(java.util.List)` was removed
+* `withMessage(java.lang.String)` was removed
+
+#### `models.IpRule` was modified
+
+* `java.lang.String action()` -> `models.IpRuleAction action()`
+* `withAction(java.lang.String)` was removed
+
+### Features Added
+
+* `models.IPFamily` was added
+
+* `models.ResourceType` was added
+
+* `models.ProxyAgentSettings` was added
+
+* `models.IpRuleAction` was added
+
+* `models.AccessRulePropertiesSubscription` was added
+
+* `models.DiskCustomerManagedKey` was added
+
+* `models.IPTag` was added
+
+* `models.HostEndpointSettings` was added
+
+* `models.JobDefaultOrder` was added
+
+* `models.HostEndpointSettingsModeTypes` was added
+
+* `models.DiskEncryptionSetParameters` was added
+
+#### `models.CheckNameAvailabilityParameters` was modified
+
+* `withType(models.ResourceType)` was added
+
+#### `models.Application` was modified
+
+* `systemData()` was added
+
+#### `models.DiskEncryptionConfiguration` was modified
+
+* `withCustomerManagedKey(models.DiskCustomerManagedKey)` was added
+* `customerManagedKey()` was added
+
+#### `models.SecurityProfile` was modified
+
+* `proxyAgentSettings()` was added
+* `withProxyAgentSettings(models.ProxyAgentSettings)` was added
+
+#### `models.BatchAccount` was modified
+
+* `systemData()` was added
+
+#### `models.VMDiskSecurityProfile` was modified
+
+* `withDiskEncryptionSet(models.DiskEncryptionSetParameters)` was added
+* `diskEncryptionSet()` was added
+
+#### `models.PrivateEndpointConnection` was modified
+
+* `systemData()` was added
+
+#### `models.ManagedDisk` was modified
+
+* `diskEncryptionSet()` was added
+* `withDiskEncryptionSet(models.DiskEncryptionSetParameters)` was added
+
+#### `models.DataDisk` was modified
+
+* `managedDisk()` was added
+* `withManagedDisk(models.ManagedDisk)` was added
+
+#### `models.ApplicationPackage` was modified
+
+* `systemData()` was added
+
+#### `models.PrivateLinkResource` was modified
+
+* `systemData()` was added
+
+#### `models.TaskSchedulingPolicy` was modified
+
+* `withJobDefaultOrder(models.JobDefaultOrder)` was added
+* `jobDefaultOrder()` was added
+
+#### `models.PublicIpAddressConfiguration` was modified
+
+* `ipTags()` was added
+* `withIpTags(java.util.List)` was added
+* `ipFamilies()` was added
+* `withIpFamilies(java.util.List)` was added
+
+#### `models.Pool` was modified
+
+* `systemData()` was added
+
+#### `models.DetectorResponse` was modified
+
+* `systemData()` was added
+
+#### `models.IpRule` was modified
-### Other Changes
+* `withAction(models.IpRuleAction)` was added
## 2.0.0 (2024-09-26)
diff --git a/sdk/batch/azure-resourcemanager-batch/README.md b/sdk/batch/azure-resourcemanager-batch/README.md
index 92c941f90905..946518988cd8 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-2024-07. 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. The Batch Management Client. Package api-version 2025-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-batch
- 2.1.0-beta.1
+ 2.1.0
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ BatchManager manager = BatchManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -72,8 +72,7 @@ See [API design][design] for general introduction on design and key concepts on
```java
// batch account
-account = batchManager
- .batchAccounts()
+account = batchManager.batchAccounts()
.define(batchAccountName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroup)
@@ -84,21 +83,16 @@ pool = batchManager.pools()
.define(poolName)
.withExistingBatchAccount(resourceGroup, batchAccountName)
.withDisplayName(poolDisplayName)
- .withDeploymentConfiguration(
- new DeploymentConfiguration()
- .withVirtualMachineConfiguration(
- new VirtualMachineConfiguration()
- .withImageReference(new ImageReference().withPublisher("Canonical")
- .withOffer("UbuntuServer").withSku("18.04-LTS").withVersion("latest"))
- .withNodeAgentSkuId("batch.node.ubuntu 18.04")))
- .withScaleSettings(
- new ScaleSettings()
- .withFixedScale(
- new FixedScaleSettings()
- .withResizeTimeout(Duration.parse("PT8M"))
- .withTargetDedicatedNodes(1)
- .withTargetLowPriorityNodes(1)
- .withNodeDeallocationOption(ComputeNodeDeallocationOption.TASK_COMPLETION)))
+ .withDeploymentConfiguration(new DeploymentConfiguration().withVirtualMachineConfiguration(
+ new VirtualMachineConfiguration().withImageReference(new ImageReference().withPublisher("Canonical")
+ .withOffer("UbuntuServer")
+ .withSku("18.04-LTS")
+ .withVersion("latest")).withNodeAgentSkuId("batch.node.ubuntu 18.04")))
+ .withScaleSettings(new ScaleSettings()
+ .withFixedScale(new FixedScaleSettings().withResizeTimeout(Duration.parse("PT8M"))
+ .withTargetDedicatedNodes(1)
+ .withTargetLowPriorityNodes(1)
+ .withNodeDeallocationOption(ComputeNodeDeallocationOption.TASK_COMPLETION)))
.withVmSize("Standard_D1")
.create();
```
@@ -132,5 +126,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/batch/azure-resourcemanager-batch/SAMPLE.md b/sdk/batch/azure-resourcemanager-batch/SAMPLE.md
index e5f8ae1b7f75..d54ef983130f 100644
--- a/sdk/batch/azure-resourcemanager-batch/SAMPLE.md
+++ b/sdk/batch/azure-resourcemanager-batch/SAMPLE.md
@@ -32,15 +32,6 @@
- [SynchronizeAutoStorageKeys](#batchaccount_synchronizeautostoragekeys)
- [Update](#batchaccount_update)
-## Certificate
-
-- [CancelDeletion](#certificate_canceldeletion)
-- [Create](#certificate_create)
-- [Delete](#certificate_delete)
-- [Get](#certificate_get)
-- [ListByBatchAccount](#certificate_listbybatchaccount)
-- [Update](#certificate_update)
-
## Location
- [CheckNameAvailability](#location_checknameavailability)
@@ -86,8 +77,7 @@
*/
public final class ApplicationCreateSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationCreate.json
+ * x-ms-original-file: 2025-06-01/ApplicationCreate.json
*/
/**
* Sample code: ApplicationCreate.
@@ -113,8 +103,7 @@ public final class ApplicationCreateSamples {
*/
public final class ApplicationDeleteSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationDelete.json
+ * x-ms-original-file: 2025-06-01/ApplicationDelete.json
*/
/**
* Sample code: ApplicationDelete.
@@ -136,8 +125,7 @@ public final class ApplicationDeleteSamples {
*/
public final class ApplicationGetSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationGet.json
+ * x-ms-original-file: 2025-06-01/ApplicationGet.json
*/
/**
* Sample code: ApplicationGet.
@@ -159,8 +147,7 @@ public final class ApplicationGetSamples {
*/
public final class ApplicationListSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationList.json
+ * x-ms-original-file: 2025-06-01/ApplicationList.json
*/
/**
* Sample code: ApplicationList.
@@ -184,8 +171,7 @@ import com.azure.resourcemanager.batch.models.Application;
*/
public final class ApplicationUpdateSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationUpdate.json
+ * x-ms-original-file: 2025-06-01/ApplicationUpdate.json
*/
/**
* Sample code: ApplicationUpdate.
@@ -211,8 +197,7 @@ import com.azure.resourcemanager.batch.models.ActivateApplicationPackageParamete
*/
public final class ApplicationPackageActivateSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageActivate.json
+ * x-ms-original-file: 2025-06-01/ApplicationPackageActivate.json
*/
/**
* Sample code: ApplicationPackageActivate.
@@ -235,8 +220,7 @@ public final class ApplicationPackageActivateSamples {
*/
public final class ApplicationPackageCreateSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageCreate.json
+ * x-ms-original-file: 2025-06-01/ApplicationPackageCreate.json
*/
/**
* Sample code: ApplicationPackageCreate.
@@ -260,8 +244,7 @@ public final class ApplicationPackageCreateSamples {
*/
public final class ApplicationPackageDeleteSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageDelete.json
+ * x-ms-original-file: 2025-06-01/ApplicationPackageDelete.json
*/
/**
* Sample code: ApplicationPackageDelete.
@@ -284,8 +267,7 @@ public final class ApplicationPackageDeleteSamples {
*/
public final class ApplicationPackageGetSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageGet.json
+ * x-ms-original-file: 2025-06-01/ApplicationPackageGet.json
*/
/**
* Sample code: ApplicationPackageGet.
@@ -308,8 +290,7 @@ public final class ApplicationPackageGetSamples {
*/
public final class ApplicationPackageListSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageList.json
+ * x-ms-original-file: 2025-06-01/ApplicationPackageList.json
*/
/**
* Sample code: ApplicationPackageList.
@@ -341,8 +322,7 @@ import java.util.Map;
*/
public final class BatchAccountCreateSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_BYOS.json
+ * x-ms-original-file: 2025-06-01/BatchAccountCreate_BYOS.json
*/
/**
* Sample code: BatchAccountCreate_BYOS.
@@ -355,17 +335,16 @@ public final class BatchAccountCreateSamples {
.withRegion("japaneast")
.withExistingResourceGroup("default-azurebatch-japaneast")
.withAutoStorage(new AutoStorageBaseProperties().withStorageAccountId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
.withPoolAllocationMode(PoolAllocationMode.USER_SUBSCRIPTION)
.withKeyVaultReference(new KeyVaultReference().withId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample")
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample")
.withUrl("http://sample.vault.azure.net/"))
.create();
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * BatchAccountCreate_UserAssignedIdentity.json
+ * x-ms-original-file: 2025-06-01/BatchAccountCreate_UserAssignedIdentity.json
*/
/**
* Sample code: BatchAccountCreate_UserAssignedIdentity.
@@ -379,16 +358,15 @@ public final class BatchAccountCreateSamples {
.withExistingResourceGroup("default-azurebatch-japaneast")
.withIdentity(new BatchAccountIdentity().withType(ResourceIdentityType.USER_ASSIGNED)
.withUserAssignedIdentities(mapOf(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
new UserAssignedIdentities())))
.withAutoStorage(new AutoStorageBaseProperties().withStorageAccountId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
.create();
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateBatchAccountCreate.json
+ * x-ms-original-file: 2025-06-01/PrivateBatchAccountCreate.json
*/
/**
* Sample code: PrivateBatchAccountCreate.
@@ -401,17 +379,16 @@ public final class BatchAccountCreateSamples {
.withRegion("japaneast")
.withExistingResourceGroup("default-azurebatch-japaneast")
.withAutoStorage(new AutoStorageBaseProperties().withStorageAccountId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
.withKeyVaultReference(new KeyVaultReference().withId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample")
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample")
.withUrl("http://sample.vault.azure.net/"))
.withPublicNetworkAccess(PublicNetworkAccessType.DISABLED)
.create();
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * BatchAccountCreate_SystemAssignedIdentity.json
+ * x-ms-original-file: 2025-06-01/BatchAccountCreate_SystemAssignedIdentity.json
*/
/**
* Sample code: BatchAccountCreate_SystemAssignedIdentity.
@@ -425,13 +402,12 @@ public final class BatchAccountCreateSamples {
.withExistingResourceGroup("default-azurebatch-japaneast")
.withIdentity(new BatchAccountIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.withAutoStorage(new AutoStorageBaseProperties().withStorageAccountId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
.create();
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_Default.json
+ * x-ms-original-file: 2025-06-01/BatchAccountCreate_Default.json
*/
/**
* Sample code: BatchAccountCreate_Default.
@@ -444,7 +420,7 @@ public final class BatchAccountCreateSamples {
.withRegion("japaneast")
.withExistingResourceGroup("default-azurebatch-japaneast")
.withAutoStorage(new AutoStorageBaseProperties().withStorageAccountId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
.create();
}
@@ -470,8 +446,7 @@ public final class BatchAccountCreateSamples {
*/
public final class BatchAccountDeleteSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountDelete.json
+ * x-ms-original-file: 2025-06-01/BatchAccountDelete.json
*/
/**
* Sample code: BatchAccountDelete.
@@ -492,8 +467,7 @@ public final class BatchAccountDeleteSamples {
*/
public final class BatchAccountGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateBatchAccountGet.json
+ * x-ms-original-file: 2025-06-01/PrivateBatchAccountGet.json
*/
/**
* Sample code: PrivateBatchAccountGet.
@@ -507,8 +481,7 @@ public final class BatchAccountGetByResourceGroupSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGet.json
+ * x-ms-original-file: 2025-06-01/BatchAccountGet.json
*/
/**
* Sample code: BatchAccountGet.
@@ -531,8 +504,7 @@ public final class BatchAccountGetByResourceGroupSamples {
*/
public final class BatchAccountGetDetectorSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorGet.json
+ * x-ms-original-file: 2025-06-01/DetectorGet.json
*/
/**
* Sample code: GetDetector.
@@ -555,8 +527,7 @@ public final class BatchAccountGetDetectorSamples {
*/
public final class BatchAccountGetKeysSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGetKeys.json
+ * x-ms-original-file: 2025-06-01/BatchAccountGetKeys.json
*/
/**
* Sample code: BatchAccountGetKeys.
@@ -578,8 +549,7 @@ public final class BatchAccountGetKeysSamples {
*/
public final class BatchAccountListSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountList.json
+ * x-ms-original-file: 2025-06-01/BatchAccountList.json
*/
/**
* Sample code: BatchAccountList.
@@ -600,9 +570,7 @@ public final class BatchAccountListSamples {
*/
public final class BatchAccountListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListByResourceGroup.
- * json
+ * x-ms-original-file: 2025-06-01/BatchAccountListByResourceGroup.json
*/
/**
* Sample code: BatchAccountListByResourceGroup.
@@ -623,8 +591,7 @@ public final class BatchAccountListByResourceGroupSamples {
*/
public final class BatchAccountListDetectorsSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorList.json
+ * x-ms-original-file: 2025-06-01/DetectorList.json
*/
/**
* Sample code: ListDetectors.
@@ -646,8 +613,7 @@ public final class BatchAccountListDetectorsSamples {
*/
public final class BatchAccountListOutboundNetworkDependenciesEndpointsSamples {
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * BatchAccountListOutboundNetworkDependenciesEndpoints.json
+ * x-ms-original-file: 2025-06-01/BatchAccountListOutboundNetworkDependenciesEndpoints.json
*/
/**
* Sample code: ListOutboundNetworkDependencies.
@@ -673,8 +639,7 @@ import com.azure.resourcemanager.batch.models.BatchAccountRegenerateKeyParameter
*/
public final class BatchAccountRegenerateKeySamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountRegenerateKey.json
+ * x-ms-original-file: 2025-06-01/BatchAccountRegenerateKey.json
*/
/**
* Sample code: BatchAccountRegenerateKey.
@@ -698,8 +663,7 @@ public final class BatchAccountRegenerateKeySamples {
*/
public final class BatchAccountSynchronizeAutoStorageKeysSamples {
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * BatchAccountSynchronizeAutoStorageKeys.json
+ * x-ms-original-file: 2025-06-01/BatchAccountSynchronizeAutoStorageKeys.json
*/
/**
* Sample code: BatchAccountSynchronizeAutoStorageKeys.
@@ -725,8 +689,7 @@ import com.azure.resourcemanager.batch.models.BatchAccount;
*/
public final class BatchAccountUpdateSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountUpdate.json
+ * x-ms-original-file: 2025-06-01/BatchAccountUpdate.json
*/
/**
* Sample code: BatchAccountUpdate.
@@ -740,246 +703,24 @@ public final class BatchAccountUpdateSamples {
.getValue();
resource.update()
.withAutoStorage(new AutoStorageBaseProperties().withStorageAccountId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage"))
.apply();
}
}
```
-### Certificate_CancelDeletion
-
-```java
-/**
- * Samples for Certificate CancelDeletion.
- */
-public final class CertificateCancelDeletionSamples {
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCancelDeletion.json
- */
- /**
- * Sample code: CertificateCancelDeletion.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void certificateCancelDeletion(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .cancelDeletionWithResponse("default-azurebatch-japaneast", "sampleacct",
- "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Certificate_Create
-
-```java
-import com.azure.resourcemanager.batch.models.CertificateFormat;
-
-/**
- * Samples for Certificate Create.
- */
-public final class CertificateCreateSamples {
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Full.json
- */
- /**
- * Sample code: CreateCertificate - Full.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void createCertificateFull(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
- .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
- .withPassword("")
- .withThumbprintAlgorithm("sha1")
- .withThumbprint("0a0e4f50d51beadeac1d35afc5116098e7902e6e")
- .withFormat(CertificateFormat.PFX)
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Minimal.json
- */
- /**
- * Sample code: CreateCertificate - Minimal Pfx.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void createCertificateMinimalPfx(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
- .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
- .withPassword("")
- .create();
- }
-
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_MinimalCer.json
- */
- /**
- * Sample code: CreateCertificate - Minimal Cer.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void createCertificateMinimalCer(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .define("sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e")
- .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
- .withFormat(CertificateFormat.CER)
- .create();
- }
-}
-```
-
-### Certificate_Delete
-
-```java
-/**
- * Samples for Certificate Delete.
- */
-public final class CertificateDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateDelete.json
- */
- /**
- * Sample code: CertificateDelete.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void certificateDelete(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .delete("default-azurebatch-japaneast", "sampleacct", "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Certificate_Get
-
-```java
-/**
- * Samples for Certificate Get.
- */
-public final class CertificateGetSamples {
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGetWithDeletionError.
- * json
- */
- /**
- * Sample code: Get Certificate with Deletion Error.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void getCertificateWithDeletionError(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .getWithResponse("default-azurebatch-japaneast", "sampleacct",
- "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGet.json
- */
- /**
- * Sample code: Get Certificate.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void getCertificate(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .getWithResponse("default-azurebatch-japaneast", "sampleacct",
- "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Certificate_ListByBatchAccount
-
-```java
-/**
- * Samples for Certificate ListByBatchAccount.
- */
-public final class CertificateListByBatchAccountSamples {
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateListWithFilter.json
- */
- /**
- * Sample code: ListCertificates - Filter and Select.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void listCertificatesFilterAndSelect(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .listByBatchAccount("default-azurebatch-japaneast", "sampleacct", null,
- "properties/format,properties/provisioningState",
- "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'",
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateList.json
- */
- /**
- * Sample code: ListCertificates.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void listCertificates(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.certificates()
- .listByBatchAccount("default-azurebatch-japaneast", "sampleacct", 1, null, null,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Certificate_Update
-
-```java
-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/2024-07-01/examples/CertificateUpdate.json
- */
- /**
- * Sample code: UpdateCertificate.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void updateCertificate(com.azure.resourcemanager.batch.BatchManager manager) {
- Certificate resource = manager.certificates()
- .getWithResponse("default-azurebatch-japaneast", "sampleacct",
- "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withData("MIIJsgIBAzCCCW4GCSqGSIb3DQE...").withPassword("").apply();
- }
-}
-```
-
### Location_CheckNameAvailability
```java
import com.azure.resourcemanager.batch.models.CheckNameAvailabilityParameters;
+import com.azure.resourcemanager.batch.models.ResourceType;
/**
* Samples for Location CheckNameAvailability.
*/
public final class LocationCheckNameAvailabilitySamples {
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * LocationCheckNameAvailability_AlreadyExists.json
+ * x-ms-original-file: 2025-06-01/LocationCheckNameAvailability_AlreadyExists.json
*/
/**
* Sample code: LocationCheckNameAvailability_AlreadyExists.
@@ -990,13 +731,13 @@ public final class LocationCheckNameAvailabilitySamples {
locationCheckNameAvailabilityAlreadyExists(com.azure.resourcemanager.batch.BatchManager manager) {
manager.locations()
.checkNameAvailabilityWithResponse("japaneast",
- new CheckNameAvailabilityParameters().withName("existingaccountname"),
+ new CheckNameAvailabilityParameters().withName("existingaccountname")
+ .withType(ResourceType.MICROSOFT_BATCH_BATCH_ACCOUNTS),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * LocationCheckNameAvailability_Available.json
+ * x-ms-original-file: 2025-06-01/LocationCheckNameAvailability_Available.json
*/
/**
* Sample code: LocationCheckNameAvailability_Available.
@@ -1006,7 +747,9 @@ public final class LocationCheckNameAvailabilitySamples {
public static void locationCheckNameAvailabilityAvailable(com.azure.resourcemanager.batch.BatchManager manager) {
manager.locations()
.checkNameAvailabilityWithResponse("japaneast",
- new CheckNameAvailabilityParameters().withName("newaccountname"), com.azure.core.util.Context.NONE);
+ new CheckNameAvailabilityParameters().withName("newaccountname")
+ .withType(ResourceType.MICROSOFT_BATCH_BATCH_ACCOUNTS),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1019,8 +762,7 @@ public final class LocationCheckNameAvailabilitySamples {
*/
public final class LocationGetQuotasSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationGetQuotas.json
+ * x-ms-original-file: 2025-06-01/LocationGetQuotas.json
*/
/**
* Sample code: LocationGetQuotas.
@@ -1041,9 +783,7 @@ public final class LocationGetQuotasSamples {
*/
public final class LocationListSupportedVirtualMachineSkusSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationListVirtualMachineSkus.
- * json
+ * x-ms-original-file: 2025-06-01/LocationListVirtualMachineSkus.json
*/
/**
* Sample code: LocationListVirtualMachineSkus.
@@ -1064,8 +804,7 @@ public final class LocationListSupportedVirtualMachineSkusSamples {
*/
public final class NetworkSecurityPerimeterGetConfigurationSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationGet.json
+ * x-ms-original-file: 2025-06-01/NspConfigurationGet.json
*/
/**
* Sample code: GetNspConfiguration.
@@ -1088,8 +827,7 @@ public final class NetworkSecurityPerimeterGetConfigurationSamples {
*/
public final class NetworkSecurityPerimeterListConfigurationsSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationsList.json
+ * x-ms-original-file: 2025-06-01/NspConfigurationsList.json
*/
/**
* Sample code: ListNspConfigurations.
@@ -1111,8 +849,7 @@ public final class NetworkSecurityPerimeterListConfigurationsSamples {
*/
public final class NetworkSecurityPerimeterReconcileConfigurationSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationReconcile.json
+ * x-ms-original-file: 2025-06-01/NspConfigurationReconcile.json
*/
/**
* Sample code: ReconcileNspConfiguration.
@@ -1135,8 +872,7 @@ public final class NetworkSecurityPerimeterReconcileConfigurationSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/OperationsList.json
+ * x-ms-original-file: 2025-06-01/OperationsList.json
*/
/**
* Sample code: OperationsList.
@@ -1154,17 +890,22 @@ public final class OperationsListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.batch.models.AutomaticOSUpgradePolicy;
import com.azure.resourcemanager.batch.models.AutoScaleSettings;
+import com.azure.resourcemanager.batch.models.AutomaticOSUpgradePolicy;
import com.azure.resourcemanager.batch.models.BatchPoolIdentity;
import com.azure.resourcemanager.batch.models.CachingType;
+import com.azure.resourcemanager.batch.models.ComputeNodeFillType;
+import com.azure.resourcemanager.batch.models.ComputeNodeIdentityReference;
import com.azure.resourcemanager.batch.models.DataDisk;
import com.azure.resourcemanager.batch.models.DeploymentConfiguration;
import com.azure.resourcemanager.batch.models.DiffDiskPlacement;
import com.azure.resourcemanager.batch.models.DiffDiskSettings;
+import com.azure.resourcemanager.batch.models.DiskCustomerManagedKey;
import com.azure.resourcemanager.batch.models.DiskEncryptionConfiguration;
+import com.azure.resourcemanager.batch.models.DiskEncryptionSetParameters;
import com.azure.resourcemanager.batch.models.DiskEncryptionTarget;
import com.azure.resourcemanager.batch.models.FixedScaleSettings;
+import com.azure.resourcemanager.batch.models.IPFamily;
import com.azure.resourcemanager.batch.models.ImageReference;
import com.azure.resourcemanager.batch.models.InboundEndpointProtocol;
import com.azure.resourcemanager.batch.models.InboundNatPool;
@@ -1173,7 +914,6 @@ import com.azure.resourcemanager.batch.models.ManagedDisk;
import com.azure.resourcemanager.batch.models.NetworkConfiguration;
import com.azure.resourcemanager.batch.models.NetworkSecurityGroupRule;
import com.azure.resourcemanager.batch.models.NetworkSecurityGroupRuleAccess;
-import com.azure.resourcemanager.batch.models.NodeCommunicationMode;
import com.azure.resourcemanager.batch.models.NodePlacementConfiguration;
import com.azure.resourcemanager.batch.models.NodePlacementPolicyType;
import com.azure.resourcemanager.batch.models.OSDisk;
@@ -1182,16 +922,19 @@ import com.azure.resourcemanager.batch.models.PoolIdentityType;
import com.azure.resourcemanager.batch.models.PublicIpAddressConfiguration;
import com.azure.resourcemanager.batch.models.RollingUpgradePolicy;
import com.azure.resourcemanager.batch.models.ScaleSettings;
+import com.azure.resourcemanager.batch.models.SecurityEncryptionTypes;
import com.azure.resourcemanager.batch.models.SecurityProfile;
import com.azure.resourcemanager.batch.models.SecurityTypes;
import com.azure.resourcemanager.batch.models.ServiceArtifactReference;
import com.azure.resourcemanager.batch.models.StorageAccountType;
+import com.azure.resourcemanager.batch.models.TaskSchedulingPolicy;
import com.azure.resourcemanager.batch.models.UefiSettings;
import com.azure.resourcemanager.batch.models.UpgradeMode;
import com.azure.resourcemanager.batch.models.UpgradePolicy;
import com.azure.resourcemanager.batch.models.UserAssignedIdentities;
-import com.azure.resourcemanager.batch.models.VirtualMachineConfiguration;
+import com.azure.resourcemanager.batch.models.VMDiskSecurityProfile;
import com.azure.resourcemanager.batch.models.VMExtension;
+import com.azure.resourcemanager.batch.models.VirtualMachineConfiguration;
import com.azure.resourcemanager.batch.models.WindowsConfiguration;
import java.io.IOException;
import java.time.Duration;
@@ -1204,8 +947,7 @@ import java.util.Map;
*/
public final class PoolCreateSamples {
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json
*/
/**
* Sample code: CreatePool - VirtualMachineConfiguration ServiceArtifactReference.
@@ -1227,7 +969,7 @@ public final class PoolCreateSamples {
.withNodeAgentSkuId("batch.node.windows amd64")
.withWindowsConfiguration(new WindowsConfiguration().withEnableAutomaticUpdates(false))
.withServiceArtifactReference(new ServiceArtifactReference().withId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile"))))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile"))))
.withScaleSettings(new ScaleSettings()
.withFixedScale(new FixedScaleSettings().withTargetDedicatedNodes(2).withTargetLowPriorityNodes(0)))
.withUpgradePolicy(new UpgradePolicy().withMode(UpgradeMode.AUTOMATIC)
@@ -1236,8 +978,7 @@ public final class PoolCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_SecurityProfile.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_SecurityProfile.json
*/
/**
* Sample code: CreatePool - SecurityProfile.
@@ -1265,8 +1006,7 @@ public final class PoolCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_Tags.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_Tags.json
*/
/**
* Sample code: CreatePool - Tags.
@@ -1277,7 +1017,6 @@ public final class PoolCreateSamples {
manager.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
- .withTags(mapOf("TagName1", "TagValue1", "TagName2", "TagValue2"))
.withVmSize("Standard_d4s_v3")
.withDeploymentConfiguration(new DeploymentConfiguration().withVirtualMachineConfiguration(
new VirtualMachineConfiguration().withImageReference(new ImageReference().withPublisher("Canonical")
@@ -1290,8 +1029,7 @@ public final class PoolCreateSamples {
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json
*/
/**
* Sample code: CreatePool - VirtualMachineConfiguration OSDisk.
@@ -1320,8 +1058,39 @@ public final class PoolCreateSamples {
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * PoolCreate_MinimalVirtualMachineConfiguration.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_DiskEncryptionSet_ForUserSubscriptionAccounts.json
+ */
+ /**
+ * Sample code: CreatePool - disk encryption set for user subscription accounts.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void
+ createPoolDiskEncryptionSetForUserSubscriptionAccounts(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("Standard_D4ds_v5")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration().withVirtualMachineConfiguration(new VirtualMachineConfiguration()
+ .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer")
+ .withOffer("WindowsServer")
+ .withSku("2022-Datacenter")
+ .withVersion("latest"))
+ .withNodeAgentSkuId("batch.node.windows amd64")
+ .withOsDisk(new OSDisk().withManagedDisk(new ManagedDisk()
+ .withStorageAccountType(StorageAccountType.STANDARD_LRS)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/diskEncryptionSets/DiskEncryptionSetId"))))
+ .withSecurityProfile(new SecurityProfile().withEncryptionAtHost(false))))
+ .withScaleSettings(new ScaleSettings().withFixedScale(
+ new FixedScaleSettings().withResizeTimeout(Duration.parse("PT15M")).withTargetDedicatedNodes(1)))
+ .withTaskSchedulingPolicy(new TaskSchedulingPolicy().withNodeFillType(ComputeNodeFillType.PACK))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2025-06-01/PoolCreate_MinimalVirtualMachineConfiguration.json
*/
/**
* Sample code: CreatePool - Minimal VirtualMachineConfiguration.
@@ -1346,8 +1115,7 @@ public final class PoolCreateSamples {
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * PoolCreate_VirtualMachineConfiguration_Extensions.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_VirtualMachineConfiguration_Extensions.json
*/
/**
* Sample code: CreatePool - VirtualMachineConfiguration Extensions.
@@ -1379,14 +1147,46 @@ public final class PoolCreateSamples {
.withScaleSettings(
new ScaleSettings().withAutoScale(new AutoScaleSettings().withFormula("$TargetDedicatedNodes=1")
.withEvaluationInterval(Duration.parse("PT5M"))))
- .withTargetNodeCommunicationMode(NodeCommunicationMode.DEFAULT)
.create();
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_UserAssignedIdentities
- * .json
+ * x-ms-original-file: 2025-06-01/PoolCreate_CustomerManagedKey_ForBatchManagedAccounts.json
+ */
+ /**
+ * Sample code: CreatePool - customer managed key for Batch managed accounts.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void
+ createPoolCustomerManagedKeyForBatchManagedAccounts(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withIdentity(new BatchPoolIdentity().withType(PoolIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
+ new UserAssignedIdentities())))
+ .withVmSize("Standard_D4ds_v5")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration().withVirtualMachineConfiguration(new VirtualMachineConfiguration()
+ .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer")
+ .withOffer("WindowsServer")
+ .withSku("2022-Datacenter")
+ .withVersion("latest"))
+ .withNodeAgentSkuId("batch.node.windows amd64")
+ .withDiskEncryptionConfiguration(new DiskEncryptionConfiguration()
+ .withTargets(Arrays.asList(DiskEncryptionTarget.OS_DISK))
+ .withCustomerManagedKey(new DiskCustomerManagedKey().withKeyUrl("fakeTokenPlaceholder")
+ .withIdentityReference(new ComputeNodeIdentityReference().withResourceId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"))))))
+ .withScaleSettings(new ScaleSettings().withFixedScale(
+ new FixedScaleSettings().withResizeTimeout(Duration.parse("PT15M")).withTargetDedicatedNodes(1)))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2025-06-01/PoolCreate_UserAssignedIdentities.json
*/
/**
* Sample code: CreatePool - UserAssignedIdentities.
@@ -1399,9 +1199,9 @@ public final class PoolCreateSamples {
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
.withIdentity(new BatchPoolIdentity().withType(PoolIdentityType.USER_ASSIGNED)
.withUserAssignedIdentities(mapOf(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
new UserAssignedIdentities(),
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2",
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2",
new UserAssignedIdentities())))
.withVmSize("STANDARD_D4")
.withDeploymentConfiguration(new DeploymentConfiguration().withVirtualMachineConfiguration(
@@ -1416,8 +1216,35 @@ public final class PoolCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_UpgradePolicy.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_AcceleratedNetworking.json
+ */
+ /**
+ * Sample code: CreatePool - accelerated networking.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolAcceleratedNetworking(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools()
+ .define("testpool")
+ .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
+ .withVmSize("STANDARD_D1_V2")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration().withVirtualMachineConfiguration(new VirtualMachineConfiguration()
+ .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer")
+ .withOffer("WindowsServer")
+ .withSku("2016-datacenter-smalldisk")
+ .withVersion("latest"))
+ .withNodeAgentSkuId("batch.node.windows amd64")))
+ .withScaleSettings(new ScaleSettings()
+ .withFixedScale(new FixedScaleSettings().withTargetDedicatedNodes(1).withTargetLowPriorityNodes(0)))
+ .withNetworkConfiguration(new NetworkConfiguration().withSubnetId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
+ .withEnableAcceleratedNetworking(true))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2025-06-01/PoolCreate_UpgradePolicy.json
*/
/**
* Sample code: CreatePool - UpgradePolicy.
@@ -1457,38 +1284,7 @@ public final class PoolCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_AcceleratedNetworking.
- * json
- */
- /**
- * Sample code: CreatePool - accelerated networking.
- *
- * @param manager Entry point to BatchManager.
- */
- public static void createPoolAcceleratedNetworking(com.azure.resourcemanager.batch.BatchManager manager) {
- manager.pools()
- .define("testpool")
- .withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
- .withVmSize("STANDARD_D1_V2")
- .withDeploymentConfiguration(
- new DeploymentConfiguration().withVirtualMachineConfiguration(new VirtualMachineConfiguration()
- .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer")
- .withOffer("WindowsServer")
- .withSku("2016-datacenter-smalldisk")
- .withVersion("latest"))
- .withNodeAgentSkuId("batch.node.windows amd64")))
- .withScaleSettings(new ScaleSettings()
- .withFixedScale(new FixedScaleSettings().withTargetDedicatedNodes(1).withTargetLowPriorityNodes(0)))
- .withNetworkConfiguration(new NetworkConfiguration().withSubnetId(
- "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
- .withEnableAcceleratedNetworking(true))
- .create();
- }
-
- /*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * PoolCreate_VirtualMachineConfiguration.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_VirtualMachineConfiguration.json
*/
/**
* Sample code: CreatePool - Full VirtualMachineConfiguration.
@@ -1508,15 +1304,14 @@ public final class PoolCreateSamples {
.withVersion("latest"))
.withNodeAgentSkuId("batch.node.windows amd64")
.withWindowsConfiguration(new WindowsConfiguration().withEnableAutomaticUpdates(false))
- .withDataDisks(Arrays.asList(
- new DataDisk().withLun(0)
- .withCaching(CachingType.READ_WRITE)
- .withDiskSizeGB(30)
- .withStorageAccountType(StorageAccountType.PREMIUM_LRS),
+ .withDataDisks(Arrays.asList(new DataDisk().withLun(0)
+ .withCaching(CachingType.READ_WRITE)
+ .withDiskSizeGB(30)
+ .withManagedDisk(new ManagedDisk().withStorageAccountType(StorageAccountType.STANDARD_SSD_LRS)),
new DataDisk().withLun(1)
.withCaching(CachingType.NONE)
.withDiskSizeGB(200)
- .withStorageAccountType(StorageAccountType.STANDARD_LRS)))
+ .withManagedDisk(new ManagedDisk().withStorageAccountType(StorageAccountType.PREMIUM_LRS))))
.withLicenseType("Windows_Server")
.withDiskEncryptionConfiguration(new DiskEncryptionConfiguration()
.withTargets(Arrays.asList(DiskEncryptionTarget.OS_DISK, DiskEncryptionTarget.TEMPORARY_DISK)))
@@ -1547,81 +1342,130 @@ public final class PoolCreateSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_SharedImageGallery.
- * json
+ * x-ms-original-file: 2025-06-01/PoolCreate_ConfidentialDiskEncryptionSet_ForUserSubscriptionAccounts.json
*/
/**
- * Sample code: CreatePool - Custom Image.
+ * Sample code: CreatePool - confidential disk encryption set for user subscription accounts.
*
* @param manager Entry point to BatchManager.
*/
- public static void createPoolCustomImage(com.azure.resourcemanager.batch.BatchManager manager) {
+ public static void createPoolConfidentialDiskEncryptionSetForUserSubscriptionAccounts(
+ com.azure.resourcemanager.batch.BatchManager manager) {
manager.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
- .withVmSize("STANDARD_D4")
- .withDeploymentConfiguration(new DeploymentConfiguration().withVirtualMachineConfiguration(
- new VirtualMachineConfiguration().withImageReference(new ImageReference().withId(
- "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
- .withNodeAgentSkuId("batch.node.ubuntu 18.04")))
+ .withVmSize("Standard_DC2as_v5")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration().withVirtualMachineConfiguration(new VirtualMachineConfiguration()
+ .withImageReference(new ImageReference().withPublisher("MicrosoftWindowsServer")
+ .withOffer("WindowsServer")
+ .withSku("2019-datacenter-core-g2")
+ .withVersion("latest"))
+ .withNodeAgentSkuId("batch.node.windows amd64")
+ .withDataDisks(Arrays.asList(new DataDisk().withLun(0)
+ .withDiskSizeGB(1024)
+ .withManagedDisk(new ManagedDisk().withStorageAccountType(StorageAccountType.STANDARD_LRS)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/diskEncryptionSets/DiskEncryptionSetId")))))
+ .withOsDisk(new OSDisk().withManagedDisk(new ManagedDisk()
+ .withStorageAccountType(StorageAccountType.STANDARD_LRS)
+ .withSecurityProfile(new VMDiskSecurityProfile()
+ .withSecurityEncryptionType(SecurityEncryptionTypes.DISK_WITH_VMGUEST_STATE)
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/diskEncryptionSets/ConfidentialDiskEncryptionSetId")))
+ .withDiskEncryptionSet(new DiskEncryptionSetParameters().withId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/diskEncryptionSets/DiskEncryptionSetId"))))
+ .withSecurityProfile(new SecurityProfile().withSecurityType(SecurityTypes.CONFIDENTIAL_VM)
+ .withEncryptionAtHost(false)
+ .withUefiSettings(new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true)))))
+ .withScaleSettings(new ScaleSettings().withFixedScale(
+ new FixedScaleSettings().withResizeTimeout(Duration.parse("PT15M")).withTargetDedicatedNodes(1)))
+ .withTaskSchedulingPolicy(new TaskSchedulingPolicy().withNodeFillType(ComputeNodeFillType.PACK))
.create();
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_NoPublicIPAddresses.
- * json
+ * x-ms-original-file: 2025-06-01/PoolCreate_SharedImageGallery.json
*/
/**
- * Sample code: CreatePool - No public IP.
+ * Sample code: CreatePool - Custom Image.
*
* @param manager Entry point to BatchManager.
*/
- public static void createPoolNoPublicIP(com.azure.resourcemanager.batch.BatchManager manager) {
+ public static void createPoolCustomImage(com.azure.resourcemanager.batch.BatchManager manager) {
manager.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
.withVmSize("STANDARD_D4")
.withDeploymentConfiguration(new DeploymentConfiguration().withVirtualMachineConfiguration(
new VirtualMachineConfiguration().withImageReference(new ImageReference().withId(
- "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
.withNodeAgentSkuId("batch.node.ubuntu 18.04")))
- .withNetworkConfiguration(new NetworkConfiguration().withSubnetId(
- "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2025-06-01/PoolCreate_DualStackNetworking.json
+ */
+ /**
+ * Sample code: CreatePool - dual stack networking.
+ *
+ * @param manager Entry point to BatchManager.
+ */
+ public static void createPoolDualStackNetworking(com.azure.resourcemanager.batch.BatchManager manager) {
+ manager.pools()
+ .define("dualstackpool")
+ .withExistingBatchAccount("default-azurebatch", "exampleacc")
+ .withVmSize("Standard_D4ds_v5")
+ .withDeploymentConfiguration(
+ new DeploymentConfiguration().withVirtualMachineConfiguration(new VirtualMachineConfiguration()
+ .withImageReference(
+ new ImageReference().withPublisher("Canonical").withOffer("ubuntu-24_04-lts").withSku("server"))
+ .withNodeAgentSkuId("batch.node.ubuntu 24.04")))
+ .withScaleSettings(new ScaleSettings()
+ .withFixedScale(new FixedScaleSettings().withTargetDedicatedNodes(1).withTargetLowPriorityNodes(0)))
+ .withNetworkConfiguration(new NetworkConfiguration()
+ .withEndpointConfiguration(new PoolEndpointConfiguration()
+ .withInboundNatPools(Arrays.asList(new InboundNatPool().withName("sshpool")
+ .withProtocol(InboundEndpointProtocol.TCP)
+ .withBackendPort(22)
+ .withFrontendPortRangeStart(40000)
+ .withFrontendPortRangeEnd(40500)
+ .withNetworkSecurityGroupRules(Arrays.asList(new NetworkSecurityGroupRule().withPriority(1000)
+ .withAccess(NetworkSecurityGroupRuleAccess.ALLOW)
+ .withSourceAddressPrefix("*")
+ .withSourcePortRanges(Arrays.asList("*")))))))
.withPublicIpAddressConfiguration(
- new PublicIpAddressConfiguration().withProvision(IpAddressProvisioningType.NO_PUBLIC_IPADDRESSES)))
+ new PublicIpAddressConfiguration().withIpFamilies(Arrays.asList(IPFamily.IPV4, IPFamily.IPV6))))
.create();
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_ResourceTags.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_NoPublicIPAddresses.json
*/
/**
- * Sample code: CreatePool - ResourceTags.
+ * Sample code: CreatePool - No public IP.
*
* @param manager Entry point to BatchManager.
*/
- public static void createPoolResourceTags(com.azure.resourcemanager.batch.BatchManager manager) {
+ public static void createPoolNoPublicIP(com.azure.resourcemanager.batch.BatchManager manager) {
manager.pools()
.define("testpool")
.withExistingBatchAccount("default-azurebatch-japaneast", "sampleacct")
- .withVmSize("Standard_d4s_v3")
+ .withVmSize("STANDARD_D4")
.withDeploymentConfiguration(new DeploymentConfiguration().withVirtualMachineConfiguration(
- new VirtualMachineConfiguration().withImageReference(new ImageReference().withPublisher("Canonical")
- .withOffer("UbuntuServer")
- .withSku("18_04-lts-gen2")
- .withVersion("latest")).withNodeAgentSkuId("batch.node.ubuntu 18.04")))
- .withScaleSettings(new ScaleSettings()
- .withFixedScale(new FixedScaleSettings().withTargetDedicatedNodes(1).withTargetLowPriorityNodes(0)))
- .withResourceTags(mapOf("TagName1", "TagValue1", "TagName2", "TagValue2"))
+ new VirtualMachineConfiguration().withImageReference(new ImageReference().withId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
+ .withNodeAgentSkuId("batch.node.ubuntu 18.04")))
+ .withNetworkConfiguration(new NetworkConfiguration().withSubnetId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
+ .withPublicIpAddressConfiguration(
+ new PublicIpAddressConfiguration().withProvision(IpAddressProvisioningType.NO_PUBLIC_IPADDRESSES)))
.create();
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolCreate_PublicIPs.json
+ * x-ms-original-file: 2025-06-01/PoolCreate_PublicIPs.json
*/
/**
* Sample code: CreatePool - Public IPs.
@@ -1635,14 +1479,14 @@ public final class PoolCreateSamples {
.withVmSize("STANDARD_D4")
.withDeploymentConfiguration(new DeploymentConfiguration().withVirtualMachineConfiguration(
new VirtualMachineConfiguration().withImageReference(new ImageReference().withId(
- "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1"))
.withNodeAgentSkuId("batch.node.ubuntu 18.04")))
.withNetworkConfiguration(new NetworkConfiguration().withSubnetId(
- "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123")
.withPublicIpAddressConfiguration(new PublicIpAddressConfiguration()
.withProvision(IpAddressProvisioningType.USER_MANAGED)
.withIpAddressIds(Arrays.asList(
- "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135"))))
+ "/subscriptions/12345678-1234-1234-1234-1234567890121/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135"))))
.create();
}
@@ -1668,8 +1512,7 @@ public final class PoolCreateSamples {
*/
public final class PoolDeleteSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolDelete.json
+ * x-ms-original-file: 2025-06-01/PoolDelete.json
*/
/**
* Sample code: DeletePool.
@@ -1691,8 +1534,7 @@ public final class PoolDeleteSamples {
*/
public final class PoolDisableAutoScaleSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolDisableAutoScale.json
+ * x-ms-original-file: 2025-06-01/PoolDisableAutoScale.json
*/
/**
* Sample code: Disable AutoScale.
@@ -1715,8 +1557,7 @@ public final class PoolDisableAutoScaleSamples {
*/
public final class PoolGetSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_SecurityProfile.json
+ * x-ms-original-file: 2025-06-01/PoolGet_SecurityProfile.json
*/
/**
* Sample code: GetPool - SecurityProfile.
@@ -1730,8 +1571,7 @@ public final class PoolGetSamples {
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * PoolGet_VirtualMachineConfiguration_Extensions.json
+ * x-ms-original-file: 2025-06-01/PoolGet_VirtualMachineConfiguration_Extensions.json
*/
/**
* Sample code: GetPool - VirtualMachineConfiguration Extensions.
@@ -1746,8 +1586,7 @@ public final class PoolGetSamples {
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * PoolGet_VirtualMachineConfiguration_MangedOSDisk.json
+ * x-ms-original-file: 2025-06-01/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json
*/
/**
* Sample code: GetPool - VirtualMachineConfiguration OSDisk.
@@ -1761,8 +1600,7 @@ public final class PoolGetSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_UpgradePolicy.json
+ * x-ms-original-file: 2025-06-01/PoolGet_UpgradePolicy.json
*/
/**
* Sample code: GetPool - UpgradePolicy.
@@ -1776,8 +1614,7 @@ public final class PoolGetSamples {
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/
- * PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json
+ * x-ms-original-file: 2025-06-01/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json
*/
/**
* Sample code: GetPool - VirtualMachineConfiguration ServiceArtifactReference.
@@ -1792,9 +1629,7 @@ public final class PoolGetSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet_AcceleratedNetworking.
- * json
+ * x-ms-original-file: 2025-06-01/PoolGet_AcceleratedNetworking.json
*/
/**
* Sample code: GetPool - AcceleratedNetworking.
@@ -1808,7 +1643,7 @@ public final class PoolGetSamples {
}
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolGet.json
+ * x-ms-original-file: 2025-06-01/PoolGet.json
*/
/**
* Sample code: GetPool.
@@ -1831,7 +1666,7 @@ public final class PoolGetSamples {
*/
public final class PoolListByBatchAccountSamples {
/*
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolList.json
+ * x-ms-original-file: 2025-06-01/PoolList.json
*/
/**
* Sample code: ListPool.
@@ -1845,8 +1680,7 @@ public final class PoolListByBatchAccountSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolListWithFilter.json
+ * x-ms-original-file: 2025-06-01/PoolListWithFilter.json
*/
/**
* Sample code: ListPoolWithFilter.
@@ -1871,8 +1705,7 @@ public final class PoolListByBatchAccountSamples {
*/
public final class PoolStopResizeSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolStopResize.json
+ * x-ms-original-file: 2025-06-01/PoolStopResize.json
*/
/**
* Sample code: StopPoolResize.
@@ -1892,12 +1725,9 @@ public final class PoolStopResizeSamples {
```java
import com.azure.resourcemanager.batch.models.ApplicationPackageReference;
import com.azure.resourcemanager.batch.models.AutoScaleSettings;
-import com.azure.resourcemanager.batch.models.CertificateReference;
-import com.azure.resourcemanager.batch.models.CertificateStoreLocation;
import com.azure.resourcemanager.batch.models.ComputeNodeDeallocationOption;
import com.azure.resourcemanager.batch.models.FixedScaleSettings;
import com.azure.resourcemanager.batch.models.MetadataItem;
-import com.azure.resourcemanager.batch.models.NodeCommunicationMode;
import com.azure.resourcemanager.batch.models.Pool;
import com.azure.resourcemanager.batch.models.ScaleSettings;
import com.azure.resourcemanager.batch.models.StartTask;
@@ -1909,8 +1739,7 @@ import java.util.Arrays;
*/
public final class PoolUpdateSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_EnableAutoScale.json
+ * x-ms-original-file: 2025-06-01/PoolUpdate_EnableAutoScale.json
*/
/**
* Sample code: UpdatePool - Enable Autoscale.
@@ -1928,8 +1757,7 @@ public final class PoolUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_RemoveStartTask.json
+ * x-ms-original-file: 2025-06-01/PoolUpdate_RemoveStartTask.json
*/
/**
* Sample code: UpdatePool - Remove Start Task.
@@ -1944,8 +1772,7 @@ public final class PoolUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_ResizePool.json
+ * x-ms-original-file: 2025-06-01/PoolUpdate_ResizePool.json
*/
/**
* Sample code: UpdatePool - Resize Pool.
@@ -1966,8 +1793,7 @@ public final class PoolUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PoolUpdate_OtherProperties.json
+ * x-ms-original-file: 2025-06-01/PoolUpdate_OtherProperties.json
*/
/**
* Sample code: UpdatePool - Other Properties.
@@ -1980,16 +1806,11 @@ public final class PoolUpdateSamples {
.getValue();
resource.update()
.withMetadata(Arrays.asList(new MetadataItem().withName("key1").withValue("value1")))
- .withCertificates(Arrays.asList(new CertificateReference().withId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567")
- .withStoreLocation(CertificateStoreLocation.LOCAL_MACHINE)
- .withStoreName("MY")))
.withApplicationPackages(Arrays.asList(new ApplicationPackageReference().withId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234"),
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234"),
new ApplicationPackageReference().withId(
- "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678")
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678")
.withVersion("1.0")))
- .withTargetNodeCommunicationMode(NodeCommunicationMode.SIMPLIFIED)
.apply();
}
}
@@ -2003,9 +1824,7 @@ public final class PoolUpdateSamples {
*/
public final class PrivateEndpointConnectionDeleteSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionDelete.
- * json
+ * x-ms-original-file: 2025-06-01/PrivateEndpointConnectionDelete.json
*/
/**
* Sample code: PrivateEndpointConnectionDelete.
@@ -2029,8 +1848,7 @@ public final class PrivateEndpointConnectionDeleteSamples {
*/
public final class PrivateEndpointConnectionGetSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionGet.json
+ * x-ms-original-file: 2025-06-01/PrivateEndpointConnectionGet.json
*/
/**
* Sample code: GetPrivateEndpointConnection.
@@ -2054,9 +1872,7 @@ public final class PrivateEndpointConnectionGetSamples {
*/
public final class PrivateEndpointConnectionListByBatchAccountSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionsList.
- * json
+ * x-ms-original-file: 2025-06-01/PrivateEndpointConnectionsList.json
*/
/**
* Sample code: ListPrivateEndpointConnections.
@@ -2082,9 +1898,7 @@ import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionStatus
*/
public final class PrivateEndpointConnectionUpdateSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateEndpointConnectionUpdate.
- * json
+ * x-ms-original-file: 2025-06-01/PrivateEndpointConnectionUpdate.json
*/
/**
* Sample code: UpdatePrivateEndpointConnection.
@@ -2111,8 +1925,7 @@ public final class PrivateEndpointConnectionUpdateSamples {
*/
public final class PrivateLinkResourceGetSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateLinkResourceGet.json
+ * x-ms-original-file: 2025-06-01/PrivateLinkResourceGet.json
*/
/**
* Sample code: GetPrivateLinkResource.
@@ -2135,8 +1948,7 @@ public final class PrivateLinkResourceGetSamples {
*/
public final class PrivateLinkResourceListByBatchAccountSamples {
/*
- * x-ms-original-file:
- * specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateLinkResourcesList.json
+ * x-ms-original-file: 2025-06-01/PrivateLinkResourcesList.json
*/
/**
* Sample code: ListPrivateLinkResource.
diff --git a/sdk/batch/azure-resourcemanager-batch/pom.xml b/sdk/batch/azure-resourcemanager-batch/pom.xml
index 01a036443853..ff30bc87c214 100644
--- a/sdk/batch/azure-resourcemanager-batch/pom.xml
+++ b/sdk/batch/azure-resourcemanager-batch/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-batch
- 2.1.0-beta.1
+ 2.1.0
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-2024-07.
+ 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. The Batch Management Client. Package api-version 2025-06-01.
https://github.com/Azure/azure-sdk-for-java
@@ -47,11 +47,6 @@
0
-
- com.azure
- azure-json
- 1.5.1
-
com.azure
azure-core
@@ -74,6 +69,11 @@
1.18.2
test
+
+ com.azure
+ azure-json
+ 1.5.1
+
com.azure.resourcemanager
azure-resourcemanager-storage
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 83f8d05ad5ad..5869cbdb3d11 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch;
@@ -11,24 +11,24 @@
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.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
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;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.batch.fluent.BatchManagementClient;
import com.azure.resourcemanager.batch.implementation.ApplicationPackagesImpl;
import com.azure.resourcemanager.batch.implementation.ApplicationsImpl;
import com.azure.resourcemanager.batch.implementation.BatchAccountsImpl;
import com.azure.resourcemanager.batch.implementation.BatchManagementClientBuilder;
-import com.azure.resourcemanager.batch.implementation.CertificatesImpl;
import com.azure.resourcemanager.batch.implementation.LocationsImpl;
import com.azure.resourcemanager.batch.implementation.NetworkSecurityPerimetersImpl;
import com.azure.resourcemanager.batch.implementation.OperationsImpl;
@@ -38,7 +38,6 @@
import com.azure.resourcemanager.batch.models.ApplicationPackages;
import com.azure.resourcemanager.batch.models.Applications;
import com.azure.resourcemanager.batch.models.BatchAccounts;
-import com.azure.resourcemanager.batch.models.Certificates;
import com.azure.resourcemanager.batch.models.Locations;
import com.azure.resourcemanager.batch.models.NetworkSecurityPerimeters;
import com.azure.resourcemanager.batch.models.Operations;
@@ -49,26 +48,23 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* Entry point to BatchManager.
- * Batch Client.
+ * The Batch Management Client.
*/
public final class BatchManager {
+ private Operations operations;
+
private BatchAccounts batchAccounts;
private ApplicationPackages applicationPackages;
private Applications applications;
- private Locations locations;
-
- private Operations operations;
-
- private Certificates certificates;
-
private PrivateLinkResources privateLinkResources;
private PrivateEndpointConnections privateEndpointConnections;
@@ -77,6 +73,8 @@ public final class BatchManager {
private NetworkSecurityPerimeters networkSecurityPerimeters;
+ private Locations locations;
+
private final BatchManagementClient clientObject;
private BatchManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -129,6 +127,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-batch.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -236,12 +237,14 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.batch")
.append("/")
- .append("2.0.0");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -274,7 +277,7 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -287,6 +290,18 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
}
}
+ /**
+ * 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);
+ }
+ return operations;
+ }
+
/**
* Gets the resource collection API of BatchAccounts. It manages BatchAccount.
*
@@ -323,42 +338,6 @@ public Applications applications() {
return applications;
}
- /**
- * 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);
- }
- return locations;
- }
-
- /**
- * 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);
- }
- return operations;
- }
-
- /**
- * 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);
- }
- return certificates;
- }
-
/**
* Gets the resource collection API of PrivateLinkResources.
*
@@ -409,6 +388,18 @@ public NetworkSecurityPerimeters networkSecurityPerimeters() {
return networkSecurityPerimeters;
}
+ /**
+ * 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);
+ }
+ return locations;
+ }
+
/**
* Gets wrapped service client BatchManagementClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java
index 224a14a0cf93..cfba9b995060 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
@@ -17,50 +17,54 @@
*/
public interface ApplicationPackagesClient {
/**
- * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
- * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
+ * Gets information about the specified application package.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
- * @param parameters The parameters for the request.
* @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 an application package which represents a particular version of an application along with
- * {@link Response}.
+ * @return information about the specified application package along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response activateWithResponse(String resourceGroupName, String accountName,
- String applicationName, String versionName, ActivateApplicationPackageParameters parameters, Context context);
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String applicationName, String versionName, Context context);
/**
- * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
- * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
+ * Gets information about the specified application package.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
- * @param parameters The parameters for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return information about the specified application package.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationPackageInner activate(String resourceGroupName, String accountName, String applicationName,
- String versionName, ActivateApplicationPackageParameters parameters);
+ ApplicationPackageInner get(String resourceGroupName, String accountName, String applicationName,
+ String versionName);
/**
* Creates an application package record. The record contains a storageUrl where the package should be uploaded to.
* Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can
* be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @param parameters The parameters for the request.
@@ -80,8 +84,11 @@ Response createWithResponse(String resourceGroupName, S
* Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can
* be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -96,8 +103,11 @@ ApplicationPackageInner create(String resourceGroupName, String accountName, Str
/**
* Deletes an application package record and its associated binary file.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @param context The context to associate with this operation.
@@ -113,8 +123,11 @@ Response deleteWithResponse(String resourceGroupName, String accountName,
/**
* Deletes an application package record and its associated binary file.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -125,66 +138,83 @@ Response deleteWithResponse(String resourceGroupName, String accountName,
void delete(String resourceGroupName, String accountName, String applicationName, String versionName);
/**
- * Gets information about the specified application package.
+ * Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package along with {@link Response}.
+ * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName,
- String applicationName, String versionName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String applicationName);
/**
- * Gets information about the specified application package.
+ * Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
+ * @param maxresults The maximum number of items to return in the response.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package.
+ * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationPackageInner get(String resourceGroupName, String accountName, String applicationName,
- String versionName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String applicationName,
+ Integer maxresults, Context context);
/**
- * Lists all of the application packages in the specified application.
+ * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
+ * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
+ * @param versionName The version of the application.
+ * @param parameters The parameters for the request.
+ * @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 result of performing list application packages as paginated response with {@link PagedIterable}.
+ * @return an application package which represents a particular version of an application along with
+ * {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, String applicationName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response activateWithResponse(String resourceGroupName, String accountName,
+ String applicationName, String versionName, ActivateApplicationPackageParameters parameters, Context context);
/**
- * Lists all of the application packages in the specified application.
+ * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
+ * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param maxresults The maximum number of items to return in the response.
- * @param context The context to associate with this operation.
+ * @param versionName The version of the application.
+ * @param parameters The parameters for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
+ * @return an application package which represents a particular version of an application.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, String applicationName,
- Integer maxresults, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationPackageInner activate(String resourceGroupName, String accountName, String applicationName,
+ String versionName, ActivateApplicationPackageParameters parameters);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationsClient.java
index 2f25fdc16566..31d48f2f26ee 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
@@ -16,133 +16,160 @@
*/
public interface ApplicationsClient {
/**
- * Adds an application to the specified Batch account.
+ * Gets information about the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param parameters The parameters for the request.
* @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 contains information about an application in a Batch account along with {@link Response}.
+ * @return information about the specified application along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName, String accountName, String applicationName,
- ApplicationInner parameters, Context context);
+ Response getWithResponse(String resourceGroupName, String accountName, String applicationName,
+ Context context);
/**
- * Adds an application to the specified Batch account.
+ * Gets information about the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. 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 contains information about an application in a Batch account.
+ * @return information about the specified application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner create(String resourceGroupName, String accountName, String applicationName);
+ ApplicationInner get(String resourceGroupName, String accountName, String applicationName);
/**
- * Deletes an application.
+ * Adds an application to the specified Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
+ * @param parameters The parameters for the request.
* @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 Response}.
+ * @return contains information about an application in a Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String accountName, String applicationName,
- Context context);
+ Response createWithResponse(String resourceGroupName, String accountName, String applicationName,
+ ApplicationInner parameters, Context context);
/**
- * Deletes an application.
+ * Adds an application to the specified Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. 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 contains information about an application in a Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String applicationName);
+ ApplicationInner create(String resourceGroupName, String accountName, String applicationName);
/**
- * Gets information about the specified application.
+ * Updates settings for the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
+ * @param parameters The parameters for the request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application along with {@link Response}.
+ * @return contains information about an application in a Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName, String applicationName,
- Context context);
+ Response updateWithResponse(String resourceGroupName, String accountName, String applicationName,
+ ApplicationInner parameters, Context context);
/**
- * Gets information about the specified application.
+ * Updates settings for the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
+ * @param parameters The parameters for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application.
+ * @return contains information about an application in a Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String resourceGroupName, String accountName, String applicationName);
+ ApplicationInner update(String resourceGroupName, String accountName, String applicationName,
+ ApplicationInner parameters);
/**
- * Updates settings for the specified application.
+ * Deletes an application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param parameters The parameters for the request.
* @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 contains information about an application in a Batch account along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String accountName, String applicationName,
- ApplicationInner parameters, Context context);
+ Response deleteWithResponse(String resourceGroupName, String accountName, String applicationName,
+ Context context);
/**
- * Updates settings for the specified application.
+ * Deletes an application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param parameters The parameters for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner update(String resourceGroupName, String accountName, String applicationName,
- ApplicationInner parameters);
+ void delete(String resourceGroupName, String accountName, String applicationName);
/**
* Lists all of the applications in the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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.
@@ -154,8 +181,11 @@ ApplicationInner update(String resourceGroupName, String accountName, String app
/**
* Lists all of the applications in the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param maxresults The maximum number of items to return in the response.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchAccountsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchAccountsClient.java
index a97a0eb610be..0ac46edc37f7 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchAccountsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchAccountsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
@@ -23,11 +23,45 @@
* An instance of this class provides access to all the operations defined in BatchAccountsClient.
*/
public interface BatchAccountsClient {
+ /**
+ * Gets information about the specified Batch account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the specified Batch account along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String accountName,
+ Context context);
+
+ /**
+ * Gets information about the specified Batch account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the specified Batch account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ BatchAccountInner getByResourceGroup(String resourceGroupName, String accountName);
+
/**
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and
* should instead be updated with the Update Batch Account API.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName A name for the Batch account which must be unique within the region. Batch account names must
* be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
* part of the DNS name that is used to access the Batch service in the region in which the account is created. For
@@ -46,7 +80,7 @@ SyncPoller, BatchAccountInner> beginCreate(String
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and
* should instead be updated with the Update Batch Account API.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName A name for the Batch account which must be unique within the region. Batch account names must
* be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
* part of the DNS name that is used to access the Batch service in the region in which the account is created. For
@@ -66,7 +100,7 @@ SyncPoller, BatchAccountInner> beginCreate(String
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and
* should instead be updated with the Update Batch Account API.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName A name for the Batch account which must be unique within the region. Batch account names must
* be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
* part of the DNS name that is used to access the Batch service in the region in which the account is created. For
@@ -84,7 +118,7 @@ SyncPoller, BatchAccountInner> beginCreate(String
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and
* should instead be updated with the Update Batch Account API.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName A name for the Batch account which must be unique within the region. Batch account names must
* be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
* part of the DNS name that is used to access the Batch service in the region in which the account is created. For
@@ -103,8 +137,11 @@ BatchAccountInner create(String resourceGroupName, String accountName, BatchAcco
/**
* Updates the properties of an existing Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param parameters Additional parameters for account update.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -119,8 +156,11 @@ Response updateWithResponse(String resourceGroupName, String
/**
* Updates the properties of an existing Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param parameters Additional parameters for account update.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -133,8 +173,11 @@ Response updateWithResponse(String resourceGroupName, String
/**
* Deletes the specified Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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.
@@ -146,8 +189,11 @@ Response updateWithResponse(String resourceGroupName, String
/**
* Deletes the specified Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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.
@@ -160,8 +206,11 @@ Response updateWithResponse(String resourceGroupName, String
/**
* Deletes the specified Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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.
@@ -172,8 +221,11 @@ Response updateWithResponse(String resourceGroupName, String
/**
* Deletes the specified Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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.
@@ -183,32 +235,31 @@ Response updateWithResponse(String resourceGroupName, String
void delete(String resourceGroupName, String accountName, Context context);
/**
- * Gets information about the specified Batch account.
+ * Gets information about the Batch accounts associated with the specified resource group.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account along with {@link Response}.
+ * @return information about the Batch accounts associated with the specified resource group as paginated response
+ * with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String accountName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Gets information about the specified Batch account.
+ * Gets information about the Batch accounts associated with the specified resource group.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account.
+ * @return information about the Batch accounts associated with the specified resource group as paginated response
+ * with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- BatchAccountInner getByResourceGroup(String resourceGroupName, String accountName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
* Gets information about the Batch accounts associated with the subscription.
@@ -234,39 +285,15 @@ Response getByResourceGroupWithResponse(String resourceGroupN
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
- /**
- * Gets information about the Batch accounts associated with the specified resource group.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the specified resource group as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Gets information about the Batch accounts associated with the specified resource group.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the Batch accounts associated with the specified resource group as paginated response
- * with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
/**
* Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage
* key authentication is being used.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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.
@@ -281,8 +308,11 @@ Response synchronizeAutoStorageKeysWithResponse(String resourceGroupName,
* Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage
* key authentication is being used.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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.
@@ -298,8 +328,11 @@ Response synchronizeAutoStorageKeysWithResponse(String resourceGroupName,
* authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will
* fail.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param parameters The type of key to regenerate.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -319,8 +352,11 @@ Response regenerateKeyWithResponse(String resourceGroupNa
* authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will
* fail.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param parameters The type of key to regenerate.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -338,13 +374,19 @@ BatchAccountKeysInner regenerateKey(String resourceGroupName, String accountName
* Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to
* authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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 a set of Azure Batch account keys along with {@link Response}.
+ * @return the account keys for the specified Batch account.
+ *
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey' along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getKeysWithResponse(String resourceGroupName, String accountName, Context context);
@@ -356,50 +398,72 @@ BatchAccountKeysInner regenerateKey(String resourceGroupName, String accountName
* Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to
* authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a set of Azure Batch account keys.
+ * @return the account keys for the specified Batch account.
+ *
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BatchAccountKeysInner getKeys(String resourceGroupName, String accountName);
/**
- * Gets information about the detectors available for a given Batch account.
+ * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service
+ * administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your
+ * network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to
+ * mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see
+ * https://learn.microsoft.com/azure/batch/batch-virtual-network.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the detectors available for a given Batch account as paginated response with
- * {@link PagedIterable}.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDetectors(String resourceGroupName, String accountName);
+ PagedIterable listOutboundNetworkDependenciesEndpoints(String resourceGroupName,
+ String accountName);
/**
- * Gets information about the detectors available for a given Batch account.
+ * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service
+ * administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your
+ * network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to
+ * mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see
+ * https://learn.microsoft.com/azure/batch/batch-virtual-network.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the detectors available for a given Batch account as paginated response with
- * {@link PagedIterable}.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listDetectors(String resourceGroupName, String accountName, Context context);
+ PagedIterable listOutboundNetworkDependenciesEndpoints(String resourceGroupName,
+ String accountName, Context context);
/**
* Gets information about the given detector for a given Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param detectorId The name of the detector.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -414,8 +478,11 @@ Response getDetectorWithResponse(String resourceGroupName
/**
* Gets information about the given detector for a given Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param detectorId The name of the detector.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -426,39 +493,37 @@ Response getDetectorWithResponse(String resourceGroupName
DetectorResponseInner getDetector(String resourceGroupName, String accountName, String detectorId);
/**
- * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service
- * administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your
- * network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to
- * mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see
- * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
+ * Gets information about the detectors available for a given Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation as paginated response with {@link PagedIterable}.
+ * @return information about the detectors available for a given Batch account as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listOutboundNetworkDependenciesEndpoints(String resourceGroupName,
- String accountName);
+ PagedIterable listDetectors(String resourceGroupName, String accountName);
/**
- * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service
- * administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your
- * network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to
- * mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see
- * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
+ * Gets information about the detectors available for a given Batch account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @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 values returned by the List operation as paginated response with {@link PagedIterable}.
+ * @return information about the detectors available for a given Batch account as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listOutboundNetworkDependenciesEndpoints(String resourceGroupName,
- String accountName, Context context);
+ PagedIterable listDetectors(String resourceGroupName, String accountName, Context context);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagementClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagementClient.java
index 5b557ea19317..b0b74804b442 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagementClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/BatchManagementClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
@@ -12,26 +12,26 @@
*/
public interface BatchManagementClient {
/**
- * Gets The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -46,6 +46,13 @@ public interface BatchManagementClient {
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
/**
* Gets the BatchAccountsClient object to access its operations.
*
@@ -67,27 +74,6 @@ public interface BatchManagementClient {
*/
ApplicationsClient getApplications();
- /**
- * Gets the LocationsClient object to access its operations.
- *
- * @return the LocationsClient object.
- */
- LocationsClient getLocations();
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
- /**
- * Gets the CertificatesClient object to access its operations.
- *
- * @return the CertificatesClient object.
- */
- CertificatesClient getCertificates();
-
/**
* Gets the PrivateLinkResourcesClient object to access its operations.
*
@@ -115,4 +101,11 @@ public interface BatchManagementClient {
* @return the NetworkSecurityPerimetersClient object.
*/
NetworkSecurityPerimetersClient getNetworkSecurityPerimeters();
+
+ /**
+ * Gets the LocationsClient object to access its operations.
+ *
+ * @return the LocationsClient object.
+ */
+ LocationsClient getLocations();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java
deleted file mode 100644
index 2767f20bde7b..000000000000
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java
+++ /dev/null
@@ -1,312 +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.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.batch.fluent.models.CertificateInner;
-import com.azure.resourcemanager.batch.models.CertificateCreateOrUpdateParameters;
-import com.azure.resourcemanager.batch.models.CertificatesCancelDeletionResponse;
-import com.azure.resourcemanager.batch.models.CertificatesCreateResponse;
-import com.azure.resourcemanager.batch.models.CertificatesGetResponse;
-import com.azure.resourcemanager.batch.models.CertificatesUpdateResponse;
-
-/**
- * An instance of this class provides access to all the operations defined in CertificatesClient.
- */
-public interface CertificatesClient {
- /**
- * Lists all of the certificates in the specified account.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
-
- /**
- * Lists all of the certificates in the specified account.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param maxresults The maximum number of items to return in the response.
- * @param select Comma separated list of properties that should be returned. e.g. "properties/provisioningState".
- * Only top level properties under properties/ are valid for selection.
- * @param filter OData filter expression. Valid properties for filtering are "properties/provisioningState",
- * "properties/provisioningStateTransitionTime", "name".
- * @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 values returned by the List operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByBatchAccount(String resourceGroupName, String accountName, Integer maxresults,
- String select, String filter, Context context);
-
- /**
- * Creates a new certificate inside the specified account.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @param parameters Additional parameters for certificate creation.
- * @param ifMatch The entity state (ETag) version of the certificate to update. A value of "*" can be used to apply
- * the operation only if the certificate already exists. If omitted, this operation will always be applied.
- * @param ifNoneMatch Set to '*' to allow a new certificate to be created, but to prevent updating an existing
- * certificate. Other values will be ignored.
- * @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 contains information about a certificate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CertificatesCreateResponse createWithResponse(String resourceGroupName, String accountName, String certificateName,
- CertificateCreateOrUpdateParameters parameters, String ifMatch, String ifNoneMatch, Context context);
-
- /**
- * Creates a new certificate inside the specified account.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @param parameters Additional parameters for certificate creation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about a certificate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CertificateInner create(String resourceGroupName, String accountName, String certificateName,
- CertificateCreateOrUpdateParameters parameters);
-
- /**
- * Updates the properties of an existing certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @param parameters Certificate entity to update.
- * @param ifMatch The entity state (ETag) version of the certificate to update. This value can be omitted or set to
- * "*" to apply the operation unconditionally.
- * @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 contains information about a certificate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CertificatesUpdateResponse updateWithResponse(String resourceGroupName, String accountName, String certificateName,
- CertificateCreateOrUpdateParameters parameters, String ifMatch, Context context);
-
- /**
- * Updates the properties of an existing certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @param parameters Certificate entity to update.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about a certificate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CertificateInner update(String resourceGroupName, String accountName, String certificateName,
- CertificateCreateOrUpdateParameters parameters);
-
- /**
- * Deletes the specified certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @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 certificateName);
-
- /**
- * Deletes the specified certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @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 certificateName,
- Context context);
-
- /**
- * Deletes the specified certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @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 certificateName);
-
- /**
- * Deletes the specified certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @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 certificateName, Context context);
-
- /**
- * Gets information about the specified certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @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 contains information about a certificate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CertificatesGetResponse getWithResponse(String resourceGroupName, String accountName, String certificateName,
- Context context);
-
- /**
- * Gets information about the specified certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about a certificate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CertificateInner get(String resourceGroupName, String accountName, String certificateName);
-
- /**
- * Cancels a failed deletion of a certificate from the specified account.
- *
- * If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate
- * changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this
- * operation to set the status of the certificate back to active. If you intend to delete the certificate, you do
- * not need to run this operation after the deletion failed. You must make sure that the certificate is not being
- * used by any resources, and then you can try again to delete the certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @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 contains information about a certificate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CertificatesCancelDeletionResponse cancelDeletionWithResponse(String resourceGroupName, String accountName,
- String certificateName, Context context);
-
- /**
- * Cancels a failed deletion of a certificate from the specified account.
- *
- * If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate
- * changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this
- * operation to set the status of the certificate back to active. If you intend to delete the certificate, you do
- * not need to run this operation after the deletion failed. You must make sure that the certificate is not being
- * used by any resources, and then you can try again to delete the certificate.
- *
- * Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param certificateName The identifier for the certificate. This must be made up of algorithm and thumbprint
- * separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about a certificate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CertificateInner cancelDeletion(String resourceGroupName, String accountName, String certificateName);
-}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/LocationsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/LocationsClient.java
index 06015ce1f486..ada144fe76ad 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/LocationsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/LocationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/NetworkSecurityPerimetersClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/NetworkSecurityPerimetersClient.java
index 9363de438829..dbefd6048314 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/NetworkSecurityPerimetersClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/NetworkSecurityPerimetersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
@@ -18,73 +18,88 @@
*/
public interface NetworkSecurityPerimetersClient {
/**
- * Lists all of the NSP configurations in the specified account.
+ * Gets information about the specified NSP configuration.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
+ * @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 result of a list NSP (network security perimeter) configurations request as paginated response with
- * {@link PagedIterable}.
+ * @return information about the specified NSP configuration along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listConfigurations(String resourceGroupName,
- String accountName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getConfigurationWithResponse(String resourceGroupName,
+ String accountName, String networkSecurityPerimeterConfigurationName, Context context);
/**
- * Lists all of the NSP configurations in the specified account.
+ * Gets information about the specified NSP configuration.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return result of a list NSP (network security perimeter) configurations request as paginated response with
- * {@link PagedIterable}.
+ * @return information about the specified NSP configuration.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listConfigurations(String resourceGroupName,
- String accountName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkSecurityPerimeterConfigurationInner getConfiguration(String resourceGroupName, String accountName,
+ String networkSecurityPerimeterConfigurationName);
/**
- * Gets information about the specified NSP configuration.
+ * Lists all of the NSP configurations in the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter configuration.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified NSP configuration along with {@link Response}.
+ * @return result of a list NSP (network security perimeter) configurations request as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getConfigurationWithResponse(String resourceGroupName,
- String accountName, String networkSecurityPerimeterConfigurationName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listConfigurations(String resourceGroupName,
+ String accountName);
/**
- * Gets information about the specified NSP configuration.
+ * Lists all of the NSP configurations in the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified NSP configuration.
+ * @return result of a list NSP (network security perimeter) configurations request as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- NetworkSecurityPerimeterConfigurationInner getConfiguration(String resourceGroupName, String accountName,
- String networkSecurityPerimeterConfigurationName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listConfigurations(String resourceGroupName,
+ String accountName, Context context);
/**
* Reconciles the specified NSP configuration.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @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.
@@ -97,9 +112,12 @@ SyncPoller, Void> beginReconcileConfiguration(String resourceGr
/**
* Reconciles the specified NSP configuration.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @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.
@@ -113,9 +131,12 @@ SyncPoller, Void> beginReconcileConfiguration(String resourceGr
/**
* Reconciles the specified NSP configuration.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @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.
@@ -127,9 +148,12 @@ void reconcileConfiguration(String resourceGroupName, String accountName,
/**
* Reconciles the specified NSP configuration.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter configuration.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter configuration.
* @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.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/OperationsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/OperationsClient.java
index 32c7ca5593ac..4e8d6b8cbdc2 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/OperationsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PoolsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PoolsClient.java
index 786002bf505a..81af75b11965 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PoolsClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PoolsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
@@ -22,54 +22,48 @@
*/
public interface PoolsClient {
/**
- * Lists all of the pools in the specified account.
+ * Gets information about the specified pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param poolName The pool 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 values returned by the List operation as paginated response with {@link PagedIterable}.
+ * @return information about the specified pool.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PoolsGetResponse getWithResponse(String resourceGroupName, String accountName, String poolName, Context context);
/**
- * Lists all of the pools in the specified account.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param maxresults The maximum number of items to return in the response.
- * @param select Comma separated list of properties that should be returned. e.g. "properties/provisioningState".
- * Only top level properties under properties/ are valid for selection.
- * @param filter OData filter expression. Valid properties for filtering are:
+ * Gets information about the specified pool.
*
- * name
- * properties/allocationState
- * properties/allocationStateTransitionTime
- * properties/creationTime
- * properties/provisioningState
- * properties/provisioningStateTransitionTime
- * properties/lastModified
- * properties/vmSize
- * properties/interNodeCommunication
- * properties/scaleSettings/autoScale
- * properties/scaleSettings/fixedScale.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param poolName The pool 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 values returned by the List operation as paginated response with {@link PagedIterable}.
+ * @return information about the specified pool.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByBatchAccount(String resourceGroupName, String accountName, Integer maxresults,
- String select, String filter, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PoolInner get(String resourceGroupName, String accountName, String poolName);
/**
* Creates a new pool inside the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool name. This must be unique within the account.
* @param parameters Additional parameters for pool creation.
* @param ifMatch The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the
@@ -89,8 +83,11 @@ PoolsCreateResponse createWithResponse(String resourceGroupName, String accountN
/**
* Creates a new pool inside the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool name. This must be unique within the account.
* @param parameters Additional parameters for pool creation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -104,8 +101,11 @@ PoolsCreateResponse createWithResponse(String resourceGroupName, String accountN
/**
* Updates the properties of an existing pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool name. This must be unique within the account.
* @param parameters Pool properties that should be updated. Properties that are supplied will be updated, any
* property not supplied will be unchanged.
@@ -124,8 +124,11 @@ PoolsUpdateResponse updateWithResponse(String resourceGroupName, String accountN
/**
* Updates the properties of an existing pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool name. This must be unique within the account.
* @param parameters Pool properties that should be updated. Properties that are supplied will be updated, any
* property not supplied will be unchanged.
@@ -140,8 +143,11 @@ PoolsUpdateResponse updateWithResponse(String resourceGroupName, String accountN
/**
* Deletes the specified pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool 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.
@@ -154,8 +160,11 @@ PoolsUpdateResponse updateWithResponse(String resourceGroupName, String accountN
/**
* Deletes the specified pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool 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.
@@ -170,8 +179,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Deletes the specified pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool 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.
@@ -183,8 +195,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* Deletes the specified pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool 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.
@@ -195,39 +210,63 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String accountName, String poolName, Context context);
/**
- * Gets information about the specified pool.
+ * Lists all of the pools in the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param poolName The pool name. This must be unique within the account.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified pool.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PoolsGetResponse getWithResponse(String resourceGroupName, String accountName, String poolName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
/**
- * Gets information about the specified pool.
+ * Lists all of the pools in the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param poolName The pool name. This must be unique within the account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param maxresults The maximum number of items to return in the response.
+ * @param select Comma separated list of properties that should be returned. e.g. "properties/provisioningState".
+ * Only top level properties under properties/ are valid for selection.
+ * @param filter OData filter expression. Valid properties for filtering are:
+ *
+ * name
+ * properties/allocationState
+ * properties/allocationStateTransitionTime
+ * properties/creationTime
+ * properties/provisioningState
+ * properties/provisioningStateTransitionTime
+ * properties/lastModified
+ * properties/vmSize
+ * properties/interNodeCommunication
+ * properties/scaleSettings/autoScale
+ * properties/scaleSettings/fixedScale.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified pool.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PoolInner get(String resourceGroupName, String accountName, String poolName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByBatchAccount(String resourceGroupName, String accountName, Integer maxresults,
+ String select, String filter, Context context);
/**
* Disables automatic scaling for a pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool 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.
@@ -242,8 +281,11 @@ PoolsDisableAutoScaleResponse disableAutoScaleWithResponse(String resourceGroupN
/**
* Disables automatic scaling for a pool.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool 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.
@@ -262,8 +304,11 @@ PoolsDisableAutoScaleResponse disableAutoScaleWithResponse(String resourceGroupN
* first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API
* can also be used to halt the initial sizing of the pool when it is created.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool 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.
@@ -284,8 +329,11 @@ PoolsStopResizeResponse stopResizeWithResponse(String resourceGroupName, String
* first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API
* can also be used to halt the initial sizing of the pool when it is created.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param poolName The pool 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.
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 ce0b47a0adbe..98ee43ef0bbd 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
@@ -17,40 +17,14 @@
* An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
*/
public interface PrivateEndpointConnectionsClient {
- /**
- * Lists all of the private endpoint connections in the specified account.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return values returned by the List operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
-
- /**
- * Lists all of the private endpoint connections in the specified account.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param maxresults The maximum number of items to return in the response.
- * @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 values returned by the List operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByBatchAccount(String resourceGroupName, String accountName,
- Integer maxresults, Context context);
-
/**
* Gets information about 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @param context The context to associate with this operation.
@@ -66,8 +40,11 @@ Response getWithResponse(String resourceGroupNam
/**
* Gets information about 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -82,8 +59,11 @@ PrivateEndpointConnectionInner get(String resourceGroupName, String accountName,
/**
* Updates the properties of an existing 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are supplied will
@@ -101,8 +81,11 @@ SyncPoller, PrivateEndpointConnection
/**
* Updates the properties of an existing 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are supplied will
@@ -123,8 +106,11 @@ SyncPoller, PrivateEndpointConnection
/**
* Updates the properties of an existing 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are supplied will
@@ -141,8 +127,11 @@ PrivateEndpointConnectionInner update(String resourceGroupName, String accountNa
/**
* Updates the properties of an existing 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are supplied will
@@ -163,8 +152,11 @@ PrivateEndpointConnectionInner update(String resourceGroupName, String accountNa
/**
* 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -179,8 +171,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @param context The context to associate with this operation.
@@ -196,8 +191,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -210,8 +208,11 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
/**
* 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 resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
* @param context The context to associate with this operation.
@@ -221,4 +222,39 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Lists all of the private endpoint connections in the specified account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
+
+ /**
+ * Lists all of the private endpoint connections in the specified account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param maxresults The maximum number of items to return in the response.
+ * @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 values returned by the List operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByBatchAccount(String resourceGroupName, String accountName,
+ Integer maxresults, Context context);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java
index 0a1b9d5a4af2..6f5fd57212ca 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent;
@@ -16,61 +16,73 @@
*/
public interface PrivateLinkResourcesClient {
/**
- * Lists all of the private link resources in the specified account.
+ * Gets information about the specified private link resource.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param privateLinkResourceName The private link resource 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 values returned by the List operation as paginated response with {@link PagedIterable}.
+ * @return information about the specified private link resource along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String privateLinkResourceName, Context context);
/**
- * Lists all of the private link resources in the specified account.
+ * Gets information about the specified private link resource.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param maxresults The maximum number of items to return in the response.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param privateLinkResourceName The private link resource 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 values returned by the List operation as paginated response with {@link PagedIterable}.
+ * @return information about the specified private link resource.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByBatchAccount(String resourceGroupName, String accountName,
- Integer maxresults, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceInner get(String resourceGroupName, String accountName, String privateLinkResourceName);
/**
- * Gets information about the specified private link resource.
+ * Lists all of the private link resources in the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param privateLinkResourceName The private link resource name. This must be unique within the account.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified private link resource along with {@link Response}.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName,
- String privateLinkResourceName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByBatchAccount(String resourceGroupName, String accountName);
/**
- * Gets information about the specified private link resource.
+ * Lists all of the private link resources in the specified account.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param privateLinkResourceName The private link resource name. This must be unique within the account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
+ * @param maxresults The maximum number of items to return in the response.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified private link resource.
+ * @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceInner get(String resourceGroupName, String accountName, String privateLinkResourceName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByBatchAccount(String resourceGroupName, String accountName,
+ Integer maxresults, Context context);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationInner.java
index 3cb97f8821b9..5e994f5861e6 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationInner.java
@@ -1,14 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.batch.models.AzureProxyResource;
import java.io.IOException;
import java.util.Map;
@@ -16,7 +17,7 @@
* Contains information about an application in a Batch account.
*/
@Fluent
-public final class ApplicationInner extends AzureProxyResource {
+public final class ApplicationInner extends ProxyResource {
/*
* The properties associated with the Application.
*/
@@ -27,6 +28,16 @@ public final class ApplicationInner extends AzureProxyResource {
*/
private String etag;
+ /*
+ * The tags of the resource.
+ */
+ private Map tags;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -62,11 +73,39 @@ private ApplicationProperties innerProperties() {
*
* @return the etag value.
*/
- @Override
public String etag() {
return this.etag;
}
+ /**
+ * Get the tags property: The tags of the resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: The tags of the resource.
+ *
+ * @param tags the tags value to set.
+ * @return the ApplicationInner object itself.
+ */
+ public ApplicationInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -97,15 +136,6 @@ public String id() {
return this.id;
}
- /**
- * {@inheritDoc}
- */
- @Override
- public ApplicationInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
/**
* Get the displayName property: The display name for the application.
*
@@ -184,7 +214,6 @@ public ApplicationInner withDefaultVersion(String defaultVersion) {
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
- @Override
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
@@ -197,8 +226,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -224,13 +253,15 @@ public static ApplicationInner fromJson(JsonReader jsonReader) throws IOExceptio
deserializedApplicationInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedApplicationInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedApplicationInner.innerProperties = ApplicationProperties.fromJson(reader);
} else if ("etag".equals(fieldName)) {
deserializedApplicationInner.etag = reader.getString();
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedApplicationInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedApplicationInner.innerProperties = ApplicationProperties.fromJson(reader);
+ deserializedApplicationInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedApplicationInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationPackageInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationPackageInner.java
index dfdc8377317e..872337aca80d 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationPackageInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationPackageInner.java
@@ -1,14 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.batch.models.AzureProxyResource;
import com.azure.resourcemanager.batch.models.PackageState;
import java.io.IOException;
import java.time.OffsetDateTime;
@@ -18,7 +19,7 @@
* An application package which represents a particular version of an application.
*/
@Fluent
-public final class ApplicationPackageInner extends AzureProxyResource {
+public final class ApplicationPackageInner extends ProxyResource {
/*
* The properties associated with the Application Package.
*/
@@ -29,6 +30,16 @@ public final class ApplicationPackageInner extends AzureProxyResource {
*/
private String etag;
+ /*
+ * The tags of the resource.
+ */
+ private Map tags;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -64,11 +75,39 @@ private ApplicationPackageProperties innerProperties() {
*
* @return the etag value.
*/
- @Override
public String etag() {
return this.etag;
}
+ /**
+ * Get the tags property: The tags of the resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: The tags of the resource.
+ *
+ * @param tags the tags value to set.
+ * @return the ApplicationPackageInner object itself.
+ */
+ public ApplicationPackageInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -99,15 +138,6 @@ public String id() {
return this.id;
}
- /**
- * {@inheritDoc}
- */
- @Override
- public ApplicationPackageInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
/**
* Get the state property: The current state of the application package.
*
@@ -158,7 +188,6 @@ public OffsetDateTime lastActivationTime() {
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
- @Override
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
@@ -171,8 +200,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -198,13 +227,15 @@ public static ApplicationPackageInner fromJson(JsonReader jsonReader) throws IOE
deserializedApplicationPackageInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedApplicationPackageInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedApplicationPackageInner.innerProperties = ApplicationPackageProperties.fromJson(reader);
} else if ("etag".equals(fieldName)) {
deserializedApplicationPackageInner.etag = reader.getString();
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedApplicationPackageInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedApplicationPackageInner.innerProperties = ApplicationPackageProperties.fromJson(reader);
+ deserializedApplicationPackageInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedApplicationPackageInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationPackageProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationPackageProperties.java
index 0fefc2668d73..32b5ea180e5c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationPackageProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationPackageProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationProperties.java
index ce92ec631384..bcfced2c182a 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/ApplicationProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
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 121a3faedc21..3817aa938b30 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -30,6 +30,8 @@ public final class BatchAccountCreateProperties implements JsonSerializable tags) {
- super.withTags(tags);
- return this;
- }
-
/**
* Get the accountEndpoint property: The account endpoint used to interact with the Batch service.
*
@@ -165,7 +151,9 @@ public ProvisioningState provisioningState() {
}
/**
- * Get the poolAllocationMode property: The allocation mode for creating pools in the Batch account.
+ * Get the poolAllocationMode property: The allocation mode to use for creating pools in the Batch account.
+ *
+ * The allocation mode for creating pools in the Batch account.
*
* @return the poolAllocationMode value.
*/
@@ -174,7 +162,9 @@ public PoolAllocationMode poolAllocationMode() {
}
/**
- * Get the keyVaultReference property: Identifies the Azure key vault associated with a Batch account.
+ * Get the keyVaultReference property: A reference to the Azure key vault associated with the Batch account.
+ *
+ * Identifies the Azure key vault associated with a Batch account.
*
* @return the keyVaultReference value.
*/
@@ -183,7 +173,10 @@ public KeyVaultReference keyVaultReference() {
}
/**
- * Get the publicNetworkAccess property: If not specified, the default value is 'enabled'.
+ * Get the publicNetworkAccess property: The network interface type for accessing Azure Batch service and Batch
+ * account operations.
+ *
+ * The network access type for operating on the resources in the Batch account.
*
* @return the publicNetworkAccess value.
*/
@@ -192,21 +185,10 @@ public PublicNetworkAccessType publicNetworkAccess() {
}
/**
- * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'.
+ * Get the networkProfile property: Network profile for Batch account, which contains network rule settings for each
+ * endpoint.
*
- * @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.
+ * The network profile only takes effect when publicNetworkAccess is enabled.
*
* @return the networkProfile value.
*/
@@ -214,20 +196,6 @@ 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.
@@ -239,9 +207,11 @@ public List privateEndpointConnections() {
}
/**
- * Get the autoStorage property: Contains information about the auto-storage account associated with a Batch
+ * Get the autoStorage property: The properties and status of any auto-storage account associated with the Batch
* account.
*
+ * Contains information about the auto-storage account associated with a Batch account.
+ *
* @return the autoStorage value.
*/
public AutoStorageProperties autoStorage() {
@@ -249,9 +219,10 @@ public AutoStorageProperties autoStorage() {
}
/**
- * 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
- * instead.
+ * Get the encryption property: The encryption configuration for the Batch account.
+ *
+ * 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 instead.
*
* @return the encryption value.
*/
@@ -260,8 +231,10 @@ public EncryptionProperties encryption() {
}
/**
- * Get the dedicatedCoreQuota property: For accounts with PoolAllocationMode set to UserSubscription, quota is
- * managed on the subscription so this value is not returned.
+ * Get the dedicatedCoreQuota property: The dedicated 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 dedicatedCoreQuota value.
*/
@@ -270,8 +243,10 @@ public Integer dedicatedCoreQuota() {
}
/**
- * Get the lowPriorityCoreQuota property: For accounts with PoolAllocationMode set to UserSubscription, quota is
- * managed on the subscription so this value is not returned.
+ * Get the lowPriorityCoreQuota property: The Spot/low-priority core quota for the Batch account.
+ *
+ * For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value
+ * is not returned.
*
* @return the lowPriorityCoreQuota value.
*/
@@ -291,10 +266,12 @@ public List dedicatedCoreQuotaPerVMFamily() {
}
/**
- * Get the dedicatedCoreQuotaPerVMFamilyEnforced property: 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.
+ * Get the dedicatedCoreQuotaPerVMFamilyEnforced property: A value indicating whether core quotas per Virtual
+ * 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.
*/
@@ -388,6 +365,8 @@ public static BatchAccountInner fromJson(JsonReader jsonReader) throws IOExcepti
deserializedBatchAccountInner.innerProperties = BatchAccountProperties.fromJson(reader);
} else if ("identity".equals(fieldName)) {
deserializedBatchAccountInner.identity = BatchAccountIdentity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedBatchAccountInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountKeysInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountKeysInner.java
index 6d334fa64d1a..e04befbbe2b7 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountKeysInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountKeysInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -34,7 +34,7 @@ public final class BatchAccountKeysInner implements JsonSerializable {
/*
* The account endpoint used to interact with the Batch service.
@@ -42,21 +42,29 @@ public final class BatchAccountProperties implements JsonSerializable privateEndpointConnections;
/*
+ * The properties and status of any auto-storage account associated with the Batch account.
+ *
* Contains information about the auto-storage account associated with a Batch account.
*/
private AutoStorageProperties autoStorage;
/*
+ * The encryption configuration for the Batch account.
+ *
* 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 instead.
*/
private EncryptionProperties encryption;
/*
+ * The dedicated 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.
*/
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 subscription so this value
* is not returned.
*/
@@ -96,6 +112,8 @@ public final class BatchAccountProperties implements JsonSerializable dedicatedCoreQuotaPerVMFamily;
/*
+ * A value indicating whether core quotas per Virtual 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.
@@ -121,7 +139,7 @@ public final class BatchAccountProperties implements JsonSerializable privateEndpointConnections() {
}
/**
- * Get the autoStorage property: Contains information about the auto-storage account associated with a Batch
+ * Get the autoStorage property: The properties and status of any auto-storage account associated with the Batch
* account.
*
+ * Contains information about the auto-storage account associated with a Batch account.
+ *
* @return the autoStorage value.
*/
public AutoStorageProperties autoStorage() {
@@ -231,9 +239,10 @@ public AutoStorageProperties autoStorage() {
}
/**
- * 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
- * instead.
+ * Get the encryption property: The encryption configuration for the Batch account.
+ *
+ * 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 instead.
*
* @return the encryption value.
*/
@@ -242,8 +251,10 @@ public EncryptionProperties encryption() {
}
/**
- * Get the dedicatedCoreQuota property: For accounts with PoolAllocationMode set to UserSubscription, quota is
- * managed on the subscription so this value is not returned.
+ * Get the dedicatedCoreQuota property: The dedicated 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 dedicatedCoreQuota value.
*/
@@ -252,8 +263,10 @@ public Integer dedicatedCoreQuota() {
}
/**
- * Get the lowPriorityCoreQuota property: For accounts with PoolAllocationMode set to UserSubscription, quota is
- * managed on the subscription so this value is not returned.
+ * Get the lowPriorityCoreQuota property: The Spot/low-priority core quota for the Batch account.
+ *
+ * For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value
+ * is not returned.
*
* @return the lowPriorityCoreQuota value.
*/
@@ -273,10 +286,12 @@ public List dedicatedCoreQuotaPerVMFamily() {
}
/**
- * Get the dedicatedCoreQuotaPerVMFamilyEnforced property: 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.
+ * Get the dedicatedCoreQuotaPerVMFamilyEnforced property: A value indicating whether core quotas per Virtual
+ * 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/BatchAccountUpdateProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java
index f1329519ee51..73b82c4ca2d8 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -28,6 +28,8 @@ public final class BatchAccountUpdateProperties implements JsonSerializable allowedAuthenticationModes;
/*
- * If not specified, the default value is 'enabled'.
+ * The network access type for accessing Azure Batch account.
+ *
+ * The network access type for operating on the resources in the Batch account.
*/
private PublicNetworkAccessType publicNetworkAccess;
/*
+ * Network profile for Batch account, which contains network rule settings for each endpoint.
+ *
* The network profile only takes effect when publicNetworkAccess is enabled.
*/
private NetworkProfile networkProfile;
@@ -76,9 +82,10 @@ public BatchAccountUpdateProperties withAutoStorage(AutoStorageBaseProperties au
}
/**
- * 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
- * instead.
+ * Get the encryption property: The encryption configuration for the Batch account.
+ *
+ * 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 instead.
*
* @return the encryption value.
*/
@@ -87,9 +94,10 @@ public EncryptionProperties encryption() {
}
/**
- * Set 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
- * instead.
+ * Set the encryption property: The encryption configuration for the Batch account.
+ *
+ * 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 instead.
*
* @param encryption the encryption value to set.
* @return the BatchAccountUpdateProperties object itself.
@@ -123,7 +131,9 @@ public List allowedAuthenticationModes() {
}
/**
- * Get the publicNetworkAccess property: If not specified, the default value is 'enabled'.
+ * Get the publicNetworkAccess property: The network access type for accessing Azure Batch account.
+ *
+ * The network access type for operating on the resources in the Batch account.
*
* @return the publicNetworkAccess value.
*/
@@ -132,7 +142,9 @@ public PublicNetworkAccessType publicNetworkAccess() {
}
/**
- * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'.
+ * Set the publicNetworkAccess property: The network access type for accessing Azure Batch account.
+ *
+ * The network access type for operating on the resources in the Batch account.
*
* @param publicNetworkAccess the publicNetworkAccess value to set.
* @return the BatchAccountUpdateProperties object itself.
@@ -143,7 +155,10 @@ public BatchAccountUpdateProperties withPublicNetworkAccess(PublicNetworkAccessT
}
/**
- * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ * Get the networkProfile property: Network profile for Batch account, which contains network rule settings for each
+ * endpoint.
+ *
+ * The network profile only takes effect when publicNetworkAccess is enabled.
*
* @return the networkProfile value.
*/
@@ -152,7 +167,10 @@ public NetworkProfile networkProfile() {
}
/**
- * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ * Set the networkProfile property: Network profile for Batch account, which contains network rule settings for each
+ * endpoint.
+ *
+ * The network profile only takes effect when publicNetworkAccess is enabled.
*
* @param networkProfile the networkProfile value to set.
* @return the BatchAccountUpdateProperties object itself.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchLocationQuotaInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchLocationQuotaInner.java
index dd39af3d88c0..90b0f93b4556 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchLocationQuotaInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchLocationQuotaInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -24,7 +24,7 @@ public final class BatchLocationQuotaInner implements JsonSerializable {
- CertificateCreateOrUpdateProperties deserializedCertificateCreateOrUpdateProperties
- = new CertificateCreateOrUpdateProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("thumbprintAlgorithm".equals(fieldName)) {
- deserializedCertificateCreateOrUpdateProperties.withThumbprintAlgorithm(reader.getString());
- } else if ("thumbprint".equals(fieldName)) {
- deserializedCertificateCreateOrUpdateProperties.withThumbprint(reader.getString());
- } else if ("format".equals(fieldName)) {
- deserializedCertificateCreateOrUpdateProperties
- .withFormat(CertificateFormat.fromString(reader.getString()));
- } else if ("data".equals(fieldName)) {
- deserializedCertificateCreateOrUpdateProperties.data = reader.getString();
- } else if ("password".equals(fieldName)) {
- deserializedCertificateCreateOrUpdateProperties.password = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedCertificateCreateOrUpdateProperties;
- });
- }
-}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateInner.java
deleted file mode 100644
index bab649e518f3..000000000000
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateInner.java
+++ /dev/null
@@ -1,300 +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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.batch.models.AzureProxyResource;
-import com.azure.resourcemanager.batch.models.CertificateFormat;
-import com.azure.resourcemanager.batch.models.CertificateProvisioningState;
-import com.azure.resourcemanager.batch.models.DeleteCertificateError;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.util.Map;
-
-/**
- * Contains information about a certificate.
- */
-@Fluent
-public final class CertificateInner extends AzureProxyResource {
- /*
- * The properties associated with the certificate.
- */
- private CertificateProperties innerProperties;
-
- /*
- * The ETag of the resource, used for concurrency statements.
- */
- private String etag;
-
- /*
- * The type of the resource.
- */
- private String type;
-
- /*
- * The name of the resource.
- */
- private String name;
-
- /*
- * Fully qualified resource Id for the resource.
- */
- private String id;
-
- /**
- * Creates an instance of CertificateInner class.
- */
- public CertificateInner() {
- }
-
- /**
- * Get the innerProperties property: The properties associated with the certificate.
- *
- * @return the innerProperties value.
- */
- private CertificateProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the etag property: The ETag of the resource, used for concurrency statements.
- *
- * @return the etag value.
- */
- @Override
- public String etag() {
- return this.etag;
- }
-
- /**
- * Get the type property: The type of the resource.
- *
- * @return the type value.
- */
- @Override
- public String type() {
- return this.type;
- }
-
- /**
- * Get the name property: The name of the resource.
- *
- * @return the name value.
- */
- @Override
- public String name() {
- return this.name;
- }
-
- /**
- * Get the id property: Fully qualified resource Id for the resource.
- *
- * @return the id value.
- */
- @Override
- public String id() {
- return this.id;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public CertificateInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the provisioningState property: The provisioningState property.
- *
- * @return the provisioningState value.
- */
- public CertificateProvisioningState provisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
- }
-
- /**
- * Get the provisioningStateTransitionTime property: The time at which the certificate entered its current state.
- *
- * @return the provisioningStateTransitionTime value.
- */
- public OffsetDateTime provisioningStateTransitionTime() {
- return this.innerProperties() == null ? null : this.innerProperties().provisioningStateTransitionTime();
- }
-
- /**
- * Get the previousProvisioningState property: The previous provisioned state of the resource.
- *
- * @return the previousProvisioningState value.
- */
- public CertificateProvisioningState previousProvisioningState() {
- return this.innerProperties() == null ? null : this.innerProperties().previousProvisioningState();
- }
-
- /**
- * Get the previousProvisioningStateTransitionTime property: The time at which the certificate entered its previous
- * state.
- *
- * @return the previousProvisioningStateTransitionTime value.
- */
- public OffsetDateTime previousProvisioningStateTransitionTime() {
- return this.innerProperties() == null ? null : this.innerProperties().previousProvisioningStateTransitionTime();
- }
-
- /**
- * Get the publicData property: The public key of the certificate.
- *
- * @return the publicData value.
- */
- public String publicData() {
- return this.innerProperties() == null ? null : this.innerProperties().publicData();
- }
-
- /**
- * Get the deleteCertificateError property: This is only returned when the certificate provisioningState is
- * 'Failed'.
- *
- * @return the deleteCertificateError value.
- */
- public DeleteCertificateError deleteCertificateError() {
- return this.innerProperties() == null ? null : this.innerProperties().deleteCertificateError();
- }
-
- /**
- * Get the thumbprintAlgorithm property: This must match the first portion of the certificate name. Currently
- * required to be 'SHA1'.
- *
- * @return the thumbprintAlgorithm value.
- */
- public String thumbprintAlgorithm() {
- return this.innerProperties() == null ? null : this.innerProperties().thumbprintAlgorithm();
- }
-
- /**
- * Set the thumbprintAlgorithm property: This must match the first portion of the certificate name. Currently
- * required to be 'SHA1'.
- *
- * @param thumbprintAlgorithm the thumbprintAlgorithm value to set.
- * @return the CertificateInner object itself.
- */
- public CertificateInner withThumbprintAlgorithm(String thumbprintAlgorithm) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CertificateProperties();
- }
- this.innerProperties().withThumbprintAlgorithm(thumbprintAlgorithm);
- return this;
- }
-
- /**
- * Get the thumbprint property: This must match the thumbprint from the name.
- *
- * @return the thumbprint value.
- */
- public String thumbprint() {
- return this.innerProperties() == null ? null : this.innerProperties().thumbprint();
- }
-
- /**
- * Set the thumbprint property: This must match the thumbprint from the name.
- *
- * @param thumbprint the thumbprint value to set.
- * @return the CertificateInner object itself.
- */
- public CertificateInner withThumbprint(String thumbprint) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CertificateProperties();
- }
- this.innerProperties().withThumbprint(thumbprint);
- return this;
- }
-
- /**
- * Get the format property: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.
- *
- * @return the format value.
- */
- public CertificateFormat format() {
- return this.innerProperties() == null ? null : this.innerProperties().format();
- }
-
- /**
- * Set the format property: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx.
- *
- * @param format the format value to set.
- * @return the CertificateInner object itself.
- */
- public CertificateInner withFormat(CertificateFormat format) {
- if (this.innerProperties() == null) {
- this.innerProperties = new CertificateProperties();
- }
- this.innerProperties().withFormat(format);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of CertificateInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of CertificateInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the CertificateInner.
- */
- public static CertificateInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- CertificateInner deserializedCertificateInner = new CertificateInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedCertificateInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedCertificateInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedCertificateInner.type = reader.getString();
- } else if ("etag".equals(fieldName)) {
- deserializedCertificateInner.etag = reader.getString();
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedCertificateInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedCertificateInner.innerProperties = CertificateProperties.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedCertificateInner;
- });
- }
-}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateProperties.java
deleted file mode 100644
index 87f61b422ed3..000000000000
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateProperties.java
+++ /dev/null
@@ -1,212 +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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.CoreUtils;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.batch.models.CertificateBaseProperties;
-import com.azure.resourcemanager.batch.models.CertificateFormat;
-import com.azure.resourcemanager.batch.models.CertificateProvisioningState;
-import com.azure.resourcemanager.batch.models.DeleteCertificateError;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-
-/**
- * Certificate properties.
- */
-@Fluent
-public final class CertificateProperties extends CertificateBaseProperties {
- /*
- * The provisioningState property.
- */
- private CertificateProvisioningState provisioningState;
-
- /*
- * The time at which the certificate entered its current state.
- */
- private OffsetDateTime provisioningStateTransitionTime;
-
- /*
- * The previous provisioned state of the resource
- */
- private CertificateProvisioningState previousProvisioningState;
-
- /*
- * The time at which the certificate entered its previous state.
- */
- private OffsetDateTime previousProvisioningStateTransitionTime;
-
- /*
- * The public key of the certificate.
- */
- private String publicData;
-
- /*
- * This is only returned when the certificate provisioningState is 'Failed'.
- */
- private DeleteCertificateError deleteCertificateError;
-
- /**
- * Creates an instance of CertificateProperties class.
- */
- public CertificateProperties() {
- }
-
- /**
- * Get the provisioningState property: The provisioningState property.
- *
- * @return the provisioningState value.
- */
- public CertificateProvisioningState provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the provisioningStateTransitionTime property: The time at which the certificate entered its current state.
- *
- * @return the provisioningStateTransitionTime value.
- */
- public OffsetDateTime provisioningStateTransitionTime() {
- return this.provisioningStateTransitionTime;
- }
-
- /**
- * Get the previousProvisioningState property: The previous provisioned state of the resource.
- *
- * @return the previousProvisioningState value.
- */
- public CertificateProvisioningState previousProvisioningState() {
- return this.previousProvisioningState;
- }
-
- /**
- * Get the previousProvisioningStateTransitionTime property: The time at which the certificate entered its previous
- * state.
- *
- * @return the previousProvisioningStateTransitionTime value.
- */
- public OffsetDateTime previousProvisioningStateTransitionTime() {
- return this.previousProvisioningStateTransitionTime;
- }
-
- /**
- * Get the publicData property: The public key of the certificate.
- *
- * @return the publicData value.
- */
- public String publicData() {
- return this.publicData;
- }
-
- /**
- * Get the deleteCertificateError property: This is only returned when the certificate provisioningState is
- * 'Failed'.
- *
- * @return the deleteCertificateError value.
- */
- public DeleteCertificateError deleteCertificateError() {
- return this.deleteCertificateError;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public CertificateProperties withThumbprintAlgorithm(String thumbprintAlgorithm) {
- super.withThumbprintAlgorithm(thumbprintAlgorithm);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public CertificateProperties withThumbprint(String thumbprint) {
- super.withThumbprint(thumbprint);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public CertificateProperties withFormat(CertificateFormat format) {
- super.withFormat(format);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (deleteCertificateError() != null) {
- deleteCertificateError().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("thumbprintAlgorithm", thumbprintAlgorithm());
- jsonWriter.writeStringField("thumbprint", thumbprint());
- jsonWriter.writeStringField("format", format() == null ? null : format().toString());
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of CertificateProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of CertificateProperties if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IOException If an error occurs while reading the CertificateProperties.
- */
- public static CertificateProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- CertificateProperties deserializedCertificateProperties = new CertificateProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("thumbprintAlgorithm".equals(fieldName)) {
- deserializedCertificateProperties.withThumbprintAlgorithm(reader.getString());
- } else if ("thumbprint".equals(fieldName)) {
- deserializedCertificateProperties.withThumbprint(reader.getString());
- } else if ("format".equals(fieldName)) {
- deserializedCertificateProperties.withFormat(CertificateFormat.fromString(reader.getString()));
- } else if ("provisioningState".equals(fieldName)) {
- deserializedCertificateProperties.provisioningState
- = CertificateProvisioningState.fromString(reader.getString());
- } else if ("provisioningStateTransitionTime".equals(fieldName)) {
- deserializedCertificateProperties.provisioningStateTransitionTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("previousProvisioningState".equals(fieldName)) {
- deserializedCertificateProperties.previousProvisioningState
- = CertificateProvisioningState.fromString(reader.getString());
- } else if ("previousProvisioningStateTransitionTime".equals(fieldName)) {
- deserializedCertificateProperties.previousProvisioningStateTransitionTime = reader
- .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
- } else if ("publicData".equals(fieldName)) {
- deserializedCertificateProperties.publicData = reader.getString();
- } else if ("deleteCertificateError".equals(fieldName)) {
- deserializedCertificateProperties.deleteCertificateError = DeleteCertificateError.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedCertificateProperties;
- });
- }
-}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CheckNameAvailabilityResultInner.java
index c5f3b2819db7..53b6a4e91f6a 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CheckNameAvailabilityResultInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CheckNameAvailabilityResultInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -37,7 +37,7 @@ public final class CheckNameAvailabilityResultInner implements JsonSerializable<
/**
* Creates an instance of CheckNameAvailabilityResultInner class.
*/
- public CheckNameAvailabilityResultInner() {
+ private CheckNameAvailabilityResultInner() {
}
/**
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseInner.java
index 9c2496fcb87f..bc06f09d9fd4 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseInner.java
@@ -1,22 +1,23 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.batch.models.AzureProxyResource;
import java.io.IOException;
import java.util.Map;
/**
* Contains the information for a detector.
*/
-@Fluent
-public final class DetectorResponseInner extends AzureProxyResource {
+@Immutable
+public final class DetectorResponseInner extends ProxyResource {
/*
* The properties associated with the detector.
*/
@@ -27,6 +28,16 @@ public final class DetectorResponseInner extends AzureProxyResource {
*/
private String etag;
+ /*
+ * The tags of the resource.
+ */
+ private Map tags;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -45,7 +56,7 @@ public final class DetectorResponseInner extends AzureProxyResource {
/**
* Creates an instance of DetectorResponseInner class.
*/
- public DetectorResponseInner() {
+ private DetectorResponseInner() {
}
/**
@@ -62,11 +73,28 @@ private DetectorResponseProperties innerProperties() {
*
* @return the etag value.
*/
- @Override
public String etag() {
return this.etag;
}
+ /**
+ * Get the tags property: The tags of the resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -97,15 +125,6 @@ public String id() {
return this.id;
}
- /**
- * {@inheritDoc}
- */
- @Override
- public DetectorResponseInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
/**
* Get the value property: A base64 encoded string that represents the content of a detector.
*
@@ -115,26 +134,11 @@ public String value() {
return this.innerProperties() == null ? null : this.innerProperties().value();
}
- /**
- * Set the value property: A base64 encoded string that represents the content of a detector.
- *
- * @param value the value value to set.
- * @return the DetectorResponseInner object itself.
- */
- public DetectorResponseInner withValue(String value) {
- if (this.innerProperties() == null) {
- this.innerProperties = new DetectorResponseProperties();
- }
- this.innerProperties().withValue(value);
- return this;
- }
-
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
- @Override
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
@@ -147,8 +151,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -174,13 +178,15 @@ public static DetectorResponseInner fromJson(JsonReader jsonReader) throws IOExc
deserializedDetectorResponseInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedDetectorResponseInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedDetectorResponseInner.innerProperties = DetectorResponseProperties.fromJson(reader);
} else if ("etag".equals(fieldName)) {
deserializedDetectorResponseInner.etag = reader.getString();
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedDetectorResponseInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedDetectorResponseInner.innerProperties = DetectorResponseProperties.fromJson(reader);
+ deserializedDetectorResponseInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDetectorResponseInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseProperties.java
index c0c9abc47ec6..be706e7fe20a 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/DetectorResponseProperties.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* Detector response properties.
*/
-@Fluent
+@Immutable
public final class DetectorResponseProperties implements JsonSerializable {
/*
* A base64 encoded string that represents the content of a detector.
@@ -24,7 +24,7 @@ public final class DetectorResponseProperties implements JsonSerializable {
/*
+ * The operation name.
+ *
* This is of the format {provider}/{resource}/{operation}
*/
private String name;
@@ -45,11 +47,13 @@ public final class OperationInner implements JsonSerializable {
/**
* Creates an instance of OperationInner class.
*/
- public OperationInner() {
+ private OperationInner() {
}
/**
- * Get the name property: This is of the format {provider}/{resource}/{operation}.
+ * Get the name property: The operation name.
+ *
+ * This is of the format {provider}/{resource}/{operation}.
*
* @return the name value.
*/
@@ -57,17 +61,6 @@ public String name() {
return this.name;
}
- /**
- * Set the name property: This is of the format {provider}/{resource}/{operation}.
- *
- * @param name the name value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withName(String name) {
- this.name = name;
- return this;
- }
-
/**
* Get the isDataAction property: Indicates whether the operation is a data action.
*
@@ -77,17 +70,6 @@ public Boolean isDataAction() {
return this.isDataAction;
}
- /**
- * Set the isDataAction property: Indicates whether the operation is a data action.
- *
- * @param isDataAction the isDataAction value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withIsDataAction(Boolean isDataAction) {
- this.isDataAction = isDataAction;
- return this;
- }
-
/**
* Get the display property: The object that describes the operation.
*
@@ -97,17 +79,6 @@ public OperationDisplay display() {
return this.display;
}
- /**
- * Set the display property: The object that describes the operation.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
/**
* Get the origin property: The intended executor of the operation.
*
@@ -117,17 +88,6 @@ public String origin() {
return this.origin;
}
- /**
- * Set the origin property: The intended executor of the operation.
- *
- * @param origin the origin value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withOrigin(String origin) {
- this.origin = origin;
- return this;
- }
-
/**
* Get the properties property: Properties of the operation.
*
@@ -137,17 +97,6 @@ public Object properties() {
return this.properties;
}
- /**
- * Set the properties property: Properties of the operation.
- *
- * @param properties the properties value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withProperties(Object properties) {
- this.properties = properties;
- return this;
- }
-
/**
* Validates the instance.
*
@@ -169,7 +118,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeBooleanField("isDataAction", this.isDataAction);
jsonWriter.writeJsonField("display", this.display);
jsonWriter.writeStringField("origin", this.origin);
- jsonWriter.writeUntypedField("properties", this.properties);
+ if (this.properties != null) {
+ jsonWriter.writeUntypedField("properties", this.properties);
+ }
return jsonWriter.writeEndObject();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OutboundEnvironmentEndpointInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OutboundEnvironmentEndpointInner.java
index 340ec7dbc0f1..8144fb7c00f5 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OutboundEnvironmentEndpointInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OutboundEnvironmentEndpointInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -31,7 +31,7 @@ public final class OutboundEnvironmentEndpointInner implements JsonSerializable<
/**
* Creates an instance of OutboundEnvironmentEndpointInner class.
*/
- public OutboundEnvironmentEndpointInner() {
+ private OutboundEnvironmentEndpointInner() {
}
/**
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 0a77243b16b9..e47fa29cf53f 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
@@ -1,25 +1,24 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.batch.models.AllocationState;
import com.azure.resourcemanager.batch.models.ApplicationPackageReference;
import com.azure.resourcemanager.batch.models.AutoScaleRun;
-import com.azure.resourcemanager.batch.models.AzureProxyResource;
import com.azure.resourcemanager.batch.models.BatchPoolIdentity;
-import com.azure.resourcemanager.batch.models.CertificateReference;
import com.azure.resourcemanager.batch.models.DeploymentConfiguration;
import com.azure.resourcemanager.batch.models.InterNodeCommunicationState;
import com.azure.resourcemanager.batch.models.MetadataItem;
import com.azure.resourcemanager.batch.models.MountConfiguration;
import com.azure.resourcemanager.batch.models.NetworkConfiguration;
-import com.azure.resourcemanager.batch.models.NodeCommunicationMode;
import com.azure.resourcemanager.batch.models.PoolProvisioningState;
import com.azure.resourcemanager.batch.models.ResizeOperationStatus;
import com.azure.resourcemanager.batch.models.ScaleSettings;
@@ -36,7 +35,7 @@
* Contains information about a pool.
*/
@Fluent
-public final class PoolInner extends AzureProxyResource {
+public final class PoolInner extends ProxyResource {
/*
* The properties associated with the pool.
*/
@@ -52,6 +51,16 @@ public final class PoolInner extends AzureProxyResource {
*/
private String etag;
+ /*
+ * The tags of the resource.
+ */
+ private Map tags;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -107,11 +116,39 @@ public PoolInner withIdentity(BatchPoolIdentity identity) {
*
* @return the etag value.
*/
- @Override
public String etag() {
return this.etag;
}
+ /**
+ * Get the tags property: The tags of the resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: The tags of the resource.
+ *
+ * @param tags the tags value to set.
+ * @return the PoolInner object itself.
+ */
+ public PoolInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -143,17 +180,9 @@ public String id() {
}
/**
- * {@inheritDoc}
- */
- @Override
- public PoolInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the displayName property: The display name need not be unique and can contain any Unicode characters up to a
- * maximum length of 1024.
+ * Get the displayName property: The display name for the pool.
+ *
+ * The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
*
* @return the displayName value.
*/
@@ -162,8 +191,9 @@ public String displayName() {
}
/**
- * Set the displayName property: The display name need not be unique and can contain any Unicode characters up to a
- * maximum length of 1024.
+ * Set the displayName property: The display name for the pool.
+ *
+ * The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
*
* @param displayName the displayName value to set.
* @return the PoolInner object itself.
@@ -177,9 +207,10 @@ public PoolInner withDisplayName(String displayName) {
}
/**
- * Get the lastModified property: This is the last time at which the pool level data, such as the
- * targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute
- * node changing state.
+ * Get the lastModified property: The last modified time of the pool.
+ *
+ * This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings,
+ * changed. It does not factor in node-level changes such as a compute node changing state.
*
* @return the lastModified value.
*/
@@ -233,11 +264,11 @@ public OffsetDateTime allocationStateTransitionTime() {
}
/**
- * Get the vmSize property: For information about available VM sizes, see Sizes for Virtual Machines (Linux)
- * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines
- * (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports
- * all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2
- * series).
+ * Get the vmSize property: The size of virtual machines in the pool. All VMs in a pool are the same size.
+ *
+ * For information about available VM sizes, see Sizes for Virtual Machines in Azure
+ * (https://learn.microsoft.com/azure/virtual-machines/sizes/overview). Batch supports all Azure VM sizes except
+ * STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
*
* @return the vmSize value.
*/
@@ -246,11 +277,11 @@ public String vmSize() {
}
/**
- * Set the vmSize property: For information about available VM sizes, see Sizes for Virtual Machines (Linux)
- * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines
- * (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports
- * all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2
- * series).
+ * Set the vmSize property: The size of virtual machines in the pool. All VMs in a pool are the same size.
+ *
+ * For information about available VM sizes, see Sizes for Virtual Machines in Azure
+ * (https://learn.microsoft.com/azure/virtual-machines/sizes/overview). Batch supports all Azure VM sizes except
+ * STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
*
* @param vmSize the vmSize value to set.
* @return the PoolInner object itself.
@@ -264,7 +295,10 @@ public PoolInner withVmSize(String vmSize) {
}
/**
- * Get the deploymentConfiguration property: Deployment configuration properties.
+ * Get the deploymentConfiguration property: This property describes the virtual machines that the pool nodes will
+ * be deployed on.
+ *
+ * Deployment configuration properties.
*
* @return the deploymentConfiguration value.
*/
@@ -273,7 +307,10 @@ public DeploymentConfiguration deploymentConfiguration() {
}
/**
- * Set the deploymentConfiguration property: Deployment configuration properties.
+ * Set the deploymentConfiguration property: This property describes the virtual machines that the pool nodes will
+ * be deployed on.
+ *
+ * Deployment configuration properties.
*
* @param deploymentConfiguration the deploymentConfiguration value to set.
* @return the PoolInner object itself.
@@ -305,9 +342,11 @@ public Integer currentLowPriorityNodes() {
}
/**
- * Get the scaleSettings property: Defines the desired size of the pool. This can either be 'fixedScale' where the
- * requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically
- * reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
+ * Get the scaleSettings property: Settings which configure the number of nodes in the pool.
+ *
+ * Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is
+ * specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*
* @return the scaleSettings value.
*/
@@ -316,9 +355,11 @@ public ScaleSettings scaleSettings() {
}
/**
- * Set the scaleSettings property: Defines the desired size of the pool. This can either be 'fixedScale' where the
- * requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically
- * reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
+ * Set the scaleSettings property: Settings which configure the number of nodes in the pool.
+ *
+ * Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is
+ * specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*
* @param scaleSettings the scaleSettings value to set.
* @return the PoolInner object itself.
@@ -332,8 +373,9 @@ public PoolInner withScaleSettings(ScaleSettings scaleSettings) {
}
/**
- * Get the autoScaleRun property: This property is set only if the pool automatically scales, i.e. autoScaleSettings
- * are used.
+ * Get the autoScaleRun property: The results and errors from the last execution of the autoscale formula.
+ *
+ * This property is set only if the pool automatically scales, i.e. autoScaleSettings are used.
*
* @return the autoScaleRun value.
*/
@@ -342,9 +384,11 @@ public AutoScaleRun autoScaleRun() {
}
/**
- * Get the interNodeCommunication property: This imposes restrictions on which nodes can be assigned to the pool.
- * Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not
- * specified, this value defaults to 'Disabled'.
+ * Get the interNodeCommunication property: Whether the pool permits direct communication between nodes.
+ *
+ * This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance
+ * of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to
+ * 'Disabled'.
*
* @return the interNodeCommunication value.
*/
@@ -353,9 +397,11 @@ public InterNodeCommunicationState interNodeCommunication() {
}
/**
- * Set the interNodeCommunication property: This imposes restrictions on which nodes can be assigned to the pool.
- * Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not
- * specified, this value defaults to 'Disabled'.
+ * Set the interNodeCommunication property: Whether the pool permits direct communication between nodes.
+ *
+ * This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance
+ * of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to
+ * 'Disabled'.
*
* @param interNodeCommunication the interNodeCommunication value to set.
* @return the PoolInner object itself.
@@ -369,7 +415,9 @@ public PoolInner withInterNodeCommunication(InterNodeCommunicationState interNod
}
/**
- * Get the networkConfiguration property: The network configuration for a pool.
+ * Get the networkConfiguration property: The network configuration for the pool.
+ *
+ * The network configuration for a pool.
*
* @return the networkConfiguration value.
*/
@@ -378,7 +426,9 @@ public NetworkConfiguration networkConfiguration() {
}
/**
- * Set the networkConfiguration property: The network configuration for a pool.
+ * Set the networkConfiguration property: The network configuration for the pool.
+ *
+ * The network configuration for a pool.
*
* @param networkConfiguration the networkConfiguration value to set.
* @return the PoolInner object itself.
@@ -392,8 +442,11 @@ public PoolInner withNetworkConfiguration(NetworkConfiguration networkConfigurat
}
/**
- * Get the taskSlotsPerNode property: The default value is 1. The maximum value is the smaller of 4 times the number
- * of cores of the vmSize of the pool or 256.
+ * Get the taskSlotsPerNode property: The number of task slots that can be used to run concurrent tasks on a single
+ * compute node in the pool.
+ *
+ * The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool
+ * or 256.
*
* @return the taskSlotsPerNode value.
*/
@@ -402,8 +455,11 @@ public Integer taskSlotsPerNode() {
}
/**
- * Set the taskSlotsPerNode property: The default value is 1. The maximum value is the smaller of 4 times the number
- * of cores of the vmSize of the pool or 256.
+ * Set the taskSlotsPerNode property: The number of task slots that can be used to run concurrent tasks on a single
+ * compute node in the pool.
+ *
+ * The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool
+ * or 256.
*
* @param taskSlotsPerNode the taskSlotsPerNode value to set.
* @return the PoolInner object itself.
@@ -417,7 +473,9 @@ public PoolInner withTaskSlotsPerNode(Integer taskSlotsPerNode) {
}
/**
- * Get the taskSchedulingPolicy property: If not specified, the default is spread.
+ * Get the taskSchedulingPolicy property: How tasks are distributed across compute nodes in a pool.
+ *
+ * If not specified, the default is spread.
*
* @return the taskSchedulingPolicy value.
*/
@@ -426,7 +484,9 @@ public TaskSchedulingPolicy taskSchedulingPolicy() {
}
/**
- * Set the taskSchedulingPolicy property: If not specified, the default is spread.
+ * Set the taskSchedulingPolicy property: How tasks are distributed across compute nodes in a pool.
+ *
+ * If not specified, the default is spread.
*
* @param taskSchedulingPolicy the taskSchedulingPolicy value to set.
* @return the PoolInner object itself.
@@ -463,8 +523,9 @@ public PoolInner withUserAccounts(List userAccounts) {
}
/**
- * Get the metadata property: The Batch service does not assign any meaning to metadata; it is solely for the use of
- * user code.
+ * Get the metadata property: A list of name-value pairs associated with the pool as metadata.
+ *
+ * The Batch service does not assign any meaning to metadata; it is solely for the use of user code.
*
* @return the metadata value.
*/
@@ -473,8 +534,9 @@ public List metadata() {
}
/**
- * Set the metadata property: The Batch service does not assign any meaning to metadata; it is solely for the use of
- * user code.
+ * Set the metadata property: A list of name-value pairs associated with the pool as metadata.
+ *
+ * The Batch service does not assign any meaning to metadata; it is solely for the use of user code.
*
* @param metadata the metadata value to set.
* @return the PoolInner object itself.
@@ -488,8 +550,10 @@ public PoolInner withMetadata(List metadata) {
}
/**
- * Get the startTask property: In an PATCH (update) operation, this property can be set to an empty object to remove
- * the start task from the pool.
+ * Get the startTask property: A task specified to run on each compute node as it joins the pool.
+ *
+ * In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the
+ * pool.
*
* @return the startTask value.
*/
@@ -498,8 +562,10 @@ public StartTask startTask() {
}
/**
- * Set the startTask property: In an PATCH (update) operation, this property can be set to an empty object to remove
- * the start task from the pool.
+ * Set the startTask property: A task specified to run on each compute node as it joins the pool.
+ *
+ * In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the
+ * pool.
*
* @param startTask the startTask value to set.
* @return the PoolInner object itself.
@@ -513,46 +579,12 @@ public PoolInner withStartTask(StartTask startTask) {
}
/**
- * Get the certificates property: For Windows compute nodes, the Batch service installs the certificates to the
- * specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory
- * inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task
- * to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in
- * the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
- *
- * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @return the certificates value.
- */
- public List certificates() {
- return this.innerProperties() == null ? null : this.innerProperties().certificates();
- }
-
- /**
- * Set the certificates property: For Windows compute nodes, the Batch service installs the certificates to the
- * specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory
- * inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task
- * to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in
- * the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
- *
- * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
+ * Get the applicationPackages property: The list of application packages to be installed on each compute node in
+ * the pool.
*
- * @param certificates the certificates value to set.
- * @return the PoolInner object itself.
- */
- public PoolInner withCertificates(List certificates) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PoolProperties();
- }
- this.innerProperties().withCertificates(certificates);
- return this;
- }
-
- /**
- * Get the applicationPackages property: Changes to application package references affect all new compute nodes
- * joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or
- * reimaged. There is a maximum of 10 application package references on any given pool.
+ * Changes to application package references affect all new compute nodes joining the pool, but do not affect
+ * compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10
+ * application package references on any given pool.
*
* @return the applicationPackages value.
*/
@@ -561,9 +593,12 @@ public List applicationPackages() {
}
/**
- * Set the applicationPackages property: Changes to application package references affect all new compute nodes
- * joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or
- * reimaged. There is a maximum of 10 application package references on any given pool.
+ * Set the applicationPackages property: The list of application packages to be installed on each compute node in
+ * the pool.
+ *
+ * Changes to application package references affect all new compute nodes joining the pool, but do not affect
+ * compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10
+ * application package references on any given pool.
*
* @param applicationPackages the applicationPackages value to set.
* @return the PoolInner object itself.
@@ -577,33 +612,10 @@ public PoolInner withApplicationPackages(List appli
}
/**
- * Get the applicationLicenses property: The list of application licenses must be a subset of available Batch
- * service application licenses. If a license is requested which is not supported, pool creation will fail.
+ * Get the resizeOperationStatus property: Contains details about the current or last completed resize operation.
*
- * @return the applicationLicenses value.
- */
- public List applicationLicenses() {
- return this.innerProperties() == null ? null : this.innerProperties().applicationLicenses();
- }
-
- /**
- * Set the applicationLicenses property: The list of application licenses must be a subset of available Batch
- * service application licenses. If a license is requested which is not supported, pool creation will fail.
- *
- * @param applicationLicenses the applicationLicenses value to set.
- * @return the PoolInner object itself.
- */
- public PoolInner withApplicationLicenses(List applicationLicenses) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PoolProperties();
- }
- this.innerProperties().withApplicationLicenses(applicationLicenses);
- return this;
- }
-
- /**
- * Get the resizeOperationStatus property: Describes either the current operation (if the pool AllocationState is
- * Resizing) or the previously completed operation (if the AllocationState is Steady).
+ * Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed
+ * operation (if the AllocationState is Steady).
*
* @return the resizeOperationStatus value.
*/
@@ -612,7 +624,9 @@ public ResizeOperationStatus resizeOperationStatus() {
}
/**
- * Get the mountConfiguration property: This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
+ * Get the mountConfiguration property: A list of file systems to mount on each node in the pool.
+ *
+ * This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
*
* @return the mountConfiguration value.
*/
@@ -621,7 +635,9 @@ public List mountConfiguration() {
}
/**
- * Set the mountConfiguration property: This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
+ * Set the mountConfiguration property: A list of file systems to mount on each node in the pool.
+ *
+ * This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
*
* @param mountConfiguration the mountConfiguration value to set.
* @return the PoolInner object itself.
@@ -635,39 +651,9 @@ public PoolInner withMountConfiguration(List mountConfigurat
}
/**
- * Get the targetNodeCommunicationMode property: If omitted, the default value is Default.
- *
- * @return the targetNodeCommunicationMode value.
- */
- public NodeCommunicationMode targetNodeCommunicationMode() {
- return this.innerProperties() == null ? null : this.innerProperties().targetNodeCommunicationMode();
- }
-
- /**
- * Set the targetNodeCommunicationMode property: If omitted, the default value is Default.
- *
- * @param targetNodeCommunicationMode the targetNodeCommunicationMode value to set.
- * @return the PoolInner object itself.
- */
- public PoolInner withTargetNodeCommunicationMode(NodeCommunicationMode targetNodeCommunicationMode) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PoolProperties();
- }
- this.innerProperties().withTargetNodeCommunicationMode(targetNodeCommunicationMode);
- return this;
- }
-
- /**
- * Get the currentNodeCommunicationMode property: Determines how a pool communicates with the Batch service.
+ * Get the upgradePolicy property: The upgrade policy for the pool.
*
- * @return the currentNodeCommunicationMode value.
- */
- public NodeCommunicationMode currentNodeCommunicationMode() {
- return this.innerProperties() == null ? null : this.innerProperties().currentNodeCommunicationMode();
- }
-
- /**
- * Get the upgradePolicy property: Describes an upgrade policy - automatic, manual, or rolling.
+ * Describes an upgrade policy - automatic, manual, or rolling.
*
* @return the upgradePolicy value.
*/
@@ -676,7 +662,9 @@ public UpgradePolicy upgradePolicy() {
}
/**
- * Set the upgradePolicy property: Describes an upgrade policy - automatic, manual, or rolling.
+ * Set the upgradePolicy property: The upgrade policy for the pool.
+ *
+ * Describes an upgrade policy - automatic, manual, or rolling.
*
* @param upgradePolicy the upgradePolicy value to set.
* @return the PoolInner object itself.
@@ -689,39 +677,11 @@ public PoolInner withUpgradePolicy(UpgradePolicy upgradePolicy) {
return this;
}
- /**
- * Get the resourceTags property: The user-defined tags to be associated with the Azure Batch Pool. When specified,
- * these tags are propagated to the backing Azure resources associated with the pool. This property can only be
- * specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.
- *
- * @return the resourceTags value.
- */
- public Map resourceTags() {
- return this.innerProperties() == null ? null : this.innerProperties().resourceTags();
- }
-
- /**
- * Set the resourceTags property: The user-defined tags to be associated with the Azure Batch Pool. When specified,
- * these tags are propagated to the backing Azure resources associated with the pool. This property can only be
- * specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.
- *
- * @param resourceTags the resourceTags value to set.
- * @return the PoolInner object itself.
- */
- public PoolInner withResourceTags(Map resourceTags) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PoolProperties();
- }
- this.innerProperties().withResourceTags(resourceTags);
- return this;
- }
-
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
- @Override
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
@@ -737,9 +697,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -765,15 +725,17 @@ public static PoolInner fromJson(JsonReader jsonReader) throws IOException {
deserializedPoolInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedPoolInner.type = reader.getString();
- } else if ("etag".equals(fieldName)) {
- deserializedPoolInner.etag = reader.getString();
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedPoolInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedPoolInner.innerProperties = PoolProperties.fromJson(reader);
} else if ("identity".equals(fieldName)) {
deserializedPoolInner.identity = BatchPoolIdentity.fromJson(reader);
+ } else if ("etag".equals(fieldName)) {
+ deserializedPoolInner.etag = reader.getString();
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPoolInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPoolInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
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 0cd34095252c..ac2176a35085 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -13,13 +13,11 @@
import com.azure.resourcemanager.batch.models.AllocationState;
import com.azure.resourcemanager.batch.models.ApplicationPackageReference;
import com.azure.resourcemanager.batch.models.AutoScaleRun;
-import com.azure.resourcemanager.batch.models.CertificateReference;
import com.azure.resourcemanager.batch.models.DeploymentConfiguration;
import com.azure.resourcemanager.batch.models.InterNodeCommunicationState;
import com.azure.resourcemanager.batch.models.MetadataItem;
import com.azure.resourcemanager.batch.models.MountConfiguration;
import com.azure.resourcemanager.batch.models.NetworkConfiguration;
-import com.azure.resourcemanager.batch.models.NodeCommunicationMode;
import com.azure.resourcemanager.batch.models.PoolProvisioningState;
import com.azure.resourcemanager.batch.models.ResizeOperationStatus;
import com.azure.resourcemanager.batch.models.ScaleSettings;
@@ -30,7 +28,6 @@
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.List;
-import java.util.Map;
/**
* Pool properties.
@@ -38,11 +35,15 @@
@Fluent
public final class PoolProperties implements JsonSerializable {
/*
+ * The display name for the pool.
+ *
* The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
*/
private String displayName;
/*
+ * The last modified time of the pool.
+ *
* This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings,
* changed. It does not factor in node-level changes such as a compute node changing state.
*/
@@ -74,15 +75,17 @@ public final class PoolProperties implements JsonSerializable {
private OffsetDateTime allocationStateTransitionTime;
/*
- * For information about available VM sizes, see Sizes for Virtual Machines (Linux)
- * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines
- * (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports
- * all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2
- * series).
+ * The size of virtual machines in the pool. All VMs in a pool are the same size.
+ *
+ * For information about available VM sizes, see Sizes for Virtual Machines in Azure
+ * (https://learn.microsoft.com/azure/virtual-machines/sizes/overview). Batch supports all Azure VM sizes except
+ * STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
*/
private String vmSize;
/*
+ * This property describes the virtual machines that the pool nodes will be deployed on.
+ *
* Deployment configuration properties.
*/
private DeploymentConfiguration deploymentConfiguration;
@@ -98,6 +101,8 @@ public final class PoolProperties implements JsonSerializable {
private Integer currentLowPriorityNodes;
/*
+ * Settings which configure the number of nodes in the pool.
+ *
* Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is
* specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
* specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
@@ -105,11 +110,15 @@ public final class PoolProperties implements JsonSerializable {
private ScaleSettings scaleSettings;
/*
+ * The results and errors from the last execution of the autoscale formula.
+ *
* This property is set only if the pool automatically scales, i.e. autoScaleSettings are used.
*/
private AutoScaleRun autoScaleRun;
/*
+ * Whether the pool permits direct communication between nodes.
+ *
* This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance
* of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to
* 'Disabled'.
@@ -117,17 +126,23 @@ public final class PoolProperties implements JsonSerializable {
private InterNodeCommunicationState interNodeCommunication;
/*
+ * The network configuration for the pool.
+ *
* The network configuration for a pool.
*/
private NetworkConfiguration networkConfiguration;
/*
+ * The number of task slots that can be used to run concurrent tasks on a single compute node in the pool.
+ *
* The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool
* or 256.
*/
private Integer taskSlotsPerNode;
/*
+ * How tasks are distributed across compute nodes in a pool.
+ *
* If not specified, the default is spread.
*/
private TaskSchedulingPolicy taskSchedulingPolicy;
@@ -138,29 +153,23 @@ public final class PoolProperties implements JsonSerializable {
private List userAccounts;
/*
+ * A list of name-value pairs associated with the pool as metadata.
+ *
* The Batch service does not assign any meaning to metadata; it is solely for the use of user code.
*/
private List metadata;
/*
+ * A task specified to run on each compute node as it joins the pool.
+ *
* In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the
* pool.
*/
private StartTask startTask;
/*
- * For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and
- * location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory
- * and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For
- * certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g.,
- * /home/{user-name}/certs) and certificates are placed in that directory.
+ * The list of application packages to be installed on each compute node in the pool.
*
- * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- */
- private List certificates;
-
- /*
* Changes to application package references affect all new compute nodes joining the pool, but do not affect
* compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10
* application package references on any given pool.
@@ -168,44 +177,27 @@ public final class PoolProperties implements JsonSerializable {
private List applicationPackages;
/*
- * The list of application licenses must be a subset of available Batch service application licenses. If a license
- * is requested which is not supported, pool creation will fail.
- */
- private List applicationLicenses;
-
- /*
+ * Contains details about the current or last completed resize operation.
+ *
* Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed
* operation (if the AllocationState is Steady).
*/
private ResizeOperationStatus resizeOperationStatus;
/*
+ * A list of file systems to mount on each node in the pool.
+ *
* This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
*/
private List mountConfiguration;
/*
- * If omitted, the default value is Default.
- */
- private NodeCommunicationMode targetNodeCommunicationMode;
-
- /*
- * Determines how a pool communicates with the Batch service.
- */
- private NodeCommunicationMode currentNodeCommunicationMode;
-
- /*
+ * The upgrade policy for the pool.
+ *
* Describes an upgrade policy - automatic, manual, or rolling.
*/
private UpgradePolicy upgradePolicy;
- /*
- * The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to
- * the backing Azure resources associated with the pool. This property can only be specified when the Batch account
- * was created with the poolAllocationMode property set to 'UserSubscription'.
- */
- private Map resourceTags;
-
/**
* Creates an instance of PoolProperties class.
*/
@@ -213,8 +205,9 @@ public PoolProperties() {
}
/**
- * Get the displayName property: The display name need not be unique and can contain any Unicode characters up to a
- * maximum length of 1024.
+ * Get the displayName property: The display name for the pool.
+ *
+ * The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
*
* @return the displayName value.
*/
@@ -223,8 +216,9 @@ public String displayName() {
}
/**
- * Set the displayName property: The display name need not be unique and can contain any Unicode characters up to a
- * maximum length of 1024.
+ * Set the displayName property: The display name for the pool.
+ *
+ * The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.
*
* @param displayName the displayName value to set.
* @return the PoolProperties object itself.
@@ -235,9 +229,10 @@ public PoolProperties withDisplayName(String displayName) {
}
/**
- * Get the lastModified property: This is the last time at which the pool level data, such as the
- * targetDedicatedNodes or autoScaleSettings, changed. It does not factor in node-level changes such as a compute
- * node changing state.
+ * Get the lastModified property: The last modified time of the pool.
+ *
+ * This is the last time at which the pool level data, such as the targetDedicatedNodes or autoScaleSettings,
+ * changed. It does not factor in node-level changes such as a compute node changing state.
*
* @return the lastModified value.
*/
@@ -291,11 +286,11 @@ public OffsetDateTime allocationStateTransitionTime() {
}
/**
- * Get the vmSize property: For information about available VM sizes, see Sizes for Virtual Machines (Linux)
- * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines
- * (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports
- * all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2
- * series).
+ * Get the vmSize property: The size of virtual machines in the pool. All VMs in a pool are the same size.
+ *
+ * For information about available VM sizes, see Sizes for Virtual Machines in Azure
+ * (https://learn.microsoft.com/azure/virtual-machines/sizes/overview). Batch supports all Azure VM sizes except
+ * STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
*
* @return the vmSize value.
*/
@@ -304,11 +299,11 @@ public String vmSize() {
}
/**
- * Set the vmSize property: For information about available VM sizes, see Sizes for Virtual Machines (Linux)
- * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines
- * (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports
- * all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2
- * series).
+ * Set the vmSize property: The size of virtual machines in the pool. All VMs in a pool are the same size.
+ *
+ * For information about available VM sizes, see Sizes for Virtual Machines in Azure
+ * (https://learn.microsoft.com/azure/virtual-machines/sizes/overview). Batch supports all Azure VM sizes except
+ * STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).
*
* @param vmSize the vmSize value to set.
* @return the PoolProperties object itself.
@@ -319,7 +314,10 @@ public PoolProperties withVmSize(String vmSize) {
}
/**
- * Get the deploymentConfiguration property: Deployment configuration properties.
+ * Get the deploymentConfiguration property: This property describes the virtual machines that the pool nodes will
+ * be deployed on.
+ *
+ * Deployment configuration properties.
*
* @return the deploymentConfiguration value.
*/
@@ -328,7 +326,10 @@ public DeploymentConfiguration deploymentConfiguration() {
}
/**
- * Set the deploymentConfiguration property: Deployment configuration properties.
+ * Set the deploymentConfiguration property: This property describes the virtual machines that the pool nodes will
+ * be deployed on.
+ *
+ * Deployment configuration properties.
*
* @param deploymentConfiguration the deploymentConfiguration value to set.
* @return the PoolProperties object itself.
@@ -357,9 +358,11 @@ public Integer currentLowPriorityNodes() {
}
/**
- * Get the scaleSettings property: Defines the desired size of the pool. This can either be 'fixedScale' where the
- * requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically
- * reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
+ * Get the scaleSettings property: Settings which configure the number of nodes in the pool.
+ *
+ * Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is
+ * specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*
* @return the scaleSettings value.
*/
@@ -368,9 +371,11 @@ public ScaleSettings scaleSettings() {
}
/**
- * Set the scaleSettings property: Defines the desired size of the pool. This can either be 'fixedScale' where the
- * requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically
- * reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
+ * Set the scaleSettings property: Settings which configure the number of nodes in the pool.
+ *
+ * Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is
+ * specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*
* @param scaleSettings the scaleSettings value to set.
* @return the PoolProperties object itself.
@@ -381,8 +386,9 @@ public PoolProperties withScaleSettings(ScaleSettings scaleSettings) {
}
/**
- * Get the autoScaleRun property: This property is set only if the pool automatically scales, i.e. autoScaleSettings
- * are used.
+ * Get the autoScaleRun property: The results and errors from the last execution of the autoscale formula.
+ *
+ * This property is set only if the pool automatically scales, i.e. autoScaleSettings are used.
*
* @return the autoScaleRun value.
*/
@@ -391,9 +397,11 @@ public AutoScaleRun autoScaleRun() {
}
/**
- * Get the interNodeCommunication property: This imposes restrictions on which nodes can be assigned to the pool.
- * Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not
- * specified, this value defaults to 'Disabled'.
+ * Get the interNodeCommunication property: Whether the pool permits direct communication between nodes.
+ *
+ * This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance
+ * of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to
+ * 'Disabled'.
*
* @return the interNodeCommunication value.
*/
@@ -402,9 +410,11 @@ public InterNodeCommunicationState interNodeCommunication() {
}
/**
- * Set the interNodeCommunication property: This imposes restrictions on which nodes can be assigned to the pool.
- * Enabling this value can reduce the chance of the requested number of nodes to be allocated in the pool. If not
- * specified, this value defaults to 'Disabled'.
+ * Set the interNodeCommunication property: Whether the pool permits direct communication between nodes.
+ *
+ * This imposes restrictions on which nodes can be assigned to the pool. Enabling this value can reduce the chance
+ * of the requested number of nodes to be allocated in the pool. If not specified, this value defaults to
+ * 'Disabled'.
*
* @param interNodeCommunication the interNodeCommunication value to set.
* @return the PoolProperties object itself.
@@ -415,7 +425,9 @@ public PoolProperties withInterNodeCommunication(InterNodeCommunicationState int
}
/**
- * Get the networkConfiguration property: The network configuration for a pool.
+ * Get the networkConfiguration property: The network configuration for the pool.
+ *
+ * The network configuration for a pool.
*
* @return the networkConfiguration value.
*/
@@ -424,7 +436,9 @@ public NetworkConfiguration networkConfiguration() {
}
/**
- * Set the networkConfiguration property: The network configuration for a pool.
+ * Set the networkConfiguration property: The network configuration for the pool.
+ *
+ * The network configuration for a pool.
*
* @param networkConfiguration the networkConfiguration value to set.
* @return the PoolProperties object itself.
@@ -435,8 +449,11 @@ public PoolProperties withNetworkConfiguration(NetworkConfiguration networkConfi
}
/**
- * Get the taskSlotsPerNode property: The default value is 1. The maximum value is the smaller of 4 times the number
- * of cores of the vmSize of the pool or 256.
+ * Get the taskSlotsPerNode property: The number of task slots that can be used to run concurrent tasks on a single
+ * compute node in the pool.
+ *
+ * The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool
+ * or 256.
*
* @return the taskSlotsPerNode value.
*/
@@ -445,8 +462,11 @@ public Integer taskSlotsPerNode() {
}
/**
- * Set the taskSlotsPerNode property: The default value is 1. The maximum value is the smaller of 4 times the number
- * of cores of the vmSize of the pool or 256.
+ * Set the taskSlotsPerNode property: The number of task slots that can be used to run concurrent tasks on a single
+ * compute node in the pool.
+ *
+ * The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool
+ * or 256.
*
* @param taskSlotsPerNode the taskSlotsPerNode value to set.
* @return the PoolProperties object itself.
@@ -457,7 +477,9 @@ public PoolProperties withTaskSlotsPerNode(Integer taskSlotsPerNode) {
}
/**
- * Get the taskSchedulingPolicy property: If not specified, the default is spread.
+ * Get the taskSchedulingPolicy property: How tasks are distributed across compute nodes in a pool.
+ *
+ * If not specified, the default is spread.
*
* @return the taskSchedulingPolicy value.
*/
@@ -466,7 +488,9 @@ public TaskSchedulingPolicy taskSchedulingPolicy() {
}
/**
- * Set the taskSchedulingPolicy property: If not specified, the default is spread.
+ * Set the taskSchedulingPolicy property: How tasks are distributed across compute nodes in a pool.
+ *
+ * If not specified, the default is spread.
*
* @param taskSchedulingPolicy the taskSchedulingPolicy value to set.
* @return the PoolProperties object itself.
@@ -497,8 +521,9 @@ public PoolProperties withUserAccounts(List userAccounts) {
}
/**
- * Get the metadata property: The Batch service does not assign any meaning to metadata; it is solely for the use of
- * user code.
+ * Get the metadata property: A list of name-value pairs associated with the pool as metadata.
+ *
+ * The Batch service does not assign any meaning to metadata; it is solely for the use of user code.
*
* @return the metadata value.
*/
@@ -507,8 +532,9 @@ public List metadata() {
}
/**
- * Set the metadata property: The Batch service does not assign any meaning to metadata; it is solely for the use of
- * user code.
+ * Set the metadata property: A list of name-value pairs associated with the pool as metadata.
+ *
+ * The Batch service does not assign any meaning to metadata; it is solely for the use of user code.
*
* @param metadata the metadata value to set.
* @return the PoolProperties object itself.
@@ -519,8 +545,10 @@ public PoolProperties withMetadata(List metadata) {
}
/**
- * Get the startTask property: In an PATCH (update) operation, this property can be set to an empty object to remove
- * the start task from the pool.
+ * Get the startTask property: A task specified to run on each compute node as it joins the pool.
+ *
+ * In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the
+ * pool.
*
* @return the startTask value.
*/
@@ -529,8 +557,10 @@ public StartTask startTask() {
}
/**
- * Set the startTask property: In an PATCH (update) operation, this property can be set to an empty object to remove
- * the start task from the pool.
+ * Set the startTask property: A task specified to run on each compute node as it joins the pool.
+ *
+ * In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the
+ * pool.
*
* @param startTask the startTask value to set.
* @return the PoolProperties object itself.
@@ -541,43 +571,12 @@ public PoolProperties withStartTask(StartTask startTask) {
}
/**
- * Get the certificates property: For Windows compute nodes, the Batch service installs the certificates to the
- * specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory
- * inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task
- * to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in
- * the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
- *
- * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
- *
- * @return the certificates value.
- */
- public List certificates() {
- return this.certificates;
- }
-
- /**
- * Set the certificates property: For Windows compute nodes, the Batch service installs the certificates to the
- * specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory
- * inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task
- * to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in
- * the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
- *
- * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault
- * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
+ * Get the applicationPackages property: The list of application packages to be installed on each compute node in
+ * the pool.
*
- * @param certificates the certificates value to set.
- * @return the PoolProperties object itself.
- */
- public PoolProperties withCertificates(List certificates) {
- this.certificates = certificates;
- return this;
- }
-
- /**
- * Get the applicationPackages property: Changes to application package references affect all new compute nodes
- * joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or
- * reimaged. There is a maximum of 10 application package references on any given pool.
+ * Changes to application package references affect all new compute nodes joining the pool, but do not affect
+ * compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10
+ * application package references on any given pool.
*
* @return the applicationPackages value.
*/
@@ -586,9 +585,12 @@ public List applicationPackages() {
}
/**
- * Set the applicationPackages property: Changes to application package references affect all new compute nodes
- * joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or
- * reimaged. There is a maximum of 10 application package references on any given pool.
+ * Set the applicationPackages property: The list of application packages to be installed on each compute node in
+ * the pool.
+ *
+ * Changes to application package references affect all new compute nodes joining the pool, but do not affect
+ * compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10
+ * application package references on any given pool.
*
* @param applicationPackages the applicationPackages value to set.
* @return the PoolProperties object itself.
@@ -599,30 +601,10 @@ public PoolProperties withApplicationPackages(List
}
/**
- * Get the applicationLicenses property: The list of application licenses must be a subset of available Batch
- * service application licenses. If a license is requested which is not supported, pool creation will fail.
+ * Get the resizeOperationStatus property: Contains details about the current or last completed resize operation.
*
- * @return the applicationLicenses value.
- */
- public List applicationLicenses() {
- return this.applicationLicenses;
- }
-
- /**
- * Set the applicationLicenses property: The list of application licenses must be a subset of available Batch
- * service application licenses. If a license is requested which is not supported, pool creation will fail.
- *
- * @param applicationLicenses the applicationLicenses value to set.
- * @return the PoolProperties object itself.
- */
- public PoolProperties withApplicationLicenses(List applicationLicenses) {
- this.applicationLicenses = applicationLicenses;
- return this;
- }
-
- /**
- * Get the resizeOperationStatus property: Describes either the current operation (if the pool AllocationState is
- * Resizing) or the previously completed operation (if the AllocationState is Steady).
+ * Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed
+ * operation (if the AllocationState is Steady).
*
* @return the resizeOperationStatus value.
*/
@@ -631,7 +613,9 @@ public ResizeOperationStatus resizeOperationStatus() {
}
/**
- * Get the mountConfiguration property: This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
+ * Get the mountConfiguration property: A list of file systems to mount on each node in the pool.
+ *
+ * This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
*
* @return the mountConfiguration value.
*/
@@ -640,7 +624,9 @@ public List mountConfiguration() {
}
/**
- * Set the mountConfiguration property: This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
+ * Set the mountConfiguration property: A list of file systems to mount on each node in the pool.
+ *
+ * This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
*
* @param mountConfiguration the mountConfiguration value to set.
* @return the PoolProperties object itself.
@@ -651,36 +637,9 @@ public PoolProperties withMountConfiguration(List mountConfi
}
/**
- * Get the targetNodeCommunicationMode property: If omitted, the default value is Default.
+ * Get the upgradePolicy property: The upgrade policy for the pool.
*
- * @return the targetNodeCommunicationMode value.
- */
- public NodeCommunicationMode targetNodeCommunicationMode() {
- return this.targetNodeCommunicationMode;
- }
-
- /**
- * Set the targetNodeCommunicationMode property: If omitted, the default value is Default.
- *
- * @param targetNodeCommunicationMode the targetNodeCommunicationMode value to set.
- * @return the PoolProperties object itself.
- */
- public PoolProperties withTargetNodeCommunicationMode(NodeCommunicationMode targetNodeCommunicationMode) {
- this.targetNodeCommunicationMode = targetNodeCommunicationMode;
- return this;
- }
-
- /**
- * Get the currentNodeCommunicationMode property: Determines how a pool communicates with the Batch service.
- *
- * @return the currentNodeCommunicationMode value.
- */
- public NodeCommunicationMode currentNodeCommunicationMode() {
- return this.currentNodeCommunicationMode;
- }
-
- /**
- * Get the upgradePolicy property: Describes an upgrade policy - automatic, manual, or rolling.
+ * Describes an upgrade policy - automatic, manual, or rolling.
*
* @return the upgradePolicy value.
*/
@@ -689,7 +648,9 @@ public UpgradePolicy upgradePolicy() {
}
/**
- * Set the upgradePolicy property: Describes an upgrade policy - automatic, manual, or rolling.
+ * Set the upgradePolicy property: The upgrade policy for the pool.
+ *
+ * Describes an upgrade policy - automatic, manual, or rolling.
*
* @param upgradePolicy the upgradePolicy value to set.
* @return the PoolProperties object itself.
@@ -699,30 +660,6 @@ public PoolProperties withUpgradePolicy(UpgradePolicy upgradePolicy) {
return this;
}
- /**
- * Get the resourceTags property: The user-defined tags to be associated with the Azure Batch Pool. When specified,
- * these tags are propagated to the backing Azure resources associated with the pool. This property can only be
- * specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.
- *
- * @return the resourceTags value.
- */
- public Map resourceTags() {
- return this.resourceTags;
- }
-
- /**
- * Set the resourceTags property: The user-defined tags to be associated with the Azure Batch Pool. When specified,
- * these tags are propagated to the backing Azure resources associated with the pool. This property can only be
- * specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.
- *
- * @param resourceTags the resourceTags value to set.
- * @return the PoolProperties object itself.
- */
- public PoolProperties withResourceTags(Map resourceTags) {
- this.resourceTags = resourceTags;
- return this;
- }
-
/**
* Validates the instance.
*
@@ -753,9 +690,6 @@ public void validate() {
if (startTask() != null) {
startTask().validate();
}
- if (certificates() != null) {
- certificates().forEach(e -> e.validate());
- }
if (applicationPackages() != null) {
applicationPackages().forEach(e -> e.validate());
}
@@ -788,17 +722,11 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeArrayField("userAccounts", this.userAccounts, (writer, element) -> writer.writeJson(element));
jsonWriter.writeArrayField("metadata", this.metadata, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("startTask", this.startTask);
- jsonWriter.writeArrayField("certificates", this.certificates, (writer, element) -> writer.writeJson(element));
jsonWriter.writeArrayField("applicationPackages", this.applicationPackages,
(writer, element) -> writer.writeJson(element));
- jsonWriter.writeArrayField("applicationLicenses", this.applicationLicenses,
- (writer, element) -> writer.writeString(element));
jsonWriter.writeArrayField("mountConfiguration", this.mountConfiguration,
(writer, element) -> writer.writeJson(element));
- jsonWriter.writeStringField("targetNodeCommunicationMode",
- this.targetNodeCommunicationMode == null ? null : this.targetNodeCommunicationMode.toString());
jsonWriter.writeJsonField("upgradePolicy", this.upgradePolicy);
- jsonWriter.writeMapField("resourceTags", this.resourceTags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -864,34 +792,18 @@ public static PoolProperties fromJson(JsonReader jsonReader) throws IOException
deserializedPoolProperties.metadata = metadata;
} else if ("startTask".equals(fieldName)) {
deserializedPoolProperties.startTask = StartTask.fromJson(reader);
- } else if ("certificates".equals(fieldName)) {
- List certificates
- = reader.readArray(reader1 -> CertificateReference.fromJson(reader1));
- deserializedPoolProperties.certificates = certificates;
} else if ("applicationPackages".equals(fieldName)) {
List applicationPackages
= reader.readArray(reader1 -> ApplicationPackageReference.fromJson(reader1));
deserializedPoolProperties.applicationPackages = applicationPackages;
- } else if ("applicationLicenses".equals(fieldName)) {
- List applicationLicenses = reader.readArray(reader1 -> reader1.getString());
- deserializedPoolProperties.applicationLicenses = applicationLicenses;
} else if ("resizeOperationStatus".equals(fieldName)) {
deserializedPoolProperties.resizeOperationStatus = ResizeOperationStatus.fromJson(reader);
} else if ("mountConfiguration".equals(fieldName)) {
List mountConfiguration
= reader.readArray(reader1 -> MountConfiguration.fromJson(reader1));
deserializedPoolProperties.mountConfiguration = mountConfiguration;
- } else if ("targetNodeCommunicationMode".equals(fieldName)) {
- deserializedPoolProperties.targetNodeCommunicationMode
- = NodeCommunicationMode.fromString(reader.getString());
- } else if ("currentNodeCommunicationMode".equals(fieldName)) {
- deserializedPoolProperties.currentNodeCommunicationMode
- = NodeCommunicationMode.fromString(reader.getString());
} else if ("upgradePolicy".equals(fieldName)) {
deserializedPoolProperties.upgradePolicy = UpgradePolicy.fromJson(reader);
- } else if ("resourceTags".equals(fieldName)) {
- Map resourceTags = reader.readMap(reader1 -> reader1.getString());
- deserializedPoolProperties.resourceTags = resourceTags;
} else {
reader.skipChildren();
}
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 12dd596519b1..a3b9f0322cc9 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
@@ -1,14 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.batch.models.AzureProxyResource;
import com.azure.resourcemanager.batch.models.PrivateEndpoint;
import com.azure.resourcemanager.batch.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionState;
@@ -20,7 +21,7 @@
* Contains information about a private link resource.
*/
@Fluent
-public final class PrivateEndpointConnectionInner extends AzureProxyResource {
+public final class PrivateEndpointConnectionInner extends ProxyResource {
/*
* The properties associated with the private endpoint connection.
*/
@@ -31,6 +32,16 @@ public final class PrivateEndpointConnectionInner extends AzureProxyResource {
*/
private String etag;
+ /*
+ * The tags of the resource.
+ */
+ private Map tags;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -66,11 +77,39 @@ private PrivateEndpointConnectionProperties innerProperties() {
*
* @return the etag value.
*/
- @Override
public String etag() {
return this.etag;
}
+ /**
+ * Get the tags property: The tags of the resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: The tags of the resource.
+ *
+ * @param tags the tags value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -101,15 +140,6 @@ public String id() {
return this.id;
}
- /**
- * {@inheritDoc}
- */
- @Override
- public PrivateEndpointConnectionInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
/**
* Get the provisioningState property: The provisioning state of the private endpoint connection.
*
@@ -120,7 +150,9 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
}
/**
- * Get the privateEndpoint property: The private endpoint of the private endpoint connection.
+ * Get the privateEndpoint property: The ARM resource identifier of the private endpoint.
+ *
+ * The private endpoint of the private endpoint connection.
*
* @return the privateEndpoint value.
*/
@@ -129,7 +161,9 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Get the groupIds property: The value has one and only one group id.
+ * Get the groupIds property: The group id of the private endpoint connection.
+ *
+ * The value has one and only one group id.
*
* @return the groupIds value.
*/
@@ -168,7 +202,6 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
- @Override
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
@@ -181,8 +214,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -209,14 +242,16 @@ public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) thr
deserializedPrivateEndpointConnectionInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedPrivateEndpointConnectionInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.innerProperties
+ = PrivateEndpointConnectionProperties.fromJson(reader);
} else if ("etag".equals(fieldName)) {
deserializedPrivateEndpointConnectionInner.etag = reader.getString();
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedPrivateEndpointConnectionInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedPrivateEndpointConnectionInner.innerProperties
- = PrivateEndpointConnectionProperties.fromJson(reader);
+ deserializedPrivateEndpointConnectionInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
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 97b711c6983c..8e4a8640b00c 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -27,17 +27,21 @@ public final class PrivateEndpointConnectionProperties
private PrivateEndpointConnectionProvisioningState provisioningState;
/*
+ * The ARM resource identifier of the private endpoint.
+ *
* The private endpoint of the private endpoint connection.
*/
private PrivateEndpoint privateEndpoint;
/*
+ * The group id of the private endpoint connection.
+ *
* The value has one and only one group id.
*/
private List groupIds;
/*
- * The private link service connection state of the private endpoint connection
+ * The private link service connection state of the private endpoint connection.
*/
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
@@ -57,7 +61,9 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
}
/**
- * Get the privateEndpoint property: The private endpoint of the private endpoint connection.
+ * Get the privateEndpoint property: The ARM resource identifier of the private endpoint.
+ *
+ * The private endpoint of the private endpoint connection.
*
* @return the privateEndpoint value.
*/
@@ -66,7 +72,9 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Get the groupIds property: The value has one and only one group id.
+ * Get the groupIds property: The group id of the private endpoint connection.
+ *
+ * The value has one and only one group id.
*
* @return the groupIds value.
*/
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceInner.java
index fdaca055ee45..41f01de1c219 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceInner.java
@@ -1,14 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.batch.models.AzureProxyResource;
import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -16,8 +17,8 @@
/**
* Contains information about a private link resource.
*/
-@Fluent
-public final class PrivateLinkResourceInner extends AzureProxyResource {
+@Immutable
+public final class PrivateLinkResourceInner extends ProxyResource {
/*
* The properties associated with the private link resource.
*/
@@ -28,6 +29,16 @@ public final class PrivateLinkResourceInner extends AzureProxyResource {
*/
private String etag;
+ /*
+ * The tags of the resource.
+ */
+ private Map tags;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
/*
* The type of the resource.
*/
@@ -46,7 +57,7 @@ public final class PrivateLinkResourceInner extends AzureProxyResource {
/**
* Creates an instance of PrivateLinkResourceInner class.
*/
- public PrivateLinkResourceInner() {
+ private PrivateLinkResourceInner() {
}
/**
@@ -63,11 +74,28 @@ private PrivateLinkResourceProperties innerProperties() {
*
* @return the etag value.
*/
- @Override
public String etag() {
return this.etag;
}
+ /**
+ * Get the tags property: The tags of the resource.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Get the type property: The type of the resource.
*
@@ -99,16 +127,9 @@ public String id() {
}
/**
- * {@inheritDoc}
- */
- @Override
- public PrivateLinkResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the groupId property: The group id is used to establish the private link connection.
+ * Get the groupId property: The group id of the private link resource.
+ *
+ * The group id is used to establish the private link connection.
*
* @return the groupId value.
*/
@@ -129,6 +150,8 @@ public List requiredMembers() {
/**
* Get the requiredZoneNames property: The list of required zone names for the private DNS resource name.
*
+ * The list of required zone names for the private DNS resource name.
+ *
* @return the requiredZoneNames value.
*/
public List requiredZoneNames() {
@@ -140,7 +163,6 @@ public List requiredZoneNames() {
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
- @Override
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
@@ -153,8 +175,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -180,14 +202,16 @@ public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IO
deserializedPrivateLinkResourceInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedPrivateLinkResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.innerProperties
+ = PrivateLinkResourceProperties.fromJson(reader);
} else if ("etag".equals(fieldName)) {
deserializedPrivateLinkResourceInner.etag = reader.getString();
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedPrivateLinkResourceInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedPrivateLinkResourceInner.innerProperties
- = PrivateLinkResourceProperties.fromJson(reader);
+ deserializedPrivateLinkResourceInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceProperties.java
index 582ad974079f..0abd6978a91c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -18,6 +18,8 @@
@Immutable
public final class PrivateLinkResourceProperties implements JsonSerializable {
/*
+ * The group id of the private link resource.
+ *
* The group id is used to establish the private link connection.
*/
private String groupId;
@@ -28,6 +30,8 @@ public final class PrivateLinkResourceProperties implements JsonSerializable requiredMembers;
/*
+ * The list of required zone names for the private DNS resource name.
+ *
* The list of required zone names for the private DNS resource name
*/
private List requiredZoneNames;
@@ -35,11 +39,13 @@ public final class PrivateLinkResourceProperties implements JsonSerializable requiredMembers() {
/**
* Get the requiredZoneNames property: The list of required zone names for the private DNS resource name.
*
+ * The list of required zone names for the private DNS resource name.
+ *
* @return the requiredZoneNames value.
*/
public List requiredZoneNames() {
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/SupportedSkuInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/SupportedSkuInner.java
index 7b5c6024c95f..cd969071ff9c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/SupportedSkuInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/SupportedSkuInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.fluent.models;
@@ -43,7 +43,7 @@ public final class SupportedSkuInner implements JsonSerializable tags() {
}
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public String displayName() {
return this.innerModel().displayName();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackageImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackageImpl.java
index bbe90fa3b7c3..dd1874260069 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackageImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackageImpl.java
@@ -1,10 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.implementation;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.batch.fluent.models.ApplicationPackageInner;
import com.azure.resourcemanager.batch.models.ActivateApplicationPackageParameters;
@@ -50,6 +51,10 @@ public Map tags() {
}
}
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
public PackageState state() {
return this.innerModel().state();
}
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 d8e9ad200641..1b452287f60d 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.batch.implementation;
@@ -29,10 +29,11 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.batch.fluent.ApplicationPackagesClient;
import com.azure.resourcemanager.batch.fluent.models.ApplicationPackageInner;
+import com.azure.resourcemanager.batch.implementation.models.ListApplicationPackagesResult;
import com.azure.resourcemanager.batch.models.ActivateApplicationPackageParameters;
-import com.azure.resourcemanager.batch.models.ListApplicationPackagesResult;
import reactor.core.publisher.Mono;
/**
@@ -64,148 +65,155 @@ public final class ApplicationPackagesClientImpl implements ApplicationPackagesC
* The interface defining all the services for BatchManagementClientApplicationPackages to be used by the proxy
* service to perform REST calls.
*/
- @Host("{$host}")
- @ServiceInterface(name = "BatchManagementClien")
+ @Host("{endpoint}")
+ @ServiceInterface(name = "BatchManagementClientApplicationPackages")
public interface ApplicationPackagesService {
@Headers({ "Content-Type: application/json" })
- @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> activate(@HostParam("$host") String endpoint,
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@PathParam("applicationName") String applicationName, @PathParam("versionName") String versionName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ActivateApplicationPackageParameters parameters,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ @PathParam("applicationName") String applicationName, @PathParam("versionName") String versionName,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> create(@HostParam("$host") String endpoint,
+ Mono> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@PathParam("applicationName") String applicationName, @PathParam("versionName") String versionName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @BodyParam("application/json") ApplicationPackageInner parameters, @HeaderParam("Accept") String accept,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ApplicationPackageInner parameters,
Context context);
@Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ @PathParam("applicationName") String applicationName, @PathParam("versionName") String versionName,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ApplicationPackageInner parameters,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}")
@ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(@HostParam("$host") String endpoint,
+ Mono> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@PathParam("applicationName") String applicationName, @PathParam("versionName") String versionName,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
+ Context context);
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}")
- @ExpectedResponses({ 200 })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}")
+ @ExpectedResponses({ 200, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("$host") String endpoint,
+ Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@PathParam("applicationName") String applicationName, @PathParam("versionName") String versionName,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ @PathParam("applicationName") String applicationName, @QueryParam("maxresults") Integer maxresults,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
@PathParam("applicationName") String applicationName, @QueryParam("maxresults") Integer maxresults,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@HeaderParam("Accept") String accept, Context context);
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> activate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ @PathParam("applicationName") String applicationName, @PathParam("versionName") String versionName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ActivateApplicationPackageParameters parameters, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response activateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName,
+ @PathParam("applicationName") String applicationName, @PathParam("versionName") String versionName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ActivateApplicationPackageParameters parameters, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
/**
- * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
- * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
+ * Gets information about the specified application package.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
- * @param parameters The parameters for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application along with
- * {@link Response} on successful completion of {@link Mono}.
+ * @return information about the specified application package along with {@link Response} on successful completion
+ * of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> activateWithResponseAsync(String resourceGroupName,
- String accountName, String applicationName, String versionName,
- ActivateApplicationPackageParameters parameters) {
+ private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
+ String applicationName, String versionName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() 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 (applicationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
- }
- if (versionName == null) {
- return Mono.error(new IllegalArgumentException("Parameter versionName 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 (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.activate(this.client.getEndpoint(), resourceGroupName, accountName,
- applicationName, versionName, this.client.getApiVersion(), this.client.getSubscriptionId(), parameters,
- accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
- * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
- * @param parameters The parameters for the request.
- * @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 an application package which represents a particular version of an application along with
- * {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> activateWithResponseAsync(String resourceGroupName,
- String accountName, String applicationName, String versionName, ActivateApplicationPackageParameters parameters,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
@@ -220,85 +228,105 @@ private Mono> activateWithResponseAsync(String
if (versionName == null) {
return Mono.error(new IllegalArgumentException("Parameter versionName 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 (parameters == null) {
- return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
- } else {
- parameters.validate();
- }
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.activate(this.client.getEndpoint(), resourceGroupName, accountName, applicationName, versionName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context);
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accountName, applicationName, versionName, accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
- * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
+ * Gets information about the specified application package.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
- * @param parameters The parameters for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application on successful completion
- * of {@link Mono}.
+ * @return information about the specified application package on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono activateAsync(String resourceGroupName, String accountName,
- String applicationName, String versionName, ActivateApplicationPackageParameters parameters) {
- return activateWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters)
+ private Mono getAsync(String resourceGroupName, String accountName, String applicationName,
+ String versionName) {
+ return getWithResponseAsync(resourceGroupName, accountName, applicationName, versionName)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
- * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
+ * Gets information about the specified application package.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
- * @param parameters The parameters for the request.
* @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 an application package which represents a particular version of an application along with
- * {@link Response}.
+ * @return information about the specified application package along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response activateWithResponse(String resourceGroupName, String accountName,
- String applicationName, String versionName, ActivateApplicationPackageParameters parameters, Context context) {
- return activateWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters,
- context).block();
+ public Response getWithResponse(String resourceGroupName, String accountName,
+ String applicationName, String versionName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ if (versionName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter versionName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, accountName, applicationName, versionName, accept, context);
}
/**
- * Activates the specified application package. This should be done after the `ApplicationPackage` was created and
- * uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
+ * Gets information about the specified application package.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
- * @param parameters The parameters for the request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application package which represents a particular version of an application.
+ * @return information about the specified application package.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationPackageInner activate(String resourceGroupName, String accountName, String applicationName,
- String versionName, ActivateApplicationPackageParameters parameters) {
- return activateWithResponse(resourceGroupName, accountName, applicationName, versionName, parameters,
- Context.NONE).getValue();
+ public ApplicationPackageInner get(String resourceGroupName, String accountName, String applicationName,
+ String versionName) {
+ return getWithResponse(resourceGroupName, accountName, applicationName, versionName, Context.NONE).getValue();
}
/**
@@ -306,8 +334,11 @@ public ApplicationPackageInner activate(String resourceGroupName, String account
* Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can
* be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @param parameters The parameters for the request.
@@ -324,60 +355,10 @@ private Mono> createWithResponseAsync(String r
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() 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 (applicationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
- }
- if (versionName == null) {
- return Mono.error(new IllegalArgumentException("Parameter versionName 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 (parameters != null) {
- parameters.validate();
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.create(this.client.getEndpoint(), resourceGroupName, accountName,
- applicationName, versionName, this.client.getApiVersion(), this.client.getSubscriptionId(), parameters,
- accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Creates an application package record. The record contains a storageUrl where the package should be uploaded to.
- * Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can
- * be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
- * @param parameters The parameters for the request.
- * @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 an application package which represents a particular version of an application along with
- * {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createWithResponseAsync(String resourceGroupName,
- String accountName, String applicationName, String versionName, ApplicationPackageInner parameters,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
@@ -392,17 +373,15 @@ private Mono> createWithResponseAsync(String r
if (versionName == null) {
return Mono.error(new IllegalArgumentException("Parameter versionName 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 (parameters != null) {
parameters.validate();
}
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.create(this.client.getEndpoint(), resourceGroupName, accountName, applicationName, versionName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), parameters, accept, context);
+ return FluxUtil
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accountName, applicationName, versionName, accept,
+ parameters, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
@@ -410,8 +389,11 @@ private Mono> createWithResponseAsync(String r
* Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can
* be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -433,8 +415,11 @@ private Mono createAsync(String resourceGroupName, Stri
* Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can
* be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @param parameters The parameters for the request.
@@ -448,8 +433,39 @@ private Mono createAsync(String resourceGroupName, Stri
@ServiceMethod(returns = ReturnType.SINGLE)
public Response createWithResponse(String resourceGroupName, String accountName,
String applicationName, String versionName, ApplicationPackageInner parameters, Context context) {
- return createWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters,
- context).block();
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ if (versionName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter versionName is required and cannot be null."));
+ }
+ if (parameters != null) {
+ parameters.validate();
+ }
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accountName, applicationName, versionName, accept,
+ parameters, context);
}
/**
@@ -457,8 +473,11 @@ public Response createWithResponse(String resourceGroup
* Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can
* be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -477,8 +496,11 @@ public ApplicationPackageInner create(String resourceGroupName, String accountNa
/**
* Deletes an application package record and its associated binary file.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -493,6 +515,10 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
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."));
@@ -507,73 +533,26 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
if (versionName == null) {
return Mono.error(new IllegalArgumentException("Parameter versionName 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."));
- }
- final String accept = "application/json";
return FluxUtil
- .withContext(
- context -> service.delete(this.client.getEndpoint(), resourceGroupName, accountName, applicationName,
- versionName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accountName, applicationName, versionName, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Deletes an application package record and its associated binary file.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
- * @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 applicationName, String versionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() 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 (applicationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
- }
- if (versionName == null) {
- return Mono.error(new IllegalArgumentException("Parameter versionName 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."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), resourceGroupName, accountName, applicationName, versionName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
- }
-
- /**
- * Deletes an application package record and its associated binary file.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
- * @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.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName, String applicationName,
@@ -585,8 +564,11 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str
/**
* Deletes an application package record and its associated binary file.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @param context The context to associate with this operation.
@@ -598,14 +580,44 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteWithResponse(String resourceGroupName, String accountName, String applicationName,
String versionName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, context).block();
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (accountName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
+ }
+ if (applicationName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
+ }
+ if (versionName == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter versionName is required and cannot be null."));
+ }
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accountName, applicationName, versionName, context);
}
/**
* Deletes an application package record and its associated binary file.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param versionName The version of the application.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -618,72 +630,32 @@ public void delete(String resourceGroupName, String accountName, String applicat
}
/**
- * Gets information about the specified application package.
+ * Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
+ * @param maxresults The maximum number of items to return in the response.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package along with {@link Response} on successful completion
- * of {@link Mono}.
+ * @return the result of performing list application packages along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
- String applicationName, String versionName) {
+ private Mono> listSinglePageAsync(String resourceGroupName,
+ String accountName, String applicationName, Integer maxresults) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() 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 (applicationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
- }
- if (versionName == null) {
- return Mono.error(new IllegalArgumentException("Parameter versionName 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."));
}
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.get(this.client.getEndpoint(), resourceGroupName, accountName, applicationName,
- versionName, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets information about the specified application package.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
- * @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 information about the specified application package along with {@link Response} on successful completion
- * of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceGroupName, String accountName,
- String applicationName, String versionName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
if (resourceGroupName == null) {
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
@@ -695,259 +667,369 @@ private Mono> getWithResponseAsync(String reso
return Mono
.error(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
}
- if (versionName == null) {
- return Mono.error(new IllegalArgumentException("Parameter versionName 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."));
- }
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.get(this.client.getEndpoint(), resourceGroupName, accountName, applicationName, versionName,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context);
- }
-
- /**
- * Gets information about the specified application package.
- *
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
- * @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceGroupName, String accountName, String applicationName,
- String versionName) {
- return getWithResponseAsync(resourceGroupName, accountName, applicationName, versionName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accountName, applicationName, maxresults, accept,
+ context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Gets information about the specified application package.
+ * Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
- * @param context The context to associate with this operation.
+ * @param maxresults The maximum number of items to return in the response.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package along with {@link Response}.
+ * @return the result of performing list application packages as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceGroupName, String accountName,
- String applicationName, String versionName, Context context) {
- return getWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, context).block();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String accountName,
+ String applicationName, Integer maxresults) {
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, applicationName, maxresults),
+ nextLink -> listNextSinglePageAsync(nextLink));
}
/**
- * Gets information about the specified application package.
+ * Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param versionName The version of the application.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package.
+ * @return the result of performing list application packages as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationPackageInner get(String resourceGroupName, String accountName, String applicationName,
- String versionName) {
- return getWithResponse(resourceGroupName, accountName, applicationName, versionName, Context.NONE).getValue();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String resourceGroupName, String accountName,
+ String applicationName) {
+ final Integer maxresults = null;
+ return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, applicationName, maxresults),
+ nextLink -> listNextSinglePageAsync(nextLink));
}
/**
* Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param maxresults The maximum number of items to return in the response.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return the result of performing list application packages along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String accountName, String applicationName, Integer maxresults) {
+ private PagedResponse listSinglePage(String resourceGroupName, String accountName,
+ String applicationName, Integer maxresults) {
if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(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."));
+ throw LOGGER.atError()
+ .log(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."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
}
if (applicationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter applicationName 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."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
}
final String accept = "application/json";
- return FluxUtil
- .withContext(
- context -> service.list(this.client.getEndpoint(), resourceGroupName, accountName, applicationName,
- maxresults, this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, accountName, applicationName, maxresults, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
* Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
* @param maxresults The maximum number of items to return in the response.
* @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 result of performing list application packages along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return the result of performing list application packages along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(String resourceGroupName,
- String accountName, String applicationName, Integer maxresults, Context context) {
+ private PagedResponse listSinglePage(String resourceGroupName, String accountName,
+ String applicationName, Integer maxresults, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(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."));
+ throw LOGGER.atError()
+ .log(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."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
}
if (applicationName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter applicationName 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."));
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter applicationName is required and cannot be null."));
}
final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), resourceGroupName, accountName, applicationName, maxresults,
- this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, accountName, applicationName, maxresults, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
}
/**
* Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
- * @param maxresults The maximum number of items to return in the response.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the result of performing list application packages as paginated response with {@link PagedFlux}.
+ * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String accountName,
- String applicationName, Integer maxresults) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, applicationName, maxresults),
- nextLink -> listNextSinglePageAsync(nextLink));
+ public PagedIterable list(String resourceGroupName, String accountName,
+ String applicationName) {
+ final Integer maxresults = null;
+ return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, applicationName, maxresults),
+ nextLink -> listNextSinglePage(nextLink));
}
/**
* Lists all of the application packages in the specified application.
*
- * @param resourceGroupName The name of the resource group that contains the Batch account.
- * @param accountName The name of the Batch account.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName A name for the Batch account which must be unique within the region. Batch account names must
+ * be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as
+ * part of the DNS name that is used to access the Batch service in the region in which the account is created. For
+ * example: http://accountname.region.batch.azure.com/.
* @param applicationName The name of the application. This must be unique within the account.
+ * @param maxresults The maximum number of items to return in the response.
+ * @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 result of performing list application packages as paginated response with {@link PagedFlux}.
+ * @return the result of performing list application packages as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(String resourceGroupName, String accountName,
- String applicationName) {
- final Integer maxresults = null;
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, applicationName, maxresults),
- nextLink -> listNextSinglePageAsync(nextLink));
+ public PagedIterable