Class: Google::Apis::CloudresourcemanagerV3::TagBinding

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TagBinding

Returns a new instance of TagBinding.



1680
1681
1682
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1680

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

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`

Returns:

  • (String)


1659
1660
1661
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1659

def name
  @name
end

#parentString

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

Returns:

  • (String)


1665
1666
1667
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1665

def parent
  @parent
end

#tag_valueString

The TagValue of the TagBinding. Must be of the form tagValues/456. Corresponds to the JSON property tagValue

Returns:

  • (String)


1670
1671
1672
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1670

def tag_value
  @tag_value
end

#tag_value_namespaced_nameString

The namespaced name for the TagValue of the TagBinding. Must be in the format parent_id/tag_key_short_name/short_name`. For methods that support TagValue namespaced name, only one of tag_value_namespaced_name or tag_value may be filled. Requests with both fields will be rejected. Corresponds to the JSON propertytagValueNamespacedName`

Returns:

  • (String)


1678
1679
1680
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1678

def tag_value_namespaced_name
  @tag_value_namespaced_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1685
1686
1687
1688
1689
1690
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1685

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)
  @tag_value_namespaced_name = args[:tag_value_namespaced_name] if args.key?(:tag_value_namespaced_name)
end