Class: Google::Apis::DataprocV1::NodeGroupAffinity
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::NodeGroupAffinity
- 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
Node Group Affinity for clusters using sole-tenant node groups. The Dataproc NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.
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.
3793 3794 3795 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3793 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/[zone]/
nodeGroups/node-group-1 projects/[project_id]/zones/[zone]/nodeGroups/node-
group-1 node-group-1
Corresponds to the JSON property nodeGroupUri
3791 3792 3793 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3791 def node_group_uri @node_group_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3798 3799 3800 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3798 def update!(**args) @node_group_uri = args[:node_group_uri] if args.key?(:node_group_uri) end |