Skip to content

Commit 153e40b

Browse files
author
Suganth Sadaiyappan
committed
fix return type
1 parent 8f94488 commit 153e40b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nisystemlink/clients/assetmanagement/_asset_management_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,16 @@ def delete_assets(self, ids: List[str]) -> models.DeleteAssetsResponse:
126126
@post("assets/{assetId}/file", args=[Path("assetId"), Field("fileIds")])
127127
def link_files(
128128
self, asset_id: str, file_ids: List[str]
129-
) -> models.LinkFilesPartialSuccessResponse:
129+
) -> Optional[models.LinkFilesPartialSuccessResponse]:
130130
"""Link files to an asset.
131131
132132
Args:
133133
asset_id: The ID of the asset to which files should be linked.
134134
file_ids: The list of file IDs to link.
135135
136136
Returns:
137-
LinkFilesPartialSuccessResponse: Response containing the results of the link operation.
137+
Optional[LinkFilesPartialSuccessResponse]: None if all link files succeed, otherwise a response
138+
containing the IDs of files that were successfully linked and those that failed.
138139
139140
Raises:
140141
ApiException: If unable to communicate with the asset management service or if there are invalid arguments.

0 commit comments

Comments
 (0)