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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#enabled ⇒ Boolean
Returns the value of the
enabledattribute. -
#enabled=(value) ⇒ Object
Sets the value of the
enabledattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ SchedulingPolicyUnit
constructor
Creates a new instance of the SchedulingPolicyUnit class.
-
#internal ⇒ Boolean
Returns the value of the
internalattribute. -
#internal=(value) ⇒ Object
Sets the value of the
internalattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#properties ⇒ Array<Property>
Returns the value of the
propertiesattribute. -
#properties=(list) ⇒ Object
Sets the value of the
propertiesattribute. -
#type ⇒ PolicyUnitType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SchedulingPolicyUnit
Creates a new instance of the OvirtSDK4::SchedulingPolicyUnit class.
19407 19408 19409 19410 19411 19412 19413 |
# File 'lib/ovirtsdk4/types.rb', line 19407 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.
19418 19419 19420 19421 19422 19423 19424 |
# File 'lib/ovirtsdk4/types.rb', line 19418 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.
19236 19237 19238 |
# File 'lib/ovirtsdk4/types.rb', line 19236 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
19245 19246 19247 |
# File 'lib/ovirtsdk4/types.rb', line 19245 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
19254 19255 19256 |
# File 'lib/ovirtsdk4/types.rb', line 19254 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
19263 19264 19265 |
# File 'lib/ovirtsdk4/types.rb', line 19263 def description=(value) @description = value end |
#enabled ⇒ Boolean
Returns the value of the enabled attribute.
19272 19273 19274 |
# File 'lib/ovirtsdk4/types.rb', line 19272 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled attribute.
19281 19282 19283 |
# File 'lib/ovirtsdk4/types.rb', line 19281 def enabled=(value) @enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
19429 19430 19431 19432 19433 19434 19435 |
# File 'lib/ovirtsdk4/types.rb', line 19429 def hash super + @enabled.hash + @internal.hash + @properties.hash + @type.hash end |
#id ⇒ String
Returns the value of the id attribute.
19290 19291 19292 |
# File 'lib/ovirtsdk4/types.rb', line 19290 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
19299 19300 19301 |
# File 'lib/ovirtsdk4/types.rb', line 19299 def id=(value) @id = value end |
#internal ⇒ Boolean
Returns the value of the internal attribute.
19308 19309 19310 |
# File 'lib/ovirtsdk4/types.rb', line 19308 def internal @internal end |
#internal=(value) ⇒ Object
Sets the value of the internal attribute.
19317 19318 19319 |
# File 'lib/ovirtsdk4/types.rb', line 19317 def internal=(value) @internal = value end |
#name ⇒ String
Returns the value of the name attribute.
19326 19327 19328 |
# File 'lib/ovirtsdk4/types.rb', line 19326 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
19335 19336 19337 |
# File 'lib/ovirtsdk4/types.rb', line 19335 def name=(value) @name = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
19344 19345 19346 |
# File 'lib/ovirtsdk4/types.rb', line 19344 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 |
# File 'lib/ovirtsdk4/types.rb', line 19353 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.
19370 19371 19372 |
# File 'lib/ovirtsdk4/types.rb', line 19370 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
19379 19380 19381 |
# File 'lib/ovirtsdk4/types.rb', line 19379 def type=(value) @type = value end |