BatchAccountsInner Class

public class BatchAccountsInner implements InnerSupportsGet,InnerSupportsDelete,InnerSupportsListing

An instance of this class provides access to all the operations defined in BatchAccounts.

Constructor Summary

Constructor Description
BatchAccountsInner(Retrofit retrofit, BatchManagementClientImpl client)

Initializes an instance of BatchAccountsInner.

Method Summary

Modifier and Type Method and Description
BatchAccountInner beginCreate(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Observable<BatchAccountInner> beginCreateAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

ServiceFuture<BatchAccountInner> beginCreateAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, final ServiceCallback<BatchAccountInner> serviceCallback)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Observable<ServiceResponseWithHeaders<BatchAccountInner, BatchAccountCreateHeaders>> beginCreateWithServiceResponseAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

void beginDelete(String resourceGroupName, String accountName)

Deletes the specified Batch account.

Observable<Void> beginDeleteAsync(String resourceGroupName, String accountName)

Deletes the specified Batch account.

ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String accountName, final ServiceCallback<Void> serviceCallback)

Deletes the specified Batch account.

Observable<ServiceResponseWithHeaders<Void, BatchAccountDeleteHeaders>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String accountName)

Deletes the specified Batch account.

BatchAccountInner create(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Observable<BatchAccountInner> createAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

ServiceFuture<BatchAccountInner> createAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, final ServiceCallback<BatchAccountInner> serviceCallback)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Observable<ServiceResponseWithHeaders<BatchAccountInner, BatchAccountCreateHeaders>> createWithServiceResponseAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

void delete(String resourceGroupName, String accountName)

Deletes the specified Batch account.

Observable<Void> deleteAsync(String resourceGroupName, String accountName)

Deletes the specified Batch account.

ServiceFuture<Void> deleteAsync(String resourceGroupName, String accountName, final ServiceCallback<Void> serviceCallback)

Deletes the specified Batch account.

Observable<ServiceResponseWithHeaders<Void, BatchAccountDeleteHeaders>> deleteWithServiceResponseAsync(String resourceGroupName, String accountName)

Deletes the specified Batch account.

BatchAccountInner getByResourceGroup(String resourceGroupName, String accountName)

Gets information about the specified Batch account.

Observable<BatchAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName)

Gets information about the specified Batch account.

ServiceFuture<BatchAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName, final ServiceCallback<BatchAccountInner> serviceCallback)

Gets information about the specified Batch account.

Observable<ServiceResponse<BatchAccountInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String accountName)

Gets information about the specified Batch account.

BatchAccountKeysInner getKeys(String resourceGroupName, String accountName)

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.

Observable<BatchAccountKeysInner> getKeysAsync(String resourceGroupName, String accountName)

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.

ServiceFuture<BatchAccountKeysInner> getKeysAsync(String resourceGroupName, String accountName, final ServiceCallback<BatchAccountKeysInner> serviceCallback)

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.

Observable<ServiceResponse<BatchAccountKeysInner>> getKeysWithServiceResponseAsync(String resourceGroupName, String accountName)

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.

PagedList<BatchAccountInner> list()

Gets information about the Batch accounts associated with the subscription.

Observable<Page<BatchAccountInner>> listAsync()

Gets information about the Batch accounts associated with the subscription.

ServiceFuture<List<BatchAccountInner>> listAsync(final ListOperationCallback<BatchAccountInner> serviceCallback)

Gets information about the Batch accounts associated with the subscription.

PagedList<BatchAccountInner> listByResourceGroup(final String resourceGroupName)

Gets information about the Batch accounts associated with the specified resource group.

Observable<Page<BatchAccountInner>> listByResourceGroupAsync(final String resourceGroupName)

Gets information about the Batch accounts associated with the specified resource group.

ServiceFuture<List<BatchAccountInner>> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback<BatchAccountInner> serviceCallback)

Gets information about the Batch accounts associated with the specified resource group.

PagedList<BatchAccountInner> listByResourceGroupNext(final String nextPageLink)

Gets information about the Batch accounts associated with the specified resource group.

Observable<Page<BatchAccountInner>> listByResourceGroupNextAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the specified resource group.

ServiceFuture<List<BatchAccountInner>> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture<List<BatchAccountInner>> serviceFuture, final ListOperationCallback<BatchAccountInner> serviceCallback)

Gets information about the Batch accounts associated with the specified resource group.

