Class: Google::Apis::DataprocV1beta2::NodeGroupAffinity
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::NodeGroupAffinity
- 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
-
#node_group_uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeGroupAffinity
constructor
A new instance of NodeGroupAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_uri ⇒ String
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
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 |