Interface AgentPoolsClient


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

    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AgentPoolInner>> getWithResponseAsync(String resourceGroupName, String registryName, String agentPoolName)
      Gets the detailed information for a given agent pool.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      the detailed information for a given agent pool along with Response on successful completion of Mono.
      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.
    • getAsync

      Mono<AgentPoolInner> getAsync(String resourceGroupName, String registryName, String agentPoolName)
      Gets the detailed information for a given agent pool.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      the detailed information for a given agent pool on successful completion of Mono.
      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<AgentPoolInner> getWithResponse(String resourceGroupName, String registryName, String agentPoolName, com.azure.core.util.Context context)
      Gets the detailed information for a given agent pool.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      context - The context to associate with this operation.
      Returns:
      the detailed information for a given agent 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

      AgentPoolInner get(String resourceGroupName, String registryName, String agentPoolName)
      Gets the detailed information for a given agent pool.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      the detailed information for a given agent 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.
    • createWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool)
      Creates an agent pool for a container registry with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      agentPool - The parameters of an agent pool that needs to scheduled.
      Returns:
      the agentpool that has the ARM resource and properties along with Response on successful completion of Mono.
      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.
    • beginCreateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<AgentPoolInner>,AgentPoolInner> beginCreateAsync(String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool)
      Creates an agent pool for a container registry with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      agentPool - The parameters of an agent pool that needs to scheduled.
      Returns:
      the PollerFlux for polling of the agentpool that has the ARM resource and properties.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AgentPoolInner>,AgentPoolInner> beginCreate(String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool)
      Creates an agent pool for a container registry with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      agentPool - The parameters of an agent pool that needs to scheduled.
      Returns:
      the SyncPoller for polling of the agentpool that has the ARM resource and properties.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AgentPoolInner>,AgentPoolInner> beginCreate(String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool, com.azure.core.util.Context context)
      Creates an agent pool for a container registry with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      agentPool - The parameters of an agent pool that needs to scheduled.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of the agentpool that has the ARM resource and properties.
      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.
    • createAsync

      Mono<AgentPoolInner> createAsync(String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool)
      Creates an agent pool for a container registry with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      agentPool - The parameters of an agent pool that needs to scheduled.
      Returns:
      the agentpool that has the ARM resource and properties on successful completion of Mono.
      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.
    • create

      AgentPoolInner create(String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool)
      Creates an agent pool for a container registry with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      agentPool - The parameters of an agent pool that needs to scheduled.
      Returns:
      the agentpool that has the ARM resource and properties.
      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.
    • create

      AgentPoolInner create(String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool, com.azure.core.util.Context context)
      Creates an agent pool for a container registry with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      agentPool - The parameters of an agent pool that needs to scheduled.
      context - The context to associate with this operation.
      Returns:
      the agentpool that has the ARM resource and properties.
      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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String registryName, String agentPoolName)
      Deletes a specified agent pool resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      the Response on successful completion of Mono.
      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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String registryName, String agentPoolName)
      Deletes a specified agent pool resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      the PollerFlux 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 registryName, String agentPoolName)
      Deletes a specified agent pool resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent 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 registryName, String agentPoolName, com.azure.core.util.Context context)
      Deletes a specified agent pool resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent 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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String registryName, String agentPoolName)
      Deletes a specified agent pool resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      A Mono that completes when a successful response is received.
      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 registryName, String agentPoolName)
      Deletes a specified agent pool resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent 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 registryName, String agentPoolName, com.azure.core.util.Context context)
      Deletes a specified agent pool resource.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent 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.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String registryName, String agentPoolName, AgentPoolUpdateParameters updateParameters)
      Updates an agent pool with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      updateParameters - The parameters for updating an agent pool.
      Returns:
      the agentpool that has the ARM resource and properties along with Response on successful completion of Mono.
      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.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<AgentPoolInner>,AgentPoolInner> beginUpdateAsync(String resourceGroupName, String registryName, String agentPoolName, AgentPoolUpdateParameters updateParameters)
      Updates an agent pool with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      updateParameters - The parameters for updating an agent pool.
      Returns:
      the PollerFlux for polling of the agentpool that has the ARM resource and properties.
      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<AgentPoolInner>,AgentPoolInner> beginUpdate(String resourceGroupName, String registryName, String agentPoolName, AgentPoolUpdateParameters updateParameters)
      Updates an agent pool with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      updateParameters - The parameters for updating an agent pool.
      Returns:
      the SyncPoller for polling of the agentpool that has the ARM resource and properties.
      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<AgentPoolInner>,AgentPoolInner> beginUpdate(String resourceGroupName, String registryName, String agentPoolName, AgentPoolUpdateParameters updateParameters, com.azure.core.util.Context context)
      Updates an agent pool with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      updateParameters - The parameters for updating an agent pool.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of the agentpool that has the ARM resource and properties.
      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.
    • updateAsync

      Mono<AgentPoolInner> updateAsync(String resourceGroupName, String registryName, String agentPoolName, AgentPoolUpdateParameters updateParameters)
      Updates an agent pool with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      updateParameters - The parameters for updating an agent pool.
      Returns:
      the agentpool that has the ARM resource and properties on successful completion of Mono.
      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

      AgentPoolInner update(String resourceGroupName, String registryName, String agentPoolName, AgentPoolUpdateParameters updateParameters)
      Updates an agent pool with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      updateParameters - The parameters for updating an agent pool.
      Returns:
      the agentpool that has the ARM resource and properties.
      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

      AgentPoolInner update(String resourceGroupName, String registryName, String agentPoolName, AgentPoolUpdateParameters updateParameters, com.azure.core.util.Context context)
      Updates an agent pool with the specified parameters.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      updateParameters - The parameters for updating an agent pool.
      context - The context to associate with this operation.
      Returns:
      the agentpool that has the ARM resource and properties.
      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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<AgentPoolInner> listAsync(String resourceGroupName, String registryName)
      Lists all the agent pools for a specified container registry.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      Returns:
      the collection of agent pools as paginated response with PagedFlux.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<AgentPoolInner> list(String resourceGroupName, String registryName)
      Lists all the agent pools for a specified container registry.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      Returns:
      the collection of agent pools 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.
    • list

      com.azure.core.http.rest.PagedIterable<AgentPoolInner> list(String resourceGroupName, String registryName, com.azure.core.util.Context context)
      Lists all the agent pools for a specified container registry.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      context - The context to associate with this operation.
      Returns:
      the collection of agent pools 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.
    • getQueueStatusWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AgentPoolQueueStatusInner>> getQueueStatusWithResponseAsync(String resourceGroupName, String registryName, String agentPoolName)
      Gets the count of queued runs for a given agent pool.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      the count of queued runs for a given agent pool along with Response on successful completion of Mono.
      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.
    • getQueueStatusAsync

      Mono<AgentPoolQueueStatusInner> getQueueStatusAsync(String resourceGroupName, String registryName, String agentPoolName)
      Gets the count of queued runs for a given agent pool.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      the count of queued runs for a given agent pool on successful completion of Mono.
      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.
    • getQueueStatusWithResponse

      com.azure.core.http.rest.Response<AgentPoolQueueStatusInner> getQueueStatusWithResponse(String resourceGroupName, String registryName, String agentPoolName, com.azure.core.util.Context context)
      Gets the count of queued runs for a given agent pool.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      context - The context to associate with this operation.
      Returns:
      the count of queued runs for a given agent 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.
    • getQueueStatus

      AgentPoolQueueStatusInner getQueueStatus(String resourceGroupName, String registryName, String agentPoolName)
      Gets the count of queued runs for a given agent pool.
      Parameters:
      resourceGroupName - The name of the resource group to which the container registry belongs.
      registryName - The name of the container registry.
      agentPoolName - The name of the agent pool.
      Returns:
      the count of queued runs for a given agent 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.