99from copy import deepcopy
1010from typing import Any , TYPE_CHECKING
1111
12- from msrest import Deserializer , Serializer
13-
1412from azure .core .rest import HttpRequest , HttpResponse
1513from azure .mgmt .core import ARMPipelineClient
1614
1715from . import models
1816from ._configuration import BatchManagementClientConfiguration
19- from .operations import ApplicationOperations , ApplicationPackageOperations , BatchAccountOperations , CertificateOperations , LocationOperations , Operations , PoolOperations , PrivateEndpointConnectionOperations , PrivateLinkResourceOperations
17+ from ._serialization import Deserializer , Serializer
18+ from .operations import (
19+ ApplicationOperations ,
20+ ApplicationPackageOperations ,
21+ BatchAccountOperations ,
22+ CertificateOperations ,
23+ LocationOperations ,
24+ Operations ,
25+ PoolOperations ,
26+ PrivateEndpointConnectionOperations ,
27+ PrivateLinkResourceOperations ,
28+ )
2029
2130if TYPE_CHECKING :
2231 # pylint: disable=unused-import,ungrouped-imports
2332 from azure .core .credentials import TokenCredential
2433
25- class BatchManagementClient : # pylint: disable=too-many-instance-attributes
34+
35+ class BatchManagementClient : # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
2636 """Batch Client.
2737
2838 :ivar batch_account: BatchAccountOperations operations
@@ -44,14 +54,14 @@ class BatchManagementClient: # pylint: disable=too-many-instance-attributes
4454 azure.mgmt.batch.operations.PrivateEndpointConnectionOperations
4555 :ivar pool: PoolOperations operations
4656 :vartype pool: azure.mgmt.batch.operations.PoolOperations
47- :param credential: Credential needed for the client to connect to Azure.
57+ :param credential: Credential needed for the client to connect to Azure. Required.
4858 :type credential: ~azure.core.credentials.TokenCredential
4959 :param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
50- 00000000-0000-0000-0000-000000000000).
60+ 00000000-0000-0000-0000-000000000000). Required.
5161 :type subscription_id: str
5262 :param base_url: Service URL. Default value is "https://management.azure.com".
5363 :type base_url: str
54- :keyword api_version: Api Version. Default value is "2022-06 -01". Note that overriding this
64+ :keyword api_version: Api Version. Default value is "2022-10 -01". Note that overriding this
5565 default value may result in unsupported behavior.
5666 :paramtype api_version: str
5767 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -65,29 +75,32 @@ def __init__(
6575 base_url : str = "https://management.azure.com" ,
6676 ** kwargs : Any
6777 ) -> None :
68- self ._config = BatchManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
78+ self ._config = BatchManagementClientConfiguration (
79+ credential = credential , subscription_id = subscription_id , ** kwargs
80+ )
6981 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
7082
7183 client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
7284 self ._serialize = Serializer (client_models )
7385 self ._deserialize = Deserializer (client_models )
7486 self ._serialize .client_side_validation = False
7587 self .batch_account = BatchAccountOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
76- self .application_package = ApplicationPackageOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
88+ self .application_package = ApplicationPackageOperations (
89+ self ._client , self ._config , self ._serialize , self ._deserialize
90+ )
7791 self .application = ApplicationOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
7892 self .location = LocationOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
7993 self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
8094 self .certificate = CertificateOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
81- self .private_link_resource = PrivateLinkResourceOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
82- self .private_endpoint_connection = PrivateEndpointConnectionOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
95+ self .private_link_resource = PrivateLinkResourceOperations (
96+ self ._client , self ._config , self ._serialize , self ._deserialize
97+ )
98+ self .private_endpoint_connection = PrivateEndpointConnectionOperations (
99+ self ._client , self ._config , self ._serialize , self ._deserialize
100+ )
83101 self .pool = PoolOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
84102
85-
86- def _send_request (
87- self ,
88- request : HttpRequest ,
89- ** kwargs : Any
90- ) -> HttpResponse :
103+ def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
91104 """Runs the network request through the client's chained policies.
92105
93106 >>> from azure.core.rest import HttpRequest
@@ -96,7 +109,7 @@ def _send_request(
96109 >>> response = client._send_request(request)
97110 <HttpResponse: 200 OK>
98111
99- For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
112+ For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/ python/send_request
100113
101114 :param request: The network request you want to make. Required.
102115 :type request: ~azure.core.rest.HttpRequest
0 commit comments