Class: Google::Apis::ComputeV1::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk

Returns a new instance of AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk.



1359
1360
1361
# File 'lib/google/apis/compute_v1/classes.rb', line 1359

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)


1350
1351
1352
# File 'lib/google/apis/compute_v1/classes.rb', line 1350

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)


1357
1358
1359
# File 'lib/google/apis/compute_v1/classes.rb', line 1357

def interface
  @interface
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1364
1365
1366
1367
# File 'lib/google/apis/compute_v1/classes.rb', line 1364

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