Class: Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk

Returns a new instance of AllocationSpecificSkuAllocationAllocatedInstancePropertiesAllocatedDisk



1478
1479
1480
# File 'generated/google/apis/compute_beta/classes.rb', line 1478

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

Instance Attribute Details

#disk_size_gbFixnum

Specifies the size of the disk in base-2 GB. Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


1469
1470
1471
# File 'generated/google/apis/compute_beta/classes.rb', line 1469

def disk_size_gb
  @disk_size_gb
end

#interfaceString

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. Corresponds to the JSON property interface

Returns:

  • (String)


1476
1477
1478
# File 'generated/google/apis/compute_beta/classes.rb', line 1476

def interface
  @interface
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1483
1484
1485
1486
# File 'generated/google/apis/compute_beta/classes.rb', line 1483

def update!(**args)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @interface = args[:interface] if args.key?(:interface)
end