Class: Google::Apis::DataprocV1beta2::NodeGroupAffinity

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1beta2/classes.rb,
lib/google/apis/dataproc_v1beta2/representations.rb,
lib/google/apis/dataproc_v1beta2/representations.rb

Overview

Node Group Affinity for clusters using sole-tenant node groups.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeGroupAffinity

Returns a new instance of NodeGroupAffinity.



2282
2283
2284
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2282

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

Instance Attribute Details

#node_group_uriString

Required. The URI of a sole-tenant node group resource (https://cloud.google. com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1- a/nodeGroups/node-group-1 projects/[project_id]/zones/us-central1-a/nodeGroups/ node-group-1 node-group-1 Corresponds to the JSON property nodeGroupUri

Returns:

  • (String)


2280
2281
2282
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2280

def node_group_uri
  @node_group_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2287
2288
2289
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 2287

def update!(**args)
  @node_group_uri = args[:node_group_uri] if args.key?(:node_group_uri)
end