Observable<ServiceResponse<Page<BatchAccountInner>>> listByResourceGroupNextSinglePageAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the specified resource group.

ServiceResponse<PageImpl<BatchAccountInner>> *

Observable<ServiceResponse<Page<BatchAccountInner>>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the specified resource group.

Observable<ServiceResponse<Page<BatchAccountInner>>> listByResourceGroupSinglePageAsync(final String resourceGroupName)

Gets information about the Batch accounts associated with the specified resource group.

ServiceResponse<PageImpl<BatchAccountInner>> *

Observable<ServiceResponse<Page<BatchAccountInner>>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName)

Gets information about the Batch accounts associated with the specified resource group.

PagedList<BatchAccountInner> listNext(final String nextPageLink)

Gets information about the Batch accounts associated with the subscription.

Observable<Page<BatchAccountInner>> listNextAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the subscription.

ServiceFuture<List<BatchAccountInner>> listNextAsync(final String nextPageLink, final ServiceFuture<List<BatchAccountInner>> serviceFuture, final ListOperationCallback<BatchAccountInner> serviceCallback)

Gets information about the Batch accounts associated with the subscription.

Observable<ServiceResponse<Page<BatchAccountInner>>> listNextSinglePageAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the subscription.

ServiceResponse<PageImpl<BatchAccountInner>> *

Observable<ServiceResponse<Page<BatchAccountInner>>> listNextWithServiceResponseAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the subscription.

PagedList<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesEndpoints(final String resourceGroupName, final String accountName)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Observable<Page<OutboundEnvironmentEndpointInner>> listOutboundNetworkDependenciesEndpointsAsync(final String resourceGroupName, final String accountName)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

ServiceFuture<List<OutboundEnvironmentEndpointInner>> listOutboundNetworkDependenciesEndpointsAsync(final String resourceGroupName, final String accountName, final ListOperationCallback<OutboundEnvironmentEndpointInner> serviceCallback)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

PagedList<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesEndpointsNext(final String nextPageLink)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Observable<Page<OutboundEnvironmentEndpointInner>> listOutboundNetworkDependenciesEndpointsNextAsync(final String nextPageLink)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

ServiceFuture<List<OutboundEnvironmentEndpointInner>> listOutboundNetworkDependenciesEndpointsNextAsync(final String nextPageLink, final ServiceFuture<List<OutboundEnvironmentEndpointInner>> serviceFuture, final ListOperationCallback<OutboundEnvironmentEndpointInner> serviceCallback)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Observable<ServiceResponse<Page<OutboundEnvironmentEndpointInner>>> listOutboundNetworkDependenciesEndpointsNextSinglePageAsync(final String nextPageLink)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

ServiceResponse<PageImpl<OutboundEnvironmentEndpointInner>> *

Observable<ServiceResponse<Page<OutboundEnvironmentEndpointInner>>> listOutboundNetworkDependenciesEndpointsNextWithServiceResponseAsync(final String nextPageLink)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Observable<ServiceResponse<Page<OutboundEnvironmentEndpointInner>>> listOutboundNetworkDependenciesEndpointsSinglePageAsync(final String resourceGroupName, final String accountName)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

ServiceResponse<PageImpl<OutboundEnvironmentEndpointInner>> *

Observable<ServiceResponse<Page<OutboundEnvironmentEndpointInner>>> listOutboundNetworkDependenciesEndpointsWithServiceResponseAsync(final String resourceGroupName, final String accountName)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Observable<ServiceResponse<Page<BatchAccountInner>>> listSinglePageAsync()

Gets information about the Batch accounts associated with the subscription.

Observable<ServiceResponse<Page<BatchAccountInner>>> listWithServiceResponseAsync()

Gets information about the Batch accounts associated with the subscription.

BatchAccountKeysInner regenerateKey(String resourceGroupName, String accountName, AccountKeyType keyName)

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.

Observable<BatchAccountKeysInner> regenerateKeyAsync(String resourceGroupName, String accountName, AccountKeyType keyName)

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.

ServiceFuture<BatchAccountKeysInner> regenerateKeyAsync(String resourceGroupName, String accountName, AccountKeyType keyName, final ServiceCallback<BatchAccountKeysInner> serviceCallback)

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.

Observable<ServiceResponse<BatchAccountKeysInner>> regenerateKeyWithServiceResponseAsync(String resourceGroupName, String accountName, AccountKeyType keyName)

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.

