Class: Google::Apis::BaremetalsolutionV2::ResizeVolumeRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb

Overview

Request for emergency resize Volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResizeVolumeRequest

Returns a new instance of ResizeVolumeRequest.



2118
2119
2120
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2118

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

Instance Attribute Details

#size_gibFixnum

New Volume size, in GiB. Corresponds to the JSON property sizeGib

Returns:

  • (Fixnum)


2116
2117
2118
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2116

def size_gib
  @size_gib
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2123
2124
2125
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 2123

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