Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-sql] Add 2021-05-01-preview/ServerConnectionPolicies.json to V5 SDK tag #8038

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sql/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "cc268fe6b328f3857edb3ec9bce796e7ffc11f85",
"commit": "035dcd8dffaa0a0ff8b24596536e520101949c15",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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] --version=3.4.5",
"readme": "specification/sql/resource-manager/readme.md"
Expand Down
9 changes: 4 additions & 5 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "",
"total_api_version_list": ["2014-04-01", "2020-11-01-preview", "2021-02-01-preview"],
"total_api_version_list": ["2014-04-01", "2020-11-01-preview", "2021-02-01-preview", "2021-05-01-preview"],
"client": {
"name": "SqlManagementClient",
"filename": "_sql_management_client",
Expand Down Expand Up @@ -99,7 +99,6 @@
},
"operation_groups": {
"recoverable_databases": "RecoverableDatabasesOperations",
"server_connection_policies": "ServerConnectionPoliciesOperations",
"data_masking_policies": "DataMaskingPoliciesOperations",
"data_masking_rules": "DataMaskingRulesOperations",
"geo_backup_policies": "GeoBackupPoliciesOperations",
Expand All @@ -110,8 +109,6 @@
"service_objectives": "ServiceObjectivesOperations",
"elastic_pool_activities": "ElasticPoolActivitiesOperations",
"elastic_pool_database_activities": "ElasticPoolDatabaseActivitiesOperations",
"transparent_data_encryptions": "TransparentDataEncryptionsOperations",
"transparent_data_encryption_activities": "TransparentDataEncryptionActivitiesOperations",
"server_usages": "ServerUsagesOperations",
"extended_database_blob_auditing_policies": "ExtendedDatabaseBlobAuditingPoliciesOperations",
"extended_server_blob_auditing_policies": "ExtendedServerBlobAuditingPoliciesOperations",
Expand Down Expand Up @@ -208,6 +205,7 @@
"virtual_network_rules": "VirtualNetworkRulesOperations",
"workload_classifiers": "WorkloadClassifiersOperations",
"workload_groups": "WorkloadGroupsOperations",
"transparent_data_encryptions": "TransparentDataEncryptionsOperations",
"backup_short_term_retention_policies": "BackupShortTermRetentionPoliciesOperations",
"database_extensions": "DatabaseExtensionsOperations",
"database_operations": "DatabaseOperationsOperations",
Expand All @@ -217,6 +215,7 @@
"restorable_dropped_databases": "RestorableDroppedDatabasesOperations",
"restorable_dropped_managed_databases": "RestorableDroppedManagedDatabasesOperations",
"servers": "ServersOperations",
"usages": "UsagesOperations"
"usages": "UsagesOperations",
"server_connection_policies": "ServerConnectionPoliciesOperations"
}
}
25 changes: 10 additions & 15 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from ._configuration import SqlManagementClientConfiguration
from .operations import RecoverableDatabasesOperations
from .operations import ServerConnectionPoliciesOperations
from .operations import DataMaskingPoliciesOperations
from .operations import DataMaskingRulesOperations
from .operations import GeoBackupPoliciesOperations
Expand All @@ -31,8 +30,6 @@
from .operations import ServiceObjectivesOperations
from .operations import ElasticPoolActivitiesOperations
from .operations import ElasticPoolDatabaseActivitiesOperations
from .operations import TransparentDataEncryptionsOperations
from .operations import TransparentDataEncryptionActivitiesOperations
from .operations import ServerUsagesOperations
from .operations import ExtendedDatabaseBlobAuditingPoliciesOperations
from .operations import ExtendedServerBlobAuditingPoliciesOperations
Expand Down Expand Up @@ -129,6 +126,7 @@
from .operations import VirtualNetworkRulesOperations
from .operations import WorkloadClassifiersOperations
from .operations import WorkloadGroupsOperations
from .operations import TransparentDataEncryptionsOperations
from .operations import BackupShortTermRetentionPoliciesOperations
from .operations import DatabaseExtensionsOperations
from .operations import DatabaseOperationsOperations
Expand All @@ -139,6 +137,7 @@
from .operations import RestorableDroppedManagedDatabasesOperations
from .operations import ServersOperations
from .operations import UsagesOperations
from .operations import ServerConnectionPoliciesOperations
from . import models


Expand All @@ -147,8 +146,6 @@ class SqlManagementClient(object):

