Skip to main content

update_storage_item_cloud_info

def update_storage_item_cloud_info(
        user_client: EncordUserClient,
        item: Union[StorageItem, UUID, str],
        new_url: Optional[str] = None,
        new_cloud_integration: Optional[Union[CloudIntegration, str,
                                              UUID]] = None,
        from_cloud_integration: Optional[Union[CloudIntegration, str,
                                               UUID]] = None,
        verify_access: bool = True,
        skip_missing: bool = False,
        bundle: Optional[Bundle] = None) -> None
Update the cloud storage information of a storage item. This can be used to avoid re-importing data when the cloud configuration changes (and thus the data is accessible through a different cloud integration), or if the data has been moved to a different location (and thus the URL has changed). Arguments:
  • user_client: The user client to use.
  • item: The item to update. Can be either a StorageItem instance, the itemโ€™s UUID, or the URL of the item.
  • new_url: The new URL to set. URL will be left unchanged if None is passed.
  • new_cloud_integration: The new cloud integration to set. Cloud integration will be left unchanged if None is passed.
  • from_cloud_integration: The cloud integration to update from. Acts as a check: no update will be performed if cloud integration of the item does not match this value. If None, the check will be skipped.
  • verify_access: Whether to verify access to the item.
  • skip_missing: if true, no error will be raised if the item is not found. Otherwise, the operation (and the operations in the same bundle) will be cancelled and an error will be raised.
  • bundle: The optional :class:encord.http.bundle.Bundle instance used to group updates into bulk calls.