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.
40049 40050 40051 40052 40053 |
# File 'lib/ovirtsdk4/types.rb', line 40049 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.
40058 40059 40060 40061 40062 |
# File 'lib/ovirtsdk4/types.rb', line 40058 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.
39910 39911 39912 |
# File 'lib/ovirtsdk4/types.rb', line 39910 def brick_profile_details @brick_profile_details end |
#brick_profile_details=(list) ⇒ Object
Sets the value of the brick_profile_details
attribute.
39919 39920 39921 39922 39923 39924 39925 39926 39927 39928 39929 |
# File 'lib/ovirtsdk4/types.rb', line 39919 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.
39936 39937 39938 |
# File 'lib/ovirtsdk4/types.rb', line 39936 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39945 39946 39947 |
# File 'lib/ovirtsdk4/types.rb', line 39945 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
39954 39955 39956 |
# File 'lib/ovirtsdk4/types.rb', line 39954 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39963 39964 39965 |
# File 'lib/ovirtsdk4/types.rb', line 39963 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40067 40068 40069 40070 40071 |
# File 'lib/ovirtsdk4/types.rb', line 40067 def hash super + @brick_profile_details.hash + @nfs_profile_details.hash end |
#id ⇒ String
Returns the value of the id
attribute.
39972 39973 39974 |
# File 'lib/ovirtsdk4/types.rb', line 39972 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39981 39982 39983 |
# File 'lib/ovirtsdk4/types.rb', line 39981 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
39990 39991 39992 |
# File 'lib/ovirtsdk4/types.rb', line 39990 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39999 40000 40001 |
# File 'lib/ovirtsdk4/types.rb', line 39999 def name=(value) @name = value end |
#nfs_profile_details ⇒ Array<NfsProfileDetail>
Returns the value of the nfs_profile_details
attribute.
40008 40009 40010 |
# File 'lib/ovirtsdk4/types.rb', line 40008 def nfs_profile_details @nfs_profile_details end |
#nfs_profile_details=(list) ⇒ Object
Sets the value of the nfs_profile_details
attribute.
40017 40018 40019 40020 40021 40022 40023 40024 40025 40026 40027 |
# File 'lib/ovirtsdk4/types.rb', line 40017 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 |