Class: OvirtSDK4::Balance
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Balance
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Balance) initialize(opts = {})
constructor
Creates a new instance of the Balance class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (SchedulingPolicy) scheduling_policy
Returns the value of the
scheduling_policy
attribute. -
- (Object) scheduling_policy=(value)
Sets the value of the
scheduling_policy
attribute. -
- (SchedulingPolicyUnit) scheduling_policy_unit
Returns the value of the
scheduling_policy_unit
attribute. -
- (Object) scheduling_policy_unit=(value)
Sets the value of the
scheduling_policy_unit
attribute.
Methods included from Type
Constructor Details
- (Balance) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Balance class.
23489 23490 23491 23492 23493 23494 23495 23496 23497 |
# File 'lib/ovirtsdk4/types.rb', line 23489 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.name = opts[:name] self.scheduling_policy = opts[:scheduling_policy] self.scheduling_policy_unit = opts[:scheduling_policy_unit] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
23352 23353 23354 |
# File 'lib/ovirtsdk4/types.rb', line 23352 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
23361 23362 23363 |
# File 'lib/ovirtsdk4/types.rb', line 23361 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
23370 23371 23372 |
# File 'lib/ovirtsdk4/types.rb', line 23370 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
23379 23380 23381 |
# File 'lib/ovirtsdk4/types.rb', line 23379 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
23388 23389 23390 |
# File 'lib/ovirtsdk4/types.rb', line 23388 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
23397 23398 23399 |
# File 'lib/ovirtsdk4/types.rb', line 23397 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
23406 23407 23408 |
# File 'lib/ovirtsdk4/types.rb', line 23406 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
23415 23416 23417 |
# File 'lib/ovirtsdk4/types.rb', line 23415 def name=(value) @name = value end |
- (SchedulingPolicy) scheduling_policy
Returns the value of the scheduling_policy
attribute.
23424 23425 23426 |
# File 'lib/ovirtsdk4/types.rb', line 23424 def scheduling_policy return @scheduling_policy end |
- (Object) scheduling_policy=(value)
Sets the value of the scheduling_policy
attribute.
The value
parameter can be an instance of SchedulingPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
23437 23438 23439 23440 23441 23442 |
# File 'lib/ovirtsdk4/types.rb', line 23437 def scheduling_policy=(value) if value.is_a?(Hash) value = SchedulingPolicy.new(value) end @scheduling_policy = value end |
- (SchedulingPolicyUnit) scheduling_policy_unit
Returns the value of the scheduling_policy_unit
attribute.
23449 23450 23451 |
# File 'lib/ovirtsdk4/types.rb', line 23449 def scheduling_policy_unit return @scheduling_policy_unit end |
- (Object) scheduling_policy_unit=(value)
Sets the value of the scheduling_policy_unit
attribute.
The value
parameter can be an instance of SchedulingPolicyUnit or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
23462 23463 23464 23465 23466 23467 |
# File 'lib/ovirtsdk4/types.rb', line 23462 def scheduling_policy_unit=(value) if value.is_a?(Hash) value = SchedulingPolicyUnit.new(value) end @scheduling_policy_unit = value end |