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.
42548 42549 42550 42551 42552 |
# File 'lib/ovirtsdk4/types.rb', line 42548 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.
42557 42558 42559 42560 42561 |
# File 'lib/ovirtsdk4/types.rb', line 42557 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.
42409 42410 42411 |
# File 'lib/ovirtsdk4/types.rb', line 42409 def brick_profile_details @brick_profile_details end |
#brick_profile_details=(list) ⇒ Object
Sets the value of the brick_profile_details
attribute.
42418 42419 42420 42421 42422 42423 42424 42425 42426 42427 42428 |
# File 'lib/ovirtsdk4/types.rb', line 42418 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.
42435 42436 42437 |
# File 'lib/ovirtsdk4/types.rb', line 42435 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
42444 42445 42446 |
# File 'lib/ovirtsdk4/types.rb', line 42444 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
42453 42454 42455 |
# File 'lib/ovirtsdk4/types.rb', line 42453 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
42462 42463 42464 |
# File 'lib/ovirtsdk4/types.rb', line 42462 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
42566 42567 42568 42569 42570 |
# File 'lib/ovirtsdk4/types.rb', line 42566 def hash super + @brick_profile_details.hash + @nfs_profile_details.hash end |
#id ⇒ String
Returns the value of the id
attribute.
42471 42472 42473 |
# File 'lib/ovirtsdk4/types.rb', line 42471 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
42480 42481 42482 |
# File 'lib/ovirtsdk4/types.rb', line 42480 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
42489 42490 42491 |
# File 'lib/ovirtsdk4/types.rb', line 42489 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
42498 42499 42500 |
# File 'lib/ovirtsdk4/types.rb', line 42498 def name=(value) @name = value end |
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the nfs_profile_details
attribute.
42507 42508 42509 |
# File 'lib/ovirtsdk4/types.rb', line 42507 def nfs_profile_details @nfs_profile_details end |
#nfs_profile_details=(list) ⇒ Object
Sets the value of the nfs_profile_details
attribute.
42516 42517 42518 42519 42520 42521 42522 42523 42524 42525 42526 |
# File 'lib/ovirtsdk4/types.rb', line 42516 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 |