Class: OvirtSDK4::NfsProfileDetail
- Inherits:
-
EntityProfileDetail
- Object
- Struct
- EntityProfileDetail
- OvirtSDK4::NfsProfileDetail
- 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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ NfsProfileDetail
constructor
Creates a new instance of the NfsProfileDetail class.
-
#nfs_server_ip ⇒ String
Returns the value of the
nfs_server_ip
attribute. -
#nfs_server_ip=(value) ⇒ Object
Sets the value of the
nfs_server_ip
attribute. -
#profile_details ⇒ Array<ProfileDetail>
Returns the value of the
profile_details
attribute. -
#profile_details=(list) ⇒ Object
Sets the value of the
profile_details
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ NfsProfileDetail
Creates a new instance of the OvirtSDK4::NfsProfileDetail class.
11090 11091 11092 11093 |
# File 'lib/ovirtsdk4/types.rb', line 11090 def initialize(opts = {}) super(opts) self.nfs_server_ip = opts[:nfs_server_ip] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
11098 11099 11100 11101 |
# File 'lib/ovirtsdk4/types.rb', line 11098 def ==(other) super && @nfs_server_ip == other.nfs_server_ip end |
#hash ⇒ Object
Generates a hash value for this object.
11106 11107 11108 11109 |
# File 'lib/ovirtsdk4/types.rb', line 11106 def hash super + @nfs_server_ip.hash end |
#nfs_server_ip ⇒ String
Returns the value of the nfs_server_ip
attribute.
11039 11040 11041 |
# File 'lib/ovirtsdk4/types.rb', line 11039 def nfs_server_ip @nfs_server_ip end |
#nfs_server_ip=(value) ⇒ Object
Sets the value of the nfs_server_ip
attribute.
11048 11049 11050 |
# File 'lib/ovirtsdk4/types.rb', line 11048 def nfs_server_ip=(value) @nfs_server_ip = value end |
#profile_details ⇒ Array<ProfileDetail>
Returns the value of the profile_details
attribute.
11057 11058 11059 |
# File 'lib/ovirtsdk4/types.rb', line 11057 def profile_details @profile_details end |
#profile_details=(list) ⇒ Object
Sets the value of the profile_details
attribute.
11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 |
# File 'lib/ovirtsdk4/types.rb', line 11066 def 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] = ProfileDetail.new(value) end end end @profile_details = list end |