Class: Google::Apis::DataprocV1::NodePool
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::NodePool
- 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
indicating a list of workers of same type
Instance Attribute Summary collapse
-
#id ⇒ String
Required.
-
#instance_names ⇒ Array<String>
Name of instances to be repaired.
-
#repair_action ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodePool
constructor
A new instance of NodePool.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodePool
Returns a new instance of NodePool.
3918 3919 3920 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3918 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Required. A unique id of the node pool. Primary and Secondary workers can be
specified using special reserved ids PRIMARY_WORKER_POOL and
SECONDARY_WORKER_POOL respectively. Aux node pools can be referenced using
corresponding pool id.
Corresponds to the JSON property id
3905 3906 3907 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3905 def id @id end |
#instance_names ⇒ Array<String>
Name of instances to be repaired. These instances must belong to specified
node pool.
Corresponds to the JSON property instanceNames
3911 3912 3913 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3911 def instance_names @instance_names end |
#repair_action ⇒ String
Required. Repair action to take on specified resources of the node pool.
Corresponds to the JSON property repairAction
3916 3917 3918 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3916 def repair_action @repair_action end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3923 3924 3925 3926 3927 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3923 def update!(**args) @id = args[:id] if args.key?(:id) @instance_names = args[:instance_names] if args.key?(:instance_names) @repair_action = args[:repair_action] if args.key?(:repair_action) end |