Class ProjectsConnection (2.26.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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveDiskRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCloudArmorTierRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetCommonInstanceMetadataRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetDefaultNetworkTierRequest const &)

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

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

Parameters
Name Description
ExperimentalTag
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(ExperimentalTag, NoAwaitTag, google::cloud::cpp::compute::projects::v1::SetUsageExportBucketRequest const &)

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

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

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