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
true
ifself
andother
have the same attributes and values. -
#brick_profile_details ⇒ Array<BrickProfileDetail>
Returns the value of the
brick_profile_details
attribute. -
#brick_profile_details=(list) ⇒ Object
Sets the value of the
brick_profile_details
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ GlusterVolumeProfileDetails
constructor
Creates a new instance of the GlusterVolumeProfileDetails class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the
nfs_profile_details
attribute. -
#nfs_profile_details=(list) ⇒ Object
Sets the value of the
nfs_profile_details
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GlusterVolumeProfileDetails
Creates a new instance of the OvirtSDK4::GlusterVolumeProfileDetails class.
40952 40953 40954 40955 40956 |
# File 'lib/ovirtsdk4/types.rb', line 40952 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.
40961 40962 40963 40964 40965 |
# File 'lib/ovirtsdk4/types.rb', line 40961 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.
40813 40814 40815 |
# File 'lib/ovirtsdk4/types.rb', line 40813 def brick_profile_details @brick_profile_details end |
#brick_profile_details=(list) ⇒ Object
Sets the value of the brick_profile_details
attribute.
40822 40823 40824 40825 40826 40827 40828 40829 40830 40831 40832 |
# File 'lib/ovirtsdk4/types.rb', line 40822 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.
40839 40840 40841 |
# File 'lib/ovirtsdk4/types.rb', line 40839 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
40848 40849 40850 |
# File 'lib/ovirtsdk4/types.rb', line 40848 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
40857 40858 40859 |
# File 'lib/ovirtsdk4/types.rb', line 40857 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
40866 40867 40868 |
# File 'lib/ovirtsdk4/types.rb', line 40866 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40970 40971 40972 40973 40974 |
# File 'lib/ovirtsdk4/types.rb', line 40970 def hash super + @brick_profile_details.hash + @nfs_profile_details.hash end |
#id ⇒ String
Returns the value of the id
attribute.
40875 40876 40877 |
# File 'lib/ovirtsdk4/types.rb', line 40875 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
40884 40885 40886 |
# File 'lib/ovirtsdk4/types.rb', line 40884 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
40893 40894 40895 |
# File 'lib/ovirtsdk4/types.rb', line 40893 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
40902 40903 40904 |
# File 'lib/ovirtsdk4/types.rb', line 40902 def name=(value) @name = value end |
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the nfs_profile_details
attribute.
40911 40912 40913 |
# File 'lib/ovirtsdk4/types.rb', line 40911 def nfs_profile_details @nfs_profile_details end |
#nfs_profile_details=(list) ⇒ Object
Sets the value of the nfs_profile_details
attribute.
40920 40921 40922 40923 40924 40925 40926 40927 40928 40929 40930 |
# File 'lib/ovirtsdk4/types.rb', line 40920 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 |