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 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2580 from Azure/restapi_auto_2765
[AutoPR postgresql/resource-manager/mysql/resource-manager] Add GeoRestore to MySQL and PostgreSQL
- Loading branch information
Showing
37 changed files
with
912 additions
and
396 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
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
93 changes: 93 additions & 0 deletions
93
lib/services/mysqlManagement/lib/models/serverPropertiesForGeoRestore.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,93 @@ | ||
/* | ||
* 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'); | ||
|
||
/** | ||
* The properties used to create a new server by restoring to a different | ||
* region from a geo replicated backup. | ||
* | ||
* @extends models['ServerPropertiesForCreate'] | ||
*/ | ||
class ServerPropertiesForGeoRestore extends models['ServerPropertiesForCreate'] { | ||
/** | ||
* Create a ServerPropertiesForGeoRestore. | ||
* @member {string} sourceServerId The source server id to restore from. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of ServerPropertiesForGeoRestore | ||
* | ||
* @returns {object} metadata of ServerPropertiesForGeoRestore | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'GeoRestore', | ||
type: { | ||
name: 'Composite', | ||
polymorphicDiscriminator: { | ||
serializedName: 'createMode', | ||
clientName: 'createMode' | ||
}, | ||
uberParent: 'ServerPropertiesForCreate', | ||
className: 'ServerPropertiesForGeoRestore', | ||
modelProperties: { | ||
version: { | ||
required: false, | ||
serializedName: 'version', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
sslEnforcement: { | ||
required: false, | ||
serializedName: 'sslEnforcement', | ||
type: { | ||
name: 'Enum', | ||
allowedValues: [ 'Enabled', 'Disabled' ] | ||
} | ||
}, | ||
storageProfile: { | ||
required: false, | ||
serializedName: 'storageProfile', | ||
type: { | ||
name: 'Composite', | ||
className: 'StorageProfile' | ||
} | ||
}, | ||
createMode: { | ||
required: true, | ||
serializedName: 'createMode', | ||
isPolymorphicDiscriminator: true, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
sourceServerId: { | ||
required: true, | ||
serializedName: 'sourceServerId', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ServerPropertiesForGeoRestore; |
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
Oops, something went wrong.