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.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

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.



39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
# File 'lib/ovirtsdk4/types.rb', line 39636

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.



39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
# File 'lib/ovirtsdk4/types.rb', line 39651

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.

Returns:

  • (Integer)


39393
39394
39395
# File 'lib/ovirtsdk4/types.rb', line 39393

def alloc_count
  @alloc_count
end

#alloc_count=(value) ⇒ Object

Sets the value of the alloc_count attribute.

Parameters:

  • value (Integer)


39402
39403
39404
# File 'lib/ovirtsdk4/types.rb', line 39402

def alloc_count=(value)
  @alloc_count = value
end

#cold_countInteger

Returns the value of the cold_count attribute.

Returns:

  • (Integer)


39411
39412
39413
# File 'lib/ovirtsdk4/types.rb', line 39411

def cold_count
  @cold_count
end

#cold_count=(value) ⇒ Object

Sets the value of the cold_count attribute.

Parameters:

  • value (Integer)


39420
39421
39422
# File 'lib/ovirtsdk4/types.rb', line 39420

def cold_count=(value)
  @cold_count = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


39429
39430
39431
# File 'lib/ovirtsdk4/types.rb', line 39429

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


39438
39439
39440
# File 'lib/ovirtsdk4/types.rb', line 39438

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


39447
39448
39449
# File 'lib/ovirtsdk4/types.rb', line 39447

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


39456
39457
39458
# File 'lib/ovirtsdk4/types.rb', line 39456

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.



39666
39667
39668
39669
39670
39671
39672
39673
39674
39675
39676
# File 'lib/ovirtsdk4/types.rb', line 39666

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.

Returns:

  • (Integer)


39465
39466
39467
# File 'lib/ovirtsdk4/types.rb', line 39465

def hot_count
  @hot_count
end

#hot_count=(value) ⇒ Object

Sets the value of the hot_count attribute.

Parameters:

  • value (Integer)


39474
39475
39476
# File 'lib/ovirtsdk4/types.rb', line 39474

def hot_count=(value)
  @hot_count = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


39483
39484
39485
# File 'lib/ovirtsdk4/types.rb', line 39483

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


39492
39493
39494
# File 'lib/ovirtsdk4/types.rb', line 39492

def id=(value)
  @id = value
end

#max_allocInteger

Returns the value of the max_alloc attribute.

Returns:

  • (Integer)


39501
39502
39503
# File 'lib/ovirtsdk4/types.rb', line 39501

def max_alloc
  @max_alloc
end

#max_alloc=(value) ⇒ Object

Sets the value of the max_alloc attribute.

Parameters:

  • value (Integer)


39510
39511
39512
# File 'lib/ovirtsdk4/types.rb', line 39510

def max_alloc=(value)
  @max_alloc = value
end

#max_stdallocInteger

Returns the value of the max_stdalloc attribute.

Returns:

  • (Integer)


39519
39520
39521
# File 'lib/ovirtsdk4/types.rb', line 39519

def max_stdalloc
  @max_stdalloc
end

#max_stdalloc=(value) ⇒ Object

Sets the value of the max_stdalloc attribute.

Parameters:

  • value (Integer)


39528
39529
39530
# File 'lib/ovirtsdk4/types.rb', line 39528

def max_stdalloc=(value)
  @max_stdalloc = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


39537
39538
39539
# File 'lib/ovirtsdk4/types.rb', line 39537

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


39546
39547
39548
# File 'lib/ovirtsdk4/types.rb', line 39546

def name=(value)
  @name = value
end

#padded_sizeInteger

Returns the value of the padded_size attribute.

Returns:

  • (Integer)


39555
39556
39557
# File 'lib/ovirtsdk4/types.rb', line 39555

def padded_size
  @padded_size
end

#padded_size=(value) ⇒ Object

Sets the value of the padded_size attribute.

Parameters:

  • value (Integer)


39564
39565
39566
# File 'lib/ovirtsdk4/types.rb', line 39564

def padded_size=(value)
  @padded_size = value
end

#pool_missesInteger

Returns the value of the pool_misses attribute.

Returns:

  • (Integer)


39573
39574
39575
# File 'lib/ovirtsdk4/types.rb', line 39573

def pool_misses
  @pool_misses
end

#pool_misses=(value) ⇒ Object

Sets the value of the pool_misses attribute.

Parameters:

  • value (Integer)


39582
39583
39584
# File 'lib/ovirtsdk4/types.rb', line 39582

def pool_misses=(value)
  @pool_misses = value
end

#typeString

Returns the value of the type attribute.

Returns:

  • (String)


39591
39592
39593
# File 'lib/ovirtsdk4/types.rb', line 39591

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:

  • value (String)


39600
39601
39602
# File 'lib/ovirtsdk4/types.rb', line 39600

def type=(value)
  @type = value
end