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.
1904 1905 1906 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1904 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
1887 1888 1889 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1887 def autoscaling @autoscaling end |
#config ⇒ Google::Apis::DataprocV1::GkeNodeConfig
Parameters that describe cluster nodes.
Corresponds to the JSON property config
1892 1893 1894 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1892 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
1902 1903 1904 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1902 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1909 1910 1911 1912 1913 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1909 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 |