Class: OvirtSDK4::SchedulingPolicyUnit

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

- (SchedulingPolicyUnit) initialize(opts = {})

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

  • :enabled (Boolean)

    The value of attribute enabled.

  • :id (String)

    The value of attribute id.

  • :internal (Boolean)

    The value of attribute internal.

  • :name (String)

    The value of attribute name.

  • :properties (Array<Property>, Array<Hash>)

    The values of attribute properties.

  • :type (PolicyUnitType)

    The value of attribute type.



13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
# File 'lib/ovirtsdk4/types.rb', line 13570

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.enabled = opts[:enabled]
  self.id = opts[:id]
  self.internal = opts[:internal]
  self.name = opts[:name]
  self.properties = opts[:properties]
  self.type = opts[:type]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


13400
13401
13402
# File 'lib/ovirtsdk4/types.rb', line 13400

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


13409
13410
13411
# File 'lib/ovirtsdk4/types.rb', line 13409

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


13418
13419
13420
# File 'lib/ovirtsdk4/types.rb', line 13418

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


13427
13428
13429
# File 'lib/ovirtsdk4/types.rb', line 13427

def description=(value)
  @description = value
end

- (Boolean) enabled

Returns the value of the enabled attribute.

Returns:

  • (Boolean)


13436
13437
13438
# File 'lib/ovirtsdk4/types.rb', line 13436

def enabled
  return @enabled
end

- (Object) enabled=(value)

Sets the value of the enabled attribute.

Parameters:

  • value (Boolean)


13445
13446
13447
# File 'lib/ovirtsdk4/types.rb', line 13445

def enabled=(value)
  @enabled = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


13454
13455
13456
# File 'lib/ovirtsdk4/types.rb', line 13454

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


13463
13464
13465
# File 'lib/ovirtsdk4/types.rb', line 13463

def id=(value)
  @id = value
end

- (Boolean) internal

Returns the value of the internal attribute.

Returns:

  • (Boolean)


13472
13473
13474
# File 'lib/ovirtsdk4/types.rb', line 13472

def internal
  return @internal
end

- (Object) internal=(value)

Sets the value of the internal attribute.

Parameters:

  • value (Boolean)


13481
13482
13483
# File 'lib/ovirtsdk4/types.rb', line 13481

def internal=(value)
  @internal = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


13490
13491
13492
# File 'lib/ovirtsdk4/types.rb', line 13490

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


13499
13500
13501
# File 'lib/ovirtsdk4/types.rb', line 13499

def name=(value)
  @name = value
end

- (Array<Property>) properties

Returns the value of the properties attribute.

Returns:



13508
13509
13510
# File 'lib/ovirtsdk4/types.rb', line 13508

def properties
  return @properties
end

- (Object) properties=(list)

Sets the value of the properties attribute.

Parameters:



13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
# File 'lib/ovirtsdk4/types.rb', line 13516

def properties=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Property.new(value)
      end
    end
  end
  @properties = list
end

- (PolicyUnitType) type

Returns the value of the type attribute.

Returns:



13533
13534
13535
# File 'lib/ovirtsdk4/types.rb', line 13533

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



13542
13543
13544
# File 'lib/ovirtsdk4/types.rb', line 13542

def type=(value)
  @type = value
end