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 FileDetails resource.

abstract FileDetails get(String fileWorkspaceName, String fileName)

Returns details of a specific file in a work space.

abstract FileDetails getById(String id)

Returns details of a specific file in a work space.

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

Returns details of a specific file in a work space.

abstract Response<FileDetails> getWithResponse(String fileWorkspaceName, String fileName, Context context)

Returns details of a specific file in a work space.

abstract PagedIterable<FileDetails> list(String fileWorkspaceName)

Lists all the Files information under a workspace for an Azure subscription.

abstract PagedIterable<FileDetails> list(String fileWorkspaceName, Context context)

Lists all the Files information under a workspace for an Azure subscription.

abstract void upload(String fileWorkspaceName, String fileName, UploadFile uploadFile)

This API allows you to upload content to a file.

abstract Response<Void> uploadWithResponse(String fileWorkspaceName, String fileName, UploadFile uploadFile, Context context)

This API allows you to upload content to a file.

Method Details

define

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

Begins definition for a new FileDetails resource.

Parameters:

name - resource name.

Returns:

the first stage of the new FileDetails definition.

get

public abstract FileDetails get(String fileWorkspaceName, String fileName)

Returns details of a specific file in a work space.

Parameters:

fileWorkspaceName - File Workspace Name.
fileName - File Name.

Returns:

object that represents File Details resource.

getById

public abstract FileDetails getById(String id)

Returns details of a specific file in a work space.

Parameters:

id - the resource ID.

Returns:

object that represents File Details resource along with Response<T>.

getByIdWithResponse

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

Returns details of a specific file in a work space.

Parameters:

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

Returns:

object that represents File Details resource along with Response<T>.

getWithResponse

public abstract Response<FileDetails> getWithResponse(String fileWorkspaceName, String fileName, Context context)

Returns details of a specific file in a work space.

Parameters:

fileWorkspaceName - File Workspace Name.
fileName - File Name.
context - The context to associate with this operation.

Returns:

object that represents File Details resource along with Response<T>.

list

public abstract PagedIterable<FileDetails> list(String fileWorkspaceName)

Lists all the Files information under a workspace for an Azure subscription.

Parameters:

fileWorkspaceName - File Workspace Name.

Returns:

object that represents a collection of File resources as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<FileDetails> list(String fileWorkspaceName, Context context)

Lists all the Files information under a workspace for an Azure subscription.

Parameters:

fileWorkspaceName - File Workspace Name.
context - The context to associate with this operation.

Returns:

object that represents a collection of File resources as paginated response with PagedIterable<T>.

upload

public abstract void upload(String fileWorkspaceName, String fileName, UploadFile uploadFile)

This API allows you to upload content to a file.

Parameters:

fileWorkspaceName - File WorkspaceName.
fileName - File Name.
uploadFile - UploadFile object.

uploadWithResponse

public abstract Response<Void> uploadWithResponse(String fileWorkspaceName, String fileName, UploadFile uploadFile, Context context)

This API allows you to upload content to a file.

Parameters:

fileWorkspaceName - File WorkspaceName.
fileName - File Name.
uploadFile - UploadFile object.
context - The context to associate with this operation.

Returns:

Applies to