Class: OvirtSDK4::SchedulingPolicyUnit
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::SchedulingPolicyUnit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#enabled ⇒ Boolean
Returns the value of the
enabled
attribute. -
#enabled=(value) ⇒ Object
Sets the value of the
enabled
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ SchedulingPolicyUnit
constructor
Creates a new instance of the SchedulingPolicyUnit class.
-
#internal ⇒ Boolean
Returns the value of the
internal
attribute. -
#internal=(value) ⇒ Object
Sets the value of the
internal
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#properties ⇒ Array<Property>
Returns the value of the
properties
attribute. -
#properties=(list) ⇒ Object
Sets the value of the
properties
attribute. -
#type ⇒ PolicyUnitType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SchedulingPolicyUnit
Creates a new instance of the OvirtSDK4::SchedulingPolicyUnit class.
18664 18665 18666 18667 18668 18669 18670 |
# File 'lib/ovirtsdk4/types.rb', line 18664 def initialize(opts = {}) super(opts) self.enabled = opts[:enabled] self.internal = opts[:internal] self.properties = opts[:properties] self.type = opts[:type] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
18675 18676 18677 18678 18679 18680 18681 |
# File 'lib/ovirtsdk4/types.rb', line 18675 def ==(other) super && @enabled == other.enabled && @internal == other.internal && @properties == other.properties && @type == other.type end |
#comment ⇒ String
Returns the value of the comment
attribute.
18493 18494 18495 |
# File 'lib/ovirtsdk4/types.rb', line 18493 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
18502 18503 18504 |
# File 'lib/ovirtsdk4/types.rb', line 18502 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
18511 18512 18513 |
# File 'lib/ovirtsdk4/types.rb', line 18511 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
18520 18521 18522 |
# File 'lib/ovirtsdk4/types.rb', line 18520 def description=(value) @description = value end |
#enabled ⇒ Boolean
Returns the value of the enabled
attribute.
18529 18530 18531 |
# File 'lib/ovirtsdk4/types.rb', line 18529 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled
attribute.
18538 18539 18540 |
# File 'lib/ovirtsdk4/types.rb', line 18538 def enabled=(value) @enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
18686 18687 18688 18689 18690 18691 18692 |
# File 'lib/ovirtsdk4/types.rb', line 18686 def hash super + @enabled.hash + @internal.hash + @properties.hash + @type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
18547 18548 18549 |
# File 'lib/ovirtsdk4/types.rb', line 18547 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
18556 18557 18558 |
# File 'lib/ovirtsdk4/types.rb', line 18556 def id=(value) @id = value end |
#internal ⇒ Boolean
Returns the value of the internal
attribute.
18565 18566 18567 |
# File 'lib/ovirtsdk4/types.rb', line 18565 def internal @internal end |
#internal=(value) ⇒ Object
Sets the value of the internal
attribute.
18574 18575 18576 |
# File 'lib/ovirtsdk4/types.rb', line 18574 def internal=(value) @internal = value end |
#name ⇒ String
Returns the value of the name
attribute.
18583 18584 18585 |
# File 'lib/ovirtsdk4/types.rb', line 18583 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
18592 18593 18594 |
# File 'lib/ovirtsdk4/types.rb', line 18592 def name=(value) @name = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
18601 18602 18603 |
# File 'lib/ovirtsdk4/types.rb', line 18601 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 |
# File 'lib/ovirtsdk4/types.rb', line 18610 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 |
#type ⇒ PolicyUnitType
Returns the value of the type
attribute.
18627 18628 18629 |
# File 'lib/ovirtsdk4/types.rb', line 18627 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
18636 18637 18638 |
# File 'lib/ovirtsdk4/types.rb', line 18636 def type=(value) @type = value end |