Sdílet prostřednictvím


Files class

Třída představující soubory.

Konstruktory

Files(DataMigrationServiceClientContext)

Vytvořte soubory.

Metody

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

Metoda PUT vytvoří nový soubor nebo aktualizuje existující soubor.

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

Tato metoda odstraní soubor.

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

Zdroj souborů je vnořený zdroj pouze proxy, který představuje soubor uložený v rámci zdroje projektu. Tato metoda načte informace o souboru.

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

Zdroj projektu je vnořený zdroj představující uložený projekt migrace. Tato metoda vrátí seznam souborů vlastněných zdrojem projektu.

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

Zdroj projektu je vnořený zdroj představující uložený projekt migrace. Tato metoda vrátí seznam souborů vlastněných zdrojem projektu.

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

Tato metoda se používá k vyžádání informací o úložišti pomocí toho, který obsah souboru lze stáhnout.

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

Tato metoda se používá k vyžádání informací pro čtení a zápis obsahu souboru.

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

Tato metoda aktualizuje existující soubor.

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

Podrobnosti konstruktoru

Files(DataMigrationServiceClientContext)

Vytvořte soubory.

new Files(client: DataMigrationServiceClientContext)

Parametry

client
DataMigrationServiceClientContext

Odkaz na klienta služby

Podrobnosti metody

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

Metoda PUT vytvoří nový soubor nebo aktualizuje existující soubor.

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

Parametry

parameters
ProjectFile

Informace o souboru

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

Návraty

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

Parametry

parameters
ProjectFile

Informace o souboru

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

callback

ServiceCallback<ProjectFile>

Zpětné volání

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

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

Parametry

parameters
ProjectFile

Informace o souboru

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

callback

ServiceCallback<ProjectFile>

Zpětné volání

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

Tato metoda odstraní soubor.

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

Návraty

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

callback

ServiceCallback<void>

Zpětné volání

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

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

callback

ServiceCallback<void>

Zpětné volání

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

Zdroj souborů je vnořený zdroj pouze proxy, který představuje soubor uložený v rámci zdroje projektu. Tato metoda načte informace o souboru.

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

Návraty

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

callback

ServiceCallback<ProjectFile>

Zpětné volání

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

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

callback

ServiceCallback<ProjectFile>

Zpětné volání

list(string, string, string, RequestOptionsBase)

Zdroj projektu je vnořený zdroj představující uložený projekt migrace. Tato metoda vrátí seznam souborů vlastněných zdrojem projektu.

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

options
RequestOptionsBase

Volitelné parametry

Návraty

Promise<Models.FilesListResponse>

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

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

options
RequestOptionsBase

Volitelné parametry

callback

ServiceCallback<FileList>

Zpětné volání

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

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

callback

ServiceCallback<FileList>

Zpětné volání

listNext(string, RequestOptionsBase)

Zdroj projektu je vnořený zdroj představující uložený projekt migrace. Tato metoda vrátí seznam souborů vlastněných zdrojem projektu.

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

Parametry

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

Volitelné parametry

Návraty

Promise<Models.FilesListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<FileList>)

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

Parametry

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

Volitelné parametry

callback

ServiceCallback<FileList>

Zpětné volání

listNext(string, ServiceCallback<FileList>)

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

Parametry

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<FileList>

Zpětné volání

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

Tato metoda se používá k vyžádání informací o úložišti pomocí toho, který obsah souboru lze stáhnout.

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

Návraty

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

callback

ServiceCallback<FileStorageInfo>

Zpětné volání

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

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

callback

ServiceCallback<FileStorageInfo>

Zpětné volání

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

Tato metoda se používá k vyžádání informací pro čtení a zápis obsahu souboru.

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

Návraty

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

callback

ServiceCallback<FileStorageInfo>

Zpětné volání

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

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

Parametry

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

callback

ServiceCallback<FileStorageInfo>

Zpětné volání

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

Tato metoda aktualizuje existující soubor.

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

Parametry

parameters
ProjectFile

Informace o souboru

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

Návraty

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

Parametry

parameters
ProjectFile

Informace o souboru

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

options
RequestOptionsBase

Volitelné parametry

callback

ServiceCallback<ProjectFile>

Zpětné volání

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

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

Parametry

parameters
ProjectFile

Informace o souboru

groupName

string

Název skupiny prostředků

serviceName

string

Název služby

projectName

string

Název projektu

fileName

string

Název souboru

callback

ServiceCallback<ProjectFile>

Zpětné volání