pub struct TagValues { /* private fields */ }Expand description
Implements a client for the Cloud Resource Manager API.
§Example
let client = TagValues::builder().build().await?;
// use `client` to make requests to the Cloud Resource Manager API.§Service Description
Allow users to create and manage tag values.
§Configuration
To configure TagValues use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://cloudresourcemanager.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
TagValues holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap TagValues in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl TagValues
impl TagValues
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for TagValues.
let client = TagValues::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: TagValues + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: TagValues + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_tag_values(&self) -> ListTagValues
pub fn list_tag_values(&self) -> ListTagValues
Lists all TagValues for a specific TagKey.
Sourcepub fn get_tag_value(&self) -> GetTagValue
pub fn get_tag_value(&self) -> GetTagValue
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.
Sourcepub fn get_namespaced_tag_value(&self) -> GetNamespacedTagValue
pub fn get_namespaced_tag_value(&self) -> GetNamespacedTagValue
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.
Sourcepub fn create_tag_value(&self) -> CreateTagValue
pub fn create_tag_value(&self) -> CreateTagValue
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.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_tag_value(&self) -> UpdateTagValue
pub fn update_tag_value(&self) -> UpdateTagValue
Updates the attributes of the TagValue resource.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_tag_value(&self) -> DeleteTagValue
pub fn delete_tag_value(&self) -> DeleteTagValue
Deletes a TagValue. The TagValue cannot have any bindings when it is deleted.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_iam_policy(&self) -> GetIamPolicy
pub fn get_iam_policy(&self) -> GetIamPolicy
Gets the access control policy for a TagValue. The returned policy may be
empty if no such policy or resource exists. The resource field should
be the TagValue’s resource name. For example: tagValues/1234.
The caller must have the
cloudresourcemanager.googleapis.com/tagValues.getIamPolicy permission on
the identified TagValue to get the access control policy.
Sourcepub fn set_iam_policy(&self) -> SetIamPolicy
pub fn set_iam_policy(&self) -> SetIamPolicy
Sets the access control policy on a TagValue, replacing any existing
policy. The resource field should be the TagValue’s resource name.
For example: tagValues/1234.
The caller must have resourcemanager.tagValues.setIamPolicy permission
on the identified tagValue.
Sourcepub fn test_iam_permissions(&self) -> TestIamPermissions
pub fn test_iam_permissions(&self) -> TestIamPermissions
Returns permissions that a caller has on the specified TagValue.
The resource field should be the TagValue’s resource name. For example:
tagValues/1234.
There are no permissions required for making this API call.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.