'Create a new SSH key.
:param      name: Key name (required)
:type       name: ``str``
:param      public_key: Valid public key string (required)
:type       public_key: ``str``'

def create_key_pair(self, name, public_key):

    params = {'label': name, 'key': public_key}
    data = self.connection.request('/ssh-keys', method='POST', params=params).object
    return self._to_key_pairs(data)
