Class: OvirtSDK4::Balance

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

- (Balance) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Balance 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.

  • :name (String)

    The value of attribute name.

  • :scheduling_policy (SchedulingPolicy, Hash)

    The value of attribute scheduling_policy.

  • :scheduling_policy_unit (SchedulingPolicyUnit, Hash)

    The value of attribute scheduling_policy_unit.



23489
23490
23491
23492
23493
23494
23495
23496
23497
# File 'lib/ovirtsdk4/types.rb', line 23489

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.id = opts[:id]
  self.name = opts[:name]
  self.scheduling_policy = opts[:scheduling_policy]
  self.scheduling_policy_unit = opts[:scheduling_policy_unit]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


23352
23353
23354
# File 'lib/ovirtsdk4/types.rb', line 23352

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


23361
23362
23363
# File 'lib/ovirtsdk4/types.rb', line 23361

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


23370
23371
23372
# File 'lib/ovirtsdk4/types.rb', line 23370

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


23379
23380
23381
# File 'lib/ovirtsdk4/types.rb', line 23379

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


23388
23389
23390
# File 'lib/ovirtsdk4/types.rb', line 23388

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


23397
23398
23399
# File 'lib/ovirtsdk4/types.rb', line 23397

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


23406
23407
23408
# File 'lib/ovirtsdk4/types.rb', line 23406

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


23415
23416
23417
# File 'lib/ovirtsdk4/types.rb', line 23415

def name=(value)
  @name = value
end

- (SchedulingPolicy) scheduling_policy

Returns the value of the scheduling_policy attribute.

Returns:



23424
23425
23426
# File 'lib/ovirtsdk4/types.rb', line 23424

def scheduling_policy
  return @scheduling_policy
end

- (Object) scheduling_policy=(value)

Sets the value of the scheduling_policy attribute.

The value parameter can be an instance of SchedulingPolicy 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:



23437
23438
23439
23440
23441
23442
# File 'lib/ovirtsdk4/types.rb', line 23437

def scheduling_policy=(value)
  if value.is_a?(Hash)
    value = SchedulingPolicy.new(value)
  end
  @scheduling_policy = value
end

- (SchedulingPolicyUnit) scheduling_policy_unit

Returns the value of the scheduling_policy_unit attribute.



23449
23450
23451
# File 'lib/ovirtsdk4/types.rb', line 23449

def scheduling_policy_unit
  return @scheduling_policy_unit
end

- (Object) scheduling_policy_unit=(value)

Sets the value of the scheduling_policy_unit attribute.

The value parameter can be an instance of SchedulingPolicyUnit 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:



23462
23463
23464
23465
23466
23467
# File 'lib/ovirtsdk4/types.rb', line 23462

def scheduling_policy_unit=(value)
  if value.is_a?(Hash)
    value = SchedulingPolicyUnit.new(value)
  end
  @scheduling_policy_unit = value
end