Class: OvirtSDK4::GlusterVolumeProfileDetails
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::GlusterVolumeProfileDetails
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#brick_profile_details ⇒ Array<BrickProfileDetail>
Returns the value of the
brick_profile_detailsattribute. -
#brick_profile_details=(list) ⇒ Object
Sets the value of the
brick_profile_detailsattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#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 = {}) ⇒ GlusterVolumeProfileDetails
constructor
Creates a new instance of the GlusterVolumeProfileDetails class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the
nfs_profile_detailsattribute. -
#nfs_profile_details=(list) ⇒ Object
Sets the value of the
nfs_profile_detailsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GlusterVolumeProfileDetails
Creates a new instance of the OvirtSDK4::GlusterVolumeProfileDetails class.
43696 43697 43698 43699 43700 |
# File 'lib/ovirtsdk4/types.rb', line 43696 def initialize(opts = {}) super(opts) self.brick_profile_details = opts[:brick_profile_details] self.nfs_profile_details = opts[:nfs_profile_details] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
43705 43706 43707 43708 43709 |
# File 'lib/ovirtsdk4/types.rb', line 43705 def ==(other) super && @brick_profile_details == other.brick_profile_details && @nfs_profile_details == other.nfs_profile_details end |
#brick_profile_details ⇒ Array<BrickProfileDetail>
Returns the value of the brick_profile_details attribute.
43557 43558 43559 |
# File 'lib/ovirtsdk4/types.rb', line 43557 def brick_profile_details @brick_profile_details end |
#brick_profile_details=(list) ⇒ Object
Sets the value of the brick_profile_details attribute.
43566 43567 43568 43569 43570 43571 43572 43573 43574 43575 43576 |
# File 'lib/ovirtsdk4/types.rb', line 43566 def brick_profile_details=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = BrickProfileDetail.new(value) end end end @brick_profile_details = list end |
#comment ⇒ String
Returns the value of the comment attribute.
43583 43584 43585 |
# File 'lib/ovirtsdk4/types.rb', line 43583 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
43592 43593 43594 |
# File 'lib/ovirtsdk4/types.rb', line 43592 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
43601 43602 43603 |
# File 'lib/ovirtsdk4/types.rb', line 43601 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
43610 43611 43612 |
# File 'lib/ovirtsdk4/types.rb', line 43610 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
43714 43715 43716 43717 43718 |
# File 'lib/ovirtsdk4/types.rb', line 43714 def hash super + @brick_profile_details.hash + @nfs_profile_details.hash end |
#id ⇒ String
Returns the value of the id attribute.
43619 43620 43621 |
# File 'lib/ovirtsdk4/types.rb', line 43619 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
43628 43629 43630 |
# File 'lib/ovirtsdk4/types.rb', line 43628 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
43637 43638 43639 |
# File 'lib/ovirtsdk4/types.rb', line 43637 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
43646 43647 43648 |
# File 'lib/ovirtsdk4/types.rb', line 43646 def name=(value) @name = value end |
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the nfs_profile_details attribute.
43655 43656 43657 |
# File 'lib/ovirtsdk4/types.rb', line 43655 def nfs_profile_details @nfs_profile_details end |
#nfs_profile_details=(list) ⇒ Object
Sets the value of the nfs_profile_details attribute.
43664 43665 43666 43667 43668 43669 43670 43671 43672 43673 43674 |
# File 'lib/ovirtsdk4/types.rb', line 43664 def nfs_profile_details=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NfsProfileDetail.new(value) end end end @nfs_profile_details = list end |