ServiceTasks class

Class representing a ServiceTasks.

Constructors

ServiceTasks(DataMigrationServiceClientContext)

Create a ServiceTasks.

Methods

cancel(string, string, string, RequestOptionsBase)

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

cancel(string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)
cancel(string, string, string, ServiceCallback<ProjectTask>)
createOrUpdate(ProjectTask, string, string, string, RequestOptionsBase)

The service tasks resource is a nested, proxy-only resource representing work performed by a DMS 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.

createOrUpdate(ProjectTask, string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)
createOrUpdate(ProjectTask, string, string, string, ServiceCallback<ProjectTask>)
deleteMethod(string, string, string, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceTasksDeleteMethodOptionalParams)

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

deleteMethod(string, string, string, ServiceTasksDeleteMethodOptionalParams, ServiceCallback<void>)
get(string, string, string, ServiceCallback<ProjectTask>)
get(string, string, string, ServiceTasksGetOptionalParams)

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

get(string, string, string, ServiceTasksGetOptionalParams, ServiceCallback<ProjectTask>)
list(string, string, ServiceCallback<TaskList>)
list(string, string, ServiceTasksListOptionalParams)

The services resource is the top-level resource that represents the Database Migration Service. 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.

list(string, string, ServiceTasksListOptionalParams, ServiceCallback<TaskList>)
listNext(string, RequestOptionsBase)

The services resource is the top-level resource that represents the Database Migration Service. 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.

listNext(string, RequestOptionsBase, ServiceCallback<TaskList>)
listNext(string, ServiceCallback<TaskList>)
update(ProjectTask, string, string, string, RequestOptionsBase)

The service tasks resource is a nested, proxy-only resource representing work performed by a DMS 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.

update(ProjectTask, string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)
update(ProjectTask, string, string, string, ServiceCallback<ProjectTask>)

Constructor Details

ServiceTasks(DataMigrationServiceClientContext)

Create a ServiceTasks.

new ServiceTasks(client: DataMigrationServiceClientContext)

Parameters

client
DataMigrationServiceClientContext

Reference to the service client.

Method Details

cancel(string, string, string, RequestOptionsBase)

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

function cancel(groupName: string, serviceName: string, taskName: string, options?: RequestOptionsBase): Promise<ServiceTasksCancelResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServiceTasksCancelResponse>

cancel(string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)

function cancel(groupName: string, serviceName: string, taskName: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectTask>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ProjectTask>

The callback

cancel(string, string, string, ServiceCallback<ProjectTask>)

function cancel(groupName: string, serviceName: string, taskName: string, callback: ServiceCallback<ProjectTask>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

callback

ServiceCallback<ProjectTask>

The callback

createOrUpdate(ProjectTask, string, string, string, RequestOptionsBase)

The service tasks resource is a nested, proxy-only resource representing work performed by a DMS 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.

function createOrUpdate(parameters: ProjectTask, groupName: string, serviceName: string, taskName: string, options?: RequestOptionsBase): Promise<ServiceTasksCreateOrUpdateResponse>

Parameters

parameters
ProjectTask

Information about the task

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServiceTasksCreateOrUpdateResponse>

createOrUpdate(ProjectTask, string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)

function createOrUpdate(parameters: ProjectTask, groupName: string, serviceName: string, taskName: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectTask>)

Parameters

parameters
ProjectTask

Information about the task

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ProjectTask>

The callback

createOrUpdate(ProjectTask, string, string, string, ServiceCallback<ProjectTask>)

function createOrUpdate(parameters: ProjectTask, groupName: string, serviceName: string, taskName: string, callback: ServiceCallback<ProjectTask>)

Parameters

parameters
ProjectTask

Information about the task

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

callback

ServiceCallback<ProjectTask>

The callback

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(groupName: string, serviceName: string, taskName: string, callback: ServiceCallback<void>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, string, ServiceTasksDeleteMethodOptionalParams)

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

function deleteMethod(groupName: string, serviceName: string, taskName: string, options?: ServiceTasksDeleteMethodOptionalParams): Promise<RestResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
ServiceTasksDeleteMethodOptionalParams

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, string, ServiceTasksDeleteMethodOptionalParams, ServiceCallback<void>)

function deleteMethod(groupName: string, serviceName: string, taskName: string, options: ServiceTasksDeleteMethodOptionalParams, callback: ServiceCallback<void>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
ServiceTasksDeleteMethodOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

get(string, string, string, ServiceCallback<ProjectTask>)

function get(groupName: string, serviceName: string, taskName: string, callback: ServiceCallback<ProjectTask>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

callback

ServiceCallback<ProjectTask>

The callback

get(string, string, string, ServiceTasksGetOptionalParams)

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

function get(groupName: string, serviceName: string, taskName: string, options?: ServiceTasksGetOptionalParams): Promise<ServiceTasksGetResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
ServiceTasksGetOptionalParams

The optional parameters

Returns

Promise<Models.ServiceTasksGetResponse>

get(string, string, string, ServiceTasksGetOptionalParams, ServiceCallback<ProjectTask>)

function get(groupName: string, serviceName: string, taskName: string, options: ServiceTasksGetOptionalParams, callback: ServiceCallback<ProjectTask>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
ServiceTasksGetOptionalParams

The optional parameters

callback

ServiceCallback<ProjectTask>

The callback

list(string, string, ServiceCallback<TaskList>)

function list(groupName: string, serviceName: string, callback: ServiceCallback<TaskList>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

callback

ServiceCallback<TaskList>

The callback

list(string, string, ServiceTasksListOptionalParams)

The services resource is the top-level resource that represents the Database Migration Service. 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.

function list(groupName: string, serviceName: string, options?: ServiceTasksListOptionalParams): Promise<ServiceTasksListResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

options
ServiceTasksListOptionalParams

The optional parameters

Returns

Promise<Models.ServiceTasksListResponse>

list(string, string, ServiceTasksListOptionalParams, ServiceCallback<TaskList>)

function list(groupName: string, serviceName: string, options: ServiceTasksListOptionalParams, callback: ServiceCallback<TaskList>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

options
ServiceTasksListOptionalParams

The optional parameters

callback

ServiceCallback<TaskList>

The callback

listNext(string, RequestOptionsBase)

The services resource is the top-level resource that represents the Database Migration Service. 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.

function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ServiceTasksListNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServiceTasksListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<TaskList>)

function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<TaskList>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<TaskList>

The callback

listNext(string, ServiceCallback<TaskList>)

function listNext(nextPageLink: string, callback: ServiceCallback<TaskList>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<TaskList>

The callback

update(ProjectTask, string, string, string, RequestOptionsBase)

The service tasks resource is a nested, proxy-only resource representing work performed by a DMS 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.

function update(parameters: ProjectTask, groupName: string, serviceName: string, taskName: string, options?: RequestOptionsBase): Promise<ServiceTasksUpdateResponse>

Parameters

parameters
ProjectTask

Information about the task

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ServiceTasksUpdateResponse>

update(ProjectTask, string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)

function update(parameters: ProjectTask, groupName: string, serviceName: string, taskName: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectTask>)

Parameters

parameters
ProjectTask

Information about the task

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ProjectTask>

The callback

update(ProjectTask, string, string, string, ServiceCallback<ProjectTask>)

function update(parameters: ProjectTask, groupName: string, serviceName: string, taskName: string, callback: ServiceCallback<ProjectTask>)

Parameters

parameters
ProjectTask

Information about the task

groupName

string

Name of the resource group

serviceName

string

Name of the service

taskName

string

Name of the Task

callback

ServiceCallback<ProjectTask>

The callback