PoolsInner Class

  • java.lang.Object
    • com.microsoft.azure.management.batch.implementation.PoolsInner

public class PoolsInner

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

Constructor Summary

Constructor Description
PoolsInner(Retrofit retrofit, BatchManagementClientImpl client)

Initializes an instance of PoolsInner.

Method Summary

Modifier and Type Method and Description
void beginDelete(String resourceGroupName, String accountName, String poolName)

Deletes the specified pool.

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

Deletes the specified pool.

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

Deletes the specified pool.

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

Deletes the specified pool.

PoolInner create(String resourceGroupName, String accountName, String poolName, PoolInner parameters)

Creates a new pool inside the specified account.

PoolInner create(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, String ifNoneMatch)

Creates a new pool inside the specified account.

Observable<PoolInner> createAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters)

Creates a new pool inside the specified account.

ServiceFuture<PoolInner> createAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, final ServiceCallback<PoolInner> serviceCallback)

Creates a new pool inside the specified account.

Observable<PoolInner> createAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, String ifNoneMatch)

Creates a new pool inside the specified account.

ServiceFuture<PoolInner> createAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, String ifNoneMatch, final ServiceCallback<PoolInner> serviceCallback)

Creates a new pool inside the specified account.

Observable<ServiceResponseWithHeaders<PoolInner, PoolCreateHeaders>> createWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters)

Creates a new pool inside the specified account.

Observable<ServiceResponseWithHeaders<PoolInner, PoolCreateHeaders>> createWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, String ifNoneMatch)

Creates a new pool inside the specified account.

void delete(String resourceGroupName, String accountName, String poolName)

Deletes the specified pool.

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

Deletes the specified pool.

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

Deletes the specified pool.

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

Deletes the specified pool.

PoolInner disableAutoScale(String resourceGroupName, String accountName, String poolName)

Disables automatic scaling for a pool.

Observable<PoolInner> disableAutoScaleAsync(String resourceGroupName, String accountName, String poolName)

Disables automatic scaling for a pool.

ServiceFuture<PoolInner> disableAutoScaleAsync(String resourceGroupName, String accountName, String poolName, final ServiceCallback<PoolInner> serviceCallback)

Disables automatic scaling for a pool.

Observable<ServiceResponseWithHeaders<PoolInner, PoolDisableAutoScaleHeaders>> disableAutoScaleWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName)

Disables automatic scaling for a pool.

PoolInner get(String resourceGroupName, String accountName, String poolName)

Gets information about the specified pool.

Observable<PoolInner> getAsync(String resourceGroupName, String accountName, String poolName)

Gets information about the specified pool.

ServiceFuture<PoolInner> getAsync(String resourceGroupName, String accountName, String poolName, final ServiceCallback<PoolInner> serviceCallback)

Gets information about the specified pool.

Observable<ServiceResponseWithHeaders<PoolInner, PoolGetHeaders>> getWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName)

Gets information about the specified pool.

PagedList<PoolInner> listByBatchAccount(final String resourceGroupName, final String accountName)

Lists all of the pools in the specified account.

PagedList<PoolInner> listByBatchAccount(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter)

Lists all of the pools in the specified account.

Observable<Page<PoolInner>> listByBatchAccountAsync(final String resourceGroupName, final String accountName)

Lists all of the pools in the specified account.

Observable<Page<PoolInner>> listByBatchAccountAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter)

Lists all of the pools in the specified account.

ServiceFuture<List<PoolInner>> listByBatchAccountAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter, final ListOperationCallback<PoolInner> serviceCallback)

Lists all of the pools in the specified account.

ServiceFuture<List<PoolInner>> listByBatchAccountAsync(final String resourceGroupName, final String accountName, final ListOperationCallback<PoolInner> serviceCallback)

Lists all of the pools in the specified account.

PagedList<PoolInner> listByBatchAccountNext(final String nextPageLink)

Lists all of the pools in the specified account.

Observable<Page<PoolInner>> listByBatchAccountNextAsync(final String nextPageLink)

Lists all of the pools in the specified account.

ServiceFuture<List<PoolInner>> listByBatchAccountNextAsync(final String nextPageLink, final ServiceFuture<List<PoolInner>> serviceFuture, final ListOperationCallback<PoolInner> serviceCallback)

