Class: OvirtSDK4::GlusterMemoryPool

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ GlusterMemoryPool

Creates a new instance of the OvirtSDK4::GlusterMemoryPool class.

Options Hash (opts):

  • :alloc_count (Integer)

    The value of attribute alloc_count.

  • :cold_count (Integer)

    The value of attribute cold_count.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :hot_count (Integer)

    The value of attribute hot_count.

  • :id (String)

    The value of attribute id.

  • :max_alloc (Integer)

    The value of attribute max_alloc.

  • :max_stdalloc (Integer)

    The value of attribute max_stdalloc.

  • :name (String)

    The value of attribute name.

  • :padded_size (Integer)

    The value of attribute padded_size.

  • :pool_misses (Integer)

    The value of attribute pool_misses.

  • :type (String)

    The value of attribute type.



39514
39515
39516
39517
39518
39519
39520
39521
39522
39523
39524
# File 'lib/ovirtsdk4/types.rb', line 39514

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.



39529
39530
39531
39532
39533
39534
39535
39536
39537
39538
39539
# File 'lib/ovirtsdk4/types.rb', line 39529

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_countInteger

Returns the value of the alloc_count attribute.



39271
39272
39273
# File 'lib/ovirtsdk4/types.rb', line 39271

def alloc_count
  @alloc_count
end

#alloc_count=(value) ⇒ Object

Sets the value of the alloc_count attribute.



39280
39281
39282
# File 'lib/ovirtsdk4/types.rb', line 39280

def alloc_count=(value)
  @alloc_count = value
end

#cold_countInteger

Returns the value of the cold_count attribute.



39289
39290
39291
# File 'lib/ovirtsdk4/types.rb', line 39289

def cold_count
  @cold_count
end

#cold_count=(value) ⇒ Object

Sets the value of the cold_count attribute.



39298
39299
39300
# File 'lib/ovirtsdk4/types.rb', line 39298

def cold_count=(value)
  @cold_count = value
end

#commentString

Returns the value of the comment attribute.



39307
39308
39309
# File 'lib/ovirtsdk4/types.rb', line 39307

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.



39316
39317
39318
# File 'lib/ovirtsdk4/types.rb', line 39316

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.



39325
39326
39327
# File 'lib/ovirtsdk4/types.rb', line 39325

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.



39334
39335
39336
# File 'lib/ovirtsdk4/types.rb', line 39334

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.



39544
39545
39546
39547
39548
39549
39550
39551
39552
39553
39554
# File 'lib/ovirtsdk4/types.rb', line 39544

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_countInteger

Returns the value of the hot_count attribute.



39343
39344
39345
# File 'lib/ovirtsdk4/types.rb', line 39343

def hot_count
  @hot_count
end

#hot_count=(value) ⇒ Object

Sets the value of the hot_count attribute.



39352
39353
39354
# File 'lib/ovirtsdk4/types.rb', line 39352

def hot_count=(value)
  @hot_count = value
end

#idString

Returns the value of the id attribute.



39361
39362
39363
# File 'lib/ovirtsdk4/types.rb', line 39361

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.



39370
39371
39372
# File 'lib/ovirtsdk4/types.rb', line 39370

def id=(value)
  @id = value
end

#max_allocInteger

Returns the value of the max_alloc attribute.



39379
39380
39381
# File 'lib/ovirtsdk4/types.rb', line 39379

def max_alloc
  @max_alloc
end

#max_alloc=(value) ⇒ Object

Sets the value of the max_alloc attribute.



39388
39389
39390
# File 'lib/ovirtsdk4/types.rb', line 39388

def max_alloc=(value)
  @max_alloc = value
end

#max_stdallocInteger

Returns the value of the max_stdalloc attribute.



39397
39398
39399
# File 'lib/ovirtsdk4/types.rb', line 39397

def max_stdalloc
  @max_stdalloc
end

#max_stdalloc=(value) ⇒ Object

Sets the value of the max_stdalloc attribute.



39406
39407
39408
# File 'lib/ovirtsdk4/types.rb', line 39406

def max_stdalloc=(value)
  @max_stdalloc = value
end

#nameString

Returns the value of the name attribute.



39415
39416
39417
# File 'lib/ovirtsdk4/types.rb', line 39415

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.



39424
39425
39426
# File 'lib/ovirtsdk4/types.rb', line 39424

def name=(value)
  @name = value
end

#padded_sizeInteger

Returns the value of the padded_size attribute.



39433
39434
39435
# File 'lib/ovirtsdk4/types.rb', line 39433

def padded_size
  @padded_size
end

#padded_size=(value) ⇒ Object

Sets the value of the padded_size attribute.



39442
39443
39444
# File 'lib/ovirtsdk4/types.rb', line 39442

def padded_size=(value)
  @padded_size = value
end

#pool_missesInteger

Returns the value of the pool_misses attribute.



39451
39452
39453
# File 'lib/ovirtsdk4/types.rb', line 39451

def pool_misses
  @pool_misses
end

#pool_misses=(value) ⇒ Object

Sets the value of the pool_misses attribute.



39460
39461
39462
# File 'lib/ovirtsdk4/types.rb', line 39460

def pool_misses=(value)
  @pool_misses = value
end

#typeString

Returns the value of the type attribute.



39469
39470
39471
# File 'lib/ovirtsdk4/types.rb', line 39469

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.



39478
39479
39480
# File 'lib/ovirtsdk4/types.rb', line 39478

def type=(value)
  @type = value
end