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
trueifselfandotherhave the same attributes and values. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ QuotaClusterLimit
constructor
Creates a new instance of the QuotaClusterLimit class.
-
#memory_limit ⇒ Float
Returns the value of the
memory_limitattribute. -
#memory_limit=(value) ⇒ Object
Sets the value of the
memory_limitattribute. -
#memory_usage ⇒ Float
Returns the value of the
memory_usageattribute. -
#memory_usage=(value) ⇒ Object
Sets the value of the
memory_usageattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#vcpu_limit ⇒ Integer
Returns the value of the
vcpu_limitattribute. -
#vcpu_limit=(value) ⇒ Object
Sets the value of the
vcpu_limitattribute. -
#vcpu_usage ⇒ Integer
Returns the value of the
vcpu_usageattribute. -
#vcpu_usage=(value) ⇒ Object
Sets the value of the
vcpu_usageattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ QuotaClusterLimit
Creates a new instance of the OvirtSDK4::QuotaClusterLimit class.
17020 17021 17022 17023 17024 17025 17026 17027 17028 |
# File 'lib/ovirtsdk4/types.rb', line 17020 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.
17033 17034 17035 17036 17037 17038 17039 17040 17041 |
# File 'lib/ovirtsdk4/types.rb', line 17033 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.
16803 16804 16805 |
# File 'lib/ovirtsdk4/types.rb', line 16803 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.
16816 16817 16818 16819 16820 16821 |
# File 'lib/ovirtsdk4/types.rb', line 16816 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.
16828 16829 16830 |
# File 'lib/ovirtsdk4/types.rb', line 16828 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
16837 16838 16839 |
# File 'lib/ovirtsdk4/types.rb', line 16837 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
16846 16847 16848 |
# File 'lib/ovirtsdk4/types.rb', line 16846 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
16855 16856 16857 |
# File 'lib/ovirtsdk4/types.rb', line 16855 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
17046 17047 17048 17049 17050 17051 17052 17053 17054 |
# File 'lib/ovirtsdk4/types.rb', line 17046 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.
16864 16865 16866 |
# File 'lib/ovirtsdk4/types.rb', line 16864 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
16873 16874 16875 |
# File 'lib/ovirtsdk4/types.rb', line 16873 def id=(value) @id = value end |
#memory_limit ⇒ Float
Returns the value of the memory_limit attribute.
16882 16883 16884 |
# File 'lib/ovirtsdk4/types.rb', line 16882 def memory_limit @memory_limit end |
#memory_limit=(value) ⇒ Object
Sets the value of the memory_limit attribute.
16891 16892 16893 |
# File 'lib/ovirtsdk4/types.rb', line 16891 def memory_limit=(value) @memory_limit = value end |
#memory_usage ⇒ Float
Returns the value of the memory_usage attribute.
16900 16901 16902 |
# File 'lib/ovirtsdk4/types.rb', line 16900 def memory_usage @memory_usage end |
#memory_usage=(value) ⇒ Object
Sets the value of the memory_usage attribute.
16909 16910 16911 |
# File 'lib/ovirtsdk4/types.rb', line 16909 def memory_usage=(value) @memory_usage = value end |
#name ⇒ String
Returns the value of the name attribute.
16918 16919 16920 |
# File 'lib/ovirtsdk4/types.rb', line 16918 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
16927 16928 16929 |
# File 'lib/ovirtsdk4/types.rb', line 16927 def name=(value) @name = value end |
#quota ⇒ Quota
Returns the value of the quota attribute.
16936 16937 16938 |
# File 'lib/ovirtsdk4/types.rb', line 16936 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.
16949 16950 16951 16952 16953 16954 |
# File 'lib/ovirtsdk4/types.rb', line 16949 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.
16961 16962 16963 |
# File 'lib/ovirtsdk4/types.rb', line 16961 def vcpu_limit @vcpu_limit end |
#vcpu_limit=(value) ⇒ Object
Sets the value of the vcpu_limit attribute.
16970 16971 16972 |
# File 'lib/ovirtsdk4/types.rb', line 16970 def vcpu_limit=(value) @vcpu_limit = value end |
#vcpu_usage ⇒ Integer
Returns the value of the vcpu_usage attribute.
16979 16980 16981 |
# File 'lib/ovirtsdk4/types.rb', line 16979 def vcpu_usage @vcpu_usage end |
#vcpu_usage=(value) ⇒ Object
Sets the value of the vcpu_usage attribute.
16988 16989 16990 |
# File 'lib/ovirtsdk4/types.rb', line 16988 def vcpu_usage=(value) @vcpu_usage = value end |