Share via


PoolsClient Interface

public interface PoolsClient

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

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<PoolInner>,PoolInner> beginCreateOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body)

Creates or updates a machine pool.

abstract SyncPoller<PollResult<PoolInner>,PoolInner> beginCreateOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body, Context context)

Creates or updates a machine pool.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String projectName, String poolName)

Deletes a machine pool.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String projectName, String poolName, Context context)

Deletes a machine pool.

abstract SyncPoller<PollResult<Void>,Void> beginRunHealthChecks(String resourceGroupName, String projectName, String poolName)

Triggers a refresh of the pool status.

abstract SyncPoller<PollResult<Void>,Void> beginRunHealthChecks(String resourceGroupName, String projectName, String poolName, Context context)

Triggers a refresh of the pool status.

abstract SyncPoller<PollResult<PoolInner>,PoolInner> beginUpdate(String resourceGroupName, String projectName, String poolName, PoolUpdate body)

Partially updates a machine pool.

abstract SyncPoller<PollResult<PoolInner>,PoolInner> beginUpdate(String resourceGroupName, String projectName, String poolName, PoolUpdate body, Context context)

Partially updates a machine pool.

abstract PoolInner createOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body)

Creates or updates a machine pool.

abstract PoolInner createOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body, Context context)

Creates or updates a machine pool.

abstract void delete(String resourceGroupName, String projectName, String poolName)

Deletes a machine pool.

abstract void delete(String resourceGroupName, String projectName, String poolName, Context context)

Deletes a machine pool.

abstract PoolInner get(String resourceGroupName, String projectName, String poolName)

Gets a machine pool.

abstract Response<PoolInner> getWithResponse(String resourceGroupName, String projectName, String poolName, Context context)

Gets a machine pool.

abstract PagedIterable<PoolInner> listByProject(String resourceGroupName, String projectName)

Lists pools for a project.

abstract PagedIterable<PoolInner> listByProject(String resourceGroupName, String projectName, Integer top, Context context)

Lists pools for a project.

abstract void runHealthChecks(String resourceGroupName, String projectName, String poolName)

Triggers a refresh of the pool status.

abstract void runHealthChecks(String resourceGroupName, String projectName, String poolName, Context context)

Triggers a refresh of the pool status.

abstract PoolInner update(String resourceGroupName, String projectName, String poolName, PoolUpdate body)

Partially updates a machine pool.

abstract PoolInner update(String resourceGroupName, String projectName, String poolName, PoolUpdate body, Context context)

Partially updates a machine pool.

Method Details

beginCreateOrUpdate

public abstract SyncPoller<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<T,U> for polling of a pool of Virtual Machines.

beginCreateOrUpdate

public abstract SyncPoller<PollResult<PoolInner>,PoolInner> beginCreateOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body, 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<T,U> for polling of a pool of Virtual Machines.

beginDelete

public abstract SyncPoller<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<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String projectName, String poolName, 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<T,U> for polling of long-running operation.

beginRunHealthChecks

public abstract SyncPoller<PollResult<Void>,Void> beginRunHealthChecks(String resourceGroupName, String projectName, String poolName)

Triggers a refresh of the pool status.

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<T,U> for polling of long-running operation.

beginRunHealthChecks

public abstract SyncPoller<PollResult<Void>,Void> beginRunHealthChecks(String resourceGroupName, String projectName, String poolName, Context context)

Triggers a refresh of the pool status.

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<T,U> for polling of long-running operation.

beginUpdate

public abstract SyncPoller<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<T,U> for polling of a pool of Virtual Machines.

beginUpdate

public abstract SyncPoller<PollResult<PoolInner>,PoolInner> beginUpdate(String resourceGroupName, String projectName, String poolName, PoolUpdate body, 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<T,U> for polling of a pool of Virtual Machines.

createOrUpdate

public abstract 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.

createOrUpdate

public abstract PoolInner createOrUpdate(String resourceGroupName, String projectName, String poolName, PoolInner body, 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.

delete

public abstract 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.

delete

public abstract void delete(String resourceGroupName, String projectName, String poolName, 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.

get

public abstract 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.

getWithResponse

public abstract Response<PoolInner> getWithResponse(String resourceGroupName, String projectName, String poolName, 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<T>.

listByProject

public abstract 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<T>.

listByProject

public abstract PagedIterable<PoolInner> listByProject(String resourceGroupName, String projectName, Integer top, 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<T>.

runHealthChecks

public abstract void runHealthChecks(String resourceGroupName, String projectName, String poolName)

Triggers a refresh of the pool status.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
projectName - The name of the project.
poolName - Name of the pool.

runHealthChecks

public abstract void runHealthChecks(String resourceGroupName, String projectName, String poolName, Context context)

Triggers a refresh of the pool status.

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.

update

public abstract 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.

update

public abstract PoolInner update(String resourceGroupName, String projectName, String poolName, PoolUpdate body, 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.

Applies to