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.
1911 1912 1913 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1911 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
1894 1895 1896 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1894 def autoscaling @autoscaling end |
#config ⇒ Google::Apis::DataprocV1::GkeNodeConfig
Parameters that describe cluster nodes.
Corresponds to the JSON property config
1899 1900 1901 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1899 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
1909 1910 1911 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1909 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1916 1917 1918 1919 1920 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1916 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 |