forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PostgreSQL] Adding a new privatepreview version for fast-provisionin…
…g feature (Azure#18700) * add new files * Add getCachedServerName API * location capability property update * revert the wrong change * Add new line and change formats * fix ci issue * Remove example file * Re-add example file * Added readme files * Add location name * Add definitions for required parameters * Run prettier and handle model validation isue * Remove additional property * prettier run again
- Loading branch information
1 parent
14ec424
commit ae8178a
Showing
6 changed files
with
266 additions
and
0 deletions.
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 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 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 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
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