void synchronizeAutoStorageKeys(String resourceGroupName, String accountName)

Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

Observable<Void> synchronizeAutoStorageKeysAsync(String resourceGroupName, String accountName)

Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

ServiceFuture<Void> synchronizeAutoStorageKeysAsync(String resourceGroupName, String accountName, final ServiceCallback<Void> serviceCallback)

Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

Observable<ServiceResponse<Void>> synchronizeAutoStorageKeysWithServiceResponseAsync(String resourceGroupName, String accountName)

Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

BatchAccountInner update(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters)

Updates the properties of an existing Batch account.

Observable<BatchAccountInner> updateAsync(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters)

Updates the properties of an existing Batch account.

ServiceFuture<BatchAccountInner> updateAsync(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters, final ServiceCallback<BatchAccountInner> serviceCallback)

Updates the properties of an existing Batch account.

Observable<ServiceResponse<BatchAccountInner>> updateWithServiceResponseAsync(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters)

Updates the properties of an existing Batch account.

Inherited Members

Constructor Details

BatchAccountsInner

public BatchAccountsInner(Retrofit retrofit, BatchManagementClientImpl client)

Initializes an instance of BatchAccountsInner.

Parameters:

retrofit - the Retrofit instance built from a Retrofit Builder.
client - the instance of the service client containing this operation class.

Method Details

beginCreate

public BatchAccountInner beginCreate(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
parameters - Additional parameters for account creation.

Returns:

the BatchAccountInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

beginCreateAsync

public Observable beginCreateAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
parameters - Additional parameters for account creation.

Returns:

the observable to the BatchAccountInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginCreateAsync

public ServiceFuture beginCreateAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, final ServiceCallback serviceCallback)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
parameters - Additional parameters for account creation.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginCreateWithServiceResponseAsync

public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
parameters - Additional parameters for account creation.

Returns:

the observable to the BatchAccountInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginDelete

public void beginDelete(String resourceGroupName, String accountName)

Deletes the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

beginDeleteAsync

public Observable beginDeleteAsync(String resourceGroupName, String accountName)

Deletes the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the ServiceResponseWithHeaders object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginDeleteAsync

public ServiceFuture beginDeleteAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback)

Deletes the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginDeleteWithServiceResponseAsync

public Observable> beginDeleteWithServiceResponseAsync(String resourceGroupName, String accountName)

Deletes the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the ServiceResponseWithHeaders object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

create

public BatchAccountInner create(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
parameters - Additional parameters for account creation.

Returns:

the BatchAccountInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

createAsync

public Observable createAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
parameters - Additional parameters for account creation.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

public ServiceFuture createAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters, final ServiceCallback serviceCallback)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
parameters - Additional parameters for account creation.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createWithServiceResponseAsync

public Observable> createWithServiceResponseAsync(String resourceGroupName, String accountName, BatchAccountCreateParameters parameters)

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
parameters - Additional parameters for account creation.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceGroupName, String accountName)

Deletes the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

deleteAsync

public Observable deleteAsync(String resourceGroupName, String accountName)

Deletes the specified Batch account.

Overrides:

BatchAccountsInner.deleteAsync(String resourceGroupName, String accountName)

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

public ServiceFuture deleteAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback)

Deletes the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteWithServiceResponseAsync

public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String accountName)

Deletes the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroup

public BatchAccountInner getByResourceGroup(String resourceGroupName, String accountName)

Gets information about the specified Batch account.

Overrides:

BatchAccountsInner.getByResourceGroup(String resourceGroupName, String accountName)

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the BatchAccountInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getByResourceGroupAsync

public Observable getByResourceGroupAsync(String resourceGroupName, String accountName)

Gets information about the specified Batch account.

Overrides:

BatchAccountsInner.getByResourceGroupAsync(String resourceGroupName, String accountName)

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable to the BatchAccountInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroupAsync

public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback)

Gets information about the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroupWithServiceResponseAsync

public Observable> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String accountName)

Gets information about the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable to the BatchAccountInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getKeys

public BatchAccountKeysInner getKeys(String resourceGroupName, String accountName)

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.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the BatchAccountKeysInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getKeysAsync

public Observable getKeysAsync(String resourceGroupName, String accountName)

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.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable to the BatchAccountKeysInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getKeysAsync

