Skip to content

Commit 949398a

Browse files
authored
removing connection preview (Azure#38740)
1 parent e6dabc5 commit 949398a

File tree

3 files changed

+26
-30
lines changed

3 files changed

+26
-30
lines changed

sdk/ml/azure-ai-ml/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
### Features Added
55
- Added support for IP-based access control to default and hub workspaces.
66
- Add support for additional include in spark component.
7+
- Removing preview tag for following connections type
8+
- Azure AI Search
9+
- Azure AI Content Safety
10+
- Azure AI Speech
11+
- Azure Blob Storage
12+
- Microsoft OneLake
713

814
### Bugs Fixed
915

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_load_functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,6 @@ def load_batch_endpoint(
803803
return cast(BatchEndpoint, load_common(BatchEndpoint, source, relative_origin, params_override, **kwargs))
804804

805805

806-
@experimental
807806
def load_connection(
808807
source: Union[str, PathLike, IO[AnyStr]],
809808
*,

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/connections/connection_subtypes.py

Lines changed: 20 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,44 @@
44

55
# pylint: disable=protected-access
66

7-
from typing import Any, List, Optional, Type, Union, Dict
87
import re
8+
from typing import Any, Dict, List, Optional, Type, Union
99

1010
from azure.ai.ml._restclient.v2024_04_01_preview.models import ConnectionCategory
11-
from azure.ai.ml._utils.utils import camel_to_snake
12-
from azure.ai.ml._utils._experimental import experimental
13-
from azure.ai.ml.constants._common import (
14-
CONNECTION_API_VERSION_KEY,
15-
CONNECTION_API_TYPE_KEY,
16-
CONNECTION_KIND_KEY,
17-
CONNECTION_ACCOUNT_NAME_KEY,
18-
CONNECTION_CONTAINER_NAME_KEY,
19-
CONNECTION_RESOURCE_ID_KEY,
20-
ConnectionTypes,
21-
CognitiveServiceKinds,
22-
)
23-
from azure.ai.ml.entities._credentials import (
24-
ApiKeyConfiguration,
25-
AadCredentialConfiguration,
26-
)
27-
2811
from azure.ai.ml._schema.workspace.connections.connection_subtypes import (
29-
AzureBlobStoreConnectionSchema,
30-
MicrosoftOneLakeConnectionSchema,
31-
AzureOpenAIConnectionSchema,
32-
AzureAIServicesConnectionSchema,
12+
APIKeyConnectionSchema,
3313
AzureAISearchConnectionSchema,
14+
AzureAIServicesConnectionSchema,
15+
AzureBlobStoreConnectionSchema,
3416
AzureContentSafetyConnectionSchema,
17+
AzureOpenAIConnectionSchema,
3518
AzureSpeechServicesConnectionSchema,
36-
APIKeyConnectionSchema,
19+
MicrosoftOneLakeConnectionSchema,
3720
OpenAIConnectionSchema,
3821
SerpConnectionSchema,
3922
ServerlessConnectionSchema,
4023
)
24+
from azure.ai.ml._utils._experimental import experimental
25+
from azure.ai.ml._utils.utils import camel_to_snake
26+
from azure.ai.ml.constants._common import (
27+
CONNECTION_ACCOUNT_NAME_KEY,
28+
CONNECTION_API_TYPE_KEY,
29+
CONNECTION_API_VERSION_KEY,
30+
CONNECTION_CONTAINER_NAME_KEY,
31+
CONNECTION_KIND_KEY,
32+
CONNECTION_RESOURCE_ID_KEY,
33+
CognitiveServiceKinds,
34+
ConnectionTypes,
35+
)
36+
from azure.ai.ml.entities._credentials import AadCredentialConfiguration, ApiKeyConfiguration
37+
4138
from .one_lake_artifacts import OneLakeConnectionArtifact
4239
from .workspace_connection import WorkspaceConnection
4340

44-
4541
# Dev notes: Any new classes require modifying the elif chains in the following functions in the
4642
# WorkspaceConnection parent class: _from_rest_object, _get_entity_class_from_type, _get_schema_class_from_type
4743

4844

49-
@experimental
5045
class AzureBlobStoreConnection(WorkspaceConnection):
5146
"""A connection to an Azure Blob Store.
5247
@@ -153,7 +148,6 @@ def account_name(self, value: str) -> None:
153148
# difficult for customers to find out what the target for their system ought to be.
154149
# Due to this, we construct the target internally by composing more inputs
155150
# that are more user-accessible.
156-
@experimental
157151
class MicrosoftOneLakeConnection(WorkspaceConnection):
158152
"""A connection to a Microsoft One Lake. Connections of this type
159153
are further specified by their artifact class type, although
@@ -488,7 +482,6 @@ def ai_services_resource_id(self, value: str) -> None:
488482
self.metadata[CONNECTION_RESOURCE_ID_KEY] = value
489483

490484

491-
@experimental
492485
class AzureAISearchConnection(ApiOrAadConnection):
493486
"""A Connection that is specifically designed for handling connections to
494487
Azure AI Search.
@@ -527,7 +520,6 @@ def _get_schema_class(cls) -> Type:
527520
return AzureAISearchConnectionSchema
528521

529522

530-
@experimental
531523
class AzureContentSafetyConnection(ApiOrAadConnection):
532524
"""A Connection geared towards a Azure Content Safety service.
533525
@@ -570,7 +562,6 @@ def _get_schema_class(cls) -> Type:
570562
return AzureContentSafetyConnectionSchema
571563

572564

573-
@experimental
574565
class AzureSpeechServicesConnection(ApiOrAadConnection):
575566
"""A Connection geared towards an Azure Speech service.
576567

0 commit comments

Comments
 (0)