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.
40247 40248 40249 40250 40251 |
# File 'lib/ovirtsdk4/types.rb', line 40247 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.
40256 40257 40258 40259 40260 |
# File 'lib/ovirtsdk4/types.rb', line 40256 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.
40108 40109 40110 |
# File 'lib/ovirtsdk4/types.rb', line 40108 def brick_profile_details @brick_profile_details end |
#brick_profile_details=(list) ⇒ Object
Sets the value of the brick_profile_details
attribute.
40117 40118 40119 40120 40121 40122 40123 40124 40125 40126 40127 |
# File 'lib/ovirtsdk4/types.rb', line 40117 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.
40134 40135 40136 |
# File 'lib/ovirtsdk4/types.rb', line 40134 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
40143 40144 40145 |
# File 'lib/ovirtsdk4/types.rb', line 40143 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
40152 40153 40154 |
# File 'lib/ovirtsdk4/types.rb', line 40152 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
40161 40162 40163 |
# File 'lib/ovirtsdk4/types.rb', line 40161 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40265 40266 40267 40268 40269 |
# File 'lib/ovirtsdk4/types.rb', line 40265 def hash super + @brick_profile_details.hash + @nfs_profile_details.hash end |
#id ⇒ String
Returns the value of the id
attribute.
40170 40171 40172 |
# File 'lib/ovirtsdk4/types.rb', line 40170 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
40179 40180 40181 |
# File 'lib/ovirtsdk4/types.rb', line 40179 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
40188 40189 40190 |
# File 'lib/ovirtsdk4/types.rb', line 40188 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
40197 40198 40199 |
# File 'lib/ovirtsdk4/types.rb', line 40197 def name=(value) @name = value end |
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the nfs_profile_details
attribute.
40206 40207 40208 |
# File 'lib/ovirtsdk4/types.rb', line 40206 def nfs_profile_details @nfs_profile_details end |
#nfs_profile_details=(list) ⇒ Object
Sets the value of the nfs_profile_details
attribute.
40215 40216 40217 40218 40219 40220 40221 40222 40223 40224 40225 |
# File 'lib/ovirtsdk4/types.rb', line 40215 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 |