public ServiceFuture getKeysAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback)

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.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getKeysWithServiceResponseAsync

public Observable> getKeysWithServiceResponseAsync(String resourceGroupName, String accountName)

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.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable to the BatchAccountKeysInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

public PagedList list()

Gets information about the Batch accounts associated with the subscription.

Overrides:

BatchAccountsInner.list()

Returns:

the PagedList<BatchAccountInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listAsync

public Observable> listAsync()

Gets information about the Batch accounts associated with the subscription.

Overrides:

BatchAccountsInner.listAsync()

Returns:

the observable to the PagedList<BatchAccountInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public ServiceFuture> listAsync(final ListOperationCallback serviceCallback)

Gets information about the Batch accounts associated with the subscription.

Parameters:

serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByResourceGroup

public PagedList listByResourceGroup(final String resourceGroupName)

Gets information about the Batch accounts associated with the specified resource group.

Overrides:

BatchAccountsInner.listByResourceGroup(final String resourceGroupName)

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.

Returns:

the PagedList<BatchAccountInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listByResourceGroupAsync

public Observable> listByResourceGroupAsync(final String resourceGroupName)

Gets information about the Batch accounts associated with the specified resource group.

Overrides:

BatchAccountsInner.listByResourceGroupAsync(final String resourceGroupName)

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.

Returns:

the observable to the PagedList<BatchAccountInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByResourceGroupAsync

public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ListOperationCallback serviceCallback)

Gets information about the Batch accounts associated with the specified resource group.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByResourceGroupNext

public PagedList listByResourceGroupNext(final String nextPageLink)

Gets information about the Batch accounts associated with the specified resource group.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<BatchAccountInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listByResourceGroupNextAsync

public Observable> listByResourceGroupNextAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the specified resource group.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<BatchAccountInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByResourceGroupNextAsync

public ServiceFuture> listByResourceGroupNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback)

Gets information about the Batch accounts associated with the specified resource group.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.
serviceFuture - the ServiceFuture object tracking the Retrofit calls
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByResourceGroupNextSinglePageAsync

public Observable>> listByResourceGroupNextSinglePageAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the specified resource group.

ServiceResponse<PageImpl<BatchAccountInner>> *

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<BatchAccountInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByResourceGroupNextWithServiceResponseAsync

public Observable>> listByResourceGroupNextWithServiceResponseAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the specified resource group.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<BatchAccountInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByResourceGroupSinglePageAsync

public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName)

Gets information about the Batch accounts associated with the specified resource group.

ServiceResponse<PageImpl<BatchAccountInner>> *

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.

Returns:

the PagedList<BatchAccountInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByResourceGroupWithServiceResponseAsync

public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName)

Gets information about the Batch accounts associated with the specified resource group.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.

Returns:

the observable to the PagedList<BatchAccountInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNext

public PagedList listNext(final String nextPageLink)

Gets information about the Batch accounts associated with the subscription.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<BatchAccountInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listNextAsync

public Observable> listNextAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the subscription.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<BatchAccountInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextAsync

public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback)

Gets information about the Batch accounts associated with the subscription.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.
serviceFuture - the ServiceFuture object tracking the Retrofit calls
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextSinglePageAsync

public Observable>> listNextSinglePageAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the subscription.

ServiceResponse<PageImpl<BatchAccountInner>> *

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<BatchAccountInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextWithServiceResponseAsync

public Observable>> listNextWithServiceResponseAsync(final String nextPageLink)

Gets information about the Batch accounts associated with the subscription.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<BatchAccountInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listOutboundNetworkDependenciesEndpoints

public PagedList listOutboundNetworkDependenciesEndpoints(final String resourceGroupName, final String accountName)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the PagedList<OutboundEnvironmentEndpointInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listOutboundNetworkDependenciesEndpointsAsync

public Observable> listOutboundNetworkDependenciesEndpointsAsync(final String resourceGroupName, final String accountName)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable to the PagedList<OutboundEnvironmentEndpointInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listOutboundNetworkDependenciesEndpointsAsync

public ServiceFuture> listOutboundNetworkDependenciesEndpointsAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listOutboundNetworkDependenciesEndpointsNext

public PagedList listOutboundNetworkDependenciesEndpointsNext(final String nextPageLink)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<OutboundEnvironmentEndpointInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listOutboundNetworkDependenciesEndpointsNextAsync

