'Creates a SSH KeyPair, returns fingerprint and private key
:param     name: Name of the keypair (required)
:type      name: ``str``
:param     projectid: An optional project for the ssh key
:type      projectid: ``str``
:param     domainid: An optional domainId for the ssh key.
If the account parameter is used,
domainId must also be used.
:type      domainid: ``str``
:param     account: An optional account for the ssh key.
Must be used with domainId.
:type      account: ``str``
:return:   A keypair dictionary
:rtype:    ``dict``'

def ex_create_keypair(self, name, **kwargs):

    warnings.warn('This    method    has    been    deprecated    in    favor    of    create_key_pair    method')
    key_pair = self.create_key_pair(name=name, **kwargs)
    result = {'name': key_pair.name, 'fingerprint': key_pair.fingerprint, 'privateKey': key_pair.private_key}
    return result
