File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ def create_link(
203203 output_id : str ,
204204 output_type : str ,
205205 link_name : Optional [str ] = None ,
206+ data : Optional [dict [str , Any ]] = None ,
206207 ) -> CreateLinkData :
207208 """Create link between 2 entities.
208209
@@ -222,7 +223,8 @@ def create_link(
222223 output_id (str): Output entity id.
223224 output_type (str): Entity type of output entity.
224225 link_name (Optional[str]): Name of link.
225- Available from server version '1.0.0-rc.6'.
226+ data (Optional[dict[str, Any]]): Additional data to be stored
227+ with the link.
226228
227229 Returns:
228230 CreateLinkData: Information about link.
@@ -242,6 +244,9 @@ def create_link(
242244 if link_name :
243245 kwargs ["name" ] = link_name
244246
247+ if data :
248+ kwargs ["data" ] = data
249+
245250 response = self .post (
246251 f"projects/{ project_name } /links" , ** kwargs
247252 )
You can’t perform that action at this time.
0 commit comments