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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/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.



2271
2272
2273
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2271

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)


2269
2270
2271
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2269

def node_group_uri
  @node_group_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2276
2277
2278
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2276

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