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.
15918 15919 15920 15921 15922 15923 15924 15925 15926 |
# File 'lib/ovirtsdk4/types.rb', line 15918 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.
15931 15932 15933 15934 15935 15936 15937 15938 15939 |
# File 'lib/ovirtsdk4/types.rb', line 15931 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.
15701 15702 15703 |
# File 'lib/ovirtsdk4/types.rb', line 15701 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.
15714 15715 15716 15717 15718 15719 |
# File 'lib/ovirtsdk4/types.rb', line 15714 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.
15726 15727 15728 |
# File 'lib/ovirtsdk4/types.rb', line 15726 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
15735 15736 15737 |
# File 'lib/ovirtsdk4/types.rb', line 15735 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
15744 15745 15746 |
# File 'lib/ovirtsdk4/types.rb', line 15744 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
15753 15754 15755 |
# File 'lib/ovirtsdk4/types.rb', line 15753 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
15944 15945 15946 15947 15948 15949 15950 15951 15952 |
# File 'lib/ovirtsdk4/types.rb', line 15944 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.
15762 15763 15764 |
# File 'lib/ovirtsdk4/types.rb', line 15762 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
15771 15772 15773 |
# File 'lib/ovirtsdk4/types.rb', line 15771 def id=(value) @id = value end |
#memory_limit ⇒ Float
Returns the value of the memory_limit
attribute.
15780 15781 15782 |
# File 'lib/ovirtsdk4/types.rb', line 15780 def memory_limit @memory_limit end |
#memory_limit=(value) ⇒ Object
Sets the value of the memory_limit
attribute.
15789 15790 15791 |
# File 'lib/ovirtsdk4/types.rb', line 15789 def memory_limit=(value) @memory_limit = value end |
#memory_usage ⇒ Float
Returns the value of the memory_usage
attribute.
15798 15799 15800 |
# File 'lib/ovirtsdk4/types.rb', line 15798 def memory_usage @memory_usage end |
#memory_usage=(value) ⇒ Object
Sets the value of the memory_usage
attribute.
15807 15808 15809 |
# File 'lib/ovirtsdk4/types.rb', line 15807 def memory_usage=(value) @memory_usage = value end |
#name ⇒ String
Returns the value of the name
attribute.
15816 15817 15818 |
# File 'lib/ovirtsdk4/types.rb', line 15816 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
15825 15826 15827 |
# File 'lib/ovirtsdk4/types.rb', line 15825 def name=(value) @name = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
15834 15835 15836 |
# File 'lib/ovirtsdk4/types.rb', line 15834 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.
15847 15848 15849 15850 15851 15852 |
# File 'lib/ovirtsdk4/types.rb', line 15847 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.
15859 15860 15861 |
# File 'lib/ovirtsdk4/types.rb', line 15859 def vcpu_limit @vcpu_limit end |
#vcpu_limit=(value) ⇒ Object
Sets the value of the vcpu_limit
attribute.
15868 15869 15870 |
# File 'lib/ovirtsdk4/types.rb', line 15868 def vcpu_limit=(value) @vcpu_limit = value end |
#vcpu_usage ⇒ Integer
Returns the value of the vcpu_usage
attribute.
15877 15878 15879 |
# File 'lib/ovirtsdk4/types.rb', line 15877 def vcpu_usage @vcpu_usage end |
#vcpu_usage=(value) ⇒ Object
Sets the value of the vcpu_usage
attribute.
15886 15887 15888 |
# File 'lib/ovirtsdk4/types.rb', line 15886 def vcpu_usage=(value) @vcpu_usage = value end |