9
9
# regenerated.
10
10
# --------------------------------------------------------------------------
11
11
12
- from typing import TYPE_CHECKING
13
-
14
- from msrest import Deserializer , Serializer
12
+ from typing import Any , Optional , TYPE_CHECKING
15
13
16
14
from azure .mgmt .core import ARMPipelineClient
17
15
from azure .profiles import KnownProfiles , ProfileDefinition
18
16
from azure .profiles .multiapiclient import MultiApiClientMixin
19
17
20
18
from ._configuration import ChangesClientConfiguration
19
+ from ._serialization import Deserializer , Serializer
21
20
22
21
if TYPE_CHECKING :
23
22
# pylint: disable=unused-import,ungrouped-imports
24
- from typing import Any , Optional
25
-
26
23
from azure .core .credentials import TokenCredential
27
24
28
25
class _SDKClient (object ):
@@ -43,9 +40,9 @@ class ChangesClient(MultiApiClientMixin, _SDKClient):
43
40
The api-version parameter sets the default API version if the operation
44
41
group is not described in the profile.
45
42
46
- :param credential: Credential needed for the client to connect to Azure.
43
+ :param credential: Credential needed for the client to connect to Azure. Required.
47
44
:type credential: ~azure.core.credentials.TokenCredential
48
- :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
45
+ :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.
49
46
:type subscription_id: str
50
47
:param api_version: API version to use if no profile is provided, or if missing in profile.
51
48
:type api_version: str
@@ -66,10 +63,10 @@ class ChangesClient(MultiApiClientMixin, _SDKClient):
66
63
67
64
def __init__ (
68
65
self ,
69
- credential , # type : "TokenCredential"
70
- subscription_id , # type : str
66
+ credential : "TokenCredential" ,
67
+ subscription_id : str ,
71
68
api_version = None , # type: Optional[str]
72
- base_url = "https://management.azure.com" , # type: str
69
+ base_url : str = "https://management.azure.com" ,
73
70
profile = KnownProfiles .default , # type: KnownProfiles
74
71
** kwargs # type: Any
75
72
):
@@ -106,6 +103,7 @@ def changes(self):
106
103
from .v2022_05_01 .operations import ChangesOperations as OperationClass
107
104
else :
108
105
raise ValueError ("API version {} does not have operation group 'changes'" .format (api_version ))
106
+ self ._config .api_version = api_version
109
107
return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
110
108
111
109
def close (self ):
0 commit comments