Lists all of the pools in the specified account.

Observable<ServiceResponse<Page<PoolInner>>> listByBatchAccountNextSinglePageAsync(final String nextPageLink)

Lists all of the pools in the specified account.

ServiceResponse<PageImpl<PoolInner>> *

Observable<ServiceResponse<Page<PoolInner>>> listByBatchAccountNextWithServiceResponseAsync(final String nextPageLink)

Lists all of the pools in the specified account.

Observable<ServiceResponse<Page<PoolInner>>> listByBatchAccountSinglePageAsync(final String resourceGroupName, final String accountName)

Lists all of the pools in the specified account.

Observable<ServiceResponse<Page<PoolInner>>> listByBatchAccountSinglePageAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter)

Lists all of the pools in the specified account.

ServiceResponse<PageImpl<PoolInner>> *

Observable<ServiceResponse<Page<PoolInner>>> listByBatchAccountWithServiceResponseAsync(final String resourceGroupName, final String accountName)

Lists all of the pools in the specified account.

Observable<ServiceResponse<Page<PoolInner>>> listByBatchAccountWithServiceResponseAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter)

Lists all of the pools in the specified account.

PoolInner stopResize(String resourceGroupName, String accountName, String poolName)

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 can also be used to halt the initial sizing of the pool when it is created.

Observable<PoolInner> stopResizeAsync(String resourceGroupName, String accountName, String poolName)

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 can also be used to halt the initial sizing of the pool when it is created.

ServiceFuture<PoolInner> stopResizeAsync(String resourceGroupName, String accountName, String poolName, final ServiceCallback<PoolInner> serviceCallback)

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 can also be used to halt the initial sizing of the pool when it is created.

Observable<ServiceResponseWithHeaders<PoolInner, PoolStopResizeHeaders>> stopResizeWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName)

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 can also be used to halt the initial sizing of the pool when it is created.

PoolInner update(String resourceGroupName, String accountName, String poolName, PoolInner parameters)

Updates the properties of an existing pool.

PoolInner update(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch)

Updates the properties of an existing pool.

Observable<PoolInner> updateAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters)

Updates the properties of an existing pool.

ServiceFuture<PoolInner> updateAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, final ServiceCallback<PoolInner> serviceCallback)

Updates the properties of an existing pool.

Observable<PoolInner> updateAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch)

Updates the properties of an existing pool.

ServiceFuture<PoolInner> updateAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, final ServiceCallback<PoolInner> serviceCallback)

Updates the properties of an existing pool.

Observable<ServiceResponseWithHeaders<PoolInner, PoolUpdateHeaders>> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters)

Updates the properties of an existing pool.

Observable<ServiceResponseWithHeaders<PoolInner, PoolUpdateHeaders>> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch)

Updates the properties of an existing pool.

Constructor Details

PoolsInner

public PoolsInner(Retrofit retrofit, BatchManagementClientImpl client)

Initializes an instance of PoolsInner.

Parameters:

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

Method Details

beginDelete

public void beginDelete(String resourceGroupName, String accountName, String poolName)

Deletes the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the 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, String poolName)

Deletes the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the ServiceResponseWithHeaders object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

beginDeleteAsync

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

Deletes the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the 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, String poolName)

Deletes the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the ServiceResponseWithHeaders object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

create

public PoolInner create(String resourceGroupName, String accountName, String poolName, PoolInner parameters)

Creates a new pool inside the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Additional parameters for pool creation.

Returns:

the PoolInner 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

create

public PoolInner create(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, String ifNoneMatch)

Creates a new pool inside the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Additional parameters for pool creation.
ifMatch - The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will always be applied.
ifNoneMatch - Set to '*' to allow a new pool to be created, but to prevent updating an existing pool. Other values will be ignored.

Returns:

the PoolInner 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, String poolName, PoolInner parameters)

Creates a new pool inside the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Additional parameters for pool creation.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

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

Creates a new pool inside the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Additional parameters for pool creation.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

public Observable createAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, String ifNoneMatch)

