class Google::Apis::DataprocV1::InstanceGroupConfig

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

Attributes

accelerators[RW]

Optional. The Compute Engine accelerator configuration for these instances. Corresponds to the JSON property `accelerators` @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]

disk_config[RW]

Specifies the config of disk options for a group of VM instances. Corresponds to the JSON property `diskConfig` @return [Google::Apis::DataprocV1::DiskConfig]

image_uri[RW]

Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples: www.googleapis. com/compute/beta/projects//global/images/ projects/[ project_id]/global/images/ image-idImage family examples. Dataproc will use the most recent image from the family: www.googleapis.com/ compute/beta/projects//global/images/family/[custom-image-family- name] projects//global/images/family/If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default. Corresponds to the JSON property `imageUri` @return [String]

instance_names[RW]

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` @return [Array<String>]

instance_references[RW]

Output only. List of references to Compute Engine instances. Corresponds to the JSON property `instanceReferences` @return [Array<Google::Apis::DataprocV1::InstanceReference>]

is_preemptible[RW]

Output only. Specifies that this instance group contains preemptible instances. Corresponds to the JSON property `isPreemptible` @return [Boolean]

is_preemptible?[RW]

Output only. Specifies that this instance group contains preemptible instances. Corresponds to the JSON property `isPreemptible` @return [Boolean]

machine_type_uri[RW]

Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples: www.googleapis. com/compute/v1/projects//zones/us-east1-a/machineTypes/n1-standard- 2 projects//zones/us-east1-a/machineTypes/n1-standard-2 n1- standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (cloud.google.com/dataproc/docs/concepts/configuring- clusters/auto-zone#using_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` @return [String]

managed_group_config[RW]

Specifies the resources used to actively manage an instance group. Corresponds to the JSON property `managedGroupConfig` @return [Google::Apis::DataprocV1::ManagedGroupConfig]

min_cpu_platform[RW]

Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform (cloud.google.com/dataproc/docs/ concepts/compute/dataproc-min-cpu). Corresponds to the JSON property `minCpuPlatform` @return [String]

num_instances[RW]

Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1. Corresponds to the JSON property `numInstances` @return [Fixnum]

preemptibility[RW]

Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE. Corresponds to the JSON property `preemptibility` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1/classes.rb, line 1524
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1/classes.rb, line 1529
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)
  @instance_references = args[:instance_references] if args.key?(:instance_references)
  @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)
  @preemptibility = args[:preemptibility] if args.key?(:preemptibility)
end