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.
39256 39257 39258 39259 39260 39261 39262 39263 39264 39265 39266 |
# File 'lib/ovirtsdk4/types.rb', line 39256 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.
39271 39272 39273 39274 39275 39276 39277 39278 39279 39280 39281 |
# File 'lib/ovirtsdk4/types.rb', line 39271 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.
39013 39014 39015 |
# File 'lib/ovirtsdk4/types.rb', line 39013 def alloc_count @alloc_count end |
#alloc_count=(value) ⇒ Object
Sets the value of the alloc_count
attribute.
39022 39023 39024 |
# File 'lib/ovirtsdk4/types.rb', line 39022 def alloc_count=(value) @alloc_count = value end |
#cold_count ⇒ Integer
Returns the value of the cold_count
attribute.
39031 39032 39033 |
# File 'lib/ovirtsdk4/types.rb', line 39031 def cold_count @cold_count end |
#cold_count=(value) ⇒ Object
Sets the value of the cold_count
attribute.
39040 39041 39042 |
# File 'lib/ovirtsdk4/types.rb', line 39040 def cold_count=(value) @cold_count = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
39049 39050 39051 |
# File 'lib/ovirtsdk4/types.rb', line 39049 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39058 39059 39060 |
# File 'lib/ovirtsdk4/types.rb', line 39058 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
39067 39068 39069 |
# File 'lib/ovirtsdk4/types.rb', line 39067 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39076 39077 39078 |
# File 'lib/ovirtsdk4/types.rb', line 39076 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
39286 39287 39288 39289 39290 39291 39292 39293 39294 39295 39296 |
# File 'lib/ovirtsdk4/types.rb', line 39286 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.
39085 39086 39087 |
# File 'lib/ovirtsdk4/types.rb', line 39085 def hot_count @hot_count end |
#hot_count=(value) ⇒ Object
Sets the value of the hot_count
attribute.
39094 39095 39096 |
# File 'lib/ovirtsdk4/types.rb', line 39094 def hot_count=(value) @hot_count = value end |
#id ⇒ String
Returns the value of the id
attribute.
39103 39104 39105 |
# File 'lib/ovirtsdk4/types.rb', line 39103 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39112 39113 39114 |
# File 'lib/ovirtsdk4/types.rb', line 39112 def id=(value) @id = value end |
#max_alloc ⇒ Integer
Returns the value of the max_alloc
attribute.
39121 39122 39123 |
# File 'lib/ovirtsdk4/types.rb', line 39121 def max_alloc @max_alloc end |
#max_alloc=(value) ⇒ Object
Sets the value of the max_alloc
attribute.
39130 39131 39132 |
# File 'lib/ovirtsdk4/types.rb', line 39130 def max_alloc=(value) @max_alloc = value end |
#max_stdalloc ⇒ Integer
Returns the value of the max_stdalloc
attribute.
39139 39140 39141 |
# File 'lib/ovirtsdk4/types.rb', line 39139 def max_stdalloc @max_stdalloc end |
#max_stdalloc=(value) ⇒ Object
Sets the value of the max_stdalloc
attribute.
39148 39149 39150 |
# File 'lib/ovirtsdk4/types.rb', line 39148 def max_stdalloc=(value) @max_stdalloc = value end |
#name ⇒ String
Returns the value of the name
attribute.
39157 39158 39159 |
# File 'lib/ovirtsdk4/types.rb', line 39157 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39166 39167 39168 |
# File 'lib/ovirtsdk4/types.rb', line 39166 def name=(value) @name = value end |
#padded_size ⇒ Integer
Returns the value of the padded_size
attribute.
39175 39176 39177 |
# File 'lib/ovirtsdk4/types.rb', line 39175 def padded_size @padded_size end |
#padded_size=(value) ⇒ Object
Sets the value of the padded_size
attribute.
39184 39185 39186 |
# File 'lib/ovirtsdk4/types.rb', line 39184 def padded_size=(value) @padded_size = value end |
#pool_misses ⇒ Integer
Returns the value of the pool_misses
attribute.
39193 39194 39195 |
# File 'lib/ovirtsdk4/types.rb', line 39193 def pool_misses @pool_misses end |
#pool_misses=(value) ⇒ Object
Sets the value of the pool_misses
attribute.
39202 39203 39204 |
# File 'lib/ovirtsdk4/types.rb', line 39202 def pool_misses=(value) @pool_misses = value end |
#type ⇒ String
Returns the value of the type
attribute.
39211 39212 39213 |
# File 'lib/ovirtsdk4/types.rb', line 39211 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
39220 39221 39222 |
# File 'lib/ovirtsdk4/types.rb', line 39220 def type=(value) @type = value end |