scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -173,6 +189,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -206,7 +235,7 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.batch")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -224,10 +253,15 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
}
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
policies
.addAll(
@@ -258,7 +292,11 @@ public BatchManager authenticate(TokenCredential credential, AzureProfile profil
}
}
- /** @return Resource collection API of BatchAccounts. */
+ /**
+ * Gets the resource collection API of BatchAccounts. It manages BatchAccount.
+ *
+ * @return Resource collection API of BatchAccounts.
+ */
public BatchAccounts batchAccounts() {
if (this.batchAccounts == null) {
this.batchAccounts = new BatchAccountsImpl(clientObject.getBatchAccounts(), this);
@@ -266,7 +304,11 @@ public BatchAccounts batchAccounts() {
return batchAccounts;
}
- /** @return Resource collection API of ApplicationPackages. */
+ /**
+ * Gets the resource collection API of ApplicationPackages. It manages ApplicationPackage.
+ *
+ * @return Resource collection API of ApplicationPackages.
+ */
public ApplicationPackages applicationPackages() {
if (this.applicationPackages == null) {
this.applicationPackages = new ApplicationPackagesImpl(clientObject.getApplicationPackages(), this);
@@ -274,7 +316,11 @@ public ApplicationPackages applicationPackages() {
return applicationPackages;
}
- /** @return Resource collection API of Applications. */
+ /**
+ * Gets the resource collection API of Applications. It manages Application.
+ *
+ * @return Resource collection API of Applications.
+ */
public Applications applications() {
if (this.applications == null) {
this.applications = new ApplicationsImpl(clientObject.getApplications(), this);
@@ -282,7 +328,11 @@ public Applications applications() {
return applications;
}
- /** @return Resource collection API of Locations. */
+ /**
+ * Gets the resource collection API of Locations.
+ *
+ * @return Resource collection API of Locations.
+ */
public Locations locations() {
if (this.locations == null) {
this.locations = new LocationsImpl(clientObject.getLocations(), this);
@@ -290,7 +340,11 @@ public Locations locations() {
return locations;
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -298,7 +352,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of Certificates. */
+ /**
+ * Gets the resource collection API of Certificates. It manages Certificate.
+ *
+ * @return Resource collection API of Certificates.
+ */
public Certificates certificates() {
if (this.certificates == null) {
this.certificates = new CertificatesImpl(clientObject.getCertificates(), this);
@@ -306,7 +364,11 @@ public Certificates certificates() {
return certificates;
}
- /** @return Resource collection API of PrivateLinkResources. */
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
@@ -314,7 +376,11 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}
- /** @return Resource collection API of PrivateEndpointConnections. */
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections =
@@ -323,7 +389,11 @@ public PrivateEndpointConnections privateEndpointConnections() {
return privateEndpointConnections;
}
- /** @return Resource collection API of Pools. */
+ /**
+ * Gets the resource collection API of Pools. It manages Pool.
+ *
+ * @return Resource collection API of Pools.
+ */
public Pools pools() {
if (this.pools == null) {
this.pools = new PoolsImpl(clientObject.getPools(), this);
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/ApplicationPackagesClient.java
index e84150a8e15a..360ee5838799 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
@@ -14,28 +14,6 @@
/** An instance of this class provides access to all the operations defined in ApplicationPackagesClient. */
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.
- *
- * @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.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationPackageInner activate(
- String resourceGroupName,
- String accountName,
- String applicationName,
- String versionName,
- ActivateApplicationPackageParameters parameters);
-
/**
* 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.
@@ -62,22 +40,26 @@ Response activateWithResponse(
Context context);
/**
- * 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.
+ * 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.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationPackageInner create(
- String resourceGroupName, String accountName, String applicationName, String versionName);
+ ApplicationPackageInner activate(
+ String resourceGroupName,
+ String accountName,
+ String applicationName,
+ String versionName,
+ ActivateApplicationPackageParameters parameters);
/**
* Creates an application package record. The record contains a storageUrl where the package should be uploaded to.
@@ -106,7 +88,9 @@ Response createWithResponse(
Context context);
/**
- * Deletes an application package record and its associated binary file.
+ * 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.
@@ -115,9 +99,11 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an application package which represents a particular version of an application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String applicationName, String versionName);
+ ApplicationPackageInner create(
+ String resourceGroupName, String accountName, String applicationName, String versionName);
/**
* Deletes an application package record and its associated binary file.
@@ -137,7 +123,7 @@ Response deleteWithResponse(
String resourceGroupName, String accountName, String applicationName, String versionName, Context context);
/**
- * Gets information about the specified application package.
+ * 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.
@@ -146,11 +132,9 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application package.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationPackageInner get(
- String resourceGroupName, String accountName, String applicationName, String versionName);
+ void delete(String resourceGroupName, String accountName, String applicationName, String versionName);
/**
* Gets information about the specified application package.
@@ -169,6 +153,22 @@ ApplicationPackageInner get(
Response getWithResponse(
String resourceGroupName, String accountName, String applicationName, String versionName, Context 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 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ApplicationPackageInner get(
+ String resourceGroupName, String accountName, String applicationName, String versionName);
+
/**
* Lists all of the application packages in the specified application.
*
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 3c46b10f2caf..a60c84f5eafc 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
@@ -13,20 +13,6 @@
/** An instance of this class provides access to all the operations defined in ApplicationsClient. */
public interface ApplicationsClient {
- /**
- * 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 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)
- ApplicationInner create(String resourceGroupName, String accountName, String applicationName);
-
/**
* Adds an application to the specified Batch account.
*
@@ -49,7 +35,7 @@ Response createWithResponse(
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.
@@ -57,9 +43,10 @@ Response createWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return 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);
/**
* Deletes an application.
@@ -78,7 +65,7 @@ Response deleteWithResponse(
String resourceGroupName, String accountName, String applicationName, Context context);
/**
- * Gets information about 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.
@@ -86,10 +73,9 @@ Response deleteWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String resourceGroupName, String accountName, String applicationName);
+ void delete(String resourceGroupName, String accountName, String applicationName);
/**
* Gets information about the specified application.
@@ -108,20 +94,18 @@ Response getWithResponse(
String resourceGroupName, String accountName, String applicationName, Context context);
/**
- * Updates settings for the specified application.
+ * 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 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.
+ * @return information about the specified application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner update(
- String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters);
+ ApplicationInner get(String resourceGroupName, String accountName, String applicationName);
/**
* Updates settings for the specified application.
@@ -144,6 +128,22 @@ Response updateWithResponse(
ApplicationInner parameters,
Context context);
+ /**
+ * 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 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);
+
/**
* Lists all of the applications in the specified account.
*
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 1b93fc0fbd75..c4dcc953b7bb 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
@@ -104,13 +104,15 @@ BatchAccountInner create(
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @param parameters Additional parameters for account update.
+ * @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 Azure Batch account.
+ * @return contains information about an Azure Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchAccountInner update(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters);
+ Response updateWithResponse(
+ String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters, Context context);
/**
* Updates the properties of an existing Batch account.
@@ -118,15 +120,13 @@ BatchAccountInner create(
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @param parameters Additional parameters for account update.
- * @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 Azure Batch account along with {@link Response}.
+ * @return contains information about an Azure Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters, Context context);
+ BatchAccountInner update(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters);
/**
* Deletes the specified Batch account.
@@ -185,28 +185,28 @@ Response updateWithResponse(
*
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account.
+ * @return information about the specified Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchAccountInner getByResourceGroup(String resourceGroupName, String accountName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context);
/**
* Gets information about 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 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}.
+ * @return information about the specified Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String accountName, Context context);
+ BatchAccountInner getByResourceGroup(String resourceGroupName, String accountName);
/**
* Gets information about the Batch accounts associated with the subscription.
@@ -265,12 +265,15 @@ Response getByResourceGroupWithResponse(
*
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void synchronizeAutoStorageKeys(String resourceGroupName, String accountName);
+ Response synchronizeAutoStorageKeysWithResponse(
+ String resourceGroupName, String accountName, Context context);
/**
* Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage
@@ -278,18 +281,17 @@ Response getByResourceGroupWithResponse(
*
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response synchronizeAutoStorageKeysWithResponse(
- String resourceGroupName, String accountName, Context context);
+ void synchronizeAutoStorageKeys(String resourceGroupName, String accountName);
/**
- * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
+ * Regenerates the specified account key for the Batch account.
+ *
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
* 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, regenerating the keys will
* fail.
@@ -297,17 +299,20 @@ Response synchronizeAutoStorageKeysWithResponse(
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @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.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a set of Azure Batch account keys.
+ * @return a set of Azure Batch account keys along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchAccountKeysInner regenerateKey(
- String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters);
+ Response regenerateKeyWithResponse(
+ String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters, Context context);
/**
- * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
+ * Regenerates the specified account key for the Batch account.
+ *
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
* 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, regenerating the keys will
* fail.
@@ -315,46 +320,49 @@ BatchAccountKeysInner regenerateKey(
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @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.
* @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 a set of Azure Batch account keys.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response regenerateKeyWithResponse(
- String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters, Context context);
+ BatchAccountKeysInner regenerateKey(
+ String resourceGroupName, String accountName, BatchAccountRegenerateKeyParameters parameters);
/**
- * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
+ * Gets the account keys for the specified Batch account.
+ *
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
* 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 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.
+ * @return a set of Azure Batch account keys along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchAccountKeysInner getKeys(String resourceGroupName, String accountName);
+ Response getKeysWithResponse(String resourceGroupName, String accountName, Context context);
/**
- * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
+ * Gets the account keys for the specified Batch account.
+ *
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
* 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 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 a set of Azure Batch account keys.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getKeysWithResponse(String resourceGroupName, String accountName, Context context);
+ BatchAccountKeysInner getKeys(String resourceGroupName, String accountName);
/**
* Gets information about the detectors available for a given Batch account.
@@ -391,13 +399,15 @@ Response regenerateKeyWithResponse(
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @param detectorId The name of the detector.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the given detector for a given Batch account.
+ * @return information about the given detector for a given Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DetectorResponseInner getDetector(String resourceGroupName, String accountName, String detectorId);
+ Response getDetectorWithResponse(
+ String resourceGroupName, String accountName, String detectorId, Context context);
/**
* Gets information about the given detector for a given Batch account.
@@ -405,15 +415,13 @@ Response regenerateKeyWithResponse(
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @param detectorId The name of the detector.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the given detector for a given Batch account along with {@link Response}.
+ * @return information about the given detector for a given Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getDetectorWithResponse(
- String resourceGroupName, String accountName, String detectorId, Context context);
+ 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
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java
index 744baa622a1f..d121e71133c1 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/CertificatesClient.java
@@ -22,6 +22,9 @@ 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.
@@ -35,6 +38,9 @@ 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.
* @param maxresults The maximum number of items to return in the response.
@@ -60,99 +66,114 @@ PagedIterable listByBatchAccount(
/**
* 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)
- CertificateInner create(
+ CertificatesCreateResponse createWithResponse(
String resourceGroupName,
String accountName,
String certificateName,
- CertificateCreateOrUpdateParameters parameters);
+ 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.
- * @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(
+ CertificateInner create(
String resourceGroupName,
String accountName,
String certificateName,
- CertificateCreateOrUpdateParameters parameters,
- String ifMatch,
- String ifNoneMatch,
- Context context);
+ 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)
- CertificateInner update(
+ CertificatesUpdateResponse updateWithResponse(
String resourceGroupName,
String accountName,
String certificateName,
- CertificateCreateOrUpdateParameters parameters);
+ 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.
- * @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(
+ CertificateInner update(
String resourceGroupName,
String accountName,
String certificateName,
- CertificateCreateOrUpdateParameters parameters,
- String ifMatch,
- Context context);
+ 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
@@ -169,6 +190,9 @@ SyncPoller, Void> beginDelete(
/**
* 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
@@ -186,6 +210,9 @@ SyncPoller, Void> beginDelete(
/**
* 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
@@ -200,6 +227,9 @@ SyncPoller, Void> beginDelete(
/**
* 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
@@ -215,72 +245,88 @@ SyncPoller, Void> beginDelete(
/**
* 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 information about the specified certificate.
+ * @return contains information about a certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CertificateInner get(String resourceGroupName, String accountName, String certificateName);
+ 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.
- * @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 certificate.
+ * @return contains information about a certificate.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CertificatesGetResponse getWithResponse(
- String resourceGroupName, String accountName, String certificateName, Context context);
+ CertificateInner get(String resourceGroupName, String accountName, String certificateName);
/**
- * If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate
+ * 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)
- CertificateInner cancelDeletion(String resourceGroupName, String accountName, String certificateName);
+ CertificatesCancelDeletionResponse cancelDeletionWithResponse(
+ String resourceGroupName, String accountName, String certificateName, Context context);
/**
- * If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate
+ * 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);
+ 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 763ccd23e0a1..9fe7d1c18880 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
@@ -20,27 +20,27 @@ public interface LocationsClient {
* Gets the Batch service quotas for the specified subscription at the given location.
*
* @param locationName The region for which to retrieve Batch service quotas.
+ * @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 Batch service quotas for the specified subscription at the given location.
+ * @return the Batch service quotas for the specified subscription at the given location along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- BatchLocationQuotaInner getQuotas(String locationName);
+ Response getQuotasWithResponse(String locationName, Context context);
/**
* Gets the Batch service quotas for the specified subscription at the given location.
*
* @param locationName The region for which to retrieve Batch service quotas.
- * @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 Batch service quotas for the specified subscription at the given location along with {@link
- * Response}.
+ * @return the Batch service quotas for the specified subscription at the given location.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getQuotasWithResponse(String locationName, Context context);
+ BatchLocationQuotaInner getQuotas(String locationName);
/**
* Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
@@ -107,27 +107,27 @@ PagedIterable listSupportedCloudServiceSkus(
*
* @param locationName The desired region for the name check.
* @param parameters Properties needed to check the availability of a 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 the CheckNameAvailability operation response.
+ * @return the CheckNameAvailability operation response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CheckNameAvailabilityResultInner checkNameAvailability(
- String locationName, CheckNameAvailabilityParameters parameters);
+ Response checkNameAvailabilityWithResponse(
+ String locationName, CheckNameAvailabilityParameters parameters, Context context);
/**
* Checks whether the Batch account name is available in the specified region.
*
* @param locationName The desired region for the name check.
* @param parameters Properties needed to check the availability of a 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 the CheckNameAvailability operation response along with {@link Response}.
+ * @return the CheckNameAvailability operation response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkNameAvailabilityWithResponse(
- String locationName, CheckNameAvailabilityParameters parameters, Context context);
+ CheckNameAvailabilityResultInner checkNameAvailability(
+ String locationName, CheckNameAvailabilityParameters parameters);
}
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 6f6d9774380b..7f5cf73475b7 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
@@ -60,21 +60,6 @@ PagedIterable listByBatchAccount(
String filter,
Context context);
- /**
- * 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 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.
- * @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 pool.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PoolInner create(String resourceGroupName, String accountName, String poolName, PoolInner parameters);
-
/**
* Creates a new pool inside the specified account.
*
@@ -103,20 +88,19 @@ PoolsCreateResponse createWithResponse(
Context context);
/**
- * Updates the properties of an existing pool.
+ * 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 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.
+ * @param parameters Additional parameters for pool 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 pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PoolInner update(String resourceGroupName, String accountName, String poolName, PoolInner parameters);
+ PoolInner create(String resourceGroupName, String accountName, String poolName, PoolInner parameters);
/**
* Updates the properties of an existing pool.
@@ -143,6 +127,22 @@ PoolsUpdateResponse updateWithResponse(
String ifMatch,
Context context);
+ /**
+ * 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 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.
+ * @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 pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PoolInner update(String resourceGroupName, String accountName, String poolName, PoolInner parameters);
+
/**
* Deletes the specified pool.
*
@@ -206,13 +206,14 @@ SyncPoller, Void> beginDelete(
* @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.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PoolInner get(String resourceGroupName, String accountName, String poolName);
+ PoolsGetResponse getWithResponse(String resourceGroupName, String accountName, String poolName, Context context);
/**
* Gets information about the specified pool.
@@ -220,14 +221,13 @@ SyncPoller, Void> beginDelete(
* @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.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PoolsGetResponse getWithResponse(String resourceGroupName, String accountName, String poolName, Context context);
+ PoolInner get(String resourceGroupName, String accountName, String poolName);
/**
* Disables automatic scaling for a pool.
@@ -235,13 +235,15 @@ SyncPoller, Void> beginDelete(
* @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.
* @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 pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PoolInner disableAutoScale(String resourceGroupName, String accountName, String poolName);
+ PoolsDisableAutoScaleResponse disableAutoScaleWithResponse(
+ String resourceGroupName, String accountName, String poolName, Context context);
/**
* Disables automatic scaling for a pool.
@@ -249,18 +251,18 @@ SyncPoller, Void> beginDelete(
* @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.
* @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 pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PoolsDisableAutoScaleResponse disableAutoScaleWithResponse(
- String resourceGroupName, String accountName, String poolName, Context context);
+ PoolInner disableAutoScale(String resourceGroupName, String accountName, String poolName);
/**
- * This does not restore the pool to its previous state before the resize operation: it only stops any further
+ * Stops an ongoing resize operation on the pool.
+ *
+ * This does not restore the pool to its previous state before the resize operation: it only stops any further
* changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number
* of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes
* first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API
@@ -269,16 +271,20 @@ PoolsDisableAutoScaleResponse disableAutoScaleWithResponse(
* @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.
* @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 pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PoolInner stopResize(String resourceGroupName, String accountName, String poolName);
+ PoolsStopResizeResponse stopResizeWithResponse(
+ String resourceGroupName, String accountName, String poolName, Context context);
/**
- * This does not restore the pool to its previous state before the resize operation: it only stops any further
+ * Stops an ongoing resize operation on the pool.
+ *
+ *
This does not restore the pool to its previous state before the resize operation: it only stops any further
* changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number
* of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes
* first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API
@@ -287,13 +293,11 @@ PoolsDisableAutoScaleResponse disableAutoScaleWithResponse(
* @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.
* @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 pool.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PoolsStopResizeResponse stopResizeWithResponse(
- String resourceGroupName, String accountName, String poolName, Context context);
+ PoolInner stopResize(String resourceGroupName, String accountName, String poolName);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateEndpointConnectionsClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateEndpointConnectionsClient.java
index b8c8ab1302e8..f51b95e2a993 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
@@ -51,14 +51,15 @@ PagedIterable listByBatchAccount(
* @param accountName The name of the Batch account.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified private endpoint connection.
+ * @return information about the specified private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String resourceGroupName, String accountName, String privateEndpointConnectionName);
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
/**
* Gets information about the specified private endpoint connection.
@@ -67,15 +68,14 @@ PrivateEndpointConnectionInner get(
* @param accountName The name of the Batch account.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified private endpoint connection along with {@link Response}.
+ * @return information about the specified private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String accountName, String privateEndpointConnectionName);
/**
* Updates the properties of an existing private endpoint connection.
@@ -86,8 +86,6 @@ Response getWithResponse(
* account.
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are supplied will
* be updated, any property not supplied will be unchanged.
- * @param ifMatch The state (ETag) version of the private endpoint connection to update. This value can be omitted
- * or set to "*" to apply the operation unconditionally.
* @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.
@@ -98,8 +96,7 @@ SyncPoller, PrivateEndpointConnection
String resourceGroupName,
String accountName,
String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters,
- String ifMatch);
+ PrivateEndpointConnectionInner parameters);
/**
* Updates the properties of an existing private endpoint connection.
@@ -136,8 +133,6 @@ SyncPoller, PrivateEndpointConnection
* account.
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are supplied will
* be updated, any property not supplied will be unchanged.
- * @param ifMatch The state (ETag) version of the private endpoint connection to update. This value can be omitted
- * or set to "*" to apply the operation unconditionally.
* @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.
@@ -148,8 +143,7 @@ PrivateEndpointConnectionInner update(
String resourceGroupName,
String accountName,
String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters,
- String ifMatch);
+ PrivateEndpointConnectionInner parameters);
/**
* Updates the properties of an existing private endpoint connection.
@@ -160,6 +154,9 @@ PrivateEndpointConnectionInner update(
* account.
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are supplied will
* be updated, any property not supplied will be unchanged.
+ * @param ifMatch The state (ETag) version of the private endpoint connection 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.
@@ -170,31 +167,69 @@ PrivateEndpointConnectionInner update(
String resourceGroupName,
String accountName,
String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters);
+ PrivateEndpointConnectionInner parameters,
+ String ifMatch,
+ Context context);
/**
- * Updates the properties of an existing private endpoint connection.
+ * Deletes the specified private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param accountName The name of the Batch account.
+ * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
+ * account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection.
*
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
* account.
- * @param parameters PrivateEndpointConnection properties that should be updated. Properties that are supplied will
- * be updated, any property not supplied will be unchanged.
- * @param ifMatch The state (ETag) version of the private endpoint connection 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 private link resource.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes the specified private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param accountName The name of the Batch account.
+ * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
+ * account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner update(
- String resourceGroupName,
- String accountName,
- String privateEndpointConnectionName,
- PrivateEndpointConnectionInner parameters,
- String ifMatch,
- Context context);
+ void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group that contains the Batch account.
+ * @param accountName The name of the Batch account.
+ * @param privateEndpointConnectionName The private endpoint connection name. This must be unique within the
+ * account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/PrivateLinkResourcesClient.java
index 0098137a7005..05e4d92798ee 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
@@ -48,13 +48,15 @@ PagedIterable listByBatchAccount(
* @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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified private link resource.
+ * @return information about the specified private link resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceInner get(String resourceGroupName, String accountName, String privateLinkResourceName);
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String privateLinkResourceName, Context context);
/**
* Gets information about the specified private link resource.
@@ -62,13 +64,11 @@ PagedIterable listByBatchAccount(
* @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.
* @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 information about the specified private link resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String accountName, String privateLinkResourceName, Context context);
+ PrivateLinkResourceInner get(String resourceGroupName, String accountName, String privateLinkResourceName);
}
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 1a845c33df2a..b3b7158458ea 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
@@ -23,6 +23,10 @@ public final class ApplicationInner extends ProxyResource {
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /** Creates an instance of ApplicationInner class. */
+ public ApplicationInner() {
+ }
+
/**
* Get the innerProperties property: The properties associated with the Application.
*
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 a6565f7c1ea4..2c41c911671c 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
@@ -4,14 +4,14 @@
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.resourcemanager.batch.models.PackageState;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** An application package which represents a particular version of an application. */
-@Fluent
+@Immutable
public final class ApplicationPackageInner extends ProxyResource {
/*
* The properties associated with the Application Package.
@@ -25,6 +25,10 @@ public final class ApplicationPackageInner extends ProxyResource {
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /** Creates an instance of ApplicationPackageInner class. */
+ public ApplicationPackageInner() {
+ }
+
/**
* Get the innerProperties property: The properties associated with the Application Package.
*
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 41a41ead2fe0..92fb6eaae0de 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
@@ -37,12 +37,15 @@ public final class ApplicationPackageProperties {
private OffsetDateTime storageUrlExpiry;
/*
- * The time at which the package was last activated, if the package is
- * active.
+ * The time at which the package was last activated, if the package is active.
*/
@JsonProperty(value = "lastActivationTime", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastActivationTime;
+ /** Creates an instance of ApplicationPackageProperties class. */
+ public ApplicationPackageProperties() {
+ }
+
/**
* Get the state property: The current state of the application package.
*
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 bf2b3f294c80..4fc7f8d1eb7a 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
@@ -17,20 +17,22 @@ public final class ApplicationProperties {
private String displayName;
/*
- * A value indicating whether packages within the application may be
- * overwritten using the same version string.
+ * A value indicating whether packages within the application may be overwritten using the same version string.
*/
@JsonProperty(value = "allowUpdates")
private Boolean allowUpdates;
/*
- * The package to use if a client requests the application but does not
- * specify a version. This property can only be set to the name of an
- * existing package.
+ * The package to use if a client requests the application but does not specify a version. This property can only
+ * be set to the name of an existing package.
*/
@JsonProperty(value = "defaultVersion")
private String defaultVersion;
+ /** Creates an instance of ApplicationProperties class. */
+ public ApplicationProperties() {
+ }
+
/**
* Get the displayName property: The display name for the application.
*
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountCreateProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountCreateProperties.java
index 684f527d4e8b..339d140aad39 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountCreateProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountCreateProperties.java
@@ -9,6 +9,7 @@
import com.azure.resourcemanager.batch.models.AutoStorageBaseProperties;
import com.azure.resourcemanager.batch.models.EncryptionProperties;
import com.azure.resourcemanager.batch.models.KeyVaultReference;
+import com.azure.resourcemanager.batch.models.NetworkProfile;
import com.azure.resourcemanager.batch.models.PoolAllocationMode;
import com.azure.resourcemanager.batch.models.PublicNetworkAccessType;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -24,11 +25,9 @@ public final class BatchAccountCreateProperties {
private AutoStorageBaseProperties autoStorage;
/*
- * The pool allocation mode also affects how clients may authenticate to
- * the Batch Service API. If the mode is BatchService, clients may
- * authenticate using access keys or Azure Active Directory. If the mode is
- * UserSubscription, clients must use Azure Active Directory. The default
- * is BatchService.
+ * The pool allocation mode also affects how clients may authenticate to the Batch Service API. If the mode is
+ * BatchService, clients may authenticate using access keys or Azure Active Directory. If the mode is
+ * UserSubscription, clients must use Azure Active Directory. The default is BatchService.
*/
@JsonProperty(value = "poolAllocationMode")
private PoolAllocationMode poolAllocationMode;
@@ -46,21 +45,29 @@ public final class BatchAccountCreateProperties {
private PublicNetworkAccessType publicNetworkAccess;
/*
- * 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.
+ * The network profile only takes effect when publicNetworkAccess is enabled.
+ */
+ @JsonProperty(value = "networkProfile")
+ private NetworkProfile networkProfile;
+
+ /*
+ * Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a
+ * Microsoft managed key. For additional control, a customer-managed key can be used instead.
*/
@JsonProperty(value = "encryption")
private EncryptionProperties encryption;
/*
- * List of allowed authentication modes for the Batch account that can be
- * used to authenticate with the data plane. This does not affect
- * authentication with the control plane.
+ * List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane.
+ * This does not affect authentication with the control plane.
*/
@JsonProperty(value = "allowedAuthenticationModes")
private List allowedAuthenticationModes;
+ /** Creates an instance of BatchAccountCreateProperties class. */
+ public BatchAccountCreateProperties() {
+ }
+
/**
* Get the autoStorage property: The properties related to the auto-storage account.
*
@@ -145,6 +152,26 @@ public BatchAccountCreateProperties withPublicNetworkAccess(PublicNetworkAccessT
return this;
}
+ /**
+ * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ *
+ * @return the networkProfile value.
+ */
+ public NetworkProfile networkProfile() {
+ return this.networkProfile;
+ }
+
+ /**
+ * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ *
+ * @param networkProfile the networkProfile value to set.
+ * @return the BatchAccountCreateProperties object itself.
+ */
+ public BatchAccountCreateProperties withNetworkProfile(NetworkProfile networkProfile) {
+ this.networkProfile = networkProfile;
+ return this;
+ }
+
/**
* Get the encryption property: Configures how customer data is encrypted inside the Batch account. By default,
* accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used
@@ -204,6 +231,9 @@ public void validate() {
if (keyVaultReference() != null) {
keyVaultReference().validate();
}
+ if (networkProfile() != null) {
+ networkProfile().validate();
+ }
if (encryption() != null) {
encryption().validate();
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountInner.java
index cbe706f1a279..3670348caf78 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountInner.java
@@ -11,6 +11,7 @@
import com.azure.resourcemanager.batch.models.BatchAccountIdentity;
import com.azure.resourcemanager.batch.models.EncryptionProperties;
import com.azure.resourcemanager.batch.models.KeyVaultReference;
+import com.azure.resourcemanager.batch.models.NetworkProfile;
import com.azure.resourcemanager.batch.models.PoolAllocationMode;
import com.azure.resourcemanager.batch.models.ProvisioningState;
import com.azure.resourcemanager.batch.models.PublicNetworkAccessType;
@@ -34,6 +35,10 @@ public final class BatchAccountInner extends Resource {
@JsonProperty(value = "identity")
private BatchAccountIdentity identity;
+ /** Creates an instance of BatchAccountInner class. */
+ public BatchAccountInner() {
+ }
+
/**
* Get the innerProperties property: The properties associated with the account.
*
@@ -86,6 +91,16 @@ public String accountEndpoint() {
return this.innerProperties() == null ? null : this.innerProperties().accountEndpoint();
}
+ /**
+ * Get the nodeManagementEndpoint property: The endpoint used by compute node to connect to the Batch node
+ * management service.
+ *
+ * @return the nodeManagementEndpoint value.
+ */
+ public String nodeManagementEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().nodeManagementEndpoint();
+ }
+
/**
* Get the provisioningState property: The provisioned state of the resource.
*
@@ -122,6 +137,43 @@ public PublicNetworkAccessType publicNetworkAccess() {
return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
}
+ /**
+ * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the BatchAccountInner object itself.
+ */
+ public BatchAccountInner withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BatchAccountProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /**
+ * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ *
+ * @return the networkProfile value.
+ */
+ public NetworkProfile networkProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().networkProfile();
+ }
+
+ /**
+ * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ *
+ * @param networkProfile the networkProfile value to set.
+ * @return the BatchAccountInner object itself.
+ */
+ public BatchAccountInner withNetworkProfile(NetworkProfile networkProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BatchAccountProperties();
+ }
+ this.innerProperties().withNetworkProfile(networkProfile);
+ return this;
+ }
+
/**
* Get the privateEndpointConnections property: List of private endpoint connections associated with the Batch
* account.
@@ -154,8 +206,10 @@ public EncryptionProperties encryption() {
}
/**
- * 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.
+ * 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.
*/
@@ -164,8 +218,10 @@ public Integer dedicatedCoreQuota() {
}
/**
- * 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.
+ * 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.
*/
@@ -186,12 +242,11 @@ public List dedicatedCoreQuotaPerVMFamily() {
/**
* Get the dedicatedCoreQuotaPerVMFamilyEnforced property: A value indicating whether core quotas per Virtual
- * Machine family are enforced for this account Batch is transitioning its core quota system for dedicated cores to
- * be enforced per Virtual Machine family. During this transitional phase, the dedicated core quota per Virtual
- * Machine family may not yet be enforced. If this flag is false, dedicated core quota is enforced via the old
- * dedicatedCoreQuota property on the account and does not consider Virtual Machine family. If this flag is true,
- * dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily property on the account, and the old
- * dedicatedCoreQuota does not apply.
+ * Machine family are enforced for this account
+ *
+ * If this flag is true, dedicated core quota is enforced via both the dedicatedCoreQuotaPerVMFamily and
+ * dedicatedCoreQuota properties on the account. If this flag is false, dedicated core quota is enforced only via
+ * the dedicatedCoreQuota property on the account and does not consider Virtual Machine family.
*
* @return the dedicatedCoreQuotaPerVMFamilyEnforced value.
*/
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountKeysInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountKeysInner.java
index 325e21fd41e5..6e90760314fb 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
@@ -28,6 +28,10 @@ public final class BatchAccountKeysInner {
@JsonProperty(value = "secondary", access = JsonProperty.Access.WRITE_ONLY)
private String secondary;
+ /** Creates an instance of BatchAccountKeysInner class. */
+ public BatchAccountKeysInner() {
+ }
+
/**
* Get the accountName property: The Batch account name.
*
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountProperties.java
index 55f1568e1e0e..a42b0b936b8e 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountProperties.java
@@ -4,11 +4,12 @@
package com.azure.resourcemanager.batch.fluent.models;
-import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.batch.models.AuthenticationMode;
import com.azure.resourcemanager.batch.models.AutoStorageProperties;
import com.azure.resourcemanager.batch.models.EncryptionProperties;
import com.azure.resourcemanager.batch.models.KeyVaultReference;
+import com.azure.resourcemanager.batch.models.NetworkProfile;
import com.azure.resourcemanager.batch.models.PoolAllocationMode;
import com.azure.resourcemanager.batch.models.ProvisioningState;
import com.azure.resourcemanager.batch.models.PublicNetworkAccessType;
@@ -17,7 +18,7 @@
import java.util.List;
/** Account specific properties. */
-@Immutable
+@Fluent
public final class BatchAccountProperties {
/*
* The account endpoint used to interact with the Batch service.
@@ -25,6 +26,12 @@ public final class BatchAccountProperties {
@JsonProperty(value = "accountEndpoint", access = JsonProperty.Access.WRITE_ONLY)
private String accountEndpoint;
+ /*
+ * The endpoint used by compute node to connect to the Batch node management service.
+ */
+ @JsonProperty(value = "nodeManagementEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String nodeManagementEndpoint;
+
/*
* The provisioned state of the resource
*/
@@ -46,9 +53,15 @@ public final class BatchAccountProperties {
/*
* If not specified, the default value is 'enabled'.
*/
- @JsonProperty(value = "publicNetworkAccess", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccessType publicNetworkAccess;
+ /*
+ * The network profile only takes effect when publicNetworkAccess is enabled.
+ */
+ @JsonProperty(value = "networkProfile")
+ private NetworkProfile networkProfile;
+
/*
* List of private endpoint connections associated with the Batch account
*/
@@ -56,55 +69,49 @@ public final class BatchAccountProperties {
private List privateEndpointConnections;
/*
- * Contains information about the auto-storage account associated with a
- * Batch account.
+ * Contains information about the auto-storage account associated with a Batch account.
*/
@JsonProperty(value = "autoStorage", access = JsonProperty.Access.WRITE_ONLY)
private AutoStorageProperties autoStorage;
/*
- * 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.
+ * 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.
*/
@JsonProperty(value = "encryption", access = JsonProperty.Access.WRITE_ONLY)
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.
+ * 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.
*/
@JsonProperty(value = "dedicatedCoreQuota", access = JsonProperty.Access.WRITE_ONLY)
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.
+ * The Spot/low-priority core quota for the Batch account.
+ *
+ * For accounts with PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value
+ * is not returned.
*/
@JsonProperty(value = "lowPriorityCoreQuota", access = JsonProperty.Access.WRITE_ONLY)
private Integer lowPriorityCoreQuota;
/*
- * A list of the dedicated core quota per Virtual Machine family for the
- * Batch account. For accounts with PoolAllocationMode set to
- * UserSubscription, quota is managed on the subscription so this value is
- * not returned.
+ * A list of the dedicated core quota per Virtual Machine family for the Batch account. For accounts with
+ * PoolAllocationMode set to UserSubscription, quota is managed on the subscription so this value is not returned.
*/
@JsonProperty(value = "dedicatedCoreQuotaPerVMFamily", access = JsonProperty.Access.WRITE_ONLY)
private List dedicatedCoreQuotaPerVMFamily;
/*
- * A value indicating whether core quotas per Virtual Machine family are
- * enforced for this account Batch is transitioning its core quota system
- * for dedicated cores to be enforced per Virtual Machine family. During
- * this transitional phase, the dedicated core quota per Virtual Machine
- * family may not yet be enforced. If this flag is false, dedicated core
- * quota is enforced via the old dedicatedCoreQuota property on the account
- * and does not consider Virtual Machine family. If this flag is true,
- * dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily
- * property on the account, and the old dedicatedCoreQuota does not apply.
+ * 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.
*/
@JsonProperty(value = "dedicatedCoreQuotaPerVMFamilyEnforced", access = JsonProperty.Access.WRITE_ONLY)
private Boolean dedicatedCoreQuotaPerVMFamilyEnforced;
@@ -122,13 +129,16 @@ public final class BatchAccountProperties {
private Integer activeJobAndJobScheduleQuota;
/*
- * List of allowed authentication modes for the Batch account that can be
- * used to authenticate with the data plane. This does not affect
- * authentication with the control plane.
+ * List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane.
+ * This does not affect authentication with the control plane.
*/
@JsonProperty(value = "allowedAuthenticationModes", access = JsonProperty.Access.WRITE_ONLY)
private List allowedAuthenticationModes;
+ /** Creates an instance of BatchAccountProperties class. */
+ public BatchAccountProperties() {
+ }
+
/**
* Get the accountEndpoint property: The account endpoint used to interact with the Batch service.
*
@@ -138,6 +148,16 @@ public String accountEndpoint() {
return this.accountEndpoint;
}
+ /**
+ * Get the nodeManagementEndpoint property: The endpoint used by compute node to connect to the Batch node
+ * management service.
+ *
+ * @return the nodeManagementEndpoint value.
+ */
+ public String nodeManagementEndpoint() {
+ return this.nodeManagementEndpoint;
+ }
+
/**
* Get the provisioningState property: The provisioned state of the resource.
*
@@ -174,6 +194,37 @@ public PublicNetworkAccessType publicNetworkAccess() {
return this.publicNetworkAccess;
}
+ /**
+ * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the BatchAccountProperties object itself.
+ */
+ public BatchAccountProperties withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ *
+ * @return the networkProfile value.
+ */
+ public NetworkProfile networkProfile() {
+ return this.networkProfile;
+ }
+
+ /**
+ * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ *
+ * @param networkProfile the networkProfile value to set.
+ * @return the BatchAccountProperties object itself.
+ */
+ public BatchAccountProperties withNetworkProfile(NetworkProfile networkProfile) {
+ this.networkProfile = networkProfile;
+ return this;
+ }
+
/**
* Get the privateEndpointConnections property: List of private endpoint connections associated with the Batch
* account.
@@ -206,8 +257,10 @@ public EncryptionProperties encryption() {
}
/**
- * 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.
+ * 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.
*/
@@ -216,8 +269,10 @@ public Integer dedicatedCoreQuota() {
}
/**
- * 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.
+ * 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.
*/
@@ -238,12 +293,11 @@ public List dedicatedCoreQuotaPerVMFamily() {
/**
* Get the dedicatedCoreQuotaPerVMFamilyEnforced property: A value indicating whether core quotas per Virtual
- * Machine family are enforced for this account Batch is transitioning its core quota system for dedicated cores to
- * be enforced per Virtual Machine family. During this transitional phase, the dedicated core quota per Virtual
- * Machine family may not yet be enforced. If this flag is false, dedicated core quota is enforced via the old
- * dedicatedCoreQuota property on the account and does not consider Virtual Machine family. If this flag is true,
- * dedicated core quota is enforced via the dedicatedCoreQuotaPerVMFamily property on the account, and the old
- * dedicatedCoreQuota does not apply.
+ * Machine family are enforced for this account
+ *
+ * If this flag is true, dedicated core quota is enforced via both the dedicatedCoreQuotaPerVMFamily and
+ * dedicatedCoreQuota properties on the account. If this flag is false, dedicated core quota is enforced only via
+ * the dedicatedCoreQuota property on the account and does not consider Virtual Machine family.
*
* @return the dedicatedCoreQuotaPerVMFamilyEnforced value.
*/
@@ -288,6 +342,9 @@ public void validate() {
if (keyVaultReference() != null) {
keyVaultReference().validate();
}
+ if (networkProfile() != null) {
+ networkProfile().validate();
+ }
if (privateEndpointConnections() != null) {
privateEndpointConnections().forEach(e -> e.validate());
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java
index 236461db87df..32627301433c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchAccountUpdateProperties.java
@@ -8,6 +8,8 @@
import com.azure.resourcemanager.batch.models.AuthenticationMode;
import com.azure.resourcemanager.batch.models.AutoStorageBaseProperties;
import com.azure.resourcemanager.batch.models.EncryptionProperties;
+import com.azure.resourcemanager.batch.models.NetworkProfile;
+import com.azure.resourcemanager.batch.models.PublicNetworkAccessType;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -21,21 +23,35 @@ public final class BatchAccountUpdateProperties {
private AutoStorageBaseProperties autoStorage;
/*
- * 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.
+ * 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.
*/
@JsonProperty(value = "encryption")
private EncryptionProperties encryption;
/*
- * List of allowed authentication modes for the Batch account that can be
- * used to authenticate with the data plane. This does not affect
- * authentication with the control plane.
+ * List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane.
+ * This does not affect authentication with the control plane.
*/
@JsonProperty(value = "allowedAuthenticationModes")
private List allowedAuthenticationModes;
+ /*
+ * If not specified, the default value is 'enabled'.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccessType publicNetworkAccess;
+
+ /*
+ * The network profile only takes effect when publicNetworkAccess is enabled.
+ */
+ @JsonProperty(value = "networkProfile")
+ private NetworkProfile networkProfile;
+
+ /** Creates an instance of BatchAccountUpdateProperties class. */
+ public BatchAccountUpdateProperties() {
+ }
+
/**
* Get the autoStorage property: The properties related to the auto-storage account.
*
@@ -103,6 +119,46 @@ public BatchAccountUpdateProperties withAllowedAuthenticationModes(
return this;
}
+ /**
+ * Get the publicNetworkAccess property: If not specified, the default value is 'enabled'.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccessType publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: If not specified, the default value is 'enabled'.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the BatchAccountUpdateProperties object itself.
+ */
+ public BatchAccountUpdateProperties withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ *
+ * @return the networkProfile value.
+ */
+ public NetworkProfile networkProfile() {
+ return this.networkProfile;
+ }
+
+ /**
+ * Set the networkProfile property: The network profile only takes effect when publicNetworkAccess is enabled.
+ *
+ * @param networkProfile the networkProfile value to set.
+ * @return the BatchAccountUpdateProperties object itself.
+ */
+ public BatchAccountUpdateProperties withNetworkProfile(NetworkProfile networkProfile) {
+ this.networkProfile = networkProfile;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -115,5 +171,8 @@ public void validate() {
if (encryption() != null) {
encryption().validate();
}
+ if (networkProfile() != null) {
+ networkProfile().validate();
+ }
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchLocationQuotaInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/BatchLocationQuotaInner.java
index f891e5839531..286d690dc607 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
@@ -11,12 +11,15 @@
@Immutable
public final class BatchLocationQuotaInner {
/*
- * The number of Batch accounts that may be created under the subscription
- * in the specified region.
+ * The number of Batch accounts that may be created under the subscription in the specified region.
*/
@JsonProperty(value = "accountQuota", access = JsonProperty.Access.WRITE_ONLY)
private Integer accountQuota;
+ /** Creates an instance of BatchLocationQuotaInner class. */
+ public BatchLocationQuotaInner() {
+ }
+
/**
* Get the accountQuota property: The number of Batch accounts that may be created under the subscription in the
* specified region.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateCreateOrUpdateProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateCreateOrUpdateProperties.java
index 11640e5dba46..b45ca84657d5 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateCreateOrUpdateProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/CertificateCreateOrUpdateProperties.java
@@ -14,21 +14,29 @@
@Fluent
public final class CertificateCreateOrUpdateProperties extends CertificateBaseProperties {
/*
- * The base64-encoded contents of the certificate. The maximum size is
- * 10KB.
+ * The base64-encoded contents of the certificate.
+ *
+ * The maximum size is 10KB.
*/
@JsonProperty(value = "data", required = true)
private String data;
/*
- * The password to access the certificate's private key. This must not be
- * specified if the certificate format is Cer.
+ * The password to access the certificate's private key.
+ *
+ * This must not be specified if the certificate format is Cer.
*/
@JsonProperty(value = "password")
private String password;
+ /** Creates an instance of CertificateCreateOrUpdateProperties class. */
+ public CertificateCreateOrUpdateProperties() {
+ }
+
/**
- * Get the data property: The base64-encoded contents of the certificate. The maximum size is 10KB.
+ * Get the data property: The base64-encoded contents of the certificate.
+ *
+ * The maximum size is 10KB.
*
* @return the data value.
*/
@@ -37,7 +45,9 @@ public String data() {
}
/**
- * Set the data property: The base64-encoded contents of the certificate. The maximum size is 10KB.
+ * Set the data property: The base64-encoded contents of the certificate.
+ *
+ *
The maximum size is 10KB.
*
* @param data the data value to set.
* @return the CertificateCreateOrUpdateProperties object itself.
@@ -48,8 +58,9 @@ public CertificateCreateOrUpdateProperties withData(String data) {
}
/**
- * Get the password property: The password to access the certificate's private key. This must not be specified if
- * the certificate format is Cer.
+ * Get the password property: The password to access the certificate's private key.
+ *
+ *
This must not be specified if the certificate format is Cer.
*
* @return the password value.
*/
@@ -58,8 +69,9 @@ public String password() {
}
/**
- * Set the password property: The password to access the certificate's private key. This must not be specified if
- * the certificate format is Cer.
+ * Set the password property: The password to access the certificate's private key.
+ *
+ *
This must not be specified if the certificate format is Cer.
*
* @param password the password value to set.
* @return the CertificateCreateOrUpdateProperties object itself.
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
index 96d734b1c92b..67c5e3fd29e8 100644
--- 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
@@ -27,6 +27,10 @@ public final class CertificateInner extends ProxyResource {
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /** Creates an instance of CertificateInner class. */
+ public CertificateInner() {
+ }
+
/**
* Get the innerProperties property: The properties associated with the certificate.
*
@@ -102,8 +106,9 @@ public DeleteCertificateError deleteCertificateError() {
}
/**
- * Get the thumbprintAlgorithm property: The algorithm of the certificate thumbprint. This must match the first
- * portion of the certificate name. Currently required to be 'SHA1'.
+ * Get the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.
+ *
+ *
This must match the first portion of the certificate name. Currently required to be 'SHA1'.
*
* @return the thumbprintAlgorithm value.
*/
@@ -112,8 +117,9 @@ public String thumbprintAlgorithm() {
}
/**
- * Set the thumbprintAlgorithm property: The algorithm of the certificate thumbprint. This must match the first
- * portion of the certificate name. Currently required to be 'SHA1'.
+ * Set the thumbprintAlgorithm property: The algorithm of the certificate thumbprint.
+ *
+ *
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.
@@ -127,7 +133,9 @@ public CertificateInner withThumbprintAlgorithm(String thumbprintAlgorithm) {
}
/**
- * Get the thumbprint property: The thumbprint of the certificate. This must match the thumbprint from the name.
+ * Get the thumbprint property: The thumbprint of the certificate.
+ *
+ *
This must match the thumbprint from the name.
*
* @return the thumbprint value.
*/
@@ -136,7 +144,9 @@ public String thumbprint() {
}
/**
- * Set the thumbprint property: The thumbprint of the certificate. This must match the thumbprint from the name.
+ * Set the thumbprint property: The thumbprint of the certificate.
+ *
+ *
This must match the thumbprint from the name.
*
* @param thumbprint the thumbprint value to set.
* @return the CertificateInner object itself.
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
index d9759b651634..18e667d1c6a9 100644
--- 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
@@ -46,12 +46,15 @@ public final class CertificateProperties extends CertificateBaseProperties {
private String publicData;
/*
- * This is only returned when the certificate provisioningState is
- * 'Failed'.
+ * This is only returned when the certificate provisioningState is 'Failed'.
*/
@JsonProperty(value = "deleteCertificateError", access = JsonProperty.Access.WRITE_ONLY)
private DeleteCertificateError deleteCertificateError;
+ /** Creates an instance of CertificateProperties class. */
+ public CertificateProperties() {
+ }
+
/**
* Get the provisioningState property: The provisioningState property.
*
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 3489a20e5646..f2cd488afebe 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
@@ -12,16 +12,15 @@
@Immutable
public final class CheckNameAvailabilityResultInner {
/*
- * Gets a boolean value that indicates whether the name is available for
- * you to use. If true, the name is available. If false, the name has
- * already been taken or invalid and cannot be used.
+ * Gets a boolean value that indicates whether the name is available for you to use. If true, the name is
+ * available. If false, the name has already been taken or invalid and cannot be used.
*/
@JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
private Boolean nameAvailable;
/*
- * Gets the reason that a Batch account name could not be used. The Reason
- * element is only returned if NameAvailable is false.
+ * Gets the reason that a Batch account name could not be used. The Reason element is only returned if
+ * NameAvailable is false.
*/
@JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
private NameAvailabilityReason reason;
@@ -32,6 +31,10 @@ public final class CheckNameAvailabilityResultInner {
@JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
private String message;
+ /** Creates an instance of CheckNameAvailabilityResultInner class. */
+ public CheckNameAvailabilityResultInner() {
+ }
+
/**
* Get the nameAvailable property: Gets a boolean value that indicates whether the name is available for you to use.
* If true, the name is available. If false, the name has already been taken or invalid and cannot be used.
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 55095dff8cd7..91968c30fc45 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
@@ -23,6 +23,10 @@ public final class DetectorResponseInner extends ProxyResource {
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /** Creates an instance of DetectorResponseInner class. */
+ public DetectorResponseInner() {
+ }
+
/**
* Get the innerProperties property: The properties associated with the detector.
*
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 ece5ad5dce80..ba7ee8d73243 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
@@ -16,6 +16,10 @@ public final class DetectorResponseProperties {
@JsonProperty(value = "value")
private String value;
+ /** Creates an instance of DetectorResponseProperties class. */
+ public DetectorResponseProperties() {
+ }
+
/**
* Get the value property: A base64 encoded string that represents the content of a detector.
*
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OperationInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OperationInner.java
index 3b1a9430134a..c08ff37033d5 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OperationInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OperationInner.java
@@ -12,8 +12,9 @@
@Fluent
public final class OperationInner {
/*
- * The operation name. This is of the format
- * {provider}/{resource}/{operation}
+ * The operation name.
+ *
+ * This is of the format {provider}/{resource}/{operation}
*/
@JsonProperty(value = "name")
private String name;
@@ -37,13 +38,19 @@ public final class OperationInner {
private String origin;
/*
- * Any object
+ * Properties of the operation.
*/
@JsonProperty(value = "properties")
private Object properties;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
- * Get the name property: The operation name. 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.
*/
@@ -52,7 +59,9 @@ public String name() {
}
/**
- * Set the name property: The operation name. This is of the format {provider}/{resource}/{operation}.
+ * Set the name property: The operation name.
+ *
+ *
This is of the format {provider}/{resource}/{operation}.
*
* @param name the name value to set.
* @return the OperationInner object itself.
@@ -123,7 +132,7 @@ public OperationInner withOrigin(String origin) {
}
/**
- * Get the properties property: Any object.
+ * Get the properties property: Properties of the operation.
*
* @return the properties value.
*/
@@ -132,7 +141,7 @@ public Object properties() {
}
/**
- * Set the properties property: Any object.
+ * Set the properties property: Properties of the operation.
*
* @param properties the properties value to set.
* @return the OperationInner object itself.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OutboundEnvironmentEndpointInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/OutboundEnvironmentEndpointInner.java
index 2b1c55896cee..23fe1db1efbb 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
@@ -19,12 +19,15 @@ public final class OutboundEnvironmentEndpointInner {
private String category;
/*
- * The endpoints for this service to which the Batch service makes outbound
- * calls.
+ * The endpoints for this service to which the Batch service makes outbound calls.
*/
@JsonProperty(value = "endpoints", access = JsonProperty.Access.WRITE_ONLY)
private List endpoints;
+ /** Creates an instance of OutboundEnvironmentEndpointInner class. */
+ public OutboundEnvironmentEndpointInner() {
+ }
+
/**
* Get the category property: The type of service that the Batch service connects to.
*
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolInner.java
index 3a1a39d37b8e..1028601c0211 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
@@ -16,6 +16,7 @@
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;
@@ -47,6 +48,10 @@ public final class PoolInner extends ProxyResource {
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /** Creates an instance of PoolInner class. */
+ public PoolInner() {
+ }
+
/**
* Get the innerProperties property: The properties associated with the pool.
*
@@ -86,8 +91,9 @@ public String etag() {
}
/**
- * 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.
+ * 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.
*/
@@ -96,8 +102,9 @@ public String displayName() {
}
/**
- * 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.
+ * 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.
@@ -111,9 +118,10 @@ public PoolInner withDisplayName(String displayName) {
}
/**
- * 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.
+ * 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.
*/
@@ -167,8 +175,9 @@ public OffsetDateTime allocationStateTransitionTime() {
}
/**
- * 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 sizes of virtual machines for Cloud Services pools (pools created with
+ * 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 sizes of virtual machines for Cloud Services pools (pools created with
* cloudServiceConfiguration), see Sizes for Cloud Services
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud
* Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the
@@ -185,8 +194,9 @@ public String vmSize() {
}
/**
- * 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 sizes of virtual machines for Cloud Services pools (pools created with
+ * 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 sizes of virtual machines for Cloud Services pools (pools created with
* cloudServiceConfiguration), see Sizes for Cloud Services
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud
* Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the
@@ -208,9 +218,10 @@ public PoolInner withVmSize(String vmSize) {
}
/**
- * Get the deploymentConfiguration property: Deployment configuration properties. Using CloudServiceConfiguration
- * specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration
- * uses Azure Virtual Machines (IaaS).
+ * Get the deploymentConfiguration property: Deployment configuration properties.
+ *
+ *
Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS),
+ * while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS).
*
* @return the deploymentConfiguration value.
*/
@@ -219,9 +230,10 @@ public DeploymentConfiguration deploymentConfiguration() {
}
/**
- * Set the deploymentConfiguration property: Deployment configuration properties. Using CloudServiceConfiguration
- * specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration
- * uses Azure Virtual Machines (IaaS).
+ * Set the deploymentConfiguration property: Deployment configuration properties.
+ *
+ *
Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS),
+ * while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS).
*
* @param deploymentConfiguration the deploymentConfiguration value to set.
* @return the PoolInner object itself.
@@ -235,7 +247,7 @@ public PoolInner withDeploymentConfiguration(DeploymentConfiguration deploymentC
}
/**
- * Get the currentDedicatedNodes property: The number of compute nodes currently in the pool.
+ * Get the currentDedicatedNodes property: The number of dedicated compute nodes currently in the pool.
*
* @return the currentDedicatedNodes value.
*/
@@ -253,10 +265,11 @@ public Integer currentLowPriorityNodes() {
}
/**
- * Get the scaleSettings property: Scale settings for the pool Defines the desired size of the pool. This can either
- * be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula
- * which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0
- * targetDedicatedNodes.
+ * Get the scaleSettings property: Scale settings for the pool
+ *
+ *
Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes
+ * is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*
* @return the scaleSettings value.
*/
@@ -265,10 +278,11 @@ public ScaleSettings scaleSettings() {
}
/**
- * Set the scaleSettings property: Scale settings for the pool Defines the desired size of the pool. This can either
- * be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula
- * which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0
- * targetDedicatedNodes.
+ * Set the scaleSettings property: Scale settings for the pool
+ *
+ *
Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes
+ * is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*
* @param scaleSettings the scaleSettings value to set.
* @return the PoolInner object itself.
@@ -282,8 +296,9 @@ public PoolInner withScaleSettings(ScaleSettings scaleSettings) {
}
/**
- * Get the autoScaleRun property: The results and errors from an execution of a pool autoscale formula. This
- * property is set only if the pool automatically scales, i.e. autoScaleSettings are used.
+ * Get the autoScaleRun property: The results and errors from an execution of a pool autoscale formula.
+ *
+ *
This property is set only if the pool automatically scales, i.e. autoScaleSettings are used.
*
* @return the autoScaleRun value.
*/
@@ -292,9 +307,11 @@ public AutoScaleRun autoScaleRun() {
}
/**
- * 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'.
+ * 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.
*/
@@ -303,9 +320,11 @@ public InterNodeCommunicationState interNodeCommunication() {
}
/**
- * 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'.
+ * 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.
@@ -343,8 +362,10 @@ public PoolInner withNetworkConfiguration(NetworkConfiguration networkConfigurat
/**
* 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.
+ * 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.
*/
@@ -354,8 +375,10 @@ public Integer taskSlotsPerNode() {
/**
* 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.
+ * 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.
@@ -369,8 +392,9 @@ public PoolInner withTaskSlotsPerNode(Integer taskSlotsPerNode) {
}
/**
- * Get the taskSchedulingPolicy property: Specifies how tasks should be distributed across compute nodes. If not
- * specified, the default is spread.
+ * Get the taskSchedulingPolicy property: Specifies how tasks should be distributed across compute nodes.
+ *
+ *
If not specified, the default is spread.
*
* @return the taskSchedulingPolicy value.
*/
@@ -379,8 +403,9 @@ public TaskSchedulingPolicy taskSchedulingPolicy() {
}
/**
- * Set the taskSchedulingPolicy property: Specifies how tasks should be distributed across compute nodes. If not
- * specified, the default is spread.
+ * Set the taskSchedulingPolicy property: Specifies how tasks should be distributed across compute nodes.
+ *
+ *
If not specified, the default is spread.
*
* @param taskSchedulingPolicy the taskSchedulingPolicy value to set.
* @return the PoolInner object itself.
@@ -417,8 +442,9 @@ public PoolInner withUserAccounts(List userAccounts) {
}
/**
- * 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.
+ * 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.
*/
@@ -427,8 +453,9 @@ public List metadata() {
}
/**
- * 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.
+ * 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.
@@ -443,8 +470,10 @@ public PoolInner withMetadata(List metadata) {
/**
* Get the startTask property: A task which is run when a compute node joins a pool in the Azure Batch service, or
- * when the compute node is rebooted or reimaged. In an PATCH (update) operation, this property can be set to an
- * empty object to remove the start task from the pool.
+ * when the compute node is rebooted or reimaged.
+ *
+ * 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.
*/
@@ -454,8 +483,10 @@ public StartTask startTask() {
/**
* Set the startTask property: A task which is run when a compute node joins a pool in the Azure Batch service, or
- * when the compute node is rebooted or reimaged. In an PATCH (update) operation, this property can be set to an
- * empty object to remove the start task from the pool.
+ * when the compute node is rebooted or reimaged.
+ *
+ *
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.
@@ -469,13 +500,17 @@ public PoolInner withStartTask(StartTask startTask) {
}
/**
- * Get the certificates property: The list of certificates to be installed on each compute node in the pool. For
- * Windows compute nodes, the Batch service installs the certificates to the specified certificate store and
+ * Get the certificates property: The list of certificates to be installed on each compute node in the pool.
+ *
+ *
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() {
@@ -483,13 +518,17 @@ public List certificates() {
}
/**
- * Set the certificates property: The list of certificates to be installed on each compute node in the pool. For
- * Windows compute nodes, the Batch service installs the certificates to the specified certificate store and
+ * Set the certificates property: The list of certificates to be installed on each compute node in the pool.
+ *
+ * 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.
+ *
* @param certificates the certificates value to set.
* @return the PoolInner object itself.
*/
@@ -503,8 +542,10 @@ public PoolInner withCertificates(List certificates) {
/**
* Get 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
+ * 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.
*
* @return the applicationPackages value.
@@ -515,8 +556,10 @@ public List applicationPackages() {
/**
* 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
+ * 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.
@@ -532,8 +575,10 @@ public PoolInner withApplicationPackages(List appli
/**
* Get the applicationLicenses property: The list of application licenses the Batch service will make available on
- * each compute node in the pool. 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.
+ * each compute node in the pool.
+ *
+ * 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.
*
* @return the applicationLicenses value.
*/
@@ -543,8 +588,10 @@ public List applicationLicenses() {
/**
* Set the applicationLicenses property: The list of application licenses the Batch service will make available on
- * each compute node in the pool. 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.
+ * each compute node in the pool.
+ *
+ * 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.
@@ -558,9 +605,10 @@ public PoolInner withApplicationLicenses(List applicationLicenses) {
}
/**
- * Get the resizeOperationStatus property: 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).
+ * Get the resizeOperationStatus property: 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).
*
* @return the resizeOperationStatus value.
*/
@@ -569,8 +617,9 @@ public ResizeOperationStatus resizeOperationStatus() {
}
/**
- * 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.
+ * 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.
*/
@@ -579,8 +628,9 @@ public List mountConfiguration() {
}
/**
- * 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.
+ * 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.
@@ -593,6 +643,42 @@ public PoolInner withMountConfiguration(List mountConfigurat
return this;
}
+ /**
+ * Get the targetNodeCommunicationMode property: Determines how a pool communicates with the Batch service.
+ *
+ * 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: Determines how a pool communicates with the Batch service.
+ *
+ *
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.
+ *
+ * @return the currentNodeCommunicationMode value.
+ */
+ public NodeCommunicationMode currentNodeCommunicationMode() {
+ return this.innerProperties() == null ? null : this.innerProperties().currentNodeCommunicationMode();
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PoolProperties.java
index c09fdc6ec744..8161fc08a8d3 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
@@ -14,6 +14,7 @@
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;
@@ -28,17 +29,18 @@
@Fluent
public final class PoolProperties {
/*
- * 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.
+ * 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.
*/
@JsonProperty(value = "displayName")
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.
+ * 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.
*/
@JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime lastModified;
@@ -74,35 +76,32 @@ public final class PoolProperties {
private OffsetDateTime allocationStateTransitionTime;
/*
- * The size of virtual machines in the pool. All VMs in a pool are the same
- * size. For information about available sizes of virtual machines for
- * Cloud Services pools (pools created with cloudServiceConfiguration), see
- * Sizes for Cloud Services
- * (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/).
- * Batch supports all Cloud Services VM sizes except ExtraSmall. For
- * information about available VM sizes for pools using images from the
- * Virtual Machines Marketplace (pools created with
- * virtualMachineConfiguration) 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 sizes of virtual machines for Cloud Services pools (pools created with
+ * cloudServiceConfiguration), see Sizes for Cloud Services
+ * (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud
+ * Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the
+ * Virtual Machines Marketplace (pools created with virtualMachineConfiguration) 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).
*/
@JsonProperty(value = "vmSize")
private String vmSize;
/*
- * Deployment configuration properties. Using CloudServiceConfiguration
- * specifies that the nodes should be creating using Azure Cloud Services
- * (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines
- * (IaaS).
+ * Deployment configuration properties.
+ *
+ * Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS),
+ * while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS).
*/
@JsonProperty(value = "deploymentConfiguration")
private DeploymentConfiguration deploymentConfiguration;
/*
- * The number of compute nodes currently in the pool.
+ * The number of dedicated compute nodes currently in the pool.
*/
@JsonProperty(value = "currentDedicatedNodes", access = JsonProperty.Access.WRITE_ONLY)
private Integer currentDedicatedNodes;
@@ -114,29 +113,29 @@ public final class PoolProperties {
private Integer currentLowPriorityNodes;
/*
- * Scale settings for the pool Defines the desired size of the pool. This
- * can either be 'fixedScale' where the requested targetDedicatedNodes is
- * specified, or 'autoScale' which defines a formula which is periodically
- * reevaluated. If this property is not specified, the pool will have a
- * fixed scale with 0 targetDedicatedNodes.
+ * Scale settings for the pool
+ *
+ * Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes
+ * is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*/
@JsonProperty(value = "scaleSettings")
private ScaleSettings scaleSettings;
/*
* The results and errors from an execution of a pool autoscale formula.
- * This property is set only if the pool automatically scales, i.e.
- * autoScaleSettings are used.
+ *
+ * This property is set only if the pool automatically scales, i.e. autoScaleSettings are used.
*/
@JsonProperty(value = "autoScaleRun", access = JsonProperty.Access.WRITE_ONLY)
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'.
+ * 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'.
*/
@JsonProperty(value = "interNodeCommunication")
private InterNodeCommunicationState interNodeCommunication;
@@ -148,17 +147,18 @@ public final class PoolProperties {
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
+ * 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.
*/
@JsonProperty(value = "taskSlotsPerNode")
private Integer taskSlotsPerNode;
/*
- * Specifies how tasks should be distributed across compute nodes. If not
- * specified, the default is spread.
+ * Specifies how tasks should be distributed across compute nodes.
+ *
+ * If not specified, the default is spread.
*/
@JsonProperty(value = "taskSchedulingPolicy")
private TaskSchedulingPolicy taskSchedulingPolicy;
@@ -170,74 +170,96 @@ public final class PoolProperties {
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.
+ * 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.
*/
@JsonProperty(value = "metadata")
private List metadata;
/*
- * A task which is run when a compute node joins a pool in the Azure Batch
- * service, or when the compute node is rebooted or reimaged. In an PATCH
- * (update) operation, this property can be set to an empty object to
- * remove the start task from the pool.
+ * A task which is run when a compute node joins a pool in the Azure Batch service, or when the compute node is
+ * rebooted or reimaged.
+ *
+ * In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the
+ * pool.
*/
@JsonProperty(value = "startTask")
private StartTask startTask;
/*
- * The list of certificates to be installed on each compute node in the
- * pool. 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.,
+ * The list of certificates to be installed on each compute node in the pool.
+ *
+ * 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.
*/
@JsonProperty(value = "certificates")
private List certificates;
/*
- * 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.
+ * 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.
*/
@JsonProperty(value = "applicationPackages")
private List applicationPackages;
/*
- * The list of application licenses the Batch service will make available
- * on each compute node in the pool. 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.
+ * The list of application licenses the Batch service will make available on each compute node in the pool.
+ *
+ * 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.
*/
@JsonProperty(value = "applicationLicenses")
private List applicationLicenses;
/*
- * 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).
+ * 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).
*/
@JsonProperty(value = "resizeOperationStatus", access = JsonProperty.Access.WRITE_ONLY)
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.
+ * A list of file systems to mount on each node in the pool.
+ *
+ * This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
*/
@JsonProperty(value = "mountConfiguration")
private List mountConfiguration;
+ /*
+ * Determines how a pool communicates with the Batch service.
+ *
+ * If omitted, the default value is Default.
+ */
+ @JsonProperty(value = "targetNodeCommunicationMode")
+ private NodeCommunicationMode targetNodeCommunicationMode;
+
+ /*
+ * Determines how a pool communicates with the Batch service.
+ */
+ @JsonProperty(value = "currentNodeCommunicationMode", access = JsonProperty.Access.WRITE_ONLY)
+ private NodeCommunicationMode currentNodeCommunicationMode;
+
+ /** Creates an instance of PoolProperties class. */
+ public PoolProperties() {
+ }
+
/**
- * 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.
+ * 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.
*/
@@ -246,8 +268,9 @@ public String displayName() {
}
/**
- * 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.
+ * 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.
@@ -258,9 +281,10 @@ public PoolProperties withDisplayName(String displayName) {
}
/**
- * 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.
+ * 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.
*/
@@ -314,8 +338,9 @@ public OffsetDateTime allocationStateTransitionTime() {
}
/**
- * 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 sizes of virtual machines for Cloud Services pools (pools created with
+ * 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 sizes of virtual machines for Cloud Services pools (pools created with
* cloudServiceConfiguration), see Sizes for Cloud Services
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud
* Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the
@@ -332,8 +357,9 @@ public String vmSize() {
}
/**
- * 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 sizes of virtual machines for Cloud Services pools (pools created with
+ * 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 sizes of virtual machines for Cloud Services pools (pools created with
* cloudServiceConfiguration), see Sizes for Cloud Services
* (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). Batch supports all Cloud
* Services VM sizes except ExtraSmall. For information about available VM sizes for pools using images from the
@@ -352,9 +378,10 @@ public PoolProperties withVmSize(String vmSize) {
}
/**
- * Get the deploymentConfiguration property: Deployment configuration properties. Using CloudServiceConfiguration
- * specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration
- * uses Azure Virtual Machines (IaaS).
+ * Get the deploymentConfiguration property: Deployment configuration properties.
+ *
+ *
Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS),
+ * while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS).
*
* @return the deploymentConfiguration value.
*/
@@ -363,9 +390,10 @@ public DeploymentConfiguration deploymentConfiguration() {
}
/**
- * Set the deploymentConfiguration property: Deployment configuration properties. Using CloudServiceConfiguration
- * specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration
- * uses Azure Virtual Machines (IaaS).
+ * Set the deploymentConfiguration property: Deployment configuration properties.
+ *
+ *
Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS),
+ * while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS).
*
* @param deploymentConfiguration the deploymentConfiguration value to set.
* @return the PoolProperties object itself.
@@ -376,7 +404,7 @@ public PoolProperties withDeploymentConfiguration(DeploymentConfiguration deploy
}
/**
- * Get the currentDedicatedNodes property: The number of compute nodes currently in the pool.
+ * Get the currentDedicatedNodes property: The number of dedicated compute nodes currently in the pool.
*
* @return the currentDedicatedNodes value.
*/
@@ -394,10 +422,11 @@ public Integer currentLowPriorityNodes() {
}
/**
- * Get the scaleSettings property: Scale settings for the pool Defines the desired size of the pool. This can either
- * be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula
- * which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0
- * targetDedicatedNodes.
+ * Get the scaleSettings property: Scale settings for the pool
+ *
+ *
Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes
+ * is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*
* @return the scaleSettings value.
*/
@@ -406,10 +435,11 @@ public ScaleSettings scaleSettings() {
}
/**
- * Set the scaleSettings property: Scale settings for the pool Defines the desired size of the pool. This can either
- * be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula
- * which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0
- * targetDedicatedNodes.
+ * Set the scaleSettings property: Scale settings for the pool
+ *
+ *
Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes
+ * is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not
+ * specified, the pool will have a fixed scale with 0 targetDedicatedNodes.
*
* @param scaleSettings the scaleSettings value to set.
* @return the PoolProperties object itself.
@@ -420,8 +450,9 @@ public PoolProperties withScaleSettings(ScaleSettings scaleSettings) {
}
/**
- * Get the autoScaleRun property: The results and errors from an execution of a pool autoscale formula. This
- * property is set only if the pool automatically scales, i.e. autoScaleSettings are used.
+ * Get the autoScaleRun property: The results and errors from an execution of a pool autoscale formula.
+ *
+ *
This property is set only if the pool automatically scales, i.e. autoScaleSettings are used.
*
* @return the autoScaleRun value.
*/
@@ -430,9 +461,11 @@ public AutoScaleRun autoScaleRun() {
}
/**
- * 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'.
+ * 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.
*/
@@ -441,9 +474,11 @@ public InterNodeCommunicationState interNodeCommunication() {
}
/**
- * 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'.
+ * 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.
@@ -475,8 +510,10 @@ public PoolProperties withNetworkConfiguration(NetworkConfiguration networkConfi
/**
* 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.
+ * 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.
*/
@@ -486,8 +523,10 @@ public Integer taskSlotsPerNode() {
/**
* 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.
+ * 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.
@@ -498,8 +537,9 @@ public PoolProperties withTaskSlotsPerNode(Integer taskSlotsPerNode) {
}
/**
- * Get the taskSchedulingPolicy property: Specifies how tasks should be distributed across compute nodes. If not
- * specified, the default is spread.
+ * Get the taskSchedulingPolicy property: Specifies how tasks should be distributed across compute nodes.
+ *
+ *
If not specified, the default is spread.
*
* @return the taskSchedulingPolicy value.
*/
@@ -508,8 +548,9 @@ public TaskSchedulingPolicy taskSchedulingPolicy() {
}
/**
- * Set the taskSchedulingPolicy property: Specifies how tasks should be distributed across compute nodes. If not
- * specified, the default is spread.
+ * Set the taskSchedulingPolicy property: Specifies how tasks should be distributed across compute nodes.
+ *
+ *
If not specified, the default is spread.
*
* @param taskSchedulingPolicy the taskSchedulingPolicy value to set.
* @return the PoolProperties object itself.
@@ -540,8 +581,9 @@ public PoolProperties withUserAccounts(List userAccounts) {
}
/**
- * 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.
+ * 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.
*/
@@ -550,8 +592,9 @@ public List metadata() {
}
/**
- * 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.
+ * 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.
@@ -563,8 +606,10 @@ public PoolProperties withMetadata(List metadata) {
/**
* Get the startTask property: A task which is run when a compute node joins a pool in the Azure Batch service, or
- * when the compute node is rebooted or reimaged. In an PATCH (update) operation, this property can be set to an
- * empty object to remove the start task from the pool.
+ * when the compute node is rebooted or reimaged.
+ *
+ * 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.
*/
@@ -574,8 +619,10 @@ public StartTask startTask() {
/**
* Set the startTask property: A task which is run when a compute node joins a pool in the Azure Batch service, or
- * when the compute node is rebooted or reimaged. In an PATCH (update) operation, this property can be set to an
- * empty object to remove the start task from the pool.
+ * when the compute node is rebooted or reimaged.
+ *
+ *
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.
@@ -586,13 +633,17 @@ public PoolProperties withStartTask(StartTask startTask) {
}
/**
- * Get the certificates property: The list of certificates to be installed on each compute node in the pool. For
- * Windows compute nodes, the Batch service installs the certificates to the specified certificate store and
+ * Get the certificates property: The list of certificates to be installed on each compute node in the pool.
+ *
+ *
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() {
@@ -600,13 +651,17 @@ public List certificates() {
}
/**
- * Set the certificates property: The list of certificates to be installed on each compute node in the pool. For
- * Windows compute nodes, the Batch service installs the certificates to the specified certificate store and
+ * Set the certificates property: The list of certificates to be installed on each compute node in the pool.
+ *
+ * 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.
+ *
* @param certificates the certificates value to set.
* @return the PoolProperties object itself.
*/
@@ -617,8 +672,10 @@ public PoolProperties withCertificates(List certificates)
/**
* Get 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
+ * 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.
*
* @return the applicationPackages value.
@@ -629,8 +686,10 @@ public List applicationPackages() {
/**
* 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
+ * 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.
@@ -643,8 +702,10 @@ public PoolProperties withApplicationPackages(List
/**
* Get the applicationLicenses property: The list of application licenses the Batch service will make available on
- * each compute node in the pool. 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.
+ * each compute node in the pool.
+ *
+ * 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.
*
* @return the applicationLicenses value.
*/
@@ -654,8 +715,10 @@ public List applicationLicenses() {
/**
* Set the applicationLicenses property: The list of application licenses the Batch service will make available on
- * each compute node in the pool. 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.
+ * each compute node in the pool.
+ *
+ * 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.
@@ -666,9 +729,10 @@ public PoolProperties withApplicationLicenses(List applicationLicenses)
}
/**
- * Get the resizeOperationStatus property: 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).
+ * Get the resizeOperationStatus property: 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).
*
* @return the resizeOperationStatus value.
*/
@@ -677,8 +741,9 @@ public ResizeOperationStatus resizeOperationStatus() {
}
/**
- * 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.
+ * 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.
*/
@@ -687,8 +752,9 @@ public List mountConfiguration() {
}
/**
- * 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.
+ * 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.
@@ -698,6 +764,39 @@ public PoolProperties withMountConfiguration(List mountConfi
return this;
}
+ /**
+ * Get the targetNodeCommunicationMode property: Determines how a pool communicates with the Batch service.
+ *
+ * If omitted, the default value is Default.
+ *
+ * @return the targetNodeCommunicationMode value.
+ */
+ public NodeCommunicationMode targetNodeCommunicationMode() {
+ return this.targetNodeCommunicationMode;
+ }
+
+ /**
+ * Set the targetNodeCommunicationMode property: Determines how a pool communicates with the Batch service.
+ *
+ *
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;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionInner.java
index 973622967360..aaec6a9277dc 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionInner.java
@@ -10,6 +10,7 @@
import com.azure.resourcemanager.batch.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionState;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
/** Contains information about a private link resource. */
@Fluent
@@ -26,6 +27,10 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /** Creates an instance of PrivateEndpointConnectionInner class. */
+ public PrivateEndpointConnectionInner() {
+ }
+
/**
* Get the innerProperties property: The properties associated with the private endpoint connection.
*
@@ -63,17 +68,14 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Set the privateEndpoint property: The private endpoint of the private endpoint connection.
+ * Get the groupIds property: The group id of the private endpoint connection.
*
- * @param privateEndpoint the privateEndpoint value to set.
- * @return the PrivateEndpointConnectionInner object itself.
+ *
The value has one and only one group id.
+ *
+ * @return the groupIds value.
*/
- public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- if (this.innerProperties() == null) {
- this.innerProperties = new PrivateEndpointConnectionProperties();
- }
- this.innerProperties().withPrivateEndpoint(privateEndpoint);
- return this;
+ public List groupIds() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupIds();
}
/**
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionProperties.java
index 076a6c9ffb69..088aed42c069 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateEndpointConnectionProperties.java
@@ -9,6 +9,7 @@
import com.azure.resourcemanager.batch.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.batch.models.PrivateLinkServiceConnectionState;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
/** Private endpoint connection properties. */
@Fluent
@@ -22,16 +23,27 @@ public final class PrivateEndpointConnectionProperties {
/*
* The private endpoint of the private endpoint connection.
*/
- @JsonProperty(value = "privateEndpoint")
+ @JsonProperty(value = "privateEndpoint", access = JsonProperty.Access.WRITE_ONLY)
private PrivateEndpoint privateEndpoint;
/*
- * The private link service connection state of the private endpoint
- * connection
+ * The group id of the private endpoint connection.
+ *
+ * The value has one and only one group id.
+ */
+ @JsonProperty(value = "groupIds", access = JsonProperty.Access.WRITE_ONLY)
+ private List groupIds;
+
+ /*
+ * The private link service connection state of the private endpoint connection
*/
@JsonProperty(value = "privateLinkServiceConnectionState")
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+ /** Creates an instance of PrivateEndpointConnectionProperties class. */
+ public PrivateEndpointConnectionProperties() {
+ }
+
/**
* Get the provisioningState property: The provisioning state of the private endpoint connection.
*
@@ -51,14 +63,14 @@ public PrivateEndpoint privateEndpoint() {
}
/**
- * Set the privateEndpoint property: The private endpoint of the private endpoint connection.
+ * Get the groupIds property: The group id of the private endpoint connection.
*
- * @param privateEndpoint the privateEndpoint value to set.
- * @return the PrivateEndpointConnectionProperties object itself.
+ * The value has one and only one group id.
+ *
+ * @return the groupIds value.
*/
- public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
- return this;
+ public List groupIds() {
+ return this.groupIds;
}
/**
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceInner.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/fluent/models/PrivateLinkResourceInner.java
index abe922b3e699..c85e83fad5bc 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
@@ -4,13 +4,13 @@
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.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Contains information about a private link resource. */
-@Fluent
+@Immutable
public final class PrivateLinkResourceInner extends ProxyResource {
/*
* The properties associated with the private link resource.
@@ -24,6 +24,10 @@ public final class PrivateLinkResourceInner extends ProxyResource {
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;
+ /** Creates an instance of PrivateLinkResourceInner class. */
+ public PrivateLinkResourceInner() {
+ }
+
/**
* Get the innerProperties property: The properties associated with the private link resource.
*
@@ -43,8 +47,9 @@ public String etag() {
}
/**
- * Get the groupId property: The group id of the private link resource. 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.
*/
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 c883154d128c..8e8d81829506 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
@@ -12,15 +12,15 @@
@Immutable
public final class PrivateLinkResourceProperties {
/*
- * The group id of the private link resource. The group id is used to
- * establish the private link connection.
+ * The group id of the private link resource.
+ *
+ * The group id is used to establish the private link connection.
*/
@JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
private String groupId;
/*
- * The list of required members that are used to establish the private link
- * connection.
+ * The list of required members that are used to establish the private link connection.
*/
@JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
private List requiredMembers;
@@ -31,9 +31,14 @@ public final class PrivateLinkResourceProperties {
@JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY)
private List requiredZoneNames;
+ /** Creates an instance of PrivateLinkResourceProperties class. */
+ public PrivateLinkResourceProperties() {
+ }
+
/**
- * Get the groupId property: The group id of the private link resource. 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.
*/
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 cbd5bfded755..9cdabc6337f8 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
@@ -30,6 +30,10 @@ public final class SupportedSkuInner {
@JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY)
private List capabilities;
+ /** Creates an instance of SupportedSkuInner class. */
+ public SupportedSkuInner() {
+ }
+
/**
* Get the name property: The name of the SKU.
*
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationImpl.java
index e0d83b6bdbb7..c2b473a36edd 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationImpl.java
@@ -41,6 +41,10 @@ public String defaultVersion() {
return this.innerModel().defaultVersion();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public ApplicationInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackageImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackageImpl.java
index 632f8bd304f6..289f09ead0db 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
@@ -131,16 +131,16 @@ public ApplicationPackage refresh(Context context) {
return this;
}
- public ApplicationPackage activate(ActivateApplicationPackageParameters parameters) {
+ public Response activateWithResponse(
+ ActivateApplicationPackageParameters parameters, Context context) {
return serviceManager
.applicationPackages()
- .activate(resourceGroupName, accountName, applicationName, versionName, parameters);
+ .activateWithResponse(resourceGroupName, accountName, applicationName, versionName, parameters, context);
}
- public Response activateWithResponse(
- ActivateApplicationPackageParameters parameters, Context context) {
+ public ApplicationPackage activate(ActivateApplicationPackageParameters parameters) {
return serviceManager
.applicationPackages()
- .activateWithResponse(resourceGroupName, accountName, applicationName, versionName, parameters, context);
+ .activate(resourceGroupName, accountName, applicationName, versionName, parameters);
}
}
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesClientImpl.java
index 2403ac1de5e4..727f52930fd9 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesClientImpl.java
@@ -325,14 +325,7 @@ private Mono activateAsync(
String versionName,
ActivateApplicationPackageParameters parameters) {
return activateWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -344,19 +337,24 @@ private Mono activateAsync(
* @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.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationPackageInner activate(
+ public Response activateWithResponse(
String resourceGroupName,
String accountName,
String applicationName,
String versionName,
- ActivateApplicationPackageParameters parameters) {
- return activateAsync(resourceGroupName, accountName, applicationName, versionName, parameters).block();
+ ActivateApplicationPackageParameters parameters,
+ Context context) {
+ return activateWithResponseAsync(
+ resourceGroupName, accountName, applicationName, versionName, parameters, context)
+ .block();
}
/**
@@ -368,24 +366,21 @@ public ApplicationPackageInner activate(
* @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 an application package which represents a particular version of an application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response activateWithResponse(
+ public ApplicationPackageInner activate(
String resourceGroupName,
String accountName,
String applicationName,
String versionName,
- ActivateApplicationPackageParameters parameters,
- Context context) {
- return activateWithResponseAsync(
- resourceGroupName, accountName, applicationName, versionName, parameters, context)
- .block();
+ ActivateApplicationPackageParameters parameters) {
+ return activateWithResponse(
+ resourceGroupName, accountName, applicationName, versionName, parameters, Context.NONE)
+ .getValue();
}
/**
@@ -538,7 +533,6 @@ private Mono> createWithResponseAsync(
* @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.
* @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.
@@ -547,20 +541,10 @@ private Mono> createWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono createAsync(
- String resourceGroupName,
- String accountName,
- String applicationName,
- String versionName,
- ApplicationPackageInner parameters) {
+ String resourceGroupName, String accountName, String applicationName, String versionName) {
+ final ApplicationPackageInner parameters = null;
return createWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -572,25 +556,25 @@ private Mono createAsync(
* @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 on successful completion
- * of {@link Mono}.
+ * @return an application package which represents a particular version of an application along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(
- String resourceGroupName, String accountName, String applicationName, String versionName) {
- final ApplicationPackageInner parameters = null;
- return createWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ public Response createWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String applicationName,
+ String versionName,
+ ApplicationPackageInner parameters,
+ Context context) {
+ return createWithResponseAsync(
+ resourceGroupName, accountName, applicationName, versionName, parameters, context)
+ .block();
}
/**
@@ -611,37 +595,9 @@ private Mono createAsync(
public ApplicationPackageInner create(
String resourceGroupName, String accountName, String applicationName, String versionName) {
final ApplicationPackageInner parameters = null;
- return createAsync(resourceGroupName, accountName, applicationName, versionName, parameters).block();
- }
-
- /**
- * 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}.
- */
- @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();
+ return createWithResponse(
+ resourceGroupName, accountName, applicationName, versionName, parameters, Context.NONE)
+ .getValue();
}
/**
@@ -776,7 +732,7 @@ private Mono> deleteWithResponseAsync(
private Mono deleteAsync(
String resourceGroupName, String accountName, String applicationName, String versionName) {
return deleteWithResponseAsync(resourceGroupName, accountName, applicationName, versionName)
- .flatMap((Response res) -> Mono.empty());
+ .flatMap(ignored -> Mono.empty());
}
/**
@@ -786,13 +742,16 @@ private Mono deleteAsync(
* @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 the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String accountName, String applicationName, String versionName) {
- deleteAsync(resourceGroupName, accountName, applicationName, versionName).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String accountName, String applicationName, String versionName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, context).block();
}
/**
@@ -802,16 +761,13 @@ public void delete(String resourceGroupName, String accountName, String applicat
* @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 the {@link Response}.
*/
@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();
+ public void delete(String resourceGroupName, String accountName, String applicationName, String versionName) {
+ deleteWithResponse(resourceGroupName, accountName, applicationName, versionName, Context.NONE);
}
/**
@@ -948,14 +904,7 @@ private Mono> getWithResponseAsync(
private Mono getAsync(
String resourceGroupName, String accountName, String applicationName, String versionName) {
return getWithResponseAsync(resourceGroupName, accountName, applicationName, versionName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -965,15 +914,16 @@ private Mono getAsync(
* @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.
+ * @return information about the specified application package along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationPackageInner get(
- String resourceGroupName, String accountName, String applicationName, String versionName) {
- return getAsync(resourceGroupName, accountName, applicationName, versionName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String accountName, String applicationName, String versionName, Context context) {
+ return getWithResponseAsync(resourceGroupName, accountName, applicationName, versionName, context).block();
}
/**
@@ -983,16 +933,15 @@ public ApplicationPackageInner get(
* @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}.
+ * @return information about the specified application package.
*/
@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();
+ public ApplicationPackageInner get(
+ String resourceGroupName, String accountName, String applicationName, String versionName) {
+ return getWithResponse(resourceGroupName, accountName, applicationName, versionName, Context.NONE).getValue();
}
/**
@@ -1226,7 +1175,8 @@ public PagedIterable list(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @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.
@@ -1262,7 +1212,8 @@ private Mono> listNextSinglePageAsync(Str
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @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.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesImpl.java
index bc05610c9e0a..01ec4382df0c 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationPackagesImpl.java
@@ -28,21 +28,6 @@ public ApplicationPackagesImpl(
this.serviceManager = serviceManager;
}
- public ApplicationPackage activate(
- String resourceGroupName,
- String accountName,
- String applicationName,
- String versionName,
- ActivateApplicationPackageParameters parameters) {
- ApplicationPackageInner inner =
- this.serviceClient().activate(resourceGroupName, accountName, applicationName, versionName, parameters);
- if (inner != null) {
- return new ApplicationPackageImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response activateWithResponse(
String resourceGroupName,
String accountName,
@@ -66,8 +51,19 @@ public Response activateWithResponse(
}
}
- public void delete(String resourceGroupName, String accountName, String applicationName, String versionName) {
- this.serviceClient().delete(resourceGroupName, accountName, applicationName, versionName);
+ public ApplicationPackage activate(
+ String resourceGroupName,
+ String accountName,
+ String applicationName,
+ String versionName,
+ ActivateApplicationPackageParameters parameters) {
+ ApplicationPackageInner inner =
+ this.serviceClient().activate(resourceGroupName, accountName, applicationName, versionName, parameters);
+ if (inner != null) {
+ return new ApplicationPackageImpl(inner, this.manager());
+ } else {
+ return null;
+ }
}
public Response deleteWithResponse(
@@ -77,15 +73,8 @@ public Response deleteWithResponse(
.deleteWithResponse(resourceGroupName, accountName, applicationName, versionName, context);
}
- public ApplicationPackage get(
- String resourceGroupName, String accountName, String applicationName, String versionName) {
- ApplicationPackageInner inner =
- this.serviceClient().get(resourceGroupName, accountName, applicationName, versionName);
- if (inner != null) {
- return new ApplicationPackageImpl(inner, this.manager());
- } else {
- return null;
- }
+ public void delete(String resourceGroupName, String accountName, String applicationName, String versionName) {
+ this.serviceClient().delete(resourceGroupName, accountName, applicationName, versionName);
}
public Response getWithResponse(
@@ -103,6 +92,17 @@ public Response getWithResponse(
}
}
+ public ApplicationPackage get(
+ String resourceGroupName, String accountName, String applicationName, String versionName) {
+ ApplicationPackageInner inner =
+ this.serviceClient().get(resourceGroupName, accountName, applicationName, versionName);
+ if (inner != null) {
+ return new ApplicationPackageImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public PagedIterable list(
String resourceGroupName, String accountName, String applicationName) {
PagedIterable inner =
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsClientImpl.java
index 8a674ddbb454..fefa1324dcc2 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsClientImpl.java
@@ -281,24 +281,16 @@ private Mono> createWithResponseAsync(
* @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 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 contains information about an application in a Batch account on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(
- String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters) {
+ private Mono createAsync(String resourceGroupName, String accountName, String applicationName) {
+ final ApplicationInner parameters = null;
return createWithResponseAsync(resourceGroupName, accountName, applicationName, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -307,23 +299,21 @@ private Mono createAsync(
* @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 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 contains information about an application in a Batch account on successful completion of {@link Mono}.
+ * @return contains information about an application in a Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(String resourceGroupName, String accountName, String applicationName) {
- final ApplicationInner parameters = null;
- return createWithResponseAsync(resourceGroupName, accountName, applicationName, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ public Response createWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String applicationName,
+ ApplicationInner parameters,
+ Context context) {
+ return createWithResponseAsync(resourceGroupName, accountName, applicationName, parameters, context).block();
}
/**
@@ -340,30 +330,7 @@ private Mono createAsync(String resourceGroupName, String acco
@ServiceMethod(returns = ReturnType.SINGLE)
public ApplicationInner create(String resourceGroupName, String accountName, String applicationName) {
final ApplicationInner parameters = null;
- return createAsync(resourceGroupName, accountName, applicationName, parameters).block();
- }
-
- /**
- * 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 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 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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createWithResponse(
- String resourceGroupName,
- String accountName,
- String applicationName,
- ApplicationInner parameters,
- Context context) {
- return createWithResponseAsync(resourceGroupName, accountName, applicationName, parameters, context).block();
+ return createWithResponse(resourceGroupName, accountName, applicationName, parameters, Context.NONE).getValue();
}
/**
@@ -486,7 +453,7 @@ private Mono> deleteWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String accountName, String applicationName) {
return deleteWithResponseAsync(resourceGroupName, accountName, applicationName)
- .flatMap((Response res) -> Mono.empty());
+ .flatMap(ignored -> Mono.empty());
}
/**
@@ -495,13 +462,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str
* @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 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}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String accountName, String applicationName) {
- deleteAsync(resourceGroupName, accountName, applicationName).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String accountName, String applicationName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, accountName, applicationName, context).block();
}
/**
@@ -510,16 +480,13 @@ public void delete(String resourceGroupName, String accountName, String applicat
* @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 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}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
- String resourceGroupName, String accountName, String applicationName, Context context) {
- return deleteWithResponseAsync(resourceGroupName, accountName, applicationName, context).block();
+ public void delete(String resourceGroupName, String accountName, String applicationName) {
+ deleteWithResponse(resourceGroupName, accountName, applicationName, Context.NONE);
}
/**
@@ -644,14 +611,7 @@ private Mono> getWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(String resourceGroupName, String accountName, String applicationName) {
return getWithResponseAsync(resourceGroupName, accountName, applicationName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -660,14 +620,16 @@ private Mono getAsync(String resourceGroupName, String account
* @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 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.
+ * @return information about the specified application along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInner get(String resourceGroupName, String accountName, String applicationName) {
- return getAsync(resourceGroupName, accountName, applicationName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String accountName, String applicationName, Context context) {
+ return getWithResponseAsync(resourceGroupName, accountName, applicationName, context).block();
}
/**
@@ -676,16 +638,14 @@ public ApplicationInner get(String resourceGroupName, String accountName, String
* @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 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 along with {@link Response}.
+ * @return information about the specified application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String accountName, String applicationName, Context context) {
- return getWithResponseAsync(resourceGroupName, accountName, applicationName, context).block();
+ public ApplicationInner get(String resourceGroupName, String accountName, String applicationName) {
+ return getWithResponse(resourceGroupName, accountName, applicationName, Context.NONE).getValue();
}
/**
@@ -830,14 +790,7 @@ private Mono> updateWithResponseAsync(
private Mono updateAsync(
String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters) {
return updateWithResponseAsync(resourceGroupName, accountName, applicationName, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -847,15 +800,20 @@ private Mono updateAsync(
* @param accountName The name of the Batch account.
* @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 ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contains information about an application in a Batch account.
+ * @return contains information about an application in a Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInner update(
- String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters) {
- return updateAsync(resourceGroupName, accountName, applicationName, parameters).block();
+ public Response updateWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String applicationName,
+ ApplicationInner parameters,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, accountName, applicationName, parameters, context).block();
}
/**
@@ -865,20 +823,15 @@ public ApplicationInner update(
* @param accountName The name of the Batch account.
* @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 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 contains information about an application in a Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(
- String resourceGroupName,
- String accountName,
- String applicationName,
- ApplicationInner parameters,
- Context context) {
- return updateWithResponseAsync(resourceGroupName, accountName, applicationName, parameters, context).block();
+ public ApplicationInner update(
+ String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters) {
+ return updateWithResponse(resourceGroupName, accountName, applicationName, parameters, Context.NONE).getValue();
}
/**
@@ -1092,7 +1045,8 @@ public PagedIterable list(
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @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.
@@ -1128,7 +1082,8 @@ private Mono> listNextSinglePageAsync(String nex
/**
* Get the next page of items.
*
- * @param nextLink The nextLink parameter.
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
* @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.
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsImpl.java
index 6ccb71d0f7f8..580fc1408adb 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/ApplicationsImpl.java
@@ -27,22 +27,13 @@ public ApplicationsImpl(
this.serviceManager = serviceManager;
}
- public void delete(String resourceGroupName, String accountName, String applicationName) {
- this.serviceClient().delete(resourceGroupName, accountName, applicationName);
- }
-
public Response deleteWithResponse(
String resourceGroupName, String accountName, String applicationName, Context context) {
return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, applicationName, context);
}
- public Application get(String resourceGroupName, String accountName, String applicationName) {
- ApplicationInner inner = this.serviceClient().get(resourceGroupName, accountName, applicationName);
- if (inner != null) {
- return new ApplicationImpl(inner, this.manager());
- } else {
- return null;
- }
+ public void delete(String resourceGroupName, String accountName, String applicationName) {
+ this.serviceClient().delete(resourceGroupName, accountName, applicationName);
}
public Response getWithResponse(
@@ -60,6 +51,15 @@ public Response getWithResponse(
}
}
+ public Application get(String resourceGroupName, String accountName, String applicationName) {
+ ApplicationInner inner = this.serviceClient().get(resourceGroupName, accountName, applicationName);
+ if (inner != null) {
+ return new ApplicationImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public PagedIterable list(String resourceGroupName, String accountName) {
PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName);
return Utils.mapPage(inner, inner1 -> new ApplicationImpl(inner1, this.manager()));
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountImpl.java
index 31a3e1ed8831..128293eccf65 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountImpl.java
@@ -20,6 +20,7 @@
import com.azure.resourcemanager.batch.models.BatchAccountUpdateParameters;
import com.azure.resourcemanager.batch.models.EncryptionProperties;
import com.azure.resourcemanager.batch.models.KeyVaultReference;
+import com.azure.resourcemanager.batch.models.NetworkProfile;
import com.azure.resourcemanager.batch.models.PoolAllocationMode;
import com.azure.resourcemanager.batch.models.PrivateEndpointConnection;
import com.azure.resourcemanager.batch.models.ProvisioningState;
@@ -68,6 +69,10 @@ public String accountEndpoint() {
return this.innerModel().accountEndpoint();
}
+ public String nodeManagementEndpoint() {
+ return this.innerModel().nodeManagementEndpoint();
+ }
+
public ProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
@@ -84,6 +89,10 @@ public PublicNetworkAccessType publicNetworkAccess() {
return this.innerModel().publicNetworkAccess();
}
+ public NetworkProfile networkProfile() {
+ return this.innerModel().networkProfile();
+ }
+
public List privateEndpointConnections() {
List inner = this.innerModel().privateEndpointConnections();
if (inner != null) {
@@ -152,6 +161,10 @@ public String regionName() {
return this.location();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public BatchAccountInner innerModel() {
return this.innerObject;
}
@@ -250,18 +263,14 @@ public BatchAccount refresh(Context context) {
return this;
}
- public void synchronizeAutoStorageKeys() {
- serviceManager.batchAccounts().synchronizeAutoStorageKeys(resourceGroupName, accountName);
- }
-
public Response synchronizeAutoStorageKeysWithResponse(Context context) {
return serviceManager
.batchAccounts()
.synchronizeAutoStorageKeysWithResponse(resourceGroupName, accountName, context);
}
- public BatchAccountKeys regenerateKey(BatchAccountRegenerateKeyParameters parameters) {
- return serviceManager.batchAccounts().regenerateKey(resourceGroupName, accountName, parameters);
+ public void synchronizeAutoStorageKeys() {
+ serviceManager.batchAccounts().synchronizeAutoStorageKeys(resourceGroupName, accountName);
}
public Response regenerateKeyWithResponse(
@@ -271,14 +280,18 @@ public Response regenerateKeyWithResponse(
.regenerateKeyWithResponse(resourceGroupName, accountName, parameters, context);
}
- public BatchAccountKeys getKeys() {
- return serviceManager.batchAccounts().getKeys(resourceGroupName, accountName);
+ public BatchAccountKeys regenerateKey(BatchAccountRegenerateKeyParameters parameters) {
+ return serviceManager.batchAccounts().regenerateKey(resourceGroupName, accountName, parameters);
}
public Response getKeysWithResponse(Context context) {
return serviceManager.batchAccounts().getKeysWithResponse(resourceGroupName, accountName, context);
}
+ public BatchAccountKeys getKeys() {
+ return serviceManager.batchAccounts().getKeys(resourceGroupName, accountName);
+ }
+
public BatchAccountImpl withRegion(Region location) {
this.createParameters.withLocation(location.toString());
return this;
@@ -330,8 +343,23 @@ public BatchAccountImpl withKeyVaultReference(KeyVaultReference keyVaultReferenc
}
public BatchAccountImpl withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) {
- this.createParameters.withPublicNetworkAccess(publicNetworkAccess);
- return this;
+ if (isInCreateMode()) {
+ this.createParameters.withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ } else {
+ this.updateParameters.withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+ }
+
+ public BatchAccountImpl withNetworkProfile(NetworkProfile networkProfile) {
+ if (isInCreateMode()) {
+ this.createParameters.withNetworkProfile(networkProfile);
+ return this;
+ } else {
+ this.updateParameters.withNetworkProfile(networkProfile);
+ return this;
+ }
}
public BatchAccountImpl withEncryption(EncryptionProperties encryption) {
diff --git a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountsClientImpl.java b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountsClientImpl.java
index 336ca4c6e914..51c34f8428ba 100644
--- a/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountsClientImpl.java
+++ b/sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/BatchAccountsClientImpl.java
@@ -727,14 +727,7 @@ private Mono> updateWithResponseAsync(
private Mono updateAsync(
String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters) {
return updateWithResponseAsync(resourceGroupName, accountName, parameters)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -743,15 +736,16 @@ private Mono updateAsync(
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @param parameters Additional parameters for account update.
+ * @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 contains information about an Azure Batch account.
+ * @return contains information about an Azure Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public BatchAccountInner update(
- String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters) {
- return updateAsync(resourceGroupName, accountName, parameters).block();
+ public Response updateWithResponse(
+ String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters, Context context) {
+ return updateWithResponseAsync(resourceGroupName, accountName, parameters, context).block();
}
/**
@@ -760,16 +754,15 @@ public BatchAccountInner update(
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
* @param parameters Additional parameters for account update.
- * @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 contains information about an Azure Batch account along with {@link Response}.
+ * @return contains information about an Azure Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(
- String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters, Context context) {
- return updateWithResponseAsync(resourceGroupName, accountName, parameters, context).block();
+ public BatchAccountInner update(
+ String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters) {
+ return updateWithResponse(resourceGroupName, accountName, parameters, Context.NONE).getValue();
}
/**
@@ -1108,14 +1101,7 @@ private Mono> getByResourceGroupWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) {
return getByResourceGroupWithResponseAsync(resourceGroupName, accountName)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
@@ -1123,14 +1109,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName
*
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information about the specified Batch account.
+ * @return information about the specified Batch account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public BatchAccountInner getByResourceGroup(String resourceGroupName, String accountName) {
- return getByResourceGroupAsync(resourceGroupName, accountName).block();
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String accountName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block();
}
/**
@@ -1138,16 +1126,14 @@ public BatchAccountInner getByResourceGroup(String resourceGroupName, String acc
*
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 specified Batch account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(
- String resourceGroupName, String accountName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block();
+ public BatchAccountInner getByResourceGroup(String resourceGroupName, String accountName) {
+ return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue();
}
/**
@@ -1575,7 +1561,7 @@ private Mono> synchronizeAutoStorageKeysWithResponseAsync(
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono synchronizeAutoStorageKeysAsync(String resourceGroupName, String accountName) {
return synchronizeAutoStorageKeysWithResponseAsync(resourceGroupName, accountName)
- .flatMap((Response res) -> Mono.empty());
+ .flatMap(ignored -> Mono.empty());
}
/**
@@ -1584,13 +1570,16 @@ private Mono synchronizeAutoStorageKeysAsync(String resourceGroupName, Str
*
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void synchronizeAutoStorageKeys(String resourceGroupName, String accountName) {
- synchronizeAutoStorageKeysAsync(resourceGroupName, accountName).block();
+ public Response synchronizeAutoStorageKeysWithResponse(
+ String resourceGroupName, String accountName, Context context) {
+ return synchronizeAutoStorageKeysWithResponseAsync(resourceGroupName, accountName, context).block();
}
/**
@@ -1599,20 +1588,19 @@ public void synchronizeAutoStorageKeys(String resourceGroupName, String accountN
*
* @param resourceGroupName The name of the resource group that contains the Batch account.
* @param accountName The name of the Batch account.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response synchronizeAutoStorageKeysWithResponse(
- String resourceGroupName, String accountName, Context context) {
- return synchronizeAutoStorageKeysWithResponseAsync(resourceGroupName, accountName, context).block();
+ public void synchronizeAutoStorageKeys(String resourceGroupName, String accountName) {
+ synchronizeAutoStorageKeysWithResponse(resourceGroupName, accountName, Context.NONE);
}
/**
- * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
+ * Regenerates the specified account key for the Batch account.
+ *
+ * This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the
* 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, regenerating the keys will
* fail.
@@ -1670,7 +1658,9 @@ private Mono