class Google::Apis::CloudresourcemanagerV3::TagKey

A TagKey, used to group a set of TagValues.

Attributes

create_time[RW]

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

description[RW]

Optional. User-assigned description of the TagKey. 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 UpdateTagKeyRequest for details. Corresponds to the JSON property `etag` @return [String]

name[RW]

Immutable. The resource name for a TagKey. Must be in the format `tagKeys/` tag_key_id“, where `tag_key_id` is the generated numeric id for the TagKey. Corresponds to the JSON property `name` @return [String]

namespaced_name[RW]

Output only. Immutable. Namespaced name of the TagKey. Corresponds to the JSON property `namespacedName` @return [String]

parent[RW]

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

short_name[RW]

Required. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters, 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 1601
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 1606
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