Class: Google::Apis::DataprocV1::DiskConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::DiskConfig
- 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
Specifies the config of disk options for a group of VM instances.
Instance Attribute Summary collapse
-
#boot_disk_size_gb ⇒ Fixnum
[Optional] Size in GB of the boot disk (default is 500GB).
-
#num_local_ssds ⇒ Fixnum
[Optional] Number of attached SSDs, from 0 to 4 (default is 0).
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskConfig
constructor
A new instance of DiskConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DiskConfig
Returns a new instance of DiskConfig.
292 293 294 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 292 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boot_disk_size_gb ⇒ Fixnum
[Optional] Size in GB of the boot disk (default is 500GB).
Corresponds to the JSON property bootDiskSizeGb
282 283 284 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 282 def boot_disk_size_gb @boot_disk_size_gb end |
#num_local_ssds ⇒ Fixnum
[Optional] Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are
not attached, the boot disk is used to store runtime logs and HDFS data. If
one or more SSDs are attached, this runtime bulk data is spread across them,
and the boot disk contains only basic config and installed binaries.
Corresponds to the JSON property numLocalSsds
290 291 292 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 290 def num_local_ssds @num_local_ssds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
297 298 299 300 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 297 def update!(**args) @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb) @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds) end |