18
18
from .operations import (
19
19
ActiveDirectoryConnectorsOperations ,
20
20
DataControllersOperations ,
21
+ FailoverGroupsOperations ,
21
22
Operations ,
22
23
PostgresInstancesOperations ,
23
24
SqlManagedInstancesOperations ,
25
+ SqlServerDatabasesOperations ,
24
26
SqlServerInstancesOperations ,
25
27
)
26
28
29
31
from azure .core .credentials import TokenCredential
30
32
31
33
32
- class AzureArcDataManagementClient : # pylint: disable=client-accepts-api-version-keyword
34
+ class AzureArcDataManagementClient : # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
33
35
"""The AzureArcData management API provides a RESTful set of web APIs to manage Azure Data
34
36
Services on Azure Arc Resources.
35
37
@@ -38,6 +40,8 @@ class AzureArcDataManagementClient: # pylint: disable=client-accepts-api-versio
38
40
:ivar sql_managed_instances: SqlManagedInstancesOperations operations
39
41
:vartype sql_managed_instances:
40
42
azure.mgmt.azurearcdata.operations.SqlManagedInstancesOperations
43
+ :ivar failover_groups: FailoverGroupsOperations operations
44
+ :vartype failover_groups: azure.mgmt.azurearcdata.operations.FailoverGroupsOperations
41
45
:ivar sql_server_instances: SqlServerInstancesOperations operations
42
46
:vartype sql_server_instances: azure.mgmt.azurearcdata.operations.SqlServerInstancesOperations
43
47
:ivar data_controllers: DataControllersOperations operations
@@ -47,13 +51,15 @@ class AzureArcDataManagementClient: # pylint: disable=client-accepts-api-versio
47
51
azure.mgmt.azurearcdata.operations.ActiveDirectoryConnectorsOperations
48
52
:ivar postgres_instances: PostgresInstancesOperations operations
49
53
:vartype postgres_instances: azure.mgmt.azurearcdata.operations.PostgresInstancesOperations
54
+ :ivar sql_server_databases: SqlServerDatabasesOperations operations
55
+ :vartype sql_server_databases: azure.mgmt.azurearcdata.operations.SqlServerDatabasesOperations
50
56
:param credential: Credential needed for the client to connect to Azure. Required.
51
57
:type credential: ~azure.core.credentials.TokenCredential
52
58
:param subscription_id: The ID of the Azure subscription. Required.
53
59
:type subscription_id: str
54
60
:param base_url: Service URL. Default value is "https://management.azure.com".
55
61
:type base_url: str
56
- :keyword api_version: Api Version. Default value is "2022-03-01 -preview". Note that overriding
62
+ :keyword api_version: Api Version. Default value is "2023-01-15 -preview". Note that overriding
57
63
this default value may result in unsupported behavior.
58
64
:paramtype api_version: str
59
65
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -70,7 +76,7 @@ def __init__(
70
76
self ._config = AzureArcDataManagementClientConfiguration (
71
77
credential = credential , subscription_id = subscription_id , ** kwargs
72
78
)
73
- self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
79
+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
74
80
75
81
client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
76
82
self ._serialize = Serializer (client_models )
@@ -80,6 +86,7 @@ def __init__(
80
86
self .sql_managed_instances = SqlManagedInstancesOperations (
81
87
self ._client , self ._config , self ._serialize , self ._deserialize
82
88
)
89
+ self .failover_groups = FailoverGroupsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
83
90
self .sql_server_instances = SqlServerInstancesOperations (
84
91
self ._client , self ._config , self ._serialize , self ._deserialize
85
92
)
@@ -92,6 +99,9 @@ def __init__(
92
99
self .postgres_instances = PostgresInstancesOperations (
93
100
self ._client , self ._config , self ._serialize , self ._deserialize
94
101
)
102
+ self .sql_server_databases = SqlServerDatabasesOperations (
103
+ self ._client , self ._config , self ._serialize , self ._deserialize
104
+ )
95
105
96
106
def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
97
107
"""Runs the network request through the client's chained policies.
@@ -122,5 +132,5 @@ def __enter__(self) -> "AzureArcDataManagementClient":
122
132
self ._client .__enter__ ()
123
133
return self
124
134
125
- def __exit__ (self , * exc_details ) -> None :
135
+ def __exit__ (self , * exc_details : Any ) -> None :
126
136
self ._client .__exit__ (* exc_details )
0 commit comments