Files class

Class representing a Files.

Constructors

Files(DataMigrationServiceClientContext)

Create a Files.

Methods

createOrUpdate(ProjectFile, string, string, string, string, RequestOptionsBase)

The PUT method creates a new file or updates an existing one.

createOrUpdate(ProjectFile, string, string, string, string, RequestOptionsBase, ServiceCallback<ProjectFile>)
createOrUpdate(ProjectFile, string, string, string, string, ServiceCallback<ProjectFile>)
deleteMethod(string, string, string, string, RequestOptionsBase)

This method deletes a file.

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

The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file.

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

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

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

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

listNext(string, RequestOptionsBase, ServiceCallback<FileList>)
listNext(string, ServiceCallback<FileList>)
read(string, string, string, string, RequestOptionsBase)

This method is used for requesting storage information using which contents of the file can be downloaded.

read(string, string, string, string, RequestOptionsBase, ServiceCallback<FileStorageInfo>)
read(string, string, string, string, ServiceCallback<FileStorageInfo>)
readWrite(string, string, string, string, RequestOptionsBase)

This method is used for requesting information for reading and writing the file content.

readWrite(string, string, string, string, RequestOptionsBase, ServiceCallback<FileStorageInfo>)
readWrite(string, string, string, string, ServiceCallback<FileStorageInfo>)
update(ProjectFile, string, string, string, string, RequestOptionsBase)

This method updates an existing file.

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

Constructor Details

Files(DataMigrationServiceClientContext)

Create a Files.

new Files(client: DataMigrationServiceClientContext)

Parameters

client
DataMigrationServiceClientContext

Reference to the service client.

Method Details

createOrUpdate(ProjectFile, string, string, string, string, RequestOptionsBase)

The PUT method creates a new file or updates an existing one.

function createOrUpdate(parameters: ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: RequestOptionsBase): Promise<FilesCreateOrUpdateResponse>

Parameters

parameters
ProjectFile

Information about the file

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FilesCreateOrUpdateResponse>

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

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

Parameters

parameters
ProjectFile

Information about the file

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ProjectFile>

The callback

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

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

Parameters

parameters
ProjectFile

Information about the file

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

callback

ServiceCallback<ProjectFile>

The callback

deleteMethod(string, string, string, string, RequestOptionsBase)

This method deletes a file.

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

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

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

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

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

callback

ServiceCallback<void>

The callback

get(string, string, string, string, RequestOptionsBase)

The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file.

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

Returns

Promise<FilesGetResponse>

Promise<Models.FilesGetResponse>

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

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ProjectFile>

The callback

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

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

callback

ServiceCallback<ProjectFile>

The callback

list(string, string, string, RequestOptionsBase)

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

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

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.FilesListResponse>

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

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

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<FileList>

The callback

list(string, string, string, ServiceCallback<FileList>)

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

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

callback

ServiceCallback<FileList>

The callback

listNext(string, RequestOptionsBase)

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

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FilesListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<FileList>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<FileList>

The callback

listNext(string, ServiceCallback<FileList>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<FileList>

The callback

read(string, string, string, string, RequestOptionsBase)

This method is used for requesting storage information using which contents of the file can be downloaded.

function read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: RequestOptionsBase): Promise<FilesReadResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FilesReadResponse>

read(string, string, string, string, RequestOptionsBase, ServiceCallback<FileStorageInfo>)

function read(groupName: string, serviceName: string, projectName: string, fileName: string, options: RequestOptionsBase, callback: ServiceCallback<FileStorageInfo>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<FileStorageInfo>

The callback

read(string, string, string, string, ServiceCallback<FileStorageInfo>)

function read(groupName: string, serviceName: string, projectName: string, fileName: string, callback: ServiceCallback<FileStorageInfo>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

callback

ServiceCallback<FileStorageInfo>

The callback

readWrite(string, string, string, string, RequestOptionsBase)

This method is used for requesting information for reading and writing the file content.

function readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: RequestOptionsBase): Promise<FilesReadWriteResponse>

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FilesReadWriteResponse>

readWrite(string, string, string, string, RequestOptionsBase, ServiceCallback<FileStorageInfo>)

function readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: RequestOptionsBase, callback: ServiceCallback<FileStorageInfo>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<FileStorageInfo>

The callback

readWrite(string, string, string, string, ServiceCallback<FileStorageInfo>)

function readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, callback: ServiceCallback<FileStorageInfo>)

Parameters

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

callback

ServiceCallback<FileStorageInfo>

The callback

update(ProjectFile, string, string, string, string, RequestOptionsBase)

This method updates an existing file.

function update(parameters: ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: RequestOptionsBase): Promise<FilesUpdateResponse>

Parameters

parameters
ProjectFile

Information about the file

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FilesUpdateResponse>

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

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

Parameters

parameters
ProjectFile

Information about the file

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ProjectFile>

The callback

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

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

Parameters

parameters
ProjectFile

Information about the file

groupName

string

Name of the resource group

serviceName

string

Name of the service

projectName

string

Name of the project

fileName

string

Name of the File

callback

ServiceCallback<ProjectFile>

The callback