Class ProjectsConnection (2.18.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 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 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 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 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 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 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 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 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 > >