Class: OvirtSDK4::Filter
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Filter
- 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. -
- (Filter) initialize(opts = {})
constructor
Creates a new instance of the Filter class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Integer) position
Returns the value of the
position
attribute. -
- (Object) position=(value)
Sets the value of the
position
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
- (Filter) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Filter class.
29788 29789 29790 29791 29792 29793 29794 29795 29796 |
# File 'lib/ovirtsdk4/types.rb', line 29788 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.name = opts[:name] self.position = opts[:position] self.scheduling_policy_unit = opts[:scheduling_policy_unit] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
29658 29659 29660 |
# File 'lib/ovirtsdk4/types.rb', line 29658 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
29667 29668 29669 |
# File 'lib/ovirtsdk4/types.rb', line 29667 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
29676 29677 29678 |
# File 'lib/ovirtsdk4/types.rb', line 29676 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
29685 29686 29687 |
# File 'lib/ovirtsdk4/types.rb', line 29685 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
29694 29695 29696 |
# File 'lib/ovirtsdk4/types.rb', line 29694 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
29703 29704 29705 |
# File 'lib/ovirtsdk4/types.rb', line 29703 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
29712 29713 29714 |
# File 'lib/ovirtsdk4/types.rb', line 29712 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
29721 29722 29723 |
# File 'lib/ovirtsdk4/types.rb', line 29721 def name=(value) @name = value end |
- (Integer) position
Returns the value of the position
attribute.
29730 29731 29732 |
# File 'lib/ovirtsdk4/types.rb', line 29730 def position return @position end |
- (Object) position=(value)
Sets the value of the position
attribute.
29739 29740 29741 |
# File 'lib/ovirtsdk4/types.rb', line 29739 def position=(value) @position = value end |
- (SchedulingPolicyUnit) scheduling_policy_unit
Returns the value of the scheduling_policy_unit
attribute.
29748 29749 29750 |
# File 'lib/ovirtsdk4/types.rb', line 29748 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.
29761 29762 29763 29764 29765 29766 |
# File 'lib/ovirtsdk4/types.rb', line 29761 def scheduling_policy_unit=(value) if value.is_a?(Hash) value = SchedulingPolicyUnit.new(value) end @scheduling_policy_unit = value end |