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
2627 FileWorkspacesOperations ,
2728 FilesNoSubscriptionOperations ,
2829 FilesOperations ,
30+ LookUpResourceIdOperations ,
2931 Operations ,
32+ ProblemClassificationsNoSubscriptionOperations ,
3033 ProblemClassificationsOperations ,
34+ ServiceClassificationsNoSubscriptionOperations ,
35+ ServiceClassificationsOperations ,
3136 ServicesOperations ,
3237 SupportTicketsNoSubscriptionOperations ,
3338 SupportTicketsOperations ,
3439)
3540
3641if TYPE_CHECKING :
37- # pylint: disable=unused-import,ungrouped-imports
3842 from azure .core .credentials import TokenCredential
3943
4044
41- class MicrosoftSupport : # pylint: disable=client-accepts-api-version-keyword, too-many-instance-attributes
45+ class MicrosoftSupport : # pylint: disable=too-many-instance-attributes
4246 """Microsoft Azure Support Resource Provider.
4347
4448 :ivar operations: Operations operations
4549 :vartype operations: azure.mgmt.support.operations.Operations
4650 :ivar services: ServicesOperations operations
4751 :vartype services: azure.mgmt.support.operations.ServicesOperations
52+ :ivar service_classifications_no_subscription: ServiceClassificationsNoSubscriptionOperations
53+ operations
54+ :vartype service_classifications_no_subscription:
55+ azure.mgmt.support.operations.ServiceClassificationsNoSubscriptionOperations
56+ :ivar service_classifications: ServiceClassificationsOperations operations
57+ :vartype service_classifications:
58+ azure.mgmt.support.operations.ServiceClassificationsOperations
59+ :ivar problem_classifications_no_subscription: ProblemClassificationsNoSubscriptionOperations
60+ operations
61+ :vartype problem_classifications_no_subscription:
62+ azure.mgmt.support.operations.ProblemClassificationsNoSubscriptionOperations
4863 :ivar problem_classifications: ProblemClassificationsOperations operations
4964 :vartype problem_classifications:
5065 azure.mgmt.support.operations.ProblemClassificationsOperations
@@ -72,14 +87,16 @@ class MicrosoftSupport: # pylint: disable=client-accepts-api-version-keyword,to
7287 :vartype files: azure.mgmt.support.operations.FilesOperations
7388 :ivar files_no_subscription: FilesNoSubscriptionOperations operations
7489 :vartype files_no_subscription: azure.mgmt.support.operations.FilesNoSubscriptionOperations
90+ :ivar look_up_resource_id: LookUpResourceIdOperations operations
91+ :vartype look_up_resource_id: azure.mgmt.support.operations.LookUpResourceIdOperations
7592 :param credential: Credential needed for the client to connect to Azure. Required.
7693 :type credential: ~azure.core.credentials.TokenCredential
7794 :param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
7895 :type subscription_id: str
7996 :param base_url: Service URL. Default value is "https://management.azure.com".
8097 :type base_url: str
81- :keyword api_version: Api Version. Default value is "2024-04 -01". Note that overriding this
82- default value may result in unsupported behavior.
98+ :keyword api_version: Api Version. Default value is "2023-06 -01-preview ". Note that overriding
99+ this default value may result in unsupported behavior.
83100 :paramtype api_version: str
84101 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
85102 Retry-After header is present.
@@ -119,6 +136,15 @@ def __init__(
119136 self ._serialize .client_side_validation = False
120137 self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
121138 self .services = ServicesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
139+ self .service_classifications_no_subscription = ServiceClassificationsNoSubscriptionOperations (
140+ self ._client , self ._config , self ._serialize , self ._deserialize
141+ )
142+ self .service_classifications = ServiceClassificationsOperations (
143+ self ._client , self ._config , self ._serialize , self ._deserialize
144+ )
145+ self .problem_classifications_no_subscription = ProblemClassificationsNoSubscriptionOperations (
146+ self ._client , self ._config , self ._serialize , self ._deserialize
147+ )
122148 self .problem_classifications = ProblemClassificationsOperations (
123149 self ._client , self ._config , self ._serialize , self ._deserialize
124150 )
@@ -144,6 +170,9 @@ def __init__(
144170 self .files_no_subscription = FilesNoSubscriptionOperations (
145171 self ._client , self ._config , self ._serialize , self ._deserialize
146172 )
173+ self .look_up_resource_id = LookUpResourceIdOperations (
174+ self ._client , self ._config , self ._serialize , self ._deserialize
175+ )
147176
148177 def _send_request (self , request : HttpRequest , * , stream : bool = False , ** kwargs : Any ) -> HttpResponse :
149178 """Runs the network request through the client's chained policies.
@@ -170,7 +199,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
170199 def close (self ) -> None :
171200 self ._client .close ()
172201
173- def __enter__ (self ) -> "MicrosoftSupport" :
202+ def __enter__ (self ) -> Self :
174203 self ._client .__enter__ ()
175204 return self
176205
0 commit comments