Projects class

Class representing a Projects.

Constructors

Projects(DataMigrationServiceClientContext)

Create a Projects.

Methods

createOrUpdate(Project, string, string, string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.

createOrUpdate(Project, string, string, string, RequestOptionsBase, ServiceCallback<Project>)
createOrUpdate(Project, string, string, string, ServiceCallback<Project>)
deleteMethod(string, string, string, ProjectsDeleteMethodOptionalParams)

The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

deleteMethod(string, string, string, ProjectsDeleteMethodOptionalParams, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

get(string, string, string, RequestOptionsBase, ServiceCallback<Project>)
get(string, string, string, ServiceCallback<Project>)
list(string, string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

list(string, string, RequestOptionsBase, ServiceCallback<ProjectList>)
list(string, string, ServiceCallback<ProjectList>)
listNext(string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

listNext(string, RequestOptionsBase, ServiceCallback<ProjectList>)
listNext(string, ServiceCallback<ProjectList>)
update(Project, string, string, string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.

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

Constructor Details

Projects(DataMigrationServiceClientContext)

Create a Projects.

new Projects(client: DataMigrationServiceClientContext)

Parameters

client
DataMigrationServiceClientContext

Reference to the service client.

Method Details

createOrUpdate(Project, string, string, string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.

function createOrUpdate(parameters: Project, groupName: string, serviceName: string, projectName: string, options?: RequestOptionsBase): Promise<ProjectsCreateOrUpdateResponse>

Parameters

parameters
Project

Information about the project

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ProjectsCreateOrUpdateResponse>

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

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

Parameters

parameters
Project

Information about the project

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Project>

The callback

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

function createOrUpdate(parameters: Project, groupName: string, serviceName: string, projectName: string, callback: ServiceCallback<Project>)

Parameters

parameters
Project

Information about the project

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

callback

ServiceCallback<Project>

The callback

deleteMethod(string, string, string, ProjectsDeleteMethodOptionalParams)

The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

function deleteMethod(groupName: string, serviceName: string, projectName: string, options?: ProjectsDeleteMethodOptionalParams): Promise<RestResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

options
ProjectsDeleteMethodOptionalParams

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

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

function deleteMethod(groupName: string, serviceName: string, projectName: string, options: ProjectsDeleteMethodOptionalParams, callback: ServiceCallback<void>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

options
ProjectsDeleteMethodOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

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

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

callback

ServiceCallback<void>

The callback

get(string, string, string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

function get(groupName: string, serviceName: string, projectName: string, options?: RequestOptionsBase): Promise<ProjectsGetResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ProjectsGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<Project>)

function get(groupName: string, serviceName: string, projectName: string, options: RequestOptionsBase, callback: ServiceCallback<Project>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Project>

The callback

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

function get(groupName: string, serviceName: string, projectName: string, callback: ServiceCallback<Project>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

callback

ServiceCallback<Project>

The callback

list(string, string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

function list(groupName: string, serviceName: string, options?: RequestOptionsBase): Promise<ProjectsListResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ProjectsListResponse>

list(string, string, RequestOptionsBase, ServiceCallback<ProjectList>)

function list(groupName: string, serviceName: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectList>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ProjectList>

The callback

list(string, string, ServiceCallback<ProjectList>)

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

callback

ServiceCallback<ProjectList>

The callback

listNext(string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ProjectsListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<ProjectList>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ProjectList>

The callback

listNext(string, ServiceCallback<ProjectList>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<ProjectList>

The callback

update(Project, string, string, string, RequestOptionsBase)

The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.

function update(parameters: Project, groupName: string, serviceName: string, projectName: string, options?: RequestOptionsBase): Promise<ProjectsUpdateResponse>

Parameters

parameters
Project

Information about the project

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ProjectsUpdateResponse>

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

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

Parameters

parameters
Project

Information about the project

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Project>

The callback

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

function update(parameters: Project, groupName: string, serviceName: string, projectName: string, callback: ServiceCallback<Project>)

Parameters

parameters
Project

Information about the project

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

callback

ServiceCallback<Project>

The callback