Cloud Storage v2 API - Class StorageControl.StorageControlBase (1.0.0-beta02)

[BindServiceMethod(typeof(StorageControl), "BindService")]
public abstract class StorageControl.StorageControlBase

Reference documentation and code samples for the Cloud Storage v2 API class StorageControl.StorageControlBase.

Base class for server-side implementations of StorageControl

Inheritance

object > StorageControl.StorageControlBase

Namespace

Google.Cloud.Storage.Control.V2

Assembly

Google.Cloud.Storage.Control.V2.dll

Methods

CreateFolder(CreateFolderRequest, ServerCallContext)

public virtual Task<Folder> CreateFolder(CreateFolderRequest request, ServerCallContext context)

Creates a new folder.

Parameters
NameDescription
requestCreateFolderRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFolder

The response to send back to the client (wrapped by a task).

DeleteFolder(DeleteFolderRequest, ServerCallContext)

public virtual Task<Empty> DeleteFolder(DeleteFolderRequest request, ServerCallContext context)

Permanently deletes an empty folder.

Parameters
NameDescription
requestDeleteFolderRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

GetFolder(GetFolderRequest, ServerCallContext)

public virtual Task<Folder> GetFolder(GetFolderRequest request, ServerCallContext context)

Returns metadata for the specified folder.

Parameters
NameDescription
requestGetFolderRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskFolder

The response to send back to the client (wrapped by a task).

GetStorageLayout(GetStorageLayoutRequest, ServerCallContext)

public virtual Task<StorageLayout> GetStorageLayout(GetStorageLayoutRequest request, ServerCallContext context)

Returns the storage layout configuration for a given bucket.

Parameters
NameDescription
requestGetStorageLayoutRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskStorageLayout

The response to send back to the client (wrapped by a task).

ListFolders(ListFoldersRequest, ServerCallContext)

public virtual Task<ListFoldersResponse> ListFolders(ListFoldersRequest request, ServerCallContext context)

Retrieves a list of folders for a given bucket.

Parameters
NameDescription
requestListFoldersRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListFoldersResponse

The response to send back to the client (wrapped by a task).

RenameFolder(RenameFolderRequest, ServerCallContext)

public virtual Task<Operation> RenameFolder(RenameFolderRequest request, ServerCallContext context)

Renames a source folder to a destination folder. During a rename, the source and destination folders are locked until the long running operation completes.

Parameters
NameDescription
requestRenameFolderRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).