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.
15869 15870 15871 15872 15873 15874 15875 15876 15877 |
# File 'lib/ovirtsdk4/types.rb', line 15869 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.
15882 15883 15884 15885 15886 15887 15888 15889 15890 |
# File 'lib/ovirtsdk4/types.rb', line 15882 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.
15652 15653 15654 |
# File 'lib/ovirtsdk4/types.rb', line 15652 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.
15665 15666 15667 15668 15669 15670 |
# File 'lib/ovirtsdk4/types.rb', line 15665 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.
15677 15678 15679 |
# File 'lib/ovirtsdk4/types.rb', line 15677 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
15686 15687 15688 |
# File 'lib/ovirtsdk4/types.rb', line 15686 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
15695 15696 15697 |
# File 'lib/ovirtsdk4/types.rb', line 15695 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
15704 15705 15706 |
# File 'lib/ovirtsdk4/types.rb', line 15704 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
15895 15896 15897 15898 15899 15900 15901 15902 15903 |
# File 'lib/ovirtsdk4/types.rb', line 15895 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.
15713 15714 15715 |
# File 'lib/ovirtsdk4/types.rb', line 15713 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
15722 15723 15724 |
# File 'lib/ovirtsdk4/types.rb', line 15722 def id=(value) @id = value end |
#memory_limit ⇒ Float
Returns the value of the memory_limit
attribute.
15731 15732 15733 |
# File 'lib/ovirtsdk4/types.rb', line 15731 def memory_limit @memory_limit end |
#memory_limit=(value) ⇒ Object
Sets the value of the memory_limit
attribute.
15740 15741 15742 |
# File 'lib/ovirtsdk4/types.rb', line 15740 def memory_limit=(value) @memory_limit = value end |
#memory_usage ⇒ Float
Returns the value of the memory_usage
attribute.
15749 15750 15751 |
# File 'lib/ovirtsdk4/types.rb', line 15749 def memory_usage @memory_usage end |
#memory_usage=(value) ⇒ Object
Sets the value of the memory_usage
attribute.
15758 15759 15760 |
# File 'lib/ovirtsdk4/types.rb', line 15758 def memory_usage=(value) @memory_usage = value end |
#name ⇒ String
Returns the value of the name
attribute.
15767 15768 15769 |
# File 'lib/ovirtsdk4/types.rb', line 15767 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
15776 15777 15778 |
# File 'lib/ovirtsdk4/types.rb', line 15776 def name=(value) @name = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
15785 15786 15787 |
# File 'lib/ovirtsdk4/types.rb', line 15785 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.
15798 15799 15800 15801 15802 15803 |
# File 'lib/ovirtsdk4/types.rb', line 15798 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.
15810 15811 15812 |
# File 'lib/ovirtsdk4/types.rb', line 15810 def vcpu_limit @vcpu_limit end |
#vcpu_limit=(value) ⇒ Object
Sets the value of the vcpu_limit
attribute.
15819 15820 15821 |
# File 'lib/ovirtsdk4/types.rb', line 15819 def vcpu_limit=(value) @vcpu_limit = value end |
#vcpu_usage ⇒ Integer
Returns the value of the vcpu_usage
attribute.
15828 15829 15830 |
# File 'lib/ovirtsdk4/types.rb', line 15828 def vcpu_usage @vcpu_usage end |
#vcpu_usage=(value) ⇒ Object
Sets the value of the vcpu_usage
attribute.
15837 15838 15839 |
# File 'lib/ovirtsdk4/types.rb', line 15837 def vcpu_usage=(value) @vcpu_usage = value end |