Class: Google::Apis::DataprocV1::GkeNodePoolConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::GkeNodePoolConfig
- 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
-
#autoscaling ⇒ Google::Apis::DataprocV1::GkeNodePoolAutoscalingConfig
GkeNodePoolAutoscaling contains information the cluster autoscaler needs to adjust the size of the node pool to the current cluster usage.
-
#config ⇒ Google::Apis::DataprocV1::GkeNodeConfig
Parameters that describe cluster nodes.
-
#locations ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkeNodePoolConfig
constructor
A new instance of GkeNodePoolConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GkeNodePoolConfig
Returns a new instance of GkeNodePoolConfig.
2081 2082 2083 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2081 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoscaling ⇒ Google::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
2064 2065 2066 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2064 def autoscaling @autoscaling end |
#config ⇒ Google::Apis::DataprocV1::GkeNodeConfig
Parameters that describe cluster nodes.
Corresponds to the JSON property config
2069 2070 2071 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2069 def config @config end |
#locations ⇒ Array<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
2079 2080 2081 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2079 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2086 2087 2088 2089 2090 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2086 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 |