Class: Google::Apis::ContainerV1beta1::ResourceManagerTags

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

A map of resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Tags must be according to specifications in https://cloud.google.com/vpc/docs/tags- firewalls-overview#specifications. A maximum of 5 tag key-value pairs can be specified. Existing tags will be replaced with new values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceManagerTags

Returns a new instance of ResourceManagerTags.



6422
6423
6424
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6422

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

Instance Attribute Details

#tagsHash<String,String>

Tags must be in one of the following formats ([KEY]=[VALUE]) 1. tagKeys/ tag_key_id=tagValues/tag_value_id2.org_id/tag_key_name= tag_value_name3.project_id/tag_key_name=tag_value_name` Corresponds to the JSON propertytags`

Returns:

  • (Hash<String,String>)


6420
6421
6422
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6420

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6427
6428
6429
# File 'lib/google/apis/container_v1beta1/classes.rb', line 6427

def update!(**args)
  @tags = args[:tags] if args.key?(:tags)
end