Class: Google::Apis::HypercomputeclusterV1::BootDisk

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_gbFixnum

Required. Immutable. The size of the disk in gigabytes (GB), which must be at least 40 GB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


34
35
36
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 34

def size_gb
  @size_gb
end

#typeString

Required. Immutable. Persistent disk type, in the format projects/project/zones/zone/ diskTypes/disk_type`. Corresponds to the JSON propertytype`

Returns:

  • (String)


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