Allow users to create and manage tag values.
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
TagValuesClient(TagValuesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TagValuesClient const &
|
TagValuesClient(TagValuesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TagValuesClient &&
|
TagValuesClient(std::shared_ptr< TagValuesConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< TagValuesConnection >
|
opts |
Options
|
Operators
operator=(TagValuesClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TagValuesClient const &
|
Returns | |
---|---|
Type | Description |
TagValuesClient & |
operator=(TagValuesClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
TagValuesClient &&
|
Returns | |
---|---|
Type | Description |
TagValuesClient & |
Functions
ListTagValues(std::string const &, Options)
Lists all TagValues for a specific TagKey.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::resourcemanager::v3::TagValue > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListTagValues(google::cloud::resourcemanager::v3::ListTagValuesRequest, Options)
Lists all TagValues for a specific TagKey.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::resourcemanager::v3::ListTagValuesRequest
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::resourcemanager::v3::TagValue > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetTagValue(std::string const &, Options)
Retrieves a TagValue.
This method will return PERMISSION_DENIED
if the value does not exist or the user does not have permission to view it.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Resource name for TagValue to be fetched in the format |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::resourcemanager::v3::TagValue > |
the result of the RPC. The response message type (google.cloud.resourcemanager.v3.TagValue) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTagValue(google::cloud::resourcemanager::v3::GetTagValueRequest const &, Options)
Retrieves a TagValue.
This method will return PERMISSION_DENIED
if the value does not exist or the user does not have permission to view it.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::resourcemanager::v3::GetTagValueRequest 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::resourcemanager::v3::TagValue > |
the result of the RPC. The response message type (google.cloud.resourcemanager.v3.TagValue) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetNamespacedTagValue(std::string const &, Options)
Retrieves a TagValue by its namespaced name.
This method will return PERMISSION_DENIED
if the value does not exist or the user does not have permission to view it.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. A namespaced tag value name in the following format:
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::resourcemanager::v3::TagValue > |
the result of the RPC. The response message type (google.cloud.resourcemanager.v3.TagValue) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetNamespacedTagValue(google::cloud::resourcemanager::v3::GetNamespacedTagValueRequest const &, Options)
Retrieves a TagValue by its namespaced name.
This method will return PERMISSION_DENIED
if the value does not exist or the user does not have permission to view it.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::resourcemanager::v3::GetNamespacedTagValueRequest 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::resourcemanager::v3::TagValue > |
the result of the RPC. The response message type (google.cloud.resourcemanager.v3.TagValue) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateTagValue(google::cloud::resourcemanager::v3::TagValue const &, Options)
Creates a TagValue as a child of the specified TagKey.
If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 1000 TagValues can exist under a TagKey at any given time.
Parameters | |
---|---|
Name | Description |
tag_value |
google::cloud::resourcemanager::v3::TagValue const &
Required. The TagValue to be created. Only fields |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::resourcemanager::v3::TagValue > > |
A |
CreateTagValue(NoAwaitTag, google::cloud::resourcemanager::v3::TagValue const &, Options)
Creates a TagValue as a child of the specified TagKey.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
tag_value |
google::cloud::resourcemanager::v3::TagValue const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateTagValue(google::cloud::resourcemanager::v3::CreateTagValueRequest const &, Options)
Creates a TagValue as a child of the specified TagKey.
If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 1000 TagValues can exist under a TagKey at any given time.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::resourcemanager::v3::CreateTagValueRequest 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::resourcemanager::v3::TagValue > > |
A |
CreateTagValue(NoAwaitTag, google::cloud::resourcemanager::v3::CreateTagValueRequest const &, Options)
Creates a TagValue as a child of the specified TagKey.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::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::resourcemanager::v3::CreateTagValueRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateTagValue(google::longrunning::Operation const &, Options)
Creates a TagValue as a child of the specified TagKey.
This method accepts a google::longrunning::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::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::resourcemanager::v3::TagValue > > |
UpdateTagValue(google::cloud::resourcemanager::v3::TagValue const &, google::protobuf::FieldMask const &, Options)
Updates the attributes of the TagValue resource.
Parameters | |
---|---|
Name | Description |
tag_value |
google::cloud::resourcemanager::v3::TagValue const &
Required. The new definition of the TagValue. Only fields |
update_mask |
google::protobuf::FieldMask const &
Optional. Fields to be updated. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::resourcemanager::v3::TagValue > > |
A |
UpdateTagValue(NoAwaitTag, google::cloud::resourcemanager::v3::TagValue const &, google::protobuf::FieldMask const &, Options)
Updates the attributes of the TagValue resource.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
tag_value |
google::cloud::resourcemanager::v3::TagValue const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateTagValue(google::cloud::resourcemanager::v3::UpdateTagValueRequest const &, Options)
Updates the attributes of the TagValue resource.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::resourcemanager::v3::UpdateTagValueRequest 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::resourcemanager::v3::TagValue > > |
A |
UpdateTagValue(NoAwaitTag, google::cloud::resourcemanager::v3::UpdateTagValueRequest const &, Options)
Updates the attributes of the TagValue resource.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::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::resourcemanager::v3::UpdateTagValueRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateTagValue(google::longrunning::Operation const &, Options)
Updates the attributes of the TagValue resource.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.