Class: Google::Apis::DataprocV1::InstanceGroupConfig

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

The config settings for Compute Engine resources in an instance group, such as a master or worker group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstanceGroupConfig

Returns a new instance of InstanceGroupConfig.



1277
1278
1279
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1277

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#acceleratorsArray<Google::Apis::DataprocV1::AcceleratorConfig>

Optional. The Compute Engine accelerator configuration for these instances. Corresponds to the JSON property accelerators



1223
1224
1225
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1223

def accelerators
  @accelerators
end

#disk_configGoogle::Apis::DataprocV1::DiskConfig

Specifies the config of disk options for a group of VM instances. Corresponds to the JSON property diskConfig



1228
1229
1230
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1228

def disk_config
  @disk_config
end

#image_uriString

Optional. The Compute Engine image resource used for cluster instances. It can be specified or may be inferred from SoftwareConfig.image_version. Corresponds to the JSON property imageUri

Returns:

  • (String)


1234
1235
1236
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1234

def image_uri
  @image_uri
end

#instance_namesArray<String>

Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group. Corresponds to the JSON property instanceNames

Returns:

  • (Array<String>)


1240
1241
1242
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1240

def instance_names
  @instance_names
end

#is_preemptibleBoolean Also known as: is_preemptible?

Optional. Specifies that this instance group contains preemptible instances. Corresponds to the JSON property isPreemptible

Returns:

  • (Boolean)


1245
1246
1247
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1245

def is_preemptible
  @is_preemptible
end

#machine_type_uriString

Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/ machineTypes/n1-standard-2 projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the machine type resource, for example, n1-standard-2. Corresponds to the JSON property machineTypeUri

Returns:

  • (String)


1258
1259
1260
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1258

def machine_type_uri
  @machine_type_uri
end

#managed_group_configGoogle::Apis::DataprocV1::ManagedGroupConfig

Specifies the resources used to actively manage an instance group. Corresponds to the JSON property managedGroupConfig



1263
1264
1265
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1263

def managed_group_config
  @managed_group_config
end

#min_cpu_platformString

Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc→Minimum CPU Platform. Corresponds to the JSON property minCpuPlatform

Returns:

  • (String)


1269
1270
1271
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1269

def min_cpu_platform
  @min_cpu_platform
end

#num_instancesFixnum

Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1. Corresponds to the JSON property numInstances

Returns:

  • (Fixnum)


1275
1276
1277
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1275

def num_instances
  @num_instances
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1282

def update!(**args)
  @accelerators = args[:accelerators] if args.key?(:accelerators)
  @disk_config = args[:disk_config] if args.key?(:disk_config)
  @image_uri = args[:image_uri] if args.key?(:image_uri)
  @instance_names = args[:instance_names] if args.key?(:instance_names)
  @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
  @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
  @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
  @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
  @num_instances = args[:num_instances] if args.key?(:num_instances)
end