Compartilhar via


Files class

Classe que representa um Arquivo.

Construtores

Files(DataMigrationServiceClientContext)

Criar arquivos.

Métodos

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

O método PUT cria um novo arquivo ou atualiza um existente.

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

Esse método exclui um arquivo.

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

O recurso de arquivos é um recurso aninhado, somente proxy, que representa um arquivo armazenado no recurso do projeto. Esse método recupera informações sobre um arquivo.

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

O recurso do projeto é um recurso aninhado que representa um projeto de migração armazenado. Esse método retorna uma lista de arquivos pertencentes a um recurso de projeto.

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

O recurso do projeto é um recurso aninhado que representa um projeto de migração armazenado. Esse método retorna uma lista de arquivos pertencentes a um recurso de projeto.

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

Esse método é usado para solicitar informações de armazenamento usando qual conteúdo do arquivo pode ser baixado.

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

Esse método é usado para solicitar informações para ler e gravar o conteúdo do arquivo.

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

Esse método atualiza um arquivo existente.

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

Detalhes do construtor

Files(DataMigrationServiceClientContext)

Criar arquivos.

new Files(client: DataMigrationServiceClientContext)

Parâmetros

client
DataMigrationServiceClientContext

Referência ao cliente de serviço.

Detalhes do método

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

O método PUT cria um novo arquivo ou atualiza um existente.

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

Parâmetros

parameters
ProjectFile

Informações sobre o arquivo

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

Retornos

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

Parâmetros

parameters
ProjectFile

Informações sobre o arquivo

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<ProjectFile>

O retorno de chamada

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

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

Parâmetros

parameters
ProjectFile

Informações sobre o arquivo

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

callback

ServiceCallback<ProjectFile>

O retorno de chamada

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

Esse método exclui um arquivo.

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

Retornos

Promise<RestResponse>

Promessa<> 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>)

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<void>

O retorno de chamada

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

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

callback

ServiceCallback<void>

O retorno de chamada

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

O recurso de arquivos é um recurso aninhado, somente proxy, que representa um arquivo armazenado no recurso do projeto. Esse método recupera informações sobre um arquivo.

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

Retornos

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<ProjectFile>

O retorno de chamada

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

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

callback

ServiceCallback<ProjectFile>

O retorno de chamada

list(string, string, string, RequestOptionsBase)

O recurso do projeto é um recurso aninhado que representa um projeto de migração armazenado. Esse método retorna uma lista de arquivos pertencentes a um recurso de projeto.

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

options
RequestOptionsBase

Os parâmetros opcionais

Retornos

> Promise<Models.FilesListResponse

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

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

options
RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<FileList>

O retorno de chamada

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

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

callback

ServiceCallback<FileList>

O retorno de chamada

listNext(string, RequestOptionsBase)

O recurso do projeto é um recurso aninhado que representa um projeto de migração armazenado. Esse método retorna uma lista de arquivos pertencentes a um recurso de projeto.

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

Parâmetros

nextPageLink

string

O NextLink da chamada com êxito anterior para a operação List.

options
RequestOptionsBase

Os parâmetros opcionais

Retornos

> Promise<Models.FilesListNextResponse

listNext(string, RequestOptionsBase, ServiceCallback<FileList>)

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

Parâmetros

nextPageLink

string

O NextLink da chamada com êxito anterior para a operação List.

options
RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<FileList>

O retorno de chamada

listNext(string, ServiceCallback<FileList>)

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

Parâmetros

nextPageLink

string

O NextLink da chamada com êxito anterior para a operação List.

callback

ServiceCallback<FileList>

O retorno de chamada

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

Esse método é usado para solicitar informações de armazenamento usando qual conteúdo do arquivo pode ser baixado.

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

Retornos

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<FileStorageInfo>

O retorno de chamada

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

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

callback

ServiceCallback<FileStorageInfo>

O retorno de chamada

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

Esse método é usado para solicitar informações para ler e gravar o conteúdo do arquivo.

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

Retornos

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<FileStorageInfo>

O retorno de chamada

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

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

Parâmetros

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

callback

ServiceCallback<FileStorageInfo>

O retorno de chamada

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

Esse método atualiza um arquivo existente.

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

Parâmetros

parameters
ProjectFile

Informações sobre o arquivo

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

Retornos

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

Parâmetros

parameters
ProjectFile

Informações sobre o arquivo

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

options
RequestOptionsBase

Os parâmetros opcionais

callback

ServiceCallback<ProjectFile>

O retorno de chamada

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

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

Parâmetros

parameters
ProjectFile

Informações sobre o arquivo

groupName

string

Nome do grupo de recursos

serviceName

string

Nome do serviço

projectName

string

Nome do projeto

fileName

string

Nome do arquivo

callback

ServiceCallback<ProjectFile>

O retorno de chamada