Racks Interface

public interface Racks

Resource collection API of Racks.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new Rack resource.

abstract OperationStatusResult delete(String resourceGroupName, String rackName, String ifMatch, String ifNoneMatch, Context context)

Delete the rack.

abstract OperationStatusResult deleteById(String id)

Delete the rack.

abstract OperationStatusResult deleteByIdWithResponse(String id, String ifMatch, String ifNoneMatch, Context context)

Delete the rack.

abstract OperationStatusResult deleteByResourceGroup(String resourceGroupName, String rackName)

Delete the rack.

abstract Rack getById(String id)

Retrieve the rack.

abstract Response<Rack> getByIdWithResponse(String id, Context context)

Retrieve the rack.

abstract Rack getByResourceGroup(String resourceGroupName, String rackName)

Retrieve the rack.

abstract Response<Rack> getByResourceGroupWithResponse(String resourceGroupName, String rackName, Context context)

Retrieve the rack.

abstract PagedIterable<Rack> list()

List racks in the subscription.

abstract PagedIterable<Rack> list(Integer top, String skipToken, Context context)

List racks in the subscription.

abstract PagedIterable<Rack> listByResourceGroup(String resourceGroupName)

List racks in the resource group.

abstract PagedIterable<Rack> listByResourceGroup(String resourceGroupName, Integer top, String skipToken, Context context)

List racks in the resource group.

Method Details

define

public abstract Rack.DefinitionStages.Blank define(String name)

Begins definition for a new Rack resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Rack definition.

delete

public abstract OperationStatusResult delete(String resourceGroupName, String rackName, String ifMatch, String ifNoneMatch, Context context)

Delete the rack. Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
rackName - The name of the rack.
ifMatch - The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
ifNoneMatch - Set to '*' to allow a new record set to be created, but to prevent updating an existing resource. Other values will result in error from server as they are not supported.
context - The context to associate with this operation.

Returns:

the current status of an async operation.

deleteById

public abstract OperationStatusResult deleteById(String id)

Delete the rack. Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.

Parameters:

id - the resource ID.

Returns:

the current status of an async operation.

deleteByIdWithResponse

public abstract OperationStatusResult deleteByIdWithResponse(String id, String ifMatch, String ifNoneMatch, Context context)

Delete the rack. Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.

Parameters:

id - the resource ID.
ifMatch - The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.
ifNoneMatch - Set to '*' to allow a new record set to be created, but to prevent updating an existing resource. Other values will result in error from server as they are not supported.
context - The context to associate with this operation.

Returns:

the current status of an async operation.

deleteByResourceGroup

public abstract OperationStatusResult deleteByResourceGroup(String resourceGroupName, String rackName)

Delete the rack. Delete the provided rack. All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
rackName - The name of the rack.

Returns:

the current status of an async operation.

getById

public abstract Rack getById(String id)

Retrieve the rack. Get properties of the provided rack.

Parameters:

id - the resource ID.

Returns:

properties of the provided rack along with Response<T>.

getByIdWithResponse

public abstract Response<Rack> getByIdWithResponse(String id, Context context)

Retrieve the rack. Get properties of the provided rack.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

properties of the provided rack along with Response<T>.

getByResourceGroup

public abstract Rack getByResourceGroup(String resourceGroupName, String rackName)

Retrieve the rack. Get properties of the provided rack.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
rackName - The name of the rack.

Returns:

properties of the provided rack.

getByResourceGroupWithResponse

public abstract Response<Rack> getByResourceGroupWithResponse(String resourceGroupName, String rackName, Context context)

Retrieve the rack. Get properties of the provided rack.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
rackName - The name of the rack.
context - The context to associate with this operation.

Returns:

properties of the provided rack along with Response<T>.

list

public abstract PagedIterable<Rack> list()

List racks in the subscription. Get a list of racks in the provided subscription.

Returns:

a list of racks in the provided subscription as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<Rack> list(Integer top, String skipToken, Context context)

List racks in the subscription. Get a list of racks in the provided subscription.

Parameters:

top - The maximum number of resources to return from the operation. Example: '$top=10'.
skipToken - The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets.
context - The context to associate with this operation.

Returns:

a list of racks in the provided subscription as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<Rack> listByResourceGroup(String resourceGroupName)

List racks in the resource group. Get a list of racks in the provided resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.

Returns:

a list of racks in the provided resource group as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<Rack> listByResourceGroup(String resourceGroupName, Integer top, String skipToken, Context context)

List racks in the resource group. Get a list of racks in the provided resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
top - The maximum number of resources to return from the operation. Example: '$top=10'.
skipToken - The opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets.
context - The context to associate with this operation.

Returns:

a list of racks in the provided resource group as paginated response with PagedIterable<T>.

Applies to