Projects class
Class representing a Projects.
Constructors
Projects(Data |
Create a Projects. |
Methods
Constructor Details
Projects(DataMigrationServiceClientContext)
Create a Projects.
new Projects(client: DataMigrationServiceClientContext)
Parameters
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<ProjectsCreateOrUpdateResponse>
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
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
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
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
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<ProjectsGetResponse>
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
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
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<ProjectsListResponse>
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
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
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<ProjectsListNextResponse>
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
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
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<ProjectsUpdateResponse>
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
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
The callback