(self, key: str, value: utils.json_value_t = None, **kwargs: base.CommonArgs)
return self._client.request('/config', args, decoder='json', **kwargs)
Adds or replaces a single configuration value
		
		.. code-block:: python
		
			>>> client.config.set("Addresses.Gateway")
			{'Key': 'Addresses.Gateway', 'Value': '/ip4/127.0.0.1/tcp/8080'}
			>>> client.config.set("Addresses.Gateway", "/ip4/127.0.0.1/tcp/8081")
			{'Key': 'Addresses.Gateway', 'Value': '/ip4/127.0.0.1/tcp/8081'}
		
		Parameters
		----------
		key
			The key of the configuration entry (e.g. "Addresses.API")
		value
			The value to set the configuration entry to
		
		Returns
		-------
			dict
		
		+-------+---------------------------------------------+
		| Key   | The requested configuration key             |
		+-------+---------------------------------------------+
		| Value | The new value of the this configuration key |
		+-------+---------------------------------------------+
Adds or replaces a single configuration value
		
		.. code-block:: python
		
			>>> client.config.set("Addresses.Gateway")
			{'Key': 'Addresses.Gateway', 'Value': '/ip4/127.0.0.1/tcp/8080'}
			>>> client.config.set("Addresses.Gateway", "/ip4/127.0.0.1/tcp/8081")
			{'Key': 'Addresses.Gateway', 'Value': '/ip4/127.0.0.1/tcp/8081'}
		
		Parameters
		----------
		key
			The key of the configuration entry (e.g. "Addresses.API")
		value
			The value to set the configuration entry to
		
		Returns
		-------
			dict
		
		+-------+---------------------------------------------+
		| Key   | The requested configuration key             |
		+-------+---------------------------------------------+
		| Value | The new value of the this configuration key |
		+-------+---------------------------------------------+
Adds or replaces a single configuration value .. code - block :: python >>> client . config . set ( Addresses . Gateway ) { Key : Addresses . Gateway Value : / ip4 / 127 . 0 . 0 . 1 / tcp / 8080 } >>> client . config . set ( Addresses . Gateway / ip4 / 127 . 0 . 0 . 1 / tcp / 8081 ) { Key : Addresses . Gateway Value : / ip4 / 127 . 0 . 0 . 1 / tcp / 8081 } Parameters ---------- key The key of the configuration entry ( e . g . Addresses . API ) value The value to set the configuration entry to Returns ------- dict + ------- + --------------------------------------------- + | Key | The requested configuration key | + ------- + --------------------------------------------- + | Value | The new value of the this configuration key | + ------- + --------------------------------------------- +
def set(self, key: str, value: utils.json_value_t = None, **kwargs: base.CommonArgs):
		"""Adds or replaces a single configuration value
		
		.. code-block:: python
		
			>>> client.config.set("Addresses.Gateway")
			{'Key': 'Addresses.Gateway', 'Value': '/ip4/127.0.0.1/tcp/8080'}
			>>> client.config.set("Addresses.Gateway", "/ip4/127.0.0.1/tcp/8081")
			{'Key': 'Addresses.Gateway', 'Value': '/ip4/127.0.0.1/tcp/8081'}
		
		Parameters
		----------
		key
			The key of the configuration entry (e.g. "Addresses.API")
		value
			The value to set the configuration entry to
		
		Returns
		-------
			dict
		
		+-------+---------------------------------------------+
		| Key   | The requested configuration key             |
		+-------+---------------------------------------------+
		| Value | The new value of the this configuration key |
		+-------+---------------------------------------------+
		"""
		args = (key, value)
		return self._client.request('/config', args, decoder='json', **kwargs)
def set ( self , key : str , value : utils . json_value_t = None , * * kwargs : base . CommonArgs ) : args = ( key , value ) return self . _client . request ( '/config' , args , decoder = 'json' , * * kwargs )