Class: Google::Apis::DataprocV1beta2::DiskConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb

Overview

Specifies the config of disk options for a group of VM instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DiskConfig

Returns a new instance of DiskConfig



586
587
588
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 586

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#boot_disk_size_gbFixnum

Optional. Size in GB of the boot disk (default is 500GB). Corresponds to the JSON property bootDiskSizeGb

Returns:

  • (Fixnum)


568
569
570
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 568

def boot_disk_size_gb
  @boot_disk_size_gb
end

#boot_disk_typeString

Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd- ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive). Corresponds to the JSON property bootDiskType

Returns:

  • (String)


575
576
577
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 575

def boot_disk_type
  @boot_disk_type
end

#num_local_ssdsFixnum

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 (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. Corresponds to the JSON property numLocalSsds

Returns:

  • (Fixnum)


584
585
586
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 584

def num_local_ssds
  @num_local_ssds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



591
592
593
594
595
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 591

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)
  @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
end