Skip to content

Commit 313182d

Browse files
author
SDKAuto
committed
CodeGen from PR 14687 in Azure/azure-rest-api-specs
Merge 757409f42a0d5f527fc91ea9e103bd568c70168c into a252633
1 parent 19e35d6 commit 313182d

File tree

15 files changed

+95
-51
lines changed

15 files changed

+95
-51
lines changed

sdk/sql/azure-mgmt-sql/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"autorest": "3.4.2",
33
"use": [
44
"@autorest/[email protected]",
5-
"@autorest/[email protected].1"
5+
"@autorest/[email protected].2"
66
],
7-
"commit": "1c801aa70be460b277f1d81f9cced889ca5008fe",
7+
"commit": "82561de1ddbc904efa8a391eeda703b8cc7bb52b",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/sql/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected].1 --version=3.4.2",
9+
"autorest_command": "autorest specification/sql/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected].2 --version=3.4.2",
1010
"readme": "specification/sql/resource-manager/readme.md"
1111
}

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@
195195
"server_dns_aliases": "ServerDnsAliasesOperations",
196196
"server_keys": "ServerKeysOperations",
197197
"server_operations": "ServerOperationsOperations",
198-
"servers": "ServersOperations",
199198
"server_security_alert_policies": "ServerSecurityAlertPoliciesOperations",
200199
"server_trust_groups": "ServerTrustGroupsOperations",
201200
"server_vulnerability_assessments": "ServerVulnerabilityAssessmentsOperations",
@@ -217,6 +216,7 @@
217216
"outbound_firewall_rules": "OutboundFirewallRulesOperations",
218217
"restorable_dropped_databases": "RestorableDroppedDatabasesOperations",
219218
"restorable_dropped_managed_databases": "RestorableDroppedManagedDatabasesOperations",
219+
"servers": "ServersOperations",
220220
"usages": "UsagesOperations"
221221
}
222222
}

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
from .operations import ServerDnsAliasesOperations
117117
from .operations import ServerKeysOperations
118118
from .operations import ServerOperationsOperations
119-
from .operations import ServersOperations
120119
from .operations import ServerSecurityAlertPoliciesOperations
121120
from .operations import ServerTrustGroupsOperations
122121
from .operations import ServerVulnerabilityAssessmentsOperations
@@ -138,6 +137,7 @@
138137
from .operations import OutboundFirewallRulesOperations
139138
from .operations import RestorableDroppedDatabasesOperations
140139
from .operations import RestorableDroppedManagedDatabasesOperations
140+
from .operations import ServersOperations
141141
from .operations import UsagesOperations
142142
from . import models
143143

