cognite-sdk-python icon indicating copy to clipboard operation
cognite-sdk-python copied to clipboard

ThreeDAssetMappingAPI.delete() to accept cognite.client.data_classes.three_d.ThreeDAssetMappingList

Open oholsen opened this issue 3 years ago • 0 comments

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])

oholsen avatar Aug 30 '22 08:08 oholsen