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.
3238 3239 3240 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3238 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
3221 3222 3223 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3221 def autoscaling @autoscaling end |
#config ⇒ Google::Apis::DataprocV1::GkeNodeConfig
Parameters that describe cluster nodes.
Corresponds to the JSON property config
3226 3227 3228 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3226 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
3236 3237 3238 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3236 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3243 3244 3245 3246 3247 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3243 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 |