From 4a399722c433b4c30dea4ad6c9f309a64c072551 Mon Sep 17 00:00:00 2001 From: Darren Cohen <39422044+dargilco@users.noreply.github.com> Date: Wed, 14 May 2025 21:01:33 -0700 Subject: [PATCH] manually remove unused services pattern classes from emitted code --- .../azure/ai/projects/_client.py | 6 ---- .../azure/ai/projects/aio/_client.py | 6 ---- .../ai/projects/aio/operations/__init__.py | 2 -- .../ai/projects/aio/operations/_operations.py | 18 ---------- .../azure/ai/projects/operations/__init__.py | 2 -- .../ai/projects/operations/_operations.py | 18 ---------- .../ai/projects/servicepatterns/__init__.py | 1 - .../projects/servicepatterns/aio/__init__.py | 1 - .../aio/operations/__init__.py | 25 -------------- .../aio/operations/_operations.py | 34 ------------------- .../servicepatterns/aio/operations/_patch.py | 20 ----------- .../buildingblocks/__init__.py | 1 - .../buildingblocks/aio/__init__.py | 1 - .../buildingblocks/aio/operations/__init__.py | 22 ------------ .../aio/operations/_operations.py | 29 ---------------- .../buildingblocks/aio/operations/_patch.py | 20 ----------- .../buildingblocks/operations/__init__.py | 22 ------------ .../buildingblocks/operations/_operations.py | 29 ---------------- .../buildingblocks/operations/_patch.py | 20 ----------- .../servicepatterns/operations/__init__.py | 25 -------------- .../servicepatterns/operations/_operations.py | 34 ------------------- .../servicepatterns/operations/_patch.py | 20 ----------- 22 files changed, 356 deletions(-) delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/__init__.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/__init__.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/__init__.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/_operations.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/_patch.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/__init__.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/__init__.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/__init__.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/_operations.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/_patch.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/__init__.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/_operations.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/_patch.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/__init__.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/_operations.py delete mode 100644 sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/_patch.py diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/_client.py b/sdk/ai/azure-ai-projects/azure/ai/projects/_client.py index 71ab105215bb..217cb41b875a 100644 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/_client.py +++ b/sdk/ai/azure-ai-projects/azure/ai/projects/_client.py @@ -23,7 +23,6 @@ EvaluationsOperations, IndexesOperations, RedTeamsOperations, - ServicePatternsOperations, ) if TYPE_CHECKING: @@ -33,8 +32,6 @@ class AIProjectClient: # pylint: disable=too-many-instance-attributes """AIProjectClient. - :ivar service_patterns: ServicePatternsOperations operations - :vartype service_patterns: azure.ai.projects.operations.ServicePatternsOperations :ivar connections: ConnectionsOperations operations :vartype connections: azure.ai.projects.operations.ConnectionsOperations :ivar evaluations: EvaluationsOperations operations @@ -89,9 +86,6 @@ def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) self._serialize = Serializer() self._deserialize = Deserializer() self._serialize.client_side_validation = False - self.service_patterns = ServicePatternsOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.connections = ConnectionsOperations(self._client, self._config, self._serialize, self._deserialize) self.evaluations = EvaluationsOperations(self._client, self._config, self._serialize, self._deserialize) self.datasets = DatasetsOperations(self._client, self._config, self._serialize, self._deserialize) diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/aio/_client.py b/sdk/ai/azure-ai-projects/azure/ai/projects/aio/_client.py index f43f7427592e..7fc978f8c178 100644 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/aio/_client.py +++ b/sdk/ai/azure-ai-projects/azure/ai/projects/aio/_client.py @@ -23,7 +23,6 @@ EvaluationsOperations, IndexesOperations, RedTeamsOperations, - ServicePatternsOperations, ) if TYPE_CHECKING: @@ -33,8 +32,6 @@ class AIProjectClient: # pylint: disable=too-many-instance-attributes """AIProjectClient. - :ivar service_patterns: ServicePatternsOperations operations - :vartype service_patterns: azure.ai.projects.aio.operations.ServicePatternsOperations :ivar connections: ConnectionsOperations operations :vartype connections: azure.ai.projects.aio.operations.ConnectionsOperations :ivar evaluations: EvaluationsOperations operations @@ -89,9 +86,6 @@ def __init__(self, endpoint: str, credential: "AsyncTokenCredential", **kwargs: self._serialize = Serializer() self._deserialize = Deserializer() self._serialize.client_side_validation = False - self.service_patterns = ServicePatternsOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.connections = ConnectionsOperations(self._client, self._config, self._serialize, self._deserialize) self.evaluations = EvaluationsOperations(self._client, self._config, self._serialize, self._deserialize) self.datasets = DatasetsOperations(self._client, self._config, self._serialize, self._deserialize) diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/__init__.py index c8b497b4854b..3cfd5a29391a 100644 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/__init__.py +++ b/sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/__init__.py @@ -12,7 +12,6 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._operations import ServicePatternsOperations # type: ignore from ._operations import ConnectionsOperations # type: ignore from ._operations import EvaluationsOperations # type: ignore from ._operations import DatasetsOperations # type: ignore @@ -25,7 +24,6 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ServicePatternsOperations", "ConnectionsOperations", "EvaluationsOperations", "DatasetsOperations", diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_operations.py b/sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_operations.py index 8861197c4813..45f5d3d15a03 100644 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_operations.py +++ b/sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_operations.py @@ -67,24 +67,6 @@ JSON = MutableMapping[str, Any] -class ServicePatternsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.ai.projects.aio.AIProjectClient`'s - :attr:`service_patterns` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AIProjectClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - class ConnectionsOperations: """ .. warning:: diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/operations/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/operations/__init__.py index c8b497b4854b..3cfd5a29391a 100644 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/operations/__init__.py +++ b/sdk/ai/azure-ai-projects/azure/ai/projects/operations/__init__.py @@ -12,7 +12,6 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._operations import ServicePatternsOperations # type: ignore from ._operations import ConnectionsOperations # type: ignore from ._operations import EvaluationsOperations # type: ignore from ._operations import DatasetsOperations # type: ignore @@ -25,7 +24,6 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ - "ServicePatternsOperations", "ConnectionsOperations", "EvaluationsOperations", "DatasetsOperations", diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/operations/_operations.py b/sdk/ai/azure-ai-projects/azure/ai/projects/operations/_operations.py index 4b1061323a0c..de607445c337 100644 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/operations/_operations.py +++ b/sdk/ai/azure-ai-projects/azure/ai/projects/operations/_operations.py @@ -623,24 +623,6 @@ def build_red_teams_create_request(**kwargs: Any) -> HttpRequest: return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -class ServicePatternsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.ai.projects.AIProjectClient`'s - :attr:`service_patterns` attribute. - """ - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AIProjectClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - class ConnectionsOperations: """ .. warning:: diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/__init__.py deleted file mode 100644 index d55ccad1f573..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/__init__.py deleted file mode 100644 index d55ccad1f573..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/__init__.py deleted file mode 100644 index 73d7e533e421..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# pylint: disable=wrong-import-position - -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - from ._patch import * # pylint: disable=unused-wildcard-import - -from ._operations import ServicePatternsOperations # type: ignore - -from ._patch import __all__ as _patch_all -from ._patch import * -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicePatternsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore -_patch_sdk() diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/_operations.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/_operations.py deleted file mode 100644 index 7a254e8234ef..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/_operations.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from azure.core import AsyncPipelineClient - -from ...._serialization import Deserializer, Serializer -from ....aio._configuration import AIProjectClientConfiguration -from ...buildingblocks.aio.operations._operations import ServicePatternsBuildingBlocksOperations - - -class ServicePatternsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.ai.projects.aio.AIProjectClient`'s - :attr:`service_patterns` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AIProjectClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - self.building_blocks = ServicePatternsBuildingBlocksOperations( - self._client, self._config, self._serialize, self._deserialize - ) diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/_patch.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/_patch.py deleted file mode 100644 index f7dd32510333..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/__init__.py deleted file mode 100644 index d55ccad1f573..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/__init__.py deleted file mode 100644 index d55ccad1f573..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/__init__.py deleted file mode 100644 index 933fcd7d1b55..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# pylint: disable=wrong-import-position - -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - from ._patch import * # pylint: disable=unused-wildcard-import - - -from ._patch import __all__ as _patch_all -from ._patch import * -from ._patch import patch_sdk as _patch_sdk - -__all__ = [] -__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore -_patch_sdk() diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/_operations.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/_operations.py deleted file mode 100644 index 1fe29af2283d..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/_operations.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from azure.core import AsyncPipelineClient - -from ....._serialization import Deserializer, Serializer -from .....aio._configuration import AIProjectClientConfiguration - - -class ServicePatternsBuildingBlocksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.ai.projects.aio.AIProjectClient`'s - :attr:`building_blocks` attribute. - """ - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AIProjectClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/_patch.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/_patch.py deleted file mode 100644 index f7dd32510333..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/__init__.py deleted file mode 100644 index 933fcd7d1b55..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# pylint: disable=wrong-import-position - -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - from ._patch import * # pylint: disable=unused-wildcard-import - - -from ._patch import __all__ as _patch_all -from ._patch import * -from ._patch import patch_sdk as _patch_sdk - -__all__ = [] -__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore -_patch_sdk() diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/_operations.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/_operations.py deleted file mode 100644 index 85dbf085c333..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/_operations.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from azure.core import PipelineClient - -from ...._configuration import AIProjectClientConfiguration -from ...._serialization import Deserializer, Serializer - - -class ServicePatternsBuildingBlocksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.ai.projects.AIProjectClient`'s - :attr:`building_blocks` attribute. - """ - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AIProjectClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/_patch.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/_patch.py deleted file mode 100644 index f7dd32510333..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/buildingblocks/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/__init__.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/__init__.py deleted file mode 100644 index 73d7e533e421..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -# pylint: disable=wrong-import-position - -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - from ._patch import * # pylint: disable=unused-wildcard-import - -from ._operations import ServicePatternsOperations # type: ignore - -from ._patch import __all__ as _patch_all -from ._patch import * -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicePatternsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore -_patch_sdk() diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/_operations.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/_operations.py deleted file mode 100644 index a72bb6287da1..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/_operations.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) Python Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from azure.core import PipelineClient - -from ..._configuration import AIProjectClientConfiguration -from ..._serialization import Deserializer, Serializer -from ..buildingblocks.operations._operations import ServicePatternsBuildingBlocksOperations - - -class ServicePatternsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.ai.projects.AIProjectClient`'s - :attr:`service_patterns` attribute. - """ - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: AIProjectClientConfiguration = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - self.building_blocks = ServicePatternsBuildingBlocksOperations( - self._client, self._config, self._serialize, self._deserialize - ) diff --git a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/_patch.py b/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/_patch.py deleted file mode 100644 index f7dd32510333..000000000000 --- a/sdk/ai/azure-ai-projects/azure/ai/projects/servicepatterns/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """