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.



2098
2099
2100
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2098

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)


2084
2085
2086
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2084

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



2091
2092
2093
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2091

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


2096
2097
2098
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2096

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2103
2104
2105
2106
2107
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2103

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