The following methods are deprecated since: 30/04/2020. The following methods will be removed after: 30/05/2020.
- MutationsAsset
- `delete_assets_by_external_id(self, project_id: str, external_id: str)`:
delete_assets_by_external_id used to delete some assets matchin on external ID. It is now achievable with get_assets and delete_many_from_dataset.
To fetch an asset from its ID, use: `> playground.delete_many_from_dataset(asset_ids=[a['id'] for a in assets])`
- QueriesAsset
- `get_asset(self, asset_id: str)`:
get_asset used to fetch an asset from its ID. It is now achievable with assets.
To fetch an asset from its ID, use: `> playground.assets(asset_id=asset_id)`
- `get_assets(self, project_id: str)`:
get_assets used to fetch assets. It is now achievable with assets.
To fetch assets, use: `> playground.assets(project_id=project_id)`
- `get_assets_by_external_id(self, project_id: str, external_id: str)`:
get_assets_by_external_id used to fetch assets from an external_id. It is now achievable with assets.
To fetch assets from and external_id, use: `> playground.assets(project_id=project_id, external_id_contains=[external_id])`
- `get_next_asset_from_label(self, label_asset_ids: List[str])`
- `get_next_asset_from_project(self, project_id: str)`
- `export_assets(self, project_id: str)`:
export_assets used to fetch assets from a project. It is now achievable with assets.
To fetch assets from a project, use: `> playground.assets(project_id=project_id)`
- QueriesLabel
- `get_label(self, asset_id: str, user_id: str)`:
get_label used to fetch labels from an asset_id and a user_id. It is now achievable with labels.
To fetch labels from an asset_id and a user_id, use: `> playground.labels(asset_id=asset_id, user_id=user_id)`
- `get_latest_labels_for_user(self, project_id: str, user_id: str)`:
get_latest_labels_for_user used to fetch labels from a project_id and a user_id. It is now achievable with labels.
To fetch labels from a project_id and a user_id, use: `> playground.labels(project_id=project_id, user_id=user_id)`
- `get_latest_labels(self, project_id: str, skip: int, first: int)`:
get_latest_labels used to fetch labels from a project_id. It is now achievable with labels.
To fetch labels from a project_id, use: `> playground.labels(project_id=project_id, first=first, skip=skip)`
- QueriesProject
- `get_projects(self, user_id: str, search_query: str = None, skip: int = 0, first: int = 100)`:
get_projects used to fetch projects. It is now achievable with projects. It will be removed on June 1st.
To fetch projects, use: `> playground.projects(search_query=search_query, skip=skip, first=first)`
- `get_project(self, project_id: str)`:
get_project used to fetch a project. It is now achievable with projects. It will be removed on June 1st.
To fetch projects, use: `> playground.projects(project_id=project_id)`