Class: OvirtSDK4::QuotaClusterLimit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::QuotaClusterLimit
- 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. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
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.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ QuotaClusterLimit
constructor
Creates a new instance of the QuotaClusterLimit class.
-
#memory_limit ⇒ Float
Returns the value of the
memory_limit
attribute. -
#memory_limit=(value) ⇒ Object
Sets the value of the
memory_limit
attribute. -
#memory_usage ⇒ Float
Returns the value of the
memory_usage
attribute. -
#memory_usage=(value) ⇒ Object
Sets the value of the
memory_usage
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#vcpu_limit ⇒ Integer
Returns the value of the
vcpu_limit
attribute. -
#vcpu_limit=(value) ⇒ Object
Sets the value of the
vcpu_limit
attribute. -
#vcpu_usage ⇒ Integer
Returns the value of the
vcpu_usage
attribute. -
#vcpu_usage=(value) ⇒ Object
Sets the value of the
vcpu_usage
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ QuotaClusterLimit
Creates a new instance of the OvirtSDK4::QuotaClusterLimit class.
16750 16751 16752 16753 16754 16755 16756 16757 16758 |
# File 'lib/ovirtsdk4/types.rb', line 16750 def initialize(opts = {}) super(opts) self.cluster = opts[:cluster] self.memory_limit = opts[:memory_limit] self.memory_usage = opts[:memory_usage] self.quota = opts[:quota] self.vcpu_limit = opts[:vcpu_limit] self.vcpu_usage = opts[:vcpu_usage] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
16763 16764 16765 16766 16767 16768 16769 16770 16771 |
# File 'lib/ovirtsdk4/types.rb', line 16763 def ==(other) super && @cluster == other.cluster && @memory_limit == other.memory_limit && @memory_usage == other.memory_usage && @quota == other.quota && @vcpu_limit == other.vcpu_limit && @vcpu_usage == other.vcpu_usage end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
16533 16534 16535 |
# File 'lib/ovirtsdk4/types.rb', line 16533 def cluster @cluster end |
#cluster=(value) ⇒ Object
Sets the value of the cluster
attribute.
The value
parameter can be an instance of Cluster or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
16546 16547 16548 16549 16550 16551 |
# File 'lib/ovirtsdk4/types.rb', line 16546 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
16558 16559 16560 |
# File 'lib/ovirtsdk4/types.rb', line 16558 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
16567 16568 16569 |
# File 'lib/ovirtsdk4/types.rb', line 16567 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
16576 16577 16578 |
# File 'lib/ovirtsdk4/types.rb', line 16576 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
16585 16586 16587 |
# File 'lib/ovirtsdk4/types.rb', line 16585 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
16776 16777 16778 16779 16780 16781 16782 16783 16784 |
# File 'lib/ovirtsdk4/types.rb', line 16776 def hash super + @cluster.hash + @memory_limit.hash + @memory_usage.hash + @quota.hash + @vcpu_limit.hash + @vcpu_usage.hash end |
#id ⇒ String
Returns the value of the id
attribute.
16594 16595 16596 |
# File 'lib/ovirtsdk4/types.rb', line 16594 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
16603 16604 16605 |
# File 'lib/ovirtsdk4/types.rb', line 16603 def id=(value) @id = value end |
#memory_limit ⇒ Float
Returns the value of the memory_limit
attribute.
16612 16613 16614 |
# File 'lib/ovirtsdk4/types.rb', line 16612 def memory_limit @memory_limit end |
#memory_limit=(value) ⇒ Object
Sets the value of the memory_limit
attribute.
16621 16622 16623 |
# File 'lib/ovirtsdk4/types.rb', line 16621 def memory_limit=(value) @memory_limit = value end |
#memory_usage ⇒ Float
Returns the value of the memory_usage
attribute.
16630 16631 16632 |
# File 'lib/ovirtsdk4/types.rb', line 16630 def memory_usage @memory_usage end |
#memory_usage=(value) ⇒ Object
Sets the value of the memory_usage
attribute.
16639 16640 16641 |
# File 'lib/ovirtsdk4/types.rb', line 16639 def memory_usage=(value) @memory_usage = value end |
#name ⇒ String
Returns the value of the name
attribute.
16648 16649 16650 |
# File 'lib/ovirtsdk4/types.rb', line 16648 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
16657 16658 16659 |
# File 'lib/ovirtsdk4/types.rb', line 16657 def name=(value) @name = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
16666 16667 16668 |
# File 'lib/ovirtsdk4/types.rb', line 16666 def quota @quota end |
#quota=(value) ⇒ Object
Sets the value of the quota
attribute.
The value
parameter can be an instance of OvirtSDK4::Quota or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
16679 16680 16681 16682 16683 16684 |
# File 'lib/ovirtsdk4/types.rb', line 16679 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#vcpu_limit ⇒ Integer
Returns the value of the vcpu_limit
attribute.
16691 16692 16693 |
# File 'lib/ovirtsdk4/types.rb', line 16691 def vcpu_limit @vcpu_limit end |
#vcpu_limit=(value) ⇒ Object
Sets the value of the vcpu_limit
attribute.
16700 16701 16702 |
# File 'lib/ovirtsdk4/types.rb', line 16700 def vcpu_limit=(value) @vcpu_limit = value end |
#vcpu_usage ⇒ Integer
Returns the value of the vcpu_usage
attribute.
16709 16710 16711 |
# File 'lib/ovirtsdk4/types.rb', line 16709 def vcpu_usage @vcpu_usage end |
#vcpu_usage=(value) ⇒ Object
Sets the value of the vcpu_usage
attribute.
16718 16719 16720 |
# File 'lib/ovirtsdk4/types.rb', line 16718 def vcpu_usage=(value) @vcpu_usage = value end |