Class PoolsImpl

  • All Implemented Interfaces:
    Pools

    public class PoolsImpl
    extends Object
    implements Pools
    An instance of this class provides access to all the operations defined in Pools.
    • Constructor Detail

      • PoolsImpl

        public PoolsImpl​(retrofit2.Retrofit retrofit,
                         BatchServiceClientImpl client)
        Initializes an instance of PoolsImpl.
        Parameters:
        retrofit - the Retrofit instance built from a Retrofit Builder.
        client - the instance of the service client containing this operation class.
    • Method Detail

      • listUsageMetrics

        public com.microsoft.azure.PagedList<PoolUsageMetrics> listUsageMetrics()
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetrics in interface Pools
        Returns:
        the PagedList<PoolUsageMetrics> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listUsageMetricsAsync

        public com.microsoft.rest.ServiceFuture<List<PoolUsageMetrics>> listUsageMetricsAsync​(com.microsoft.azure.ListOperationCallback<PoolUsageMetrics> serviceCallback)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsAsync in interface Pools
        Parameters:
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsAsync

        public rx.Observable<com.microsoft.azure.Page<PoolUsageMetrics>> listUsageMetricsAsync()
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsAsync in interface Pools
        Returns:
        the observable to the PagedList<PoolUsageMetrics> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<PoolUsageMetrics>,​PoolListUsageMetricsHeaders>> listUsageMetricsWithServiceResponseAsync()
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsWithServiceResponseAsync in interface Pools
        Returns:
        the observable to the PagedList<PoolUsageMetrics> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsSinglePageAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<PoolUsageMetrics>,​PoolListUsageMetricsHeaders>> listUsageMetricsSinglePageAsync()
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Returns:
        the PagedList<PoolUsageMetrics> object wrapped in ServiceResponseWithHeaders if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetrics

        public com.microsoft.azure.PagedList<PoolUsageMetrics> listUsageMetrics​(PoolListUsageMetricsOptions poolListUsageMetricsOptions)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetrics in interface Pools
        Parameters:
        poolListUsageMetricsOptions - Additional parameters for the operation
        Returns:
        the PagedList<PoolUsageMetrics> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listUsageMetricsAsync

        public com.microsoft.rest.ServiceFuture<List<PoolUsageMetrics>> listUsageMetricsAsync​(PoolListUsageMetricsOptions poolListUsageMetricsOptions,
                                                                                              com.microsoft.azure.ListOperationCallback<PoolUsageMetrics> serviceCallback)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsAsync in interface Pools
        Parameters:
        poolListUsageMetricsOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsAsync

        public rx.Observable<com.microsoft.azure.Page<PoolUsageMetrics>> listUsageMetricsAsync​(PoolListUsageMetricsOptions poolListUsageMetricsOptions)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsAsync in interface Pools
        Parameters:
        poolListUsageMetricsOptions - Additional parameters for the operation
        Returns:
        the observable to the PagedList<PoolUsageMetrics> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<PoolUsageMetrics>,​PoolListUsageMetricsHeaders>> listUsageMetricsWithServiceResponseAsync​(PoolListUsageMetricsOptions poolListUsageMetricsOptions)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsWithServiceResponseAsync in interface Pools
        Parameters:
        poolListUsageMetricsOptions - Additional parameters for the operation
        Returns:
        the observable to the PagedList<PoolUsageMetrics> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsSinglePageAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<PoolUsageMetrics>,​PoolListUsageMetricsHeaders>> listUsageMetricsSinglePageAsync​(PoolListUsageMetricsOptions poolListUsageMetricsOptions)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned. ServiceResponseWithHeaders, PoolListUsageMetricsHeaders> * @param poolListUsageMetricsOptions Additional parameters for the operation
        Returns:
        the PagedList<PoolUsageMetrics> object wrapped in ServiceResponseWithHeaders if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • add

        public void add​(PoolAddParameter pool)
        Adds a Pool to the specified Account. When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
        Specified by:
        add in interface Pools
        Parameters:
        pool - The Pool to be added.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • addAsync

        public com.microsoft.rest.ServiceFuture<Void> addAsync​(PoolAddParameter pool,
                                                               com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Adds a Pool to the specified Account. When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
        Specified by:
        addAsync in interface Pools
        Parameters:
        pool - The Pool to be added.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • addAsync

        public rx.Observable<Void> addAsync​(PoolAddParameter pool)
        Adds a Pool to the specified Account. When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
        Specified by:
        addAsync in interface Pools
        Parameters:
        pool - The Pool to be added.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • addWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolAddHeaders>> addWithServiceResponseAsync​(PoolAddParameter pool)
        Adds a Pool to the specified Account. When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
        Specified by:
        addWithServiceResponseAsync in interface Pools
        Parameters:
        pool - The Pool to be added.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • add

        public void add​(PoolAddParameter pool,
                        PoolAddOptions poolAddOptions)
        Adds a Pool to the specified Account. When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
        Specified by:
        add in interface Pools
        Parameters:
        pool - The Pool to be added.
        poolAddOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • addAsync

        public com.microsoft.rest.ServiceFuture<Void> addAsync​(PoolAddParameter pool,
                                                               PoolAddOptions poolAddOptions,
                                                               com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Adds a Pool to the specified Account. When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
        Specified by:
        addAsync in interface Pools
        Parameters:
        pool - The Pool to be added.
        poolAddOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • addAsync

        public rx.Observable<Void> addAsync​(PoolAddParameter pool,
                                            PoolAddOptions poolAddOptions)
        Adds a Pool to the specified Account. When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
        Specified by:
        addAsync in interface Pools
        Parameters:
        pool - The Pool to be added.
        poolAddOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • addWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolAddHeaders>> addWithServiceResponseAsync​(PoolAddParameter pool,
                                                                                                                                   PoolAddOptions poolAddOptions)
        Adds a Pool to the specified Account. When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.
        Specified by:
        addWithServiceResponseAsync in interface Pools
        Parameters:
        pool - The Pool to be added.
        poolAddOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • list

        public com.microsoft.azure.PagedList<CloudPool> list()
        Lists all of the Pools in the specified Account.
        Specified by:
        list in interface Pools
        Returns:
        the PagedList<CloudPool> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listAsync

        public com.microsoft.rest.ServiceFuture<List<CloudPool>> listAsync​(com.microsoft.azure.ListOperationCallback<CloudPool> serviceCallback)
        Lists all of the Pools in the specified Account.
        Specified by:
        listAsync in interface Pools
        Parameters:
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listAsync

        public rx.Observable<com.microsoft.azure.Page<CloudPool>> listAsync()
        Lists all of the Pools in the specified Account.
        Specified by:
        listAsync in interface Pools
        Returns:
        the observable to the PagedList<CloudPool> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<CloudPool>,​PoolListHeaders>> listWithServiceResponseAsync()
        Lists all of the Pools in the specified Account.
        Specified by:
        listWithServiceResponseAsync in interface Pools
        Returns:
        the observable to the PagedList<CloudPool> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listSinglePageAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<CloudPool>,​PoolListHeaders>> listSinglePageAsync()
        Lists all of the Pools in the specified Account.
        Returns:
        the PagedList<CloudPool> object wrapped in ServiceResponseWithHeaders if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • list

        public com.microsoft.azure.PagedList<CloudPool> list​(PoolListOptions poolListOptions)
        Lists all of the Pools in the specified Account.
        Specified by:
        list in interface Pools
        Parameters:
        poolListOptions - Additional parameters for the operation
        Returns:
        the PagedList<CloudPool> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listAsync

        public com.microsoft.rest.ServiceFuture<List<CloudPool>> listAsync​(PoolListOptions poolListOptions,
                                                                           com.microsoft.azure.ListOperationCallback<CloudPool> serviceCallback)
        Lists all of the Pools in the specified Account.
        Specified by:
        listAsync in interface Pools
        Parameters:
        poolListOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listAsync

        public rx.Observable<com.microsoft.azure.Page<CloudPool>> listAsync​(PoolListOptions poolListOptions)
        Lists all of the Pools in the specified Account.
        Specified by:
        listAsync in interface Pools
        Parameters:
        poolListOptions - Additional parameters for the operation
        Returns:
        the observable to the PagedList<CloudPool> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<CloudPool>,​PoolListHeaders>> listWithServiceResponseAsync​(PoolListOptions poolListOptions)
        Lists all of the Pools in the specified Account.
        Specified by:
        listWithServiceResponseAsync in interface Pools
        Parameters:
        poolListOptions - Additional parameters for the operation
        Returns:
        the observable to the PagedList<CloudPool> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listSinglePageAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<CloudPool>,​PoolListHeaders>> listSinglePageAsync​(PoolListOptions poolListOptions)
        Lists all of the Pools in the specified Account. ServiceResponseWithHeaders, PoolListHeaders> * @param poolListOptions Additional parameters for the operation
        Returns:
        the PagedList<CloudPool> object wrapped in ServiceResponseWithHeaders if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • delete

        public void delete​(String poolId)
        Deletes a Pool from the specified Account. When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.
        Specified by:
        delete in interface Pools
        Parameters:
        poolId - The ID of the Pool to delete.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • deleteAsync

        public com.microsoft.rest.ServiceFuture<Void> deleteAsync​(String poolId,
                                                                  com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Deletes a Pool from the specified Account. When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.
        Specified by:
        deleteAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to delete.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deleteAsync

        public rx.Observable<Void> deleteAsync​(String poolId)
        Deletes a Pool from the specified Account. When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.
        Specified by:
        deleteAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to delete.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deleteWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolDeleteHeaders>> deleteWithServiceResponseAsync​(String poolId)
        Deletes a Pool from the specified Account. When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.
        Specified by:
        deleteWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to delete.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • delete

        public void delete​(String poolId,
                           PoolDeleteOptions poolDeleteOptions)
        Deletes a Pool from the specified Account. When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.
        Specified by:
        delete in interface Pools
        Parameters:
        poolId - The ID of the Pool to delete.
        poolDeleteOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • deleteAsync

        public com.microsoft.rest.ServiceFuture<Void> deleteAsync​(String poolId,
                                                                  PoolDeleteOptions poolDeleteOptions,
                                                                  com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Deletes a Pool from the specified Account. When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.
        Specified by:
        deleteAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to delete.
        poolDeleteOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deleteAsync

        public rx.Observable<Void> deleteAsync​(String poolId,
                                               PoolDeleteOptions poolDeleteOptions)
        Deletes a Pool from the specified Account. When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.
        Specified by:
        deleteAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to delete.
        poolDeleteOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deleteWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolDeleteHeaders>> deleteWithServiceResponseAsync​(String poolId,
                                                                                                                                         PoolDeleteOptions poolDeleteOptions)
        Deletes a Pool from the specified Account. When you request that a Pool be deleted, the following actions occur: the Pool state is set to deleting; any ongoing resize operation on the Pool are stopped; the Batch service starts resizing the Pool to zero Compute Nodes; any Tasks running on existing Compute Nodes are terminated and requeued (as if a resize Pool operation had been requested with the default requeue option); finally, the Pool is removed from the system. Because running Tasks are requeued, the user can rerun these Tasks by updating their Job to target a different Pool. The Tasks can then run on the new Pool. If you want to override the requeue behavior, then you should call resize Pool explicitly to shrink the Pool to zero size before deleting the Pool. If you call an Update, Patch or Delete API on a Pool in the deleting state, it will fail with HTTP status code 409 with error code PoolBeingDeleted.
        Specified by:
        deleteWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to delete.
        poolDeleteOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • exists

        public boolean exists​(String poolId)
        Gets basic properties of a Pool.
        Specified by:
        exists in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        Returns:
        the boolean object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • existsAsync

        public com.microsoft.rest.ServiceFuture<Boolean> existsAsync​(String poolId,
                                                                     com.microsoft.rest.ServiceCallback<Boolean> serviceCallback)
        Gets basic properties of a Pool.
        Specified by:
        existsAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • existsAsync

        public rx.Observable<Boolean> existsAsync​(String poolId)
        Gets basic properties of a Pool.
        Specified by:
        existsAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        Returns:
        the observable to the Boolean object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • existsWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Boolean,​PoolExistsHeaders>> existsWithServiceResponseAsync​(String poolId)
        Gets basic properties of a Pool.
        Specified by:
        existsWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        Returns:
        the observable to the Boolean object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • exists

        public boolean exists​(String poolId,
                              PoolExistsOptions poolExistsOptions)
        Gets basic properties of a Pool.
        Specified by:
        exists in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        poolExistsOptions - Additional parameters for the operation
        Returns:
        the boolean object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • existsAsync

        public com.microsoft.rest.ServiceFuture<Boolean> existsAsync​(String poolId,
                                                                     PoolExistsOptions poolExistsOptions,
                                                                     com.microsoft.rest.ServiceCallback<Boolean> serviceCallback)
        Gets basic properties of a Pool.
        Specified by:
        existsAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        poolExistsOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • existsAsync

        public rx.Observable<Boolean> existsAsync​(String poolId,
                                                  PoolExistsOptions poolExistsOptions)
        Gets basic properties of a Pool.
        Specified by:
        existsAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        poolExistsOptions - Additional parameters for the operation
        Returns:
        the observable to the Boolean object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • existsWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Boolean,​PoolExistsHeaders>> existsWithServiceResponseAsync​(String poolId,
                                                                                                                                            PoolExistsOptions poolExistsOptions)
        Gets basic properties of a Pool.
        Specified by:
        existsWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        poolExistsOptions - Additional parameters for the operation
        Returns:
        the observable to the Boolean object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • get

        public CloudPool get​(String poolId)
        Gets information about the specified Pool.
        Specified by:
        get in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        Returns:
        the CloudPool object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • getAsync

        public com.microsoft.rest.ServiceFuture<CloudPool> getAsync​(String poolId,
                                                                    com.microsoft.rest.ServiceCallback<CloudPool> serviceCallback)
        Gets information about the specified Pool.
        Specified by:
        getAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getAsync

        public rx.Observable<CloudPool> getAsync​(String poolId)
        Gets information about the specified Pool.
        Specified by:
        getAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        Returns:
        the observable to the CloudPool object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<CloudPool,​PoolGetHeaders>> getWithServiceResponseAsync​(String poolId)
        Gets information about the specified Pool.
        Specified by:
        getWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        Returns:
        the observable to the CloudPool object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • get

        public CloudPool get​(String poolId,
                             PoolGetOptions poolGetOptions)
        Gets information about the specified Pool.
        Specified by:
        get in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        poolGetOptions - Additional parameters for the operation
        Returns:
        the CloudPool object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • getAsync

        public com.microsoft.rest.ServiceFuture<CloudPool> getAsync​(String poolId,
                                                                    PoolGetOptions poolGetOptions,
                                                                    com.microsoft.rest.ServiceCallback<CloudPool> serviceCallback)
        Gets information about the specified Pool.
        Specified by:
        getAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        poolGetOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getAsync

        public rx.Observable<CloudPool> getAsync​(String poolId,
                                                 PoolGetOptions poolGetOptions)
        Gets information about the specified Pool.
        Specified by:
        getAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        poolGetOptions - Additional parameters for the operation
        Returns:
        the observable to the CloudPool object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<CloudPool,​PoolGetHeaders>> getWithServiceResponseAsync​(String poolId,
                                                                                                                                        PoolGetOptions poolGetOptions)
        Gets information about the specified Pool.
        Specified by:
        getWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to get.
        poolGetOptions - Additional parameters for the operation
        Returns:
        the observable to the CloudPool object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • patch

        public void patch​(String poolId,
                          PoolPatchParameter poolPatchParameter)
        Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.
        Specified by:
        patch in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolPatchParameter - The parameters for the request.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • patchAsync

        public com.microsoft.rest.ServiceFuture<Void> patchAsync​(String poolId,
                                                                 PoolPatchParameter poolPatchParameter,
                                                                 com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.
        Specified by:
        patchAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolPatchParameter - The parameters for the request.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • patchAsync

        public rx.Observable<Void> patchAsync​(String poolId,
                                              PoolPatchParameter poolPatchParameter)
        Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.
        Specified by:
        patchAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolPatchParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • patchWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolPatchHeaders>> patchWithServiceResponseAsync​(String poolId,
                                                                                                                                       PoolPatchParameter poolPatchParameter)
        Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.
        Specified by:
        patchWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolPatchParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • patch

        public void patch​(String poolId,
                          PoolPatchParameter poolPatchParameter,
                          PoolPatchOptions poolPatchOptions)
        Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.
        Specified by:
        patch in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolPatchParameter - The parameters for the request.
        poolPatchOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • patchAsync

        public com.microsoft.rest.ServiceFuture<Void> patchAsync​(String poolId,
                                                                 PoolPatchParameter poolPatchParameter,
                                                                 PoolPatchOptions poolPatchOptions,
                                                                 com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.
        Specified by:
        patchAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolPatchParameter - The parameters for the request.
        poolPatchOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • patchAsync

        public rx.Observable<Void> patchAsync​(String poolId,
                                              PoolPatchParameter poolPatchParameter,
                                              PoolPatchOptions poolPatchOptions)
        Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.
        Specified by:
        patchAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolPatchParameter - The parameters for the request.
        poolPatchOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • patchWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolPatchHeaders>> patchWithServiceResponseAsync​(String poolId,
                                                                                                                                       PoolPatchParameter poolPatchParameter,
                                                                                                                                       PoolPatchOptions poolPatchOptions)
        Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask.
        Specified by:
        patchWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolPatchParameter - The parameters for the request.
        poolPatchOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • disableAutoScale

        public void disableAutoScale​(String poolId)
        Disables automatic scaling for a Pool.
        Specified by:
        disableAutoScale in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to disable automatic scaling.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • disableAutoScaleAsync

        public com.microsoft.rest.ServiceFuture<Void> disableAutoScaleAsync​(String poolId,
                                                                            com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Disables automatic scaling for a Pool.
        Specified by:
        disableAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to disable automatic scaling.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • disableAutoScaleAsync

        public rx.Observable<Void> disableAutoScaleAsync​(String poolId)
        Disables automatic scaling for a Pool.
        Specified by:
        disableAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to disable automatic scaling.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • disableAutoScaleWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolDisableAutoScaleHeaders>> disableAutoScaleWithServiceResponseAsync​(String poolId)
        Disables automatic scaling for a Pool.
        Specified by:
        disableAutoScaleWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to disable automatic scaling.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • disableAutoScale

        public void disableAutoScale​(String poolId,
                                     PoolDisableAutoScaleOptions poolDisableAutoScaleOptions)
        Disables automatic scaling for a Pool.
        Specified by:
        disableAutoScale in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to disable automatic scaling.
        poolDisableAutoScaleOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • disableAutoScaleAsync

        public com.microsoft.rest.ServiceFuture<Void> disableAutoScaleAsync​(String poolId,
                                                                            PoolDisableAutoScaleOptions poolDisableAutoScaleOptions,
                                                                            com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Disables automatic scaling for a Pool.
        Specified by:
        disableAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to disable automatic scaling.
        poolDisableAutoScaleOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • disableAutoScaleAsync

        public rx.Observable<Void> disableAutoScaleAsync​(String poolId,
                                                         PoolDisableAutoScaleOptions poolDisableAutoScaleOptions)
        Disables automatic scaling for a Pool.
        Specified by:
        disableAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to disable automatic scaling.
        poolDisableAutoScaleOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • disableAutoScaleWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolDisableAutoScaleHeaders>> disableAutoScaleWithServiceResponseAsync​(String poolId,
                                                                                                                                                             PoolDisableAutoScaleOptions poolDisableAutoScaleOptions)
        Disables automatic scaling for a Pool.
        Specified by:
        disableAutoScaleWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to disable automatic scaling.
        poolDisableAutoScaleOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • enableAutoScale

        public void enableAutoScale​(String poolId,
                                    PoolEnableAutoScaleParameter poolEnableAutoScaleParameter)
        Enables automatic scaling for a Pool. You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
        Specified by:
        enableAutoScale in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to enable automatic scaling.
        poolEnableAutoScaleParameter - The parameters for the request.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • enableAutoScaleAsync

        public com.microsoft.rest.ServiceFuture<Void> enableAutoScaleAsync​(String poolId,
                                                                           PoolEnableAutoScaleParameter poolEnableAutoScaleParameter,
                                                                           com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Enables automatic scaling for a Pool. You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
        Specified by:
        enableAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to enable automatic scaling.
        poolEnableAutoScaleParameter - The parameters for the request.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • enableAutoScaleAsync

        public rx.Observable<Void> enableAutoScaleAsync​(String poolId,
                                                        PoolEnableAutoScaleParameter poolEnableAutoScaleParameter)
        Enables automatic scaling for a Pool. You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
        Specified by:
        enableAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to enable automatic scaling.
        poolEnableAutoScaleParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • enableAutoScaleWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolEnableAutoScaleHeaders>> enableAutoScaleWithServiceResponseAsync​(String poolId,
                                                                                                                                                           PoolEnableAutoScaleParameter poolEnableAutoScaleParameter)
        Enables automatic scaling for a Pool. You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
        Specified by:
        enableAutoScaleWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to enable automatic scaling.
        poolEnableAutoScaleParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • enableAutoScale

        public void enableAutoScale​(String poolId,
                                    PoolEnableAutoScaleParameter poolEnableAutoScaleParameter,
                                    PoolEnableAutoScaleOptions poolEnableAutoScaleOptions)
        Enables automatic scaling for a Pool. You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
        Specified by:
        enableAutoScale in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to enable automatic scaling.
        poolEnableAutoScaleParameter - The parameters for the request.
        poolEnableAutoScaleOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • enableAutoScaleAsync

        public com.microsoft.rest.ServiceFuture<Void> enableAutoScaleAsync​(String poolId,
                                                                           PoolEnableAutoScaleParameter poolEnableAutoScaleParameter,
                                                                           PoolEnableAutoScaleOptions poolEnableAutoScaleOptions,
                                                                           com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Enables automatic scaling for a Pool. You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
        Specified by:
        enableAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to enable automatic scaling.
        poolEnableAutoScaleParameter - The parameters for the request.
        poolEnableAutoScaleOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • enableAutoScaleAsync

        public rx.Observable<Void> enableAutoScaleAsync​(String poolId,
                                                        PoolEnableAutoScaleParameter poolEnableAutoScaleParameter,
                                                        PoolEnableAutoScaleOptions poolEnableAutoScaleOptions)
        Enables automatic scaling for a Pool. You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
        Specified by:
        enableAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to enable automatic scaling.
        poolEnableAutoScaleParameter - The parameters for the request.
        poolEnableAutoScaleOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • enableAutoScaleWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolEnableAutoScaleHeaders>> enableAutoScaleWithServiceResponseAsync​(String poolId,
                                                                                                                                                           PoolEnableAutoScaleParameter poolEnableAutoScaleParameter,
                                                                                                                                                           PoolEnableAutoScaleOptions poolEnableAutoScaleOptions)
        Enables automatic scaling for a Pool. You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
        Specified by:
        enableAutoScaleWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to enable automatic scaling.
        poolEnableAutoScaleParameter - The parameters for the request.
        poolEnableAutoScaleOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • evaluateAutoScale

        public AutoScaleRun evaluateAutoScale​(String poolId,
                                              String autoScaleFormula)
        Gets the result of evaluating an automatic scaling formula on the Pool. This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
        Specified by:
        evaluateAutoScale in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to evaluate the automatic scaling formula.
        autoScaleFormula - The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).
        Returns:
        the AutoScaleRun object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • evaluateAutoScaleAsync

        public com.microsoft.rest.ServiceFuture<AutoScaleRun> evaluateAutoScaleAsync​(String poolId,
                                                                                     String autoScaleFormula,
                                                                                     com.microsoft.rest.ServiceCallback<AutoScaleRun> serviceCallback)
        Gets the result of evaluating an automatic scaling formula on the Pool. This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
        Specified by:
        evaluateAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to evaluate the automatic scaling formula.
        autoScaleFormula - The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • evaluateAutoScaleAsync

        public rx.Observable<AutoScaleRun> evaluateAutoScaleAsync​(String poolId,
                                                                  String autoScaleFormula)
        Gets the result of evaluating an automatic scaling formula on the Pool. This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
        Specified by:
        evaluateAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to evaluate the automatic scaling formula.
        autoScaleFormula - The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).
        Returns:
        the observable to the AutoScaleRun object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • evaluateAutoScaleWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<AutoScaleRun,​PoolEvaluateAutoScaleHeaders>> evaluateAutoScaleWithServiceResponseAsync​(String poolId,
                                                                                                                                                                       String autoScaleFormula)
        Gets the result of evaluating an automatic scaling formula on the Pool. This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
        Specified by:
        evaluateAutoScaleWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to evaluate the automatic scaling formula.
        autoScaleFormula - The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).
        Returns:
        the observable to the AutoScaleRun object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • evaluateAutoScale

        public AutoScaleRun evaluateAutoScale​(String poolId,
                                              String autoScaleFormula,
                                              PoolEvaluateAutoScaleOptions poolEvaluateAutoScaleOptions)
        Gets the result of evaluating an automatic scaling formula on the Pool. This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
        Specified by:
        evaluateAutoScale in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to evaluate the automatic scaling formula.
        autoScaleFormula - The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).
        poolEvaluateAutoScaleOptions - Additional parameters for the operation
        Returns:
        the AutoScaleRun object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • evaluateAutoScaleAsync

        public com.microsoft.rest.ServiceFuture<AutoScaleRun> evaluateAutoScaleAsync​(String poolId,
                                                                                     String autoScaleFormula,
                                                                                     PoolEvaluateAutoScaleOptions poolEvaluateAutoScaleOptions,
                                                                                     com.microsoft.rest.ServiceCallback<AutoScaleRun> serviceCallback)
        Gets the result of evaluating an automatic scaling formula on the Pool. This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
        Specified by:
        evaluateAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to evaluate the automatic scaling formula.
        autoScaleFormula - The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).
        poolEvaluateAutoScaleOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • evaluateAutoScaleAsync

        public rx.Observable<AutoScaleRun> evaluateAutoScaleAsync​(String poolId,
                                                                  String autoScaleFormula,
                                                                  PoolEvaluateAutoScaleOptions poolEvaluateAutoScaleOptions)
        Gets the result of evaluating an automatic scaling formula on the Pool. This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
        Specified by:
        evaluateAutoScaleAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to evaluate the automatic scaling formula.
        autoScaleFormula - The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).
        poolEvaluateAutoScaleOptions - Additional parameters for the operation
        Returns:
        the observable to the AutoScaleRun object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • evaluateAutoScaleWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<AutoScaleRun,​PoolEvaluateAutoScaleHeaders>> evaluateAutoScaleWithServiceResponseAsync​(String poolId,
                                                                                                                                                                       String autoScaleFormula,
                                                                                                                                                                       PoolEvaluateAutoScaleOptions poolEvaluateAutoScaleOptions)
        Gets the result of evaluating an automatic scaling formula on the Pool. This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
        Specified by:
        evaluateAutoScaleWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool on which to evaluate the automatic scaling formula.
        autoScaleFormula - The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling).
        poolEvaluateAutoScaleOptions - Additional parameters for the operation
        Returns:
        the observable to the AutoScaleRun object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • resize

        public void resize​(String poolId,
                           PoolResizeParameter poolResizeParameter)
        Changes the number of Compute Nodes that are assigned to a Pool. You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.
        Specified by:
        resize in interface Pools
        Parameters:
        poolId - The ID of the Pool to resize.
        poolResizeParameter - The parameters for the request.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • resizeAsync

        public com.microsoft.rest.ServiceFuture<Void> resizeAsync​(String poolId,
                                                                  PoolResizeParameter poolResizeParameter,
                                                                  com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Changes the number of Compute Nodes that are assigned to a Pool. You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.
        Specified by:
        resizeAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to resize.
        poolResizeParameter - The parameters for the request.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • resizeAsync

        public rx.Observable<Void> resizeAsync​(String poolId,
                                               PoolResizeParameter poolResizeParameter)
        Changes the number of Compute Nodes that are assigned to a Pool. You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.
        Specified by:
        resizeAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to resize.
        poolResizeParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • resizeWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolResizeHeaders>> resizeWithServiceResponseAsync​(String poolId,
                                                                                                                                         PoolResizeParameter poolResizeParameter)
        Changes the number of Compute Nodes that are assigned to a Pool. You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.
        Specified by:
        resizeWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to resize.
        poolResizeParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • resize

        public void resize​(String poolId,
                           PoolResizeParameter poolResizeParameter,
                           PoolResizeOptions poolResizeOptions)
        Changes the number of Compute Nodes that are assigned to a Pool. You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.
        Specified by:
        resize in interface Pools
        Parameters:
        poolId - The ID of the Pool to resize.
        poolResizeParameter - The parameters for the request.
        poolResizeOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • resizeAsync

        public com.microsoft.rest.ServiceFuture<Void> resizeAsync​(String poolId,
                                                                  PoolResizeParameter poolResizeParameter,
                                                                  PoolResizeOptions poolResizeOptions,
                                                                  com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Changes the number of Compute Nodes that are assigned to a Pool. You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.
        Specified by:
        resizeAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to resize.
        poolResizeParameter - The parameters for the request.
        poolResizeOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • resizeAsync

        public rx.Observable<Void> resizeAsync​(String poolId,
                                               PoolResizeParameter poolResizeParameter,
                                               PoolResizeOptions poolResizeOptions)
        Changes the number of Compute Nodes that are assigned to a Pool. You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.
        Specified by:
        resizeAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to resize.
        poolResizeParameter - The parameters for the request.
        poolResizeOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • resizeWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolResizeHeaders>> resizeWithServiceResponseAsync​(String poolId,
                                                                                                                                         PoolResizeParameter poolResizeParameter,
                                                                                                                                         PoolResizeOptions poolResizeOptions)
        Changes the number of Compute Nodes that are assigned to a Pool. You can only resize a Pool when its allocation state is steady. If the Pool is already resizing, the request fails with status code 409. When you resize a Pool, the Pool's allocation state changes from steady to resizing. You cannot resize Pools which are configured for automatic scaling. If you try to do this, the Batch service returns an error 409. If you resize a Pool downwards, the Batch service chooses which Compute Nodes to remove. To remove specific Compute Nodes, use the Pool remove Compute Nodes API instead.
        Specified by:
        resizeWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to resize.
        poolResizeParameter - The parameters for the request.
        poolResizeOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • stopResize

        public void stopResize​(String poolId)
        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 Compute 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.
        Specified by:
        stopResize in interface Pools
        Parameters:
        poolId - The ID of the Pool whose resizing you want to stop.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • stopResizeAsync

        public com.microsoft.rest.ServiceFuture<Void> stopResizeAsync​(String poolId,
                                                                      com.microsoft.rest.ServiceCallback<Void> 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 Compute 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.
        Specified by:
        stopResizeAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool whose resizing you want to stop.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • stopResizeAsync

        public rx.Observable<Void> stopResizeAsync​(String poolId)
        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 Compute 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.
        Specified by:
        stopResizeAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool whose resizing you want to stop.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • stopResizeWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolStopResizeHeaders>> stopResizeWithServiceResponseAsync​(String poolId)
        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 Compute 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.
        Specified by:
        stopResizeWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool whose resizing you want to stop.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • stopResize

        public void stopResize​(String poolId,
                               PoolStopResizeOptions poolStopResizeOptions)
        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 Compute 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.
        Specified by:
        stopResize in interface Pools
        Parameters:
        poolId - The ID of the Pool whose resizing you want to stop.
        poolStopResizeOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • stopResizeAsync

        public com.microsoft.rest.ServiceFuture<Void> stopResizeAsync​(String poolId,
                                                                      PoolStopResizeOptions poolStopResizeOptions,
                                                                      com.microsoft.rest.ServiceCallback<Void> 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 Compute 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.
        Specified by:
        stopResizeAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool whose resizing you want to stop.
        poolStopResizeOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • stopResizeAsync

        public rx.Observable<Void> stopResizeAsync​(String poolId,
                                                   PoolStopResizeOptions poolStopResizeOptions)
        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 Compute 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.
        Specified by:
        stopResizeAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool whose resizing you want to stop.
        poolStopResizeOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • stopResizeWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolStopResizeHeaders>> stopResizeWithServiceResponseAsync​(String poolId,
                                                                                                                                                 PoolStopResizeOptions poolStopResizeOptions)
        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 Compute 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.
        Specified by:
        stopResizeWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool whose resizing you want to stop.
        poolStopResizeOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updateProperties

        public void updateProperties​(String poolId,
                                     PoolUpdatePropertiesParameter poolUpdatePropertiesParameter)
        Updates the properties of the specified Pool. This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.
        Specified by:
        updateProperties in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolUpdatePropertiesParameter - The parameters for the request.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • updatePropertiesAsync

        public com.microsoft.rest.ServiceFuture<Void> updatePropertiesAsync​(String poolId,
                                                                            PoolUpdatePropertiesParameter poolUpdatePropertiesParameter,
                                                                            com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Updates the properties of the specified Pool. This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.
        Specified by:
        updatePropertiesAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolUpdatePropertiesParameter - The parameters for the request.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updatePropertiesAsync

        public rx.Observable<Void> updatePropertiesAsync​(String poolId,
                                                         PoolUpdatePropertiesParameter poolUpdatePropertiesParameter)
        Updates the properties of the specified Pool. This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.
        Specified by:
        updatePropertiesAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolUpdatePropertiesParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updatePropertiesWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolUpdatePropertiesHeaders>> updatePropertiesWithServiceResponseAsync​(String poolId,
                                                                                                                                                             PoolUpdatePropertiesParameter poolUpdatePropertiesParameter)
        Updates the properties of the specified Pool. This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.
        Specified by:
        updatePropertiesWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolUpdatePropertiesParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updateProperties

        public void updateProperties​(String poolId,
                                     PoolUpdatePropertiesParameter poolUpdatePropertiesParameter,
                                     PoolUpdatePropertiesOptions poolUpdatePropertiesOptions)
        Updates the properties of the specified Pool. This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.
        Specified by:
        updateProperties in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolUpdatePropertiesParameter - The parameters for the request.
        poolUpdatePropertiesOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • updatePropertiesAsync

        public com.microsoft.rest.ServiceFuture<Void> updatePropertiesAsync​(String poolId,
                                                                            PoolUpdatePropertiesParameter poolUpdatePropertiesParameter,
                                                                            PoolUpdatePropertiesOptions poolUpdatePropertiesOptions,
                                                                            com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Updates the properties of the specified Pool. This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.
        Specified by:
        updatePropertiesAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolUpdatePropertiesParameter - The parameters for the request.
        poolUpdatePropertiesOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updatePropertiesAsync

        public rx.Observable<Void> updatePropertiesAsync​(String poolId,
                                                         PoolUpdatePropertiesParameter poolUpdatePropertiesParameter,
                                                         PoolUpdatePropertiesOptions poolUpdatePropertiesOptions)
        Updates the properties of the specified Pool. This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.
        Specified by:
        updatePropertiesAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolUpdatePropertiesParameter - The parameters for the request.
        poolUpdatePropertiesOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updatePropertiesWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolUpdatePropertiesHeaders>> updatePropertiesWithServiceResponseAsync​(String poolId,
                                                                                                                                                             PoolUpdatePropertiesParameter poolUpdatePropertiesParameter,
                                                                                                                                                             PoolUpdatePropertiesOptions poolUpdatePropertiesOptions)
        Updates the properties of the specified Pool. This fully replaces all the updatable properties of the Pool. For example, if the Pool has a StartTask associated with it and if StartTask is not specified with this request, then the Batch service will remove the existing StartTask.
        Specified by:
        updatePropertiesWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool to update.
        poolUpdatePropertiesParameter - The parameters for the request.
        poolUpdatePropertiesOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • removeNodes

        public void removeNodes​(String poolId,
                                NodeRemoveParameter nodeRemoveParameter)
        Removes Compute Nodes from the specified Pool. This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.
        Specified by:
        removeNodes in interface Pools
        Parameters:
        poolId - The ID of the Pool from which you want to remove Compute Nodes.
        nodeRemoveParameter - The parameters for the request.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • removeNodesAsync

        public com.microsoft.rest.ServiceFuture<Void> removeNodesAsync​(String poolId,
                                                                       NodeRemoveParameter nodeRemoveParameter,
                                                                       com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Removes Compute Nodes from the specified Pool. This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.
        Specified by:
        removeNodesAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool from which you want to remove Compute Nodes.
        nodeRemoveParameter - The parameters for the request.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • removeNodesAsync

        public rx.Observable<Void> removeNodesAsync​(String poolId,
                                                    NodeRemoveParameter nodeRemoveParameter)
        Removes Compute Nodes from the specified Pool. This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.
        Specified by:
        removeNodesAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool from which you want to remove Compute Nodes.
        nodeRemoveParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • removeNodesWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolRemoveNodesHeaders>> removeNodesWithServiceResponseAsync​(String poolId,
                                                                                                                                                   NodeRemoveParameter nodeRemoveParameter)
        Removes Compute Nodes from the specified Pool. This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.
        Specified by:
        removeNodesWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool from which you want to remove Compute Nodes.
        nodeRemoveParameter - The parameters for the request.
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • removeNodes

        public void removeNodes​(String poolId,
                                NodeRemoveParameter nodeRemoveParameter,
                                PoolRemoveNodesOptions poolRemoveNodesOptions)
        Removes Compute Nodes from the specified Pool. This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.
        Specified by:
        removeNodes in interface Pools
        Parameters:
        poolId - The ID of the Pool from which you want to remove Compute Nodes.
        nodeRemoveParameter - The parameters for the request.
        poolRemoveNodesOptions - Additional parameters for the operation
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • removeNodesAsync

        public com.microsoft.rest.ServiceFuture<Void> removeNodesAsync​(String poolId,
                                                                       NodeRemoveParameter nodeRemoveParameter,
                                                                       PoolRemoveNodesOptions poolRemoveNodesOptions,
                                                                       com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Removes Compute Nodes from the specified Pool. This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.
        Specified by:
        removeNodesAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool from which you want to remove Compute Nodes.
        nodeRemoveParameter - The parameters for the request.
        poolRemoveNodesOptions - Additional parameters for the operation
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • removeNodesAsync

        public rx.Observable<Void> removeNodesAsync​(String poolId,
                                                    NodeRemoveParameter nodeRemoveParameter,
                                                    PoolRemoveNodesOptions poolRemoveNodesOptions)
        Removes Compute Nodes from the specified Pool. This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.
        Specified by:
        removeNodesAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool from which you want to remove Compute Nodes.
        nodeRemoveParameter - The parameters for the request.
        poolRemoveNodesOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • removeNodesWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<Void,​PoolRemoveNodesHeaders>> removeNodesWithServiceResponseAsync​(String poolId,
                                                                                                                                                   NodeRemoveParameter nodeRemoveParameter,
                                                                                                                                                   PoolRemoveNodesOptions poolRemoveNodesOptions)
        Removes Compute Nodes from the specified Pool. This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.
        Specified by:
        removeNodesWithServiceResponseAsync in interface Pools
        Parameters:
        poolId - The ID of the Pool from which you want to remove Compute Nodes.
        nodeRemoveParameter - The parameters for the request.
        poolRemoveNodesOptions - Additional parameters for the operation
        Returns:
        the ServiceResponseWithHeaders object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsNext

        public com.microsoft.azure.PagedList<PoolUsageMetrics> listUsageMetricsNext​(String nextPageLink)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsNext in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        Returns:
        the PagedList<PoolUsageMetrics> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listUsageMetricsNextAsync

        public com.microsoft.rest.ServiceFuture<List<PoolUsageMetrics>> listUsageMetricsNextAsync​(String nextPageLink,
                                                                                                  com.microsoft.rest.ServiceFuture<List<PoolUsageMetrics>> serviceFuture,
                                                                                                  com.microsoft.azure.ListOperationCallback<PoolUsageMetrics> serviceCallback)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsNextAsync in interface Pools
        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
      • listUsageMetricsNextAsync

        public rx.Observable<com.microsoft.azure.Page<PoolUsageMetrics>> listUsageMetricsNextAsync​(String nextPageLink)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsNextAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        Returns:
        the observable to the PagedList<PoolUsageMetrics> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsNextWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<PoolUsageMetrics>,​PoolListUsageMetricsHeaders>> listUsageMetricsNextWithServiceResponseAsync​(String nextPageLink)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsNextWithServiceResponseAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        Returns:
        the observable to the PagedList<PoolUsageMetrics> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsNextSinglePageAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<PoolUsageMetrics>,​PoolListUsageMetricsHeaders>> listUsageMetricsNextSinglePageAsync​(String nextPageLink)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        Returns:
        the PagedList<PoolUsageMetrics> object wrapped in ServiceResponseWithHeaders if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsNext

        public com.microsoft.azure.PagedList<PoolUsageMetrics> listUsageMetricsNext​(String nextPageLink,
                                                                                    PoolListUsageMetricsNextOptions poolListUsageMetricsNextOptions)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsNext in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        poolListUsageMetricsNextOptions - Additional parameters for the operation
        Returns:
        the PagedList<PoolUsageMetrics> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listUsageMetricsNextAsync

        public com.microsoft.rest.ServiceFuture<List<PoolUsageMetrics>> listUsageMetricsNextAsync​(String nextPageLink,
                                                                                                  PoolListUsageMetricsNextOptions poolListUsageMetricsNextOptions,
                                                                                                  com.microsoft.rest.ServiceFuture<List<PoolUsageMetrics>> serviceFuture,
                                                                                                  com.microsoft.azure.ListOperationCallback<PoolUsageMetrics> serviceCallback)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsNextAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        poolListUsageMetricsNextOptions - Additional parameters for the 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
      • listUsageMetricsNextAsync

        public rx.Observable<com.microsoft.azure.Page<PoolUsageMetrics>> listUsageMetricsNextAsync​(String nextPageLink,
                                                                                                   PoolListUsageMetricsNextOptions poolListUsageMetricsNextOptions)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsNextAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        poolListUsageMetricsNextOptions - Additional parameters for the operation
        Returns:
        the observable to the PagedList<PoolUsageMetrics> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsNextWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<PoolUsageMetrics>,​PoolListUsageMetricsHeaders>> listUsageMetricsNextWithServiceResponseAsync​(String nextPageLink,
                                                                                                                                                                                                       PoolListUsageMetricsNextOptions poolListUsageMetricsNextOptions)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned.
        Specified by:
        listUsageMetricsNextWithServiceResponseAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        poolListUsageMetricsNextOptions - Additional parameters for the operation
        Returns:
        the observable to the PagedList<PoolUsageMetrics> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listUsageMetricsNextSinglePageAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<PoolUsageMetrics>,​PoolListUsageMetricsHeaders>> listUsageMetricsNextSinglePageAsync​(String nextPageLink,
                                                                                                                                                                                              PoolListUsageMetricsNextOptions poolListUsageMetricsNextOptions)
        Lists the usage metrics, aggregated by Pool across individual time intervals, for the specified Account. If you do not specify a $filter clause including a poolId, the response includes all Pools that existed in the Account in the time range of the returned aggregation intervals. If you do not specify a $filter clause including a startTime or endTime these filters default to the start and end times of the last aggregation interval currently available; that is, only the last aggregation interval is returned. ServiceResponseWithHeaders, PoolListUsageMetricsHeaders> * @param nextPageLink The NextLink from the previous successful call to List operation. ServiceResponseWithHeaders, PoolListUsageMetricsHeaders> * @param poolListUsageMetricsNextOptions Additional parameters for the operation
        Returns:
        the PagedList<PoolUsageMetrics> object wrapped in ServiceResponseWithHeaders if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listNext

        public com.microsoft.azure.PagedList<CloudPool> listNext​(String nextPageLink)
        Lists all of the Pools in the specified Account.
        Specified by:
        listNext in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        Returns:
        the PagedList<CloudPool> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listNextAsync

        public com.microsoft.rest.ServiceFuture<List<CloudPool>> listNextAsync​(String nextPageLink,
                                                                               com.microsoft.rest.ServiceFuture<List<CloudPool>> serviceFuture,
                                                                               com.microsoft.azure.ListOperationCallback<CloudPool> serviceCallback)
        Lists all of the Pools in the specified Account.
        Specified by:
        listNextAsync in interface Pools
        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
      • listNextAsync

        public rx.Observable<com.microsoft.azure.Page<CloudPool>> listNextAsync​(String nextPageLink)
        Lists all of the Pools in the specified Account.
        Specified by:
        listNextAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        Returns:
        the observable to the PagedList<CloudPool> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listNextWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<CloudPool>,​PoolListHeaders>> listNextWithServiceResponseAsync​(String nextPageLink)
        Lists all of the Pools in the specified Account.
        Specified by:
        listNextWithServiceResponseAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        Returns:
        the observable to the PagedList<CloudPool> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listNextSinglePageAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<CloudPool>,​PoolListHeaders>> listNextSinglePageAsync​(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<CloudPool> object wrapped in ServiceResponseWithHeaders if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listNext

        public com.microsoft.azure.PagedList<CloudPool> listNext​(String nextPageLink,
                                                                 PoolListNextOptions poolListNextOptions)
        Lists all of the Pools in the specified Account.
        Specified by:
        listNext in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        poolListNextOptions - Additional parameters for the operation
        Returns:
        the PagedList<CloudPool> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        BatchErrorException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listNextAsync

        public com.microsoft.rest.ServiceFuture<List<CloudPool>> listNextAsync​(String nextPageLink,
                                                                               PoolListNextOptions poolListNextOptions,
                                                                               com.microsoft.rest.ServiceFuture<List<CloudPool>> serviceFuture,
                                                                               com.microsoft.azure.ListOperationCallback<CloudPool> serviceCallback)
        Lists all of the Pools in the specified Account.
        Specified by:
        listNextAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        poolListNextOptions - Additional parameters for the 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
      • listNextAsync

        public rx.Observable<com.microsoft.azure.Page<CloudPool>> listNextAsync​(String nextPageLink,
                                                                                PoolListNextOptions poolListNextOptions)
        Lists all of the Pools in the specified Account.
        Specified by:
        listNextAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        poolListNextOptions - Additional parameters for the operation
        Returns:
        the observable to the PagedList<CloudPool> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listNextWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<CloudPool>,​PoolListHeaders>> listNextWithServiceResponseAsync​(String nextPageLink,
                                                                                                                                                                        PoolListNextOptions poolListNextOptions)
        Lists all of the Pools in the specified Account.
        Specified by:
        listNextWithServiceResponseAsync in interface Pools
        Parameters:
        nextPageLink - The NextLink from the previous successful call to List operation.
        poolListNextOptions - Additional parameters for the operation
        Returns:
        the observable to the PagedList<CloudPool> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listNextSinglePageAsync

        public rx.Observable<com.microsoft.rest.ServiceResponseWithHeaders<com.microsoft.azure.Page<CloudPool>,​PoolListHeaders>> listNextSinglePageAsync​(String nextPageLink,
                                                                                                                                                               PoolListNextOptions poolListNextOptions)
        Lists all of the Pools in the specified Account. ServiceResponseWithHeaders, PoolListHeaders> * @param nextPageLink The NextLink from the previous successful call to List operation. ServiceResponseWithHeaders, PoolListHeaders> * @param poolListNextOptions Additional parameters for the operation
        Returns:
        the PagedList<CloudPool> object wrapped in ServiceResponseWithHeaders if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation