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.



2115
2116
2117
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2115

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)


2101
2102
2103
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2101

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



2108
2109
2110
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2108

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>)


2113
2114
2115
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2113

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2120
2121
2122
2123
2124
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2120

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