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.
43403 43404 43405 43406 43407 |
# File 'lib/ovirtsdk4/types.rb', line 43403 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.
43412 43413 43414 43415 43416 |
# File 'lib/ovirtsdk4/types.rb', line 43412 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.
43264 43265 43266 |
# File 'lib/ovirtsdk4/types.rb', line 43264 def brick_profile_details @brick_profile_details end |
#brick_profile_details=(list) ⇒ Object
Sets the value of the brick_profile_details
attribute.
43273 43274 43275 43276 43277 43278 43279 43280 43281 43282 43283 |
# File 'lib/ovirtsdk4/types.rb', line 43273 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.
43290 43291 43292 |
# File 'lib/ovirtsdk4/types.rb', line 43290 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
43299 43300 43301 |
# File 'lib/ovirtsdk4/types.rb', line 43299 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
43308 43309 43310 |
# File 'lib/ovirtsdk4/types.rb', line 43308 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
43317 43318 43319 |
# File 'lib/ovirtsdk4/types.rb', line 43317 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
43421 43422 43423 43424 43425 |
# File 'lib/ovirtsdk4/types.rb', line 43421 def hash super + @brick_profile_details.hash + @nfs_profile_details.hash end |
#id ⇒ String
Returns the value of the id
attribute.
43326 43327 43328 |
# File 'lib/ovirtsdk4/types.rb', line 43326 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
43335 43336 43337 |
# File 'lib/ovirtsdk4/types.rb', line 43335 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
43344 43345 43346 |
# File 'lib/ovirtsdk4/types.rb', line 43344 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
43353 43354 43355 |
# File 'lib/ovirtsdk4/types.rb', line 43353 def name=(value) @name = value end |
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the nfs_profile_details
attribute.
43362 43363 43364 |
# File 'lib/ovirtsdk4/types.rb', line 43362 def nfs_profile_details @nfs_profile_details end |
#nfs_profile_details=(list) ⇒ Object
Sets the value of the nfs_profile_details
attribute.
43371 43372 43373 43374 43375 43376 43377 43378 43379 43380 43381 |
# File 'lib/ovirtsdk4/types.rb', line 43371 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 |