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

Get cloud integrations mark deprecated #830

Merged
merged 2 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions encord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def __init__(self, querier: Querier, config: Config, api_client: ApiClient):
self._config = config
self._api_client = api_client

@deprecated(version="0.1.154", alternative="EncordUserClient.get_cloud_integrations")
def get_cloud_integrations(self) -> List[CloudIntegration]:
return [
CloudIntegration(
Expand Down
2 changes: 2 additions & 0 deletions encord/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from uuid import UUID

from encord.client import EncordClientDataset
from encord.common.deprecated import deprecated
from encord.constants.enums import DataType
from encord.http.utils import CloudUploadSettings
from encord.orm.cloud_integration import CloudIntegration
Expand Down Expand Up @@ -518,6 +519,7 @@ def run_ocr(self, image_group_id: str) -> List[ImageGroupOCR]:
"""
return self._client.run_ocr(image_group_id)

@deprecated(version="0.1.154", alternative="EncordUserClient.get_cloud_integrations")
def get_cloud_integrations(self) -> List[CloudIntegration]:
"""
Retrieve a list of cloud integrations configured in Encord.
Expand Down
1 change: 1 addition & 0 deletions encord/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ def get_label_logs(
user_email,
)

@deprecated(version="0.1.154", alternative="EncordUserClient.get_cloud_integrations")
def get_cloud_integrations(self) -> List[CloudIntegration]:
"""
Get the list of cloud integrations.
Expand Down
Loading