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.
18305 18306 18307 18308 18309 18310 18311 |
# File 'lib/ovirtsdk4/types.rb', line 18305 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.
18316 18317 18318 18319 18320 18321 18322 |
# File 'lib/ovirtsdk4/types.rb', line 18316 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.
18134 18135 18136 |
# File 'lib/ovirtsdk4/types.rb', line 18134 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
18143 18144 18145 |
# File 'lib/ovirtsdk4/types.rb', line 18143 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
18152 18153 18154 |
# File 'lib/ovirtsdk4/types.rb', line 18152 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
18161 18162 18163 |
# File 'lib/ovirtsdk4/types.rb', line 18161 def description=(value) @description = value end |
#enabled ⇒ Boolean
Returns the value of the enabled
attribute.
18170 18171 18172 |
# File 'lib/ovirtsdk4/types.rb', line 18170 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled
attribute.
18179 18180 18181 |
# File 'lib/ovirtsdk4/types.rb', line 18179 def enabled=(value) @enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
18327 18328 18329 18330 18331 18332 18333 |
# File 'lib/ovirtsdk4/types.rb', line 18327 def hash super + @enabled.hash + @internal.hash + @properties.hash + @type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
18188 18189 18190 |
# File 'lib/ovirtsdk4/types.rb', line 18188 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
18197 18198 18199 |
# File 'lib/ovirtsdk4/types.rb', line 18197 def id=(value) @id = value end |
#internal ⇒ Boolean
Returns the value of the internal
attribute.
18206 18207 18208 |
# File 'lib/ovirtsdk4/types.rb', line 18206 def internal @internal end |
#internal=(value) ⇒ Object
Sets the value of the internal
attribute.
18215 18216 18217 |
# File 'lib/ovirtsdk4/types.rb', line 18215 def internal=(value) @internal = value end |
#name ⇒ String
Returns the value of the name
attribute.
18224 18225 18226 |
# File 'lib/ovirtsdk4/types.rb', line 18224 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
18233 18234 18235 |
# File 'lib/ovirtsdk4/types.rb', line 18233 def name=(value) @name = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
18242 18243 18244 |
# File 'lib/ovirtsdk4/types.rb', line 18242 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 |
# File 'lib/ovirtsdk4/types.rb', line 18251 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.
18268 18269 18270 |
# File 'lib/ovirtsdk4/types.rb', line 18268 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
18277 18278 18279 |
# File 'lib/ovirtsdk4/types.rb', line 18277 def type=(value) @type = value end |