Class ProjectsConnection (2.19.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::DisableXpnHostRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::DisableXpnResourceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::EnableXpnHostRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::EnableXpnResourceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::GetProjectRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Project >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::GetXpnHostRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::Project >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::GetXpnResourcesRequest const &
Returns
TypeDescription
StatusOr< google::cloud::cpp::compute::v1::ProjectsGetXpnResources >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::ListXpnHostsRequest
Returns
TypeDescription
StreamRange< google::cloud::cpp::compute::v1::Project >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::MoveDiskRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::MoveInstanceRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::SetCommonInstanceMetadataRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::SetDefaultNetworkTierRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >

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

Parameter
NameDescription
request google::cloud::cpp::compute::projects::v1::SetUsageExportBucketRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::cpp::compute::v1::Operation > >