Class: Google::Apis::BaremetalsolutionV1alpha1::LunRange
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::LunRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
A LUN range.
Instance Attribute Summary collapse
-
#quantity ⇒ Fixnum
Number of LUNs to create.
-
#size_gb ⇒ Fixnum
The requested size of each LUN, in GB.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LunRange
constructor
A new instance of LunRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LunRange
Returns a new instance of LunRange.
161 162 163 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 161 def initialize(**args) update!(**args) end |
Instance Attribute Details
#quantity ⇒ Fixnum
Number of LUNs to create.
Corresponds to the JSON property quantity
154 155 156 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 154 def quantity @quantity end |
#size_gb ⇒ Fixnum
The requested size of each LUN, in GB.
Corresponds to the JSON property sizeGb
159 160 161 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 159 def size_gb @size_gb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
166 167 168 169 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 166 def update!(**args) @quantity = args[:quantity] if args.key?(:quantity) @size_gb = args[:size_gb] if args.key?(:size_gb) end |