This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR sql/resource-manager] Managed Instance GeoRestore Cmds (#4522)
* 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
1 parent
095860a
commit d3d1b8a
Showing
9 changed files
with
1,307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
lib/services/sqlManagement2/lib/models/recoverableManagedDatabase.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
69 changes: 69 additions & 0 deletions
69
lib/services/sqlManagement2/lib/models/recoverableManagedDatabaseListResult.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.