Class: Google::Apis::CloudassetV1::Tag
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::Tag
- 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
-
#tag_key ⇒ String
TagKey namespaced name, in the format of
ORG_ID/TAG_KEY_SHORT_NAME. -
#tag_key_id ⇒ String
TagKey ID, in the format of tagKeys/
TAG_KEY_ID. -
#tag_value ⇒ String
TagValue namespaced name, in the format of
ORG_ID/TAG_KEY_SHORT_NAME/TAG_VALUE_SHORT_NAME. -
#tag_value_id ⇒ String
TagValue ID, in the format of tagValues/
TAG_VALUE_ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tag
constructor
A new instance of Tag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Tag
Returns a new instance of Tag.
5974 5975 5976 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5974 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tag_key ⇒ String
TagKey namespaced name, in the format of ORG_ID/TAG_KEY_SHORT_NAME.
Corresponds to the JSON property tagKey
5956 5957 5958 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5956 def tag_key @tag_key end |
#tag_key_id ⇒ String
TagKey ID, in the format of tagKeys/TAG_KEY_ID.
Corresponds to the JSON property tagKeyId
5961 5962 5963 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5961 def tag_key_id @tag_key_id end |
#tag_value ⇒ String
TagValue namespaced name, in the format of ORG_ID/TAG_KEY_SHORT_NAME/
TAG_VALUE_SHORT_NAME.
Corresponds to the JSON property tagValue
5967 5968 5969 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5967 def tag_value @tag_value end |
#tag_value_id ⇒ String
TagValue ID, in the format of tagValues/TAG_VALUE_ID.
Corresponds to the JSON property tagValueId
5972 5973 5974 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5972 def tag_value_id @tag_value_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5979 5980 5981 5982 5983 5984 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5979 def update!(**args) @tag_key = args[:tag_key] if args.key?(:tag_key) @tag_key_id = args[:tag_key_id] if args.key?(:tag_key_id) @tag_value = args[:tag_value] if args.key?(:tag_value) @tag_value_id = args[:tag_value_id] if args.key?(:tag_value_id) end |