Class: OvirtSDK4::GlusterMemoryPool
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::GlusterMemoryPool
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#alloc_count ⇒ Integer
Returns the value of the
alloc_count
attribute. -
#alloc_count=(value) ⇒ Object
Sets the value of the
alloc_count
attribute. -
#cold_count ⇒ Integer
Returns the value of the
cold_count
attribute. -
#cold_count=(value) ⇒ Object
Sets the value of the
cold_count
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#hot_count ⇒ Integer
Returns the value of the
hot_count
attribute. -
#hot_count=(value) ⇒ Object
Sets the value of the
hot_count
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ GlusterMemoryPool
constructor
Creates a new instance of the GlusterMemoryPool class.
-
#max_alloc ⇒ Integer
Returns the value of the
max_alloc
attribute. -
#max_alloc=(value) ⇒ Object
Sets the value of the
max_alloc
attribute. -
#max_stdalloc ⇒ Integer
Returns the value of the
max_stdalloc
attribute. -
#max_stdalloc=(value) ⇒ Object
Sets the value of the
max_stdalloc
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#padded_size ⇒ Integer
Returns the value of the
padded_size
attribute. -
#padded_size=(value) ⇒ Object
Sets the value of the
padded_size
attribute. -
#pool_misses ⇒ Integer
Returns the value of the
pool_misses
attribute. -
#pool_misses=(value) ⇒ Object
Sets the value of the
pool_misses
attribute. -
#type ⇒ String
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GlusterMemoryPool
Creates a new instance of the OvirtSDK4::GlusterMemoryPool class.
39583 39584 39585 39586 39587 39588 39589 39590 39591 39592 39593 |
# File 'lib/ovirtsdk4/types.rb', line 39583 def initialize(opts = {}) super(opts) self.alloc_count = opts[:alloc_count] self.cold_count = opts[:cold_count] self.hot_count = opts[:hot_count] self.max_alloc = opts[:max_alloc] self.max_stdalloc = opts[:max_stdalloc] self.padded_size = opts[:padded_size] self.pool_misses = opts[:pool_misses] self.type = opts[:type] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
39598 39599 39600 39601 39602 39603 39604 39605 39606 39607 39608 |
# File 'lib/ovirtsdk4/types.rb', line 39598 def ==(other) super && @alloc_count == other.alloc_count && @cold_count == other.cold_count && @hot_count == other.hot_count && @max_alloc == other.max_alloc && @max_stdalloc == other.max_stdalloc && @padded_size == other.padded_size && @pool_misses == other.pool_misses && @type == other.type end |
#alloc_count ⇒ Integer
Returns the value of the alloc_count
attribute.
39340 39341 39342 |
# File 'lib/ovirtsdk4/types.rb', line 39340 def alloc_count @alloc_count end |
#alloc_count=(value) ⇒ Object
Sets the value of the alloc_count
attribute.
39349 39350 39351 |
# File 'lib/ovirtsdk4/types.rb', line 39349 def alloc_count=(value) @alloc_count = value end |
#cold_count ⇒ Integer
Returns the value of the cold_count
attribute.
39358 39359 39360 |
# File 'lib/ovirtsdk4/types.rb', line 39358 def cold_count @cold_count end |
#cold_count=(value) ⇒ Object
Sets the value of the cold_count
attribute.
39367 39368 39369 |
# File 'lib/ovirtsdk4/types.rb', line 39367 def cold_count=(value) @cold_count = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
39376 39377 39378 |
# File 'lib/ovirtsdk4/types.rb', line 39376 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39385 39386 39387 |
# File 'lib/ovirtsdk4/types.rb', line 39385 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
39394 39395 39396 |
# File 'lib/ovirtsdk4/types.rb', line 39394 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39403 39404 39405 |
# File 'lib/ovirtsdk4/types.rb', line 39403 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
39613 39614 39615 39616 39617 39618 39619 39620 39621 39622 39623 |
# File 'lib/ovirtsdk4/types.rb', line 39613 def hash super + @alloc_count.hash + @cold_count.hash + @hot_count.hash + @max_alloc.hash + @max_stdalloc.hash + @padded_size.hash + @pool_misses.hash + @type.hash end |
#hot_count ⇒ Integer
Returns the value of the hot_count
attribute.
39412 39413 39414 |
# File 'lib/ovirtsdk4/types.rb', line 39412 def hot_count @hot_count end |
#hot_count=(value) ⇒ Object
Sets the value of the hot_count
attribute.
39421 39422 39423 |
# File 'lib/ovirtsdk4/types.rb', line 39421 def hot_count=(value) @hot_count = value end |
#id ⇒ String
Returns the value of the id
attribute.
39430 39431 39432 |
# File 'lib/ovirtsdk4/types.rb', line 39430 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39439 39440 39441 |
# File 'lib/ovirtsdk4/types.rb', line 39439 def id=(value) @id = value end |
#max_alloc ⇒ Integer
Returns the value of the max_alloc
attribute.
39448 39449 39450 |
# File 'lib/ovirtsdk4/types.rb', line 39448 def max_alloc @max_alloc end |
#max_alloc=(value) ⇒ Object
Sets the value of the max_alloc
attribute.
39457 39458 39459 |
# File 'lib/ovirtsdk4/types.rb', line 39457 def max_alloc=(value) @max_alloc = value end |
#max_stdalloc ⇒ Integer
Returns the value of the max_stdalloc
attribute.
39466 39467 39468 |
# File 'lib/ovirtsdk4/types.rb', line 39466 def max_stdalloc @max_stdalloc end |
#max_stdalloc=(value) ⇒ Object
Sets the value of the max_stdalloc
attribute.
39475 39476 39477 |
# File 'lib/ovirtsdk4/types.rb', line 39475 def max_stdalloc=(value) @max_stdalloc = value end |
#name ⇒ String
Returns the value of the name
attribute.
39484 39485 39486 |
# File 'lib/ovirtsdk4/types.rb', line 39484 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39493 39494 39495 |
# File 'lib/ovirtsdk4/types.rb', line 39493 def name=(value) @name = value end |
#padded_size ⇒ Integer
Returns the value of the padded_size
attribute.
39502 39503 39504 |
# File 'lib/ovirtsdk4/types.rb', line 39502 def padded_size @padded_size end |
#padded_size=(value) ⇒ Object
Sets the value of the padded_size
attribute.
39511 39512 39513 |
# File 'lib/ovirtsdk4/types.rb', line 39511 def padded_size=(value) @padded_size = value end |
#pool_misses ⇒ Integer
Returns the value of the pool_misses
attribute.
39520 39521 39522 |
# File 'lib/ovirtsdk4/types.rb', line 39520 def pool_misses @pool_misses end |
#pool_misses=(value) ⇒ Object
Sets the value of the pool_misses
attribute.
39529 39530 39531 |
# File 'lib/ovirtsdk4/types.rb', line 39529 def pool_misses=(value) @pool_misses = value end |
#type ⇒ String
Returns the value of the type
attribute.
39538 39539 39540 |
# File 'lib/ovirtsdk4/types.rb', line 39538 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
39547 39548 39549 |
# File 'lib/ovirtsdk4/types.rb', line 39547 def type=(value) @type = value end |