Class: Google::Apis::DataprocV1::InstanceGroupConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::InstanceGroupConfig
- 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
The config settings for Google Compute Engine resources in an instance group, such as a master or worker group.
Instance Attribute Summary collapse
-
#disk_config ⇒ Google::Apis::DataprocV1::DiskConfig
Specifies the config of disk options for a group of VM instances.
-
#image_uri ⇒ String
[Output-only] The Google Compute Engine image resource used for cluster instances.
-
#instance_names ⇒ Array<String>
The list of instance names.
-
#is_preemptible ⇒ Boolean
(also: #is_preemptible?)
Specifies that this instance group contains Preemptible Instances.
-
#machine_type_uri ⇒ String
The Google Compute Engine machine type used for cluster instances.
-
#managed_group_config ⇒ Google::Apis::DataprocV1::ManagedGroupConfig
Specifies the resources used to actively manage an instance group.
-
#num_instances ⇒ Fixnum
The number of VM instances in the instance group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceGroupConfig
constructor
A new instance of InstanceGroupConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InstanceGroupConfig
Returns a new instance of InstanceGroupConfig.
259 260 261 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 259 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_config ⇒ Google::Apis::DataprocV1::DiskConfig
Specifies the config of disk options for a group of VM instances.
Corresponds to the JSON property diskConfig
246 247 248 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 246 def disk_config @disk_config end |
#image_uri ⇒ String
[Output-only] The Google Compute Engine image resource used for cluster
instances. Inferred from SoftwareConfig.image_version
.
Corresponds to the JSON property imageUri
234 235 236 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 234 def image_uri @image_uri end |
#instance_names ⇒ Array<String>
The list of instance names. Cloud Dataproc derives the names from
cluster_name
, num_instances
, and the instance group if not set by user (
recommended practice is to let Cloud Dataproc derive the name).
Corresponds to the JSON property instanceNames
228 229 230 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 228 def instance_names @instance_names end |
#is_preemptible ⇒ Boolean Also known as: is_preemptible?
Specifies that this instance group contains Preemptible Instances.
Corresponds to the JSON property isPreemptible
251 252 253 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 251 def is_preemptible @is_preemptible end |
#machine_type_uri ⇒ String
The Google Compute Engine machine type used for cluster instances. Example:
https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
machineTypes/n1-standard-2
.
Corresponds to the JSON property machineTypeUri
241 242 243 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 241 def machine_type_uri @machine_type_uri end |
#managed_group_config ⇒ Google::Apis::DataprocV1::ManagedGroupConfig
Specifies the resources used to actively manage an instance group.
Corresponds to the JSON property managedGroupConfig
257 258 259 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 257 def managed_group_config @managed_group_config end |
#num_instances ⇒ Fixnum
The number of VM instances in the instance group. For master instance groups,
must be set to 1.
Corresponds to the JSON property numInstances
221 222 223 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 221 def num_instances @num_instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
264 265 266 267 268 269 270 271 272 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 264 def update!(**args) @num_instances = args[:num_instances] if args.key?(:num_instances) @instance_names = args[:instance_names] if args.key?(:instance_names) @image_uri = args[:image_uri] if args.key?(:image_uri) @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri) @disk_config = args[:disk_config] if args.key?(:disk_config) @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible) @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config) end |