#[non_exhaustive]pub struct TagValue {
pub name: String,
pub parent: String,
pub short_name: String,
pub namespaced_name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub etag: String,
}Expand description
A TagValue is a child of a particular TagKey. This is used to group cloud resources for the purpose of controlling them using policies.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringImmutable. Resource name for TagValue in the format tagValues/456.
parent: StringImmutable. The resource name of the new TagValue’s parent TagKey.
Must be of the form tagKeys/{tag_key_id}.
short_name: StringRequired. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
The short name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
namespaced_name: StringOutput only. The namespaced name of the TagValue. Can be in the form
{organization_id}/{tag_key_short_name}/{tag_value_short_name} or
{project_id}/{tag_key_short_name}/{tag_value_short_name} or
{project_number}/{tag_key_short_name}/{tag_value_short_name}.
description: StringOptional. User-assigned description of the TagValue. Must not exceed 256 characters.
Read-write.
create_time: Option<Timestamp>Output only. Creation time.
update_time: Option<Timestamp>Output only. Update time.
etag: StringOptional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details.
Implementations§
Source§impl TagValue
impl TagValue
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_short_name<T: Into<String>>(self, v: T) -> Self
pub fn set_short_name<T: Into<String>>(self, v: T) -> Self
Sets the value of short_name.
Sourcepub fn set_namespaced_name<T: Into<String>>(self, v: T) -> Self
pub fn set_namespaced_name<T: Into<String>>(self, v: T) -> Self
Sets the value of namespaced_name.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.