Class: Google::Apis::CloudresourcemanagerV3::TagBindingCollection
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV3::TagBindingCollection
- 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 tags directly bound to a GCP resource.
Instance Attribute Summary collapse
-
#etag ⇒ String
Optional.
-
#full_resource_name ⇒ String
The full resource name of the resource the TagBindings are bound to.
-
#name ⇒ String
Identifier.
-
#tags ⇒ Hash<String,String>
Tag keys/values directly bound to this resource, specified in namespaced format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TagBindingCollection
constructor
A new instance of TagBindingCollection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TagBindingCollection
Returns a new instance of TagBindingCollection.
1856 1857 1858 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1856 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
Optional. A checksum based on the current bindings which can be passed to
prevent race conditions. This field is always set in server responses.
Corresponds to the JSON property etag
1833 1834 1835 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1833 def etag @etag 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
1839 1840 1841 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1839 def full_resource_name @full_resource_name end |
#name ⇒ String
Identifier. The name of the TagBindingCollection, following the convention:
locations/location/tagBindingCollections/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. "locations/global/tagBindingCollections/%2f%
2fcloudresourcemanager.googleapis.com%2fprojects%2f123"
Corresponds to the JSON propertyname`
1848 1849 1850 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1848 def name @name end |
#tags ⇒ Hash<String,String>
Tag keys/values directly bound to this resource, specified in namespaced
format. For example: "123/environment": "production"
Corresponds to the JSON property tags
1854 1855 1856 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1854 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1861 1862 1863 1864 1865 1866 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1861 def update!(**args) @etag = args[:etag] if args.key?(:etag) @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) @name = args[:name] if args.key?(:name) @tags = args[:tags] if args.key?(:tags) end |