Creates a new pool inside the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Additional parameters for pool creation.
ifMatch - The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will always be applied.
ifNoneMatch - Set to '*' to allow a new pool to be created, but to prevent updating an existing pool. Other values will be ignored.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

public ServiceFuture createAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, String ifNoneMatch, final ServiceCallback serviceCallback)

Creates a new pool inside the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Additional parameters for pool creation.
ifMatch - The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will always be applied.
ifNoneMatch - Set to '*' to allow a new pool to be created, but to prevent updating an existing pool. Other values will be ignored.
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, String poolName, PoolInner parameters)

Creates a new pool inside the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Additional parameters for pool creation.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createWithServiceResponseAsync

public Observable> createWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, String ifNoneMatch)

Creates a new pool inside the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Additional parameters for pool creation.
ifMatch - The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will always be applied.
ifNoneMatch - Set to '*' to allow a new pool to be created, but to prevent updating an existing pool. Other values will be ignored.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceGroupName, String accountName, String poolName)

Deletes the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the 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, String poolName)

Deletes the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

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

Deletes the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the 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, String poolName)

Deletes the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the observable for the request

Throws:

IllegalArgumentException - thrown if parameters fail the validation

disableAutoScale

public PoolInner disableAutoScale(String resourceGroupName, String accountName, String poolName)

Disables automatic scaling for a pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the PoolInner 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

disableAutoScaleAsync

public Observable disableAutoScaleAsync(String resourceGroupName, String accountName, String poolName)

Disables automatic scaling for a pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

disableAutoScaleAsync

public ServiceFuture disableAutoScaleAsync(String resourceGroupName, String accountName, String poolName, final ServiceCallback serviceCallback)

Disables automatic scaling for a pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

disableAutoScaleWithServiceResponseAsync

public Observable> disableAutoScaleWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName)

Disables automatic scaling for a pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

get

public PoolInner get(String resourceGroupName, String accountName, String poolName)

Gets information about the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the PoolInner 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

getAsync

public Observable getAsync(String resourceGroupName, String accountName, String poolName)

Gets information about the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String resourceGroupName, String accountName, String poolName, final ServiceCallback serviceCallback)

Gets information about the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getWithServiceResponseAsync

public Observable> getWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName)

Gets information about the specified pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccount

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

Lists all of the pools in the specified account.

Parameters:

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

Returns:

the PagedList<PoolInner> 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

listByBatchAccount

public PagedList listByBatchAccount(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter)

Lists all of the pools in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
maxresults - The maximum number of items to return in the response.
select - Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection.
filter - OData filter expression. Valid properties for filtering are: name properties/allocationState properties/allocationStateTransitionTime properties/creationTime properties/provisioningState properties/provisioningStateTransitionTime properties/lastModified properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale properties/scaleSettings/fixedScale

Returns:

the PagedList<PoolInner> 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

listByBatchAccountAsync

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

Lists all of the pools in the specified 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 PagedList<PoolInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountAsync

public Observable> listByBatchAccountAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter)

Lists all of the pools in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
maxresults - The maximum number of items to return in the response.
select - Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection.
filter - OData filter expression. Valid properties for filtering are: name properties/allocationState properties/allocationStateTransitionTime properties/creationTime properties/provisioningState properties/provisioningStateTransitionTime properties/lastModified properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale properties/scaleSettings/fixedScale

Returns:

the observable to the PagedList<PoolInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountAsync

public ServiceFuture> listByBatchAccountAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter, final ListOperationCallback serviceCallback)

Lists all of the pools in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
maxresults - The maximum number of items to return in the response.
select - Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection.
filter - OData filter expression. Valid properties for filtering are: name properties/allocationState properties/allocationStateTransitionTime properties/creationTime properties/provisioningState properties/provisioningStateTransitionTime properties/lastModified properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale properties/scaleSettings/fixedScale
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountAsync

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

Lists all of the pools in the specified 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

listByBatchAccountNext

public PagedList listByBatchAccountNext(final String nextPageLink)

Lists all of the pools in the specified account.

Parameters:

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

Returns:

the PagedList<PoolInner> 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

listByBatchAccountNextAsync

public Observable> listByBatchAccountNextAsync(final String nextPageLink)

