Skip to content

Commit

Permalink
Get cloud integrations mark deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-encord committed Jan 3, 2025
1 parent e6715e0 commit b2165d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
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

0 comments on commit b2165d3

Please sign in to comment.