88
99from copy import deepcopy
1010from typing import Any , TYPE_CHECKING
11+ from typing_extensions import Self
1112
1213from azure .core .pipeline import policies
1314from azure .core .rest import HttpRequest , HttpResponse
1920from ._serialization import Deserializer , Serializer
2021from .operations import (
2122 AdminKeysOperations ,
22- NetworkSecurityPerimeterConfigurationsOperations ,
2323 Operations ,
2424 PrivateEndpointConnectionsOperations ,
2525 PrivateLinkResourcesOperations ,
3131)
3232
3333if TYPE_CHECKING :
34- # pylint: disable=unused-import,ungrouped-imports
3534 from azure .core .credentials import TokenCredential
3635
3736
38- class SearchManagementClient (
39- SearchManagementClientOperationsMixin
40- ): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
41- """Client that can be used to manage Azure AI Search services and API keys.
37+ class SearchManagementClient (SearchManagementClientOperationsMixin ): # pylint: disable=too-many-instance-attributes
38+ """Client that can be used to manage search services and API keys.
4239
4340 :ivar operations: Operations operations
4441 :vartype operations: azure.mgmt.search.operations.Operations
@@ -58,19 +55,16 @@ class SearchManagementClient(
5855 azure.mgmt.search.operations.SharedPrivateLinkResourcesOperations
5956 :ivar usages: UsagesOperations operations
6057 :vartype usages: azure.mgmt.search.operations.UsagesOperations
61- :ivar network_security_perimeter_configurations:
62- NetworkSecurityPerimeterConfigurationsOperations operations
63- :vartype network_security_perimeter_configurations:
64- azure.mgmt.search.operations.NetworkSecurityPerimeterConfigurationsOperations
6558 :param credential: Credential needed for the client to connect to Azure. Required.
6659 :type credential: ~azure.core.credentials.TokenCredential
6760 :param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
68- obtain this value from the Azure Resource Manager API or the portal. Required.
61+ obtain this value from the Azure Resource Manager API, command line tools, or the portal.
62+ Required.
6963 :type subscription_id: str
7064 :param base_url: Service URL. Default value is "https://management.azure.com".
7165 :type base_url: str
72- :keyword api_version: Api Version. Default value is "2024-06 -01-preview ". Note that overriding
73- this default value may result in unsupported behavior.
66+ :keyword api_version: Api Version. Default value is "2025-05 -01". Note that overriding this
67+ default value may result in unsupported behavior.
7468 :paramtype api_version: str
7569 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7670 Retry-After header is present.
@@ -124,9 +118,6 @@ def __init__(
124118 self ._client , self ._config , self ._serialize , self ._deserialize
125119 )
126120 self .usages = UsagesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
127- self .network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations (
128- self ._client , self ._config , self ._serialize , self ._deserialize
129- )
130121
131122 def _send_request (self , request : HttpRequest , * , stream : bool = False , ** kwargs : Any ) -> HttpResponse :
132123 """Runs the network request through the client's chained policies.
@@ -153,7 +144,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
153144 def close (self ) -> None :
154145 self ._client .close ()
155146
156- def __enter__ (self ) -> "SearchManagementClient" :
147+ def __enter__ (self ) -> Self :
157148 self ._client .__enter__ ()
158149 return self
159150
0 commit comments