Class: OvirtSDK4::SchedulingPolicy
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::SchedulingPolicy
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Array<Balance>) balances
Returns the value of the
balances
attribute. -
- (Object) balances=(list)
Sets the value of the
balances
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Boolean) default_policy
Returns the value of the
default_policy
attribute. -
- (Object) default_policy=(value)
Sets the value of the
default_policy
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Array<Filter>) filters
Returns the value of the
filters
attribute. -
- (Object) filters=(list)
Sets the value of the
filters
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (SchedulingPolicy) initialize(opts = {})
constructor
Creates a new instance of the SchedulingPolicy class.
-
- (Boolean) locked
Returns the value of the
locked
attribute. -
- (Object) locked=(value)
Sets the value of the
locked
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Array<Property>) properties
Returns the value of the
properties
attribute. -
- (Object) properties=(list)
Sets the value of the
properties
attribute. -
- (Array<Weight>) weight
Returns the value of the
weight
attribute. -
- (Object) weight=(list)
Sets the value of the
weight
attribute.
Methods included from Type
Constructor Details
- (SchedulingPolicy) initialize(opts = {})
Creates a new instance of the OvirtSDK4::SchedulingPolicy class.
13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 |
# File 'lib/ovirtsdk4/types.rb', line 13377 def initialize(opts = {}) super(opts) self.balances = opts[:balances] self.comment = opts[:comment] self.default_policy = opts[:default_policy] self.description = opts[:description] self.filters = opts[:filters] self.id = opts[:id] self.locked = opts[:locked] self.name = opts[:name] self.properties = opts[:properties] self.weight = opts[:weight] end |
Instance Method Details
- (Array<Balance>) balances
Returns the value of the balances
attribute.
13146 13147 13148 |
# File 'lib/ovirtsdk4/types.rb', line 13146 def balances return @balances end |
- (Object) balances=(list)
Sets the value of the balances
attribute.
13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 |
# File 'lib/ovirtsdk4/types.rb', line 13154 def balances=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Balance.new(value) end end end @balances = list end |
- (String) comment
Returns the value of the comment
attribute.
13171 13172 13173 |
# File 'lib/ovirtsdk4/types.rb', line 13171 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
13180 13181 13182 |
# File 'lib/ovirtsdk4/types.rb', line 13180 def comment=(value) @comment = value end |
- (Boolean) default_policy
Returns the value of the default_policy
attribute.
13189 13190 13191 |
# File 'lib/ovirtsdk4/types.rb', line 13189 def default_policy return @default_policy end |
- (Object) default_policy=(value)
Sets the value of the default_policy
attribute.
13198 13199 13200 |
# File 'lib/ovirtsdk4/types.rb', line 13198 def default_policy=(value) @default_policy = value end |
- (String) description
Returns the value of the description
attribute.
13207 13208 13209 |
# File 'lib/ovirtsdk4/types.rb', line 13207 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
13216 13217 13218 |
# File 'lib/ovirtsdk4/types.rb', line 13216 def description=(value) @description = value end |
- (Array<Filter>) filters
Returns the value of the filters
attribute.
13225 13226 13227 |
# File 'lib/ovirtsdk4/types.rb', line 13225 def filters return @filters end |
- (Object) filters=(list)
Sets the value of the filters
attribute.
13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 |
# File 'lib/ovirtsdk4/types.rb', line 13233 def filters=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Filter.new(value) end end end @filters = list end |
- (String) id
Returns the value of the id
attribute.
13250 13251 13252 |
# File 'lib/ovirtsdk4/types.rb', line 13250 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
13259 13260 13261 |
# File 'lib/ovirtsdk4/types.rb', line 13259 def id=(value) @id = value end |
- (Boolean) locked
Returns the value of the locked
attribute.
13268 13269 13270 |
# File 'lib/ovirtsdk4/types.rb', line 13268 def locked return @locked end |
- (Object) locked=(value)
Sets the value of the locked
attribute.
13277 13278 13279 |
# File 'lib/ovirtsdk4/types.rb', line 13277 def locked=(value) @locked = value end |
- (String) name
Returns the value of the name
attribute.
13286 13287 13288 |
# File 'lib/ovirtsdk4/types.rb', line 13286 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
13295 13296 13297 |
# File 'lib/ovirtsdk4/types.rb', line 13295 def name=(value) @name = value end |
- (Array<Property>) properties
Returns the value of the properties
attribute.
13304 13305 13306 |
# File 'lib/ovirtsdk4/types.rb', line 13304 def properties return @properties end |
- (Object) properties=(list)
Sets the value of the properties
attribute.
13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 |
# File 'lib/ovirtsdk4/types.rb', line 13312 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 |
- (Array<Weight>) weight
Returns the value of the weight
attribute.
13329 13330 13331 |
# File 'lib/ovirtsdk4/types.rb', line 13329 def weight return @weight end |
- (Object) weight=(list)
Sets the value of the weight
attribute.
13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 |
# File 'lib/ovirtsdk4/types.rb', line 13337 def weight=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Weight.new(value) end end end @weight = list end |