Class: Google::Apis::CloudassetV1::EffectiveTagDetails
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::EffectiveTagDetails
- 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 effective tags and the ancestor resources from which they were inherited.
Instance Attribute Summary collapse
-
#attached_resource ⇒ String
The full resource name of the ancestor from which an effective_tag is inherited, according to tag inheritance.
-
#effective_tags ⇒ Array<Google::Apis::CloudassetV1::Tag>
The effective tags inherited from the attached_resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EffectiveTagDetails
constructor
A new instance of EffectiveTagDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EffectiveTagDetails
Returns a new instance of EffectiveTagDetails.
1045 1046 1047 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1045 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attached_resource ⇒ String
The full resource name of the ancestor from which an effective_tag is inherited,
according to tag inheritance.
Corresponds to the JSON property attachedResource
1032 1033 1034 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1032 def attached_resource @attached_resource end |
#effective_tags ⇒ Array<Google::Apis::CloudassetV1::Tag>
The effective tags inherited from the attached_resource. Note that tags with
the same key but different values may attach to resources at a different
hierarchy levels. The lower hierarchy tag value will overwrite the higher
hierarchy tag value of the same tag key. In this case, the tag value at the
higher hierarchy level will be removed. For more information, see tag
inheritance.
Corresponds to the JSON property effectiveTags
1043 1044 1045 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1043 def @effective_tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1050 1051 1052 1053 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1050 def update!(**args) @attached_resource = args[:attached_resource] if args.key?(:attached_resource) @effective_tags = args[:effective_tags] if args.key?(:effective_tags) end |