Class: Google::Apis::DataprocV1::GkeNodePoolConfig

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

Overview

The configuration of a GKE node pool used by a Dataproc-on-GKE cluster (https:/ /cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc- on-gke-cluster).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeNodePoolConfig

Returns a new instance of GkeNodePoolConfig.



1832
1833
1834
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1832

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

Instance Attribute Details

#autoscalingGoogle::Apis::DataprocV1::GkeNodePoolAutoscalingConfig

GkeNodePoolAutoscaling contains information the cluster autoscaler needs to adjust the size of the node pool to the current cluster usage. Corresponds to the JSON property autoscaling



1815
1816
1817
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1815

def autoscaling
  @autoscaling
end

#configGoogle::Apis::DataprocV1::GkeNodeConfig

Parameters that describe cluster nodes. Corresponds to the JSON property config



1820
1821
1822
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1820

def config
  @config
end

#locationsArray<String>

Optional. The list of Compute Engine zones (https://cloud.google.com/compute/ docs/zones#available) where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.If a location is not specified during node pool creation, Dataproc on GKE will choose the zone. Corresponds to the JSON property locations

Returns:

  • (Array<String>)


1830
1831
1832
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1830

def locations
  @locations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1837
1838
1839
1840
1841
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1837

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