Class StorageControlConnection (2.27.0)

This interface defines virtual methods for each of the user-facing overload sets in StorageControlClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type StorageControlClient.

To create a concrete instance, see MakeStorageControlConnection().

For mocking, see storagecontrol_v2_mocks::MockStorageControlConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateFolder(google::storage::control::v2::CreateFolderRequest const &)

Parameter
Name Description
request google::storage::control::v2::CreateFolderRequest const &
Returns
Type Description
StatusOr< google::storage::control::v2::Folder >

virtual DeleteFolder(google::storage::control::v2::DeleteFolderRequest const &)

Parameter
Name Description
request google::storage::control::v2::DeleteFolderRequest const &
Returns
Type Description
Status

virtual GetFolder(google::storage::control::v2::GetFolderRequest const &)

Parameter
Name Description
request google::storage::control::v2::GetFolderRequest const &
Returns
Type Description
StatusOr< google::storage::control::v2::Folder >

virtual ListFolders(google::storage::control::v2::ListFoldersRequest)

Parameter
Name Description
request google::storage::control::v2::ListFoldersRequest
Returns
Type Description
StreamRange< google::storage::control::v2::Folder >

virtual RenameFolder(google::storage::control::v2::RenameFolderRequest const &)

Parameter
Name Description
request google::storage::control::v2::RenameFolderRequest const &
Returns
Type Description
future< StatusOr< google::storage::control::v2::Folder > >

virtual RenameFolder(NoAwaitTag, google::storage::control::v2::RenameFolderRequest const &)

Parameters
Name Description
NoAwaitTag
request google::storage::control::v2::RenameFolderRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RenameFolder(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::storage::control::v2::Folder > >

virtual GetStorageLayout(google::storage::control::v2::GetStorageLayoutRequest const &)

Parameter
Name Description
request google::storage::control::v2::GetStorageLayoutRequest const &
Returns
Type Description
StatusOr< google::storage::control::v2::StorageLayout >

virtual CreateManagedFolder(google::storage::control::v2::CreateManagedFolderRequest const &)

Parameter
Name Description
request google::storage::control::v2::CreateManagedFolderRequest const &
Returns
Type Description
StatusOr< google::storage::control::v2::ManagedFolder >

virtual DeleteManagedFolder(google::storage::control::v2::DeleteManagedFolderRequest const &)

Parameter
Name Description
request google::storage::control::v2::DeleteManagedFolderRequest const &
Returns
Type Description
Status

virtual GetManagedFolder(google::storage::control::v2::GetManagedFolderRequest const &)

Parameter
Name Description
request google::storage::control::v2::GetManagedFolderRequest const &
Returns
Type Description
StatusOr< google::storage::control::v2::ManagedFolder >

virtual ListManagedFolders(google::storage::control::v2::ListManagedFoldersRequest)

Parameter
Name Description
request google::storage::control::v2::ListManagedFoldersRequest
Returns
Type Description
StreamRange< google::storage::control::v2::ManagedFolder >