Class ProjectsConnection (2.28.0)

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

To create a concrete instance, see MakeProjectsConnection().

For mocking, see compute_projects_v1_mocks::MockProjectsConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual DisableXpnHost(google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual DisableXpnHost(NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual DisableXpnHost(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual DisableXpnResource(google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual DisableXpnResource(NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual DisableXpnResource(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual EnableXpnHost(google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual EnableXpnHost(NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual EnableXpnHost(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual EnableXpnResource(google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual EnableXpnResource(NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual EnableXpnResource(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual GetProject(google::cloud::cpp::compute::projects::v1::GetProjectRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::GetProjectRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Project >

virtual GetXpnHost(google::cloud::cpp::compute::projects::v1::GetXpnHostRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::GetXpnHostRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Project >

virtual GetXpnResources(google::cloud::cpp::compute::projects::v1::GetXpnResourcesRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::GetXpnResourcesRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::ProjectsGetXpnResources >

virtual ListXpnHosts(google::cloud::cpp::compute::projects::v1::ListXpnHostsRequest)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::ListXpnHostsRequest
Returns
Type Description
StreamRange< google::cloud::cpp::compute::v1::Project >

virtual MoveDisk(google::cloud::cpp::compute::projects::v1::MoveDiskRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::MoveDiskRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual MoveDisk(NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::MoveDiskRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual MoveDisk(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual MoveInstance(google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual MoveInstance(NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual MoveInstance(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetCloudArmorTier(google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetCloudArmorTier(NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual SetCloudArmorTier(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetCommonInstanceMetadata(google::cloud::cpp::compute::projects::v1::SetCommonInstanceMetadataRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::SetCommonInstanceMetadataRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetCommonInstanceMetadata(NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCommonInstanceMetadataRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::SetCommonInstanceMetadataRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual SetCommonInstanceMetadata(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetDefaultNetworkTier(google::cloud::cpp::compute::projects::v1::SetDefaultNetworkTierRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::SetDefaultNetworkTierRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetDefaultNetworkTier(NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetDefaultNetworkTierRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::SetDefaultNetworkTierRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual SetDefaultNetworkTier(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetUsageExportBucket(google::cloud::cpp::compute::projects::v1::SetUsageExportBucketRequest const &)

Parameter
Name Description
request google::cloud::cpp::compute::projects::v1::SetUsageExportBucketRequest const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

virtual SetUsageExportBucket(NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetUsageExportBucketRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::cpp::compute::projects::v1::SetUsageExportBucketRequest const &
Returns
Type Description
StatusOr< google::cloud::cpp::compute::v1::Operation >

virtual SetUsageExportBucket(google::cloud::cpp::compute::v1::Operation const &)

Parameter
Name Description
operation google::cloud::cpp::compute::v1::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >