Class: Google::Apis::CloudresourcemanagerV3::EffectiveTagBindingCollection
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV3::EffectiveTagBindingCollection
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudresourcemanager_v3/classes.rb,
lib/google/apis/cloudresourcemanager_v3/representations.rb,
lib/google/apis/cloudresourcemanager_v3/representations.rb
Overview
Represents a collection of effective tag bindings for a GCP resource.
Instance Attribute Summary collapse
-
#effective_tags ⇒ Hash<String,String>
Tag keys/values effectively bound to this resource, specified in namespaced format.
-
#full_resource_name ⇒ String
The full resource name of the resource the TagBindings are bound to.
-
#name ⇒ String
Identifier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EffectiveTagBindingCollection
constructor
A new instance of EffectiveTagBindingCollection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EffectiveTagBindingCollection
Returns a new instance of EffectiveTagBindingCollection.
575 576 577 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 575 def initialize(**args) update!(**args) end |
Instance Attribute Details
#effective_tags ⇒ Hash<String,String>
Tag keys/values effectively bound to this resource, specified in namespaced
format. For example: "123/environment": "production"
Corresponds to the JSON property effectiveTags
557 558 559 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 557 def end |
#full_resource_name ⇒ String
The full resource name of the resource the TagBindings are bound to. E.g. //
cloudresourcemanager.googleapis.com/projects/123
Corresponds to the JSON property fullResourceName
563 564 565 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 563 def full_resource_name @full_resource_name end |
#name ⇒ String
Identifier. The name of the EffectiveTagBindingCollection, following the
convention: locations/location/effectiveTagBindingCollections/encoded-full-
resource-name`where the encoded-full-resource-name is the UTF-8 encoded name
of the GCP resource the TagBindings are bound to. E.g. "locations/global/
effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%
2fprojects%2f123"
Corresponds to the JSON propertyname`
573 574 575 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 573 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
580 581 582 583 584 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 580 def update!(**args) = args[:effective_tags] if args.key?(:effective_tags) @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) @name = args[:name] if args.key?(:name) end |