@@ -339,8 +339,6 @@ class SqlManagementClient(object):
339339
:vartype server_keys: azure.mgmt.sql.operations.ServerKeysOperations
340340
:ivar server_operations: ServerOperationsOperations operations
341341
:vartype server_operations: azure.mgmt.sql.operations.ServerOperationsOperations
342-
:ivar servers: ServersOperations operations
343-
:vartype servers: azure.mgmt.sql.operations.ServersOperations
344342
:ivar server_security_alert_policies: ServerSecurityAlertPoliciesOperations operations
345343
:vartype server_security_alert_policies: azure.mgmt.sql.operations.ServerSecurityAlertPoliciesOperations
346344
:ivar server_trust_groups: ServerTrustGroupsOperations operations
@@ -383,6 +381,8 @@ class SqlManagementClient(object):
383381
:vartype restorable_dropped_databases: azure.mgmt.sql.operations.RestorableDroppedDatabasesOperations
384382
:ivar restorable_dropped_managed_databases: RestorableDroppedManagedDatabasesOperations operations
385383
:vartype restorable_dropped_managed_databases: azure.mgmt.sql.operations.RestorableDroppedManagedDatabasesOperations
384+
:ivar servers: ServersOperations operations
385+
:vartype servers: azure.mgmt.sql.operations.ServersOperations
386386
:ivar usages: UsagesOperations operations
387387
:vartype usages: azure.mgmt.sql.operations.UsagesOperations
388388
:param credential: Credential needed for the client to connect to Azure.
@@ -605,8 +605,6 @@ def __init__(
605605
self._client, self._config, self._serialize, self._deserialize)
606606
self.server_operations = ServerOperationsOperations(
607607
self._client, self._config, self._serialize, self._deserialize)
608-
self.servers = ServersOperations(
609-
self._client, self._config, self._serialize, self._deserialize)
610608
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations(
611609
self._client, self._config, self._serialize, self._deserialize)
612610
self.server_trust_groups = ServerTrustGroupsOperations(
@@ -649,6 +647,8 @@ def __init__(
649647
self._client, self._config, self._serialize, self._deserialize)
650648
self.restorable_dropped_managed_databases = RestorableDroppedManagedDatabasesOperations(
651649
self._client, self._config, self._serialize, self._deserialize)
650+
self.servers = ServersOperations(
651+
self._client, self._config, self._serialize, self._deserialize)
652652
self.usages = UsagesOperations(
653653
self._client, self._config, self._serialize, self._deserialize)
654654

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.1.0"
9+
VERSION = "0.9.0"

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/_sql_management_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
from .operations import ServerDnsAliasesOperations
115115
from .operations import ServerKeysOperations
116116
from .operations import ServerOperationsOperations
117-
from .operations import ServersOperations
118117
from .operations import ServerSecurityAlertPoliciesOperations
119118
from .operations import ServerTrustGroupsOperations
120119
from .operations import ServerVulnerabilityAssessmentsOperations
@@ -136,6 +135,7 @@
136135
from .operations import OutboundFirewallRulesOperations
137136
from .operations import RestorableDroppedDatabasesOperations
138137
from .operations import RestorableDroppedManagedDatabasesOperations
138+
from .operations import ServersOperations
139139
from .operations import UsagesOperations
140140
from .. import models
141141

@@ -337,8 +337,6 @@ class SqlManagementClient(object):
337337
:vartype server_keys: azure.mgmt.sql.aio.operations.ServerKeysOperations
338338
:ivar server_operations: ServerOperationsOperations operations
339339
:vartype server_operations: azure.mgmt.sql.aio.operations.ServerOperationsOperations
340-
:ivar servers: ServersOperations operations
341-
:vartype servers: azure.mgmt.sql.aio.operations.ServersOperations
342340
:ivar server_security_alert_policies: ServerSecurityAlertPoliciesOperations operations
343341
:vartype server_security_alert_policies: azure.mgmt.sql.aio.operations.ServerSecurityAlertPoliciesOperations
344342
:ivar server_trust_groups: ServerTrustGroupsOperations operations
@@ -381,6 +379,8 @@ class SqlManagementClient(object):
381379
:vartype restorable_dropped_databases: azure.mgmt.sql.aio.operations.RestorableDroppedDatabasesOperations
382380
:ivar restorable_dropped_managed_databases: RestorableDroppedManagedDatabasesOperations operations
383381
:vartype restorable_dropped_managed_databases: azure.mgmt.sql.aio.operations.RestorableDroppedManagedDatabasesOperations
382+
:ivar servers: ServersOperations operations
383+
:vartype servers: azure.mgmt.sql.aio.operations.ServersOperations
384384
:ivar usages: UsagesOperations operations
385385
:vartype usages: azure.mgmt.sql.aio.operations.UsagesOperations
386386
:param credential: Credential needed for the client to connect to Azure.
@@ -602,8 +602,6 @@ def __init__(
602602
self._client, self._config, self._serialize, self._deserialize)
603603
self.server_operations = ServerOperationsOperations(
604604
self._client, self._config, self._serialize, self._deserialize)
605-
self.servers = ServersOperations(
606-
self._client, self._config, self._serialize, self._deserialize)
607605
self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations(
608606
self._client, self._config, self._serialize, self._deserialize)
609607
self.server_trust_groups = ServerTrustGroupsOperations(
@@ -646,6 +644,8 @@ def __init__(
646644
self._client, self._config, self._serialize, self._deserialize)
647645
self.restorable_dropped_managed_databases = RestorableDroppedManagedDatabasesOperations(
648646
self._client, self._config, self._serialize, self._deserialize)
647+
self.servers = ServersOperations(
648+
self._client, self._config, self._serialize, self._deserialize)
649649
self.usages = UsagesOperations(
650650
self._client, self._config, self._serialize, self._deserialize)
651651

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
from ._server_dns_aliases_operations import ServerDnsAliasesOperations
104104
from ._server_keys_operations import ServerKeysOperations
105105
from ._server_operations_operations import ServerOperationsOperations
106-
from ._servers_operations import ServersOperations
107106
from ._server_security_alert_policies_operations import ServerSecurityAlertPoliciesOperations
108107
from ._server_trust_groups_operations import ServerTrustGroupsOperations
109108
from ._server_vulnerability_assessments_operations import ServerVulnerabilityAssessmentsOperations
@@ -125,6 +124,7 @@
125124
from ._outbound_firewall_rules_operations import OutboundFirewallRulesOperations
126125
from ._restorable_dropped_databases_operations import RestorableDroppedDatabasesOperations
127126
from ._restorable_dropped_managed_databases_operations import RestorableDroppedManagedDatabasesOperations
127+
from ._servers_operations import ServersOperations
128128
from ._usages_operations import UsagesOperations
129129

130130
__all__ = [
@@ -225,7 +225,6 @@
225225
'ServerDnsAliasesOperations',
226226
'ServerKeysOperations',
227227
'ServerOperationsOperations',
228-
'ServersOperations',
229228
'ServerSecurityAlertPoliciesOperations',
230229
'ServerTrustGroupsOperations',
231230
'ServerVulnerabilityAssessmentsOperations',
@@ -247,5 +246,6 @@
247246
'OutboundFirewallRulesOperations',
248247
'RestorableDroppedDatabasesOperations',
249248
'RestorableDroppedManagedDatabasesOperations',
249+
'ServersOperations',
250250
'UsagesOperations',
251251
]

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_servers_operations.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def list_by_resource_group(
6666
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6767
}
6868
error_map.update(kwargs.pop('error_map', {}))
69-
api_version = "2020-11-01-preview"
69+
api_version = "2021-02-01-preview"
7070
accept = "application/json"
7171

7272
def prepare_request(next_link=None):
@@ -145,7 +145,7 @@ async def get(
145145
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
146146
}
147147
error_map.update(kwargs.pop('error_map', {}))
148-
api_version = "2020-11-01-preview"
148+
api_version = "2021-02-01-preview"
149149
accept = "application/json"
150150

151151
# Construct URL
@@ -195,7 +195,7 @@ async def _create_or_update_initial(
195195
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
196196
}
197197
error_map.update(kwargs.pop('error_map', {}))
198-
api_version = "2020-11-01-preview"
198+
api_version = "2021-02-01-preview"
199199
content_type = kwargs.pop("content_type", "application/json")
200200
accept = "application/json"
201201

@@ -324,7 +324,7 @@ async def _delete_initial(
324324
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
325325
}
326326
error_map.update(kwargs.pop('error_map', {}))
327-
api_version = "2020-11-01-preview"
327+
api_version = "2021-02-01-preview"
328328

329329
# Construct URL
330330
url = self._delete_initial.metadata['url'] # type: ignore
@@ -432,7 +432,7 @@ async def _update_initial(
432432
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
433433
}
434434
error_map.update(kwargs.pop('error_map', {}))
435-
api_version = "2020-11-01-preview"
435+
api_version = "2021-02-01-preview"
436436
content_type = kwargs.pop("content_type", "application/json")
437437
accept = "application/json"
438438

@@ -566,7 +566,7 @@ def list(
566566
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
567567
}
568568
error_map.update(kwargs.pop('error_map', {}))
569-
api_version = "2020-11-01-preview"
569+
api_version = "2021-02-01-preview"
570570
accept = "application/json"
571571

572572
def prepare_request(next_link=None):
@@ -630,7 +630,7 @@ async def _import_database_initial(
630630
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
631631
}
632632
error_map.update(kwargs.pop('error_map', {}))
633-
api_version = "2020-11-01-preview"
633+
api_version = "2021-02-01-preview"
634634
content_type = kwargs.pop("content_type", "application/json")
635635
accept = "application/json"
636636

@@ -764,7 +764,7 @@ async def check_name_availability(
764764
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
765765
}
766766
error_map.update(kwargs.pop('error_map', {}))
767-
api_version = "2020-11-01-preview"
767+
api_version = "2021-02-01-preview"
768768
content_type = kwargs.pop("content_type", "application/json")
769769
accept = "application/json"
770770

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_sync_groups_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def list_logs(
325325
sync_group_name: str,
326326
start_time: str,
327327
end_time: str,
328-
type: Union[str, "_models.Enum81"],
328+
type: Union[str, "_models.Enum78"],
329329
continuation_token_parameter: Optional[str] = None,
330330
**kwargs: Any
331331
) -> AsyncIterable["_models.SyncGroupLogListResult"]:
@@ -345,7 +345,7 @@ def list_logs(
345345
:param end_time: Get logs generated before this time.
346346
:type end_time: str
347347
:param type: The types of logs to retrieve.
348-
:type type: str or ~azure.mgmt.sql.models.Enum81
348+
:type type: str or ~azure.mgmt.sql.models.Enum78
349349
:param continuation_token_parameter: The continuation token for this operation.
350350
:type continuation_token_parameter: str
351351
:keyword callable cls: A custom type or function that will be passed the direct response

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@
729729
ElasticPoolLicenseType,
730730
ElasticPoolState,
731731
EncryptionProtectorName,
732-
Enum81,
732+
Enum78,
733733
FailoverGroupReplicationRole,
734734
GeoBackupPolicyName,
735735
GeoBackupPolicyState,
@@ -796,7 +796,7 @@
796796
SensitivityLabelUpdateKind,
797797
ServerConnectionType,
798798
ServerKeyType,
799-
ServerPublicNetworkAccess,
799+
ServerNetworkAccessFlag,
800800
ServerTrustGroupPropertiesTrustScopesItem,
801801
ServerWorkspaceFeature,
802802
ServiceObjectiveName,
@@ -1207,7 +1207,7 @@
12071207
'ElasticPoolLicenseType',
12081208
'ElasticPoolState',
12091209
'EncryptionProtectorName',
1210-
'Enum81',
1210+
'Enum78',
12111211
'FailoverGroupReplicationRole',
12121212
'GeoBackupPolicyName',
12131213
'GeoBackupPolicyState',
@@ -1274,7 +1274,7 @@
12741274
'SensitivityLabelUpdateKind',
12751275
'ServerConnectionType',
12761276
'ServerKeyType',
1277-
'ServerPublicNetworkAccess',
1277+
'ServerNetworkAccessFlag',
12781278
'ServerTrustGroupPropertiesTrustScopesItem',
12791279
'ServerWorkspaceFeature',
12801280
'ServiceObjectiveName',

0 commit comments

Comments
 (0)