Class: Google::Apis::DataprocV1::GkeNodePoolTarget

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_poolString

Required. The target GKE node pool. Format: 'projects/project/locations/ location/clusters/cluster/nodePools/node_pool' Corresponds to the JSON property nodePool

Returns:

  • (String)


3258
3259
3260
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3258

def node_pool
  @node_pool
end

#node_pool_configGoogle::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

#rolesArray<String>

Required. The roles associated with the GKE node pool. Corresponds to the JSON property roles

Returns:

  • (Array<String>)


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