Cloud Storage v2 API - Class StorageControlClientImpl (1.0.0-beta01)

public sealed class StorageControlClientImpl : StorageControlClient

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

StorageControl client wrapper implementation, for convenient use.

Inheritance

object > StorageControlClient > StorageControlClientImpl

Namespace

Google.Cloud.Storage.Control.V2

Assembly

Google.Cloud.Storage.Control.V2.dll

Remarks

StorageControl service includes selected control plane operations.

Constructors

StorageControlClientImpl(StorageControlClient, StorageControlSettings, ILogger)

public StorageControlClientImpl(StorageControl.StorageControlClient grpcClient, StorageControlSettings settings, ILogger logger)

Constructs a client wrapper for the StorageControl service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientStorageControlStorageControlClient

The underlying gRPC client.

settingsStorageControlSettings

The base StorageControlSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override StorageControl.StorageControlClient GrpcClient { get; }

The underlying gRPC StorageControl client

Property Value
TypeDescription
StorageControlStorageControlClient
Overrides

RenameFolderOperationsClient

public override OperationsClient RenameFolderOperationsClient { get; }

The long-running operations client for RenameFolder.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateFolder(CreateFolderRequest, CallSettings)

public override Folder CreateFolder(CreateFolderRequest request, CallSettings callSettings = null)

Creates a new folder.

Parameters
NameDescription
requestCreateFolderRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Folder

The RPC response.

Overrides

CreateFolderAsync(CreateFolderRequest, CallSettings)

public override Task<Folder> CreateFolderAsync(CreateFolderRequest request, CallSettings callSettings = null)

Creates a new folder.

Parameters
NameDescription
requestCreateFolderRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFolder

A Task containing the RPC response.

Overrides

DeleteFolder(DeleteFolderRequest, CallSettings)

public override void DeleteFolder(DeleteFolderRequest request, CallSettings callSettings = null)

Permanently deletes an empty folder.

Parameters
NameDescription
requestDeleteFolderRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteFolderAsync(DeleteFolderRequest, CallSettings)

public override Task DeleteFolderAsync(DeleteFolderRequest request, CallSettings callSettings = null)

Permanently deletes an empty folder.

Parameters
NameDescription
requestDeleteFolderRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetFolder(GetFolderRequest, CallSettings)

public override Folder GetFolder(GetFolderRequest request, CallSettings callSettings = null)

Returns metadata for the specified folder.

Parameters
NameDescription
requestGetFolderRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Folder

The RPC response.

Overrides

GetFolderAsync(GetFolderRequest, CallSettings)

public override Task<Folder> GetFolderAsync(GetFolderRequest request, CallSettings callSettings = null)

Returns metadata for the specified folder.

Parameters
NameDescription
requestGetFolderRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFolder

A Task containing the RPC response.

Overrides

GetStorageLayout(GetStorageLayoutRequest, CallSettings)

public override StorageLayout GetStorageLayout(GetStorageLayoutRequest request, CallSettings callSettings = null)

Returns the storage layout configuration for a given bucket.

Parameters
NameDescription
requestGetStorageLayoutRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
StorageLayout

The RPC response.

Overrides

GetStorageLayoutAsync(GetStorageLayoutRequest, CallSettings)

public override Task<StorageLayout> GetStorageLayoutAsync(GetStorageLayoutRequest request, CallSettings callSettings = null)

Returns the storage layout configuration for a given bucket.

Parameters
NameDescription
requestGetStorageLayoutRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskStorageLayout

A Task containing the RPC response.

Overrides

ListFolders(ListFoldersRequest, CallSettings)

public override PagedEnumerable<ListFoldersResponse, Folder> ListFolders(ListFoldersRequest request, CallSettings callSettings = null)

Retrieves a list of folders for a given bucket.

Parameters
NameDescription
requestListFoldersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListFoldersResponseFolder

A pageable sequence of Folder resources.

Overrides

ListFoldersAsync(ListFoldersRequest, CallSettings)

public override PagedAsyncEnumerable<ListFoldersResponse, Folder> ListFoldersAsync(ListFoldersRequest request, CallSettings callSettings = null)

Retrieves a list of folders for a given bucket.

Parameters
NameDescription
requestListFoldersRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListFoldersResponseFolder

A pageable asynchronous sequence of Folder resources.

Overrides

RenameFolder(RenameFolderRequest, CallSettings)

public override Operation<Folder, RenameFolderMetadata> RenameFolder(RenameFolderRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFolderRenameFolderMetadata

The RPC response.

Overrides

RenameFolderAsync(RenameFolderRequest, CallSettings)

public override Task<Operation<Folder, RenameFolderMetadata>> RenameFolderAsync(RenameFolderRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFolderRenameFolderMetadata

A Task containing the RPC response.

Overrides