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.
40159 40160 40161 40162 40163 40164 40165 40166 40167 40168 40169 |
# File 'lib/ovirtsdk4/types.rb', line 40159 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.
40174 40175 40176 40177 40178 40179 40180 40181 40182 40183 40184 |
# File 'lib/ovirtsdk4/types.rb', line 40174 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.
39916 39917 39918 |
# File 'lib/ovirtsdk4/types.rb', line 39916 def alloc_count @alloc_count end |
#alloc_count=(value) ⇒ Object
Sets the value of the alloc_count
attribute.
39925 39926 39927 |
# File 'lib/ovirtsdk4/types.rb', line 39925 def alloc_count=(value) @alloc_count = value end |
#cold_count ⇒ Integer
Returns the value of the cold_count
attribute.
39934 39935 39936 |
# File 'lib/ovirtsdk4/types.rb', line 39934 def cold_count @cold_count end |
#cold_count=(value) ⇒ Object
Sets the value of the cold_count
attribute.
39943 39944 39945 |
# File 'lib/ovirtsdk4/types.rb', line 39943 def cold_count=(value) @cold_count = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
39952 39953 39954 |
# File 'lib/ovirtsdk4/types.rb', line 39952 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39961 39962 39963 |
# File 'lib/ovirtsdk4/types.rb', line 39961 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
39970 39971 39972 |
# File 'lib/ovirtsdk4/types.rb', line 39970 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39979 39980 39981 |
# File 'lib/ovirtsdk4/types.rb', line 39979 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40189 40190 40191 40192 40193 40194 40195 40196 40197 40198 40199 |
# File 'lib/ovirtsdk4/types.rb', line 40189 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.
39988 39989 39990 |
# File 'lib/ovirtsdk4/types.rb', line 39988 def hot_count @hot_count end |
#hot_count=(value) ⇒ Object
Sets the value of the hot_count
attribute.
39997 39998 39999 |
# File 'lib/ovirtsdk4/types.rb', line 39997 def hot_count=(value) @hot_count = value end |
#id ⇒ String
Returns the value of the id
attribute.
40006 40007 40008 |
# File 'lib/ovirtsdk4/types.rb', line 40006 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
40015 40016 40017 |
# File 'lib/ovirtsdk4/types.rb', line 40015 def id=(value) @id = value end |
#max_alloc ⇒ Integer
Returns the value of the max_alloc
attribute.
40024 40025 40026 |
# File 'lib/ovirtsdk4/types.rb', line 40024 def max_alloc @max_alloc end |
#max_alloc=(value) ⇒ Object
Sets the value of the max_alloc
attribute.
40033 40034 40035 |
# File 'lib/ovirtsdk4/types.rb', line 40033 def max_alloc=(value) @max_alloc = value end |
#max_stdalloc ⇒ Integer
Returns the value of the max_stdalloc
attribute.
40042 40043 40044 |
# File 'lib/ovirtsdk4/types.rb', line 40042 def max_stdalloc @max_stdalloc end |
#max_stdalloc=(value) ⇒ Object
Sets the value of the max_stdalloc
attribute.
40051 40052 40053 |
# File 'lib/ovirtsdk4/types.rb', line 40051 def max_stdalloc=(value) @max_stdalloc = value end |
#name ⇒ String
Returns the value of the name
attribute.
40060 40061 40062 |
# File 'lib/ovirtsdk4/types.rb', line 40060 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
40069 40070 40071 |
# File 'lib/ovirtsdk4/types.rb', line 40069 def name=(value) @name = value end |
#padded_size ⇒ Integer
Returns the value of the padded_size
attribute.
40078 40079 40080 |
# File 'lib/ovirtsdk4/types.rb', line 40078 def padded_size @padded_size end |
#padded_size=(value) ⇒ Object
Sets the value of the padded_size
attribute.
40087 40088 40089 |
# File 'lib/ovirtsdk4/types.rb', line 40087 def padded_size=(value) @padded_size = value end |
#pool_misses ⇒ Integer
Returns the value of the pool_misses
attribute.
40096 40097 40098 |
# File 'lib/ovirtsdk4/types.rb', line 40096 def pool_misses @pool_misses end |
#pool_misses=(value) ⇒ Object
Sets the value of the pool_misses
attribute.
40105 40106 40107 |
# File 'lib/ovirtsdk4/types.rb', line 40105 def pool_misses=(value) @pool_misses = value end |
#type ⇒ String
Returns the value of the type
attribute.
40114 40115 40116 |
# File 'lib/ovirtsdk4/types.rb', line 40114 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
40123 40124 40125 |
# File 'lib/ovirtsdk4/types.rb', line 40123 def type=(value) @type = value end |