Class: Google::Apis::ComputeV1::FutureResourcesSpecLocalSsdPartition

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) ⇒ FutureResourcesSpecLocalSsdPartition

Returns a new instance of FutureResourcesSpecLocalSsdPartition.



15630
15631
15632
# File 'lib/google/apis/compute_v1/classes.rb', line 15630

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

Instance Attribute Details

#disk_interfaceString

Disk interface. Defaults to SCSI. Corresponds to the JSON property diskInterface

Returns:

  • (String)


15623
15624
15625
# File 'lib/google/apis/compute_v1/classes.rb', line 15623

def disk_interface
  @disk_interface
end

#disk_size_gbFixnum

The size of the disk in GB. Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


15628
15629
15630
# File 'lib/google/apis/compute_v1/classes.rb', line 15628

def disk_size_gb
  @disk_size_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15635
15636
15637
15638
# File 'lib/google/apis/compute_v1/classes.rb', line 15635

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