次の方法で共有


Files Interface

public interface Files

Resource collection API of Files.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new ProjectFile resource.

abstract void delete(String groupName, String serviceName, String projectName, String fileName)

Delete file This method deletes a file.

abstract void deleteById(String id)

Delete file This method deletes a file.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete file This method deletes a file.

abstract Response<Void> deleteWithResponse(String groupName, String serviceName, String projectName, String fileName, Context context)

Delete file This method deletes a file.

abstract ProjectFile get(String groupName, String serviceName, String projectName, String fileName)

Get file information The files resource is a nested, proxy-only resource representing a file stored under the project resource.

abstract ProjectFile getById(String id)

Get file information The files resource is a nested, proxy-only resource representing a file stored under the project resource.

abstract Response<ProjectFile> getByIdWithResponse(String id, Context context)

Get file information The files resource is a nested, proxy-only resource representing a file stored under the project resource.

abstract Response<ProjectFile> getWithResponse(String groupName, String serviceName, String projectName, String fileName, Context context)

Get file information The files resource is a nested, proxy-only resource representing a file stored under the project resource.

abstract PagedIterable<ProjectFile> list(String groupName, String serviceName, String projectName)

Get files in a project The project resource is a nested resource representing a stored migration project.

abstract PagedIterable<ProjectFile> list(String groupName, String serviceName, String projectName, Context context)

Get files in a project The project resource is a nested resource representing a stored migration project.

abstract FileStorageInfo read(String groupName, String serviceName, String projectName, String fileName)

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

abstract Response<FileStorageInfo> readWithResponse(String groupName, String serviceName, String projectName, String fileName, Context context)

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

abstract FileStorageInfo readWrite(String groupName, String serviceName, String projectName, String fileName)

Request information for reading and writing file content.

abstract Response<FileStorageInfo> readWriteWithResponse(String groupName, String serviceName, String projectName, String fileName, Context context)

Request information for reading and writing file content.

Method Details

define

public abstract ProjectFile.DefinitionStages.Blank define(String name)

Begins definition for a new ProjectFile resource.

Parameters:

name - resource name.

Returns:

the first stage of the new ProjectFile definition.

delete

public abstract void delete(String groupName, String serviceName, String projectName, String fileName)

Delete file This method deletes a file.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
fileName - Name of the File.

deleteById

public abstract void deleteById(String id)

Delete file This method deletes a file.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete file This method deletes a file.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String groupName, String serviceName, String projectName, String fileName, Context context)

Delete file This method deletes a file.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
fileName - Name of the File.
context - The context to associate with this operation.

Returns:

get

public abstract ProjectFile get(String groupName, String serviceName, String projectName, String fileName)

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

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
fileName - Name of the File.

Returns:

a file resource.

getById

public abstract ProjectFile getById(String id)

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

Parameters:

id - the resource ID.

Returns:

a file resource along with Response<T>.

getByIdWithResponse

public abstract Response<ProjectFile> getByIdWithResponse(String id, Context context)

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

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

a file resource along with Response<T>.

getWithResponse

public abstract Response<ProjectFile> getWithResponse(String groupName, String serviceName, String projectName, String fileName, Context context)

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

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
fileName - Name of the File.
context - The context to associate with this operation.

Returns:

a file resource along with Response<T>.

list

public abstract PagedIterable<ProjectFile> list(String groupName, String serviceName, String projectName)

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

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.

Returns:

oData page of files as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<ProjectFile> list(String groupName, String serviceName, String projectName, Context context)

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

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
context - The context to associate with this operation.

Returns:

oData page of files as paginated response with PagedIterable<T>.

read

public abstract FileStorageInfo read(String groupName, String serviceName, String projectName, String fileName)

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

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
fileName - Name of the File.

Returns:

file storage information.

readWithResponse

public abstract Response<FileStorageInfo> readWithResponse(String groupName, String serviceName, String projectName, String fileName, Context context)

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

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
fileName - Name of the File.
context - The context to associate with this operation.

Returns:

file storage information along with Response<T>.

readWrite

public abstract FileStorageInfo readWrite(String groupName, String serviceName, String projectName, String fileName)

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

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
fileName - Name of the File.

Returns:

file storage information.

readWriteWithResponse

public abstract Response<FileStorageInfo> readWriteWithResponse(String groupName, String serviceName, String projectName, String fileName, Context context)

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

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
fileName - Name of the File.
context - The context to associate with this operation.

Returns:

file storage information along with Response<T>.

Applies to