class Google::Apis::DataprocV1::InstanceGroupConfig

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

Attributes

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]
Output-only

The Google Compute Engine image resource used for cluster

instances. Inferred from `SoftwareConfig.image_version`. Corresponds to the JSON property `imageUri` @return [String]

instance_names[RW]

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

is_preemptible[RW]

Specifies that this instance group contains Preemptible Instances. Corresponds to the JSON property `isPreemptible` @return [Boolean]

is_preemptible?[RW]

Specifies that this instance group contains Preemptible Instances. Corresponds to the JSON property `isPreemptible` @return [Boolean]

machine_type_uri[RW]

The Google Compute Engine machine type used for cluster instances. Example: ` www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/ machineTypes/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]

num_instances[RW]

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

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dataproc_v1/classes.rb, line 283
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