77# --------------------------------------------------------------------------
88
99from copy import deepcopy
10- from typing import Any , Optional , TYPE_CHECKING
10+ from typing import Any , TYPE_CHECKING
1111
1212from azure .core .rest import HttpRequest , HttpResponse
1313from azure .mgmt .core import ARMPipelineClient
14- from msrest import Deserializer , Serializer
1514
1615from . import models
1716from ._configuration import RedisEnterpriseManagementClientConfiguration
18- from .operations import DatabasesOperations , Operations , OperationsStatusOperations , PrivateEndpointConnectionsOperations , PrivateLinkResourcesOperations , RedisEnterpriseOperations
17+ from ._serialization import Deserializer , Serializer
18+ from .operations import (
19+ DatabasesOperations ,
20+ Operations ,
21+ OperationsStatusOperations ,
22+ PrivateEndpointConnectionsOperations ,
23+ PrivateLinkResourcesOperations ,
24+ RedisEnterpriseOperations ,
25+ )
1926
2027if TYPE_CHECKING :
2128 # pylint: disable=unused-import,ungrouped-imports
2229 from azure .core .credentials import TokenCredential
2330
24- class RedisEnterpriseManagementClient :
31+
32+ class RedisEnterpriseManagementClient : # pylint: disable=client-accepts-api-version-keyword
2533 """REST API for managing Redis Enterprise resources in Azure.
2634
2735 :ivar operations: Operations operations
@@ -38,12 +46,15 @@ class RedisEnterpriseManagementClient:
3846 :ivar private_link_resources: PrivateLinkResourcesOperations operations
3947 :vartype private_link_resources:
4048 azure.mgmt.redisenterprise.operations.PrivateLinkResourcesOperations
41- :param credential: Credential needed for the client to connect to Azure.
49+ :param credential: Credential needed for the client to connect to Azure. Required.
4250 :type credential: ~azure.core.credentials.TokenCredential
43- :param subscription_id: The ID of the target subscription.
51+ :param subscription_id: The ID of the target subscription. Required.
4452 :type subscription_id: str
45- :param base_url: Service URL. Default value is ' https://management.azure.com' .
53+ :param base_url: Service URL. Default value is " https://management.azure.com" .
4654 :type base_url: str
55+ :keyword api_version: Api Version. Default value is "2022-01-01". Note that overriding this
56+ default value may result in unsupported behavior.
57+ :paramtype api_version: str
4758 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4859 Retry-After header is present.
4960 """
@@ -55,26 +66,31 @@ def __init__(
5566 base_url : str = "https://management.azure.com" ,
5667 ** kwargs : Any
5768 ) -> None :
58- self ._config = RedisEnterpriseManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
69+ self ._config = RedisEnterpriseManagementClientConfiguration (
70+ credential = credential , subscription_id = subscription_id , ** kwargs
71+ )
5972 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
6073
6174 client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
6275 self ._serialize = Serializer (client_models )
6376 self ._deserialize = Deserializer (client_models )
6477 self ._serialize .client_side_validation = False
6578 self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
66- self .operations_status = OperationsStatusOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
67- self .redis_enterprise = RedisEnterpriseOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
79+ self .operations_status = OperationsStatusOperations (
80+ self ._client , self ._config , self ._serialize , self ._deserialize
81+ )
82+ self .redis_enterprise = RedisEnterpriseOperations (
83+ self ._client , self ._config , self ._serialize , self ._deserialize
84+ )
6885 self .databases = DatabasesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
69- self .private_endpoint_connections = PrivateEndpointConnectionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
70- self .private_link_resources = PrivateLinkResourcesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
71-
72-
73- def _send_request (
74- self ,
75- request , # type: HttpRequest
76- ** kwargs : Any
77- ) -> HttpResponse :
86+ self .private_endpoint_connections = PrivateEndpointConnectionsOperations (
87+ self ._client , self ._config , self ._serialize , self ._deserialize
88+ )
89+ self .private_link_resources = PrivateLinkResourcesOperations (
90+ self ._client , self ._config , self ._serialize , self ._deserialize
91+ )
92+
93+ def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
7894 """Runs the network request through the client's chained policies.
7995
8096 >>> from azure.core.rest import HttpRequest
@@ -83,7 +99,7 @@ def _send_request(
8399 >>> response = client._send_request(request)
84100 <HttpResponse: 200 OK>
85101
86- For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
102+ For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/ python/send_request
87103
88104 :param request: The network request you want to make. Required.
89105 :type request: ~azure.core.rest.HttpRequest
0 commit comments