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

Commit

Permalink
[AutoPR sql/resource-manager] Managed Instance GeoRestore Cmds (#4522)
Browse files Browse the repository at this point in the history
* Generated from 6bb8cd671fb641dad3af4d4b557d6230c99237af

Modify example files and readme.md

Modify example files and readme.md for get recoverable managed databases

* Generated from 6bb8cd671fb641dad3af4d4b557d6230c99237af

Modify example files and readme.md

Modify example files and readme.md for get recoverable managed databases

* Generated from 056912d8e7565bffe7b39979ad9e6e2d69a69014

Update recoverableManagedDatabaseName to recoverableDatabaseName

Update recoverableManagedDatabaseName to recoverableDatabaseName
  • Loading branch information
AutorestCI authored Jan 22, 2019
1 parent 095860a commit d3d1b8a
Show file tree
Hide file tree
Showing 9 changed files with 1,307 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4454,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 @@ -5166,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
2 changes: 2 additions & 0 deletions lib/services/sqlManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,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 @@ -222,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

0 comments on commit d3d1b8a

Please sign in to comment.