Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR sql/resource-manager] Managed Instance GeoRestore Cmds #4522

Merged
merged 3 commits into from
Jan 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/services/sqlManagement2/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
57 changes: 57 additions & 0 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3118,6 +3118,27 @@ export interface ServerSecurityAlertPolicy extends ProxyResource {
readonly creationTime?: Date;
}

/**
* @class
* Initializes a new instance of the RestorableDroppedManagedDatabase class.
* @constructor
* A restorable dropped managed database resource.
*
* @property {string} [databaseName] The name of the database.
* @property {date} [creationDate] The creation date of the database (ISO8601
* format).
* @property {date} [deletionDate] The deletion date of the database (ISO8601
* format).
* @property {date} [earliestRestoreDate] The earliest restore date of the
* database (ISO8601 format).
*/
export interface RestorableDroppedManagedDatabase extends TrackedResource {
readonly databaseName?: string;
readonly creationDate?: Date;
readonly deletionDate?: Date;
readonly earliestRestoreDate?: Date;
}

/**
* @class
* Initializes a new instance of the RestorePoint class.
Expand Down Expand Up @@ -4433,6 +4454,18 @@ export interface ManagedInstanceEncryptionProtector extends ProxyResource {
readonly thumbprint?: string;
}

/**
* @class
* Initializes a new instance of the RecoverableManagedDatabase class.
* @constructor
* A recoverable managed database resource.
*
* @property {string} [lastAvailableBackupDate] The last available backup date.
*/
export interface RecoverableManagedDatabase extends ProxyResource {
readonly lastAvailableBackupDate?: string;
}

/**
* @class
* Initializes a new instance of the ManagedInstanceVulnerabilityAssessment class.
Expand Down Expand Up @@ -5037,6 +5070,18 @@ export interface ServerDnsAliasListResult extends Array<ServerDnsAlias> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the RestorableDroppedManagedDatabaseListResult class.
* @constructor
* A list of restorable dropped managed databases.
*
* @property {string} [nextLink] Link to retrieve next page of results.
*/
export interface RestorableDroppedManagedDatabaseListResult extends Array<RestorableDroppedManagedDatabase> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the RestorePointListResult class.
Expand Down Expand Up @@ -5133,6 +5178,18 @@ export interface ManagedInstanceEncryptionProtectorListResult extends Array<Mana
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the RecoverableManagedDatabaseListResult class.
* @constructor
* A list of recoverable managed databases.
*
* @property {string} [nextLink] Link to retrieve next page of results.
*/
export interface RecoverableManagedDatabaseListResult extends Array<RecoverableManagedDatabase> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ManagedInstanceVulnerabilityAssessmentListResult class.
Expand Down
4 changes: 4 additions & 0 deletions lib/services/sqlManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ exports.ServerAutomaticTuning = require('./serverAutomaticTuning');
exports.ServerDnsAlias = require('./serverDnsAlias');
exports.ServerDnsAliasAcquisition = require('./serverDnsAliasAcquisition');
exports.ServerSecurityAlertPolicy = require('./serverSecurityAlertPolicy');
exports.RestorableDroppedManagedDatabase = require('./restorableDroppedManagedDatabase');
exports.RestorePoint = require('./restorePoint');
exports.CreateDatabaseRestorePointDefinition = require('./createDatabaseRestorePointDefinition');
exports.ManagedDatabaseSecurityAlertPolicy = require('./managedDatabaseSecurityAlertPolicy');
Expand Down Expand Up @@ -162,6 +163,7 @@ exports.BackupShortTermRetentionPolicy = require('./backupShortTermRetentionPoli
exports.TdeCertificate = require('./tdeCertificate');
exports.ManagedInstanceKey = require('./managedInstanceKey');
exports.ManagedInstanceEncryptionProtector = require('./managedInstanceEncryptionProtector');
exports.RecoverableManagedDatabase = require('./recoverableManagedDatabase');
exports.ManagedInstanceVulnerabilityAssessment = require('./managedInstanceVulnerabilityAssessment');
exports.ServerVulnerabilityAssessment = require('./serverVulnerabilityAssessment');
exports.RecoverableDatabaseListResult = require('./recoverableDatabaseListResult');
Expand Down Expand Up @@ -212,6 +214,7 @@ exports.LongTermRetentionBackupListResult = require('./longTermRetentionBackupLi
exports.ManagedBackupShortTermRetentionPolicyListResult = require('./managedBackupShortTermRetentionPolicyListResult');
exports.ManagedDatabaseListResult = require('./managedDatabaseListResult');
exports.ServerDnsAliasListResult = require('./serverDnsAliasListResult');
exports.RestorableDroppedManagedDatabaseListResult = require('./restorableDroppedManagedDatabaseListResult');
exports.RestorePointListResult = require('./restorePointListResult');
exports.DatabaseOperationListResult = require('./databaseOperationListResult');
exports.ElasticPoolOperationListResult = require('./elasticPoolOperationListResult');
Expand All @@ -220,5 +223,6 @@ exports.InstanceFailoverGroupListResult = require('./instanceFailoverGroupListRe
exports.BackupShortTermRetentionPolicyListResult = require('./backupShortTermRetentionPolicyListResult');
exports.ManagedInstanceKeyListResult = require('./managedInstanceKeyListResult');
exports.ManagedInstanceEncryptionProtectorListResult = require('./managedInstanceEncryptionProtectorListResult');
exports.RecoverableManagedDatabaseListResult = require('./recoverableManagedDatabaseListResult');
exports.ManagedInstanceVulnerabilityAssessmentListResult = require('./managedInstanceVulnerabilityAssessmentListResult');
exports.ServerVulnerabilityAssessmentListResult = require('./serverVulnerabilityAssessmentListResult');
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
* 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.
*/

'use strict';

const models = require('./index');

/**
* A recoverable managed database resource.
*
* @extends models['ProxyResource']
*/
class RecoverableManagedDatabase extends models['ProxyResource'] {
/**
* Create a RecoverableManagedDatabase.
* @property {string} [lastAvailableBackupDate] The last available backup
* date.
*/
constructor() {
super();
}

/**
* Defines the metadata of RecoverableManagedDatabase
*
* @returns {object} metadata of RecoverableManagedDatabase
*
*/
mapper() {
return {
required: false,
serializedName: 'RecoverableManagedDatabase',
type: {
name: 'Composite',
className: 'RecoverableManagedDatabase',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
lastAvailableBackupDate: {
required: false,
readOnly: true,
serializedName: 'properties.lastAvailableBackupDate',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = RecoverableManagedDatabase;
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* 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.
*/

'use strict';

/**
* A list of recoverable managed databases.
*/
class RecoverableManagedDatabaseListResult extends Array {
/**
* Create a RecoverableManagedDatabaseListResult.
* @property {string} [nextLink] Link to retrieve next page of results.
*/
constructor() {
super();
}

/**
* Defines the metadata of RecoverableManagedDatabaseListResult
*
* @returns {object} metadata of RecoverableManagedDatabaseListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'RecoverableManagedDatabaseListResult',
type: {
name: 'Composite',
className: 'RecoverableManagedDatabaseListResult',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'RecoverableManagedDatabaseElementType',
type: {
name: 'Composite',
className: 'RecoverableManagedDatabase'
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = RecoverableManagedDatabaseListResult;
Loading