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.
43 44 45 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 43 def initialize(**args) update!(**args) end |
Instance Attribute Details
#size_gb ⇒ Fixnum
Required. Immutable. The size of the disk in gigabytes (GB), which must be at
least 40 GB.
Corresponds to the JSON property sizeGb
34 35 36 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 34 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`
41 42 43 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 41 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
48 49 50 51 |
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 48 def update!(**args) @size_gb = args[:size_gb] if args.key?(:size_gb) @type = args[:type] if args.key?(:type) end |