From 98784ee47390076734610009f2513c0e07de0bad Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 1 Apr 2019 14:51:07 -0700 Subject: [PATCH] Generated from 119af354f9b787bcc5a5714bfc3e820a5c61e2b5 (#1919) Rename sensitivityLabels.json to SensitivityLabels.json --- packages/@azure/arm-sql/LICENSE.txt | 2 +- packages/@azure/arm-sql/README.md | 11 +- .../backupLongTermRetentionPoliciesMappers.ts | 6 + ...backupShortTermRetentionPoliciesMappers.ts | 6 + .../lib/models/dataMaskingPoliciesMappers.ts | 6 + .../lib/models/dataMaskingRulesMappers.ts | 6 + ...atabaseAutomaticTuningOperationsMappers.ts | 6 + .../databaseBlobAuditingPoliciesMappers.ts | 6 + .../lib/models/databaseOperationsMappers.ts | 6 + .../databaseThreatDetectionPoliciesMappers.ts | 6 + ...erabilityAssessmentRuleBaselinesMappers.ts | 6 + ...baseVulnerabilityAssessmentScansMappers.ts | 6 + ...databaseVulnerabilityAssessmentsMappers.ts | 6 + .../arm-sql/lib/models/databasesMappers.ts | 6 + .../models/elasticPoolActivitiesMappers.ts | 6 + .../elasticPoolDatabaseActivitiesMappers.ts | 6 + .../models/elasticPoolOperationsMappers.ts | 6 + .../arm-sql/lib/models/elasticPoolsMappers.ts | 6 + .../lib/models/encryptionProtectorsMappers.ts | 6 + ...ndedDatabaseBlobAuditingPoliciesMappers.ts | 6 + ...tendedServerBlobAuditingPoliciesMappers.ts | 6 + .../lib/models/failoverGroupsMappers.ts | 6 + .../lib/models/firewallRulesMappers.ts | 6 + .../lib/models/geoBackupPoliciesMappers.ts | 6 + packages/@azure/arm-sql/lib/models/index.ts | 1669 +++++++++++++++-- .../models/instanceFailoverGroupsMappers.ts | 6 + .../arm-sql/lib/models/jobAgentsMappers.ts | 6 + .../lib/models/jobCredentialsMappers.ts | 6 + .../lib/models/jobExecutionsMappers.ts | 6 + .../lib/models/jobStepExecutionsMappers.ts | 6 + .../arm-sql/lib/models/jobStepsMappers.ts | 6 + .../lib/models/jobTargetExecutionsMappers.ts | 6 + .../lib/models/jobTargetGroupsMappers.ts | 6 + .../arm-sql/lib/models/jobVersionsMappers.ts | 6 + .../@azure/arm-sql/lib/models/jobsMappers.ts | 6 + .../models/longTermRetentionBackupsMappers.ts | 6 + ...BackupShortTermRetentionPoliciesMappers.ts | 6 + ...gedDatabaseSecurityAlertPoliciesMappers.ts | 118 ++ ...managedDatabaseSensitivityLabelsMappers.ts | 118 ++ ...erabilityAssessmentRuleBaselinesMappers.ts | 6 + ...baseVulnerabilityAssessmentScansMappers.ts | 6 + ...DatabaseVulnerabilityAssessmentsMappers.ts | 6 + .../lib/models/managedDatabasesMappers.ts | 6 + ...agedInstanceEncryptionProtectorsMappers.ts | 6 + .../lib/models/managedInstanceKeysMappers.ts | 6 + .../managedInstanceTdeCertificatesMappers.ts | 6 + ...InstanceVulnerabilityAssessmentsMappers.ts | 6 + .../lib/models/managedInstancesMappers.ts | 6 + ...BackupShortTermRetentionPoliciesMappers.ts | 118 ++ ...nagedServerSecurityAlertPoliciesMappers.ts | 118 ++ packages/@azure/arm-sql/lib/models/mappers.ts | 701 ++++++- .../@azure/arm-sql/lib/models/parameters.ts | 98 + .../models/recommendedElasticPoolsMappers.ts | 6 + .../lib/models/recoverableDatabasesMappers.ts | 6 + .../recoverableManagedDatabasesMappers.ts | 118 ++ .../lib/models/replicationLinksMappers.ts | 6 + .../restorableDroppedDatabasesMappers.ts | 6 + ...estorableDroppedManagedDatabasesMappers.ts | 118 ++ .../lib/models/restorePointsMappers.ts | 6 + .../lib/models/sensitivityLabelsMappers.ts | 118 ++ .../serverAutomaticTuningOperationsMappers.ts | 6 + .../serverAzureADAdministratorsMappers.ts | 6 + .../serverBlobAuditingPoliciesMappers.ts | 6 + .../models/serverCommunicationLinksMappers.ts | 6 + .../models/serverConnectionPoliciesMappers.ts | 6 + .../lib/models/serverDnsAliasesMappers.ts | 6 + .../arm-sql/lib/models/serverKeysMappers.ts | 6 + .../serverSecurityAlertPoliciesMappers.ts | 7 + .../serverVulnerabilityAssessmentsMappers.ts | 6 + .../arm-sql/lib/models/serversMappers.ts | 6 + .../lib/models/serviceObjectivesMappers.ts | 6 + .../lib/models/serviceTierAdvisorsMappers.ts | 6 + .../lib/models/subscriptionUsagesMappers.ts | 6 + .../arm-sql/lib/models/syncAgentsMappers.ts | 6 + .../arm-sql/lib/models/syncGroupsMappers.ts | 6 + .../arm-sql/lib/models/syncMembersMappers.ts | 6 + .../lib/models/tdeCertificatesMappers.ts | 6 + ...nsparentDataEncryptionActivitiesMappers.ts | 6 + .../transparentDataEncryptionsMappers.ts | 6 + .../lib/models/virtualClustersMappers.ts | 119 ++ .../lib/models/virtualNetworkRulesMappers.ts | 6 + .../@azure/arm-sql/lib/operations/index.ts | 8 + .../arm-sql/lib/operations/jobExecutions.ts | 4 +- .../operations/longTermRetentionBackups.ts | 38 +- .../managedDatabaseSecurityAlertPolicies.ts | 299 +++ .../managedDatabaseSensitivityLabels.ts | 523 ++++++ .../lib/operations/managedDatabases.ts | 4 +- ...atabaseBackupShortTermRetentionPolicies.ts | 362 ++++ .../managedServerSecurityAlertPolicies.ts | 270 +++ .../lib/operations/recommendedElasticPools.ts | 4 +- .../operations/recoverableManagedDatabases.ts | 204 ++ .../restorableDroppedManagedDatabases.ts | 204 ++ .../lib/operations/sensitivityLabels.ts | 523 ++++++ .../operations/serverSecurityAlertPolicies.ts | 109 ++ .../arm-sql/lib/operations/virtualClusters.ts | 416 ++++ .../@azure/arm-sql/lib/sqlManagementClient.ts | 16 + .../arm-sql/lib/sqlManagementClientContext.ts | 2 +- packages/@azure/arm-sql/package.json | 8 +- packages/@azure/arm-sql/rollup.config.js | 22 +- 99 files changed, 6594 insertions(+), 257 deletions(-) create mode 100644 packages/@azure/arm-sql/lib/models/managedDatabaseSecurityAlertPoliciesMappers.ts create mode 100644 packages/@azure/arm-sql/lib/models/managedDatabaseSensitivityLabelsMappers.ts create mode 100644 packages/@azure/arm-sql/lib/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts create mode 100644 packages/@azure/arm-sql/lib/models/managedServerSecurityAlertPoliciesMappers.ts create mode 100644 packages/@azure/arm-sql/lib/models/recoverableManagedDatabasesMappers.ts create mode 100644 packages/@azure/arm-sql/lib/models/restorableDroppedManagedDatabasesMappers.ts create mode 100644 packages/@azure/arm-sql/lib/models/sensitivityLabelsMappers.ts create mode 100644 packages/@azure/arm-sql/lib/models/virtualClustersMappers.ts create mode 100644 packages/@azure/arm-sql/lib/operations/managedDatabaseSecurityAlertPolicies.ts create mode 100644 packages/@azure/arm-sql/lib/operations/managedDatabaseSensitivityLabels.ts create mode 100644 packages/@azure/arm-sql/lib/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts create mode 100644 packages/@azure/arm-sql/lib/operations/managedServerSecurityAlertPolicies.ts create mode 100644 packages/@azure/arm-sql/lib/operations/recoverableManagedDatabases.ts create mode 100644 packages/@azure/arm-sql/lib/operations/restorableDroppedManagedDatabases.ts create mode 100644 packages/@azure/arm-sql/lib/operations/sensitivityLabels.ts create mode 100644 packages/@azure/arm-sql/lib/operations/virtualClusters.ts diff --git a/packages/@azure/arm-sql/LICENSE.txt b/packages/@azure/arm-sql/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-sql/LICENSE.txt +++ b/packages/@azure/arm-sql/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/@azure/arm-sql/README.md b/packages/@azure/arm-sql/README.md index dbe1c4da6690..edc64500ac1c 100644 --- a/packages/@azure/arm-sql/README.md +++ b/packages/@azure/arm-sql/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for SqlManagementClient. ### How to Install -``` +```bash npm install @azure/arm-sql ``` @@ -19,13 +19,13 @@ npm install @azure/arm-sql ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -50,7 +50,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -100,6 +100,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-sql%2FREADME.png) diff --git a/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts index 9b1e7e497ee1..a06d15face19 100644 --- a/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts index 2a8d93a2f100..42e74dd407cd 100644 --- a/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts index 6d6b6e4a3641..d9fb06c851bc 100644 --- a/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts @@ -57,6 +57,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts b/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts index d8c6fac89cee..06451c44d47e 100644 --- a/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts index 64fb0c24de1b..6a1d23c09d48 100644 --- a/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts @@ -57,6 +57,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts index 54308c74c9e1..562d5b38a665 100644 --- a/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts index a49d7ae98f15..f22e7a24aa2f 100644 --- a/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, ElasticPoolOperation, Database, ElasticPool, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts index 3b0bc1dabeb2..6b96fb29b8bc 100644 --- a/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts @@ -57,6 +57,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts index c4b8fc420135..8f28b6480e12 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts index 6b99eba6b730..420534e66fae 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts @@ -61,6 +61,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -91,7 +92,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts index 4e767e46ed81..f012d61e782a 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/databasesMappers.ts b/packages/@azure/arm-sql/lib/models/databasesMappers.ts index 668002d4229f..2d56232cdc3c 100644 --- a/packages/@azure/arm-sql/lib/models/databasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databasesMappers.ts @@ -71,6 +71,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -101,7 +102,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, ElasticPool, @@ -118,6 +123,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts index ef41e5151659..c8a73df3ec25 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts index c5040266d207..20e37c502f65 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts index f18dd19eed3d..49c748cb5ba1 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, Database, ElasticPool, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts index ed00a94c0f0b..454e550454cd 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts @@ -66,6 +66,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -96,7 +97,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -112,6 +117,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment, RecoverableDatabase, diff --git a/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts b/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts index 04630bc8fa5f..a8db7819239b 100644 --- a/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts index 2f67a923a3a9..7d2267480b3b 100644 --- a/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedServerBlobAuditingPolicy, ServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts index 3616f3fae898..22180652a677 100644 --- a/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts index b3a9432519e5..2bf2390abbf1 100644 --- a/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -107,6 +112,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts b/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts index 88d7b858534c..02d7b45177dd 100644 --- a/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts index a0d76bd5bf45..007cd21f3964 100644 --- a/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index d9a4855881f0..4f70f0f8f507 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -895,7 +895,7 @@ export interface MetricDefinition { readonly unit?: UnitDefinitionType; /** * @member {MetricAvailability[]} [metricAvailabilities] The list of database - * metric availabities for the metric. + * metric availabilities for the metric. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -928,7 +928,7 @@ export interface RecommendedElasticPoolMetric { /** * @interface * An interface representing RecommendedElasticPool. - * Represents a recommented elastic pool. + * Represents a recommended elastic pool. * * @extends ProxyResource */ @@ -2314,6 +2314,31 @@ export interface ManagedInstance extends TrackedResource { * instance whose DNS zone this managed instance will share after creation. */ dnsZonePartner?: string; + /** + * @member {boolean} [publicDataEndpointEnabled] Whether or not the public + * data endpoint is enabled. + */ + publicDataEndpointEnabled?: boolean; + /** + * @member {ManagedInstanceProxyOverride} [proxyOverride] Connection type + * used for connecting to the instance. Possible values include: 'Proxy', + * 'Redirect', 'Default' + */ + proxyOverride?: ManagedInstanceProxyOverride; + /** + * @member {string} [timezoneId] Id of the timezone. Allowed values are + * timezones supported by Windows. + * Windows keeps details on supported timezones, including the id, in + * registry under + * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + * You can get those registry values via SQL Server by querying SELECT name + * AS timezone_id FROM sys.time_zone_info. + * List of Ids can also be obtained by executing + * [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + * An example of valid timezone id is "Pacific Standard Time" or "W. Europe + * Standard Time". + */ + timezoneId?: string; } /** @@ -2383,6 +2408,31 @@ export interface ManagedInstanceUpdate { * instance whose DNS zone this managed instance will share after creation. */ dnsZonePartner?: string; + /** + * @member {boolean} [publicDataEndpointEnabled] Whether or not the public + * data endpoint is enabled. + */ + publicDataEndpointEnabled?: boolean; + /** + * @member {ManagedInstanceProxyOverride} [proxyOverride] Connection type + * used for connecting to the instance. Possible values include: 'Proxy', + * 'Redirect', 'Default' + */ + proxyOverride?: ManagedInstanceProxyOverride; + /** + * @member {string} [timezoneId] Id of the timezone. Allowed values are + * timezones supported by Windows. + * Windows keeps details on supported timezones, including the id, in + * registry under + * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + * You can get those registry values via SQL Server by querying SELECT name + * AS timezone_id FROM sys.time_zone_info. + * List of Ids can also be obtained by executing + * [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. + * An example of valid timezone id is "Pacific Standard Time" or "W. Europe + * Standard Time". + */ + timezoneId?: string; /** * @member {{ [propertyName: string]: string }} [tags] Resource tags. */ @@ -3096,6 +3146,65 @@ export interface SubscriptionUsage extends ProxyResource { readonly unit?: string; } +/** + * @interface + * An interface representing VirtualCluster. + * An Azure SQL virtual cluster. + * + * @extends TrackedResource + */ +export interface VirtualCluster extends TrackedResource { + /** + * @member {string} [subnetId] Subnet resource ID for the virtual cluster. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subnetId?: string; + /** + * @member {string} [family] If the service has different generations of + * hardware, for the same SKU, then that can be captured here. + */ + family?: string; + /** + * @member {string[]} [childResources] List of resources in this virtual + * cluster. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly childResources?: string[]; +} + +/** + * @interface + * An interface representing VirtualClusterUpdate. + * An update request for an Azure SQL Database virtual cluster. + * + */ +export interface VirtualClusterUpdate { + /** + * @member {string} [subnetId] Subnet resource ID for the virtual cluster. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subnetId?: string; + /** + * @member {string} [family] If the service has different generations of + * hardware, for the same SKU, then that can be captured here. + */ + family?: string; + /** + * @member {string[]} [childResources] List of resources in this virtual + * cluster. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly childResources?: string[]; + /** + * @member {{ [propertyName: string]: string }} [tags] Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + /** * @interface * An interface representing VirtualNetworkRule. @@ -3999,7 +4108,7 @@ export interface JobSchedule { enabled?: boolean; /** * @member {string} [interval] Value of the schedule's recurring interval, if - * the scheduletype is recurring. ISO8601 duration format. + * the schedule type is recurring. ISO8601 duration format. */ interval?: string; } @@ -4360,9 +4469,9 @@ export interface ManagedDatabase extends TrackedResource { */ collation?: string; /** - * @member {ManagedDatabaseStatus} [status] Status for the database. Possible + * @member {ManagedDatabaseStatus} [status] Status of the database. Possible * values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' + * 'Inaccessible', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -4406,8 +4515,10 @@ export interface ManagedDatabase extends TrackedResource { * SourceManagedInstanceName and PointInTime must be specified. * RestoreExternalBackup: Create a database by restoring from external backup * files. Collation, StorageContainerUri and StorageContainerSasToken must be - * specified. Possible values include: 'Default', 'RestoreExternalBackup', - * 'PointInTimeRestore' + * specified. Recovery: Creates a database by restoring a geo-replicated + * backup. RecoverableDatabaseId must be specified as the recoverable + * database resource ID to restore. Possible values include: 'Default', + * 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' */ createMode?: ManagedDatabaseCreateMode; /** @@ -4421,6 +4532,11 @@ export interface ManagedDatabase extends TrackedResource { * database associated with create operation of this database. */ sourceDatabaseId?: string; + /** + * @member {string} [restorableDroppedDatabaseId] The restorable dropped + * database resource id to restore when creating this database. + */ + restorableDroppedDatabaseId?: string; /** * @member {string} [storageContainerSasToken] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the storage @@ -4434,6 +4550,11 @@ export interface ManagedDatabase extends TrackedResource { * the server.** */ readonly failoverGroupId?: string; + /** + * @member {string} [recoverableDatabaseId] The resource identifier of the + * recoverable database associated with create operation of this database. + */ + recoverableDatabaseId?: string; } /** @@ -4448,9 +4569,9 @@ export interface ManagedDatabaseUpdate { */ collation?: string; /** - * @member {ManagedDatabaseStatus} [status] Status for the database. Possible + * @member {ManagedDatabaseStatus} [status] Status of the database. Possible * values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' + * 'Inaccessible', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -4494,8 +4615,10 @@ export interface ManagedDatabaseUpdate { * SourceManagedInstanceName and PointInTime must be specified. * RestoreExternalBackup: Create a database by restoring from external backup * files. Collation, StorageContainerUri and StorageContainerSasToken must be - * specified. Possible values include: 'Default', 'RestoreExternalBackup', - * 'PointInTimeRestore' + * specified. Recovery: Creates a database by restoring a geo-replicated + * backup. RecoverableDatabaseId must be specified as the recoverable + * database resource ID to restore. Possible values include: 'Default', + * 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' */ createMode?: ManagedDatabaseCreateMode; /** @@ -4509,6 +4632,11 @@ export interface ManagedDatabaseUpdate { * database associated with create operation of this database. */ sourceDatabaseId?: string; + /** + * @member {string} [restorableDroppedDatabaseId] The restorable dropped + * database resource id to restore when creating this database. + */ + restorableDroppedDatabaseId?: string; /** * @member {string} [storageContainerSasToken] Conditional. If createMode is * RestoreExternalBackup, this value is required. Specifies the storage @@ -4522,6 +4650,11 @@ export interface ManagedDatabaseUpdate { * the server.** */ readonly failoverGroupId?: string; + /** + * @member {string} [recoverableDatabaseId] The resource identifier of the + * recoverable database associated with create operation of this database. + */ + recoverableDatabaseId?: string; /** * @member {{ [propertyName: string]: string }} [tags] Resource tags. */ @@ -4631,8 +4764,9 @@ export interface ServerDnsAliasAcquisition { export interface ServerSecurityAlertPolicy extends ProxyResource { /** * @member {SecurityAlertPolicyState} state Specifies the state of the - * policy, whether it is enabled or disabled. Possible values include: 'New', - * 'Enabled', 'Disabled' + * policy, whether it is enabled or disabled or a policy has not been applied + * yet on the specific database. Possible values include: 'New', 'Enabled', + * 'Disabled' */ state: SecurityAlertPolicyState; /** @@ -4667,6 +4801,50 @@ export interface ServerSecurityAlertPolicy extends ProxyResource { * the Threat Detection audit logs. */ retentionDays?: number; + /** + * @member {Date} [creationTime] Specifies the UTC creation time of the + * policy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; +} + +/** + * @interface + * An interface representing RestorableDroppedManagedDatabase. + * A restorable dropped managed database resource. + * + * @extends TrackedResource + */ +export interface RestorableDroppedManagedDatabase extends TrackedResource { + /** + * @member {string} [databaseName] The name of the database. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseName?: string; + /** + * @member {Date} [creationDate] The creation date of the database (ISO8601 + * format). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationDate?: Date; + /** + * @member {Date} [deletionDate] The deletion date of the database (ISO8601 + * format). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly deletionDate?: Date; + /** + * @member {Date} [earliestRestoreDate] The earliest restore date of the + * database (ISO8601 format). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly earliestRestoreDate?: Date; } /** @@ -4726,6 +4904,144 @@ export interface CreateDatabaseRestorePointDefinition { restorePointLabel: string; } +/** + * @interface + * An interface representing ManagedDatabaseSecurityAlertPolicy. + * A managed database security alert policy. + * + * @extends ProxyResource + */ +export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { + /** + * @member {SecurityAlertPolicyState} state Specifies the state of the + * policy, whether it is enabled or disabled or a policy has not been applied + * yet on the specific database. Possible values include: 'New', 'Enabled', + * 'Disabled' + */ + state: SecurityAlertPolicyState; + /** + * @member {string[]} [disabledAlerts] Specifies an array of alerts that are + * disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, + * Access_Anomaly, Data_Exfiltration, Unsafe_Action + */ + disabledAlerts?: string[]; + /** + * @member {string[]} [emailAddresses] Specifies an array of e-mail addresses + * to which the alert is sent. + */ + emailAddresses?: string[]; + /** + * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to + * the account administrators. + */ + emailAccountAdmins?: boolean; + /** + * @member {string} [storageEndpoint] Specifies the blob storage endpoint + * (e.g. https://MyAccount.blob.core.windows.net). This blob storage will + * hold all Threat Detection audit logs. + */ + storageEndpoint?: string; + /** + * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * the Threat Detection audit storage account. + */ + storageAccountAccessKey?: string; + /** + * @member {number} [retentionDays] Specifies the number of days to keep in + * the Threat Detection audit logs. + */ + retentionDays?: number; + /** + * @member {Date} [creationTime] Specifies the UTC creation time of the + * policy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; +} + +/** + * @interface + * An interface representing ManagedServerSecurityAlertPolicy. + * A managed server security alert policy. + * + * @extends ProxyResource + */ +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { + /** + * @member {SecurityAlertPolicyState} state Specifies the state of the + * policy, whether it is enabled or disabled or a policy has not been applied + * yet on the specific database. Possible values include: 'New', 'Enabled', + * 'Disabled' + */ + state: SecurityAlertPolicyState; + /** + * @member {string[]} [disabledAlerts] Specifies an array of alerts that are + * disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, + * Access_Anomaly, Data_Exfiltration, Unsafe_Action + */ + disabledAlerts?: string[]; + /** + * @member {string[]} [emailAddresses] Specifies an array of e-mail addresses + * to which the alert is sent. + */ + emailAddresses?: string[]; + /** + * @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to + * the account administrators. + */ + emailAccountAdmins?: boolean; + /** + * @member {string} [storageEndpoint] Specifies the blob storage endpoint + * (e.g. https://MyAccount.blob.core.windows.net). This blob storage will + * hold all Threat Detection audit logs. + */ + storageEndpoint?: string; + /** + * @member {string} [storageAccountAccessKey] Specifies the identifier key of + * the Threat Detection audit storage account. + */ + storageAccountAccessKey?: string; + /** + * @member {number} [retentionDays] Specifies the number of days to keep in + * the Threat Detection audit logs. + */ + retentionDays?: number; + /** + * @member {Date} [creationTime] Specifies the UTC creation time of the + * policy. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly creationTime?: Date; +} + +/** + * @interface + * An interface representing SensitivityLabel. + * A sensitivity label. + * + * @extends ProxyResource + */ +export interface SensitivityLabel extends ProxyResource { + /** + * @member {string} [labelName] The label name. + */ + labelName?: string; + /** + * @member {string} [labelId] The label ID. + */ + labelId?: string; + /** + * @member {string} [informationType] The information type. + */ + informationType?: string; + /** + * @member {string} [informationTypeId] The information type ID. + */ + informationTypeId?: string; +} + /** * @interface * An interface representing DatabaseOperation. @@ -6503,6 +6819,22 @@ export interface ManagedInstanceEncryptionProtector extends ProxyResource { readonly thumbprint?: string; } +/** + * @interface + * An interface representing RecoverableManagedDatabase. + * A recoverable managed database resource. + * + * @extends ProxyResource + */ +export interface RecoverableManagedDatabase extends ProxyResource { + /** + * @member {string} [lastAvailableBackupDate] The last available backup date. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastAvailableBackupDate?: string; +} + /** * @interface * An interface representing ManagedInstanceVulnerabilityAssessment. @@ -6887,29 +7219,31 @@ export interface LongTermRetentionBackupsListByServerOptionalParams extends msRe /** * @interface - * An interface representing CapabilitiesListByLocationOptionalParams. + * An interface representing SensitivityLabelsListCurrentByDatabaseOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface CapabilitiesListByLocationOptionalParams extends msRest.RequestOptionsBase { +export interface SensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { /** - * @member {CapabilityGroup} [include] If specified, restricts the response - * to only include the selected item. Possible values include: - * 'supportedEditions', 'supportedElasticPoolEditions', - * 'supportedManagedInstanceVersions' + * @member {string} [filter] An OData filter expression that filters elements + * in the collection. */ - include?: CapabilityGroup; + filter?: string; } /** * @interface - * An interface representing ManagedInstanceKeysListByInstanceOptionalParams. + * An interface representing SensitivityLabelsListRecommendedByDatabaseOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ManagedInstanceKeysListByInstanceOptionalParams extends msRest.RequestOptionsBase { +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [skipToken] + */ + skipToken?: string; /** * @member {string} [filter] An OData filter expression that filters elements * in the collection. @@ -6919,13 +7253,79 @@ export interface ManagedInstanceKeysListByInstanceOptionalParams extends msRest. /** * @interface - * An interface representing SqlManagementClientOptions. - * @extends AzureServiceClientOptions + * An interface representing CapabilitiesListByLocationOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface SqlManagementClientOptions extends AzureServiceClientOptions { +export interface CapabilitiesListByLocationOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [baseUri] - */ + * @member {CapabilityGroup} [include] If specified, restricts the response + * to only include the selected item. Possible values include: + * 'supportedEditions', 'supportedElasticPoolEditions', + * 'supportedManagedInstanceVersions' + */ + include?: CapabilityGroup; +} + +/** + * @interface + * An interface representing ManagedInstanceKeysListByInstanceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ManagedInstanceKeysListByInstanceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] An OData filter expression that filters elements + * in the collection. + */ + filter?: string; +} + +/** + * @interface + * An interface representing ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] An OData filter expression that filters elements + * in the collection. + */ + filter?: string; +} + +/** + * @interface + * An interface representing ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [skipToken] + */ + skipToken?: string; + /** + * @member {string} [filter] An OData filter expression that filters elements + * in the collection. + */ + filter?: string; +} + +/** + * @interface + * An interface representing SqlManagementClientOptions. + * @extends AzureServiceClientOptions + */ +export interface SqlManagementClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ baseUri?: string; } @@ -7377,6 +7777,22 @@ export interface SubscriptionUsageListResult extends Array { readonly nextLink?: string; } +/** + * @interface + * An interface representing the VirtualClusterListResult. + * A list of virtual clusters. + * + * @extends Array + */ +export interface VirtualClusterListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the VirtualNetworkRuleListResult. @@ -7524,7 +7940,7 @@ export interface JobVersionListResult extends Array { /** * @interface * An interface representing the LongTermRetentionBackupListResult. - * A list of long term retention bacukps. + * A list of long term retention backups. * * @extends Array */ @@ -7585,10 +8001,42 @@ export interface ServerDnsAliasListResult extends Array { readonly nextLink?: string; } +/** + * @interface + * An interface representing the LogicalServerSecurityAlertPolicyListResult. + * A list of the server's security alert policies. + * + * @extends Array + */ +export interface LogicalServerSecurityAlertPolicyListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the RestorableDroppedManagedDatabaseListResult. + * A list of restorable dropped managed databases. + * + * @extends Array + */ +export interface RestorableDroppedManagedDatabaseListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the RestorePointListResult. - * A list of long term retention bacukps. + * A list of long term retention backups. * * @extends Array */ @@ -7601,6 +8049,54 @@ export interface RestorePointListResult extends Array { readonly nextLink?: string; } +/** + * @interface + * An interface representing the ManagedDatabaseSecurityAlertPolicyListResult. + * A list of the managed database's security alert policies. + * + * @extends Array + */ +export interface ManagedDatabaseSecurityAlertPolicyListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ManagedServerSecurityAlertPolicyListResult. + * A list of the managed Server's security alert policies. + * + * @extends Array + */ +export interface ManagedServerSecurityAlertPolicyListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the SensitivityLabelListResult. + * A list of sensitivity labels. + * + * @extends Array + */ +export interface SensitivityLabelListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the DatabaseOperationListResult. @@ -7713,6 +8209,22 @@ export interface ManagedInstanceEncryptionProtectorListResult extends Array + */ +export interface RecoverableManagedDatabaseListResult extends Array { + /** + * @member {string} [nextLink] Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the ManagedInstanceVulnerabilityAssessmentListResult. @@ -8020,6 +8532,14 @@ export type FailoverGroupReplicationRole = 'Primary' | 'Secondary'; */ export type IdentityType = 'SystemAssigned'; +/** + * Defines values for ManagedInstanceProxyOverride. + * Possible values include: 'Proxy', 'Redirect', 'Default' + * @readonly + * @enum {string} + */ +export type ManagedInstanceProxyOverride = 'Proxy' | 'Redirect' | 'Default'; + /** * Defines values for OperationOrigin. * Possible values include: 'user', 'system' @@ -8181,11 +8701,11 @@ export type JobTargetGroupMembershipType = 'Include' | 'Exclude'; /** * Defines values for ManagedDatabaseStatus. - * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' + * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating' * @readonly * @enum {string} */ -export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible'; +export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Updating'; /** * Defines values for CatalogCollationType. @@ -8197,11 +8717,11 @@ export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_ /** * Defines values for ManagedDatabaseCreateMode. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' * @readonly * @enum {string} */ -export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore'; +export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery'; /** * Defines values for AutomaticTuningServerMode. @@ -8368,6 +8888,14 @@ export type LongTermRetentionDatabaseState = 'All' | 'Live' | 'Deleted'; */ export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; +/** + * Defines values for SensitivityLabelSource. + * Possible values include: 'current', 'recommended' + * @readonly + * @enum {string} + */ +export type SensitivityLabelSource = 'current' | 'recommended'; + /** * Defines values for CapabilityGroup. * Possible values include: 'supportedEditions', 'supportedElasticPoolEditions', @@ -11255,9 +11783,9 @@ export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageList }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { +export type VirtualClustersListResponse = VirtualClusterListResult & { /** * The underlying HTTP response. */ @@ -11269,14 +11797,14 @@ export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: VirtualClusterListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult & { /** * The underlying HTTP response. */ @@ -11288,14 +11816,14 @@ export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: VirtualClusterListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the get operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult & { +export type VirtualClustersGetResponse = VirtualCluster & { /** * The underlying HTTP response. */ @@ -11307,14 +11835,14 @@ export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResu /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRuleListResult; + parsedBody: VirtualCluster; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule & { +export type VirtualClustersUpdateResponse = VirtualCluster & { /** * The underlying HTTP response. */ @@ -11326,14 +11854,14 @@ export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: VirtualCluster; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the beginUpdate operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult & { +export type VirtualClustersBeginUpdateResponse = VirtualCluster & { /** * The underlying HTTP response. */ @@ -11345,14 +11873,14 @@ export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleList /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRuleListResult; + parsedBody: VirtualCluster; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy & { +export type VirtualClustersListNextResponse = VirtualClusterListResult & { /** * The underlying HTTP response. */ @@ -11364,14 +11892,14 @@ export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBl /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedDatabaseBlobAuditingPolicy; + parsedBody: VirtualClusterListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy & { +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult & { /** * The underlying HTTP response. */ @@ -11383,14 +11911,14 @@ export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = Extende /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedDatabaseBlobAuditingPolicy; + parsedBody: VirtualClusterListResult; }; }; /** * Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy & { +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { /** * The underlying HTTP response. */ @@ -11402,14 +11930,14 @@ export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAu /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedServerBlobAuditingPolicy; + parsedBody: VirtualNetworkRule; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { /** * The underlying HTTP response. */ @@ -11421,14 +11949,14 @@ export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedS /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedServerBlobAuditingPolicy; + parsedBody: VirtualNetworkRule; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByServer operation. */ -export type ExtendedServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult & { /** * The underlying HTTP response. */ @@ -11440,14 +11968,14 @@ export type ExtendedServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = Exte /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedServerBlobAuditingPolicy; + parsedBody: VirtualNetworkRuleListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy & { +export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule & { /** * The underlying HTTP response. */ @@ -11459,14 +11987,14 @@ export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerBlobAuditingPolicy; + parsedBody: VirtualNetworkRule; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy & { +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult & { /** * The underlying HTTP response. */ @@ -11478,14 +12006,14 @@ export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditin /** * The response body as parsed JSON or XML */ - parsedBody: ServerBlobAuditingPolicy; + parsedBody: VirtualNetworkRuleListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ServerBlobAuditingPolicy & { +export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy & { /** * The underlying HTTP response. */ @@ -11497,14 +12025,14 @@ export type ServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ServerBlobAu /** * The response body as parsed JSON or XML */ - parsedBody: ServerBlobAuditingPolicy; + parsedBody: ExtendedDatabaseBlobAuditingPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy & { +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy & { /** * The underlying HTTP response. */ @@ -11516,14 +12044,14 @@ export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseBlobAuditingPolicy; + parsedBody: ExtendedDatabaseBlobAuditingPolicy; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy & { +export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy & { /** * The underlying HTTP response. */ @@ -11535,14 +12063,14 @@ export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAud /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseBlobAuditingPolicy; + parsedBody: ExtendedServerBlobAuditingPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { +export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { /** * The underlying HTTP response. */ @@ -11554,14 +12082,14 @@ export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + parsedBody: ExtendedServerBlobAuditingPolicy; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { +export type ExtendedServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { /** * The underlying HTTP response. */ @@ -11573,14 +12101,14 @@ export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + parsedBody: ExtendedServerBlobAuditingPolicy; }; }; /** * Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment & { +export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy & { /** * The underlying HTTP response. */ @@ -11592,14 +12120,14 @@ export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityA /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessment; + parsedBody: ServerBlobAuditingPolicy; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment & { +export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy & { /** * The underlying HTTP response. */ @@ -11611,14 +12139,14 @@ export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVul /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessment; + parsedBody: ServerBlobAuditingPolicy; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { +export type ServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ServerBlobAuditingPolicy & { /** * The underlying HTTP response. */ @@ -11630,14 +12158,147 @@ export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVul /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; + parsedBody: ServerBlobAuditingPolicy; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { +export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessment; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessment; + }; +}; + +/** + * Contains response data for the listByDatabase operation. + */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentListResult; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -13005,7 +13666,7 @@ export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResu /** * Contains response data for the get operation. */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -13017,14 +13678,14 @@ export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerAutomaticTuning; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -13036,14 +13697,14 @@ export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerAutomaticTuning; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -13055,14 +13716,14 @@ export type ServerDnsAliasesGetResponse = ServerDnsAlias & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAlias; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByRestorableDroppedDatabase operation. */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -13074,14 +13735,14 @@ export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAlias; + parsedBody: ManagedBackupShortTermRetentionPolicyListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -13093,14 +13754,14 @@ export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAliasListResult; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type ServerDnsAliasesBeginCreateOrUpdateResponse = ServerDnsAlias & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -13112,14 +13773,14 @@ export type ServerDnsAliasesBeginCreateOrUpdateResponse = ServerDnsAlias & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAlias; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByRestorableDroppedDatabaseNext operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -13131,14 +13792,14 @@ export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAliasListResult; + parsedBody: ManagedBackupShortTermRetentionPolicyListResult; }; }; /** * Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning & { /** * The underlying HTTP response. */ @@ -13150,14 +13811,14 @@ export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & /** * The response body as parsed JSON or XML */ - parsedBody: ServerSecurityAlertPolicy; + parsedBody: ServerAutomaticTuning; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning & { /** * The underlying HTTP response. */ @@ -13169,14 +13830,14 @@ export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAl /** * The response body as parsed JSON or XML */ - parsedBody: ServerSecurityAlertPolicy; + parsedBody: ServerAutomaticTuning; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { +export type ServerDnsAliasesGetResponse = ServerDnsAlias & { /** * The underlying HTTP response. */ @@ -13188,14 +13849,14 @@ export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecur /** * The response body as parsed JSON or XML */ - parsedBody: ServerSecurityAlertPolicy; + parsedBody: ServerDnsAlias; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the createOrUpdate operation. */ -export type RestorePointsListByDatabaseResponse = RestorePointListResult & { +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias & { /** * The underlying HTTP response. */ @@ -13207,14 +13868,14 @@ export type RestorePointsListByDatabaseResponse = RestorePointListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RestorePointListResult; + parsedBody: ServerDnsAlias; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByServer operation. */ -export type RestorePointsCreateResponse = RestorePoint & { +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult & { /** * The underlying HTTP response. */ @@ -13226,14 +13887,14 @@ export type RestorePointsCreateResponse = RestorePoint & { /** * The response body as parsed JSON or XML */ - parsedBody: RestorePoint; + parsedBody: ServerDnsAliasListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type RestorePointsGetResponse = RestorePoint & { +export type ServerDnsAliasesBeginCreateOrUpdateResponse = ServerDnsAlias & { /** * The underlying HTTP response. */ @@ -13245,14 +13906,14 @@ export type RestorePointsGetResponse = RestorePoint & { /** * The response body as parsed JSON or XML */ - parsedBody: RestorePoint; + parsedBody: ServerDnsAlias; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the listByServerNext operation. */ -export type RestorePointsBeginCreateResponse = RestorePoint & { +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult & { /** * The underlying HTTP response. */ @@ -13264,14 +13925,14 @@ export type RestorePointsBeginCreateResponse = RestorePoint & { /** * The response body as parsed JSON or XML */ - parsedBody: RestorePoint; + parsedBody: ServerDnsAliasListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the get operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult & { +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -13283,14 +13944,14 @@ export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseOperationListResult; + parsedBody: ServerSecurityAlertPolicy; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the createOrUpdate operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult & { +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -13302,14 +13963,14 @@ export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationList /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseOperationListResult; + parsedBody: ServerSecurityAlertPolicy; }; }; /** - * Contains response data for the listByElasticPool operation. + * Contains response data for the listByServer operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult & { +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult & { /** * The underlying HTTP response. */ @@ -13321,14 +13982,14 @@ export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperatio /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPoolOperationListResult; + parsedBody: LogicalServerSecurityAlertPolicyListResult; }; }; /** - * Contains response data for the listByElasticPoolNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult & { +export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -13340,14 +14001,14 @@ export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOper /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPoolOperationListResult; + parsedBody: ServerSecurityAlertPolicy; }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the listByServerNext operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities & { +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult & { /** * The underlying HTTP response. */ @@ -13359,14 +14020,14 @@ export type CapabilitiesListByLocationResponse = LocationCapabilities & { /** * The response body as parsed JSON or XML */ - parsedBody: LocationCapabilities; + parsedBody: LogicalServerSecurityAlertPolicyListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByInstance operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { +export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -13378,14 +14039,14 @@ export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = Vulnera /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: RestorableDroppedManagedDatabaseListResult; }; }; /** * Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { +export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase & { /** * The underlying HTTP response. */ @@ -13397,14 +14058,14 @@ export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAsses /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecord; + parsedBody: RestorableDroppedManagedDatabase; }; }; /** - * Contains response data for the exportMethod operation. + * Contains response data for the listByInstanceNext operation. */ -export type DatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseVulnerabilityAssessmentScansExport & { +export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -13416,14 +14077,14 @@ export type DatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseV /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentScansExport; + parsedBody: RestorableDroppedManagedDatabaseListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult & { +export type RestorePointsListByDatabaseResponse = RestorePointListResult & { /** * The underlying HTTP response. */ @@ -13435,14 +14096,14 @@ export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = Vul /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: RestorePointListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the create operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { +export type RestorePointsCreateResponse = RestorePoint & { /** * The underlying HTTP response. */ @@ -13454,14 +14115,527 @@ export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = Dat /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + parsedBody: RestorePoint; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { +export type RestorePointsGetResponse = RestorePoint & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorePoint; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type RestorePointsBeginCreateResponse = RestorePoint & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RestorePoint; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedDatabaseSecurityAlertPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedDatabaseSecurityAlertPolicy; + }; +}; + +/** + * Contains response data for the listByDatabase operation. + */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedDatabaseSecurityAlertPolicyListResult; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedDatabaseSecurityAlertPolicyListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedServerSecurityAlertPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedServerSecurityAlertPolicy; + }; +}; + +/** + * Contains response data for the listByInstance operation. + */ +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedServerSecurityAlertPolicyListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ManagedServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedServerSecurityAlertPolicy; + }; +}; + +/** + * Contains response data for the listByInstanceNext operation. + */ +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ManagedServerSecurityAlertPolicyListResult; + }; +}; + +/** + * Contains response data for the listCurrentByDatabase operation. + */ +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabelListResult; + }; +}; + +/** + * Contains response data for the listRecommendedByDatabase operation. + */ +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabelListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SensitivityLabelsGetResponse = SensitivityLabel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabel; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabel; + }; +}; + +/** + * Contains response data for the listCurrentByDatabaseNext operation. + */ +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabelListResult; + }; +}; + +/** + * Contains response data for the listRecommendedByDatabaseNext operation. + */ +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabelListResult; + }; +}; + +/** + * Contains response data for the listByDatabase operation. + */ +export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseOperationListResult; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseOperationListResult; + }; +}; + +/** + * Contains response data for the listByElasticPool operation. + */ +export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPoolOperationListResult; + }; +}; + +/** + * Contains response data for the listByElasticPoolNext operation. + */ +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPoolOperationListResult; + }; +}; + +/** + * Contains response data for the listByLocation operation. + */ +export type CapabilitiesListByLocationResponse = LocationCapabilities & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: LocationCapabilities; + }; +}; + +/** + * Contains response data for the listByDatabase operation. + */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VulnerabilityAssessmentScanRecordListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VulnerabilityAssessmentScanRecord; + }; +}; + +/** + * Contains response data for the exportMethod operation. + */ +export type DatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseVulnerabilityAssessmentScansExport & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentScansExport; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: VulnerabilityAssessmentScanRecordListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { /** * The underlying HTTP response. */ @@ -14123,6 +15297,63 @@ export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = Mana }; }; +/** + * Contains response data for the listByInstance operation. + */ +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecoverableManagedDatabaseListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecoverableManagedDatabase; + }; +}; + +/** + * Contains response data for the listByInstanceNext operation. + */ +export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecoverableManagedDatabaseListResult; + }; +}; + /** * Contains response data for the get operation. */ @@ -14274,3 +15505,117 @@ export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulne parsedBody: ServerVulnerabilityAssessmentListResult; }; }; + +/** + * Contains response data for the get operation. + */ +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabel; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabel; + }; +}; + +/** + * Contains response data for the listCurrentByDatabase operation. + */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabelListResult; + }; +}; + +/** + * Contains response data for the listRecommendedByDatabase operation. + */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabelListResult; + }; +}; + +/** + * Contains response data for the listCurrentByDatabaseNext operation. + */ +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabelListResult; + }; +}; + +/** + * Contains response data for the listRecommendedByDatabaseNext operation. + */ +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SensitivityLabelListResult; + }; +}; diff --git a/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts index ce87cb35438d..3059e05886fe 100644 --- a/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts @@ -63,6 +63,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -93,7 +94,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts b/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts index d0613502a046..213ea3d56879 100644 --- a/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment, RecoverableDatabase, diff --git a/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts b/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts index d29ab9c04220..96c1ea8c8ca6 100644 --- a/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts index b7d3b2922eca..09748d530070 100644 --- a/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts index b7d3b2922eca..09748d530070 100644 --- a/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts b/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts index f07f3b7b93f4..aa7d1d31d347 100644 --- a/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts @@ -62,6 +62,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts index b7d3b2922eca..09748d530070 100644 --- a/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts index 607c64d8a5ad..2761e8d82439 100644 --- a/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts index d298b791cac8..c8c94c04adad 100644 --- a/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/jobsMappers.ts b/packages/@azure/arm-sql/lib/models/jobsMappers.ts index 08c36a6b1477..ea204984b318 100644 --- a/packages/@azure/arm-sql/lib/models/jobsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts b/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts index 7ea32d42e40d..2ae0a65895f3 100644 --- a/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts index 724f7030df6f..0d6647cc1f29 100644 --- a/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseSecurityAlertPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseSecurityAlertPoliciesMappers.ts new file mode 100644 index 000000000000..b6c9aa3fde19 --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseSecurityAlertPoliciesMappers.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ManagedDatabaseSecurityAlertPolicy, + ProxyResource, + Resource, + BaseResource, + CloudError, + ManagedDatabaseSecurityAlertPolicyListResult, + RecoverableDatabase, + RestorableDroppedDatabase, + TrackedResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualCluster, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, + RestorePoint, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, + ManagedInstanceVulnerabilityAssessment, + ServerVulnerabilityAssessment +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseSensitivityLabelsMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseSensitivityLabelsMappers.ts new file mode 100644 index 000000000000..55a69b7ff73b --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseSensitivityLabelsMappers.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SensitivityLabel, + ProxyResource, + Resource, + BaseResource, + CloudError, + SensitivityLabelListResult, + RecoverableDatabase, + RestorableDroppedDatabase, + TrackedResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualCluster, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, + RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, + ManagedInstanceVulnerabilityAssessment, + ServerVulnerabilityAssessment +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts index c4b8fc420135..8f28b6480e12 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts index 6b99eba6b730..420534e66fae 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts @@ -61,6 +61,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -91,7 +92,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts index 4e767e46ed81..f012d61e782a 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts index fa03e83b738d..8ccde91b74f7 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment, RecoverableDatabase, diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts index 0e500b5bfb76..87d002f475c8 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { BackupShortTermRetentionPolicy, TdeCertificate, ManagedInstanceKey, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts index 954dae46a692..8e51edff2434 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { BackupShortTermRetentionPolicy, TdeCertificate, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts index e1e0b32f7b00..c944f88f0250 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { BackupShortTermRetentionPolicy, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceVulnerabilityAssessmentsMappers.ts index 91783db44ed1..631a64067e34 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceVulnerabilityAssessmentsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -107,6 +112,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts index 07f90634313f..0c8dc874675e 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts @@ -57,6 +57,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment, RecoverableDatabase, diff --git a/packages/@azure/arm-sql/lib/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts new file mode 100644 index 000000000000..0d6647cc1f29 --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ManagedBackupShortTermRetentionPolicy, + ProxyResource, + Resource, + BaseResource, + CloudError, + ManagedBackupShortTermRetentionPolicyListResult, + RecoverableDatabase, + RestorableDroppedDatabase, + TrackedResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualCluster, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, + RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, + ManagedInstanceVulnerabilityAssessment, + ServerVulnerabilityAssessment +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/managedServerSecurityAlertPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/managedServerSecurityAlertPoliciesMappers.ts new file mode 100644 index 000000000000..199dec5d152d --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/managedServerSecurityAlertPoliciesMappers.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + ManagedServerSecurityAlertPolicy, + ProxyResource, + Resource, + BaseResource, + CloudError, + ManagedServerSecurityAlertPolicyListResult, + RecoverableDatabase, + RestorableDroppedDatabase, + TrackedResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualCluster, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, + RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + SensitivityLabel, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, + ManagedInstanceVulnerabilityAssessment, + ServerVulnerabilityAssessment +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/mappers.ts b/packages/@azure/arm-sql/lib/models/mappers.ts index c4f7b62250b9..2eaff26318e4 100644 --- a/packages/@azure/arm-sql/lib/models/mappers.ts +++ b/packages/@azure/arm-sql/lib/models/mappers.ts @@ -2802,6 +2802,24 @@ export const ManagedInstance: msRest.CompositeMapper = { type: { name: "String" } + }, + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", + type: { + name: "Boolean" + } + }, + proxyOverride: { + serializedName: "properties.proxyOverride", + type: { + name: "String" + } + }, + timezoneId: { + serializedName: "properties.timezoneId", + type: { + name: "String" + } } } } @@ -2889,6 +2907,24 @@ export const ManagedInstanceUpdate: msRest.CompositeMapper = { name: "String" } }, + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", + type: { + name: "Boolean" + } + }, + proxyOverride: { + serializedName: "properties.proxyOverride", + type: { + name: "String" + } + }, + timezoneId: { + serializedName: "properties.timezoneId", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { @@ -3741,6 +3777,88 @@ export const SubscriptionUsage: msRest.CompositeMapper = { } }; +export const VirtualCluster: msRest.CompositeMapper = { + serializedName: "VirtualCluster", + type: { + name: "Composite", + className: "VirtualCluster", + modelProperties: { + ...TrackedResource.type.modelProperties, + subnetId: { + readOnly: true, + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + family: { + serializedName: "properties.family", + type: { + name: "String" + } + }, + childResources: { + readOnly: true, + serializedName: "properties.childResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualClusterUpdate: msRest.CompositeMapper = { + serializedName: "VirtualClusterUpdate", + type: { + name: "Composite", + className: "VirtualClusterUpdate", + modelProperties: { + subnetId: { + readOnly: true, + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + family: { + serializedName: "properties.family", + type: { + name: "String" + } + }, + childResources: { + readOnly: true, + serializedName: "properties.childResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const VirtualNetworkRule: msRest.CompositeMapper = { serializedName: "VirtualNetworkRule", type: { @@ -4952,6 +5070,12 @@ export const ManagedDatabase: msRest.CompositeMapper = { name: "String" } }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, storageContainerSasToken: { serializedName: "properties.storageContainerSasToken", type: { @@ -4964,6 +5088,12 @@ export const ManagedDatabase: msRest.CompositeMapper = { type: { name: "String" } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } } } } @@ -5039,6 +5169,12 @@ export const ManagedDatabaseUpdate: msRest.CompositeMapper = { name: "String" } }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, storageContainerSasToken: { serializedName: "properties.storageContainerSasToken", type: { @@ -5052,6 +5188,12 @@ export const ManagedDatabaseUpdate: msRest.CompositeMapper = { name: "String" } }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { @@ -5191,18 +5333,276 @@ export const ServerDnsAliasAcquisition: msRest.CompositeMapper = { oldServerDnsAliasId: { serializedName: "oldServerDnsAliasId", type: { - name: "String" + name: "String" + } + } + } + } +}; + +export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "ServerSecurityAlertPolicy", + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "New", + "Enabled", + "Disabled" + ] + } + }, + disabledAlerts: { + serializedName: "properties.disabledAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAddresses: { + serializedName: "properties.emailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const RestorableDroppedManagedDatabase: msRest.CompositeMapper = { + serializedName: "RestorableDroppedManagedDatabase", + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + databaseName: { + readOnly: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } + }, + deletionDate: { + readOnly: true, + serializedName: "properties.deletionDate", + type: { + name: "DateTime" + } + }, + earliestRestoreDate: { + readOnly: true, + serializedName: "properties.earliestRestoreDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const RestorePoint: msRest.CompositeMapper = { + serializedName: "RestorePoint", + type: { + name: "Composite", + className: "RestorePoint", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + restorePointType: { + readOnly: true, + serializedName: "properties.restorePointType", + type: { + name: "Enum", + allowedValues: [ + "CONTINUOUS", + "DISCRETE" + ] + } + }, + earliestRestoreDate: { + readOnly: true, + serializedName: "properties.earliestRestoreDate", + type: { + name: "DateTime" + } + }, + restorePointCreationDate: { + readOnly: true, + serializedName: "properties.restorePointCreationDate", + type: { + name: "DateTime" + } + }, + restorePointLabel: { + readOnly: true, + serializedName: "properties.restorePointLabel", + type: { + name: "String" + } + } + } + } +}; + +export const CreateDatabaseRestorePointDefinition: msRest.CompositeMapper = { + serializedName: "CreateDatabaseRestorePointDefinition", + type: { + name: "Composite", + className: "CreateDatabaseRestorePointDefinition", + modelProperties: { + restorePointLabel: { + required: true, + serializedName: "restorePointLabel", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseSecurityAlertPolicy", + type: { + name: "Composite", + className: "ManagedDatabaseSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "New", + "Enabled", + "Disabled" + ] + } + }, + disabledAlerts: { + serializedName: "properties.disabledAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAddresses: { + serializedName: "properties.emailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" } } } } }; -export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ServerSecurityAlertPolicy", +export const ManagedServerSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "ManagedServerSecurityAlertPolicy", type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "ManagedServerSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, state: { @@ -5262,70 +5662,45 @@ export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { type: { name: "Number" } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } } } } }; -export const RestorePoint: msRest.CompositeMapper = { - serializedName: "RestorePoint", +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", type: { name: "Composite", - className: "RestorePoint", + className: "SensitivityLabel", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", + labelName: { + serializedName: "properties.labelName", type: { name: "String" } }, - restorePointType: { - readOnly: true, - serializedName: "properties.restorePointType", - type: { - name: "Enum", - allowedValues: [ - "CONTINUOUS", - "DISCRETE" - ] - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", - type: { - name: "DateTime" - } - }, - restorePointCreationDate: { - readOnly: true, - serializedName: "properties.restorePointCreationDate", + labelId: { + serializedName: "properties.labelId", type: { - name: "DateTime" + name: "String" } }, - restorePointLabel: { - readOnly: true, - serializedName: "properties.restorePointLabel", + informationType: { + serializedName: "properties.informationType", type: { name: "String" } - } - } - } -}; - -export const CreateDatabaseRestorePointDefinition: msRest.CompositeMapper = { - serializedName: "CreateDatabaseRestorePointDefinition", - type: { - name: "Composite", - className: "CreateDatabaseRestorePointDefinition", - modelProperties: { - restorePointLabel: { - required: true, - serializedName: "restorePointLabel", + }, + informationTypeId: { + serializedName: "properties.informationTypeId", type: { name: "String" } @@ -7438,6 +7813,24 @@ export const ManagedInstanceEncryptionProtector: msRest.CompositeMapper = { } }; +export const RecoverableManagedDatabase: msRest.CompositeMapper = { + serializedName: "RecoverableManagedDatabase", + type: { + name: "Composite", + className: "RecoverableManagedDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + lastAvailableBackupDate: { + readOnly: true, + serializedName: "properties.lastAvailableBackupDate", + type: { + name: "String" + } + } + } + } +}; + export const ManagedInstanceVulnerabilityAssessment: msRest.CompositeMapper = { serializedName: "ManagedInstanceVulnerabilityAssessment", type: { @@ -8423,6 +8816,36 @@ export const SubscriptionUsageListResult: msRest.CompositeMapper = { } }; +export const VirtualClusterListResult: msRest.CompositeMapper = { + serializedName: "VirtualClusterListResult", + type: { + name: "Composite", + className: "VirtualClusterListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualCluster" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { serializedName: "VirtualNetworkRuleListResult", type: { @@ -8813,6 +9236,66 @@ export const ServerDnsAliasListResult: msRest.CompositeMapper = { } }; +export const LogicalServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { + serializedName: "LogicalServerSecurityAlertPolicyListResult", + type: { + name: "Composite", + className: "LogicalServerSecurityAlertPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedManagedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "RestorableDroppedManagedDatabaseListResult", + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabaseListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const RestorePointListResult: msRest.CompositeMapper = { serializedName: "RestorePointListResult", type: { @@ -8836,6 +9319,96 @@ export const RestorePointListResult: msRest.CompositeMapper = { } }; +export const ManagedDatabaseSecurityAlertPolicyListResult: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseSecurityAlertPolicyListResult", + type: { + name: "Composite", + className: "ManagedDatabaseSecurityAlertPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabaseSecurityAlertPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { + serializedName: "ManagedServerSecurityAlertPolicyListResult", + type: { + name: "Composite", + className: "ManagedServerSecurityAlertPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedServerSecurityAlertPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SensitivityLabelListResult: msRest.CompositeMapper = { + serializedName: "SensitivityLabelListResult", + type: { + name: "Composite", + className: "SensitivityLabelListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SensitivityLabel" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const DatabaseOperationListResult: msRest.CompositeMapper = { serializedName: "DatabaseOperationListResult", type: { @@ -9046,6 +9619,36 @@ export const ManagedInstanceEncryptionProtectorListResult: msRest.CompositeMappe } }; +export const RecoverableManagedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "RecoverableManagedDatabaseListResult", + type: { + name: "Composite", + className: "RecoverableManagedDatabaseListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecoverableManagedDatabase" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeMapper = { serializedName: "ManagedInstanceVulnerabilityAssessmentListResult", type: { diff --git a/packages/@azure/arm-sql/lib/models/parameters.ts b/packages/@azure/arm-sql/lib/models/parameters.ts index e764e120d4ed..4563be053354 100644 --- a/packages/@azure/arm-sql/lib/models/parameters.ts +++ b/packages/@azure/arm-sql/lib/models/parameters.ts @@ -128,6 +128,16 @@ export const blobAuditingPolicyName: msRest.OperationURLParameter = { } } }; +export const columnName: msRest.OperationURLParameter = { + parameterPath: "columnName", + mapper: { + required: true, + serializedName: "columnName", + type: { + name: "String" + } + } +}; export const communicationLinkName: msRest.OperationURLParameter = { parameterPath: "communicationLinkName", mapper: { @@ -551,6 +561,16 @@ export const recommendedElasticPoolName: msRest.OperationURLParameter = { } } }; +export const recoverableDatabaseName: msRest.OperationURLParameter = { + parameterPath: "recoverableDatabaseName", + mapper: { + required: true, + serializedName: "recoverableDatabaseName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -561,6 +581,16 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const restorableDroppedDatabaseId: msRest.OperationURLParameter = { + parameterPath: "restorableDroppedDatabaseId", + mapper: { + required: true, + serializedName: "restorableDroppedDatabaseId", + type: { + name: "String" + } + } +}; export const restorableDroppededDatabaseId: msRest.OperationURLParameter = { parameterPath: "restorableDroppededDatabaseId", mapper: { @@ -601,6 +631,16 @@ export const scanId: msRest.OperationURLParameter = { } } }; +export const schemaName: msRest.OperationURLParameter = { + parameterPath: "schemaName", + mapper: { + required: true, + serializedName: "schemaName", + type: { + name: "String" + } + } +}; export const securityAlertPolicyName0: msRest.OperationURLParameter = { parameterPath: "securityAlertPolicyName", mapper: { @@ -625,6 +665,32 @@ export const securityAlertPolicyName1: msRest.OperationURLParameter = { } } }; +export const sensitivityLabelSource0: msRest.OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + required: true, + serializedName: "sensitivityLabelSource", + type: { + name: "Enum", + allowedValues: [ + "current", + "recommended" + ] + } + } +}; +export const sensitivityLabelSource1: msRest.OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + required: true, + isConstant: true, + serializedName: "sensitivityLabelSource", + defaultValue: 'current', + type: { + name: "String" + } + } +}; export const serverName: msRest.OperationURLParameter = { parameterPath: "serverName", mapper: { @@ -667,6 +733,18 @@ export const skip: msRest.OperationQueryParameter = { } } }; +export const skipToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipToken" + ], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; export const startTime: msRest.OperationQueryParameter = { parameterPath: "startTime", mapper: { @@ -727,6 +805,16 @@ export const syncMemberName: msRest.OperationURLParameter = { } } }; +export const tableName: msRest.OperationURLParameter = { + parameterPath: "tableName", + mapper: { + required: true, + serializedName: "tableName", + type: { + name: "String" + } + } +}; export const targetGroupName: msRest.OperationURLParameter = { parameterPath: "targetGroupName", mapper: { @@ -791,6 +879,16 @@ export const usageName: msRest.OperationURLParameter = { } } }; +export const virtualClusterName: msRest.OperationURLParameter = { + parameterPath: "virtualClusterName", + mapper: { + required: true, + serializedName: "virtualClusterName", + type: { + name: "String" + } + } +}; export const virtualNetworkRuleName: msRest.OperationURLParameter = { parameterPath: "virtualNetworkRuleName", mapper: { diff --git a/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts b/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts index 9cd8d02f8c66..6422d1531249 100644 --- a/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -107,6 +112,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts index 9d713efa6044..3f00706e86ad 100644 --- a/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/recoverableManagedDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/recoverableManagedDatabasesMappers.ts new file mode 100644 index 000000000000..d0c7578aa4bb --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/recoverableManagedDatabasesMappers.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + RecoverableManagedDatabaseListResult, + RecoverableManagedDatabase, + ProxyResource, + Resource, + BaseResource, + CloudError, + RecoverableDatabase, + RestorableDroppedDatabase, + TrackedResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualCluster, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, + RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + ManagedInstanceVulnerabilityAssessment, + ServerVulnerabilityAssessment +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts b/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts index 6942e12ddccf..33e2f508d26b 100644 --- a/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts +++ b/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts index 9dbecc2a8f91..805679102baf 100644 --- a/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/restorableDroppedManagedDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/restorableDroppedManagedDatabasesMappers.ts new file mode 100644 index 000000000000..dbb15603ee13 --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/restorableDroppedManagedDatabasesMappers.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + RestorableDroppedManagedDatabaseListResult, + RestorableDroppedManagedDatabase, + TrackedResource, + Resource, + BaseResource, + CloudError, + ProxyResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualCluster, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, + ManagedInstanceVulnerabilityAssessment, + ServerVulnerabilityAssessment, + RecoverableDatabase, + RestorableDroppedDatabase +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts b/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts index b5764c0fcdef..0f12ea997ce1 100644 --- a/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -90,6 +91,10 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -107,6 +112,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/sensitivityLabelsMappers.ts b/packages/@azure/arm-sql/lib/models/sensitivityLabelsMappers.ts new file mode 100644 index 000000000000..ad30c4703e89 --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/sensitivityLabelsMappers.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SensitivityLabelListResult, + SensitivityLabel, + ProxyResource, + Resource, + BaseResource, + CloudError, + RecoverableDatabase, + RestorableDroppedDatabase, + TrackedResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualCluster, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, + RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, + ManagedInstanceVulnerabilityAssessment, + ServerVulnerabilityAssessment +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts index 05c9a659f19a..66c1a7a8c616 100644 --- a/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { ManagedDatabase, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts b/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts index 19b4ec5a515e..b3a533405329 100644 --- a/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts index 9829e70bd5e1..21c98052e147 100644 --- a/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts b/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts index cbbb6f378ff2..e7b5ccc64086 100644 --- a/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts index 5022a8a45cba..cf12fa3e56c2 100644 --- a/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts @@ -57,6 +57,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts b/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts index 2e4fa617017c..6477d07dbcd7 100644 --- a/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { ServerAutomaticTuning, AutomaticTuningServerOptions, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -107,6 +112,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts b/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts index af7e6700afed..4077cfee4956 100644 --- a/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts index b2840d088a2d..a7c47403523d 100644 --- a/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts @@ -14,6 +14,7 @@ export { Resource, BaseResource, CloudError, + LogicalServerSecurityAlertPolicyListResult, RecoverableDatabase, RestorableDroppedDatabase, TrackedResource, @@ -58,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +89,11 @@ export { ServerAutomaticTuning, AutomaticTuningServerOptions, ServerDnsAlias, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serverVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/serverVulnerabilityAssessmentsMappers.ts index cbc70e42a093..ed502ed3689f 100644 --- a/packages/@azure/arm-sql/lib/models/serverVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverVulnerabilityAssessmentsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -107,6 +112,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serversMappers.ts b/packages/@azure/arm-sql/lib/models/serversMappers.ts index d382b7bbb6b8..a28333b955d1 100644 --- a/packages/@azure/arm-sql/lib/models/serversMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serversMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -89,7 +90,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -107,6 +112,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment, RecoverableDatabase, diff --git a/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts b/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts index 7e2e4feac2ac..27e84282df6d 100644 --- a/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts b/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts index b456ee206a29..860be0b0f04a 100644 --- a/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts b/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts index be525cff5a60..982e8558c361 100644 --- a/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts b/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts index 58719da5a670..8b0b99596f4c 100644 --- a/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts @@ -60,6 +60,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -90,7 +91,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -108,6 +113,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts index a54f341fa249..f4567f54cb95 100644 --- a/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts @@ -66,6 +66,7 @@ export { SyncAgentLinkedDatabase, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -96,7 +97,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -114,6 +119,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts b/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts index 2ccdc5c7e409..bd9da01e4126 100644 --- a/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts @@ -62,6 +62,7 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -92,7 +93,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -110,6 +115,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts b/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts index e1e0b32f7b00..c944f88f0250 100644 --- a/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { BackupShortTermRetentionPolicy, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts index b67953576615..674b47eaa3b1 100644 --- a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts @@ -58,6 +58,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts index dabe4371928b..810594dc353d 100644 --- a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts @@ -57,6 +57,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, VirtualNetworkRule, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, @@ -87,7 +88,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -105,6 +110,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/models/virtualClustersMappers.ts b/packages/@azure/arm-sql/lib/models/virtualClustersMappers.ts new file mode 100644 index 000000000000..bb45bb6cd630 --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/virtualClustersMappers.ts @@ -0,0 +1,119 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + VirtualClusterListResult, + VirtualCluster, + TrackedResource, + Resource, + BaseResource, + CloudError, + VirtualClusterUpdate, + ProxyResource, + ServerConnectionPolicy, + DatabaseSecurityAlertPolicy, + DataMaskingPolicy, + DataMaskingRule, + FirewallRule, + GeoBackupPolicy, + ImportExportResponse, + RecommendedElasticPool, + RecommendedElasticPoolMetric, + ReplicationLink, + ServerAzureADAdministrator, + ServerCommunicationLink, + ServiceObjective, + ElasticPoolActivity, + ElasticPoolDatabaseActivity, + RecommendedIndex, + OperationImpact, + TransparentDataEncryption, + ServiceTierAdvisor, + SloUsageMetric, + TransparentDataEncryptionActivity, + DatabaseAutomaticTuning, + AutomaticTuningOptions, + EncryptionProtector, + FailoverGroup, + FailoverGroupReadWriteEndpoint, + FailoverGroupReadOnlyEndpoint, + PartnerInfo, + ManagedInstance, + ResourceIdentity, + Sku, + ServerKey, + Server, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SubscriptionUsage, + VirtualNetworkRule, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + ServerBlobAuditingPolicy, + DatabaseBlobAuditingPolicy, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessment, + VulnerabilityAssessmentRecurringScansProperties, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + Job, + JobSchedule, + JobStep, + JobStepAction, + JobStepOutput, + JobStepExecutionOptions, + JobTargetGroup, + JobTarget, + JobVersion, + LongTermRetentionBackup, + BackupLongTermRetentionPolicy, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ServerAutomaticTuning, + AutomaticTuningServerOptions, + ServerDnsAlias, + ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, + RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, + ManagedInstanceVulnerabilityAssessment, + ServerVulnerabilityAssessment, + RecoverableDatabase, + RestorableDroppedDatabase +} from "../models/mappers"; + diff --git a/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts b/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts index aa6ced318b5e..d7aa5f8c74f2 100644 --- a/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts @@ -59,6 +59,7 @@ export { SyncGroupSchemaTableColumn, SyncMember, SubscriptionUsage, + VirtualCluster, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, ServerBlobAuditingPolicy, @@ -88,7 +89,11 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, + ManagedDatabaseSecurityAlertPolicy, + ManagedServerSecurityAlertPolicy, + SensitivityLabel, DatabaseOperation, ElasticPoolOperation, Database, @@ -106,6 +111,7 @@ export { TdeCertificate, ManagedInstanceKey, ManagedInstanceEncryptionProtector, + RecoverableManagedDatabase, ManagedInstanceVulnerabilityAssessment, ServerVulnerabilityAssessment } from "../models/mappers"; diff --git a/packages/@azure/arm-sql/lib/operations/index.ts b/packages/@azure/arm-sql/lib/operations/index.ts index 576b99f82d7c..4b4f1aa68d75 100644 --- a/packages/@azure/arm-sql/lib/operations/index.ts +++ b/packages/@azure/arm-sql/lib/operations/index.ts @@ -41,6 +41,7 @@ export * from "./syncAgents"; export * from "./syncGroups"; export * from "./syncMembers"; export * from "./subscriptionUsages"; +export * from "./virtualClusters"; export * from "./virtualNetworkRules"; export * from "./extendedDatabaseBlobAuditingPolicies"; export * from "./extendedServerBlobAuditingPolicies"; @@ -61,10 +62,15 @@ export * from "./longTermRetentionBackups"; export * from "./backupLongTermRetentionPolicies"; export * from "./managedBackupShortTermRetentionPolicies"; export * from "./managedDatabases"; +export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; export * from "./serverAutomaticTuningOperations"; export * from "./serverDnsAliases"; export * from "./serverSecurityAlertPolicies"; +export * from "./restorableDroppedManagedDatabases"; export * from "./restorePoints"; +export * from "./managedDatabaseSecurityAlertPolicies"; +export * from "./managedServerSecurityAlertPolicies"; +export * from "./sensitivityLabels"; export * from "./databaseOperations"; export * from "./elasticPoolOperations"; export * from "./capabilities"; @@ -78,5 +84,7 @@ export * from "./tdeCertificates"; export * from "./managedInstanceTdeCertificates"; export * from "./managedInstanceKeys"; export * from "./managedInstanceEncryptionProtectors"; +export * from "./recoverableManagedDatabases"; export * from "./managedInstanceVulnerabilityAssessments"; export * from "./serverVulnerabilityAssessments"; +export * from "./managedDatabaseSensitivityLabels"; diff --git a/packages/@azure/arm-sql/lib/operations/jobExecutions.ts b/packages/@azure/arm-sql/lib/operations/jobExecutions.ts index 474848bba6a5..5bb3c069e122 100644 --- a/packages/@azure/arm-sql/lib/operations/jobExecutions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobExecutions.ts @@ -219,7 +219,7 @@ export class JobExecutions { } /** - * Creates or updatess a job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -258,7 +258,7 @@ export class JobExecutions { } /** - * Creates or updatess a job execution. + * Creates or updates a job execution. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts b/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts index 0f966123f36a..ba117c85fb3c 100644 --- a/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts +++ b/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts @@ -30,8 +30,8 @@ export class LongTermRetentionBackups { /** * Gets a long term retention backup. * @param locationName The location of the database. - * @param longTermRetentionServerName - * @param longTermRetentionDatabaseName + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param [options] The optional parameters * @returns Promise @@ -39,16 +39,16 @@ export class LongTermRetentionBackups { get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param locationName The location of the database. - * @param longTermRetentionServerName - * @param longTermRetentionDatabaseName + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param callback The callback */ get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, callback: msRest.ServiceCallback): void; /** * @param locationName The location of the database. - * @param longTermRetentionServerName - * @param longTermRetentionDatabaseName + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param options The optional parameters * @param callback The callback @@ -70,8 +70,8 @@ export class LongTermRetentionBackups { /** * Deletes a long term retention backup. * @param locationName The location of the database - * @param longTermRetentionServerName - * @param longTermRetentionDatabaseName + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param [options] The optional parameters * @returns Promise @@ -84,23 +84,23 @@ export class LongTermRetentionBackups { /** * Lists all long term retention backups for a database. * @param locationName The location of the database - * @param longTermRetentionServerName - * @param longTermRetentionDatabaseName + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param [options] The optional parameters * @returns Promise */ listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams): Promise; /** * @param locationName The location of the database - * @param longTermRetentionServerName - * @param longTermRetentionDatabaseName + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param callback The callback */ listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, callback: msRest.ServiceCallback): void; /** * @param locationName The location of the database - * @param longTermRetentionServerName - * @param longTermRetentionDatabaseName + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param options The optional parameters * @param callback The callback */ @@ -148,20 +148,20 @@ export class LongTermRetentionBackups { /** * Lists the long term retention backups for a given server. * @param locationName The location of the database - * @param longTermRetentionServerName + * @param longTermRetentionServerName The name of the server * @param [options] The optional parameters * @returns Promise */ listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams): Promise; /** * @param locationName The location of the database - * @param longTermRetentionServerName + * @param longTermRetentionServerName The name of the server * @param callback The callback */ listByServer(locationName: string, longTermRetentionServerName: string, callback: msRest.ServiceCallback): void; /** * @param locationName The location of the database - * @param longTermRetentionServerName + * @param longTermRetentionServerName The name of the server * @param options The optional parameters * @param callback The callback */ @@ -180,8 +180,8 @@ export class LongTermRetentionBackups { /** * Deletes a long term retention backup. * @param locationName The location of the database - * @param longTermRetentionServerName - * @param longTermRetentionDatabaseName + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param [options] The optional parameters * @returns Promise diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseSecurityAlertPolicies.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseSecurityAlertPolicies.ts new file mode 100644 index 000000000000..fb1e7c6a0aef --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseSecurityAlertPolicies.ts @@ -0,0 +1,299 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseSecurityAlertPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseSecurityAlertPolicies. */ +export class ManagedDatabaseSecurityAlertPolicies { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseSecurityAlertPolicies. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a managed database's security alert policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a database's security alert policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param parameters The database security alert policy. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedDatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param parameters The database security alert policy. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedDatabaseSecurityAlertPolicy, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param parameters The database security alert policy. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedDatabaseSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedDatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of managed database's security alert policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policies are + * defined. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policies are + * defined. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policies are + * defined. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of managed database's security alert policies. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.securityAlertPolicyName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.securityAlertPolicyName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedDatabaseSecurityAlertPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + }, + 201: { + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseSecurityAlertPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseSensitivityLabels.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseSensitivityLabels.ts new file mode 100644 index 000000000000..d28e5833afc7 --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseSensitivityLabels.ts @@ -0,0 +1,523 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseSensitivityLabelsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseSensitivityLabels. */ +export class ManagedDatabaseSensitivityLabels { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseSensitivityLabels. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets the sensitivity label of a given column + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + schemaName, + tableName, + columnName, + sensitivityLabelSource, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the sensitivity label of a given column + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + schemaName, + tableName, + columnName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the sensitivity label of a given column + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + schemaName, + tableName, + columnName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listCurrentByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param callback The callback + */ + listCurrentByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listCurrentByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listCurrentByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listCurrentByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendedByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param callback The callback + */ + listRecommendedByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendedByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listRecommendedByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listRecommendedByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets the sensitivity labels of a given database + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listCurrentByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listCurrentByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listCurrentByDatabaseNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the sensitivity labels of a given database + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listRecommendedByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendedByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listRecommendedByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SensitivityLabel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabel + }, + 201: { + bodyMapper: Mappers.SensitivityLabel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listCurrentByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listRecommendedByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.skipToken, + Parameters.filter1, + Parameters.apiVersion4 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listCurrentByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listRecommendedByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabases.ts b/packages/@azure/arm-sql/lib/operations/managedDatabases.ts index ecee4e4585eb..ec858fe858ae 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabases.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabases.ts @@ -130,7 +130,7 @@ export class ManagedDatabases { } /** - * Deletes the managed database. + * Deletes a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. @@ -202,7 +202,7 @@ export class ManagedDatabases { } /** - * Deletes the managed database. + * Deletes a managed database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. diff --git a/packages/@azure/arm-sql/lib/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/packages/@azure/arm-sql/lib/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts new file mode 100644 index 000000000000..d0c271b01099 --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts @@ -0,0 +1,362 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies. */ +export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a dropped database's short term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param [options] The optional parameters + * @returns + * Promise + */ + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + restorableDroppedDatabaseId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Sets a database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param parameters The long term retention policy info. + * @param [options] The optional parameters + * @returns + * Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,restorableDroppedDatabaseId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Sets a database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param parameters The long term retention policy info. + * @param [options] The optional parameters + * @returns + * Promise + */ + update(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,managedInstanceName,restorableDroppedDatabaseId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets a dropped database's short term retention policy list. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param [options] The optional parameters + * @returns + * Promise + */ + listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param callback The callback + */ + listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param options The optional parameters + * @param callback The callback + */ + listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRestorableDroppedDatabase(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + restorableDroppedDatabaseId, + options + }, + listByRestorableDroppedDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Sets a database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param parameters The long term retention policy info. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + restorableDroppedDatabaseId, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Sets a database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param parameters The long term retention policy info. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, parameters: Models.ManagedBackupShortTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + restorableDroppedDatabaseId, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Gets a dropped database's short term retention policy list. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByRestorableDroppedDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByRestorableDroppedDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByRestorableDroppedDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByRestorableDroppedDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByRestorableDroppedDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.restorableDroppedDatabaseId, + Parameters.policyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByRestorableDroppedDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.restorableDroppedDatabaseId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.restorableDroppedDatabaseId, + Parameters.policyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedBackupShortTermRetentionPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.restorableDroppedDatabaseId, + Parameters.policyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedBackupShortTermRetentionPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicy + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByRestorableDroppedDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedBackupShortTermRetentionPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/managedServerSecurityAlertPolicies.ts b/packages/@azure/arm-sql/lib/operations/managedServerSecurityAlertPolicies.ts new file mode 100644 index 000000000000..6b01a5cd0e71 --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/managedServerSecurityAlertPolicies.ts @@ -0,0 +1,270 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedServerSecurityAlertPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedServerSecurityAlertPolicies. */ +export class ManagedServerSecurityAlertPolicies { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedServerSecurityAlertPolicies. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Get a managed server's threat detection policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a threat detection policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param parameters The managed server security alert policy. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedServerSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get the managed server's threat detection policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listByInstanceOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a threat detection policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param parameters The managed server security alert policy. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedServerSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Get the managed server's threat detection policies. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByInstanceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.securityAlertPolicyName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedServerSecurityAlertPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.securityAlertPolicyName1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedServerSecurityAlertPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedServerSecurityAlertPolicy + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedServerSecurityAlertPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts b/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts index 8fc720afebb9..a2eb82653e0e 100644 --- a/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts +++ b/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts @@ -27,7 +27,7 @@ export class RecommendedElasticPools { } /** - * Gets a recommented elastic pool. + * Gets a recommended elastic pool. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -101,7 +101,7 @@ export class RecommendedElasticPools { } /** - * Returns recommented elastic pool metrics. + * Returns recommended elastic pool metrics. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/packages/@azure/arm-sql/lib/operations/recoverableManagedDatabases.ts b/packages/@azure/arm-sql/lib/operations/recoverableManagedDatabases.ts new file mode 100644 index 000000000000..a36cefea4644 --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/recoverableManagedDatabases.ts @@ -0,0 +1,204 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/recoverableManagedDatabasesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a RecoverableManagedDatabases. */ +export class RecoverableManagedDatabases { + private readonly client: SqlManagementClientContext; + + /** + * Create a RecoverableManagedDatabases. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of recoverable managed databases. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listByInstanceOperationSpec, + callback) as Promise; + } + + /** + * Gets a recoverable managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param recoverableDatabaseName + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param recoverableDatabaseName + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param recoverableDatabaseName + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, recoverableDatabaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + recoverableDatabaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of recoverable managed databases. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByInstanceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/recoverableDatabases", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoverableManagedDatabaseListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/recoverableDatabases/{recoverableDatabaseName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.recoverableDatabaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoverableManagedDatabase + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecoverableManagedDatabaseListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/restorableDroppedManagedDatabases.ts b/packages/@azure/arm-sql/lib/operations/restorableDroppedManagedDatabases.ts new file mode 100644 index 000000000000..81efe8772251 --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/restorableDroppedManagedDatabases.ts @@ -0,0 +1,204 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/restorableDroppedManagedDatabasesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a RestorableDroppedManagedDatabases. */ +export class RestorableDroppedManagedDatabases { + private readonly client: SqlManagementClientContext; + + /** + * Create a RestorableDroppedManagedDatabases. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of restorable dropped managed databases. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listByInstanceOperationSpec, + callback) as Promise; + } + + /** + * Gets a restorable dropped managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param restorableDroppedDatabaseId + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + restorableDroppedDatabaseId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of restorable dropped managed databases. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByInstanceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDroppedManagedDatabaseListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.restorableDroppedDatabaseId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDroppedManagedDatabase + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDroppedManagedDatabaseListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/sensitivityLabels.ts b/packages/@azure/arm-sql/lib/operations/sensitivityLabels.ts new file mode 100644 index 000000000000..40efad6f5250 --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/sensitivityLabels.ts @@ -0,0 +1,523 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sensitivityLabelsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a SensitivityLabels. */ +export class SensitivityLabels { + private readonly client: SqlManagementClientContext; + + /** + * Create a SensitivityLabels. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.SensitivityLabelsListCurrentByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: Models.SensitivityLabelsListCurrentByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listCurrentByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.SensitivityLabelsListCurrentByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listCurrentByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets the sensitivity labels of a given database + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.SensitivityLabelsListRecommendedByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: Models.SensitivityLabelsListRecommendedByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listRecommendedByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.SensitivityLabelsListRecommendedByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listRecommendedByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets the sensitivity label of a given column + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + schemaName, + tableName, + columnName, + sensitivityLabelSource, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the sensitivity label of a given column + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + schemaName, + tableName, + columnName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the sensitivity label of a given column + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + schemaName, + tableName, + columnName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Gets the sensitivity labels of a given database + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listCurrentByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listCurrentByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listCurrentByDatabaseNextOperationSpec, + callback) as Promise; + } + + /** + * Gets the sensitivity labels of a given database + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listRecommendedByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listRecommendedByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listRecommendedByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listCurrentByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listRecommendedByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.skipToken, + Parameters.filter1, + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SensitivityLabel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabel + }, + 201: { + bodyMapper: Mappers.SensitivityLabel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listCurrentByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listRecommendedByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabelListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts b/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts index 0c68bcd6919e..142dd4f333e6 100644 --- a/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts @@ -76,6 +76,41 @@ export class ServerSecurityAlertPolicies { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Get the server's threat detection policies. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + /** * Creates or updates a threat detection policy. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -96,6 +131,34 @@ export class ServerSecurityAlertPolicies { beginCreateOrUpdateOperationSpec, options); } + + /** + * Get the server's threat detection policies. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -126,6 +189,31 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}", @@ -159,3 +247,24 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/operations/virtualClusters.ts b/packages/@azure/arm-sql/lib/operations/virtualClusters.ts new file mode 100644 index 000000000000..8099f722f86f --- /dev/null +++ b/packages/@azure/arm-sql/lib/operations/virtualClusters.ts @@ -0,0 +1,416 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/virtualClustersMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a VirtualClusters. */ +export class VirtualClusters { + private readonly client: SqlManagementClientContext; + + /** + * Create a VirtualClusters. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of all virtualClusters in the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual clusters in a resource group. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Gets a virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param callback The callback + */ + get(resourceGroupName: string, virtualClusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, virtualClusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualClusterName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes a virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,virtualClusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Updates a virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param parameters The requested managed instance resource state. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, virtualClusterName: string, parameters: Models.VirtualClusterUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,virtualClusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualClusterName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Updates a virtual cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param parameters The requested managed instance resource state. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, virtualClusterName: string, parameters: Models.VirtualClusterUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + virtualClusterName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Gets a list of all virtualClusters in the subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of virtual clusters in a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/virtualClusters", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualClusterName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualCluster + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualClusterName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualClusterName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.VirtualClusterUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.VirtualCluster + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VirtualClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-sql/lib/sqlManagementClient.ts b/packages/@azure/arm-sql/lib/sqlManagementClient.ts index 19846265a45a..e29270907ca0 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClient.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClient.ts @@ -50,6 +50,7 @@ class SqlManagementClient extends SqlManagementClientContext { syncGroups: operations.SyncGroups; syncMembers: operations.SyncMembers; subscriptionUsages: operations.SubscriptionUsages; + virtualClusters: operations.VirtualClusters; virtualNetworkRules: operations.VirtualNetworkRules; extendedDatabaseBlobAuditingPolicies: operations.ExtendedDatabaseBlobAuditingPolicies; extendedServerBlobAuditingPolicies: operations.ExtendedServerBlobAuditingPolicies; @@ -70,10 +71,15 @@ class SqlManagementClient extends SqlManagementClientContext { backupLongTermRetentionPolicies: operations.BackupLongTermRetentionPolicies; managedBackupShortTermRetentionPolicies: operations.ManagedBackupShortTermRetentionPolicies; managedDatabases: operations.ManagedDatabases; + managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: operations.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; serverAutomaticTuning: operations.ServerAutomaticTuningOperations; serverDnsAliases: operations.ServerDnsAliases; serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies; + restorableDroppedManagedDatabases: operations.RestorableDroppedManagedDatabases; restorePoints: operations.RestorePoints; + managedDatabaseSecurityAlertPolicies: operations.ManagedDatabaseSecurityAlertPolicies; + managedServerSecurityAlertPolicies: operations.ManagedServerSecurityAlertPolicies; + sensitivityLabels: operations.SensitivityLabels; databaseOperations: operations.DatabaseOperations; elasticPoolOperations: operations.ElasticPoolOperations; capabilities: operations.Capabilities; @@ -87,8 +93,10 @@ class SqlManagementClient extends SqlManagementClientContext { managedInstanceTdeCertificates: operations.ManagedInstanceTdeCertificates; managedInstanceKeys: operations.ManagedInstanceKeys; managedInstanceEncryptionProtectors: operations.ManagedInstanceEncryptionProtectors; + recoverableManagedDatabases: operations.RecoverableManagedDatabases; managedInstanceVulnerabilityAssessments: operations.ManagedInstanceVulnerabilityAssessments; serverVulnerabilityAssessments: operations.ServerVulnerabilityAssessments; + managedDatabaseSensitivityLabels: operations.ManagedDatabaseSensitivityLabels; /** * Initializes a new instance of the SqlManagementClient class. @@ -131,6 +139,7 @@ class SqlManagementClient extends SqlManagementClientContext { this.syncGroups = new operations.SyncGroups(this); this.syncMembers = new operations.SyncMembers(this); this.subscriptionUsages = new operations.SubscriptionUsages(this); + this.virtualClusters = new operations.VirtualClusters(this); this.virtualNetworkRules = new operations.VirtualNetworkRules(this); this.extendedDatabaseBlobAuditingPolicies = new operations.ExtendedDatabaseBlobAuditingPolicies(this); this.extendedServerBlobAuditingPolicies = new operations.ExtendedServerBlobAuditingPolicies(this); @@ -151,10 +160,15 @@ class SqlManagementClient extends SqlManagementClientContext { this.backupLongTermRetentionPolicies = new operations.BackupLongTermRetentionPolicies(this); this.managedBackupShortTermRetentionPolicies = new operations.ManagedBackupShortTermRetentionPolicies(this); this.managedDatabases = new operations.ManagedDatabases(this); + this.managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies = new operations.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies(this); this.serverAutomaticTuning = new operations.ServerAutomaticTuningOperations(this); this.serverDnsAliases = new operations.ServerDnsAliases(this); this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this); + this.restorableDroppedManagedDatabases = new operations.RestorableDroppedManagedDatabases(this); this.restorePoints = new operations.RestorePoints(this); + this.managedDatabaseSecurityAlertPolicies = new operations.ManagedDatabaseSecurityAlertPolicies(this); + this.managedServerSecurityAlertPolicies = new operations.ManagedServerSecurityAlertPolicies(this); + this.sensitivityLabels = new operations.SensitivityLabels(this); this.databaseOperations = new operations.DatabaseOperations(this); this.elasticPoolOperations = new operations.ElasticPoolOperations(this); this.capabilities = new operations.Capabilities(this); @@ -168,8 +182,10 @@ class SqlManagementClient extends SqlManagementClientContext { this.managedInstanceTdeCertificates = new operations.ManagedInstanceTdeCertificates(this); this.managedInstanceKeys = new operations.ManagedInstanceKeys(this); this.managedInstanceEncryptionProtectors = new operations.ManagedInstanceEncryptionProtectors(this); + this.recoverableManagedDatabases = new operations.RecoverableManagedDatabases(this); this.managedInstanceVulnerabilityAssessments = new operations.ManagedInstanceVulnerabilityAssessments(this); this.serverVulnerabilityAssessments = new operations.ServerVulnerabilityAssessments(this); + this.managedDatabaseSensitivityLabels = new operations.ManagedDatabaseSensitivityLabels(this); } } diff --git a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts index a2de8c70b729..9c40606a0760 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-sql"; -const packageVersion = "0.1.0"; +const packageVersion = "5.6.0"; export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/packages/@azure/arm-sql/package.json b/packages/@azure/arm-sql/package.json index 85fb92c37d83..a73425c4ec93 100644 --- a/packages/@azure/arm-sql/package.json +++ b/packages/@azure/arm-sql/package.json @@ -4,8 +4,8 @@ "description": "SqlManagementClient Library with typescript type definitions for node.js and browser.", "version": "5.6.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-sql", @@ -51,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-sql.js.map'\" -o ./dist/arm-sql.min.js ./dist/arm-sql.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false } diff --git a/packages/@azure/arm-sql/rollup.config.js b/packages/@azure/arm-sql/rollup.config.js index 156da7625869..f514b6718ef0 100644 --- a/packages/@azure/arm-sql/rollup.config.js +++ b/packages/@azure/arm-sql/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/sqlManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/sqlManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-sql.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;