From fe41295a79ff8a13ad01ac49ebca97336bb16baa Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 20 Dec 2018 11:31:29 +0000 Subject: [PATCH 1/2] Generated from b69193acc6a531e053151c7ba4aaffb07cb218a0 Added support for dropped databases on Managed Instance --- .../backupLongTermRetentionPoliciesMappers.ts | 1 + ...backupShortTermRetentionPoliciesMappers.ts | 1 + .../lib/models/dataMaskingPoliciesMappers.ts | 1 + .../lib/models/dataMaskingRulesMappers.ts | 1 + ...atabaseAutomaticTuningOperationsMappers.ts | 1 + .../databaseBlobAuditingPoliciesMappers.ts | 1 + .../lib/models/databaseOperationsMappers.ts | 1 + .../databaseThreatDetectionPoliciesMappers.ts | 1 + ...erabilityAssessmentRuleBaselinesMappers.ts | 1 + ...baseVulnerabilityAssessmentScansMappers.ts | 1 + ...databaseVulnerabilityAssessmentsMappers.ts | 1 + .../arm-sql/lib/models/databasesMappers.ts | 1 + .../models/elasticPoolActivitiesMappers.ts | 1 + .../elasticPoolDatabaseActivitiesMappers.ts | 1 + .../models/elasticPoolOperationsMappers.ts | 1 + .../arm-sql/lib/models/elasticPoolsMappers.ts | 1 + .../lib/models/encryptionProtectorsMappers.ts | 1 + ...ndedDatabaseBlobAuditingPoliciesMappers.ts | 1 + ...tendedServerBlobAuditingPoliciesMappers.ts | 1 + .../lib/models/failoverGroupsMappers.ts | 1 + .../lib/models/firewallRulesMappers.ts | 1 + .../lib/models/geoBackupPoliciesMappers.ts | 1 + packages/@azure/arm-sql/lib/models/index.ts | 243 ++++++++++++ .../models/instanceFailoverGroupsMappers.ts | 1 + .../arm-sql/lib/models/jobAgentsMappers.ts | 1 + .../lib/models/jobCredentialsMappers.ts | 1 + .../lib/models/jobExecutionsMappers.ts | 1 + .../lib/models/jobStepExecutionsMappers.ts | 1 + .../arm-sql/lib/models/jobStepsMappers.ts | 1 + .../lib/models/jobTargetExecutionsMappers.ts | 1 + .../lib/models/jobTargetGroupsMappers.ts | 1 + .../arm-sql/lib/models/jobVersionsMappers.ts | 1 + .../@azure/arm-sql/lib/models/jobsMappers.ts | 1 + .../models/longTermRetentionBackupsMappers.ts | 1 + ...BackupShortTermRetentionPoliciesMappers.ts | 1 + ...gedDatabaseSecurityAlertPoliciesMappers.ts | 1 + ...erabilityAssessmentRuleBaselinesMappers.ts | 1 + ...baseVulnerabilityAssessmentScansMappers.ts | 1 + ...DatabaseVulnerabilityAssessmentsMappers.ts | 1 + .../lib/models/managedDatabasesMappers.ts | 1 + ...agedInstanceEncryptionProtectorsMappers.ts | 1 + .../lib/models/managedInstanceKeysMappers.ts | 1 + .../managedInstanceTdeCertificatesMappers.ts | 1 + ...InstanceVulnerabilityAssessmentsMappers.ts | 1 + .../lib/models/managedInstancesMappers.ts | 1 + ...BackupShortTermRetentionPoliciesMappers.ts | 115 ++++++ ...nagedServerSecurityAlertPoliciesMappers.ts | 1 + packages/@azure/arm-sql/lib/models/mappers.ts | 69 ++++ .../@azure/arm-sql/lib/models/parameters.ts | 10 + .../models/recommendedElasticPoolsMappers.ts | 1 + .../lib/models/recoverableDatabasesMappers.ts | 1 + .../lib/models/replicationLinksMappers.ts | 1 + .../restorableDroppedDatabasesMappers.ts | 1 + ...estorableDroppedManagedDatabasesMappers.ts | 115 ++++++ .../lib/models/restorePointsMappers.ts | 1 + .../serverAutomaticTuningOperationsMappers.ts | 1 + .../serverAzureADAdministratorsMappers.ts | 1 + .../serverBlobAuditingPoliciesMappers.ts | 1 + .../models/serverCommunicationLinksMappers.ts | 1 + .../models/serverConnectionPoliciesMappers.ts | 1 + .../lib/models/serverDnsAliasesMappers.ts | 1 + .../arm-sql/lib/models/serverKeysMappers.ts | 1 + .../serverSecurityAlertPoliciesMappers.ts | 1 + .../serverVulnerabilityAssessmentsMappers.ts | 1 + .../arm-sql/lib/models/serversMappers.ts | 1 + .../lib/models/serviceObjectivesMappers.ts | 1 + .../lib/models/serviceTierAdvisorsMappers.ts | 1 + .../lib/models/subscriptionUsagesMappers.ts | 1 + .../arm-sql/lib/models/syncAgentsMappers.ts | 1 + .../arm-sql/lib/models/syncGroupsMappers.ts | 1 + .../arm-sql/lib/models/syncMembersMappers.ts | 1 + .../lib/models/tdeCertificatesMappers.ts | 1 + ...nsparentDataEncryptionActivitiesMappers.ts | 1 + .../transparentDataEncryptionsMappers.ts | 1 + .../lib/models/virtualNetworkRulesMappers.ts | 1 + .../@azure/arm-sql/lib/operations/index.ts | 2 + ...atabaseBackupShortTermRetentionPolicies.ts | 362 ++++++++++++++++++ .../restorableDroppedManagedDatabases.ts | 204 ++++++++++ .../@azure/arm-sql/lib/sqlManagementClient.ts | 4 + 79 files changed, 1194 insertions(+) create mode 100644 packages/@azure/arm-sql/lib/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts create mode 100644 packages/@azure/arm-sql/lib/models/restorableDroppedManagedDatabasesMappers.ts create mode 100644 packages/@azure/arm-sql/lib/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts create mode 100644 packages/@azure/arm-sql/lib/operations/restorableDroppedManagedDatabases.ts diff --git a/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts index 9aae735fda41..79ad33463d00 100644 --- a/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/backupLongTermRetentionPoliciesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts index 879c16aa8484..da57fdcecaf4 100644 --- a/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/backupShortTermRetentionPoliciesMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts index e6fb1624c0c2..2e342b05fff1 100644 --- a/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/dataMaskingPoliciesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts b/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts index 49bf2f7582a6..62dc0cd29b10 100644 --- a/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/dataMaskingRulesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts index a8416f2a3c0e..0b662ae9db69 100644 --- a/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseAutomaticTuningOperationsMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts index e97706cb8fa2..c79246ef3f04 100644 --- a/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseBlobAuditingPoliciesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts index 9805a83d3416..83ce36f9cd02 100644 --- a/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseOperationsMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts index b0efaf35f64c..dc8769da5da7 100644 --- a/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseThreatDetectionPoliciesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts index 58e4032f7a14..243ac569247a 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts index cba0486fa476..ca6c1e8ec98a 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts @@ -91,6 +91,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts index 5d1f6383d4c6..daa87eec4a8b 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/databasesMappers.ts b/packages/@azure/arm-sql/lib/models/databasesMappers.ts index 1a70066b0687..5583fd5003ca 100644 --- a/packages/@azure/arm-sql/lib/models/databasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databasesMappers.ts @@ -101,6 +101,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts index c0bc2996ed44..e9fa181da86b 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolActivitiesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts index 0a7da9d26d8a..aeb42bce2e70 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolDatabaseActivitiesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts index 30e58d7d7145..99428d076152 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolOperationsMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts b/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts index 247c32ac8167..3689dd681818 100644 --- a/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/elasticPoolsMappers.ts @@ -96,6 +96,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts b/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts index 0a6bea4ac297..44765748fd84 100644 --- a/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/encryptionProtectorsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts index 5217b52c7108..d76560c1dbc7 100644 --- a/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/extendedDatabaseBlobAuditingPoliciesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts index 321f9634f4f4..d7a5d0c9b9f7 100644 --- a/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/extendedServerBlobAuditingPoliciesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts index 5ce29bcd7be4..8bee20fe56f7 100644 --- a/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/failoverGroupsMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts b/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts index cd90e81dc52b..8b7b9d21e714 100644 --- a/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/firewallRulesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts index 77ab789dff9c..b1b376a4b034 100644 --- a/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/geoBackupPoliciesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index e87c5a92d2b2..06c44265e6fa 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -4700,6 +4700,43 @@ export interface ServerSecurityAlertPolicy extends ProxyResource { 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; +} + /** * @interface * An interface representing RestorePoint. @@ -7726,6 +7763,22 @@ export interface ServerDnsAliasListResult extends Array { 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. @@ -13143,6 +13196,139 @@ export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResu }; }; +/** + * Contains response data for the get operation. + */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * 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: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * 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: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * 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: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the listByRestorableDroppedDatabase operation. + */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { + /** + * 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: ManagedBackupShortTermRetentionPolicyListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * 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: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { + /** + * 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: ManagedBackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the listByRestorableDroppedDatabaseNext operation. + */ +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { + /** + * 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: ManagedBackupShortTermRetentionPolicyListResult; + }; +}; + /** * Contains response data for the get operation. */ @@ -13333,6 +13519,63 @@ export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecur }; }; +/** + * Contains response data for the listByInstance operation. + */ +export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult & { + /** + * 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: RestorableDroppedManagedDatabaseListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase & { + /** + * 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: RestorableDroppedManagedDatabase; + }; +}; + +/** + * Contains response data for the listByInstanceNext operation. + */ +export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult & { + /** + * 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: RestorableDroppedManagedDatabaseListResult; + }; +}; + /** * Contains response data for the listByDatabase operation. */ diff --git a/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts index 71357cb42e26..4f35cc02aeca 100644 --- a/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/instanceFailoverGroupsMappers.ts @@ -93,6 +93,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts b/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts index ae65b3a0126a..4e3b1688831a 100644 --- a/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobAgentsMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts b/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts index 62e872e03b0c..563e00a121ec 100644 --- a/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobCredentialsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts index 819a3ac879d9..d727a4707b91 100644 --- a/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobExecutionsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts index 819a3ac879d9..d727a4707b91 100644 --- a/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobStepExecutionsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts b/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts index 500bc8791ee9..f48c9cbe867d 100644 --- a/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobStepsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts index 819a3ac879d9..d727a4707b91 100644 --- a/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobTargetExecutionsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts index 981f0d1db746..48d75f6b2de0 100644 --- a/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobTargetGroupsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts b/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts index b7ed3cbf6d71..19fd8be4c804 100644 --- a/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobVersionsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/jobsMappers.ts b/packages/@azure/arm-sql/lib/models/jobsMappers.ts index e8964b2da727..f832de14d1b9 100644 --- a/packages/@azure/arm-sql/lib/models/jobsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/jobsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts b/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts index aa7c72c0d533..cf95d901a549 100644 --- a/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/longTermRetentionBackupsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts index 5e197c91e0be..93e09c883d85 100644 --- a/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedBackupShortTermRetentionPoliciesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseSecurityAlertPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseSecurityAlertPoliciesMappers.ts index d2b05802ec97..62e0675adf84 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseSecurityAlertPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseSecurityAlertPoliciesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedServerSecurityAlertPolicy, DatabaseOperation, diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts index 58e4032f7a14..243ac569247a 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts index cba0486fa476..ca6c1e8ec98a 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts @@ -91,6 +91,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts index 5d1f6383d4c6..daa87eec4a8b 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabaseVulnerabilityAssessmentsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts index b83ebac88f2d..4767477cd569 100644 --- a/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedDatabasesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts index 94da6694918a..1e27a8196d72 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceEncryptionProtectorsMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts index 5df0b1ad0347..ca2303efe5c5 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceKeysMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts index 905549c7006a..6eb3a2619ed6 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceTdeCertificatesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedInstanceVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstanceVulnerabilityAssessmentsMappers.ts index 3c7b5b974d25..c670ba68ffc9 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstanceVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstanceVulnerabilityAssessmentsMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts b/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts index 9b57726ffe97..289f676f6595 100644 --- a/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedInstancesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, 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..93e09c883d85 --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts @@ -0,0 +1,115 @@ +/* + * 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, + 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, + 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/managedServerSecurityAlertPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/managedServerSecurityAlertPoliciesMappers.ts index 421623974977..e5efd560e484 100644 --- a/packages/@azure/arm-sql/lib/models/managedServerSecurityAlertPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/managedServerSecurityAlertPoliciesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, DatabaseOperation, diff --git a/packages/@azure/arm-sql/lib/models/mappers.ts b/packages/@azure/arm-sql/lib/models/mappers.ts index 8cebf22b82a4..c079396ad4b6 100644 --- a/packages/@azure/arm-sql/lib/models/mappers.ts +++ b/packages/@azure/arm-sql/lib/models/mappers.ts @@ -5298,6 +5298,45 @@ export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { } }; +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: { @@ -8996,6 +9035,36 @@ export const ServerDnsAliasListResult: msRest.CompositeMapper = { } }; +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: { diff --git a/packages/@azure/arm-sql/lib/models/parameters.ts b/packages/@azure/arm-sql/lib/models/parameters.ts index 0469e4203932..8c1daf52c27a 100644 --- a/packages/@azure/arm-sql/lib/models/parameters.ts +++ b/packages/@azure/arm-sql/lib/models/parameters.ts @@ -561,6 +561,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: { diff --git a/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts b/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts index adeed01c22df..889dabf24c71 100644 --- a/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/recommendedElasticPoolsMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts index d1a4e942cc6b..7af097ef23d1 100644 --- a/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/recoverableDatabasesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts b/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts index 28e0f1bd670c..af1acc313537 100644 --- a/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts +++ b/packages/@azure/arm-sql/lib/models/replicationLinksMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts b/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts index 627cba42ec39..f59755fd6248 100644 --- a/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/restorableDroppedDatabasesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, 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..a63bd25f831c --- /dev/null +++ b/packages/@azure/arm-sql/lib/models/restorableDroppedManagedDatabasesMappers.ts @@ -0,0 +1,115 @@ +/* + * 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, + 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, + DatabaseOperation, + ElasticPoolOperation, + Database, + ElasticPool, + ElasticPoolPerDatabaseSettings, + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentScanError, + DatabaseVulnerabilityAssessmentScansExport, + InstanceFailoverGroup, + InstanceFailoverGroupReadWriteEndpoint, + InstanceFailoverGroupReadOnlyEndpoint, + PartnerRegionInfo, + ManagedInstancePairInfo, + BackupShortTermRetentionPolicy, + TdeCertificate, + ManagedInstanceKey, + ManagedInstanceEncryptionProtector, + 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 b77b3b8d02c7..a0bbdb28241e 100644 --- a/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/restorePointsMappers.ts @@ -90,6 +90,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, DatabaseOperation, diff --git a/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts b/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts index 8c3e03c95825..dbbb2ec0cbc6 100644 --- a/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverAutomaticTuningOperationsMappers.ts @@ -87,6 +87,7 @@ export { ManagedDatabase, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts b/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts index 9b25f8524132..07898d973475 100644 --- a/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverAzureADAdministratorsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts index 56378121bc5f..ba4ab79564f4 100644 --- a/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverBlobAuditingPoliciesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts b/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts index 2ab0c4a53072..2d818549e052 100644 --- a/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverCommunicationLinksMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts index ae4e05f25096..8ab3223b7f0a 100644 --- a/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverConnectionPoliciesMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts b/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts index cbac598d5e89..57b2e8ae5178 100644 --- a/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverDnsAliasesMappers.ts @@ -89,6 +89,7 @@ export { ServerAutomaticTuning, AutomaticTuningServerOptions, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts b/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts index 0d85d2faea89..71b44e6ebee7 100644 --- a/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverKeysMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts b/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts index bf04d2a49b14..55c657351e67 100644 --- a/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverSecurityAlertPoliciesMappers.ts @@ -87,6 +87,7 @@ export { ServerAutomaticTuning, AutomaticTuningServerOptions, ServerDnsAlias, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serverVulnerabilityAssessmentsMappers.ts b/packages/@azure/arm-sql/lib/models/serverVulnerabilityAssessmentsMappers.ts index 9b086084366c..92e27e75d3fc 100644 --- a/packages/@azure/arm-sql/lib/models/serverVulnerabilityAssessmentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serverVulnerabilityAssessmentsMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serversMappers.ts b/packages/@azure/arm-sql/lib/models/serversMappers.ts index 34b5ae19ced5..625718ffa3d0 100644 --- a/packages/@azure/arm-sql/lib/models/serversMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serversMappers.ts @@ -89,6 +89,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts b/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts index 77656ead210f..20a61b6f8a43 100644 --- a/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serviceObjectivesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts b/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts index 293fda554c36..395d682e15bb 100644 --- a/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/serviceTierAdvisorsMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts b/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts index 369dc654f187..afd1c31fcddb 100644 --- a/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/subscriptionUsagesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts b/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts index d7360b90bdaa..435354564cff 100644 --- a/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncAgentsMappers.ts @@ -90,6 +90,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts b/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts index b0712bcbfa35..673374aba74c 100644 --- a/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncGroupsMappers.ts @@ -96,6 +96,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts b/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts index f69965acf51c..8cd7239e7ede 100644 --- a/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts +++ b/packages/@azure/arm-sql/lib/models/syncMembersMappers.ts @@ -92,6 +92,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts b/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts index 905549c7006a..6eb3a2619ed6 100644 --- a/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/tdeCertificatesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts index 5a6ae2c30f4a..75da28b9c7fd 100644 --- a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionActivitiesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts index 8c35ea68a41a..5e54169c923d 100644 --- a/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts +++ b/packages/@azure/arm-sql/lib/models/transparentDataEncryptionsMappers.ts @@ -87,6 +87,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts b/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts index d7f5d9d01f09..28133ef82bbc 100644 --- a/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts +++ b/packages/@azure/arm-sql/lib/models/virtualNetworkRulesMappers.ts @@ -88,6 +88,7 @@ export { AutomaticTuningServerOptions, ServerDnsAlias, ServerSecurityAlertPolicy, + RestorableDroppedManagedDatabase, RestorePoint, ManagedDatabaseSecurityAlertPolicy, ManagedServerSecurityAlertPolicy, diff --git a/packages/@azure/arm-sql/lib/operations/index.ts b/packages/@azure/arm-sql/lib/operations/index.ts index 04dca4f0f88f..1851ce76966b 100644 --- a/packages/@azure/arm-sql/lib/operations/index.ts +++ b/packages/@azure/arm-sql/lib/operations/index.ts @@ -61,9 +61,11 @@ 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"; 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..f801cb4c7d7a --- /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 "ms-rest-js"; +import * as msRestAzure from "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/restorableDroppedManagedDatabases.ts b/packages/@azure/arm-sql/lib/operations/restorableDroppedManagedDatabases.ts new file mode 100644 index 000000000000..5c22a0a834c3 --- /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 "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/sqlManagementClient.ts b/packages/@azure/arm-sql/lib/sqlManagementClient.ts index e8514714cd59..18ace4a6cf08 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClient.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClient.ts @@ -70,9 +70,11 @@ 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; @@ -153,9 +155,11 @@ 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); From 46370bd2574f5a060b55fc8f394ffa6a51191ac4 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 18 Jan 2019 16:31:43 +0000 Subject: [PATCH 2/2] Generated from 676178334abdb40ac47516783d789272008e8488 Adding support for dropped databases on Managed Instance --- packages/@azure/arm-sql/LICENSE.txt | 2 +- .../operations/longTermRetentionBackups.ts | 38 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) 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/lib/operations/longTermRetentionBackups.ts b/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts index 01641e38b809..8a30635bb2fe 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