Class: Google::Apis::BaremetalsolutionV2::LunRange
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::LunRange
- 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
-
#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.
1174 1175 1176 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#quantity ⇒ Fixnum
Number of LUNs to create.
Corresponds to the JSON property quantity
1167 1168 1169 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1167 def quantity @quantity end |
#size_gb ⇒ Fixnum
The requested size of each LUN, in GB.
Corresponds to the JSON property sizeGb
1172 1173 1174 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1172 def size_gb @size_gb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1179 1180 1181 1182 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1179 def update!(**args) @quantity = args[:quantity] if args.key?(:quantity) @size_gb = args[:size_gb] if args.key?(:size_gb) end |