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
Optional. 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.
-
#is_preemptible ⇒ Boolean
(also: #is_preemptible?)
Optional.
-
#machine_type_uri ⇒ String
Optional.
-
#managed_group_config ⇒ Google::Apis::DataprocV1::ManagedGroupConfig
Specifies the resources used to actively manage an instance group.
-
#num_instances ⇒ Fixnum
Optional.
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
997 998 999 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 997 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerators ⇒ Array<Google::Apis::DataprocV1::AcceleratorConfig>
Optional. The Compute Engine accelerator configuration for these instances.
Beta Feature: This feature is still under development. It may be changed
before final release.
Corresponds to the JSON property accelerators
949 950 951 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 949 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
954 955 956 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 954 def disk_config @disk_config end |
#image_uri ⇒ String
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
960 961 962 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 960 def image_uri @image_uri end |
#instance_names ⇒ Array<String>
Output only. The list of instance names. Cloud Dataproc derives the names from
cluster_name, num_instances, and the instance group.
Corresponds to the JSON property instanceNames
966 967 968 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 966 def instance_names @instance_names end |
#is_preemptible ⇒ Boolean Also known as: is_preemptible?
Optional. Specifies that this instance group contains preemptible instances.
Corresponds to the JSON property isPreemptible
971 972 973 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 971 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/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 Cloud 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
984 985 986 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 984 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
989 990 991 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 989 def managed_group_config @managed_group_config end |
#num_instances ⇒ Fixnum
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
995 996 997 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 995 def num_instances @num_instances end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1002 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) @num_instances = args[:num_instances] if args.key?(:num_instances) end |