From dc05761dc722824adbdb28b2452ca37ea1b66f7b Mon Sep 17 00:00:00 2001 From: Haoran Hong <88764852+honghr@users.noreply.github.com> Date: Thu, 5 May 2022 11:23:04 +0800 Subject: [PATCH] Revert "[PostgreSQL] Adding a new privatepreview version for fast-provisioning feature (#18700)" This reverts commit 87b55611561add58ab0086f8c442e0bd25a51651. --- .../examples/GetCachedServerName.json | 25 --- .../getCachedServerName.json | 194 ------------------ .../postgresql/resource-manager/readme.go.md | 12 -- .../postgresql/resource-manager/readme.md | 12 -- .../resource-manager/readme.python.md | 11 - .../resource-manager/readme.typescript.md | 12 -- 6 files changed, 266 deletions(-) delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/examples/GetCachedServerName.json delete mode 100644 specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/examples/GetCachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/examples/GetCachedServerName.json deleted file mode 100644 index d0e02d185e08..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/examples/GetCachedServerName.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "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" - } - } - } -} diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json deleted file mode 100644 index 5013b8ea4d72..000000000000 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "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" - } - } -} diff --git a/specification/postgresql/resource-manager/readme.go.md b/specification/postgresql/resource-manager/readme.go.md index feb1a507e359..4fa89809804e 100644 --- a/specification/postgresql/resource-manager/readme.go.md +++ b/specification/postgresql/resource-manager/readme.go.md @@ -37,18 +37,6 @@ batch: - tag: package-2017-12-01 ``` -### Tag: package-flexibleserver-2022-03-privatepreview and go - -These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(go) -rpname: postgresql -namespace: postgresqlflexibleservers -output-folder: $(go-sdk-folder)/services/$(rpname)/mgmt/2022-03-08-privatepreview/$(namespace) -``` - - ### Tag: package-flexibleserver-2021-06 and go These settings apply only when `--tag=package-flexibleserver-2021-06 --go` is specified on the command line. diff --git a/specification/postgresql/resource-manager/readme.md b/specification/postgresql/resource-manager/readme.md index 48fa267d854c..e28f0b54666a 100644 --- a/specification/postgresql/resource-manager/readme.md +++ b/specification/postgresql/resource-manager/readme.md @@ -37,18 +37,6 @@ tag: package-flexibleserver-2021-06 tag: package-2020-01-01 ``` -### Tag: package-flexibleserver-2022-03-privatepreview - -These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview` is specified on the command line. - -``` yaml $(tag) == 'flexibleserver-2022-03-privatepreview' -input-file: -- Microsoft.DBforPostgreSQL/preview/2022-03-08-privatepreview/getCachedServerName.json -- Microsoft.DBforPostgreSQL/stable/2021-06-01/postgresql.json -- Microsoft.DBforPostgreSQL/stable/2021-06-01/Databases.json -- Microsoft.DBforPostgreSQL/stable/2021-06-01/PrivateDnsZone.json -``` - ### Tag: package-2021-06-15-privatepreview These settings apply only when `--tag=package-2021-06-15-privatepreview` is specified on the command line. diff --git a/specification/postgresql/resource-manager/readme.python.md b/specification/postgresql/resource-manager/readme.python.md index 5794491877d2..693eaecf5d0a 100644 --- a/specification/postgresql/resource-manager/readme.python.md +++ b/specification/postgresql/resource-manager/readme.python.md @@ -22,17 +22,6 @@ batch: - tag: package-2020-01-01 ``` -### Tag: package-flexibleserver-2022-03-privatepreview and python - -These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(python) -namespace: azure.mgmt.rdbms.postgresql_flexibleservers -output-folder: $(python-sdks-folder)/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers -``` - - ### Tag: package-flexibleserver-2021-06 and python These settings apply only when `--tag=package-flexibleserver-2021-06 --python` is specified on the command line. diff --git a/specification/postgresql/resource-manager/readme.typescript.md b/specification/postgresql/resource-manager/readme.typescript.md index 663370914219..7d68b207f724 100644 --- a/specification/postgresql/resource-manager/readme.typescript.md +++ b/specification/postgresql/resource-manager/readme.typescript.md @@ -9,18 +9,6 @@ typescript: generate-metadata: true ``` -### Tag: package-flexibleserver-2022-03-privatepreview and TypeScript - -These settings apply only when `--tag=package-flexibleserver-2022-03-privatepreview --typescript` is specified on the command line. -Please also specify `--typescript-sdks-folder=`. - -``` yaml $(tag) == 'package-flexibleserver-2022-03-privatepreview' && $(typescript) -title: PostgreSQLManagementFlexibleServerClient -package-name: "@azure/arm-postgresql-flexible" -output-folder: "$(typescript-sdks-folder)/sdk/postgresql/arm-postgresql-flexible/" -``` - - ### Tag: package-flexibleserver-2021-06 and TypeScript These settings apply only when `--tag=package-flexibleserver-2021-06 --typescript` is specified on the command line.