Class: OvirtSDK4::NfsProfileDetail

Inherits:
EntityProfileDetail show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ NfsProfileDetail

Creates a new instance of the OvirtSDK4::NfsProfileDetail class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :nfs_server_ip (String)

    The value of attribute nfs_server_ip.

  • :profile_details (Array<ProfileDetail>, Array<Hash>)

    The values of attribute profile_details.



11192
11193
11194
11195
# File 'lib/ovirtsdk4/types.rb', line 11192

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.



11200
11201
11202
11203
# File 'lib/ovirtsdk4/types.rb', line 11200

def ==(other)
  super &&
  @nfs_server_ip == other.nfs_server_ip
end

#hashObject

Generates a hash value for this object.



11208
11209
11210
11211
# File 'lib/ovirtsdk4/types.rb', line 11208

def hash
  super +
  @nfs_server_ip.hash
end

#nfs_server_ipString

Returns the value of the nfs_server_ip attribute.

Returns:

  • (String)


11141
11142
11143
# File 'lib/ovirtsdk4/types.rb', line 11141

def nfs_server_ip
  @nfs_server_ip
end

#nfs_server_ip=(value) ⇒ Object

Sets the value of the nfs_server_ip attribute.

Parameters:

  • value (String)


11150
11151
11152
# File 'lib/ovirtsdk4/types.rb', line 11150

def nfs_server_ip=(value)
  @nfs_server_ip = value
end

#profile_detailsArray<ProfileDetail>

Returns the value of the profile_details attribute.

Returns:



11159
11160
11161
# File 'lib/ovirtsdk4/types.rb', line 11159

def profile_details
  @profile_details
end

#profile_details=(list) ⇒ Object

Sets the value of the profile_details attribute.

Parameters:



11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
# File 'lib/ovirtsdk4/types.rb', line 11168

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