Class: Google::Apis::HypercomputeclusterV1::BootDisk
- Inherits:
-
Object
- Object
- Google::Apis::HypercomputeclusterV1::BootDisk
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/hypercomputecluster_v1/classes.rb,
lib/google/apis/hypercomputecluster_v1/representations.rb,
lib/google/apis/hypercomputecluster_v1/representations.rb
Overview
A Persistent disk used as the boot disk for a Compute Engine VM instance.
Instance Attribute Summary collapse
-
#size_gb ⇒ Fixnum
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BootDisk
constructor
A new instance of BootDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BootDisk
Returns a new instance of BootDisk.
42 43 44 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#size_gb ⇒ Fixnum
Required. Immutable. Size of the disk in gigabytes. Must be at least 10GB.
Corresponds to the JSON property sizeGb
33 34 35 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 33 def size_gb @size_gb end |
#type ⇒ String
Required. Immutable. Persistent disk type, in the format projects/project/zones/zone/
diskTypes/disk_type`.
Corresponds to the JSON propertytype`
40 41 42 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 40 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 47 def update!(**args) @size_gb = args[:size_gb] if args.key?(:size_gb) @type = args[:type] if args.key?(:type) end |