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] Added support for dropped databases on …
…Managed Instance (#4486) * Generated from b69193acc6a531e053151c7ba4aaffb07cb218a0 Added support for dropped databases on Managed Instance * Generated from 676178334abdb40ac47516783d789272008e8488 Adding support for dropped databases on Managed Instance
- Loading branch information
1 parent
9e77efd
commit 095860a
Showing
10 changed files
with
3,384 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
132 changes: 132 additions & 0 deletions
132
lib/services/sqlManagement2/lib/models/restorableDroppedManagedDatabase.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,132 @@ | ||
/* | ||
* 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 restorable dropped managed database resource. | ||
* | ||
* @extends models['TrackedResource'] | ||
*/ | ||
class RestorableDroppedManagedDatabase extends models['TrackedResource'] { | ||
/** | ||
* Create a RestorableDroppedManagedDatabase. | ||
* @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). | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of RestorableDroppedManagedDatabase | ||
* | ||
* @returns {object} metadata of RestorableDroppedManagedDatabase | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'RestorableDroppedManagedDatabase', | ||
type: { | ||
name: 'Composite', | ||
className: 'RestorableDroppedManagedDatabase', | ||
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' | ||
} | ||
}, | ||
location: { | ||
required: true, | ||
serializedName: 'location', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
tags: { | ||
required: false, | ||
serializedName: 'tags', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
databaseName: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.databaseName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
creationDate: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.creationDate', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
}, | ||
deletionDate: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.deletionDate', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
}, | ||
earliestRestoreDate: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.earliestRestoreDate', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = RestorableDroppedManagedDatabase; |
69 changes: 69 additions & 0 deletions
69
lib/services/sqlManagement2/lib/models/restorableDroppedManagedDatabaseListResult.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 restorable dropped managed databases. | ||
*/ | ||
class RestorableDroppedManagedDatabaseListResult extends Array { | ||
/** | ||
* Create a RestorableDroppedManagedDatabaseListResult. | ||
* @property {string} [nextLink] Link to retrieve next page of results. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of RestorableDroppedManagedDatabaseListResult | ||
* | ||
* @returns {object} metadata of RestorableDroppedManagedDatabaseListResult | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'RestorableDroppedManagedDatabaseListResult', | ||
type: { | ||
name: 'Composite', | ||
className: 'RestorableDroppedManagedDatabaseListResult', | ||
modelProperties: { | ||
value: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: '', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'RestorableDroppedManagedDatabaseElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'RestorableDroppedManagedDatabase' | ||
} | ||
} | ||
} | ||
}, | ||
nextLink: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'nextLink', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = RestorableDroppedManagedDatabaseListResult; |
Oops, something went wrong.