#[non_exhaustive]pub struct TagHold {
pub name: String,
pub holder: String,
pub origin: String,
pub help_link: String,
pub create_time: Option<Timestamp>,
}Expand description
A TagHold represents the use of a TagValue that is not captured by
TagBindings. If a TagValue has any TagHolds, deletion will be blocked.
This resource is intended to be created in the same cloud location as the
holder.
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 resource name of a TagHold. This is a String of the form:
tagValues/{tag-value-id}/tagHolds/{tag-hold-id}
(e.g. tagValues/123/tagHolds/456). This resource name is generated by
the server.
holder: StringRequired. The name of the resource where the TagValue is being used. Must
be less than 200 characters. E.g.
//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group
origin: StringOptional. An optional string representing the origin of this request. This
field should include human-understandable information to distinguish
origins from each other. Must be less than 200 characters. E.g.
migs-35678234
help_link: StringOptional. A URL where an end user can learn more about removing this hold.
E.g.
<https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing>
create_time: Option<Timestamp>Output only. The time this TagHold was created.
Implementations§
Source§impl TagHold
impl TagHold
Sourcepub fn set_holder<T: Into<String>>(self, v: T) -> Self
pub fn set_holder<T: Into<String>>(self, v: T) -> Self
Sets the value of holder.
Sourcepub fn set_origin<T: Into<String>>(self, v: T) -> Self
pub fn set_origin<T: Into<String>>(self, v: T) -> Self
Sets the value of origin.
Sourcepub fn set_help_link<T: Into<String>>(self, v: T) -> Self
pub fn set_help_link<T: Into<String>>(self, v: T) -> Self
Sets the value of help_link.
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.