Service for the targetPools resource.
https://cloud.google.com/compute/docs/reference/rest/v1/targetPools
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
TargetPoolsClient(TargetPoolsClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TargetPoolsClient const &
|
TargetPoolsClient(TargetPoolsClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TargetPoolsClient &&
|
TargetPoolsClient(std::shared_ptr< TargetPoolsConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< TargetPoolsConnection >
|
opts |
Options
|
Operators
operator=(TargetPoolsClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TargetPoolsClient const &
|
Returns | |
---|---|
Type | Description |
TargetPoolsClient & |
operator=(TargetPoolsClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TargetPoolsClient &&
|
Returns | |
---|---|
Type | Description |
TargetPoolsClient & |
Functions
AddHealthCheck(std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPoolsAddHealthCheckRequest const &, Options)
Adds health check URLs to a target pool.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool |
std::string const &
Name of the target pool to add a health check to. |
target_pools_add_health_check_request_resource |
google::cloud::cpp::compute::v1::TargetPoolsAddHealthCheckRequest const &
The TargetPoolsAddHealthCheckRequest for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
AddHealthCheck(NoAwaitTag, std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPoolsAddHealthCheckRequest const &, Options)
Adds health check URLs to a target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
region |
std::string const &
|
target_pool |
std::string const &
|
target_pools_add_health_check_request_resource |
google::cloud::cpp::compute::v1::TargetPoolsAddHealthCheckRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
AddHealthCheck(google::cloud::cpp::compute::target_pools::v1::AddHealthCheckRequest const &, Options)
Adds health check URLs to a target pool.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::AddHealthCheckRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
AddHealthCheck(NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddHealthCheckRequest const &, Options)
Adds health check URLs to a target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::target_pools::v1::AddHealthCheckRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
AddHealthCheck(google::cloud::cpp::compute::v1::Operation const &, Options)
Adds health check URLs to a target pool.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
AddInstance(std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPoolsAddInstanceRequest const &, Options)
Adds an instance to a target pool.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool |
std::string const &
Name of the TargetPool resource to add instances to. |
target_pools_add_instance_request_resource |
google::cloud::cpp::compute::v1::TargetPoolsAddInstanceRequest const &
The TargetPoolsAddInstanceRequest for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
AddInstance(NoAwaitTag, std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPoolsAddInstanceRequest const &, Options)
Adds an instance to a target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
region |
std::string const &
|
target_pool |
std::string const &
|
target_pools_add_instance_request_resource |
google::cloud::cpp::compute::v1::TargetPoolsAddInstanceRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
AddInstance(google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const &, Options)
Adds an instance to a target pool.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
AddInstance(NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const &, Options)
Adds an instance to a target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::target_pools::v1::AddInstanceRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
AddInstance(google::cloud::cpp::compute::v1::Operation const &, Options)
Adds an instance to a target pool.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
AggregatedListTargetPools(std::string const &, Options)
Retrieves an aggregated list of target pools.
To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
. https://cloud.google.com/compute/docs/reference/rest/v1/targetPools/aggregatedList
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::TargetPoolsScopedList > > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
AggregatedListTargetPools(google::cloud::cpp::compute::target_pools::v1::AggregatedListTargetPoolsRequest, Options)
Retrieves an aggregated list of target pools.
To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
. https://cloud.google.com/compute/docs/reference/rest/v1/targetPools/aggregatedList
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::AggregatedListTargetPoolsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< std::pair< std::string, google::cloud::cpp::compute::v1::TargetPoolsScopedList > > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
DeleteTargetPool(std::string const &, std::string const &, std::string const &, Options)
Deletes the specified target pool.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool |
std::string const &
Name of the TargetPool resource to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
DeleteTargetPool(NoAwaitTag, std::string const &, std::string const &, std::string const &, Options)
Deletes the specified target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
region |
std::string const &
|
target_pool |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
DeleteTargetPool(google::cloud::cpp::compute::target_pools::v1::DeleteTargetPoolRequest const &, Options)
Deletes the specified target pool.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::DeleteTargetPoolRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
DeleteTargetPool(NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::DeleteTargetPoolRequest const &, Options)
Deletes the specified target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::target_pools::v1::DeleteTargetPoolRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
DeleteTargetPool(google::cloud::cpp::compute::v1::Operation const &, Options)
Deletes the specified target pool.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
GetTargetPool(std::string const &, std::string const &, std::string const &, Options)
Returns the specified target pool.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool |
std::string const &
Name of the TargetPool resource to return. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::TargetPool > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.TargetPool) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTargetPool(google::cloud::cpp::compute::target_pools::v1::GetTargetPoolRequest const &, Options)
Returns the specified target pool.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::GetTargetPoolRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::TargetPool > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.TargetPool) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetHealth(std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::InstanceReference const &, Options)
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool |
std::string const &
Name of the TargetPool resource to which the queried instance belongs. |
instance_reference_resource |
google::cloud::cpp::compute::v1::InstanceReference const &
The InstanceReference for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::TargetPoolInstanceHealth > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.TargetPoolInstanceHealth) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetHealth(google::cloud::cpp::compute::target_pools::v1::GetHealthRequest const &, Options)
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::GetHealthRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::TargetPoolInstanceHealth > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.TargetPoolInstanceHealth) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
InsertTargetPool(std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPool const &, Options)
Creates a target pool in the specified project and region using the data included in the request.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool_resource |
google::cloud::cpp::compute::v1::TargetPool const &
The TargetPool for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
InsertTargetPool(NoAwaitTag, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPool const &, Options)
Creates a target pool in the specified project and region using the data included in the request.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
region |
std::string const &
|
target_pool_resource |
google::cloud::cpp::compute::v1::TargetPool const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
InsertTargetPool(google::cloud::cpp::compute::target_pools::v1::InsertTargetPoolRequest const &, Options)
Creates a target pool in the specified project and region using the data included in the request.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::InsertTargetPoolRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
InsertTargetPool(NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::InsertTargetPoolRequest const &, Options)
Creates a target pool in the specified project and region using the data included in the request.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::target_pools::v1::InsertTargetPoolRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
InsertTargetPool(google::cloud::cpp::compute::v1::Operation const &, Options)
Creates a target pool in the specified project and region using the data included in the request.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
ListTargetPools(std::string const &, std::string const &, Options)
Retrieves a list of target pools available to the specified project and region.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::cpp::compute::v1::TargetPool > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListTargetPools(google::cloud::cpp::compute::target_pools::v1::ListTargetPoolsRequest, Options)
Retrieves a list of target pools available to the specified project and region.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::ListTargetPoolsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::cpp::compute::v1::TargetPool > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
RemoveHealthCheck(std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPoolsRemoveHealthCheckRequest const &, Options)
Removes health check URL from a target pool.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region for this request. |
target_pool |
std::string const &
Name of the target pool to remove health checks from. |
target_pools_remove_health_check_request_resource |
google::cloud::cpp::compute::v1::TargetPoolsRemoveHealthCheckRequest const &
The TargetPoolsRemoveHealthCheckRequest for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
RemoveHealthCheck(NoAwaitTag, std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPoolsRemoveHealthCheckRequest const &, Options)
Removes health check URL from a target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
region |
std::string const &
|
target_pool |
std::string const &
|
target_pools_remove_health_check_request_resource |
google::cloud::cpp::compute::v1::TargetPoolsRemoveHealthCheckRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
RemoveHealthCheck(google::cloud::cpp::compute::target_pools::v1::RemoveHealthCheckRequest const &, Options)
Removes health check URL from a target pool.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::RemoveHealthCheckRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
RemoveHealthCheck(NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::RemoveHealthCheckRequest const &, Options)
Removes health check URL from a target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::target_pools::v1::RemoveHealthCheckRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
RemoveHealthCheck(google::cloud::cpp::compute::v1::Operation const &, Options)
Removes health check URL from a target pool.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
RemoveInstance(std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPoolsRemoveInstanceRequest const &, Options)
Removes instance URL from a target pool.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool |
std::string const &
Name of the TargetPool resource to remove instances from. |
target_pools_remove_instance_request_resource |
google::cloud::cpp::compute::v1::TargetPoolsRemoveInstanceRequest const &
The TargetPoolsRemoveInstanceRequest for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
RemoveInstance(NoAwaitTag, std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetPoolsRemoveInstanceRequest const &, Options)
Removes instance URL from a target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
region |
std::string const &
|
target_pool |
std::string const &
|
target_pools_remove_instance_request_resource |
google::cloud::cpp::compute::v1::TargetPoolsRemoveInstanceRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
RemoveInstance(google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const &, Options)
Removes instance URL from a target pool.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
RemoveInstance(NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const &, Options)
Removes instance URL from a target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::target_pools::v1::RemoveInstanceRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
RemoveInstance(google::cloud::cpp::compute::v1::Operation const &, Options)
Removes instance URL from a target pool.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
SetBackup(std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetReference const &, Options)
Changes a backup target pool's configurations.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool |
std::string const &
Name of the TargetPool resource to set a backup pool for. |
target_reference_resource |
google::cloud::cpp::compute::v1::TargetReference const &
The TargetReference for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
SetBackup(NoAwaitTag, std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::TargetReference const &, Options)
Changes a backup target pool's configurations.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
region |
std::string const &
|
target_pool |
std::string const &
|
target_reference_resource |
google::cloud::cpp::compute::v1::TargetReference const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
SetBackup(google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const &, Options)
Changes a backup target pool's configurations.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
SetBackup(NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const &, Options)
Changes a backup target pool's configurations.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::target_pools::v1::SetBackupRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
SetBackup(google::cloud::cpp::compute::v1::Operation const &, Options)
Changes a backup target pool's configurations.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
SetSecurityPolicy(std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::SecurityPolicyReference const &, Options)
Sets the Google Cloud Armor security policy for the specified target pool.
For more information, see Google Cloud Armor Overview https://cloud.google.com/compute/docs/reference/rest/v1/targetPools/setSecurityPolicy
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
region |
std::string const &
Name of the region scoping this request. |
target_pool |
std::string const &
Name of the TargetPool resource to which the security policy should be set. The name should conform to RFC1035. |
security_policy_reference_resource |
google::cloud::cpp::compute::v1::SecurityPolicyReference const &
The SecurityPolicyReference for this request. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
SetSecurityPolicy(NoAwaitTag, std::string const &, std::string const &, std::string const &, google::cloud::cpp::compute::v1::SecurityPolicyReference const &, Options)
Sets the Google Cloud Armor security policy for the specified target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
project |
std::string const &
|
region |
std::string const &
|
target_pool |
std::string const &
|
security_policy_reference_resource |
google::cloud::cpp::compute::v1::SecurityPolicyReference const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
SetSecurityPolicy(google::cloud::cpp::compute::target_pools::v1::SetSecurityPolicyRequest const &, Options)
Sets the Google Cloud Armor security policy for the specified target pool.
For more information, see Google Cloud Armor Overview https://cloud.google.com/compute/docs/reference/rest/v1/targetPools/setSecurityPolicy
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::target_pools::v1::SetSecurityPolicyRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |
A |
SetSecurityPolicy(NoAwaitTag, google::cloud::cpp::compute::target_pools::v1::SetSecurityPolicyRequest const &, Options)
Sets the Google Cloud Armor security policy for the specified target pool.
Specifying the NoAwaitTag
immediately returns the [google::cloud::cpp::compute::v1::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::cpp::compute::target_pools::v1::SetSecurityPolicyRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
SetSecurityPolicy(google::cloud::cpp::compute::v1::Operation const &, Options)
Sets the Google Cloud Armor security policy for the specified target pool.
This method accepts a google::cloud::cpp::compute::v1::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::cloud::cpp::compute::v1::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::cpp::compute::v1::Operation > > |