Class: OvirtSDK4::SchedulingPolicyUnit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::SchedulingPolicyUnit
- 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. -
- (Boolean) enabled
Returns the value of the
enabled
attribute. -
- (Object) enabled=(value)
Sets the value of the
enabled
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (SchedulingPolicyUnit) initialize(opts = {})
constructor
Creates a new instance of the SchedulingPolicyUnit class.
-
- (Boolean) internal
Returns the value of the
internal
attribute. -
- (Object) internal=(value)
Sets the value of the
internal
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Array<Property>) properties
Returns the value of the
properties
attribute. -
- (Object) properties=(list)
Sets the value of the
properties
attribute. -
- (PolicyUnitType) type
Returns the value of the
type
attribute. -
- (Object) type=(value)
Sets the value of the
type
attribute.
Methods included from Type
Constructor Details
- (SchedulingPolicyUnit) initialize(opts = {})
Creates a new instance of the OvirtSDK4::SchedulingPolicyUnit class.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
13542 13543 13544 |
# File 'lib/ovirtsdk4/types.rb', line 13542 def type=(value) @type = value end |