Tasks class
Class representing a Tasks.
Constructors
Tasks(Data |
Create a Tasks. |
Methods
Constructor Details
Tasks(DataMigrationServiceClientContext)
Create a Tasks.
new Tasks(client: DataMigrationServiceClientContext)
Parameters
Reference to the service client.
Method Details
cancel(string, string, string, string, RequestOptionsBase)
The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method cancels a task if it's currently queued or running.
function cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: RequestOptionsBase): Promise<TasksCancelResponse>
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<TasksCancelResponse>
Promise<Models.TasksCancelResponse>
cancel(string, string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)
function cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectTask>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
cancel(string, string, string, string, ServiceCallback<ProjectTask>)
function cancel(groupName: string, serviceName: string, projectName: string, taskName: string, callback: ServiceCallback<ProjectTask>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- callback
The callback
command(string, string, string, string, CommandPropertiesUnion, RequestOptionsBase)
The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. This method executes a command on a running task.
function command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: CommandPropertiesUnion, options?: RequestOptionsBase): Promise<TasksCommandResponse>
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- parameters
- CommandPropertiesUnion
Command to execute
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<TasksCommandResponse>
Promise<Models.TasksCommandResponse>
command(string, string, string, string, CommandPropertiesUnion, RequestOptionsBase, ServiceCallback<CommandPropertiesUnion>)
function command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: CommandPropertiesUnion, options: RequestOptionsBase, callback: ServiceCallback<CommandPropertiesUnion>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- parameters
- CommandPropertiesUnion
Command to execute
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
command(string, string, string, string, CommandPropertiesUnion, ServiceCallback<CommandPropertiesUnion>)
function command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: CommandPropertiesUnion, callback: ServiceCallback<CommandPropertiesUnion>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- parameters
- CommandPropertiesUnion
Command to execute
- callback
The callback
createOrUpdate(ProjectTask, string, string, string, string, RequestOptionsBase)
The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one.
function createOrUpdate(parameters: ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: RequestOptionsBase): Promise<TasksCreateOrUpdateResponse>
Parameters
- parameters
- ProjectTask
Information about the task
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<TasksCreateOrUpdateResponse>
Promise<Models.TasksCreateOrUpdateResponse>
createOrUpdate(ProjectTask, string, string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)
function createOrUpdate(parameters: ProjectTask, groupName: string, serviceName: string, projectName: 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
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
createOrUpdate(ProjectTask, string, string, string, string, ServiceCallback<ProjectTask>)
function createOrUpdate(parameters: ProjectTask, groupName: string, serviceName: string, projectName: 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
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- callback
The callback
deleteMethod(string, string, string, string, ServiceCallback<void>)
function deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, callback: ServiceCallback<void>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- callback
-
ServiceCallback<void>
The callback
deleteMethod(string, string, string, string, TasksDeleteMethodOptionalParams)
The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The DELETE method deletes a task, canceling it first if it's running.
function deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: TasksDeleteMethodOptionalParams): Promise<RestResponse>
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- TasksDeleteMethodOptionalParams
The optional parameters
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
deleteMethod(string, string, string, string, TasksDeleteMethodOptionalParams, ServiceCallback<void>)
function deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options: TasksDeleteMethodOptionalParams, callback: ServiceCallback<void>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- TasksDeleteMethodOptionalParams
The optional parameters
- callback
-
ServiceCallback<void>
The callback
get(string, string, string, string, ServiceCallback<ProjectTask>)
function get(groupName: string, serviceName: string, projectName: string, taskName: string, callback: ServiceCallback<ProjectTask>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- callback
The callback
get(string, string, string, string, TasksGetOptionalParams)
The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The GET method retrieves information about a task.
function get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: TasksGetOptionalParams): Promise<TasksGetResponse>
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- TasksGetOptionalParams
The optional parameters
Returns
Promise<TasksGetResponse>
Promise<Models.TasksGetResponse>
get(string, string, string, string, TasksGetOptionalParams, ServiceCallback<ProjectTask>)
function get(groupName: string, serviceName: string, projectName: string, taskName: string, options: TasksGetOptionalParams, callback: ServiceCallback<ProjectTask>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- TasksGetOptionalParams
The optional parameters
- callback
The callback
list(string, string, string, ServiceCallback<TaskList>)
function list(groupName: string, serviceName: string, projectName: string, callback: ServiceCallback<TaskList>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- callback
The callback
list(string, string, string, TasksListOptionalParams)
The services resource is the top-level resource that represents the Database Migration Service. This method returns a list of 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, projectName: string, options?: TasksListOptionalParams): Promise<TasksListResponse>
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- options
- TasksListOptionalParams
The optional parameters
Returns
Promise<TasksListResponse>
Promise<Models.TasksListResponse>
list(string, string, string, TasksListOptionalParams, ServiceCallback<TaskList>)
function list(groupName: string, serviceName: string, projectName: string, options: TasksListOptionalParams, callback: ServiceCallback<TaskList>)
Parameters
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- options
- TasksListOptionalParams
The optional parameters
- callback
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 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<TasksListNextResponse>
Parameters
- nextPageLink
-
string
The NextLink from the previous successful call to List operation.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<TasksListNextResponse>
Promise<Models.TasksListNextResponse>
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
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
The callback
update(ProjectTask, string, string, string, string, RequestOptionsBase)
The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PATCH method updates an existing task, but since tasks have no mutable custom properties, there is little reason to do so.
function update(parameters: ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: RequestOptionsBase): Promise<TasksUpdateResponse>
Parameters
- parameters
- ProjectTask
Information about the task
- groupName
-
string
Name of the resource group
- serviceName
-
string
Name of the service
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<TasksUpdateResponse>
Promise<Models.TasksUpdateResponse>
update(ProjectTask, string, string, string, string, RequestOptionsBase, ServiceCallback<ProjectTask>)
function update(parameters: ProjectTask, groupName: string, serviceName: string, projectName: 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
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
update(ProjectTask, string, string, string, string, ServiceCallback<ProjectTask>)
function update(parameters: ProjectTask, groupName: string, serviceName: string, projectName: 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
- projectName
-
string
Name of the project
- taskName
-
string
Name of the Task
- callback
The callback