Class: Google::Apis::ComputeV1::MachineType::ScratchDisk

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/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) ⇒ ScratchDisk

Returns a new instance of ScratchDisk



11852
11853
11854
# File 'generated/google/apis/compute_v1/classes.rb', line 11852

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

Instance Attribute Details

#disk_gbFixnum

Size of the scratch disk, defined in GB. Corresponds to the JSON property diskGb

Returns:

  • (Fixnum)


11850
11851
11852
# File 'generated/google/apis/compute_v1/classes.rb', line 11850

def disk_gb
  @disk_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11857
11858
11859
# File 'generated/google/apis/compute_v1/classes.rb', line 11857

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