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.
40376 40377 40378 40379 40380 |
# File 'lib/ovirtsdk4/types.rb', line 40376 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.
40385 40386 40387 40388 40389 |
# File 'lib/ovirtsdk4/types.rb', line 40385 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.
40237 40238 40239 |
# File 'lib/ovirtsdk4/types.rb', line 40237 def brick_profile_details @brick_profile_details end |
#brick_profile_details=(list) ⇒ Object
Sets the value of the brick_profile_details
attribute.
40246 40247 40248 40249 40250 40251 40252 40253 40254 40255 40256 |
# File 'lib/ovirtsdk4/types.rb', line 40246 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.
40263 40264 40265 |
# File 'lib/ovirtsdk4/types.rb', line 40263 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
40272 40273 40274 |
# File 'lib/ovirtsdk4/types.rb', line 40272 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
40281 40282 40283 |
# File 'lib/ovirtsdk4/types.rb', line 40281 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
40290 40291 40292 |
# File 'lib/ovirtsdk4/types.rb', line 40290 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40394 40395 40396 40397 40398 |
# File 'lib/ovirtsdk4/types.rb', line 40394 def hash super + @brick_profile_details.hash + @nfs_profile_details.hash end |
#id ⇒ String
Returns the value of the id
attribute.
40299 40300 40301 |
# File 'lib/ovirtsdk4/types.rb', line 40299 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
40308 40309 40310 |
# File 'lib/ovirtsdk4/types.rb', line 40308 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
40317 40318 40319 |
# File 'lib/ovirtsdk4/types.rb', line 40317 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
40326 40327 40328 |
# File 'lib/ovirtsdk4/types.rb', line 40326 def name=(value) @name = value end |
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the nfs_profile_details
attribute.
40335 40336 40337 |
# File 'lib/ovirtsdk4/types.rb', line 40335 def nfs_profile_details @nfs_profile_details end |
#nfs_profile_details=(list) ⇒ Object
Sets the value of the nfs_profile_details
attribute.
40344 40345 40346 40347 40348 40349 40350 40351 40352 40353 40354 |
# File 'lib/ovirtsdk4/types.rb', line 40344 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 |