'Imports a new public key where the public key is passed in as a string
:param     name: The name of the public key to import.
:type      name: ``str``
:param     key_material: The contents of a public key file.
:type      key_material: ``str``
:rtype: ``dict``'

def ex_import_keypair_from_string(self, name, key_material):

    warnings.warn('This    method    has    been    deprecated    in    favor    of    import_key_pair_from_string    method')
    key_pair = self.import_key_pair_from_string(name=name, key_material=key_material)
    result = {'keyName': key_pair.name, 'keyFingerprint': key_pair.fingerprint}
    return result
