Class: Google::Apis::DataprocV1::DiskConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::DiskConfig
- 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
Specifies the config of disk options for a group of VM instances.
Instance Attribute Summary collapse
-
#boot_disk_size_gb ⇒ Fixnum
Optional.
-
#boot_disk_type ⇒ String
Optional.
-
#local_ssd_interface ⇒ String
Optional.
-
#num_local_ssds ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskConfig
constructor
A new instance of DiskConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskConfig
Returns a new instance of DiskConfig.
1321 1322 1323 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1321 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
1293 1294 1295 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1293 def boot_disk_size_gb @boot_disk_size_gb end |
#boot_disk_type ⇒ String
Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-
balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent
Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive).
See Disk types (https://cloud.google.com/compute/docs/disks#disk-types).
Corresponds to the JSON property bootDiskType
1301 1302 1303 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1301 def boot_disk_type @boot_disk_type end |
#local_ssd_interface ⇒ String
Optional. Interface type of local SSDs (default is "scsi"). Valid values: "
scsi" (Small Computer System Interface), "nvme" (Non-Volatile Memory Express).
See local SSD performance (https://cloud.google.com/compute/docs/disks/local-
ssd#performance).
Corresponds to the JSON property localSsdInterface
1309 1310 1311 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1309 def local_ssd_interface @local_ssd_interface end |
#num_local_ssds ⇒ Fixnum
Optional. Number of attached SSDs, from 0 to 8 (default is 0). If SSDs are not
attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
apache.org/docs/r1.2.1/hdfs_user_guide.html) 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.Note: Local SSD options may
vary by machine type and number of vCPUs selected.
Corresponds to the JSON property numLocalSsds
1319 1320 1321 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1319 def num_local_ssds @num_local_ssds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1326 1327 1328 1329 1330 1331 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1326 def update!(**args) @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb) @boot_disk_type = args[:boot_disk_type] if args.key?(:boot_disk_type) @local_ssd_interface = args[:local_ssd_interface] if args.key?(:local_ssd_interface) @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds) end |