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.
19137 19138 19139 19140 19141 19142 19143 |
# File 'lib/ovirtsdk4/types.rb', line 19137 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.
19148 19149 19150 19151 19152 19153 19154 |
# File 'lib/ovirtsdk4/types.rb', line 19148 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.
18966 18967 18968 |
# File 'lib/ovirtsdk4/types.rb', line 18966 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
18975 18976 18977 |
# File 'lib/ovirtsdk4/types.rb', line 18975 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
18984 18985 18986 |
# File 'lib/ovirtsdk4/types.rb', line 18984 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
18993 18994 18995 |
# File 'lib/ovirtsdk4/types.rb', line 18993 def description=(value) @description = value end |
#enabled ⇒ Boolean
Returns the value of the enabled
attribute.
19002 19003 19004 |
# File 'lib/ovirtsdk4/types.rb', line 19002 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled
attribute.
19011 19012 19013 |
# File 'lib/ovirtsdk4/types.rb', line 19011 def enabled=(value) @enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
19159 19160 19161 19162 19163 19164 19165 |
# File 'lib/ovirtsdk4/types.rb', line 19159 def hash super + @enabled.hash + @internal.hash + @properties.hash + @type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
19020 19021 19022 |
# File 'lib/ovirtsdk4/types.rb', line 19020 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
19029 19030 19031 |
# File 'lib/ovirtsdk4/types.rb', line 19029 def id=(value) @id = value end |
#internal ⇒ Boolean
Returns the value of the internal
attribute.
19038 19039 19040 |
# File 'lib/ovirtsdk4/types.rb', line 19038 def internal @internal end |
#internal=(value) ⇒ Object
Sets the value of the internal
attribute.
19047 19048 19049 |
# File 'lib/ovirtsdk4/types.rb', line 19047 def internal=(value) @internal = value end |
#name ⇒ String
Returns the value of the name
attribute.
19056 19057 19058 |
# File 'lib/ovirtsdk4/types.rb', line 19056 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
19065 19066 19067 |
# File 'lib/ovirtsdk4/types.rb', line 19065 def name=(value) @name = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
19074 19075 19076 |
# File 'lib/ovirtsdk4/types.rb', line 19074 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 |
# File 'lib/ovirtsdk4/types.rb', line 19083 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.
19100 19101 19102 |
# File 'lib/ovirtsdk4/types.rb', line 19100 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
19109 19110 19111 |
# File 'lib/ovirtsdk4/types.rb', line 19109 def type=(value) @type = value end |