Class: Google::Apis::CloudassetV1::Tag

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb

Overview

The key and value for a tag,

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Tag

Returns a new instance of Tag.



5855
5856
5857
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5855

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#tag_keyString

TagKey namespaced name, in the format of ORG_ID/TAG_KEY_SHORT_NAME. Corresponds to the JSON property tagKey

Returns:

  • (String)


5842
5843
5844
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5842

def tag_key
  @tag_key
end

#tag_valueString

TagValue namespaced name, in the format of ORG_ID/TAG_KEY_SHORT_NAME/ TAG_VALUE_SHORT_NAME. Corresponds to the JSON property tagValue

Returns:

  • (String)


5848
5849
5850
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5848

def tag_value
  @tag_value
end

#tag_value_idString

TagValue ID, in the format of tagValues/TAG_VALUE_ID. Corresponds to the JSON property tagValueId

Returns:

  • (String)


5853
5854
5855
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5853

def tag_value_id
  @tag_value_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5860
5861
5862
5863
5864
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5860

def update!(**args)
  @tag_key = args[:tag_key] if args.key?(:tag_key)
  @tag_value = args[:tag_value] if args.key?(:tag_value)
  @tag_value_id = args[:tag_value_id] if args.key?(:tag_value_id)
end