#[non_exhaustive]pub struct TagBinding {
pub name: String,
pub parent: String,
pub tag_value: String,
pub tag_value_namespaced_name: String,
/* private fields */
}Expand description
A TagBinding represents a connection between a TagValue and a cloud resource Once a TagBinding is created, the TagValue is applied to all the descendants of the Google Cloud resource.
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: StringOutput only. The name of the TagBinding. This is a String of the form:
tagBindings/{full-resource-name}/{tag-value-name} (e.g.
tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456).
parent: StringThe full resource name of the resource the TagValue is bound to.
E.g. //cloudresourcemanager.googleapis.com/projects/123
tag_value: StringThe TagValue of the TagBinding.
Must be of the form tagValues/456.
tag_value_namespaced_name: StringThe namespaced name for the TagValue of the TagBinding.
Must be in the format
{parent_id}/{tag_key_short_name}/{short_name}.
For methods that support TagValue namespaced name, only one of tag_value_namespaced_name or tag_value may be filled. Requests with both fields will be rejected.
Implementations§
Source§impl TagBinding
impl TagBinding
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_tag_value<T: Into<String>>(self, v: T) -> Self
pub fn set_tag_value<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_tag_value_namespaced_name<T: Into<String>>(self, v: T) -> Self
pub fn set_tag_value_namespaced_name<T: Into<String>>(self, v: T) -> Self
Sets the value of tag_value_namespaced_name.
§Example
let x = TagBinding::new().set_tag_value_namespaced_name("example");Trait Implementations§
Source§impl Clone for TagBinding
impl Clone for TagBinding
Source§fn clone(&self) -> TagBinding
fn clone(&self) -> TagBinding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more