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 NodePools that Dataproc workloads run on.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GkeNodePoolTarget

Returns a new instance of GkeNodePoolTarget.



1688
1689
1690
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1688

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#node_poolString

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

Returns:

  • (String)


1674
1675
1676
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1674

def node_pool
  @node_pool
end

#node_pool_configGoogle::Apis::DataprocV1::GkeNodePoolConfig

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). Corresponds to the JSON property nodePoolConfig



1681
1682
1683
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1681

def node_pool_config
  @node_pool_config
end

#rolesArray<String>

Required. The types of role for a GKE NodePool Corresponds to the JSON property roles

Returns:

  • (Array<String>)


1686
1687
1688
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1686

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1693
1694
1695
1696
1697
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1693

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