:ivar recoverable_databases: RecoverableDatabasesOperations operations
:vartype recoverable_databases: azure.mgmt.sql.operations.RecoverableDatabasesOperations
:ivar server_connection_policies: ServerConnectionPoliciesOperations operations
:vartype server_connection_policies: azure.mgmt.sql.operations.ServerConnectionPoliciesOperations
:ivar data_masking_policies: DataMaskingPoliciesOperations operations
:vartype data_masking_policies: azure.mgmt.sql.operations.DataMaskingPoliciesOperations
:ivar data_masking_rules: DataMaskingRulesOperations operations
Expand All @@ -169,10 +166,6 @@ class SqlManagementClient(object):
:vartype elastic_pool_activities: azure.mgmt.sql.operations.ElasticPoolActivitiesOperations
:ivar elastic_pool_database_activities: ElasticPoolDatabaseActivitiesOperations operations
:vartype elastic_pool_database_activities: azure.mgmt.sql.operations.ElasticPoolDatabaseActivitiesOperations
:ivar transparent_data_encryptions: TransparentDataEncryptionsOperations operations
:vartype transparent_data_encryptions: azure.mgmt.sql.operations.TransparentDataEncryptionsOperations
:ivar transparent_data_encryption_activities: TransparentDataEncryptionActivitiesOperations operations
:vartype transparent_data_encryption_activities: azure.mgmt.sql.operations.TransparentDataEncryptionActivitiesOperations
:ivar server_usages: ServerUsagesOperations operations
:vartype server_usages: azure.mgmt.sql.operations.ServerUsagesOperations
:ivar extended_database_blob_auditing_policies: ExtendedDatabaseBlobAuditingPoliciesOperations operations
Expand Down Expand Up @@ -365,6 +358,8 @@ class SqlManagementClient(object):
:vartype workload_classifiers: azure.mgmt.sql.operations.WorkloadClassifiersOperations
:ivar workload_groups: WorkloadGroupsOperations operations
:vartype workload_groups: azure.mgmt.sql.operations.WorkloadGroupsOperations
:ivar transparent_data_encryptions: TransparentDataEncryptionsOperations operations
:vartype transparent_data_encryptions: azure.mgmt.sql.operations.TransparentDataEncryptionsOperations
:ivar backup_short_term_retention_policies: BackupShortTermRetentionPoliciesOperations operations
:vartype backup_short_term_retention_policies: azure.mgmt.sql.operations.BackupShortTermRetentionPoliciesOperations
:ivar database_extensions: DatabaseExtensionsOperations operations
Expand All @@ -385,6 +380,8 @@ class SqlManagementClient(object):
:vartype servers: azure.mgmt.sql.operations.ServersOperations
:ivar usages: UsagesOperations operations
:vartype usages: azure.mgmt.sql.operations.UsagesOperations
:ivar server_connection_policies: ServerConnectionPoliciesOperations operations
:vartype server_connection_policies: azure.mgmt.sql.operations.ServerConnectionPoliciesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription ID that identifies an Azure subscription.
Expand Down Expand Up @@ -413,8 +410,6 @@ def __init__(

self.recoverable_databases = RecoverableDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.server_connection_policies = ServerConnectionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.data_masking_policies = DataMaskingPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.data_masking_rules = DataMaskingRulesOperations(
Expand All @@ -435,10 +430,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.elastic_pool_database_activities = ElasticPoolDatabaseActivitiesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.transparent_data_encryptions = TransparentDataEncryptionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.transparent_data_encryption_activities = TransparentDataEncryptionActivitiesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.server_usages = ServerUsagesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.extended_database_blob_auditing_policies = ExtendedDatabaseBlobAuditingPoliciesOperations(
Expand Down Expand Up @@ -631,6 +622,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.workload_groups = WorkloadGroupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.transparent_data_encryptions = TransparentDataEncryptionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_short_term_retention_policies = BackupShortTermRetentionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.database_extensions = DatabaseExtensionsOperations(
Expand All @@ -651,6 +644,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.server_connection_policies = ServerConnectionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "3.0.1"
VERSION = "0.9.0"
25 changes: 10 additions & 15 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/_sql_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from ._configuration import SqlManagementClientConfiguration
from .operations import RecoverableDatabasesOperations
from .operations import ServerConnectionPoliciesOperations
from .operations import DataMaskingPoliciesOperations
from .operations import DataMaskingRulesOperations
from .operations import GeoBackupPoliciesOperations
Expand All @@ -29,8 +28,6 @@
from .operations import ServiceObjectivesOperations
from .operations import ElasticPoolActivitiesOperations
from .operations import ElasticPoolDatabaseActivitiesOperations
from .operations import TransparentDataEncryptionsOperations
from .operations import TransparentDataEncryptionActivitiesOperations
from .operations import ServerUsagesOperations
from .operations import ExtendedDatabaseBlobAuditingPoliciesOperations
from .operations import ExtendedServerBlobAuditingPoliciesOperations
Expand Down Expand Up @@ -127,6 +124,7 @@
from .operations import VirtualNetworkRulesOperations
from .operations import WorkloadClassifiersOperations
from .operations import WorkloadGroupsOperations
from .operations import TransparentDataEncryptionsOperations
from .operations import BackupShortTermRetentionPoliciesOperations
from .operations import DatabaseExtensionsOperations
from .operations import DatabaseOperationsOperations
Expand All @@ -137,6 +135,7 @@
from .operations import RestorableDroppedManagedDatabasesOperations
from .operations import ServersOperations
from .operations import UsagesOperations
from .operations import ServerConnectionPoliciesOperations
from .. import models


Expand All @@ -145,8 +144,6 @@ class SqlManagementClient(object):

:ivar recoverable_databases: RecoverableDatabasesOperations operations
:vartype recoverable_databases: azure.mgmt.sql.aio.operations.RecoverableDatabasesOperations
:ivar server_connection_policies: ServerConnectionPoliciesOperations operations
:vartype server_connection_policies: azure.mgmt.sql.aio.operations.ServerConnectionPoliciesOperations
:ivar data_masking_policies: DataMaskingPoliciesOperations operations
:vartype data_masking_policies: azure.mgmt.sql.aio.operations.DataMaskingPoliciesOperations
:ivar data_masking_rules: DataMaskingRulesOperations operations
Expand All @@ -167,10 +164,6 @@ class SqlManagementClient(object):
:vartype elastic_pool_activities: azure.mgmt.sql.aio.operations.ElasticPoolActivitiesOperations
:ivar elastic_pool_database_activities: ElasticPoolDatabaseActivitiesOperations operations
:vartype elastic_pool_database_activities: azure.mgmt.sql.aio.operations.ElasticPoolDatabaseActivitiesOperations
:ivar transparent_data_encryptions: TransparentDataEncryptionsOperations operations
:vartype transparent_data_encryptions: azure.mgmt.sql.aio.operations.TransparentDataEncryptionsOperations
:ivar transparent_data_encryption_activities: TransparentDataEncryptionActivitiesOperations operations
:vartype transparent_data_encryption_activities: azure.mgmt.sql.aio.operations.TransparentDataEncryptionActivitiesOperations
:ivar server_usages: ServerUsagesOperations operations
:vartype server_usages: azure.mgmt.sql.aio.operations.ServerUsagesOperations
:ivar extended_database_blob_auditing_policies: ExtendedDatabaseBlobAuditingPoliciesOperations operations
Expand Down Expand Up @@ -363,6 +356,8 @@ class SqlManagementClient(object):
:vartype workload_classifiers: azure.mgmt.sql.aio.operations.WorkloadClassifiersOperations
:ivar workload_groups: WorkloadGroupsOperations operations
:vartype workload_groups: azure.mgmt.sql.aio.operations.WorkloadGroupsOperations
:ivar transparent_data_encryptions: TransparentDataEncryptionsOperations operations
:vartype transparent_data_encryptions: azure.mgmt.sql.aio.operations.TransparentDataEncryptionsOperations
:ivar backup_short_term_retention_policies: BackupShortTermRetentionPoliciesOperations operations
:vartype backup_short_term_retention_policies: azure.mgmt.sql.aio.operations.BackupShortTermRetentionPoliciesOperations
:ivar database_extensions: DatabaseExtensionsOperations operations
Expand All @@ -383,6 +378,8 @@ class SqlManagementClient(object):
:vartype servers: azure.mgmt.sql.aio.operations.ServersOperations
:ivar usages: UsagesOperations operations
:vartype usages: azure.mgmt.sql.aio.operations.UsagesOperations
:ivar server_connection_policies: ServerConnectionPoliciesOperations operations
:vartype server_connection_policies: azure.mgmt.sql.aio.operations.ServerConnectionPoliciesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The subscription ID that identifies an Azure subscription.
Expand Down Expand Up @@ -410,8 +407,6 @@ def __init__(

self.recoverable_databases = RecoverableDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.server_connection_policies = ServerConnectionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.data_masking_policies = DataMaskingPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.data_masking_rules = DataMaskingRulesOperations(
Expand All @@ -432,10 +427,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.elastic_pool_database_activities = ElasticPoolDatabaseActivitiesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.transparent_data_encryptions = TransparentDataEncryptionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.transparent_data_encryption_activities = TransparentDataEncryptionActivitiesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.server_usages = ServerUsagesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.extended_database_blob_auditing_policies = ExtendedDatabaseBlobAuditingPoliciesOperations(
Expand Down Expand Up @@ -628,6 +619,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.workload_groups = WorkloadGroupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.transparent_data_encryptions = TransparentDataEncryptionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.backup_short_term_retention_policies = BackupShortTermRetentionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.database_extensions = DatabaseExtensionsOperations(
Expand All @@ -648,6 +641,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.server_connection_policies = ServerConnectionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Loading