Class: Google::Apis::DataprocV1::GkeNodePoolTarget
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::GkeNodePoolTarget
- 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
GKE node pools that Dataproc workloads run on.
Instance Attribute Summary collapse
-
#node_pool ⇒ String
Required.
-
#node_pool_config ⇒ Google::Apis::DataprocV1::GkeNodePoolConfig
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).
-
#roles ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkeNodePoolTarget
constructor
A new instance of GkeNodePoolTarget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GkeNodePoolTarget
Returns a new instance of GkeNodePoolTarget.
3272 3273 3274 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3272 def initialize(**args) update!(**args) end |
Instance Attribute Details
#node_pool ⇒ String
Required. The target GKE node pool. Format: 'projects/project
/locations/
location
/clusters/cluster
/nodePools/node_pool
'
Corresponds to the JSON property nodePool
3258 3259 3260 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3258 def node_pool @node_pool end |
#node_pool_config ⇒ Google::Apis::DataprocV1::GkeNodePoolConfig
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).
Corresponds to the JSON property nodePoolConfig
3265 3266 3267 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3265 def node_pool_config @node_pool_config end |
#roles ⇒ Array<String>
Required. The roles associated with the GKE node pool.
Corresponds to the JSON property roles
3270 3271 3272 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3270 def roles @roles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3277 3278 3279 3280 3281 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3277 def update!(**args) @node_pool = args[:node_pool] if args.key?(:node_pool) @node_pool_config = args[:node_pool_config] if args.key?(:node_pool_config) @roles = args[:roles] if args.key?(:roles) end |