Lists all of the pools in the specified account.

Parameters:

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

Returns:

the observable to the PagedList<PoolInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountNextAsync

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

Lists all of the pools in the specified account.

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

listByBatchAccountNextSinglePageAsync

public Observable>> listByBatchAccountNextSinglePageAsync(final String nextPageLink)

Lists all of the pools in the specified account.

ServiceResponse<PageImpl<PoolInner>> *

Parameters:

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

Returns:

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

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountNextWithServiceResponseAsync

public Observable>> listByBatchAccountNextWithServiceResponseAsync(final String nextPageLink)

Lists all of the pools in the specified account.

Parameters:

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

Returns:

the observable to the PagedList<PoolInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountSinglePageAsync

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

Lists all of the pools in the specified account.

Parameters:

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

Returns:

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

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountSinglePageAsync

public Observable>> listByBatchAccountSinglePageAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter)

Lists all of the pools in the specified account.

ServiceResponse<PageImpl<PoolInner>> *

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account. ServiceResponse<PageImpl<PoolInner>> *
accountName - The name of the Batch account. ServiceResponse<PageImpl<PoolInner>> *
maxresults - The maximum number of items to return in the response. ServiceResponse<PageImpl<PoolInner>> *
select - Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection. ServiceResponse<PageImpl<PoolInner>> *
filter - OData filter expression. Valid properties for filtering are: name properties/allocationState properties/allocationStateTransitionTime properties/creationTime properties/provisioningState properties/provisioningStateTransitionTime properties/lastModified properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale properties/scaleSettings/fixedScale

Returns:

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

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountWithServiceResponseAsync

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

Lists all of the pools in the specified 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 PagedList<PoolInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByBatchAccountWithServiceResponseAsync

public Observable>> listByBatchAccountWithServiceResponseAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final String select, final String filter)

Lists all of the pools in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
maxresults - The maximum number of items to return in the response.
select - Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection.
filter - OData filter expression. Valid properties for filtering are: name properties/allocationState properties/allocationStateTransitionTime properties/creationTime properties/provisioningState properties/provisioningStateTransitionTime properties/lastModified properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale properties/scaleSettings/fixedScale

Returns:

the observable to the PagedList<PoolInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

stopResize

public PoolInner stopResize(String resourceGroupName, String accountName, String poolName)

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 can also be used to halt the initial sizing of the pool when it is created.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the PoolInner 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

stopResizeAsync

public Observable stopResizeAsync(String resourceGroupName, String accountName, String poolName)

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 can also be used to halt the initial sizing of the pool when it is created.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

stopResizeAsync

public ServiceFuture stopResizeAsync(String resourceGroupName, String accountName, String poolName, final ServiceCallback serviceCallback)

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 can also be used to halt the initial sizing of the pool when it is created.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

stopResizeWithServiceResponseAsync

public Observable> stopResizeWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName)

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 can also be used to halt the initial sizing of the pool when it is created.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

update

public PoolInner update(String resourceGroupName, String accountName, String poolName, PoolInner parameters)

Updates the properties of an existing pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged.

Returns:

the PoolInner 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

update

public PoolInner update(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch)

Updates the properties of an existing pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged.
ifMatch - The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to apply the operation unconditionally.

Returns:

the PoolInner 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, String poolName, PoolInner parameters)

Updates the properties of an existing pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

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

Updates the properties of an existing pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public Observable updateAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch)

Updates the properties of an existing pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged.
ifMatch - The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to apply the operation unconditionally.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch, final ServiceCallback serviceCallback)

Updates the properties of an existing pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged.
ifMatch - The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to apply the operation unconditionally.
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, String poolName, PoolInner parameters)

Updates the properties of an existing pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateWithServiceResponseAsync

public Observable> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String poolName, PoolInner parameters, String ifMatch)

Updates the properties of an existing pool.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
poolName - The pool name. This must be unique within the account.
parameters - Pool properties that should be updated. Properties that are supplied will be updated, any property not supplied will be unchanged.
ifMatch - The entity state (ETag) version of the pool to update. This value can be omitted or set to "*" to apply the operation unconditionally.

Returns:

the observable to the PoolInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to