StorageTasks Interface

public interface StorageTasks

Resource collection API of StorageTasks.

Method Summary

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

Begins definition for a new StorageTask resource.

abstract void delete(String resourceGroupName, String storageTaskName, Context context)

Delete the storage task resource.

abstract void deleteById(String id)

Delete the storage task resource.

abstract void deleteByIdWithResponse(String id, Context context)

Delete the storage task resource.

abstract void deleteByResourceGroup(String resourceGroupName, String storageTaskName)

Delete the storage task resource.

abstract StorageTask getById(String id)

Get the storage task properties.

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

Get the storage task properties.

abstract StorageTask getByResourceGroup(String resourceGroupName, String storageTaskName)

Get the storage task properties.

abstract Response<StorageTask> getByResourceGroupWithResponse(String resourceGroupName, String storageTaskName, Context context)

Get the storage task properties.

abstract PagedIterable<StorageTask> list()

Lists all the storage tasks available under the subscription.

abstract PagedIterable<StorageTask> list(Context context)

Lists all the storage tasks available under the subscription.

abstract PagedIterable<StorageTask> listByResourceGroup(String resourceGroupName)

Lists all the storage tasks available under the given resource group.

abstract PagedIterable<StorageTask> listByResourceGroup(String resourceGroupName, Context context)

Lists all the storage tasks available under the given resource group.

abstract StorageTaskPreviewAction previewActions(String location, StorageTaskPreviewActionInner parameters)

Runs the input conditions against input object metadata properties and designates matched objects in response.

abstract Response<StorageTaskPreviewAction> previewActionsWithResponse(String location, StorageTaskPreviewActionInner parameters, Context context)

Runs the input conditions against input object metadata properties and designates matched objects in response.

Method Details

define

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

Begins definition for a new StorageTask resource.

Parameters:

name - resource name.

Returns:

the first stage of the new StorageTask definition.

delete

public abstract void delete(String resourceGroupName, String storageTaskName, Context context)

Delete the storage task resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
storageTaskName - The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
context - The context to associate with this operation.

deleteById

public abstract void deleteById(String id)

Delete the storage task resource.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Delete the storage task resource.

Parameters:

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

deleteByResourceGroup

public abstract void deleteByResourceGroup(String resourceGroupName, String storageTaskName)

Delete the storage task resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
storageTaskName - The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.

getById

public abstract StorageTask getById(String id)

Get the storage task properties.

Parameters:

id - the resource ID.

Returns:

the storage task properties along with Response<T>.

getByIdWithResponse

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

Get the storage task properties.

Parameters:

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

Returns:

the storage task properties along with Response<T>.

getByResourceGroup

public abstract StorageTask getByResourceGroup(String resourceGroupName, String storageTaskName)

Get the storage task properties.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
storageTaskName - The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.

Returns:

the storage task properties.

getByResourceGroupWithResponse

public abstract Response<StorageTask> getByResourceGroupWithResponse(String resourceGroupName, String storageTaskName, Context context)

Get the storage task properties.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
storageTaskName - The name of the storage task within the specified resource group. Storage task names must be between 3 and 18 characters in length and use numbers and lower-case letters only.
context - The context to associate with this operation.

Returns:

the storage task properties along with Response<T>.

list

public abstract PagedIterable<StorageTask> list()

Lists all the storage tasks available under the subscription.

Returns:

the response from the List Storage Task operation as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<StorageTask> list(Context context)

Lists all the storage tasks available under the subscription.

Parameters:

context - The context to associate with this operation.

Returns:

the response from the List Storage Task operation as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<StorageTask> listByResourceGroup(String resourceGroupName)

Lists all the storage tasks available under the given resource group.

Parameters:

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

Returns:

the response from the List Storage Task operation as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<StorageTask> listByResourceGroup(String resourceGroupName, Context context)

Lists all the storage tasks available under the given resource group.

Parameters:

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

Returns:

the response from the List Storage Task operation as paginated response with PagedIterable<T>.

previewActions

public abstract StorageTaskPreviewAction previewActions(String location, StorageTaskPreviewActionInner parameters)

Runs the input conditions against input object metadata properties and designates matched objects in response.

Parameters:

location - The location to perform preview of the actions.
parameters - The parameters to preview action condition.

Returns:

storage Task Preview Action.

previewActionsWithResponse

public abstract Response<StorageTaskPreviewAction> previewActionsWithResponse(String location, StorageTaskPreviewActionInner parameters, Context context)

Runs the input conditions against input object metadata properties and designates matched objects in response.

Parameters:

location - The location to perform preview of the actions.
parameters - The parameters to preview action condition.
context - The context to associate with this operation.

Returns:

storage Task Preview Action along with Response<T>.

Applies to