-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linter issue and add fast provisioning properties
- Loading branch information
Showing
7 changed files
with
250 additions
and
3 deletions.
There are no files selected for viewing
146 changes: 146 additions & 0 deletions
146
...source-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/CachedServerName.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,146 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2022-03-08-preview", | ||
"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/CachedServerName.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": "FlexibleServers.json#/definitions/ServerVersion", | ||
"description": "PostgreSQL Server version." | ||
}, | ||
"storage": { | ||
"$ref": "FlexibleServers.json#/definitions/Storage", | ||
"default": null, | ||
"description": "Storage properties of a server." | ||
}, | ||
"sku": { | ||
"$ref": "FlexibleServers.json#/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" | ||
}, | ||
"CloudError": { | ||
"type": "object", | ||
"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
25 changes: 25 additions & 0 deletions
25
...nager/Microsoft.DBforPostgreSQL/preview/2022-03-08-preview/examples/CachedServerName.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-preview", | ||
"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" | ||
} | ||
} | ||
} | ||
} |
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