Share via


ProjectTask Interface

public interface ProjectTask

An immutable client-side representation of ProjectTask.

Method Summary

Modifier and Type Method and Description
abstract ProjectTask cancel()

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

abstract Response<ProjectTask> cancelWithResponse(Context context)

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

abstract CommandProperties command(CommandPropertiesInner parameters)

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

abstract Response<CommandProperties> commandWithResponse(CommandPropertiesInner parameters, Context context)

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

abstract String etag()

Gets the etag property: HTTP strong entity tag value.

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract ProjectTaskInner innerModel()

Gets the inner com.azure.resourcemanager.datamigration.fluent.models.ProjectTaskInner object.

abstract String name()

Gets the name property: The name of the resource.

abstract ProjectTaskProperties properties()

Gets the properties property: Custom task properties.

abstract ProjectTask refresh()

Refreshes the resource to sync with Azure.

abstract ProjectTask refresh(Context context)

Refreshes the resource to sync with Azure.

abstract String resourceGroupName()

Gets the name of the resource group.

abstract SystemData systemData()

Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

abstract String type()

Gets the type property: The type of the resource.

abstract Update update()

Begins update for the ProjectTask resource.

Method Details

cancel

public abstract ProjectTask cancel()

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

Returns:

a task resource.

cancelWithResponse

public abstract Response<ProjectTask> cancelWithResponse(Context context)

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

Parameters:

context - The context to associate with this operation.

Returns:

a task resource along with Response<T>.

command

public abstract CommandProperties command(CommandPropertiesInner parameters)

Execute a command on a task The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. This method executes a command on a running task.

Parameters:

parameters - Command to execute.

Returns:

base class for all types of DMS (classic) command properties.

commandWithResponse

public abstract Response<CommandProperties> commandWithResponse(CommandPropertiesInner parameters, Context context)

Execute a command on a task The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic) instance. This method executes a command on a running task.

Parameters:

parameters - Command to execute.
context - The context to associate with this operation.

Returns:

base class for all types of DMS (classic) command properties along with Response<T>.

etag

public abstract String etag()

Gets the etag property: HTTP strong entity tag value. This is ignored if submitted.

Returns:

the etag value.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

innerModel

public abstract ProjectTaskInner innerModel()

Gets the inner com.azure.resourcemanager.datamigration.fluent.models.ProjectTaskInner object.

Returns:

the inner object.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

properties

public abstract ProjectTaskProperties properties()

Gets the properties property: Custom task properties.

Returns:

the properties value.

refresh

public abstract ProjectTask refresh()

Refreshes the resource to sync with Azure.

Returns:

the refreshed resource.

refresh

public abstract ProjectTask refresh(Context context)

Refreshes the resource to sync with Azure.

Parameters:

context - The context to associate with this operation.

Returns:

the refreshed resource.

resourceGroupName

public abstract String resourceGroupName()

Gets the name of the resource group.

Returns:

the name of the resource group.

systemData

public abstract SystemData systemData()

Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

update

public abstract ProjectTask.Update update()

Begins update for the ProjectTask resource.

Returns:

the stage of resource update.

Applies to