Skip to content

Commit

Permalink
CodeGen from PR 16800 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 79523db7550b9800108c082a3ed511d7604e6e5f into a1b9ef6
  • Loading branch information
SDKAuto committed Nov 19, 2021
1 parent a33a862 commit f1a70a7
Show file tree
Hide file tree
Showing 37 changed files with 1,949 additions and 1,214 deletions.
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/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "cc268fe6b328f3857edb3ec9bce796e7ffc11f85",
"commit": "48a4417371f5f949639ca0efd9414b3bec932696",
"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/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/sql/resource-manager/readme.md"
Expand Down
17 changes: 8 additions & 9 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 @@ -145,8 +142,6 @@
"job_target_groups": "JobTargetGroupsOperations",
"job_versions": "JobVersionsOperations",
"capabilities": "CapabilitiesOperations",
"long_term_retention_backups": "LongTermRetentionBackupsOperations",
"long_term_retention_managed_instance_backups": "LongTermRetentionManagedInstanceBackupsOperations",
"long_term_retention_policies": "LongTermRetentionPoliciesOperations",
"maintenance_window_options": "MaintenanceWindowOptionsOperations",
"maintenance_windows": "MaintenanceWindowsOperations",
Expand All @@ -173,7 +168,6 @@
"managed_instance_operations": "ManagedInstanceOperationsOperations",
"managed_instance_private_endpoint_connections": "ManagedInstancePrivateEndpointConnectionsOperations",
"managed_instance_private_link_resources": "ManagedInstancePrivateLinkResourcesOperations",
"managed_instances": "ManagedInstancesOperations",
"managed_instance_tde_certificates": "ManagedInstanceTdeCertificatesOperations",
"managed_instance_vulnerability_assessments": "ManagedInstanceVulnerabilityAssessmentsOperations",
"managed_restorable_dropped_database_backup_short_term_retention_policies": "ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations",
Expand Down Expand Up @@ -208,15 +202,20 @@
"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",
"database_usages": "DatabaseUsagesOperations",
"ledger_digest_uploads": "LedgerDigestUploadsOperations",
"outbound_firewall_rules": "OutboundFirewallRulesOperations",
"servers": "ServersOperations",
"usages": "UsagesOperations",
"long_term_retention_backups": "LongTermRetentionBackupsOperations",
"long_term_retention_managed_instance_backups": "LongTermRetentionManagedInstanceBackupsOperations",
"managed_instances": "ManagedInstancesOperations",
"restorable_dropped_databases": "RestorableDroppedDatabasesOperations",
"restorable_dropped_managed_databases": "RestorableDroppedManagedDatabasesOperations",
"servers": "ServersOperations",
"usages": "UsagesOperations"
"server_connection_policies": "ServerConnectionPoliciesOperations"
}
}
73 changes: 34 additions & 39 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 @@ -66,8 +63,6 @@
from .operations import JobTargetGroupsOperations
from .operations import JobVersionsOperations
from .operations import CapabilitiesOperations
from .operations import LongTermRetentionBackupsOperations
from .operations import LongTermRetentionManagedInstanceBackupsOperations
from .operations import LongTermRetentionPoliciesOperations
from .operations import MaintenanceWindowOptionsOperations
from .operations import MaintenanceWindowsOperations
Expand All @@ -94,7 +89,6 @@
from .operations import ManagedInstanceOperationsOperations
from .operations import ManagedInstancePrivateEndpointConnectionsOperations
from .operations import ManagedInstancePrivateLinkResourcesOperations
from .operations import ManagedInstancesOperations
from .operations import ManagedInstanceTdeCertificatesOperations
from .operations import ManagedInstanceVulnerabilityAssessmentsOperations
from .operations import ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations
Expand Down Expand Up @@ -129,16 +123,21 @@
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
from .operations import DatabaseUsagesOperations
from .operations import LedgerDigestUploadsOperations
from .operations import OutboundFirewallRulesOperations
from .operations import RestorableDroppedDatabasesOperations
from .operations import RestorableDroppedManagedDatabasesOperations
from .operations import ServersOperations
from .operations import UsagesOperations
from .operations import LongTermRetentionBackupsOperations
from .operations import LongTermRetentionManagedInstanceBackupsOperations
from .operations import ManagedInstancesOperations
from .operations import RestorableDroppedDatabasesOperations
from .operations import RestorableDroppedManagedDatabasesOperations
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 @@ -239,10 +232,6 @@ class SqlManagementClient(object):
:vartype job_versions: azure.mgmt.sql.operations.JobVersionsOperations
:ivar capabilities: CapabilitiesOperations operations
:vartype capabilities: azure.mgmt.sql.operations.CapabilitiesOperations
:ivar long_term_retention_backups: LongTermRetentionBackupsOperations operations
:vartype long_term_retention_backups: azure.mgmt.sql.operations.LongTermRetentionBackupsOperations
:ivar long_term_retention_managed_instance_backups: LongTermRetentionManagedInstanceBackupsOperations operations
:vartype long_term_retention_managed_instance_backups: azure.mgmt.sql.operations.LongTermRetentionManagedInstanceBackupsOperations
:ivar long_term_retention_policies: LongTermRetentionPoliciesOperations operations
:vartype long_term_retention_policies: azure.mgmt.sql.operations.LongTermRetentionPoliciesOperations
:ivar maintenance_window_options: MaintenanceWindowOptionsOperations operations
Expand Down Expand Up @@ -295,8 +284,6 @@ class SqlManagementClient(object):
:vartype managed_instance_private_endpoint_connections: azure.mgmt.sql.operations.ManagedInstancePrivateEndpointConnectionsOperations
:ivar managed_instance_private_link_resources: ManagedInstancePrivateLinkResourcesOperations operations
:vartype managed_instance_private_link_resources: azure.mgmt.sql.operations.ManagedInstancePrivateLinkResourcesOperations
:ivar managed_instances: ManagedInstancesOperations operations
:vartype managed_instances: azure.mgmt.sql.operations.ManagedInstancesOperations
:ivar managed_instance_tde_certificates: ManagedInstanceTdeCertificatesOperations operations
:vartype managed_instance_tde_certificates: azure.mgmt.sql.operations.ManagedInstanceTdeCertificatesOperations
:ivar managed_instance_vulnerability_assessments: ManagedInstanceVulnerabilityAssessmentsOperations operations
Expand Down Expand Up @@ -365,6 +352,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 @@ -377,14 +366,22 @@ class SqlManagementClient(object):
:vartype ledger_digest_uploads: azure.mgmt.sql.operations.LedgerDigestUploadsOperations
:ivar outbound_firewall_rules: OutboundFirewallRulesOperations operations
:vartype outbound_firewall_rules: azure.mgmt.sql.operations.OutboundFirewallRulesOperations
:ivar restorable_dropped_databases: RestorableDroppedDatabasesOperations operations
:vartype restorable_dropped_databases: azure.mgmt.sql.operations.RestorableDroppedDatabasesOperations
:ivar restorable_dropped_managed_databases: RestorableDroppedManagedDatabasesOperations operations
:vartype restorable_dropped_managed_databases: azure.mgmt.sql.operations.RestorableDroppedManagedDatabasesOperations
:ivar servers: ServersOperations operations
:vartype servers: azure.mgmt.sql.operations.ServersOperations
:ivar usages: UsagesOperations operations
:vartype usages: azure.mgmt.sql.operations.UsagesOperations
:ivar long_term_retention_backups: LongTermRetentionBackupsOperations operations
:vartype long_term_retention_backups: azure.mgmt.sql.operations.LongTermRetentionBackupsOperations
:ivar long_term_retention_managed_instance_backups: LongTermRetentionManagedInstanceBackupsOperations operations
:vartype long_term_retention_managed_instance_backups: azure.mgmt.sql.operations.LongTermRetentionManagedInstanceBackupsOperations
:ivar managed_instances: ManagedInstancesOperations operations
:vartype managed_instances: azure.mgmt.sql.operations.ManagedInstancesOperations
:ivar restorable_dropped_databases: RestorableDroppedDatabasesOperations operations
:vartype restorable_dropped_databases: azure.mgmt.sql.operations.RestorableDroppedDatabasesOperations
:ivar restorable_dropped_managed_databases: RestorableDroppedManagedDatabasesOperations operations
:vartype restorable_dropped_managed_databases: azure.mgmt.sql.operations.RestorableDroppedManagedDatabasesOperations
: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 @@ -505,10 +496,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.capabilities = CapabilitiesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.long_term_retention_backups = LongTermRetentionBackupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.long_term_retention_managed_instance_backups = LongTermRetentionManagedInstanceBackupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.long_term_retention_policies = LongTermRetentionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.maintenance_window_options = MaintenanceWindowOptionsOperations(
Expand Down Expand Up @@ -561,8 +548,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.managed_instance_private_link_resources = ManagedInstancePrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managed_instances = ManagedInstancesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managed_instance_tde_certificates = ManagedInstanceTdeCertificatesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managed_instance_vulnerability_assessments = ManagedInstanceVulnerabilityAssessmentsOperations(
Expand Down Expand Up @@ -631,6 +616,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 @@ -643,13 +630,21 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.outbound_firewall_rules = OutboundFirewallRulesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.servers = ServersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.long_term_retention_backups = LongTermRetentionBackupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.long_term_retention_managed_instance_backups = LongTermRetentionManagedInstanceBackupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.managed_instances = ManagedInstancesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_dropped_databases = RestorableDroppedDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.restorable_dropped_managed_databases = RestorableDroppedManagedDatabasesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.servers = ServersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self.server_connection_policies = ServerConnectionPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
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"
Loading

0 comments on commit f1a70a7

Please sign in to comment.