(self, root: base.cid_t, name: str, ref: base.cid_t,
	             create: bool = False, **kwargs: base.CommonArgs)
return self._client.request('/object/patch/add-link', args, decoder='json', **kwargs)
Creates a new merkledag object based on an existing one
		
		The new object will have an additional link to the given CID.
		
		.. code-block:: python
		
			>>> client.object.patch.add_link(
			...     'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2',
			...     'Johnny',
			...     'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2'
			... )
			{'Hash': 'QmNtXbF3AjAk59gQKRgEdVabHcSsiPUnJwHnZKyj2x8Z3k'}
		
		Parameters
		----------
		root
			IPFS hash for the object being modified
		name
			name for the new link
		ref
			IPFS hash for the object being linked to
		create
			Create intermediary nodes
		
		Returns
		-------
			dict
		
		+------+----------------------------------+
		| Hash | Hash of the newly derived object |
		+------+----------------------------------+
Creates a new merkledag object based on an existing one
		
		The new object will have an additional link to the given CID.
		
		.. code-block:: python
		
			>>> client.object.patch.add_link(
			...     'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2',
			...     'Johnny',
			...     'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2'
			... )
			{'Hash': 'QmNtXbF3AjAk59gQKRgEdVabHcSsiPUnJwHnZKyj2x8Z3k'}
		
		Parameters
		----------
		root
			IPFS hash for the object being modified
		name
			name for the new link
		ref
			IPFS hash for the object being linked to
		create
			Create intermediary nodes
		
		Returns
		-------
			dict
		
		+------+----------------------------------+
		| Hash | Hash of the newly derived object |
		+------+----------------------------------+
Creates a new merkledag object based on an existing one The new object will have an additional link to the given CID . .. code - block :: python >>> client . object . patch . add_link ( ... QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2 ... Johnny ... QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2 ... ) { Hash : QmNtXbF3AjAk59gQKRgEdVabHcSsiPUnJwHnZKyj2x8Z3k } Parameters ---------- root IPFS hash for the object being modified name name for the new link ref IPFS hash for the object being linked to create Create intermediary nodes Returns ------- dict + ------ + ---------------------------------- + | Hash | Hash of the newly derived object | + ------ + ---------------------------------- +
def add_link(self, root: base.cid_t, name: str, ref: base.cid_t,
	             create: bool = False, **kwargs: base.CommonArgs):
		"""Creates a new merkledag object based on an existing one
		
		The new object will have an additional link to the given CID.
		
		.. code-block:: python
		
			>>> client.object.patch.add_link(
			...     'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2',
			...     'Johnny',
			...     'QmR79zQQj2aDfnrNgczUhvf2qWapEfQ82YQRt3QjrbhSb2'
			... )
			{'Hash': 'QmNtXbF3AjAk59gQKRgEdVabHcSsiPUnJwHnZKyj2x8Z3k'}
		
		Parameters
		----------
		root
			IPFS hash for the object being modified
		name
			name for the new link
		ref
			IPFS hash for the object being linked to
		create
			Create intermediary nodes
		
		Returns
		-------
			dict
		
		+------+----------------------------------+
		| Hash | Hash of the newly derived object |
		+------+----------------------------------+
		"""
		kwargs.setdefault("opts", {})["create"] = create
		
		args = (str(root), name, str(ref),)
		return self._client.request('/object/patch/add-link', args, decoder='json', **kwargs)
def add_link ( self , root : base . cid_t , name : str , ref : base . cid_t , create : bool = False , * * kwargs : base . CommonArgs ) : kwargs . setdefault ( "opts" , { } ) [ "create" ] = create args = ( str ( root ) , name , str ( ref ) , ) return self . _client . request ( '/object/patch/add-link' , args , decoder = 'json' , * * kwargs )