Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class ProjectsConnection (2.26.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.26.0keyboard_arrow_down
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 > >
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["This webpage provides documentation for the `ProjectsConnection` object, which is used in conjunction with `ProjectsClient` for Google Cloud Compute projects in C++."],["The content lists various versions of the `ProjectsConnection`, starting from the latest release candidate (2.37.0-rc) down to version 2.15.1, allowing users to access documentation relevant to specific versions of the product."],["The `ProjectsConnection` interface enables customization and mocking of behavior, which is beneficial for testing, with the `MakeProjectsConnection()` function for concrete instances and the `MockProjectsConnection` class for mocking."],["The webpage details various virtual methods available in the `ProjectsConnection` interface, such as managing XPN resources, moving disks and instances, and setting project-wide configurations like cloud armor tiers and metadata."],["The documentation includes methods to perform actions, and they can either return a future containing the status or the value, or simply the status or the value."]]],[]]