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.
18259 18260 18261 18262 18263 18264 18265 |
# File 'lib/ovirtsdk4/types.rb', line 18259 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.
18270 18271 18272 18273 18274 18275 18276 |
# File 'lib/ovirtsdk4/types.rb', line 18270 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.
18088 18089 18090 |
# File 'lib/ovirtsdk4/types.rb', line 18088 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
18097 18098 18099 |
# File 'lib/ovirtsdk4/types.rb', line 18097 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
18106 18107 18108 |
# File 'lib/ovirtsdk4/types.rb', line 18106 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
18115 18116 18117 |
# File 'lib/ovirtsdk4/types.rb', line 18115 def description=(value) @description = value end |
#enabled ⇒ Boolean
Returns the value of the enabled
attribute.
18124 18125 18126 |
# File 'lib/ovirtsdk4/types.rb', line 18124 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled
attribute.
18133 18134 18135 |
# File 'lib/ovirtsdk4/types.rb', line 18133 def enabled=(value) @enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
18281 18282 18283 18284 18285 18286 18287 |
# File 'lib/ovirtsdk4/types.rb', line 18281 def hash super + @enabled.hash + @internal.hash + @properties.hash + @type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
18142 18143 18144 |
# File 'lib/ovirtsdk4/types.rb', line 18142 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
18151 18152 18153 |
# File 'lib/ovirtsdk4/types.rb', line 18151 def id=(value) @id = value end |
#internal ⇒ Boolean
Returns the value of the internal
attribute.
18160 18161 18162 |
# File 'lib/ovirtsdk4/types.rb', line 18160 def internal @internal end |
#internal=(value) ⇒ Object
Sets the value of the internal
attribute.
18169 18170 18171 |
# File 'lib/ovirtsdk4/types.rb', line 18169 def internal=(value) @internal = value end |
#name ⇒ String
Returns the value of the name
attribute.
18178 18179 18180 |
# File 'lib/ovirtsdk4/types.rb', line 18178 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
18187 18188 18189 |
# File 'lib/ovirtsdk4/types.rb', line 18187 def name=(value) @name = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
18196 18197 18198 |
# File 'lib/ovirtsdk4/types.rb', line 18196 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 |
# File 'lib/ovirtsdk4/types.rb', line 18205 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.
18222 18223 18224 |
# File 'lib/ovirtsdk4/types.rb', line 18222 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
18231 18232 18233 |
# File 'lib/ovirtsdk4/types.rb', line 18231 def type=(value) @type = value end |