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(std::shared_ptr< GlobalAddressesConnection >, Options)
Parameters | |
---|---|
Name | Description |
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
DeleteAddress(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 |
DeleteAddress(NoAwaitTag, std::string const &, std::string const &, Options)
Deletes the specified address resource.
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 &
|
address |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
DeleteAddress(google::cloud::cpp::compute::global_addresses::v1::DeleteAddressRequest const &, Options)
Deletes the specified address resource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::global_addresses::v1::DeleteAddressRequest 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 |
DeleteAddress(NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::DeleteAddressRequest const &, Options)
Deletes the specified address resource.
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::global_addresses::v1::DeleteAddressRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
DeleteAddress(google::cloud::cpp::compute::v1::Operation const &, Options)
Deletes the specified address resource.
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 > > |
GetAddress(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 |
GetAddress(google::cloud::cpp::compute::global_addresses::v1::GetAddressRequest const &, Options)
Returns the specified address resource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::cpp::compute::global_addresses::v1::GetAddressRequest 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 |
InsertAddress(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 |
InsertAddress(NoAwaitTag, 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.
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 &
|
address_resource |
google::cloud::cpp::compute::v1::Address const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
InsertAddress(google::cloud::cpp::compute::global_addresses::v1::InsertAddressRequest 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::InsertAddressRequest 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 |
InsertAddress(NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::InsertAddressRequest const &, Options)
Creates an address resource in the specified project by 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::global_addresses::v1::InsertAddressRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
InsertAddress(google::cloud::cpp::compute::v1::Operation const &, Options)
Creates an address resource in the specified project by 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 > > |
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(NoAwaitTag, 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.
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 &
|
address |
std::string const &
|
global_addresses_move_request_resource |
google::cloud::cpp::compute::v1::GlobalAddressesMoveRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
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 |
Move(NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::MoveRequest const &, Options)
Moves the specified address resource from one project to another project.
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::global_addresses::v1::MoveRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
Move(google::cloud::cpp::compute::v1::Operation const &, Options)
Moves the specified address resource from one project to another project.
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 > > |
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. https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses/setLabels
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(NoAwaitTag, std::string const &, std::string const &, google::cloud::cpp::compute::v1::GlobalSetLabelsRequest const &, Options)
Sets the labels on a GlobalAddress.
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 &
|
resource |
std::string const &
|
global_set_labels_request_resource |
google::cloud::cpp::compute::v1::GlobalSetLabelsRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
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. https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses/setLabels
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 |
SetLabels(NoAwaitTag, google::cloud::cpp::compute::global_addresses::v1::SetLabelsRequest const &, Options)
Sets the labels on a GlobalAddress.
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::global_addresses::v1::SetLabelsRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::cpp::compute::v1::Operation > |
SetLabels(google::cloud::cpp::compute::v1::Operation const &, Options)
Sets the labels on a GlobalAddress.
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 > > |