Class: Google::Apis::CloudresourcemanagerV3::EffectiveTagBindingCollection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_tagsHash<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

Returns:

  • (Hash<String,String>)


557
558
559
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 557

def effective_tags
  @effective_tags
end

#full_resource_nameString

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

Returns:

  • (String)


563
564
565
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 563

def full_resource_name
  @full_resource_name
end

#nameString

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`

Returns:

  • (String)


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)
  @effective_tags = 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