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

#href, #href=

Constructor Details

- (NfsProfileDetail) initialize(opts = {})

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.



8012
8013
8014
8015
8016
# File 'lib/ovirtsdk4/types.rb', line 8012

def initialize(opts = {})
  super(opts)
  self.nfs_server_ip = opts[:nfs_server_ip]
  self.profile_details = opts[:profile_details]
end

Instance Method Details

- (String) nfs_server_ip

Returns the value of the nfs_server_ip attribute.

Returns:

  • (String)


7962
7963
7964
# File 'lib/ovirtsdk4/types.rb', line 7962

def nfs_server_ip
  return @nfs_server_ip
end

- (Object) nfs_server_ip=(value)

Sets the value of the nfs_server_ip attribute.

Parameters:

  • value (String)


7971
7972
7973
# File 'lib/ovirtsdk4/types.rb', line 7971

def nfs_server_ip=(value)
  @nfs_server_ip = value
end

- (Array<ProfileDetail>) profile_details

Returns the value of the profile_details attribute.

Returns:



7980
7981
7982
# File 'lib/ovirtsdk4/types.rb', line 7980

def profile_details
  return @profile_details
end

- (Object) profile_details=(list)

Sets the value of the profile_details attribute.

Parameters:



7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
# File 'lib/ovirtsdk4/types.rb', line 7988

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