From b9cff2e05886bb1760092f3c460706c49fa5296f Mon Sep 17 00:00:00 2001 From: Todd Moscinski Date: Mon, 23 Aug 2021 11:08:34 -0700 Subject: [PATCH] Small changes to make to reduce the number of breaking changes. --- .../stable/2021-07-01/reservations.json | 52 +++++++++++++++++-- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/reservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/reservations.json index 0d1650740891..ff6b9e4c62f6 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/reservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/reservations.json @@ -923,7 +923,8 @@ "FulfillmentOutOfStockError", "FulfillmentTransientError", "FulfillmentError", - "CalculatePriceFailed" + "CalculatePriceFailed", + "AppliedScopesSameAsExisting" ], "x-ms-enum": { "name": "ErrorResponseCode", @@ -956,7 +957,10 @@ "Swapped", "PendingRefunds", "Exchanged", - "PendingRefundCollection" + "PendingRefundCollection", + "PendingResourceHold", + "ConfirmedResourceHold", + "Split" ] }, "ReservedResourceType": { @@ -1232,6 +1236,36 @@ "items": { "$ref": "#/definitions/SkuRestriction" } + }, + "tier": { + "type": "string", + "description": "The tier of this SKU", + "readOnly": true + }, + "size": { + "type": "string", + "description": "The size of this SKU", + "readOnly": true + }, + "capabilities": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SkuCapability" + } + } + } + }, + "SkuCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "An invariant to describe the feature." + }, + "value": { + "type": "string", + "description": "An invariant if the feature is measured by quantity." } } }, @@ -1501,7 +1535,6 @@ "properties": { "location": { "type": "string", - "readOnly": true, "description": "The Azure Region where the reserved resource lives." }, "etag": { @@ -1531,6 +1564,17 @@ "readOnly": true, "description": "Type of resource. \"Microsoft.Capacity/reservationOrders/reservations\"" }, + "kind": { + "type": "string", + "description": "Resource Provider type to be reserved.", + "enum": [ + "Microsoft.Compute" + ], + "x-ms-enum": { + "name": "Kind", + "modelAsString": false + } + }, "systemData": { "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/systemData", "readOnly": true @@ -2767,7 +2811,7 @@ "name": "reservedResourceType", "x-ms-parameter-location": "method", "in": "query", - "required": true, + "required": false, "type": "string", "description": "The type of the resource for which the skus should be provided." },