class Google::Apis::CloudresourcemanagerV3::TagValue

A TagValue is a child of a particular TagKey. This is used to group cloud resources for the purpose of controlling them using policies.

Attributes

create_time[RW]

Output only. Creation time. Corresponds to the JSON property `createTime` @return [String]

description[RW]

Optional. User-assigned description of the TagValue. Must not exceed 256 characters. Read-write. Corresponds to the JSON property `description` @return [String]

etag[RW]

Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details. Corresponds to the JSON property `etag` @return [String]

name[RW]

Immutable. Resource name for TagValue in the format `tagValues/456`. Corresponds to the JSON property `name` @return [String]

namespaced_name[RW]

Output only. Namespaced name of the TagValue. Must be in the format “ organization_id`/`tag_key_short_name`/`short_name“. Corresponds to the JSON property `namespacedName` @return [String]

parent[RW]

Immutable. The resource name of the new TagValue's parent TagKey. Must be of the form `tagKeys/`tag_key_id“. Corresponds to the JSON property `parent` @return [String]

short_name[RW]

Required. 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. Corresponds to the JSON property `shortName` @return [String]

update_time[RW]

Output only. Update time. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudresourcemanager_v3/classes.rb, line 1671
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudresourcemanager_v3/classes.rb, line 1676
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @name = args[:name] if args.key?(:name)
  @namespaced_name = args[:namespaced_name] if args.key?(:namespaced_name)
  @parent = args[:parent] if args.key?(:parent)
  @short_name = args[:short_name] if args.key?(:short_name)
  @update_time = args[:update_time] if args.key?(:update_time)
end