(self, key_name: str, new_key_name: str, **kwargs: base.CommonArgs)
return self._client.request(
			'/key/rename', args, decoder='json', **kwargs
		)
Rename an existing key
		
		.. code-block:: python
		
			>>> client.key.rename("bla", "personal")
			{"Was": "bla",
			 "Now": "personal",
			 "Id": "QmeyrRNxXaasZaoDXcCZgryoBCga9shaHQ4suHAYXbNZF3",
			 "Overwrite": False}
		
		Parameters
		----------
		key_name
			Current name of the key to rename
		new_key_name
			New name of the key
		
		Returns
		-------
			dict
				Information about the key renameal
Rename an existing key
		
		.. code-block:: python
		
			>>> client.key.rename("bla", "personal")
			{"Was": "bla",
			 "Now": "personal",
			 "Id": "QmeyrRNxXaasZaoDXcCZgryoBCga9shaHQ4suHAYXbNZF3",
			 "Overwrite": False}
		
		Parameters
		----------
		key_name
			Current name of the key to rename
		new_key_name
			New name of the key
		
		Returns
		-------
			dict
				Information about the key renameal
Rename an existing key .. code - block :: python >>> client . key . rename ( bla personal ) { Was : bla Now : personal Id : QmeyrRNxXaasZaoDXcCZgryoBCga9shaHQ4suHAYXbNZF3 Overwrite : False } Parameters ---------- key_name Current name of the key to rename new_key_name New name of the key Returns ------- dict Information about the key renameal
def rename(self, key_name: str, new_key_name: str, **kwargs: base.CommonArgs):
		"""Rename an existing key
		
		.. code-block:: python
		
			>>> client.key.rename("bla", "personal")
			{"Was": "bla",
			 "Now": "personal",
			 "Id": "QmeyrRNxXaasZaoDXcCZgryoBCga9shaHQ4suHAYXbNZF3",
			 "Overwrite": False}
		
		Parameters
		----------
		key_name
			Current name of the key to rename
		new_key_name
			New name of the key
		
		Returns
		-------
			dict
				Information about the key renameal
		"""
		args = (key_name, new_key_name)
		return self._client.request(
			'/key/rename', args, decoder='json', **kwargs
		)
def rename ( self , key_name : str , new_key_name : str , * * kwargs : base . CommonArgs ) : args = ( key_name , new_key_name ) return self . _client . request ( '/key/rename' , args , decoder = 'json' , * * kwargs )