From d83abb3a31b96cf1126337a6a582c3a0f024ce4e Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 1 Nov 2022 08:53:24 +0000 Subject: [PATCH] CodeGen from PR 21234 in Azure/azure-rest-api-specs Fixes to 2022-03-08-preview for PostgreSQL flexible server (#21234) * Add 202 response to server create and fix Sku definition * Add 202 response to examples --- .../Microsoft.DBforPostgreSQL.json | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json b/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json index 7afecc8c7c..c89883bc16 100644 --- a/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json +++ b/schemas/2022-03-08-preview/Microsoft.DBforPostgreSQL.json @@ -75,7 +75,7 @@ "sku": { "oneOf": [ { - "$ref": "#/definitions/PostgreSqlSku" + "$ref": "#/definitions/Sku" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -777,36 +777,6 @@ }, "description": "Network properties of a server" }, - "PostgreSqlSku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." - }, - "tier": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Burstable", - "GeneralPurpose", - "MemoryOptimized" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tier of the particular SKU, e.g. Burstable." - } - }, - "required": [ - "name", - "tier" - ], - "description": "Sku information related properties of a server." - }, "ServerProperties": { "type": "object", "properties": { @@ -980,6 +950,36 @@ }, "description": "The properties of a server." }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3." + }, + "tier": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Burstable", + "GeneralPurpose", + "MemoryOptimized" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The tier of the particular SKU, e.g. Burstable." + } + }, + "required": [ + "name", + "tier" + ], + "description": "Sku information related properties of a server." + }, "Storage": { "type": "object", "properties": {