Class: Google::Apis::ContainerV1beta1::ParentProductConfig

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

ParentProductConfig is the configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of a GKE cluster and take the ownership of the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParentProductConfig

Returns a new instance of ParentProductConfig.



5816
5817
5818
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5816

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

Instance Attribute Details

#labelsHash<String,String>

Labels contain the configuration of the parent product. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


5809
5810
5811
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5809

def labels
  @labels
end

#product_nameString

Name of the parent product associated with the cluster. Corresponds to the JSON property productName

Returns:

  • (String)


5814
5815
5816
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5814

def product_name
  @product_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5821
5822
5823
5824
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5821

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