cognite-sdk-python
cognite-sdk-python copied to clipboard
ThreeDAssetMappingAPI.delete() to accept cognite.client.data_classes.three_d.ThreeDAssetMappingList
System information (please complete the following information):
SDK Version: name = "cognite-sdk-core" version = "2.56.1"
Describe the solution you'd like
To be able to delete the asset mapping directly as returned from list().
Describe alternatives you've considered
Workaround by converting to a list:
asset_mappings = client.three_d.asset_mappings.list(model_id=model.id, revision_id=revision.id, limit=1000)
client.three_d.asset_mappings.delete(model_id=model.id, revision_id=revision.id, asset_mapping=[a for a in asset_mappings])