Class: Google::Apis::DataprocV1::NodeGroupAffinity

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



2180
2181
2182
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2180

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)


2178
2179
2180
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2178

def node_group_uri
  @node_group_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2185
2186
2187
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2185

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