Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oholsen opened this issue Aug 30, 2022 · 0 comments

Comments

@oholsen
Copy link
Contributor

oholsen commented Aug 30, 2022

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])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant