ServiceTasksClient Interface

public interface ServiceTasksClient

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

Method Summary

Modifier and Type Method and Description
abstract ProjectTaskInner cancel(String groupName, String serviceName, String taskName)

Cancel a service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract Response<ProjectTaskInner> cancelWithResponse(String groupName, String serviceName, String taskName, Context context)

Cancel a service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract ProjectTaskInner createOrUpdate(String groupName, String serviceName, String taskName, ProjectTaskInner parameters)

Create or update service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract Response<ProjectTaskInner> createOrUpdateWithResponse(String groupName, String serviceName, String taskName, ProjectTaskInner parameters, Context context)

Create or update service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract void delete(String groupName, String serviceName, String taskName)

Delete service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract Response<Void> deleteWithResponse(String groupName, String serviceName, String taskName, Boolean deleteRunningTasks, Context context)

Delete service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract ProjectTaskInner get(String groupName, String serviceName, String taskName)

Get service task information The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract Response<ProjectTaskInner> getWithResponse(String groupName, String serviceName, String taskName, String expand, Context context)

Get service task information The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract PagedIterable<ProjectTaskInner> list(String groupName, String serviceName)

Get service level tasks for a service The services resource is the top-level resource that represents the Azure Database Migration Service (classic).

abstract PagedIterable<ProjectTaskInner> list(String groupName, String serviceName, String taskType, Context context)

Get service level tasks for a service The services resource is the top-level resource that represents the Azure Database Migration Service (classic).

abstract ProjectTaskInner update(String groupName, String serviceName, String taskName, ProjectTaskInner parameters)

Create or update service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

abstract Response<ProjectTaskInner> updateWithResponse(String groupName, String serviceName, String taskName, ProjectTaskInner parameters, Context context)

Create or update service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance.

Method Details

cancel

public abstract ProjectTaskInner cancel(String groupName, String serviceName, String taskName)

Cancel a service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. This method cancels a service task if it's currently queued or running.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.

Returns:

a task resource.

cancelWithResponse

public abstract Response<ProjectTaskInner> cancelWithResponse(String groupName, String serviceName, String taskName, Context context)

Cancel a service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. This method cancels a service task if it's currently queued or running.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.
context - The context to associate with this operation.

Returns:

a task resource along with Response<T>.

createOrUpdate

public abstract ProjectTaskInner createOrUpdate(String groupName, String serviceName, String taskName, ProjectTaskInner parameters)

Create or update service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. The PUT method creates a new service task or updates an existing one, although since service tasks have no mutable custom properties, there is little reason to update an existing one.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.
parameters - Information about the task.

Returns:

a task resource.

createOrUpdateWithResponse

public abstract Response<ProjectTaskInner> createOrUpdateWithResponse(String groupName, String serviceName, String taskName, ProjectTaskInner parameters, Context context)

Create or update service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. The PUT method creates a new service task or updates an existing one, although since service tasks have no mutable custom properties, there is little reason to update an existing one.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.
parameters - Information about the task.
context - The context to associate with this operation.

Returns:

a task resource along with Response<T>.

delete

public abstract void delete(String groupName, String serviceName, String taskName)

Delete service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. The DELETE method deletes a service task, canceling it first if it's running.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String groupName, String serviceName, String taskName, Boolean deleteRunningTasks, Context context)

Delete service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. The DELETE method deletes a service task, canceling it first if it's running.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.
deleteRunningTasks - Delete the resource even if it contains running tasks.
context - The context to associate with this operation.

Returns:

get

public abstract ProjectTaskInner get(String groupName, String serviceName, String taskName)

Get service task information The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. The GET method retrieves information about a service task.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.

Returns:

a task resource.

getWithResponse

public abstract Response<ProjectTaskInner> getWithResponse(String groupName, String serviceName, String taskName, String expand, Context context)

Get service task information The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. The GET method retrieves information about a service task.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.
expand - Expand the response.
context - The context to associate with this operation.

Returns:

a task resource along with Response<T>.

list

public abstract PagedIterable<ProjectTaskInner> list(String groupName, String serviceName)

Get service level tasks for a service The services resource is the top-level resource that represents the Azure Database Migration Service (classic). This method returns a list of service level tasks owned by a service resource. Some tasks may have a status of Unknown, which indicates that an error occurred while querying the status of that task.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.

Returns:

oData page of tasks as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<ProjectTaskInner> list(String groupName, String serviceName, String taskType, Context context)

Get service level tasks for a service The services resource is the top-level resource that represents the Azure Database Migration Service (classic). This method returns a list of service level tasks owned by a service resource. Some tasks may have a status of Unknown, which indicates that an error occurred while querying the status of that task.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskType - Filter tasks by task type.
context - The context to associate with this operation.

Returns:

oData page of tasks as paginated response with PagedIterable<T>.

update

public abstract ProjectTaskInner update(String groupName, String serviceName, String taskName, ProjectTaskInner parameters)

Create or update service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. The PATCH method updates an existing service task, but since service tasks have no mutable custom properties, there is little reason to do so.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.
parameters - Information about the task.

Returns:

a task resource.

updateWithResponse

public abstract Response<ProjectTaskInner> updateWithResponse(String groupName, String serviceName, String taskName, ProjectTaskInner parameters, Context context)

Create or update service task The service tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. The PATCH method updates an existing service task, but since service tasks have no mutable custom properties, there is little reason to do so.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
taskName - Name of the Task.
parameters - Information about the task.
context - The context to associate with this operation.

Returns:

a task resource along with Response<T>.

Applies to