Class: OvirtSDK4::QuotaStorageLimit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::QuotaStorageLimit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (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. -
- (QuotaStorageLimit) initialize(opts = {})
constructor
Creates a new instance of the QuotaStorageLimit class.
-
- (Integer) limit
Returns the value of the
limit
attribute. -
- (Object) limit=(value)
Sets the value of the
limit
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. -
- (StorageDomain) storage_domain
Returns the value of the
storage_domain
attribute. -
- (Object) storage_domain=(value)
Sets the value of the
storage_domain
attribute. -
- (Fixnum) usage
Returns the value of the
usage
attribute. -
- (Object) usage=(value)
Sets the value of the
usage
attribute.
Methods included from Type
Constructor Details
- (QuotaStorageLimit) initialize(opts = {})
Creates a new instance of the OvirtSDK4::QuotaStorageLimit class.
12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 |
# File 'lib/ovirtsdk4/types.rb', line 12441 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.limit = opts[:limit] self.name = opts[:name] self.quota = opts[:quota] self.storage_domain = opts[:storage_domain] self.usage = opts[:usage] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
12264 12265 12266 |
# File 'lib/ovirtsdk4/types.rb', line 12264 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
12273 12274 12275 |
# File 'lib/ovirtsdk4/types.rb', line 12273 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
12282 12283 12284 |
# File 'lib/ovirtsdk4/types.rb', line 12282 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
12291 12292 12293 |
# File 'lib/ovirtsdk4/types.rb', line 12291 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
12300 12301 12302 |
# File 'lib/ovirtsdk4/types.rb', line 12300 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
12309 12310 12311 |
# File 'lib/ovirtsdk4/types.rb', line 12309 def id=(value) @id = value end |
- (Integer) limit
Returns the value of the limit
attribute.
12318 12319 12320 |
# File 'lib/ovirtsdk4/types.rb', line 12318 def limit return @limit end |
- (Object) limit=(value)
Sets the value of the limit
attribute.
12327 12328 12329 |
# File 'lib/ovirtsdk4/types.rb', line 12327 def limit=(value) @limit = value end |
- (String) name
Returns the value of the name
attribute.
12336 12337 12338 |
# File 'lib/ovirtsdk4/types.rb', line 12336 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
12345 12346 12347 |
# File 'lib/ovirtsdk4/types.rb', line 12345 def name=(value) @name = value end |
- (Quota) quota
Returns the value of the quota
attribute.
12354 12355 12356 |
# File 'lib/ovirtsdk4/types.rb', line 12354 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.
12367 12368 12369 12370 12371 12372 |
# File 'lib/ovirtsdk4/types.rb', line 12367 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
- (StorageDomain) storage_domain
Returns the value of the storage_domain
attribute.
12379 12380 12381 |
# File 'lib/ovirtsdk4/types.rb', line 12379 def storage_domain return @storage_domain end |
- (Object) storage_domain=(value)
Sets the value of the storage_domain
attribute.
The value
parameter can be an instance of StorageDomain 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.
12392 12393 12394 12395 12396 12397 |
# File 'lib/ovirtsdk4/types.rb', line 12392 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
- (Fixnum) usage
Returns the value of the usage
attribute.
12404 12405 12406 |
# File 'lib/ovirtsdk4/types.rb', line 12404 def usage return @usage end |
- (Object) usage=(value)
Sets the value of the usage
attribute.
12413 12414 12415 |
# File 'lib/ovirtsdk4/types.rb', line 12413 def usage=(value) @usage = value end |