Interface PoolsClient


public interface PoolsClient
An instance of this class provides access to all the operations defined in PoolsClient.
  • Method Details

    • listByProject

      com.azure.core.http.rest.PagedIterable<PoolInner> listByProject(String resourceGroupName, String projectName)
      Lists pools for a project.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      Returns:
      results of the machine pool list operation as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByProject

      com.azure.core.http.rest.PagedIterable<PoolInner> listByProject(String resourceGroupName, String projectName, Integer top, com.azure.core.util.Context context)
      Lists pools for a project.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      top - The maximum number of resources to return from the operation. Example: '$top=10'.
      context - The context to associate with this operation.
      Returns:
      results of the machine pool list operation as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<PoolInner> getWithResponse(String resourceGroupName, String projectName, String poolName, com.azure.core.util.Context context)
      Gets a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      context - The context to associate with this operation.
      Returns:
      a machine pool along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      PoolInner get(String resourceGroupName, String projectName, String poolName)
      Gets a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      Returns:
      a machine pool.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PoolInner>,PoolInner> beginCreateOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body)
      Creates or updates a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      body - Represents a machine pool.
      Returns:
      the SyncPoller for polling of a pool of Virtual Machines.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PoolInner>,PoolInner> beginCreateOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body, com.azure.core.util.Context context)
      Creates or updates a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      body - Represents a machine pool.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a pool of Virtual Machines.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      PoolInner createOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body)
      Creates or updates a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      body - Represents a machine pool.
      Returns:
      a pool of Virtual Machines.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      PoolInner createOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body, com.azure.core.util.Context context)
      Creates or updates a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      body - Represents a machine pool.
      context - The context to associate with this operation.
      Returns:
      a pool of Virtual Machines.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PoolInner>,PoolInner> beginUpdate(String resourceGroupName, String projectName, String poolName, PoolUpdate body)
      Partially updates a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      body - Represents a machine pool.
      Returns:
      the SyncPoller for polling of a pool of Virtual Machines.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PoolInner>,PoolInner> beginUpdate(String resourceGroupName, String projectName, String poolName, PoolUpdate body, com.azure.core.util.Context context)
      Partially updates a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      body - Represents a machine pool.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a pool of Virtual Machines.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      PoolInner update(String resourceGroupName, String projectName, String poolName, PoolUpdate body)
      Partially updates a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      body - Represents a machine pool.
      Returns:
      a pool of Virtual Machines.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      PoolInner update(String resourceGroupName, String projectName, String poolName, PoolUpdate body, com.azure.core.util.Context context)
      Partially updates a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      body - Represents a machine pool.
      context - The context to associate with this operation.
      Returns:
      a pool of Virtual Machines.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String projectName, String poolName)
      Deletes a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String projectName, String poolName, com.azure.core.util.Context context)
      Deletes a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String projectName, String poolName)
      Deletes a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String projectName, String poolName, com.azure.core.util.Context context)
      Deletes a machine pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      projectName - The name of the project.
      poolName - Name of the pool.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.