Class: Google::Apis::CloudresourcemanagerV3::TagBinding
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV3::TagBinding
- 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
A TagBinding represents a connection between a TagValue and a cloud resource Once a TagBinding is created, the TagValue is applied to all the descendants of the Google Cloud resource.
Instance Attribute Summary collapse
-
#name ⇒ String
Output only.
-
#parent ⇒ String
The full resource name of the resource the TagValue is bound to.
-
#tag_value ⇒ String
The TagValue of the TagBinding.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TagBinding
constructor
A new instance of TagBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TagBinding
Returns a new instance of TagBinding.
1664 1665 1666 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1664 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. The name of the TagBinding. This is a String of the form:
tagBindings/full-resource-name/tag-value-name`(e.g.tagBindings/%2F%
2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456).
Corresponds to the JSON propertyname`
1651 1652 1653 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1651 def name @name end |
#parent ⇒ String
The full resource name of the resource the TagValue is bound to. E.g. //
cloudresourcemanager.googleapis.com/projects/123
Corresponds to the JSON property parent
1657 1658 1659 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1657 def parent @parent end |
#tag_value ⇒ String
The TagValue of the TagBinding. Must be of the form tagValues/456.
Corresponds to the JSON property tagValue
1662 1663 1664 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1662 def tag_value @tag_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1669 1670 1671 1672 1673 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1669 def update!(**args) @name = args[:name] if args.key?(:name) @parent = args[:parent] if args.key?(:parent) @tag_value = args[:tag_value] if args.key?(:tag_value) end |