Class BareMetalSolutionConnection (2.20.0)

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

To create a concrete instance, see MakeBareMetalSolutionConnection().

For mocking, see baremetalsolution_v2_mocks::MockBareMetalSolutionConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListInstances(google::cloud::baremetalsolution::v2::ListInstancesRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListInstancesRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::Instance >

virtual GetInstance(google::cloud::baremetalsolution::v2::GetInstanceRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::GetInstanceRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::Instance >

virtual UpdateInstance(google::cloud::baremetalsolution::v2::UpdateInstanceRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::UpdateInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::Instance > >

virtual RenameInstance(google::cloud::baremetalsolution::v2::RenameInstanceRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::RenameInstanceRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::Instance >

virtual ResetInstance(google::cloud::baremetalsolution::v2::ResetInstanceRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ResetInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::ResetInstanceResponse > >

virtual StartInstance(google::cloud::baremetalsolution::v2::StartInstanceRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::StartInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::StartInstanceResponse > >

virtual StopInstance(google::cloud::baremetalsolution::v2::StopInstanceRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::StopInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::StopInstanceResponse > >

virtual EnableInteractiveSerialConsole(google::cloud::baremetalsolution::v2::EnableInteractiveSerialConsoleRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::EnableInteractiveSerialConsoleRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::EnableInteractiveSerialConsoleResponse > >

virtual DisableInteractiveSerialConsole(google::cloud::baremetalsolution::v2::DisableInteractiveSerialConsoleRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::DisableInteractiveSerialConsoleRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::DisableInteractiveSerialConsoleResponse > >

virtual DetachLun(google::cloud::baremetalsolution::v2::DetachLunRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::DetachLunRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::Instance > >

virtual ListSSHKeys(google::cloud::baremetalsolution::v2::ListSSHKeysRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListSSHKeysRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::SSHKey >

virtual CreateSSHKey(google::cloud::baremetalsolution::v2::CreateSSHKeyRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::CreateSSHKeyRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::SSHKey >

virtual DeleteSSHKey(google::cloud::baremetalsolution::v2::DeleteSSHKeyRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::DeleteSSHKeyRequest const &
Returns
Type Description
Status

virtual ListVolumes(google::cloud::baremetalsolution::v2::ListVolumesRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListVolumesRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::Volume >

virtual GetVolume(google::cloud::baremetalsolution::v2::GetVolumeRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::GetVolumeRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::Volume >

virtual UpdateVolume(google::cloud::baremetalsolution::v2::UpdateVolumeRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::UpdateVolumeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::Volume > >

virtual RenameVolume(google::cloud::baremetalsolution::v2::RenameVolumeRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::RenameVolumeRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::Volume >

virtual EvictVolume(google::cloud::baremetalsolution::v2::EvictVolumeRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::EvictVolumeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::OperationMetadata > >

virtual ResizeVolume(google::cloud::baremetalsolution::v2::ResizeVolumeRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ResizeVolumeRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::Volume > >

virtual ListNetworks(google::cloud::baremetalsolution::v2::ListNetworksRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListNetworksRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::Network >

virtual ListNetworkUsage(google::cloud::baremetalsolution::v2::ListNetworkUsageRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListNetworkUsageRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::ListNetworkUsageResponse >

virtual GetNetwork(google::cloud::baremetalsolution::v2::GetNetworkRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::GetNetworkRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::Network >

virtual UpdateNetwork(google::cloud::baremetalsolution::v2::UpdateNetworkRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::UpdateNetworkRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::Network > >

virtual CreateVolumeSnapshot(google::cloud::baremetalsolution::v2::CreateVolumeSnapshotRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::CreateVolumeSnapshotRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::VolumeSnapshot >

virtual RestoreVolumeSnapshot(google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::RestoreVolumeSnapshotRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::VolumeSnapshot > >

virtual DeleteVolumeSnapshot(google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::DeleteVolumeSnapshotRequest const &
Returns
Type Description
Status

virtual GetVolumeSnapshot(google::cloud::baremetalsolution::v2::GetVolumeSnapshotRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::GetVolumeSnapshotRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::VolumeSnapshot >

virtual ListVolumeSnapshots(google::cloud::baremetalsolution::v2::ListVolumeSnapshotsRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListVolumeSnapshotsRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::VolumeSnapshot >

virtual GetLun(google::cloud::baremetalsolution::v2::GetLunRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::GetLunRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::Lun >

virtual ListLuns(google::cloud::baremetalsolution::v2::ListLunsRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListLunsRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::Lun >

virtual EvictLun(google::cloud::baremetalsolution::v2::EvictLunRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::EvictLunRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::OperationMetadata > >

virtual GetNfsShare(google::cloud::baremetalsolution::v2::GetNfsShareRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::GetNfsShareRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::NfsShare >

virtual ListNfsShares(google::cloud::baremetalsolution::v2::ListNfsSharesRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListNfsSharesRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::NfsShare >

virtual UpdateNfsShare(google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::UpdateNfsShareRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::NfsShare > >

virtual CreateNfsShare(google::cloud::baremetalsolution::v2::CreateNfsShareRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::CreateNfsShareRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::NfsShare > >

virtual RenameNfsShare(google::cloud::baremetalsolution::v2::RenameNfsShareRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::RenameNfsShareRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::NfsShare >

virtual DeleteNfsShare(google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::DeleteNfsShareRequest const &
Returns
Type Description
future< StatusOr< google::cloud::baremetalsolution::v2::OperationMetadata > >

virtual ListProvisioningQuotas(google::cloud::baremetalsolution::v2::ListProvisioningQuotasRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListProvisioningQuotasRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::ProvisioningQuota >

virtual SubmitProvisioningConfig(google::cloud::baremetalsolution::v2::SubmitProvisioningConfigRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::SubmitProvisioningConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::SubmitProvisioningConfigResponse >

virtual GetProvisioningConfig(google::cloud::baremetalsolution::v2::GetProvisioningConfigRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::GetProvisioningConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::ProvisioningConfig >

virtual CreateProvisioningConfig(google::cloud::baremetalsolution::v2::CreateProvisioningConfigRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::CreateProvisioningConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::ProvisioningConfig >

virtual UpdateProvisioningConfig(google::cloud::baremetalsolution::v2::UpdateProvisioningConfigRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::UpdateProvisioningConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::ProvisioningConfig >

virtual RenameNetwork(google::cloud::baremetalsolution::v2::RenameNetworkRequest const &)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::RenameNetworkRequest const &
Returns
Type Description
StatusOr< google::cloud::baremetalsolution::v2::Network >

virtual ListOSImages(google::cloud::baremetalsolution::v2::ListOSImagesRequest)

Parameter
Name Description
request google::cloud::baremetalsolution::v2::ListOSImagesRequest
Returns
Type Description
StreamRange< google::cloud::baremetalsolution::v2::OSImage >