9
9
from copy import deepcopy
10
10
from typing import Any , TYPE_CHECKING
11
11
12
- from msrest import Deserializer , Serializer
13
-
14
12
from azure .core .rest import HttpRequest , HttpResponse
15
13
from azure .mgmt .core import ARMPipelineClient
16
14
17
15
from . import models
18
16
from ._configuration import AzureStackHCIClientConfiguration
17
+ from ._serialization import Deserializer , Serializer
19
18
from .operations import ArcSettingsOperations , ClustersOperations , ExtensionsOperations , Operations
20
19
21
20
if TYPE_CHECKING :
22
21
# pylint: disable=unused-import,ungrouped-imports
23
22
from azure .core .credentials import TokenCredential
24
23
25
- class AzureStackHCIClient :
24
+
25
+ class AzureStackHCIClient : # pylint: disable=client-accepts-api-version-keyword
26
26
"""Azure Stack HCI management service.
27
27
28
28
:ivar arc_settings: ArcSettingsOperations operations
@@ -33,13 +33,13 @@ class AzureStackHCIClient:
33
33
:vartype extensions: azure.mgmt.azurestackhci.operations.ExtensionsOperations
34
34
:ivar operations: Operations operations
35
35
:vartype operations: azure.mgmt.azurestackhci.operations.Operations
36
- :param credential: Credential needed for the client to connect to Azure.
36
+ :param credential: Credential needed for the client to connect to Azure. Required.
37
37
:type credential: ~azure.core.credentials.TokenCredential
38
- :param subscription_id: The ID of the target subscription.
38
+ :param subscription_id: The ID of the target subscription. Required.
39
39
:type subscription_id: str
40
40
:param base_url: Service URL. Default value is "https://management.azure.com".
41
41
:type base_url: str
42
- :keyword api_version: Api Version. Default value is "2022-05 -01". Note that overriding this
42
+ :keyword api_version: Api Version. Default value is "2022-09 -01". Note that overriding this
43
43
default value may result in unsupported behavior.
44
44
:paramtype api_version: str
45
45
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -53,7 +53,9 @@ def __init__(
53
53
base_url : str = "https://management.azure.com" ,
54
54
** kwargs : Any
55
55
) -> None :
56
- self ._config = AzureStackHCIClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
56
+ self ._config = AzureStackHCIClientConfiguration (
57
+ credential = credential , subscription_id = subscription_id , ** kwargs
58
+ )
57
59
self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
58
60
59
61
client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
@@ -65,12 +67,7 @@ def __init__(
65
67
self .extensions = ExtensionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
66
68
self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
67
69
68
-
69
- def _send_request (
70
- self ,
71
- request : HttpRequest ,
72
- ** kwargs : Any
73
- ) -> HttpResponse :
70
+ def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
74
71
"""Runs the network request through the client's chained policies.
75
72
76
73
>>> from azure.core.rest import HttpRequest
@@ -79,7 +76,7 @@ def _send_request(
79
76
>>> response = client._send_request(request)
80
77
<HttpResponse: 200 OK>
81
78
82
- For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
79
+ For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/ python/send_request
83
80
84
81
:param request: The network request you want to make. Required.
85
82
:type request: ~azure.core.rest.HttpRequest
0 commit comments