public Observable> listOutboundNetworkDependenciesEndpointsNextAsync(final String nextPageLink)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<OutboundEnvironmentEndpointInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listOutboundNetworkDependenciesEndpointsNextAsync

public ServiceFuture> listOutboundNetworkDependenciesEndpointsNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.
serviceFuture - the ServiceFuture object tracking the Retrofit calls
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listOutboundNetworkDependenciesEndpointsNextSinglePageAsync

public Observable>> listOutboundNetworkDependenciesEndpointsNextSinglePageAsync(final String nextPageLink)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

ServiceResponse<PageImpl<OutboundEnvironmentEndpointInner>> *

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<OutboundEnvironmentEndpointInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listOutboundNetworkDependenciesEndpointsNextWithServiceResponseAsync

public Observable>> listOutboundNetworkDependenciesEndpointsNextWithServiceResponseAsync(final String nextPageLink)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<OutboundEnvironmentEndpointInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listOutboundNetworkDependenciesEndpointsSinglePageAsync

public Observable>> listOutboundNetworkDependenciesEndpointsSinglePageAsync(final String resourceGroupName, final String accountName)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

ServiceResponse<PageImpl<OutboundEnvironmentEndpointInner>> *

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account. ServiceResponse<PageImpl<OutboundEnvironmentEndpointInner>> *
accountName - The name of the Batch account.

Returns:

the PagedList<OutboundEnvironmentEndpointInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listOutboundNetworkDependenciesEndpointsWithServiceResponseAsync

public Observable>> listOutboundNetworkDependenciesEndpointsWithServiceResponseAsync(final String resourceGroupName, final String accountName)

Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable to the PagedList<OutboundEnvironmentEndpointInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listSinglePageAsync

public Observable>> listSinglePageAsync()

Gets information about the Batch accounts associated with the subscription.

Returns:

the PagedList<BatchAccountInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

public Observable>> listWithServiceResponseAsync()

Gets information about the Batch accounts associated with the subscription.

Returns:

the observable to the PagedList<BatchAccountInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

regenerateKey

public BatchAccountKeysInner regenerateKey(String resourceGroupName, String accountName, AccountKeyType keyName)

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.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
keyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary'

Returns:

the BatchAccountKeysInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

regenerateKeyAsync

public Observable regenerateKeyAsync(String resourceGroupName, String accountName, AccountKeyType keyName)

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.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
keyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary'

Returns:

the observable to the BatchAccountKeysInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

regenerateKeyAsync

public ServiceFuture regenerateKeyAsync(String resourceGroupName, String accountName, AccountKeyType keyName, final ServiceCallback serviceCallback)

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.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
keyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary'
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

regenerateKeyWithServiceResponseAsync

public Observable> regenerateKeyWithServiceResponseAsync(String resourceGroupName, String accountName, AccountKeyType keyName)

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.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
keyName - The type of account key to regenerate. Possible values include: 'Primary', 'Secondary'

Returns:

the observable to the BatchAccountKeysInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

synchronizeAutoStorageKeys

public void synchronizeAutoStorageKeys(String resourceGroupName, String accountName)

Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

synchronizeAutoStorageKeysAsync

public Observable synchronizeAutoStorageKeysAsync(String resourceGroupName, String accountName)

Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

synchronizeAutoStorageKeysAsync

public ServiceFuture synchronizeAutoStorageKeysAsync(String resourceGroupName, String accountName, final ServiceCallback serviceCallback)

Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

synchronizeAutoStorageKeysWithServiceResponseAsync

public Observable> synchronizeAutoStorageKeysWithServiceResponseAsync(String resourceGroupName, String accountName)

Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

update

public BatchAccountInner update(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters)

Updates the properties of an existing Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
parameters - Additional parameters for account update.

Returns:

the BatchAccountInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

updateAsync

public Observable updateAsync(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters)

Updates the properties of an existing Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
parameters - Additional parameters for account update.

Returns:

the observable to the BatchAccountInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters, final ServiceCallback serviceCallback)

Updates the properties of an existing Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
parameters - Additional parameters for account update.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateWithServiceResponseAsync

public Observable> updateWithServiceResponseAsync(String resourceGroupName, String accountName, BatchAccountUpdateParameters parameters)

Updates the properties of an existing Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
parameters - Additional parameters for account update.

Returns:

the observable to the BatchAccountInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to