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.



42
43
44
# File 'lib/google/apis/hypercomputecluster_v1/classes.rb', line 42

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

Instance Attribute Details

#size_gbFixnum

Required. Immutable. Size of the disk in gigabytes. Must be at least 10GB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


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

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)


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