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.
42610 42611 42612 42613 42614 42615 42616 42617 42618 42619 42620 |
# File 'lib/ovirtsdk4/types.rb', line 42610 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.
42625 42626 42627 42628 42629 42630 42631 42632 42633 42634 42635 |
# File 'lib/ovirtsdk4/types.rb', line 42625 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.
42367 42368 42369 |
# File 'lib/ovirtsdk4/types.rb', line 42367 def alloc_count @alloc_count end |
#alloc_count=(value) ⇒ Object
Sets the value of the alloc_count
attribute.
42376 42377 42378 |
# File 'lib/ovirtsdk4/types.rb', line 42376 def alloc_count=(value) @alloc_count = value end |
#cold_count ⇒ Integer
Returns the value of the cold_count
attribute.
42385 42386 42387 |
# File 'lib/ovirtsdk4/types.rb', line 42385 def cold_count @cold_count end |
#cold_count=(value) ⇒ Object
Sets the value of the cold_count
attribute.
42394 42395 42396 |
# File 'lib/ovirtsdk4/types.rb', line 42394 def cold_count=(value) @cold_count = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
42403 42404 42405 |
# File 'lib/ovirtsdk4/types.rb', line 42403 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
42412 42413 42414 |
# File 'lib/ovirtsdk4/types.rb', line 42412 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
42421 42422 42423 |
# File 'lib/ovirtsdk4/types.rb', line 42421 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
42430 42431 42432 |
# File 'lib/ovirtsdk4/types.rb', line 42430 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
42640 42641 42642 42643 42644 42645 42646 42647 42648 42649 42650 |
# File 'lib/ovirtsdk4/types.rb', line 42640 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.
42439 42440 42441 |
# File 'lib/ovirtsdk4/types.rb', line 42439 def hot_count @hot_count end |
#hot_count=(value) ⇒ Object
Sets the value of the hot_count
attribute.
42448 42449 42450 |
# File 'lib/ovirtsdk4/types.rb', line 42448 def hot_count=(value) @hot_count = value end |
#id ⇒ String
Returns the value of the id
attribute.
42457 42458 42459 |
# File 'lib/ovirtsdk4/types.rb', line 42457 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
42466 42467 42468 |
# File 'lib/ovirtsdk4/types.rb', line 42466 def id=(value) @id = value end |
#max_alloc ⇒ Integer
Returns the value of the max_alloc
attribute.
42475 42476 42477 |
# File 'lib/ovirtsdk4/types.rb', line 42475 def max_alloc @max_alloc end |
#max_alloc=(value) ⇒ Object
Sets the value of the max_alloc
attribute.
42484 42485 42486 |
# File 'lib/ovirtsdk4/types.rb', line 42484 def max_alloc=(value) @max_alloc = value end |
#max_stdalloc ⇒ Integer
Returns the value of the max_stdalloc
attribute.
42493 42494 42495 |
# File 'lib/ovirtsdk4/types.rb', line 42493 def max_stdalloc @max_stdalloc end |
#max_stdalloc=(value) ⇒ Object
Sets the value of the max_stdalloc
attribute.
42502 42503 42504 |
# File 'lib/ovirtsdk4/types.rb', line 42502 def max_stdalloc=(value) @max_stdalloc = value end |
#name ⇒ String
Returns the value of the name
attribute.
42511 42512 42513 |
# File 'lib/ovirtsdk4/types.rb', line 42511 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
42520 42521 42522 |
# File 'lib/ovirtsdk4/types.rb', line 42520 def name=(value) @name = value end |
#padded_size ⇒ Integer
Returns the value of the padded_size
attribute.
42529 42530 42531 |
# File 'lib/ovirtsdk4/types.rb', line 42529 def padded_size @padded_size end |
#padded_size=(value) ⇒ Object
Sets the value of the padded_size
attribute.
42538 42539 42540 |
# File 'lib/ovirtsdk4/types.rb', line 42538 def padded_size=(value) @padded_size = value end |
#pool_misses ⇒ Integer
Returns the value of the pool_misses
attribute.
42547 42548 42549 |
# File 'lib/ovirtsdk4/types.rb', line 42547 def pool_misses @pool_misses end |
#pool_misses=(value) ⇒ Object
Sets the value of the pool_misses
attribute.
42556 42557 42558 |
# File 'lib/ovirtsdk4/types.rb', line 42556 def pool_misses=(value) @pool_misses = value end |
#type ⇒ String
Returns the value of the type
attribute.
42565 42566 42567 |
# File 'lib/ovirtsdk4/types.rb', line 42565 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
42574 42575 42576 |
# File 'lib/ovirtsdk4/types.rb', line 42574 def type=(value) @type = value end |