Skip to content

Commit

Permalink
Swagger Changes for Get Recoverable Servers and create server with Ge…
Browse files Browse the repository at this point in the history
…o-Restore. (Azure#14013)

* Added Recoverable Servers API and GeoRestore API.

* Fixed spell check and prettier

* Fixed readme.md file issue and changed the postgreSQL to restore.

* Fixed duplicate schema issue.

* Fixed the mismatch with namespace names.

* change the tag name from georestore to servers

* Fixed the SDK validation issues.

* Fixed objects w.r.t preview version

* Fixed operation required properties.

* Included 2020-04-10 in the SDK versions

* Change the folder path.
  • Loading branch information
pradeepkintali authored and mkarmark committed Jul 20, 2021
1 parent 1e6f9eb commit 507edfa
Show file tree
Hide file tree
Showing 27 changed files with 5,249 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"parameters": {
"api-version": "2021-04-10-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"locationName": "WestUS"
},
"responses": {
"200": {
"body": {
"value": [
{
"zone": "none",
"supportedFlexibleServerEditions": [
{
"name": "Burstable",
"supportedStorageEditions": [
{
"name": "ManagedDisk",
"supportedStorageMB": [
{
"name": "32768",
"supportedIops": 120,
"storageSizeMB": 32768
},
{
"name": "65536",
"supportedIops": 240,
"storageSizeMB": 65536
},
{
"name": "131072",
"supportedIops": 500,
"storageSizeMB": 131072
}
]
}
],
"supportedServerVersions": [
{
"name": "12",
"supportedVcores": [
{
"name": "Standard_B1s",
"vCores": 1,
"supportedIops": 320,
"supportedMemoryPerVcoreMB": 1024
},
{
"name": "Standard_B1ms",
"vCores": 1,
"supportedIops": 640,
"supportedMemoryPerVcoreMB": 2048
},
{
"name": "Standard_B2s",
"vCores": 2,
"supportedIops": 1280,
"supportedMemoryPerVcoreMB": 2048
}
]
}
]
}
]
},
{
"zone": "1",
"supportedFlexibleServerEditions": [
{
"name": "Burstable",
"supportedStorageEditions": [
{
"name": "ManagedDisk",
"supportedStorageMB": [
{
"name": "32768",
"supportedIops": 120,
"storageSizeMB": 32768
},
{
"name": "65536",
"supportedIops": 240,
"storageSizeMB": 65536
},
{
"name": "131072",
"supportedIops": 500,
"storageSizeMB": 131072
}
]
}
],
"supportedServerVersions": [
{
"name": "12",
"supportedVcores": [
{
"name": "Standard_B1s",
"vCores": 1,
"supportedIops": 320,
"supportedMemoryPerVcoreMB": 1024
},
{
"name": "Standard_B1ms",
"vCores": 1,
"supportedIops": 640,
"supportedMemoryPerVcoreMB": 2048
},
{
"name": "Standard_B2s",
"vCores": 2,
"supportedIops": 1280,
"supportedMemoryPerVcoreMB": 2048
}
]
}
]
}
]
},
{
"zone": "2",
"supportedFlexibleServerEditions": [
{
"name": "Burstable",
"supportedStorageEditions": [
{
"name": "ManagedDisk",
"supportedStorageMB": [
{
"name": "32768",
"supportedIops": 120,
"storageSizeMB": 32768
},
{
"name": "65536",
"supportedIops": 240,
"storageSizeMB": 65536
},
{
"name": "131072",
"supportedIops": 500,
"storageSizeMB": 131072
}
]
}
],
"supportedServerVersions": [
{
"name": "12",
"supportedVcores": [
{
"name": "Standard_B1s",
"vCores": 1,
"supportedIops": 320,
"supportedMemoryPerVcoreMB": 1024
},
{
"name": "Standard_B1ms",
"vCores": 1,
"supportedIops": 640,
"supportedMemoryPerVcoreMB": 2048
},
{
"name": "Standard_B2s",
"vCores": 2,
"supportedIops": 1280,
"supportedMemoryPerVcoreMB": 2048
}
]
}
]
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2021-04-10-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"nameAvailabilityRequest": {
"name": "name1",
"type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": true,
"message": "",
"name": "name1",
"type": "Microsoft.DBforPostgreSQL/flexibleServers"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"configurationName": "array_nulls",
"serverName": "testserver",
"resourceGroupName": "TestGroup",
"api-version": "2021-04-10-privatepreview",
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"responses": {
"200": {
"body": {
"properties": {
"value": "on",
"description": "Enable input of NULL elements in arrays.",
"defaultValue": "on",
"dataType": "Boolean",
"allowedValues": "on,off",
"source": "system-default"
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/testserver/configurations/array_nulls",
"name": "array_nulls",
"type": "Microsoft.DBforPostgreSQL/flexibleServers/configurations"
}
}
}
}
Loading

0 comments on commit 507edfa

Please sign in to comment.