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

public class StorageControl.StorageControlClient : ClientBase<StorageControl.StorageControlClient>

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

Client for StorageControl

Inheritance

object > ClientBase > ClientBaseStorageControlStorageControlClient > StorageControl.StorageControlClient

Namespace

Google.Cloud.Storage.Control.V2

Assembly

Google.Cloud.Storage.Control.V2.dll

Constructors

StorageControlClient()

protected StorageControlClient()

Protected parameterless constructor to allow creation of test doubles.

StorageControlClient(CallInvoker)

public StorageControlClient(CallInvoker callInvoker)

Creates a new client for StorageControl that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

StorageControlClient(ChannelBase)

public StorageControlClient(ChannelBase channel)

Creates a new client for StorageControl

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

StorageControlClient(ClientBaseConfiguration)

protected StorageControlClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateFolder(CreateFolderRequest, CallOptions)

public virtual Folder CreateFolder(CreateFolderRequest request, CallOptions options)

Creates a new folder.

Parameters
NameDescription
requestCreateFolderRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Folder

The response received from the server.

CreateFolder(CreateFolderRequest, Metadata, DateTime?, CancellationToken)

public virtual Folder CreateFolder(CreateFolderRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new folder.

Parameters
NameDescription
requestCreateFolderRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Folder

The response received from the server.

CreateFolderAsync(CreateFolderRequest, CallOptions)

public virtual AsyncUnaryCall<Folder> CreateFolderAsync(CreateFolderRequest request, CallOptions options)

Creates a new folder.

Parameters
NameDescription
requestCreateFolderRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFolder

The call object.

CreateFolderAsync(CreateFolderRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Folder> CreateFolderAsync(CreateFolderRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a new folder.

Parameters
NameDescription
requestCreateFolderRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallFolder

The call object.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

DeleteFolder(DeleteFolderRequest, CallOptions)

public virtual Empty DeleteFolder(DeleteFolderRequest request, CallOptions options)

Permanently deletes an empty folder.

Parameters
NameDescription
requestDeleteFolderRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteFolder(DeleteFolderRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteFolder(DeleteFolderRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Permanently deletes an empty folder.

Parameters
NameDescription
requestDeleteFolderRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteFolderAsync(DeleteFolderRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteFolderAsync(DeleteFolderRequest request, CallOptions options)

Permanently deletes an empty folder.

Parameters
NameDescription
requestDeleteFolderRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeleteFolderAsync(DeleteFolderRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteFolderAsync(DeleteFolderRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Permanently deletes an empty folder.

Parameters
NameDescription
requestDeleteFolderRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

GetFolder(GetFolderRequest, CallOptions)

public virtual Folder GetFolder(GetFolderRequest request, CallOptions options)

Returns metadata for the specified folder.

Parameters
NameDescription
requestGetFolderRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Folder

The response received from the server.

GetFolder(GetFolderRequest, Metadata, DateTime?, CancellationToken)

public virtual Folder GetFolder(GetFolderRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns metadata for the specified folder.

Parameters
NameDescription
requestGetFolderRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Folder

The response received from the server.

GetFolderAsync(GetFolderRequest, CallOptions)

public virtual AsyncUnaryCall<Folder> GetFolderAsync(GetFolderRequest request, CallOptions options)

Returns metadata for the specified folder.

Parameters
NameDescription
requestGetFolderRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallFolder

The call object.

GetFolderAsync(GetFolderRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Folder> GetFolderAsync(GetFolderRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns metadata for the specified folder.

Parameters
NameDescription
requestGetFolderRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallFolder

The call object.

GetStorageLayout(GetStorageLayoutRequest, CallOptions)

public virtual StorageLayout GetStorageLayout(GetStorageLayoutRequest request, CallOptions options)

Returns the storage layout configuration for a given bucket.

Parameters
NameDescription
requestGetStorageLayoutRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
StorageLayout

The response received from the server.

GetStorageLayout(GetStorageLayoutRequest, Metadata, DateTime?, CancellationToken)

public virtual StorageLayout GetStorageLayout(GetStorageLayoutRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the storage layout configuration for a given bucket.

Parameters
NameDescription
requestGetStorageLayoutRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
StorageLayout

The response received from the server.

GetStorageLayoutAsync(GetStorageLayoutRequest, CallOptions)

public virtual AsyncUnaryCall<StorageLayout> GetStorageLayoutAsync(GetStorageLayoutRequest request, CallOptions options)

Returns the storage layout configuration for a given bucket.

Parameters
NameDescription
requestGetStorageLayoutRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallStorageLayout

The call object.

GetStorageLayoutAsync(GetStorageLayoutRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<StorageLayout> GetStorageLayoutAsync(GetStorageLayoutRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the storage layout configuration for a given bucket.

Parameters
NameDescription
requestGetStorageLayoutRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallStorageLayout

The call object.

ListFolders(ListFoldersRequest, CallOptions)

public virtual ListFoldersResponse ListFolders(ListFoldersRequest request, CallOptions options)

Retrieves a list of folders for a given bucket.

Parameters
NameDescription
requestListFoldersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListFoldersResponse

The response received from the server.

ListFolders(ListFoldersRequest, Metadata, DateTime?, CancellationToken)

public virtual ListFoldersResponse ListFolders(ListFoldersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of folders for a given bucket.

Parameters
NameDescription
requestListFoldersRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListFoldersResponse

The response received from the server.

ListFoldersAsync(ListFoldersRequest, CallOptions)

public virtual AsyncUnaryCall<ListFoldersResponse> ListFoldersAsync(ListFoldersRequest request, CallOptions options)

Retrieves a list of folders for a given bucket.

Parameters
NameDescription
requestListFoldersRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListFoldersResponse

The call object.

ListFoldersAsync(ListFoldersRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListFoldersResponse> ListFoldersAsync(ListFoldersRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of folders for a given bucket.

Parameters
NameDescription
requestListFoldersRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListFoldersResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override StorageControl.StorageControlClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
StorageControlStorageControlClient
Overrides

RenameFolder(RenameFolderRequest, CallOptions)

public virtual Operation RenameFolder(RenameFolderRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

RenameFolder(RenameFolderRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation RenameFolder(RenameFolderRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

RenameFolderAsync(RenameFolderRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> RenameFolderAsync(RenameFolderRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

RenameFolderAsync(RenameFolderRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> RenameFolderAsync(RenameFolderRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.