Class: OvirtSDK4::MacPool
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::MacPool
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#allow_duplicates ⇒ Boolean
Returns the value of the
allow_duplicatesattribute. -
#allow_duplicates=(value) ⇒ Object
Sets the value of the
allow_duplicatesattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#default_pool ⇒ Boolean
Returns the value of the
default_poolattribute. -
#default_pool=(value) ⇒ Object
Sets the value of the
default_poolattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ MacPool
constructor
Creates a new instance of the MacPool class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#ranges ⇒ Array<Range>
Returns the value of the
rangesattribute. -
#ranges=(list) ⇒ Object
Sets the value of the
rangesattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ MacPool
Creates a new instance of the OvirtSDK4::MacPool class.
9801 9802 9803 9804 9805 9806 9807 |
# File 'lib/ovirtsdk4/types.rb', line 9801 def initialize(opts = {}) super(opts) self.allow_duplicates = opts[:allow_duplicates] self.default_pool = opts[:default_pool] self. = opts[:permissions] self.ranges = opts[:ranges] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
9812 9813 9814 9815 9816 9817 9818 |
# File 'lib/ovirtsdk4/types.rb', line 9812 def ==(other) super && @allow_duplicates == other.allow_duplicates && @default_pool == other.default_pool && @permissions == other. && @ranges == other.ranges end |
#allow_duplicates ⇒ Boolean
Returns the value of the allow_duplicates attribute.
9622 9623 9624 |
# File 'lib/ovirtsdk4/types.rb', line 9622 def allow_duplicates @allow_duplicates end |
#allow_duplicates=(value) ⇒ Object
Sets the value of the allow_duplicates attribute.
9631 9632 9633 |
# File 'lib/ovirtsdk4/types.rb', line 9631 def allow_duplicates=(value) @allow_duplicates = value end |
#comment ⇒ String
Returns the value of the comment attribute.
9640 9641 9642 |
# File 'lib/ovirtsdk4/types.rb', line 9640 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
9649 9650 9651 |
# File 'lib/ovirtsdk4/types.rb', line 9649 def comment=(value) @comment = value end |
#default_pool ⇒ Boolean
Returns the value of the default_pool attribute.
9658 9659 9660 |
# File 'lib/ovirtsdk4/types.rb', line 9658 def default_pool @default_pool end |
#default_pool=(value) ⇒ Object
Sets the value of the default_pool attribute.
9667 9668 9669 |
# File 'lib/ovirtsdk4/types.rb', line 9667 def default_pool=(value) @default_pool = value end |
#description ⇒ String
Returns the value of the description attribute.
9676 9677 9678 |
# File 'lib/ovirtsdk4/types.rb', line 9676 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
9685 9686 9687 |
# File 'lib/ovirtsdk4/types.rb', line 9685 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
9823 9824 9825 9826 9827 9828 9829 |
# File 'lib/ovirtsdk4/types.rb', line 9823 def hash super + @allow_duplicates.hash + @default_pool.hash + @permissions.hash + @ranges.hash end |
#id ⇒ String
Returns the value of the id attribute.
9694 9695 9696 |
# File 'lib/ovirtsdk4/types.rb', line 9694 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
9703 9704 9705 |
# File 'lib/ovirtsdk4/types.rb', line 9703 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
9712 9713 9714 |
# File 'lib/ovirtsdk4/types.rb', line 9712 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
9721 9722 9723 |
# File 'lib/ovirtsdk4/types.rb', line 9721 def name=(value) @name = value end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions attribute.
9730 9731 9732 |
# File 'lib/ovirtsdk4/types.rb', line 9730 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 |
# File 'lib/ovirtsdk4/types.rb', line 9739 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end @permissions = list end |
#ranges ⇒ Array<Range>
Returns the value of the ranges attribute.
9756 9757 9758 |
# File 'lib/ovirtsdk4/types.rb', line 9756 def ranges @ranges end |
#ranges=(list) ⇒ Object
Sets the value of the ranges attribute.
9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 |
# File 'lib/ovirtsdk4/types.rb', line 9765 def ranges=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Range.new(value) end end end @ranges = list end |