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 NodePool 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.
1654 1655 1656 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1654 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
1639 1640 1641 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1639 def autoscaling @autoscaling end |
#config ⇒ Google::Apis::DataprocV1::GkeNodeConfig
Parameters that describe cluster nodes.
Corresponds to the JSON property config
1644 1645 1646 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1644 def config @config end |
#locations ⇒ Array<String>
Optional. The list of Compute Engine zones (https://cloud.google.com/compute/
docs/zones#available) where NodePool's nodes will be located.Note: Currently,
only one zone may be specified.If a location is not specified during NodePool
creation, Dataproc will choose a location.
Corresponds to the JSON property locations
1652 1653 1654 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1652 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1659 1660 1661 1662 1663 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1659 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 |