Class: OvirtSDK4::QuotaClusterLimit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::QuotaClusterLimit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Cluster) cluster
Returns the value of the
cluster
attribute. -
- (Object) cluster=(value)
Sets the value of the
cluster
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (QuotaClusterLimit) initialize(opts = {})
constructor
Creates a new instance of the QuotaClusterLimit class.
-
- (Fixnum) memory_limit
Returns the value of the
memory_limit
attribute. -
- (Object) memory_limit=(value)
Sets the value of the
memory_limit
attribute. -
- (Fixnum) memory_usage
Returns the value of the
memory_usage
attribute. -
- (Object) memory_usage=(value)
Sets the value of the
memory_usage
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Quota) quota
Returns the value of the
quota
attribute. -
- (Object) quota=(value)
Sets the value of the
quota
attribute. -
- (Integer) vcpu_limit
Returns the value of the
vcpu_limit
attribute. -
- (Object) vcpu_limit=(value)
Sets the value of the
vcpu_limit
attribute. -
- (Integer) vcpu_usage
Returns the value of the
vcpu_usage
attribute. -
- (Object) vcpu_usage=(value)
Sets the value of the
vcpu_usage
attribute.
Methods included from Type
Constructor Details
- (QuotaClusterLimit) initialize(opts = {})
Creates a new instance of the OvirtSDK4::QuotaClusterLimit class.
12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 |
# File 'lib/ovirtsdk4/types.rb', line 12241 def initialize(opts = {}) super(opts) self.cluster = opts[:cluster] self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.memory_limit = opts[:memory_limit] self.memory_usage = opts[:memory_usage] self.name = opts[:name] self.quota = opts[:quota] self.vcpu_limit = opts[:vcpu_limit] self.vcpu_usage = opts[:vcpu_usage] end |
Instance Method Details
- (Cluster) cluster
Returns the value of the cluster
attribute.
12024 12025 12026 |
# File 'lib/ovirtsdk4/types.rb', line 12024 def cluster return @cluster end |
- (Object) cluster=(value)
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.
12037 12038 12039 12040 12041 12042 |
# File 'lib/ovirtsdk4/types.rb', line 12037 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
- (String) comment
Returns the value of the comment
attribute.
12049 12050 12051 |
# File 'lib/ovirtsdk4/types.rb', line 12049 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
12058 12059 12060 |
# File 'lib/ovirtsdk4/types.rb', line 12058 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
12067 12068 12069 |
# File 'lib/ovirtsdk4/types.rb', line 12067 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
12076 12077 12078 |
# File 'lib/ovirtsdk4/types.rb', line 12076 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
12085 12086 12087 |
# File 'lib/ovirtsdk4/types.rb', line 12085 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
12094 12095 12096 |
# File 'lib/ovirtsdk4/types.rb', line 12094 def id=(value) @id = value end |
- (Fixnum) memory_limit
Returns the value of the memory_limit
attribute.
12103 12104 12105 |
# File 'lib/ovirtsdk4/types.rb', line 12103 def memory_limit return @memory_limit end |
- (Object) memory_limit=(value)
Sets the value of the memory_limit
attribute.
12112 12113 12114 |
# File 'lib/ovirtsdk4/types.rb', line 12112 def memory_limit=(value) @memory_limit = value end |
- (Fixnum) memory_usage
Returns the value of the memory_usage
attribute.
12121 12122 12123 |
# File 'lib/ovirtsdk4/types.rb', line 12121 def memory_usage return @memory_usage end |
- (Object) memory_usage=(value)
Sets the value of the memory_usage
attribute.
12130 12131 12132 |
# File 'lib/ovirtsdk4/types.rb', line 12130 def memory_usage=(value) @memory_usage = value end |
- (String) name
Returns the value of the name
attribute.
12139 12140 12141 |
# File 'lib/ovirtsdk4/types.rb', line 12139 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
12148 12149 12150 |
# File 'lib/ovirtsdk4/types.rb', line 12148 def name=(value) @name = value end |
- (Quota) quota
Returns the value of the quota
attribute.
12157 12158 12159 |
# File 'lib/ovirtsdk4/types.rb', line 12157 def quota return @quota end |
- (Object) quota=(value)
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.
12170 12171 12172 12173 12174 12175 |
# File 'lib/ovirtsdk4/types.rb', line 12170 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
- (Integer) vcpu_limit
Returns the value of the vcpu_limit
attribute.
12182 12183 12184 |
# File 'lib/ovirtsdk4/types.rb', line 12182 def vcpu_limit return @vcpu_limit end |
- (Object) vcpu_limit=(value)
Sets the value of the vcpu_limit
attribute.
12191 12192 12193 |
# File 'lib/ovirtsdk4/types.rb', line 12191 def vcpu_limit=(value) @vcpu_limit = value end |
- (Integer) vcpu_usage
Returns the value of the vcpu_usage
attribute.
12200 12201 12202 |
# File 'lib/ovirtsdk4/types.rb', line 12200 def vcpu_usage return @vcpu_usage end |
- (Object) vcpu_usage=(value)
Sets the value of the vcpu_usage
attribute.
12209 12210 12211 |
# File 'lib/ovirtsdk4/types.rb', line 12209 def vcpu_usage=(value) @vcpu_usage = value end |