Class: OvirtSDK4::QuotaStorageLimit

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (QuotaStorageLimit) initialize(opts = {})

Creates a new instance of the OvirtSDK4::QuotaStorageLimit class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :limit (Integer)

    The value of attribute limit.

  • :name (String)

    The value of attribute name.

  • :quota (Quota, Hash)

    The value of attribute quota.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :usage (Fixnum)

    The value of attribute usage.



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:

  • (Fixnum)


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.

Parameters:

  • value (Fixnum)


12413
12414
12415
# File 'lib/ovirtsdk4/types.rb', line 12413

def usage=(value)
  @usage = value
end