From b72eb6c3fe8dc2eef7eeaa2e2a32aaf7a841e6b0 Mon Sep 17 00:00:00 2001 From: Teddy Date: Wed, 18 Aug 2021 12:41:49 -0400 Subject: [PATCH] move to verbatim definition of Sku, as suggested by Azure/autorest#4262 --- .../stable/2021-10-01/mfe.json | 40 ++++++++++++++++--- 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json index c2f7c794df6a..39d2aef270c4 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-10-01/mfe.json @@ -5420,7 +5420,7 @@ }, "sku": { "description": "Sku details required for ARM contract for Autoscaling.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Sku", + "$ref": "#/definitions/Sku", "x-nullable": true }, "systemData": { @@ -5552,7 +5552,7 @@ }, "sku": { "description": "Sku details required for ARM contract for Autoscaling.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Sku", + "$ref": "#/definitions/Sku", "x-nullable": true }, "systemData": { @@ -8380,7 +8380,7 @@ }, "sku": { "description": "Sku details required for ARM contract for Autoscaling.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Sku", + "$ref": "#/definitions/Sku", "x-nullable": true }, "systemData": { @@ -8524,7 +8524,7 @@ }, "sku": { "description": "Sku details required for ARM contract for Autoscaling.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Sku", + "$ref": "#/definitions/Sku", "x-nullable": true }, "systemData": { @@ -9590,6 +9590,35 @@ "x-ms-discriminator-value": "ServicePrincipal", "additionalProperties": false }, + "Sku": { + "description": "The resource model definition representing SKU", + "required": [ + "name" + ], + "type": "object", + "properties": { + "capacity": { + "format": "int32", + "description": "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + "type": "integer" + }, + "family": { + "description": "If the service has different generations of hardware, for the same SKU, then that can be captured here.", + "type": "string" + }, + "name": { + "description": "The name of the SKU. Ex - P3. It is typically a letter+number code", + "type": "string" + }, + "size": { + "description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + "type": "string" + }, + "tier": { + "$ref": "#/definitions/SkuTier" + } + } + }, "SkuCapacity": { "description": "SKU capacity information", "type": "object", @@ -9661,8 +9690,7 @@ "x-ms-enum": { "name": "SkuTier", "modelAsString": false - }, - "additionalProperties": false + } }, "SweepJob": { "description": "Sweep job definition.",