Class: Google::Apis::BaremetalsolutionV2::LunRange

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

A LUN(Logical Unit Number) range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LunRange

Returns a new instance of LunRange.



1017
1018
1019
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1017

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

Instance Attribute Details

#quantityFixnum

Number of LUNs to create. Corresponds to the JSON property quantity

Returns:

  • (Fixnum)


1010
1011
1012
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1010

def quantity
  @quantity
end

#size_gbFixnum

The requested size of each LUN, in GB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


1015
1016
1017
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1015

def size_gb
  @size_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1022
1023
1024
1025
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1022

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