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.
41755 41756 41757 41758 41759 41760 41761 41762 41763 41764 41765 |
# File 'lib/ovirtsdk4/types.rb', line 41755 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.
41770 41771 41772 41773 41774 41775 41776 41777 41778 41779 41780 |
# File 'lib/ovirtsdk4/types.rb', line 41770 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.
41512 41513 41514 |
# File 'lib/ovirtsdk4/types.rb', line 41512 def alloc_count @alloc_count end |
#alloc_count=(value) ⇒ Object
Sets the value of the alloc_count
attribute.
41521 41522 41523 |
# File 'lib/ovirtsdk4/types.rb', line 41521 def alloc_count=(value) @alloc_count = value end |
#cold_count ⇒ Integer
Returns the value of the cold_count
attribute.
41530 41531 41532 |
# File 'lib/ovirtsdk4/types.rb', line 41530 def cold_count @cold_count end |
#cold_count=(value) ⇒ Object
Sets the value of the cold_count
attribute.
41539 41540 41541 |
# File 'lib/ovirtsdk4/types.rb', line 41539 def cold_count=(value) @cold_count = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
41548 41549 41550 |
# File 'lib/ovirtsdk4/types.rb', line 41548 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
41557 41558 41559 |
# File 'lib/ovirtsdk4/types.rb', line 41557 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
41566 41567 41568 |
# File 'lib/ovirtsdk4/types.rb', line 41566 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
41575 41576 41577 |
# File 'lib/ovirtsdk4/types.rb', line 41575 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
41785 41786 41787 41788 41789 41790 41791 41792 41793 41794 41795 |
# File 'lib/ovirtsdk4/types.rb', line 41785 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.
41584 41585 41586 |
# File 'lib/ovirtsdk4/types.rb', line 41584 def hot_count @hot_count end |
#hot_count=(value) ⇒ Object
Sets the value of the hot_count
attribute.
41593 41594 41595 |
# File 'lib/ovirtsdk4/types.rb', line 41593 def hot_count=(value) @hot_count = value end |
#id ⇒ String
Returns the value of the id
attribute.
41602 41603 41604 |
# File 'lib/ovirtsdk4/types.rb', line 41602 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
41611 41612 41613 |
# File 'lib/ovirtsdk4/types.rb', line 41611 def id=(value) @id = value end |
#max_alloc ⇒ Integer
Returns the value of the max_alloc
attribute.
41620 41621 41622 |
# File 'lib/ovirtsdk4/types.rb', line 41620 def max_alloc @max_alloc end |
#max_alloc=(value) ⇒ Object
Sets the value of the max_alloc
attribute.
41629 41630 41631 |
# File 'lib/ovirtsdk4/types.rb', line 41629 def max_alloc=(value) @max_alloc = value end |
#max_stdalloc ⇒ Integer
Returns the value of the max_stdalloc
attribute.
41638 41639 41640 |
# File 'lib/ovirtsdk4/types.rb', line 41638 def max_stdalloc @max_stdalloc end |
#max_stdalloc=(value) ⇒ Object
Sets the value of the max_stdalloc
attribute.
41647 41648 41649 |
# File 'lib/ovirtsdk4/types.rb', line 41647 def max_stdalloc=(value) @max_stdalloc = value end |
#name ⇒ String
Returns the value of the name
attribute.
41656 41657 41658 |
# File 'lib/ovirtsdk4/types.rb', line 41656 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
41665 41666 41667 |
# File 'lib/ovirtsdk4/types.rb', line 41665 def name=(value) @name = value end |
#padded_size ⇒ Integer
Returns the value of the padded_size
attribute.
41674 41675 41676 |
# File 'lib/ovirtsdk4/types.rb', line 41674 def padded_size @padded_size end |
#padded_size=(value) ⇒ Object
Sets the value of the padded_size
attribute.
41683 41684 41685 |
# File 'lib/ovirtsdk4/types.rb', line 41683 def padded_size=(value) @padded_size = value end |
#pool_misses ⇒ Integer
Returns the value of the pool_misses
attribute.
41692 41693 41694 |
# File 'lib/ovirtsdk4/types.rb', line 41692 def pool_misses @pool_misses end |
#pool_misses=(value) ⇒ Object
Sets the value of the pool_misses
attribute.
41701 41702 41703 |
# File 'lib/ovirtsdk4/types.rb', line 41701 def pool_misses=(value) @pool_misses = value end |
#type ⇒ String
Returns the value of the type
attribute.
41710 41711 41712 |
# File 'lib/ovirtsdk4/types.rb', line 41710 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
41719 41720 41721 |
# File 'lib/ovirtsdk4/types.rb', line 41719 def type=(value) @type = value end |