Service for the globalAddresses resource.
https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses
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
GlobalAddressesClient(GlobalAddressesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
GlobalAddressesClient const &
|
GlobalAddressesClient(GlobalAddressesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
GlobalAddressesClient &&
|
GlobalAddressesClient(ExperimentalTag, std::shared_ptr< GlobalAddressesConnection >, Options)
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
connection |
std::shared_ptr< GlobalAddressesConnection >
|
opts |
Options
|
Operators
operator=(GlobalAddressesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
GlobalAddressesClient const &
|
Returns | |
---|---|
Type | Description |
GlobalAddressesClient & |
operator=(GlobalAddressesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
GlobalAddressesClient &&
|
Returns | |
---|---|
Type | Description |
GlobalAddressesClient & |
Functions
DeleteGlobalAddresses(std::string const &, std::string const &, Options)
Deletes the specified address resource.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
address |
std::string const &
Name of the address 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 |
DeleteGlobalAddresses(google::cloud::cpp::compute::global_addresses::v1::DeleteGlobalAddressesRequest const &, Options)
Deletes the specified address resource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::global_addresses::v1::DeleteGlobalAddressesRequest 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 |
GetGlobalAddresses(std::string const &, std::string const &, Options)
Returns the specified address resource.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
address |
std::string const &
Name of the address 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::Address > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.Address) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetGlobalAddresses(google::cloud::cpp::compute::global_addresses::v1::GetGlobalAddressesRequest const &, Options)
Returns the specified address resource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::global_addresses::v1::GetGlobalAddressesRequest 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::Address > |
the result of the RPC. The response message type (google.cloud.cpp.compute.v1.Address) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
InsertGlobalAddresses(std::string const &, google::cloud::cpp::compute::v1::Address const &, Options)
Creates an address resource in the specified project by using the data included in the request.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
address_resource |
google::cloud::cpp::compute::v1::Address const &
The Address 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 |
InsertGlobalAddresses(google::cloud::cpp::compute::global_addresses::v1::InsertGlobalAddressesRequest const &, Options)
Creates an address resource in the specified project by using the data included in the request.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::global_addresses::v1::InsertGlobalAddressesRequest 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 |
ListGlobalAddresses(std::string const &, Options)
Retrieves a list of global addresses.
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< google::cloud::cpp::compute::v1::Address > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListGlobalAddresses(google::cloud::cpp::compute::global_addresses::v1::ListGlobalAddressesRequest, Options)
Retrieves a list of global addresses.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::global_addresses::v1::ListGlobalAddressesRequest
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::Address > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
Move(std::string const &, std::string const &, google::cloud::cpp::compute::v1::GlobalAddressesMoveRequest const &, Options)
Moves the specified address resource from one project to another project.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Source project ID which the Address is moved from. |
address |
std::string const &
Name of the address resource to move. |
global_addresses_move_request_resource |
google::cloud::cpp::compute::v1::GlobalAddressesMoveRequest const &
The GlobalAddressesMoveRequest 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 |
Move(google::cloud::cpp::compute::global_addresses::v1::MoveRequest const &, Options)
Moves the specified address resource from one project to another project.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::global_addresses::v1::MoveRequest 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 |
SetLabels(std::string const &, std::string const &, google::cloud::cpp::compute::v1::GlobalSetLabelsRequest const &, Options)
Sets the labels on a GlobalAddress.
To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
project |
std::string const &
Project ID for this request. |
resource |
std::string const &
Name or id of the resource for this request. |
global_set_labels_request_resource |
google::cloud::cpp::compute::v1::GlobalSetLabelsRequest const &
The GlobalSetLabelsRequest 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 |
SetLabels(google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const &, Options)
Sets the labels on a GlobalAddress.
To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest 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 |