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.
40307 40308 40309 40310 40311 |
# File 'lib/ovirtsdk4/types.rb', line 40307 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.
40316 40317 40318 40319 40320 |
# File 'lib/ovirtsdk4/types.rb', line 40316 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.
40168 40169 40170 |
# File 'lib/ovirtsdk4/types.rb', line 40168 def brick_profile_details @brick_profile_details end |
#brick_profile_details=(list) ⇒ Object
Sets the value of the brick_profile_details attribute.
40177 40178 40179 40180 40181 40182 40183 40184 40185 40186 40187 |
# File 'lib/ovirtsdk4/types.rb', line 40177 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.
40194 40195 40196 |
# File 'lib/ovirtsdk4/types.rb', line 40194 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
40203 40204 40205 |
# File 'lib/ovirtsdk4/types.rb', line 40203 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
40212 40213 40214 |
# File 'lib/ovirtsdk4/types.rb', line 40212 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
40221 40222 40223 |
# File 'lib/ovirtsdk4/types.rb', line 40221 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40325 40326 40327 40328 40329 |
# File 'lib/ovirtsdk4/types.rb', line 40325 def hash super + @brick_profile_details.hash + @nfs_profile_details.hash end |
#id ⇒ String
Returns the value of the id attribute.
40230 40231 40232 |
# File 'lib/ovirtsdk4/types.rb', line 40230 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
40239 40240 40241 |
# File 'lib/ovirtsdk4/types.rb', line 40239 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
40248 40249 40250 |
# File 'lib/ovirtsdk4/types.rb', line 40248 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
40257 40258 40259 |
# File 'lib/ovirtsdk4/types.rb', line 40257 def name=(value) @name = value end |
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the nfs_profile_details attribute.
40266 40267 40268 |
# File 'lib/ovirtsdk4/types.rb', line 40266 def nfs_profile_details @nfs_profile_details end |
#nfs_profile_details=(list) ⇒ Object
Sets the value of the nfs_profile_details attribute.
40275 40276 40277 40278 40279 40280 40281 40282 40283 40284 40285 |
# File 'lib/ovirtsdk4/types.rb', line 40275 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 |