-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[PostgreSQL] Adding a new privatepreview version for fast-provisioning feature #18978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dw511214992
merged 16 commits into
Azure:main
from
DaeunYim:daeunyim/fast-provisioning-new-api-only2
Jun 15, 2022
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c34e261
add new files
DaeunYim 5121921
Add getCachedServerName API
DaeunYim a2a5b2d
location capability property update
DaeunYim 8e87a72
revert the wrong change
DaeunYim 386ccf1
Add new line and change formats
DaeunYim 859cac2
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
DaeunYim 5532224
fix ci issue
DaeunYim 4a32a3f
Remove example file
DaeunYim 42fa372
Re-add example file
DaeunYim 47fa28f
Added readme files
DaeunYim 5309a8d
Add location name
DaeunYim 784c2fc
Add definitions for required parameters
DaeunYim 647f7f7
Run prettier and handle model validation isue
DaeunYim 1ef8e84
Remove additional property
DaeunYim aeda856
prettier run again
DaeunYim 9aa4ead
Merge branch 'main' into daeunyim/fast-provisioning-new-api-only2
DaeunYim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...osoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/examples/GetCachedServerName.json
This file contains hidden or 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,25 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2022-03-08-privatepreview", | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
| "resourceGroupName": "testrg", | ||
| "locationName": "WestUS", | ||
| "cachedServerNameRequest": { | ||
| "version": "12", | ||
| "storage": { | ||
| "storageSizeGB": 32 | ||
| }, | ||
| "sku": { | ||
| "tier": "Burstable", | ||
| "name": "Standard_B1ms" | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "name": "servername" | ||
| } | ||
| } | ||
| } | ||
| } |
194 changes: 194 additions & 0 deletions
194
...ager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json
This file contains hidden or 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,194 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2022-03-08-privatepreview", | ||
| "title": "PostgreSQLManagementClient", | ||
| "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model." | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/getCachedServerName": { | ||
| "post": { | ||
| "tags": [ | ||
| "GetCachedServerName" | ||
| ], | ||
| "operationId": "GetCachedServerName_Execute", | ||
| "x-ms-examples": { | ||
| "GetCachedServerName": { | ||
| "$ref": "./examples/GetCachedServerName.json" | ||
| } | ||
| }, | ||
| "description": "Get available cached server name for fast provisioning", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/LocationNameParameter" | ||
| }, | ||
| { | ||
| "name": "cachedServerNameRequest", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/CachedServerNameRequest" | ||
| }, | ||
| "description": "The required parameters for get cached name available for fast provisioning." | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/CachedServerName" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "CachedServerNameRequest": { | ||
| "type": "object", | ||
| "required": [ | ||
| "version", | ||
| "storage", | ||
| "sku" | ||
| ], | ||
| "properties": { | ||
| "version": { | ||
| "$ref": "#/definitions/ServerVersion", | ||
| "description": "PostgreSQL Server version." | ||
| }, | ||
| "storage": { | ||
| "$ref": "#/definitions/Storage", | ||
| "default": null, | ||
| "description": "Storage properties of a server." | ||
| }, | ||
| "sku": { | ||
| "$ref": "#/definitions/Sku", | ||
| "description": "The SKU (pricing tier) of the server." | ||
| } | ||
| }, | ||
| "description": "Request from client to get available cached server name" | ||
| }, | ||
| "CachedServerName": { | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "description": "The name of available cached server", | ||
| "readOnly": true | ||
| } | ||
| }, | ||
| "description": "Represents a resource name of a cached server" | ||
| }, | ||
| "ServerVersion": { | ||
| "type": "string", | ||
| "description": "The version of a server.", | ||
| "enum": [ | ||
| "13", | ||
| "12", | ||
| "11" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "ServerVersion", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "Storage": { | ||
| "properties": { | ||
| "storageSizeGB": { | ||
| "type": "integer", | ||
| "format": "int32", | ||
| "description": "Max storage allowed for a server." | ||
| } | ||
| }, | ||
| "description": "Storage properties of a server" | ||
| }, | ||
| "Sku": { | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." | ||
| }, | ||
| "tier": { | ||
| "type": "string", | ||
| "description": "The tier of the particular SKU, e.g. Burstable.", | ||
| "enum": [ | ||
| "Burstable", | ||
| "GeneralPurpose", | ||
| "MemoryOptimized" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "SkuTier", | ||
| "modelAsString": true | ||
| } | ||
| } | ||
| }, | ||
| "required": [ | ||
| "name", | ||
| "tier" | ||
| ], | ||
| "description": "Sku information related properties of a server." | ||
| }, | ||
| "CloudError": { | ||
| "x-ms-external": true, | ||
| "properties": { | ||
| "error": { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" | ||
| } | ||
| }, | ||
| "description": "An error response from the Batch service." | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "LocationNameParameter": { | ||
| "name": "locationName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the location.", | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.