Class: Google::Apis::DataprocV1::InstanceGroupConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::InstanceGroupConfig
- 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
The config settings for Compute Engine resources in an instance group, such as a master or worker group.
Instance Attribute Summary collapse
-
#accelerators ⇒ Array<Google::Apis::DataprocV1::AcceleratorConfig>
Optional.
-
#disk_config ⇒ Google::Apis::DataprocV1::DiskConfig
Specifies the config of disk options for a group of VM instances.
-
#image_uri ⇒ String
Optional.
-
#instance_names ⇒ Array<String>
Output only.
-
#instance_references ⇒ Array<Google::Apis::DataprocV1::InstanceReference>
Output only.
-
#is_preemptible ⇒ Boolean
(also: #is_preemptible?)
Output only.
-
#machine_type_uri ⇒ String
Optional.
-
#managed_group_config ⇒ Google::Apis::DataprocV1::ManagedGroupConfig
Specifies the resources used to actively manage an instance group.
-
#min_cpu_platform ⇒ String
Optional.
-
#num_instances ⇒ Fixnum
Optional.
-
#preemptibility ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceGroupConfig
constructor
A new instance of InstanceGroupConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceGroupConfig
Returns a new instance of InstanceGroupConfig.
2195 2196 2197 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2195 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerators ⇒ Array<Google::Apis::DataprocV1::AcceleratorConfig>
Optional. The Compute Engine accelerator configuration for these instances.
Corresponds to the JSON property accelerators
2120 2121 2122 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2120 def accelerators @accelerators end |
#disk_config ⇒ Google::Apis::DataprocV1::DiskConfig
Specifies the config of disk options for a group of VM instances.
Corresponds to the JSON property diskConfig
2125 2126 2127 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2125 def disk_config @disk_config end |
#image_uri ⇒ String
Optional. The Compute Engine image resource used for cluster instances.The URI
can represent an image or image family.Image examples: https://www.googleapis.
com/compute/v1/projects/[project_id]/global/images/[image-id] projects/[
project_id]/global/images/[image-id] image-idImage family examples. Dataproc
will use the most recent image from the family: https://www.googleapis.com/
compute/v1/projects/[project_id]/global/images/family/[custom-image-family-
name] projects/[project_id]/global/images/family/[custom-image-family-name]If
the URI is unspecified, it will be inferred from SoftwareConfig.image_version
or the system default.
Corresponds to the JSON property imageUri
2138 2139 2140 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2138 def image_uri @image_uri end |
#instance_names ⇒ Array<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
2144 2145 2146 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2144 def instance_names @instance_names end |
#instance_references ⇒ Array<Google::Apis::DataprocV1::InstanceReference>
Output only. List of references to Compute Engine instances.
Corresponds to the JSON property instanceReferences
2149 2150 2151 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2149 def instance_references @instance_references end |
#is_preemptible ⇒ Boolean Also known as: is_preemptible?
Output only. Specifies that this instance group contains preemptible instances.
Corresponds to the JSON property isPreemptible
2154 2155 2156 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2154 def is_preemptible @is_preemptible end |
#machine_type_uri ⇒ String
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/[zone]/machineTypes/n1-standard-2
projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-
2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https:
//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
2167 2168 2169 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2167 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
2172 2173 2174 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2172 def managed_group_config @managed_group_config end |
#min_cpu_platform ⇒ String
Optional. Specifies the minimum cpu platform for the Instance Group. See
Dataproc -> Minimum CPU Platform (https://cloud.google.com/dataproc/docs/
concepts/compute/dataproc-min-cpu).
Corresponds to the JSON property minCpuPlatform
2179 2180 2181 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2179 def min_cpu_platform @min_cpu_platform end |
#num_instances ⇒ Fixnum
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
2186 2187 2188 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2186 def num_instances @num_instances end |
#preemptibility ⇒ String
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
2193 2194 2195 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2193 def preemptibility @preemptibility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2200 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 |