diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetAppliedReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetAppliedReservations.json index 532bb9b87375..92a00d31b3ba 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetAppliedReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetAppliedReservations.json @@ -11,22 +11,24 @@ "name": "default", "properties": { "reservationOrderIds": { - "value": ["/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7", - "/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac", - "/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a", - "/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901", - "/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f", - "/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928", - "/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8", - "/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b", - "/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db", - "/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6", - "/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3", - "/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e", - "/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723"] + "value": [ + "/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7", + "/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac", + "/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a", + "/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901", + "/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f", + "/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928", + "/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8", + "/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b", + "/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db", + "/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6", + "/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3", + "/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e", + "/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723" + ] } } } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetCatalog.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetCatalog.json index 510a98533c34..d56466537ef2 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetCatalog.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetCatalog.json @@ -8,131 +8,131 @@ "responses": { "200": { "body": [ - { - "resourceType": "VirtualMachines", - "name": "Standard_DS5_v2", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "skuProperties": [ - { - "name": "Cores", - "value": "16" - }, - { - "name": "ProductTitle", - "value": "DSv2 Series, DS5" - }, - { - "name": "ProductShortName", - "value": "DSv2 Series" - }, - { - "name": "SKUName", - "value": "DS5 v2" - }, - { - "name": "MeterId", - "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" - } - ], - "restrictions": [] - }, - { - "resourceType": "VirtualMachines", - "name": "Standard_D1", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "skuProperties": [ - { - "name": "Cores", - "value": "1" - }, - { - "name": "ProductTitle", - "value": "D Series, D1" - }, - { - "name": "ProductShortName", - "value": "D Series" - }, - { - "name": "SKUName", - "value": "D1" - }, - { - "name": "MeterId", - "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" - } - ], - "restrictions": [ - { - "type": "Term", - "values": [ - "P1Y" - ], - "reasonCode": "NotAvailableForSubscription" - }, - { - "type": "Term", - "values": [ - "P3Y" - ], - "reasonCode": "NotAvailableForSubscription" - } - ] - }, - { - "resourceType": "VirtualMachines", - "name": "Standard_F2", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "skuProperties": [ - { - "name": "Cores", - "value": "2" - }, - { - "name": "ProductTitle", - "value": "F Series, F2" - }, - { - "name": "ProductShortName", - "value": "F Series" - }, - { - "name": "SKUName", - "value": "F2" - }, - { - "name": "MeterId", - "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" - } - ], - "restrictions": [ - { - "type": "Location", - "values": [ - "eastus" - ], - "reasonCode": "NotAvailableForSubscription" - } - ] - } + { + "resourceType": "VirtualMachines", + "name": "Standard_DS5_v2", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "skuProperties": [ + { + "name": "Cores", + "value": "16" + }, + { + "name": "ProductTitle", + "value": "DSv2 Series, DS5" + }, + { + "name": "ProductShortName", + "value": "DSv2 Series" + }, + { + "name": "SKUName", + "value": "DS5 v2" + }, + { + "name": "MeterId", + "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" + } + ], + "restrictions": [] + }, + { + "resourceType": "VirtualMachines", + "name": "Standard_D1", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "skuProperties": [ + { + "name": "Cores", + "value": "1" + }, + { + "name": "ProductTitle", + "value": "D Series, D1" + }, + { + "name": "ProductShortName", + "value": "D Series" + }, + { + "name": "SKUName", + "value": "D1" + }, + { + "name": "MeterId", + "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" + } + ], + "restrictions": [ + { + "type": "Term", + "values": [ + "P1Y" + ], + "reasonCode": "NotAvailableForSubscription" + }, + { + "type": "Term", + "values": [ + "P3Y" + ], + "reasonCode": "NotAvailableForSubscription" + } + ] + }, + { + "resourceType": "VirtualMachines", + "name": "Standard_F2", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "skuProperties": [ + { + "name": "Cores", + "value": "2" + }, + { + "name": "ProductTitle", + "value": "F Series, F2" + }, + { + "name": "ProductShortName", + "value": "F Series" + }, + { + "name": "SKUName", + "value": "F2" + }, + { + "name": "MeterId", + "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" + } + ], + "restrictions": [ + { + "type": "Location", + "values": [ + "eastus" + ], + "reasonCode": "NotAvailableForSubscription" + } + ] + } ] } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetOperations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetOperations.json index fda153ecb9f5..ae0c88a3db77 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetOperations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetOperations.json @@ -100,4 +100,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationDetails.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationDetails.json index e0bf03027d2b..c186e6163b0c 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationDetails.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationDetails.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationOrderDetails.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationOrderDetails.json index 94b626777fff..e047cc2488c0 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationOrderDetails.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationOrderDetails.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationOrders.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationOrders.json index 5b592379574f..38bc4756170e 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationOrders.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationOrders.json @@ -71,4 +71,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationRevisions.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationRevisions.json index a5e54e7eb437..1f8c6e343e0a 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationRevisions.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservationRevisions.json @@ -137,4 +137,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservations.json index e9b8b143be15..31760d2881c1 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/GetReservations.json @@ -147,4 +147,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/MergeReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/MergeReservations.json index 3bff75d5b14c..efcab0724b59 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/MergeReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/MergeReservations.json @@ -3,7 +3,7 @@ "api-version": "2018-06-01", "reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", "body": { - "properties" : { + "properties": { "sources": [ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/cea04232-932e-47db-acb5-e29a945ecc73", "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/5bf54dc7-dacd-4f46-a16b-7b78f4a59799" @@ -117,8 +117,8 @@ } ] }, - "202" : { + "202": { "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/SplitReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/SplitReservation.json index 7143885c917d..c5daae4af77b 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/SplitReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/SplitReservation.json @@ -108,8 +108,8 @@ } ] }, - "202" : { + "202": { "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/UpdateReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/UpdateReservation.json index dcab173ae0dd..0447a109d142 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/UpdateReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/examples/UpdateReservation.json @@ -4,7 +4,7 @@ "reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", "reservationId": "6ef59113-3482-40da-8d79-787f823e34bc", "parameters": { - "properties" : { + "properties": { "appliedScopeType": "Shared", "instanceFlexibility": "Off" } @@ -45,4 +45,4 @@ "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/reservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/reservations.json index dcc7cf11bcfc..9afdd0af9a91 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/reservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2018-06-01/reservations.json @@ -1,1223 +1,1223 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Reservation API", - "description": "This API describe Azure Reservation", - "version": "2018-06-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "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" + "swagger": "2.0", + "info": { + "title": "Azure Reservation API", + "description": "This API describe Azure Reservation", + "version": "2018-06-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "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}/providers/Microsoft.Capacity/catalogs": { + "get": { + "summary": "Get the regions and skus that are available for RI purchase for the specified Azure subscription.", + "operationId": "GetCatalog", + "x-ms-examples": { + "Catalog": { + "$ref": "./examples/GetCatalog.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ReservedResourceTypeIdParameter" + }, + { + "$ref": "#/parameters/LocationIdParameter" + } + ], + "tags": [ + "Catalog" + ], + "responses": { + "200": { + "description": "List of available resources", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Catalog" + } } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } } + } }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs": { - "get": { - "summary": "Get the regions and skus that are available for RI purchase for the specified Azure subscription.", - "operationId": "GetCatalog", - "x-ms-examples": { - "Catalog": { - "$ref": "./examples/GetCatalog.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ReservedResourceTypeIdParameter" - }, - { - "$ref": "#/parameters/LocationIdParameter" - } - ], - "tags": [ - "Catalog" - ], - "responses": { - "200": { - "description": "List of available resources", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Catalog" - } - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - } + "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations": { + "get": { + "summary": "Get list of applicable `Reservation`s.", + "description": "Get applicable `Reservation`s that are applied to this subscription.", + "operationId": "GetAppliedReservationList", + "x-ms-examples": { + "AppliedReservationList": { + "$ref": "./examples/GetAppliedReservations.json" + } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations": { - "get": { - "summary": "Get list of applicable `Reservation`s.", - "description": "Get applicable `Reservation`s that are applied to this subscription.", - "operationId": "GetAppliedReservationList", - "x-ms-examples": { - "AppliedReservationList": { - "$ref": "./examples/GetAppliedReservations.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "tags": [ - "AppliedReservation" - ], - "responses": { - "200": { - "description": "Applicable `Reservation`s.", - "schema": { - "$ref": "#/definitions/AppliedReservations" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "tags": [ + "AppliedReservation" + ], + "responses": { + "200": { + "description": "Applicable `Reservation`s.", + "schema": { + "$ref": "#/definitions/AppliedReservations" } - }, - "/providers/Microsoft.Capacity/reservationOrders": { - "get": { - "summary": "Get all `ReservationOrder`s.", - "description": "List of all the `ReservationOrder`s that the user has access to in the current tenant.", - "operationId": "ReservationOrder_List", - "x-ms-examples": { - "ReservationOrderList": { - "$ref": "./examples/GetReservationOrders.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "List of `ReservationOrder`s", - "schema": { - "$ref": "#/definitions/ReservationOrderList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders": { + "get": { + "summary": "Get all `ReservationOrder`s.", + "description": "List of all the `ReservationOrder`s that the user has access to in the current tenant.", + "operationId": "ReservationOrder_List", + "x-ms-examples": { + "ReservationOrderList": { + "$ref": "./examples/GetReservationOrders.json" + } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}": { - "get": { - "summary": "Get a specific `ReservationOrder`.", - "description": "Get the details of the `ReservationOrder`.", - "operationId": "ReservationOrder_Get", - "x-ms-examples": { - "GetReservation": { - "$ref": "./examples/GetReservationOrderDetails.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "Get the details of the `ReservationOrder`.", - "schema": { - "$ref": "#/definitions/ReservationOrderResponse" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - } + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split": { - "post": { - "summary": "Split the `Reservation`.", - "description": "Split a `Reservation` into two `Reservation`s with specified quantity distribution.\n", - "operationId": "Reservation_Split", - "x-ms-examples": { - "Split": { - "$ref": "./examples/SplitReservation.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SplitParameter" - } - ], - "tags": [ - "Reservation, Split" - ], - "responses": { - "200": { - "description": "List of `Reservation`s created after the split operation.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationResponse" - } - } - }, - "202": { - "description": "The request is accepted and is being processed" - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List of `ReservationOrder`s", + "schema": { + "$ref": "#/definitions/ReservationOrderList" } - }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge": { - "post": { - "summary": "Merges two `Reservation`s.", - "description": "Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.", - "operationId": "Reservation_Merge", - "x-ms-examples": { - "Merge": { - "$ref": "./examples/MergeReservations.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MergeParameter" - } - ], - "tags": [ - "Reservation, Merge" - ], - "responses": { - "200": { - "description": "Returns the `Reservation` created after the merge.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationResponse" - } - } - }, - "202": { - "description": "The request is accepted and is being processed" - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}": { + "get": { + "summary": "Get a specific `ReservationOrder`.", + "description": "Get the details of the `ReservationOrder`.", + "operationId": "ReservationOrder_Get", + "x-ms-examples": { + "GetReservation": { + "$ref": "./examples/GetReservationOrderDetails.json" + } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations": { - "get": { - "summary": "Get `Reservation`s in a given reservation Order", - "description": "List `Reservation`s within a single `ReservationOrder`.", - "operationId": "Reservation_List", - "x-ms-examples": { - "ReservationList": { - "$ref": "./examples/GetReservations.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "List `Reservation`s within a single `ReservationOrder`.", - "schema": { - "$ref": "#/definitions/ReservationList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "Get the details of the `ReservationOrder`.", + "schema": { + "$ref": "#/definitions/ReservationOrderResponse" } - }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}": { - "get": { - "summary": "Get `Reservation` details.", - "description": "Get specific `Reservation` details.", - "operationId": "Reservation_Get", - "x-ms-examples": { - "GetReservation": { - "$ref": "./examples/GetReservationDetails.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ReservationIdParameter" - }, - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "Get `Reservation` details.", - "schema": { - "$ref": "#/definitions/ReservationResponse" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "patch": { - "summary": "Updates a `Reservation`.", - "description": "Updates the applied scopes of the `Reservation`.", - "operationId": "Reservation_Update", - "x-ms-examples": { - "PatchReservation": { - "$ref": "./examples/UpdateReservation.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ReservationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/PatchParameter" - } - ], - "tags": [ - "Reservation", - "ApplyScope" - ], - "responses": { - "200": { - "description": "Returns the updated `Reservation`.", - "schema": { - "$ref": "#/definitions/ReservationResponse" - } - }, - "202": { - "description": "The request is accepted and is being processed" - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split": { + "post": { + "summary": "Split the `Reservation`.", + "description": "Split a `Reservation` into two `Reservation`s with specified quantity distribution.\n", + "operationId": "Reservation_Split", + "x-ms-examples": { + "Split": { + "$ref": "./examples/SplitReservation.json" + } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions": { - "get": { - "summary": "Get `Reservation` revisions.", - "description": "List of all the revisions for the `Reservation`.\n", - "operationId": "Reservation_ListRevisions", - "x-ms-examples": { - "ReservationRevisions": { - "$ref": "./examples/GetReservationRevisions.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "#/parameters/ReservationIdParameter" - }, - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "List of all the revisions for the `Reservation`.", - "schema": { - "$ref": "#/definitions/ReservationList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SplitParameter" + } + ], + "tags": [ + "Reservation, Split" + ], + "responses": { + "200": { + "description": "List of `Reservation`s created after the split operation.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" + } } - }, - "/providers/Microsoft.Capacity/operations": { - "get": { - "summary": "Get operations.", - "description": "List all the operations.", - "operationId": "Operation_List", - "x-ms-examples": { - "GetOperations": { - "$ref": "./examples/GetOperations.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Operation" - ], - "responses": { - "200": { - "description": "List all the operations.", - "schema": { - "$ref": "#/definitions/OperationList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "202": { + "description": "The request is accepted and is being processed" + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } } + } }, - "definitions": { - "ReservationStatusCode": { - "type": "string", - "enum": [ - "None", - "Pending", - "Active", - "PurchaseError", - "PaymentInstrumentError", - "Split", - "Merged", - "Expired", - "Succeeded" - ], - "x-ms-enum": { - "name": "ReservationStatusCode", - "modelAsString": true - } + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge": { + "post": { + "summary": "Merges two `Reservation`s.", + "description": "Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.", + "operationId": "Reservation_Merge", + "x-ms-examples": { + "Merge": { + "$ref": "./examples/MergeReservations.json" + } }, - "ErrorResponseCode": { - "type": "string", - "enum": [ - "NotSpecified", - "InternalServerError", - "ServerTimeout", - "AuthorizationFailed", - "BadRequest", - "ClientCertificateThumbprintNotSet", - "InvalidRequestContent", - "OperationFailed", - "HttpMethodNotSupported", - "InvalidRequestUri", - "MissingTenantId", - "InvalidTenantId", - "InvalidReservationOrderId", - "InvalidReservationId", - "ReservationIdNotInReservationOrder", - "ReservationOrderNotFound", - "InvalidSubscriptionId", - "InvalidAccessToken", - "InvalidLocationId", - "UnauthenticatedRequestsThrottled", - "InvalidHealthCheckType", - "Forbidden", - "BillingScopeIdCannotBeChanged", - "AppliedScopesNotAssociatedWithCommerceAccount", - "PatchValuesSameAsExisting", - "RoleAssignmentCreationFailed", - "ReservationOrderCreationFailed", - "ReservationOrderNotEnabled", - "CapacityUpdateScopesFailed", - "UnsupportedReservationTerm", - "ReservationOrderIdAlreadyExists", - "RiskCheckFailed", - "CreateQuoteFailed", - "ActivateQuoteFailed", - "NonsupportedAccountId", - "PaymentInstrumentNotFound", - "MissingAppliedScopesForSingle", - "NoValidReservationsToReRate", - "ReRateOnlyAllowedForEA", - "OperationCannotBePerformedInCurrentState", - "InvalidSingleAppliedScopesCount", - "InvalidFulfillmentRequestParameters", - "NotSupportedCountry", - "InvalidRefundQuantity", - "PurchaseError", - "BillingCustomerInputError", - "BillingPaymentInstrumentSoftError", - "BillingPaymentInstrumentHardError", - "BillingTransientError", - "BillingError", - "FulfillmentConfigurationError", - "FulfillmentOutOfStockError", - "FulfillmentTransientError", - "FulfillmentError", - "CalculatePriceFailed" - ], - "x-ms-enum": { - "name": "ErrorResponseCode", - "modelAsString": true + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MergeParameter" + } + ], + "tags": [ + "Reservation, Merge" + ], + "responses": { + "200": { + "description": "Returns the `Reservation` created after the merge.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" + } + } + }, + "202": { + "description": "The request is accepted and is being processed" + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations": { + "get": { + "summary": "Get `Reservation`s in a given reservation Order", + "description": "List `Reservation`s within a single `ReservationOrder`.", + "operationId": "Reservation_List", + "x-ms-examples": { + "ReservationList": { + "$ref": "./examples/GetReservations.json" + } }, - "SkuName": { - "type": "object", - "properties": { - "name": { - "type": "string" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List `Reservation`s within a single `ReservationOrder`.", + "schema": { + "$ref": "#/definitions/ReservationList" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}": { + "get": { + "summary": "Get `Reservation` details.", + "description": "Get specific `Reservation` details.", + "operationId": "Reservation_Get", + "x-ms-examples": { + "GetReservation": { + "$ref": "./examples/GetReservationDetails.json" + } }, - "Catalog": { - "type": "object", - "properties": { - "resourceType": { - "type": "string", - "description": "The type of resource the SKU applies to.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The name of SKU", - "readOnly": true - }, - "terms": { - "type": "array", - "readOnly": true, - "description": "Available reservation terms for this resource", - "items": { - "$ref": "#/definitions/ReservationTerm" - } - }, - "locations": { - "type": "array", - "readOnly": true, - "items": { - "type": "string", - "description": "The set of locations that the SKU is available. If not specified, the SKU is available in all locations." - } - }, - "skuProperties": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SkuProperty" - } - }, - "restrictions": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SkuRestriction" - } - } + "parameters": [ + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "Get `Reservation` details.", + "schema": { + "$ref": "#/definitions/ReservationResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + }, + "patch": { + "summary": "Updates a `Reservation`.", + "description": "Updates the applied scopes of the `Reservation`.", + "operationId": "Reservation_Update", + "x-ms-examples": { + "PatchReservation": { + "$ref": "./examples/UpdateReservation.json" + } }, - "SkuProperty": { - "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." - } + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PatchParameter" + } + ], + "tags": [ + "Reservation", + "ApplyScope" + ], + "responses": { + "200": { + "description": "Returns the updated `Reservation`.", + "schema": { + "$ref": "#/definitions/ReservationResponse" + } + }, + "202": { + "description": "The request is accepted and is being processed" + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions": { + "get": { + "summary": "Get `Reservation` revisions.", + "description": "List of all the revisions for the `Reservation`.\n", + "operationId": "Reservation_ListRevisions", + "x-ms-examples": { + "ReservationRevisions": { + "$ref": "./examples/GetReservationRevisions.json" + } }, - "SkuRestriction": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The type of restrictions." - }, - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted." - }, - "reasonCode": { - "type": "string", - "description": "The reason for restriction." - } + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List of all the revisions for the `Reservation`.", + "schema": { + "$ref": "#/definitions/ReservationList" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/operations": { + "get": { + "summary": "Get operations.", + "description": "List all the operations.", + "operationId": "Operation_List", + "x-ms-examples": { + "GetOperations": { + "$ref": "./examples/GetOperations.json" + } }, - "ReservationOrderResponse": { - "type": "object", - "x-ms-azure-resource": true, - "properties": { - "etag": { - "type": "integer" - }, - "id": { - "type": "string", - "readOnly": true, - "description": "Identifier of the reservation" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Name of the reservation" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ReservationOrderProperties" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Type of resource. \"Microsoft.Capacity/reservations\"" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Operation" + ], + "responses": { + "200": { + "description": "List all the operations.", + "schema": { + "$ref": "#/definitions/OperationList" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + } + }, + "definitions": { + "ReservationStatusCode": { + "type": "string", + "enum": [ + "None", + "Pending", + "Active", + "PurchaseError", + "PaymentInstrumentError", + "Split", + "Merged", + "Expired", + "Succeeded" + ], + "x-ms-enum": { + "name": "ReservationStatusCode", + "modelAsString": true + } + }, + "ErrorResponseCode": { + "type": "string", + "enum": [ + "NotSpecified", + "InternalServerError", + "ServerTimeout", + "AuthorizationFailed", + "BadRequest", + "ClientCertificateThumbprintNotSet", + "InvalidRequestContent", + "OperationFailed", + "HttpMethodNotSupported", + "InvalidRequestUri", + "MissingTenantId", + "InvalidTenantId", + "InvalidReservationOrderId", + "InvalidReservationId", + "ReservationIdNotInReservationOrder", + "ReservationOrderNotFound", + "InvalidSubscriptionId", + "InvalidAccessToken", + "InvalidLocationId", + "UnauthenticatedRequestsThrottled", + "InvalidHealthCheckType", + "Forbidden", + "BillingScopeIdCannotBeChanged", + "AppliedScopesNotAssociatedWithCommerceAccount", + "PatchValuesSameAsExisting", + "RoleAssignmentCreationFailed", + "ReservationOrderCreationFailed", + "ReservationOrderNotEnabled", + "CapacityUpdateScopesFailed", + "UnsupportedReservationTerm", + "ReservationOrderIdAlreadyExists", + "RiskCheckFailed", + "CreateQuoteFailed", + "ActivateQuoteFailed", + "NonsupportedAccountId", + "PaymentInstrumentNotFound", + "MissingAppliedScopesForSingle", + "NoValidReservationsToReRate", + "ReRateOnlyAllowedForEA", + "OperationCannotBePerformedInCurrentState", + "InvalidSingleAppliedScopesCount", + "InvalidFulfillmentRequestParameters", + "NotSupportedCountry", + "InvalidRefundQuantity", + "PurchaseError", + "BillingCustomerInputError", + "BillingPaymentInstrumentSoftError", + "BillingPaymentInstrumentHardError", + "BillingTransientError", + "BillingError", + "FulfillmentConfigurationError", + "FulfillmentOutOfStockError", + "FulfillmentTransientError", + "FulfillmentError", + "CalculatePriceFailed" + ], + "x-ms-enum": { + "name": "ErrorResponseCode", + "modelAsString": true + } + }, + "SkuName": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "Catalog": { + "type": "object", + "properties": { + "resourceType": { + "type": "string", + "description": "The type of resource the SKU applies to.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of SKU", + "readOnly": true + }, + "terms": { + "type": "array", + "readOnly": true, + "description": "Available reservation terms for this resource", + "items": { + "$ref": "#/definitions/ReservationTerm" + } }, - "ReservationTerm": { + "locations": { + "type": "array", + "readOnly": true, + "items": { "type": "string", - "description": "Represent the term of Reservation.", - "enum": [ - "P1Y", - "P3Y" - ], - "x-ms-enum": { - "name": "ReservationTerm", - "modelAsString": true - } + "description": "The set of locations that the SKU is available. If not specified, the SKU is available in all locations." + } }, - "ReservationOrderProperties": { - "type": "object", - "properties": { - "displayName": { - "type": "string", - "description": "Friendly name for user to easily identified the reservation." - }, - "requestDateTime": { - "type": "string", - "format": "date-time", - "description": "This is the DateTime when the reservation was initially requested for purchase." - }, - "createdDateTime": { - "type": "string", - "format": "date-time", - "description": "This is the DateTime when the reservation was created." - }, - "expiryDate": { - "type": "string", - "format": "date", - "description": "This is the date when the Reservation will expire." - }, - "originalQuantity": { - "type": "integer", - "format": "int32", - "description": "Total Quantity of the SKUs purchased in the Reservation." - }, - "term": { - "$ref": "#/definitions/ReservationTerm" - }, - "provisioningState": { - "type": "string", - "description": "Current state of the reservation." - }, - "reservations": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationResponse" - } - } - } + "skuProperties": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SkuProperty" + } }, - "ReservationResponse": { - "type": "object", - "x-ms-azure-resource": true, - "properties": { - "location": { - "type": "string", - "readOnly": true, - "description": "The Azure Region where the reserved resource lives." - }, - "etag": { - "type": "integer" - }, - "id": { - "type": "string", - "readOnly": true, - "description": "Identifier of the reservation" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Name of the reservation" - }, - "sku": { - "$ref": "#/definitions/SkuName" - }, - "properties": { - "$ref": "#/definitions/ReservationProperties" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Type of resource. \"Microsoft.Capacity/reservationOrders/reservations\"" - } - } + "restrictions": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SkuRestriction" + } + } + } + }, + "SkuProperty": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "An invariant to describe the feature." }, - "ReservationProperties": { - "type": "object", - "properties": { - "reservedResourceType": { - "$ref": "#/definitions/ReservedResourceType" - }, - "instanceFlexibility": { - "$ref": "#/definitions/InstanceFlexibility" - }, - "displayName": { - "type": "string", - "description": "Friendly name for user to easily identify the reservation" - }, - "appliedScopes": { - "$ref": "#/definitions/AppliedScopes" - }, - "appliedScopeType": { - "$ref": "#/definitions/AppliedScopeType" - }, - "quantity": { - "type": "integer", - "format": "int32", - "description": "Quantity of the SKUs that are part of the Reservation." - }, - "provisioningState": { - "type": "string", - "description": "Current state of the reservation." - }, - "effectiveDateTime": { - "type": "string", - "format": "date-time", - "description": "DateTime of the Reservation starting when this version is effective from." - }, - "lastUpdatedDateTime": { - "type": "string", - "format": "date-time", - "description": "DateTime of the last time the Reservation was updated.", - "readOnly": true - }, - "expiryDate": { - "type": "string", - "format": "date", - "description": "This is the date when the Reservation will expire." - }, - "skuDescription": { - "type": "string", - "description": "Description of the SKU in english." - }, - "extendedStatusInfo": { - "$ref": "#/definitions/ExtendedStatusInfo" - }, - "splitProperties": { - "$ref": "#/definitions/ReservationSplitProperties" - }, - "mergeProperties": { - "$ref": "#/definitions/ReservationMergeProperties" - } - } + "value": { + "type": "string", + "description": "An invariant if the feature is measured by quantity." + } + } + }, + "SkuRestriction": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of restrictions." }, - "ReservationSplitProperties": { - "type": "object", - "properties": { - "splitDestinations": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - }, - "splitSource": { - "type": "string", - "description": "Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - } - } + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted." }, - "ReservationMergeProperties": { - "type": "object", - "properties": { - "mergeDestination": { - "type": "string", - "description": "Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - }, - "mergeSources": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - } - } + "reasonCode": { + "type": "string", + "description": "The reason for restriction." + } + } + }, + "ReservationOrderResponse": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "etag": { + "type": "integer" }, - "PatchProperties": { - "type": "object", - "properties": { - "appliedScopeType": { - "$ref": "#/definitions/AppliedScopeType" - }, - "appliedScopes": { - "$ref": "#/definitions/AppliedScopes" - }, - "instanceFlexibility": { - "$ref": "#/definitions/InstanceFlexibility" - }, - "name": { - "description": "Name of the Reservation", - "type": "string" - } - } + "id": { + "type": "string", + "readOnly": true, + "description": "Identifier of the reservation" }, - "SplitProperties": { - "type": "object", - "properties": { - "quantities": { - "type": "array", - "description": "List of the quantities in the new reservations to create.", - "items": { - "type": "integer", - "minItems": 2, - "maxItems": 2 - } - }, - "reservationId": { - "type": "string", - "description": "Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the reservation" }, - "MergeProperties": { - "type": "object", - "properties": { - "sources": { - "type": "array", - "description": "Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}", - "items": { - "type": "string" - } - } - } + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationOrderProperties" }, - "MergeRequest": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MergeProperties" - } - } + "type": { + "type": "string", + "readOnly": true, + "description": "Type of resource. \"Microsoft.Capacity/reservations\"" + } + } + }, + "ReservationTerm": { + "type": "string", + "description": "Represent the term of Reservation.", + "enum": [ + "P1Y", + "P3Y" + ], + "x-ms-enum": { + "name": "ReservationTerm", + "modelAsString": true + } + }, + "ReservationOrderProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name for user to easily identified the reservation." }, - "Patch": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PatchProperties" - } - } + "requestDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the reservation was initially requested for purchase." }, - "SplitRequest": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SplitProperties" - } - } + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the reservation was created." }, - "Error": { - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/ExtendedErrorInfo" - } - } + "expiryDate": { + "type": "string", + "format": "date", + "description": "This is the date when the Reservation will expire." }, - "ExtendedErrorInfo": { - "type": "object", - "properties": { - "code": { - "$ref": "#/definitions/ErrorResponseCode" - }, - "message": { - "type": "string" - } - } + "originalQuantity": { + "type": "integer", + "format": "int32", + "description": "Total Quantity of the SKUs purchased in the Reservation." }, - "ExtendedStatusInfo": { - "type": "object", - "properties": { - "statusCode": { - "$ref": "#/definitions/ReservationStatusCode" - }, - "message": { - "type": "string", - "description": "The message giving detailed information about the status code." - } - } + "term": { + "$ref": "#/definitions/ReservationTerm" }, - "ReservationOrderList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationOrderResponse" - } - }, - "nextLink": { - "type": "string", - "description": "Url to get the next page of reservationOrders." - } - } + "provisioningState": { + "type": "string", + "description": "Current state of the reservation." }, - "ReservationList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationResponse" - } - }, - "nextLink": { - "type": "string", - "description": "Url to get the next page of reservations." - } - } + "reservations": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" + } + } + } + }, + "ReservationResponse": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "location": { + "type": "string", + "readOnly": true, + "description": "The Azure Region where the reserved resource lives." }, - "AppliedReservations": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Identifier of the applied reservations", - "readOnly": true - }, - "name": { - "type": "string", - "description": "Name of resource", - "readOnly": true - }, - "type": { - "type": "string", - "description": "Type of resource. \"Microsoft.Capacity/AppliedReservations\"", - "readOnly": true - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AppliedReservationsProperties" - } - } + "etag": { + "type": "integer" }, - "AppliedReservationsProperties": { - "type": "object", - "properties": { - "reservationOrderIds": { - "$ref": "#/definitions/AppliedReservationList" - } - } + "id": { + "type": "string", + "readOnly": true, + "description": "Identifier of the reservation" }, - "AppliedReservationList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "type": "string", - "description": "Reservation resource Id. \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}\"" - } - }, - "nextLink": { - "type": "string", - "description": "Url to get the next page of reservations" - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the reservation" }, - "OperationList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/OperationResponse" - } - }, - "nextLink": { - "type": "string", - "description": "Url to get the next page of items." - } - } + "sku": { + "$ref": "#/definitions/SkuName" }, - "OperationResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "display": { - "$ref": "#/definitions/OperationDisplay" - }, - "origin": { - "type": "string" - } - } + "properties": { + "$ref": "#/definitions/ReservationProperties" }, - "OperationDisplay": { - "type": "object", - "properties": { - "provider": { - "type": "string" - }, - "resource": { - "type": "string" - }, - "operation": { - "type": "string" - }, - "description": { - "type": "string" - } - } + "type": { + "type": "string", + "readOnly": true, + "description": "Type of resource. \"Microsoft.Capacity/reservationOrders/reservations\"" + } + } + }, + "ReservationProperties": { + "type": "object", + "properties": { + "reservedResourceType": { + "$ref": "#/definitions/ReservedResourceType" }, - "InstanceFlexibility": { - "type": "string", - "description": "Allows reservation discount to be applied across skus within the same Autofit group. Not all skus support instance size flexibility.", - "enum": [ - "On", - "Off", - "NotSupported" - ], - "x-ms-enum": { - "name": "InstanceFlexibility", - "modelAsString": true - } + "instanceFlexibility": { + "$ref": "#/definitions/InstanceFlexibility" }, - "AppliedScopeType": { - "type": "string", - "description": "Type of the Applied Scope.", - "enum": [ - "Single", - "Shared" - ], - "x-ms-enum": { - "name": "AppliedScopeType", - "modelAsString": true - } + "displayName": { + "type": "string", + "description": "Friendly name for user to easily identify the reservation" }, - "AppliedScopes": { - "type": "array", - "description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.", - "items": { - "type": "string", - "minItems": 1, - "maxItems": 1 - } + "appliedScopes": { + "$ref": "#/definitions/AppliedScopes" }, - "ReservedResourceType": { - "type": "string", - "description": "The type of the resource that is being reserved.", - "enum": [ - "VirtualMachines", - "SqlDatabases", - "SuseLinux", - "CosmosDb", - "RedHat" - ], - "x-ms-enum": { - "name": "ReservedResourceType", - "modelAsString": true - } + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" + }, + "quantity": { + "type": "integer", + "format": "int32", + "description": "Quantity of the SKUs that are part of the Reservation." + }, + "provisioningState": { + "type": "string", + "description": "Current state of the reservation." + }, + "effectiveDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the Reservation starting when this version is effective from." + }, + "lastUpdatedDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the last time the Reservation was updated.", + "readOnly": true + }, + "expiryDate": { + "type": "string", + "format": "date", + "description": "This is the date when the Reservation will expire." + }, + "skuDescription": { + "type": "string", + "description": "Description of the SKU in english." + }, + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo" + }, + "splitProperties": { + "$ref": "#/definitions/ReservationSplitProperties" + }, + "mergeProperties": { + "$ref": "#/definitions/ReservationMergeProperties" } + } }, - "parameters": { - "ReservationIdParameter": { - "name": "reservationId", - "x-ms-parameter-location": "method", - "in": "path", - "required": true, - "type": "string", - "description": "Id of the Reservation Item" - }, - "MergeParameter": { - "name": "body", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Information needed for commercial request for a reservation", - "schema": { - "$ref": "#/definitions/MergeRequest" - } + "ReservationSplitProperties": { + "type": "object", + "properties": { + "splitDestinations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" }, - "PatchParameter": { - "name": "parameters", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Information needed to patch a reservation item", - "schema": { - "$ref": "#/definitions/Patch" - } + "splitSource": { + "type": "string", + "description": "Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + } + } + }, + "ReservationMergeProperties": { + "type": "object", + "properties": { + "mergeDestination": { + "type": "string", + "description": "Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" }, - "SplitParameter": { - "name": "body", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Information needed to Split a reservation item", - "schema": { - "$ref": "#/definitions/SplitRequest" - } + "mergeSources": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + } + } + }, + "PatchProperties": { + "type": "object", + "properties": { + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" + }, + "appliedScopes": { + "$ref": "#/definitions/AppliedScopes" }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "Supported version.", - "required": true, + "instanceFlexibility": { + "$ref": "#/definitions/InstanceFlexibility" + }, + "name": { + "description": "Name of the Reservation", + "type": "string" + } + } + }, + "SplitProperties": { + "type": "object", + "properties": { + "quantities": { + "type": "array", + "description": "List of the quantities in the new reservations to create.", + "items": { + "type": "integer", + "minItems": 2, + "maxItems": 2 + } + }, + "reservationId": { + "type": "string", + "description": "Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + } + } + }, + "MergeProperties": { + "type": "object", + "properties": { + "sources": { + "type": "array", + "description": "Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}", + "items": { "type": "string" + } + } + } + }, + "MergeRequest": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MergeProperties" + } + } + }, + "Patch": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PatchProperties" + } + } + }, + "SplitRequest": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SplitProperties" + } + } + }, + "Error": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ExtendedErrorInfo" + } + } + }, + "ExtendedErrorInfo": { + "type": "object", + "properties": { + "code": { + "$ref": "#/definitions/ErrorResponseCode" }, - "SubscriptionIdParameter": { - "name": "subscriptionId", - "x-ms-parameter-location": "method", - "in": "path", - "required": true, - "type": "string", - "description": "Id of the subscription" + "message": { + "type": "string" + } + } + }, + "ExtendedStatusInfo": { + "type": "object", + "properties": { + "statusCode": { + "$ref": "#/definitions/ReservationStatusCode" }, - "ReservedResourceTypeIdParameter": { - "name": "reservedResourceType", - "x-ms-parameter-location": "method", - "in": "query", - "required": true, - "type": "string", - "description": "The type of the resource for which the skus should be provided." + "message": { + "type": "string", + "description": "The message giving detailed information about the status code." + } + } + }, + "ReservationOrderList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationOrderResponse" + } }, - "LocationIdParameter": { - "name": "location", - "x-ms-parameter-location": "method", - "in": "query", - "required": false, - "type": "string", - "description": "Filters the skus based on the location specified in this parameter. This can be an azure region or global" + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservationOrders." + } + } + }, + "ReservationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservations." + } + } + }, + "AppliedReservations": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Identifier of the applied reservations", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Name of resource", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of resource. \"Microsoft.Capacity/AppliedReservations\"", + "readOnly": true }, - "ReservationOrderIdParameter": { - "name": "reservationOrderId", - "x-ms-parameter-location": "method", - "in": "path", - "required": true, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AppliedReservationsProperties" + } + } + }, + "AppliedReservationsProperties": { + "type": "object", + "properties": { + "reservationOrderIds": { + "$ref": "#/definitions/AppliedReservationList" + } + } + }, + "AppliedReservationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { "type": "string", - "description": "Order Id of the reservation\n" + "description": "Reservation resource Id. \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}\"" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservations" + } + } + }, + "OperationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationResponse" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of items." + } + } + }, + "OperationResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "origin": { + "type": "string" } + } + }, + "OperationDisplay": { + "type": "object", + "properties": { + "provider": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "operation": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "InstanceFlexibility": { + "type": "string", + "description": "Allows reservation discount to be applied across skus within the same Autofit group. Not all skus support instance size flexibility.", + "enum": [ + "On", + "Off", + "NotSupported" + ], + "x-ms-enum": { + "name": "InstanceFlexibility", + "modelAsString": true + } + }, + "AppliedScopeType": { + "type": "string", + "description": "Type of the Applied Scope.", + "enum": [ + "Single", + "Shared" + ], + "x-ms-enum": { + "name": "AppliedScopeType", + "modelAsString": true + } + }, + "AppliedScopes": { + "type": "array", + "description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.", + "items": { + "type": "string", + "minItems": 1, + "maxItems": 1 + } + }, + "ReservedResourceType": { + "type": "string", + "description": "The type of the resource that is being reserved.", + "enum": [ + "VirtualMachines", + "SqlDatabases", + "SuseLinux", + "CosmosDb", + "RedHat" + ], + "x-ms-enum": { + "name": "ReservedResourceType", + "modelAsString": true + } + } + }, + "parameters": { + "ReservationIdParameter": { + "name": "reservationId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Id of the Reservation Item" + }, + "MergeParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed for commercial request for a reservation", + "schema": { + "$ref": "#/definitions/MergeRequest" + } + }, + "PatchParameter": { + "name": "parameters", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed to patch a reservation item", + "schema": { + "$ref": "#/definitions/Patch" + } + }, + "SplitParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed to Split a reservation item", + "schema": { + "$ref": "#/definitions/SplitRequest" + } + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Supported version.", + "required": true, + "type": "string" + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Id of the subscription" + }, + "ReservedResourceTypeIdParameter": { + "name": "reservedResourceType", + "x-ms-parameter-location": "method", + "in": "query", + "required": true, + "type": "string", + "description": "The type of the resource for which the skus should be provided." + }, + "LocationIdParameter": { + "name": "location", + "x-ms-parameter-location": "method", + "in": "query", + "required": false, + "type": "string", + "description": "Filters the skus based on the location specified in this parameter. This can be an azure region or global" + }, + "ReservationOrderIdParameter": { + "name": "reservationOrderId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Order Id of the reservation\n" } -} \ No newline at end of file + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/CalculateReservationOrder.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/CalculateReservationOrder.json index 2290d72eea0d..340a5e23d8f0 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/CalculateReservationOrder.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/CalculateReservationOrder.json @@ -1,42 +1,42 @@ { - "parameters": { - "api-version": "2019-04-01", - "body": { - "sku": { - "name": "standard_D1" - }, - "location": "westus", - "properties": { - "reservedResourceType": "VirtualMachines", - "billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", - "term": "P1Y", - "quantity": "1", - "displayName": "TestReservationOrder", - "appliedScopes": null, - "appliedScopeType": "Shared", - "reservedResourceProperties": { - "instanceFlexibility": "On" - } - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "billingCurrencyTotal": { - "currencyCode": "USD", - "amount": 466.0 - }, - "reservationOrderId": "6d9cec54-7de8-abcd-9de7-80f5d634f2d2", - "skuTitle": "Reserved VM Instance, Standard_D1, US West, 1 Year", - "skuDescription": "standard_D1", - "pricingCurrencyTotal": { - "currencyCode": "USD", - "amount": 466.0 - } - } - } - } - } -} \ No newline at end of file + "parameters": { + "api-version": "2019-04-01", + "body": { + "sku": { + "name": "standard_D1" + }, + "location": "westus", + "properties": { + "reservedResourceType": "VirtualMachines", + "billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", + "term": "P1Y", + "quantity": "1", + "displayName": "TestReservationOrder", + "appliedScopes": null, + "appliedScopeType": "Shared", + "reservedResourceProperties": { + "instanceFlexibility": "On" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "billingCurrencyTotal": { + "currencyCode": "USD", + "amount": 466.0 + }, + "reservationOrderId": "6d9cec54-7de8-abcd-9de7-80f5d634f2d2", + "skuTitle": "Reserved VM Instance, Standard_D1, US West, 1 Year", + "skuDescription": "standard_D1", + "pricingCurrencyTotal": { + "currencyCode": "USD", + "amount": 466.0 + } + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetAppliedReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetAppliedReservations.json index a7edca1497eb..9b65ea97d1c7 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetAppliedReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetAppliedReservations.json @@ -11,22 +11,24 @@ "name": "default", "properties": { "reservationOrderIds": { - "value": ["/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7", - "/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac", - "/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a", - "/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901", - "/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f", - "/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928", - "/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8", - "/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b", - "/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db", - "/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6", - "/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3", - "/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e", - "/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723"] + "value": [ + "/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7", + "/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac", + "/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a", + "/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901", + "/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f", + "/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928", + "/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8", + "/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b", + "/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db", + "/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6", + "/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3", + "/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e", + "/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723" + ] } } } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetCatalog.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetCatalog.json index fdc84983c796..336b3863dd02 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetCatalog.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetCatalog.json @@ -8,131 +8,131 @@ "responses": { "200": { "body": [ - { - "resourceType": "VirtualMachines", - "name": "Standard_DS5_v2", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "skuProperties": [ - { - "name": "Cores", - "value": "16" - }, - { - "name": "ProductTitle", - "value": "DSv2 Series, DS5" - }, - { - "name": "ProductShortName", - "value": "DSv2 Series" - }, - { - "name": "SKUName", - "value": "DS5 v2" - }, - { - "name": "MeterId", - "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" - } - ], - "restrictions": [] - }, - { - "resourceType": "VirtualMachines", - "name": "Standard_D1", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "skuProperties": [ - { - "name": "Cores", - "value": "1" - }, - { - "name": "ProductTitle", - "value": "D Series, D1" - }, - { - "name": "ProductShortName", - "value": "D Series" - }, - { - "name": "SKUName", - "value": "D1" - }, - { - "name": "MeterId", - "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" - } - ], - "restrictions": [ - { - "type": "Term", - "values": [ - "P1Y" - ], - "reasonCode": "NotAvailableForSubscription" - }, - { - "type": "Term", - "values": [ - "P3Y" - ], - "reasonCode": "NotAvailableForSubscription" - } - ] - }, - { - "resourceType": "VirtualMachines", - "name": "Standard_F2", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "skuProperties": [ - { - "name": "Cores", - "value": "2" - }, - { - "name": "ProductTitle", - "value": "F Series, F2" - }, - { - "name": "ProductShortName", - "value": "F Series" - }, - { - "name": "SKUName", - "value": "F2" - }, - { - "name": "MeterId", - "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" - } - ], - "restrictions": [ - { - "type": "Location", - "values": [ - "eastus" - ], - "reasonCode": "NotAvailableForSubscription" - } - ] - } + { + "resourceType": "VirtualMachines", + "name": "Standard_DS5_v2", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "skuProperties": [ + { + "name": "Cores", + "value": "16" + }, + { + "name": "ProductTitle", + "value": "DSv2 Series, DS5" + }, + { + "name": "ProductShortName", + "value": "DSv2 Series" + }, + { + "name": "SKUName", + "value": "DS5 v2" + }, + { + "name": "MeterId", + "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" + } + ], + "restrictions": [] + }, + { + "resourceType": "VirtualMachines", + "name": "Standard_D1", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "skuProperties": [ + { + "name": "Cores", + "value": "1" + }, + { + "name": "ProductTitle", + "value": "D Series, D1" + }, + { + "name": "ProductShortName", + "value": "D Series" + }, + { + "name": "SKUName", + "value": "D1" + }, + { + "name": "MeterId", + "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" + } + ], + "restrictions": [ + { + "type": "Term", + "values": [ + "P1Y" + ], + "reasonCode": "NotAvailableForSubscription" + }, + { + "type": "Term", + "values": [ + "P3Y" + ], + "reasonCode": "NotAvailableForSubscription" + } + ] + }, + { + "resourceType": "VirtualMachines", + "name": "Standard_F2", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "skuProperties": [ + { + "name": "Cores", + "value": "2" + }, + { + "name": "ProductTitle", + "value": "F Series, F2" + }, + { + "name": "ProductShortName", + "value": "F Series" + }, + { + "name": "SKUName", + "value": "F2" + }, + { + "name": "MeterId", + "value": "12bc208b-083f-4901-ae85-4f98c0c3b4b8" + } + ], + "restrictions": [ + { + "type": "Location", + "values": [ + "eastus" + ], + "reasonCode": "NotAvailableForSubscription" + } + ] + } ] } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetOperations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetOperations.json index 761ca0644f9d..20937ee093e5 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetOperations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetOperations.json @@ -100,4 +100,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json index e6251a2753c0..52d4ce3be960 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationDetails.json @@ -39,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationOrderDetails.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationOrderDetails.json index cdcac65a1b1b..c0cf7b3e07ba 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationOrderDetails.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationOrderDetails.json @@ -27,4 +27,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationOrders.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationOrders.json index 388708507715..9da256509b19 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationOrders.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationOrders.json @@ -71,4 +71,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationRevisions.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationRevisions.json index 173cdb93c740..5d39f4459ce8 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationRevisions.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservationRevisions.json @@ -137,4 +137,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservations.json index 8314b688d143..5745858df555 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/GetReservations.json @@ -147,4 +147,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/MergeReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/MergeReservations.json index eef063de0ab1..ea78ed11b968 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/MergeReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/MergeReservations.json @@ -3,7 +3,7 @@ "api-version": "2019-04-01", "reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", "body": { - "properties" : { + "properties": { "sources": [ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/cea04232-932e-47db-acb5-e29a945ecc73", "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/5bf54dc7-dacd-4f46-a16b-7b78f4a59799" @@ -117,8 +117,8 @@ } ] }, - "202" : { + "202": { "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/PurchaseReservationOrder.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/PurchaseReservationOrder.json index d2d26d537e1b..c13d39b127c2 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/PurchaseReservationOrder.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/PurchaseReservationOrder.json @@ -3,22 +3,22 @@ "api-version": "2019-04-01", "reservationOrderId": "a075419f-44cc-497f-b68a-14ee811d48b9", "body": { - "sku": { - "name": "standard_D1" - }, - "location": "westus", - "properties": { - "reservedResourceType": "VirtualMachines", - "billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", - "term": "P1Y", - "quantity": "1", - "displayName": "TestReservationOrder", - "appliedScopes": null, - "appliedScopeType": "Shared", - "reservedResourceProperties": { - "instanceFlexibility": "On" - } + "sku": { + "name": "standard_D1" + }, + "location": "westus", + "properties": { + "reservedResourceType": "VirtualMachines", + "billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83", + "term": "P1Y", + "quantity": "1", + "displayName": "TestReservationOrder", + "appliedScopes": null, + "appliedScopeType": "Shared", + "reservedResourceProperties": { + "instanceFlexibility": "On" } + } } }, "responses": { @@ -67,4 +67,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/SplitReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/SplitReservation.json index 737b5ddf6d57..281a964f20fe 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/SplitReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/SplitReservation.json @@ -108,8 +108,8 @@ } ] }, - "202" : { + "202": { "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json index 7f39a151283f..5e6625876ed0 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/examples/UpdateReservation.json @@ -4,7 +4,7 @@ "reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", "reservationId": "6ef59113-3482-40da-8d79-787f823e34bc", "parameters": { - "properties" : { + "properties": { "appliedScopeType": "Shared", "instanceFlexibility": "Off" } @@ -45,4 +45,4 @@ "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json index 0fe540dab94d..e4e14bdfd8c3 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-04-01/reservations.json @@ -1,1267 +1,1426 @@ { - "swagger" : "2.0", - "info" : { - "title" : "Azure Reservation API", - "description" : "This API describe Azure Reservation", - "version" : "2019-04-01" + "swagger": "2.0", + "info": { + "title": "Azure Reservation API", + "description": "This API describe Azure Reservation", + "version": "2019-04-01" }, - "host" : "management.azure.com", - "schemes" : [ "https" ], - "produces" : [ "application/json" ], - "consumes" : [ "application/json" ], - "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" + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "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}/providers/Microsoft.Capacity/catalogs" : { - "get" : { - "summary" : "Get the regions and skus that are available for RI purchase for the specified Azure subscription.", - "operationId" : "GetCatalog", - "x-ms-examples" : { - "Catalog" : { - "$ref" : "./examples/GetCatalog.json" + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs": { + "get": { + "summary": "Get the regions and skus that are available for RI purchase for the specified Azure subscription.", + "operationId": "GetCatalog", + "x-ms-examples": { + "Catalog": { + "$ref": "./examples/GetCatalog.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/ApiVersionParameter" - }, { - "$ref" : "#/parameters/SubscriptionIdParameter" - }, { - "$ref" : "#/parameters/ReservedResourceTypeIdParameter" - }, { - "$ref" : "#/parameters/LocationIdParameter" - } ], - "tags" : [ "Catalog" ], - "responses" : { - "200" : { - "description" : "List of available resources", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/Catalog" + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ReservedResourceTypeIdParameter" + }, + { + "$ref": "#/parameters/LocationIdParameter" + } + ], + "tags": [ + "Catalog" + ], + "responses": { + "200": { + "description": "List of available resources", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Catalog" } } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations" : { - "get" : { - "summary" : "Get list of applicable `Reservation`s.", - "description" : "Get applicable `Reservation`s that are applied to this subscription.", - "operationId" : "GetAppliedReservationList", - "x-ms-examples" : { - "AppliedReservationList" : { - "$ref" : "./examples/GetAppliedReservations.json" + "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations": { + "get": { + "summary": "Get list of applicable `Reservation`s.", + "description": "Get applicable `Reservation`s that are applied to this subscription.", + "operationId": "GetAppliedReservationList", + "x-ms-examples": { + "AppliedReservationList": { + "$ref": "./examples/GetAppliedReservations.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/ApiVersionParameter" - }, { - "$ref" : "#/parameters/SubscriptionIdParameter" - } ], - "tags" : [ "AppliedReservation" ], - "responses" : { - "200" : { - "description" : "Applicable `Reservation`s.", - "schema" : { - "$ref" : "#/definitions/AppliedReservations" + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "tags": [ + "AppliedReservation" + ], + "responses": { + "200": { + "description": "Applicable `Reservation`s.", + "schema": { + "$ref": "#/definitions/AppliedReservations" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/calculatePrice" : { - "post" : { - "summary" : "Calculate price for a `ReservationOrder`.", - "description" : "Calculate price for placing a `ReservationOrder`.", - "operationId" : "ReservationOrder_Calculate", - "x-ms-examples" : { - "Purchase" : { - "$ref" : "./examples/CalculateReservationOrder.json" + "/providers/Microsoft.Capacity/calculatePrice": { + "post": { + "summary": "Calculate price for a `ReservationOrder`.", + "description": "Calculate price for placing a `ReservationOrder`.", + "operationId": "ReservationOrder_Calculate", + "x-ms-examples": { + "Purchase": { + "$ref": "./examples/CalculateReservationOrder.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/ApiVersionParameter" - }, { - "$ref" : "#/parameters/PurchaseParameter" - } ], - "tags" : [ "Reservation, Calculate" ], - "responses" : { - "200" : { - "description" : "Detailed price info for purchasing `ReservationOrder`", - "schema" : { - "$ref" : "#/definitions/CalculatePriceResponse" + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PurchaseParameter" + } + ], + "tags": [ + "Reservation, Calculate" + ], + "responses": { + "200": { + "description": "Detailed price info for purchasing `ReservationOrder`", + "schema": { + "$ref": "#/definitions/CalculatePriceResponse" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/reservationOrders" : { - "get" : { - "summary" : "Get all `ReservationOrder`s.", - "description" : "List of all the `ReservationOrder`s that the user has access to in the current tenant.", - "operationId" : "ReservationOrder_List", - "x-ms-examples" : { - "ReservationOrderList" : { - "$ref" : "./examples/GetReservationOrders.json" + "/providers/Microsoft.Capacity/reservationOrders": { + "get": { + "summary": "Get all `ReservationOrder`s.", + "description": "List of all the `ReservationOrder`s that the user has access to in the current tenant.", + "operationId": "ReservationOrder_List", + "x-ms-examples": { + "ReservationOrderList": { + "$ref": "./examples/GetReservationOrders.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" - }, - "parameters" : [ { - "$ref" : "#/parameters/ApiVersionParameter" - } ], - "tags" : [ "Reservation" ], - "responses" : { - "200" : { - "description" : "List of `ReservationOrder`s", - "schema" : { - "$ref" : "#/definitions/ReservationOrderList" + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List of `ReservationOrder`s", + "schema": { + "$ref": "#/definitions/ReservationOrderList" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}" : { - "put" : { - "summary" : "Purchase `ReservationOrder`", - "description" : "Purchase `ReservationOrder` and create resource under the specified URI.", - "operationId" : "ReservationOrder_Purchase", - "x-ms-examples" : { - "Purchase" : { - "$ref" : "./examples/PurchaseReservationOrder.json" + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}": { + "put": { + "summary": "Purchase `ReservationOrder`", + "description": "Purchase `ReservationOrder` and create resource under the specified URI.", + "operationId": "ReservationOrder_Purchase", + "x-ms-examples": { + "Purchase": { + "$ref": "./examples/PurchaseReservationOrder.json" } }, - "x-ms-long-running-operation" : true, - "x-ms-long-running-operation-options" : { - "final-state-via" : "location" - }, - "parameters" : [ { - "$ref" : "#/parameters/ReservationOrderIdParameter" - }, { - "$ref" : "#/parameters/ApiVersionParameter" - }, { - "$ref" : "#/parameters/PurchaseParameter" - } ], - "tags" : [ "Reservation, Purchase" ], - "responses" : { - "200" : { - "description" : "The resource has been created", - "schema" : { - "$ref" : "#/definitions/ReservationOrderResponse" + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PurchaseParameter" + } + ], + "tags": [ + "Reservation, Purchase" + ], + "responses": { + "200": { + "description": "The resource has been created", + "schema": { + "$ref": "#/definitions/ReservationOrderResponse" } }, - "202" : { - "description" : "The request is accepted and is being processed. Operation result link is in location header.", - "schema" : { - "$ref" : "#/definitions/ReservationOrderResponse" + "202": { + "description": "The request is accepted and is being processed. Operation result link is in location header.", + "schema": { + "$ref": "#/definitions/ReservationOrderResponse" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } }, - "get" : { - "summary" : "Get a specific `ReservationOrder`.", - "description" : "Get the details of the `ReservationOrder`.", - "operationId" : "ReservationOrder_Get", - "x-ms-examples" : { - "GetReservation" : { - "$ref" : "./examples/GetReservationOrderDetails.json" + "get": { + "summary": "Get a specific `ReservationOrder`.", + "description": "Get the details of the `ReservationOrder`.", + "operationId": "ReservationOrder_Get", + "x-ms-examples": { + "GetReservation": { + "$ref": "./examples/GetReservationOrderDetails.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/ReservationOrderIdParameter" - }, { - "$ref" : "#/parameters/ApiVersionParameter" - } ], - "tags" : [ "Reservation" ], - "responses" : { - "200" : { - "description" : "Get the details of the `ReservationOrder`.", - "schema" : { - "$ref" : "#/definitions/ReservationOrderResponse" + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "Get the details of the `ReservationOrder`.", + "schema": { + "$ref": "#/definitions/ReservationOrderResponse" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split" : { - "post" : { - "summary" : "Split the `Reservation`.", - "description" : "Split a `Reservation` into two `Reservation`s with specified quantity distribution.", - "operationId" : "Reservation_Split", - "x-ms-examples" : { - "Split" : { - "$ref" : "./examples/SplitReservation.json" + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split": { + "post": { + "summary": "Split the `Reservation`.", + "description": "Split a `Reservation` into two `Reservation`s with specified quantity distribution.", + "operationId": "Reservation_Split", + "x-ms-examples": { + "Split": { + "$ref": "./examples/SplitReservation.json" } }, - "x-ms-long-running-operation" : true, - "parameters" : [ { - "$ref" : "#/parameters/ReservationOrderIdParameter" - }, { - "$ref" : "#/parameters/ApiVersionParameter" - }, { - "$ref" : "#/parameters/SplitParameter" - } ], - "tags" : [ "Reservation, Split" ], - "responses" : { - "200" : { - "description" : "List of `Reservation`s created after the split operation.", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ReservationResponse" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SplitParameter" + } + ], + "tags": [ + "Reservation, Split" + ], + "responses": { + "200": { + "description": "List of `Reservation`s created after the split operation.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" } } }, - "202" : { - "description" : "The request is accepted and is being processed" + "202": { + "description": "The request is accepted and is being processed" }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge" : { - "post" : { - "summary" : "Merges two `Reservation`s.", - "description" : "Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.", - "operationId" : "Reservation_Merge", - "x-ms-examples" : { - "Merge" : { - "$ref" : "./examples/MergeReservations.json" + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge": { + "post": { + "summary": "Merges two `Reservation`s.", + "description": "Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.", + "operationId": "Reservation_Merge", + "x-ms-examples": { + "Merge": { + "$ref": "./examples/MergeReservations.json" } }, - "x-ms-long-running-operation" : true, - "parameters" : [ { - "$ref" : "#/parameters/ReservationOrderIdParameter" - }, { - "$ref" : "#/parameters/ApiVersionParameter" - }, { - "$ref" : "#/parameters/MergeParameter" - } ], - "tags" : [ "Reservation, Merge" ], - "responses" : { - "200" : { - "description" : "Returns the `Reservation` created after the merge.", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ReservationResponse" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MergeParameter" + } + ], + "tags": [ + "Reservation, Merge" + ], + "responses": { + "200": { + "description": "Returns the `Reservation` created after the merge.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" } } }, - "202" : { - "description" : "The request is accepted and is being processed" + "202": { + "description": "The request is accepted and is being processed" }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations" : { - "get" : { - "summary" : "Get `Reservation`s in a given reservation Order", - "description" : "List `Reservation`s within a single `ReservationOrder`.", - "operationId" : "Reservation_List", - "x-ms-examples" : { - "ReservationList" : { - "$ref" : "./examples/GetReservations.json" + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations": { + "get": { + "summary": "Get `Reservation`s in a given reservation Order", + "description": "List `Reservation`s within a single `ReservationOrder`.", + "operationId": "Reservation_List", + "x-ms-examples": { + "ReservationList": { + "$ref": "./examples/GetReservations.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" - }, - "parameters" : [ { - "$ref" : "#/parameters/ReservationOrderIdParameter" - }, { - "$ref" : "#/parameters/ApiVersionParameter" - } ], - "tags" : [ "Reservation" ], - "responses" : { - "200" : { - "description" : "List `Reservation`s within a single `ReservationOrder`.", - "schema" : { - "$ref" : "#/definitions/ReservationList" + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List `Reservation`s within a single `ReservationOrder`.", + "schema": { + "$ref": "#/definitions/ReservationList" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" : { - "get" : { - "summary" : "Get `Reservation` details.", - "description" : "Get specific `Reservation` details.", - "operationId" : "Reservation_Get", - "x-ms-examples" : { - "GetReservation" : { - "$ref" : "./examples/GetReservationDetails.json" + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}": { + "get": { + "summary": "Get `Reservation` details.", + "description": "Get specific `Reservation` details.", + "operationId": "Reservation_Get", + "x-ms-examples": { + "GetReservation": { + "$ref": "./examples/GetReservationDetails.json" } }, - "parameters" : [ { - "$ref" : "#/parameters/ReservationIdParameter" - }, { - "$ref" : "#/parameters/ReservationOrderIdParameter" - }, { - "$ref" : "#/parameters/ApiVersionParameter" - } ], - "tags" : [ "Reservation" ], - "responses" : { - "200" : { - "description" : "Get `Reservation` details.", - "schema" : { - "$ref" : "#/definitions/ReservationResponse" + "parameters": [ + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "Get `Reservation` details.", + "schema": { + "$ref": "#/definitions/ReservationResponse" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } }, - "patch" : { - "summary" : "Updates a `Reservation`.", - "description" : "Updates the applied scopes of the `Reservation`.", - "operationId" : "Reservation_Update", - "x-ms-examples" : { - "PatchReservation" : { - "$ref" : "./examples/UpdateReservation.json" + "patch": { + "summary": "Updates a `Reservation`.", + "description": "Updates the applied scopes of the `Reservation`.", + "operationId": "Reservation_Update", + "x-ms-examples": { + "PatchReservation": { + "$ref": "./examples/UpdateReservation.json" } }, - "x-ms-long-running-operation" : true, - "parameters" : [ { - "$ref" : "#/parameters/ReservationOrderIdParameter" - }, { - "$ref" : "#/parameters/ReservationIdParameter" - }, { - "$ref" : "#/parameters/ApiVersionParameter" - }, { - "$ref" : "#/parameters/PatchParameter" - } ], - "tags" : [ "Reservation", "ApplyScope" ], - "responses" : { - "200" : { - "description" : "Returns the updated `Reservation`.", - "schema" : { - "$ref" : "#/definitions/ReservationResponse" + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PatchParameter" + } + ], + "tags": [ + "Reservation", + "ApplyScope" + ], + "responses": { + "200": { + "description": "Returns the updated `Reservation`.", + "schema": { + "$ref": "#/definitions/ReservationResponse" } }, - "202" : { - "description" : "The request is accepted and is being processed" + "202": { + "description": "The request is accepted and is being processed" }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions" : { - "get" : { - "summary" : "Get `Reservation` revisions.", - "description" : "List of all the revisions for the `Reservation`.", - "operationId" : "Reservation_ListRevisions", - "x-ms-examples" : { - "ReservationRevisions" : { - "$ref" : "./examples/GetReservationRevisions.json" + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions": { + "get": { + "summary": "Get `Reservation` revisions.", + "description": "List of all the revisions for the `Reservation`.", + "operationId": "Reservation_ListRevisions", + "x-ms-examples": { + "ReservationRevisions": { + "$ref": "./examples/GetReservationRevisions.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" - }, - "parameters" : [ { - "$ref" : "#/parameters/ReservationIdParameter" - }, { - "$ref" : "#/parameters/ReservationOrderIdParameter" - }, { - "$ref" : "#/parameters/ApiVersionParameter" - } ], - "tags" : [ "Reservation" ], - "responses" : { - "200" : { - "description" : "List of all the revisions for the `Reservation`.", - "schema" : { - "$ref" : "#/definitions/ReservationList" + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List of all the revisions for the `Reservation`.", + "schema": { + "$ref": "#/definitions/ReservationList" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } }, - "/providers/Microsoft.Capacity/operations" : { - "get" : { - "summary" : "Get operations.", - "description" : "List all the operations.", - "operationId" : "Operation_List", - "x-ms-examples" : { - "GetOperations" : { - "$ref" : "./examples/GetOperations.json" + "/providers/Microsoft.Capacity/operations": { + "get": { + "summary": "Get operations.", + "description": "List all the operations.", + "operationId": "Operation_List", + "x-ms-examples": { + "GetOperations": { + "$ref": "./examples/GetOperations.json" } }, - "x-ms-pageable" : { - "nextLinkName" : "nextLink" - }, - "parameters" : [ { - "$ref" : "#/parameters/ApiVersionParameter" - } ], - "tags" : [ "Operation" ], - "responses" : { - "200" : { - "description" : "List all the operations.", - "schema" : { - "$ref" : "#/definitions/OperationList" + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Operation" + ], + "responses": { + "200": { + "description": "List all the operations.", + "schema": { + "$ref": "#/definitions/OperationList" } }, - "default" : { - "description" : "Unexpected error", - "schema" : { - "$ref" : "#/definitions/Error" + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } } } } } }, - "definitions" : { - "ReservationStatusCode" : { - "type" : "string", - "enum" : [ "None", "Pending", "Active", "PurchaseError", "PaymentInstrumentError", "Split", "Merged", "Expired", "Succeeded" ], - "x-ms-enum" : { - "name" : "ReservationStatusCode", - "modelAsString" : true + "definitions": { + "ReservationStatusCode": { + "type": "string", + "enum": [ + "None", + "Pending", + "Active", + "PurchaseError", + "PaymentInstrumentError", + "Split", + "Merged", + "Expired", + "Succeeded" + ], + "x-ms-enum": { + "name": "ReservationStatusCode", + "modelAsString": true } }, - "ErrorResponseCode" : { - "type" : "string", - "enum" : [ "NotSpecified", "InternalServerError", "ServerTimeout", "AuthorizationFailed", "BadRequest", "ClientCertificateThumbprintNotSet", "InvalidRequestContent", "OperationFailed", "HttpMethodNotSupported", "InvalidRequestUri", "MissingTenantId", "InvalidTenantId", "InvalidReservationOrderId", "InvalidReservationId", "ReservationIdNotInReservationOrder", "ReservationOrderNotFound", "InvalidSubscriptionId", "InvalidAccessToken", "InvalidLocationId", "UnauthenticatedRequestsThrottled", "InvalidHealthCheckType", "Forbidden", "BillingScopeIdCannotBeChanged", "AppliedScopesNotAssociatedWithCommerceAccount", "PatchValuesSameAsExisting", "RoleAssignmentCreationFailed", "ReservationOrderCreationFailed", "ReservationOrderNotEnabled", "CapacityUpdateScopesFailed", "UnsupportedReservationTerm", "ReservationOrderIdAlreadyExists", "RiskCheckFailed", "CreateQuoteFailed", "ActivateQuoteFailed", "NonsupportedAccountId", "PaymentInstrumentNotFound", "MissingAppliedScopesForSingle", "NoValidReservationsToReRate", "ReRateOnlyAllowedForEA", "OperationCannotBePerformedInCurrentState", "InvalidSingleAppliedScopesCount", "InvalidFulfillmentRequestParameters", "NotSupportedCountry", "InvalidRefundQuantity", "PurchaseError", "BillingCustomerInputError", "BillingPaymentInstrumentSoftError", "BillingPaymentInstrumentHardError", "BillingTransientError", "BillingError", "FulfillmentConfigurationError", "FulfillmentOutOfStockError", "FulfillmentTransientError", "FulfillmentError", "CalculatePriceFailed" ], - "x-ms-enum" : { - "name" : "ErrorResponseCode", - "modelAsString" : true + "ErrorResponseCode": { + "type": "string", + "enum": [ + "NotSpecified", + "InternalServerError", + "ServerTimeout", + "AuthorizationFailed", + "BadRequest", + "ClientCertificateThumbprintNotSet", + "InvalidRequestContent", + "OperationFailed", + "HttpMethodNotSupported", + "InvalidRequestUri", + "MissingTenantId", + "InvalidTenantId", + "InvalidReservationOrderId", + "InvalidReservationId", + "ReservationIdNotInReservationOrder", + "ReservationOrderNotFound", + "InvalidSubscriptionId", + "InvalidAccessToken", + "InvalidLocationId", + "UnauthenticatedRequestsThrottled", + "InvalidHealthCheckType", + "Forbidden", + "BillingScopeIdCannotBeChanged", + "AppliedScopesNotAssociatedWithCommerceAccount", + "PatchValuesSameAsExisting", + "RoleAssignmentCreationFailed", + "ReservationOrderCreationFailed", + "ReservationOrderNotEnabled", + "CapacityUpdateScopesFailed", + "UnsupportedReservationTerm", + "ReservationOrderIdAlreadyExists", + "RiskCheckFailed", + "CreateQuoteFailed", + "ActivateQuoteFailed", + "NonsupportedAccountId", + "PaymentInstrumentNotFound", + "MissingAppliedScopesForSingle", + "NoValidReservationsToReRate", + "ReRateOnlyAllowedForEA", + "OperationCannotBePerformedInCurrentState", + "InvalidSingleAppliedScopesCount", + "InvalidFulfillmentRequestParameters", + "NotSupportedCountry", + "InvalidRefundQuantity", + "PurchaseError", + "BillingCustomerInputError", + "BillingPaymentInstrumentSoftError", + "BillingPaymentInstrumentHardError", + "BillingTransientError", + "BillingError", + "FulfillmentConfigurationError", + "FulfillmentOutOfStockError", + "FulfillmentTransientError", + "FulfillmentError", + "CalculatePriceFailed" + ], + "x-ms-enum": { + "name": "ErrorResponseCode", + "modelAsString": true } }, - "SkuName" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" + "SkuName": { + "type": "object", + "properties": { + "name": { + "type": "string" } } }, - "Catalog" : { - "type" : "object", - "properties" : { - "resourceType" : { - "type" : "string", - "description" : "The type of resource the SKU applies to.", - "readOnly" : true - }, - "name" : { - "type" : "string", - "description" : "The name of SKU", - "readOnly" : true - }, - "terms" : { - "type" : "array", - "readOnly" : true, - "description" : "Available reservation terms for this resource", - "items" : { - "$ref" : "#/definitions/ReservationTerm" + "Catalog": { + "type": "object", + "properties": { + "resourceType": { + "type": "string", + "description": "The type of resource the SKU applies to.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of SKU", + "readOnly": true + }, + "terms": { + "type": "array", + "readOnly": true, + "description": "Available reservation terms for this resource", + "items": { + "$ref": "#/definitions/ReservationTerm" } }, - "locations" : { - "type" : "array", - "readOnly" : true, - "items" : { - "type" : "string", - "description" : "The set of locations that the SKU is available. If not specified, the SKU is available in all locations." + "locations": { + "type": "array", + "readOnly": true, + "items": { + "type": "string", + "description": "The set of locations that the SKU is available. If not specified, the SKU is available in all locations." } }, - "skuProperties" : { - "type" : "array", - "readOnly" : true, - "items" : { - "$ref" : "#/definitions/SkuProperty" + "skuProperties": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SkuProperty" } }, - "restrictions" : { - "type" : "array", - "readOnly" : true, - "items" : { - "$ref" : "#/definitions/SkuRestriction" + "restrictions": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SkuRestriction" } } } }, - "SkuProperty" : { - "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." + "SkuProperty": { + "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." } } }, - "SkuRestriction" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string", - "description" : "The type of restrictions." - }, - "values" : { - "type" : "array", - "items" : { - "type" : "string" + "SkuRestriction": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of restrictions." + }, + "values": { + "type": "array", + "items": { + "type": "string" }, - "description" : "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted." + "description": "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted." }, - "reasonCode" : { - "type" : "string", - "description" : "The reason for restriction." + "reasonCode": { + "type": "string", + "description": "The reason for restriction." } } }, - "ReservationOrderResponse" : { - "type" : "object", - "x-ms-azure-resource" : true, - "properties" : { - "etag" : { - "type" : "integer" - }, - "id" : { - "type" : "string", - "readOnly" : true, - "description" : "Identifier of the reservation" - }, - "name" : { - "type" : "string", - "readOnly" : true, - "description" : "Name of the reservation" - }, - "properties" : { - "x-ms-client-flatten" : true, - "$ref" : "#/definitions/ReservationOrderProperties" - }, - "type" : { - "type" : "string", - "readOnly" : true, - "description" : "Type of resource. \"Microsoft.Capacity/reservations\"" + "ReservationOrderResponse": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "etag": { + "type": "integer" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Identifier of the reservation" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the reservation" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationOrderProperties" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Type of resource. \"Microsoft.Capacity/reservations\"" } } }, - "ReservationTerm" : { - "type" : "string", - "description" : "Represent the term of Reservation.", - "enum" : [ "P1Y", "P3Y" ], - "x-ms-enum" : { - "name" : "ReservationTerm", - "modelAsString" : true + "ReservationTerm": { + "type": "string", + "description": "Represent the term of Reservation.", + "enum": [ + "P1Y", + "P3Y" + ], + "x-ms-enum": { + "name": "ReservationTerm", + "modelAsString": true } }, - "ReservationOrderProperties" : { - "type" : "object", - "properties" : { - "displayName" : { - "type" : "string", - "description" : "Friendly name for user to easily identified the reservation." - }, - "requestDateTime" : { - "type" : "string", - "format" : "date-time", - "description" : "This is the DateTime when the reservation was initially requested for purchase." - }, - "createdDateTime" : { - "type" : "string", - "format" : "date-time", - "description" : "This is the DateTime when the reservation was created." - }, - "expiryDate" : { - "type" : "string", - "format" : "date", - "description" : "This is the date when the Reservation will expire." - }, - "originalQuantity" : { - "$ref" : "#/definitions/ReservationQuantity" - }, - "term" : { - "$ref" : "#/definitions/ReservationTerm" - }, - "provisioningState" : { - "type" : "string", - "description" : "Current state of the reservation." - }, - "reservations" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ReservationResponse" + "ReservationOrderProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name for user to easily identified the reservation." + }, + "requestDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the reservation was initially requested for purchase." + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the reservation was created." + }, + "expiryDate": { + "type": "string", + "format": "date", + "description": "This is the date when the Reservation will expire." + }, + "originalQuantity": { + "$ref": "#/definitions/ReservationQuantity" + }, + "term": { + "$ref": "#/definitions/ReservationTerm" + }, + "provisioningState": { + "type": "string", + "description": "Current state of the reservation." + }, + "reservations": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" } } } }, - "ReservationResponse" : { - "type" : "object", - "x-ms-azure-resource" : true, - "properties" : { - "location" : { - "type" : "string", - "readOnly" : true, - "description" : "The Azure Region where the reserved resource lives." - }, - "etag" : { - "type" : "integer" - }, - "id" : { - "type" : "string", - "readOnly" : true, - "description" : "Identifier of the reservation" - }, - "name" : { - "type" : "string", - "readOnly" : true, - "description" : "Name of the reservation" - }, - "sku" : { - "$ref" : "#/definitions/SkuName" - }, - "properties" : { - "$ref" : "#/definitions/ReservationProperties" - }, - "type" : { - "type" : "string", - "readOnly" : true, - "description" : "Type of resource. \"Microsoft.Capacity/reservationOrders/reservations\"" + "ReservationResponse": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "location": { + "type": "string", + "readOnly": true, + "description": "The Azure Region where the reserved resource lives." + }, + "etag": { + "type": "integer" + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Identifier of the reservation" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the reservation" + }, + "sku": { + "$ref": "#/definitions/SkuName" + }, + "properties": { + "$ref": "#/definitions/ReservationProperties" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Type of resource. \"Microsoft.Capacity/reservationOrders/reservations\"" } } }, - "CalculatePriceResponse" : { - "type" : "object", - "properties" : { - "properties" : { - "$ref" : "#/definitions/CalculatePriceResponseProperties" + "CalculatePriceResponse": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/CalculatePriceResponseProperties" } } }, - "CalculatePriceResponseProperties" : { - "type" : "object", - "properties" : { - "billingCurrencyTotal" : { - "type" : "object", - "description" : "Currency and amount that customer will be charged in customer's local currency. Tax is not included.", - "properties" : { - "currencyCode" : { - "type" : "string" + "CalculatePriceResponseProperties": { + "type": "object", + "properties": { + "billingCurrencyTotal": { + "type": "object", + "description": "Currency and amount that customer will be charged in customer's local currency. Tax is not included.", + "properties": { + "currencyCode": { + "type": "string" }, - "amount" : { - "type" : "number" + "amount": { + "type": "number" } } }, - "isBillingPartnerManaged" : { - "description" : "True if billing is managed by Microsoft Partner. Used only for CSP accounts.", - "type" : "boolean" + "isBillingPartnerManaged": { + "description": "True if billing is managed by Microsoft Partner. Used only for CSP accounts.", + "type": "boolean" }, - "reservationOrderId" : { - "description" : "GUID that represents reservation order that can be placed after calculating price.", - "type" : "string" + "reservationOrderId": { + "description": "GUID that represents reservation order that can be placed after calculating price.", + "type": "string" }, - "skuTitle" : { - "description" : "Title of SKU that is being purchased.", - "type" : "string" + "skuTitle": { + "description": "Title of SKU that is being purchased.", + "type": "string" }, - "skuDescription" : { - "description" : "Description of SKU that is being purchased.", - "type" : "string" + "skuDescription": { + "description": "Description of SKU that is being purchased.", + "type": "string" }, - "pricingCurrencyTotal" : { - "type" : "object", - "description" : "Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included.", - "properties" : { - "currencyCode" : { - "type" : "string" + "pricingCurrencyTotal": { + "type": "object", + "description": "Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included.", + "properties": { + "currencyCode": { + "type": "string" }, - "amount" : { - "type" : "number" + "amount": { + "type": "number" } } } } }, - "ReservationProperties" : { - "type" : "object", - "properties" : { - "reservedResourceType" : { - "$ref" : "#/definitions/ReservedResourceType" + "ReservationProperties": { + "type": "object", + "properties": { + "reservedResourceType": { + "$ref": "#/definitions/ReservedResourceType" }, - "instanceFlexibility" : { - "$ref" : "#/definitions/InstanceFlexibility" + "instanceFlexibility": { + "$ref": "#/definitions/InstanceFlexibility" }, - "displayName" : { - "type" : "string", - "description" : "Friendly name for user to easily identify the reservation" + "displayName": { + "type": "string", + "description": "Friendly name for user to easily identify the reservation" }, - "appliedScopes" : { - "$ref" : "#/definitions/AppliedScopes" + "appliedScopes": { + "$ref": "#/definitions/AppliedScopes" }, - "appliedScopeType" : { - "$ref" : "#/definitions/AppliedScopeType" + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" }, - "quantity" : { - "$ref" : "#/definitions/ReservationQuantity" + "quantity": { + "$ref": "#/definitions/ReservationQuantity" }, - "provisioningState" : { - "type" : "string", - "description" : "Current state of the reservation." + "provisioningState": { + "type": "string", + "description": "Current state of the reservation." }, - "effectiveDateTime" : { - "type" : "string", - "format" : "date-time", - "description" : "DateTime of the Reservation starting when this version is effective from." + "effectiveDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the Reservation starting when this version is effective from." }, - "lastUpdatedDateTime" : { - "type" : "string", - "format" : "date-time", - "description" : "DateTime of the last time the Reservation was updated.", - "readOnly" : true + "lastUpdatedDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the last time the Reservation was updated.", + "readOnly": true }, - "expiryDate" : { - "type" : "string", - "format" : "date", - "description" : "This is the date when the Reservation will expire." + "expiryDate": { + "type": "string", + "format": "date", + "description": "This is the date when the Reservation will expire." }, - "skuDescription" : { - "type" : "string", - "description" : "Description of the SKU in english." + "skuDescription": { + "type": "string", + "description": "Description of the SKU in english." }, - "extendedStatusInfo" : { - "$ref" : "#/definitions/ExtendedStatusInfo" + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo" }, - "splitProperties" : { - "$ref" : "#/definitions/ReservationSplitProperties" + "splitProperties": { + "$ref": "#/definitions/ReservationSplitProperties" }, - "mergeProperties" : { - "$ref" : "#/definitions/ReservationMergeProperties" + "mergeProperties": { + "$ref": "#/definitions/ReservationMergeProperties" } } }, - "ReservationSplitProperties" : { - "type" : "object", - "properties" : { - "splitDestinations" : { - "type" : "array", - "items" : { - "type" : "string" + "ReservationSplitProperties": { + "type": "object", + "properties": { + "splitDestinations": { + "type": "array", + "items": { + "type": "string" }, - "description" : "List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + "description": "List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" }, - "splitSource" : { - "type" : "string", - "description" : "Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + "splitSource": { + "type": "string", + "description": "Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" } } }, - "ReservationMergeProperties" : { - "type" : "object", - "properties" : { - "mergeDestination" : { - "type" : "string", - "description" : "Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - }, - "mergeSources" : { - "type" : "array", - "items" : { - "type" : "string" + "ReservationMergeProperties": { + "type": "object", + "properties": { + "mergeDestination": { + "type": "string", + "description": "Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + }, + "mergeSources": { + "type": "array", + "items": { + "type": "string" }, - "description" : "Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + "description": "Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" } } }, - "PurchaseRequestProperties" : { - "type" : "object", - "properties" : { - "reservedResourceType" : { - "$ref" : "#/definitions/ReservedResourceType" + "PurchaseRequestProperties": { + "type": "object", + "properties": { + "reservedResourceType": { + "$ref": "#/definitions/ReservedResourceType" }, - "billingScopeId" : { - "$ref" : "#/definitions/BillingScopeId" + "billingScopeId": { + "$ref": "#/definitions/BillingScopeId" }, - "term" : { - "$ref" : "#/definitions/ReservationTerm" + "term": { + "$ref": "#/definitions/ReservationTerm" }, - "quantity" : { - "$ref" : "#/definitions/ReservationQuantity" + "quantity": { + "$ref": "#/definitions/ReservationQuantity" }, - "displayName" : { - "type" : "string", - "description" : "Friendly name of the Reservation" + "displayName": { + "type": "string", + "description": "Friendly name of the Reservation" }, - "appliedScopeType" : { - "$ref" : "#/definitions/AppliedScopeType" + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" }, - "appliedScopes" : { - "$ref" : "#/definitions/AppliedScopes" + "appliedScopes": { + "$ref": "#/definitions/AppliedScopes" }, - "reservedResourceProperties" : { - "type" : "object", - "description" : "Properties specific to each reserved resource type. Not required if not applicable.", - "properties" : { - "instanceFlexibility" : { - "$ref" : "#/definitions/InstanceFlexibility" + "reservedResourceProperties": { + "type": "object", + "description": "Properties specific to each reserved resource type. Not required if not applicable.", + "properties": { + "instanceFlexibility": { + "$ref": "#/definitions/InstanceFlexibility" } } } } }, - "PatchProperties" : { - "type" : "object", - "properties" : { - "appliedScopeType" : { - "$ref" : "#/definitions/AppliedScopeType" + "PatchProperties": { + "type": "object", + "properties": { + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" }, - "appliedScopes" : { - "$ref" : "#/definitions/AppliedScopes" + "appliedScopes": { + "$ref": "#/definitions/AppliedScopes" }, - "instanceFlexibility" : { - "$ref" : "#/definitions/InstanceFlexibility" + "instanceFlexibility": { + "$ref": "#/definitions/InstanceFlexibility" }, - "name" : { - "type" : "string", - "description" : "Name of the Reservation" + "name": { + "type": "string", + "description": "Name of the Reservation" } } }, - "SplitProperties" : { - "type" : "object", - "properties" : { - "quantities" : { - "type" : "array", - "description" : "List of the quantities in the new reservations to create.", - "items" : { - "type" : "integer", - "minItems" : 2, - "maxItems" : 2 + "SplitProperties": { + "type": "object", + "properties": { + "quantities": { + "type": "array", + "description": "List of the quantities in the new reservations to create.", + "items": { + "type": "integer", + "minItems": 2, + "maxItems": 2 } }, - "reservationId" : { - "type" : "string", - "description" : "Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + "reservationId": { + "type": "string", + "description": "Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" } } }, - "MergeProperties" : { - "type" : "object", - "properties" : { - "sources" : { - "type" : "array", - "description" : "Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}", - "items" : { - "type" : "string" + "MergeProperties": { + "type": "object", + "properties": { + "sources": { + "type": "array", + "description": "Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}", + "items": { + "type": "string" } } } }, - "MergeRequest" : { - "type" : "object", - "properties" : { - "properties" : { - "x-ms-client-flatten" : true, - "$ref" : "#/definitions/MergeProperties" + "MergeRequest": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MergeProperties" } } }, - "PurchaseRequest" : { - "type" : "object", - "properties" : { - "sku" : { - "$ref" : "#/definitions/SkuName" - }, - "location" : { - "type" : "string", - "description" : "The Azure Region where the reserved resource lives." - }, - "properties" : { - "x-ms-client-flatten" : true, - "$ref" : "#/definitions/PurchaseRequestProperties" + "PurchaseRequest": { + "type": "object", + "properties": { + "sku": { + "$ref": "#/definitions/SkuName" + }, + "location": { + "type": "string", + "description": "The Azure Region where the reserved resource lives." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PurchaseRequestProperties" } } }, - "Patch" : { - "type" : "object", - "properties" : { - "properties" : { - "x-ms-client-flatten" : true, - "$ref" : "#/definitions/PatchProperties" + "Patch": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PatchProperties" } } }, - "SplitRequest" : { - "type" : "object", - "properties" : { - "properties" : { - "x-ms-client-flatten" : true, - "$ref" : "#/definitions/SplitProperties" + "SplitRequest": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SplitProperties" } } }, - "Error" : { - "type" : "object", - "properties" : { - "error" : { - "$ref" : "#/definitions/ExtendedErrorInfo" + "Error": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ExtendedErrorInfo" } } }, - "ExtendedErrorInfo" : { - "type" : "object", - "properties" : { - "code" : { - "$ref" : "#/definitions/ErrorResponseCode" - }, - "message" : { - "type" : "string" + "ExtendedErrorInfo": { + "type": "object", + "properties": { + "code": { + "$ref": "#/definitions/ErrorResponseCode" + }, + "message": { + "type": "string" } } }, - "ExtendedStatusInfo" : { - "type" : "object", - "properties" : { - "statusCode" : { - "$ref" : "#/definitions/ReservationStatusCode" - }, - "message" : { - "type" : "string", - "description" : "The message giving detailed information about the status code." + "ExtendedStatusInfo": { + "type": "object", + "properties": { + "statusCode": { + "$ref": "#/definitions/ReservationStatusCode" + }, + "message": { + "type": "string", + "description": "The message giving detailed information about the status code." } } }, - "ReservationOrderList" : { - "type" : "object", - "properties" : { - "value" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ReservationOrderResponse" + "ReservationOrderList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationOrderResponse" } }, - "nextLink" : { - "type" : "string", - "description" : "Url to get the next page of reservationOrders." + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservationOrders." } } }, - "ReservationList" : { - "type" : "object", - "properties" : { - "value" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ReservationResponse" + "ReservationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" } }, - "nextLink" : { - "type" : "string", - "description" : "Url to get the next page of reservations." + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservations." } } }, - "AppliedReservations" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "string", - "description" : "Identifier of the applied reservations", - "readOnly" : true - }, - "name" : { - "type" : "string", - "description" : "Name of resource", - "readOnly" : true - }, - "type" : { - "type" : "string", - "description" : "Type of resource. \"Microsoft.Capacity/AppliedReservations\"", - "readOnly" : true - }, - "properties" : { - "x-ms-client-flatten" : true, - "$ref" : "#/definitions/AppliedReservationsProperties" + "AppliedReservations": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Identifier of the applied reservations", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Name of resource", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of resource. \"Microsoft.Capacity/AppliedReservations\"", + "readOnly": true + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AppliedReservationsProperties" } } }, - "AppliedReservationsProperties" : { - "type" : "object", - "properties" : { - "reservationOrderIds" : { - "$ref" : "#/definitions/AppliedReservationList" + "AppliedReservationsProperties": { + "type": "object", + "properties": { + "reservationOrderIds": { + "$ref": "#/definitions/AppliedReservationList" } } }, - "AppliedReservationList" : { - "type" : "object", - "properties" : { - "value" : { - "type" : "array", - "items" : { - "type" : "string", - "description" : "Reservation resource Id. \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}\"" + "AppliedReservationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "type": "string", + "description": "Reservation resource Id. \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}\"" } }, - "nextLink" : { - "type" : "string", - "description" : "Url to get the next page of reservations" + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservations" } } }, - "OperationList" : { - "type" : "object", - "properties" : { - "value" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/OperationResponse" + "OperationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationResponse" } }, - "nextLink" : { - "type" : "string", - "description" : "Url to get the next page of items." + "nextLink": { + "type": "string", + "description": "Url to get the next page of items." } } }, - "OperationResponse" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" + "OperationResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "display" : { - "$ref" : "#/definitions/OperationDisplay" + "display": { + "$ref": "#/definitions/OperationDisplay" }, - "origin" : { - "type" : "string" + "origin": { + "type": "string" } } }, - "OperationDisplay" : { - "type" : "object", - "properties" : { - "provider" : { - "type" : "string" + "OperationDisplay": { + "type": "object", + "properties": { + "provider": { + "type": "string" }, - "resource" : { - "type" : "string" + "resource": { + "type": "string" }, - "operation" : { - "type" : "string" + "operation": { + "type": "string" }, - "description" : { - "type" : "string" + "description": { + "type": "string" } } }, - "InstanceFlexibility" : { - "type" : "string", - "description" : "Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type.", - "enum" : [ "On", "Off" ], - "x-ms-enum" : { - "name" : "InstanceFlexibility", - "modelAsString" : true + "InstanceFlexibility": { + "type": "string", + "description": "Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type.", + "enum": [ + "On", + "Off" + ], + "x-ms-enum": { + "name": "InstanceFlexibility", + "modelAsString": true } }, - "AppliedScopeType" : { - "type" : "string", - "description" : "Type of the Applied Scope.", - "enum" : [ "Single", "Shared" ], - "x-ms-enum" : { - "name" : "AppliedScopeType", - "modelAsString" : true + "AppliedScopeType": { + "type": "string", + "description": "Type of the Applied Scope.", + "enum": [ + "Single", + "Shared" + ], + "x-ms-enum": { + "name": "AppliedScopeType", + "modelAsString": true } }, - "AppliedScopes" : { - "type" : "array", - "description" : "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.", - "items" : { - "type" : "string", - "minItems" : 1, - "maxItems" : 1 + "AppliedScopes": { + "type": "array", + "description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.", + "items": { + "type": "string", + "minItems": 1, + "maxItems": 1 } }, - "BillingScopeId" : { - "type" : "string", - "description" : "Subscription that will be charged for purchasing Reservation" + "BillingScopeId": { + "type": "string", + "description": "Subscription that will be charged for purchasing Reservation" }, - "ReservationQuantity" : { - "type" : "integer", - "format" : "int32", - "description" : "Quantity of the SKUs that are part of the Reservation. Must be greater than zero." + "ReservationQuantity": { + "type": "integer", + "format": "int32", + "description": "Quantity of the SKUs that are part of the Reservation. Must be greater than zero." }, - "ReservedResourceType" : { - "type" : "string", - "description" : "The type of the resource that is being reserved.", - "enum" : [ "VirtualMachines", "SqlDatabases", "SuseLinux", "CosmosDb" ], - "x-ms-enum" : { - "name" : "ReservedResourceType", - "modelAsString" : true + "ReservedResourceType": { + "type": "string", + "description": "The type of the resource that is being reserved.", + "enum": [ + "VirtualMachines", + "SqlDatabases", + "SuseLinux", + "CosmosDb" + ], + "x-ms-enum": { + "name": "ReservedResourceType", + "modelAsString": true } } }, - "parameters" : { - "PurchaseParameter" : { - "name" : "body", - "x-ms-parameter-location" : "method", - "in" : "body", - "required" : true, - "description" : "Information needed for calculate or purchase reservation", - "schema" : { - "$ref" : "#/definitions/PurchaseRequest" + "parameters": { + "PurchaseParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed for calculate or purchase reservation", + "schema": { + "$ref": "#/definitions/PurchaseRequest" } }, - "ReservationIdParameter" : { - "name" : "reservationId", - "x-ms-parameter-location" : "method", - "in" : "path", - "required" : true, - "type" : "string", - "description" : "Id of the Reservation Item" + "ReservationIdParameter": { + "name": "reservationId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Id of the Reservation Item" }, - "MergeParameter" : { - "name" : "body", - "x-ms-parameter-location" : "method", - "in" : "body", - "required" : true, - "description" : "Information needed for commercial request for a reservation", - "schema" : { - "$ref" : "#/definitions/MergeRequest" + "MergeParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed for commercial request for a reservation", + "schema": { + "$ref": "#/definitions/MergeRequest" } }, - "PatchParameter" : { - "name" : "parameters", - "x-ms-parameter-location" : "method", - "in" : "body", - "required" : true, - "description" : "Information needed to patch a reservation item", - "schema" : { - "$ref" : "#/definitions/Patch" + "PatchParameter": { + "name": "parameters", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed to patch a reservation item", + "schema": { + "$ref": "#/definitions/Patch" } }, - "SplitParameter" : { - "name" : "body", - "x-ms-parameter-location" : "method", - "in" : "body", - "required" : true, - "description" : "Information needed to Split a reservation item", - "schema" : { - "$ref" : "#/definitions/SplitRequest" + "SplitParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed to Split a reservation item", + "schema": { + "$ref": "#/definitions/SplitRequest" } }, - "ApiVersionParameter" : { - "name" : "api-version", - "in" : "query", - "description" : "Supported version for this document is 2019-04-01", - "required" : true, - "type" : "string" + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Supported version for this document is 2019-04-01", + "required": true, + "type": "string" }, - "SubscriptionIdParameter" : { - "name" : "subscriptionId", - "x-ms-parameter-location" : "method", - "in" : "path", - "required" : true, - "type" : "string", - "description" : "Id of the subscription" + "SubscriptionIdParameter": { + "name": "subscriptionId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Id of the subscription" }, - "ReservedResourceTypeIdParameter" : { - "name" : "reservedResourceType", - "x-ms-parameter-location" : "method", - "in" : "query", - "required" : true, - "type" : "string", - "description" : "The type of the resource for which the skus should be provided." + "ReservedResourceTypeIdParameter": { + "name": "reservedResourceType", + "x-ms-parameter-location": "method", + "in": "query", + "required": true, + "type": "string", + "description": "The type of the resource for which the skus should be provided." }, - "LocationIdParameter" : { - "name" : "location", - "x-ms-parameter-location" : "method", - "in" : "query", - "required" : false, - "type" : "string", - "description" : "Filters the skus based on the location specified in this parameter. This can be an azure region or global" + "LocationIdParameter": { + "name": "location", + "x-ms-parameter-location": "method", + "in": "query", + "required": false, + "type": "string", + "description": "Filters the skus based on the location specified in this parameter. This can be an azure region or global" }, - "ReservationOrderIdParameter" : { - "name" : "reservationOrderId", - "x-ms-parameter-location" : "method", - "in" : "path", - "required" : true, - "type" : "string", - "description" : "Order Id of the reservation" + "ReservationOrderIdParameter": { + "name": "reservationOrderId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Order Id of the reservation" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetAppliedReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetAppliedReservations.json index be883b522e19..045a7d69cba8 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetAppliedReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetAppliedReservations.json @@ -1,31 +1,34 @@ { -"parameters":{"api-version":"2017-11-01","subscriptionId":"23bc208b-083f-4901-ae85-4f98c0c3b4b6"}, -"responses": -{"200": -{ -"body": -{ - "id": "/subscriptions/23bc208b-083f-4901-ae85-4f98c0c3b4b6/providers/microsoft.capacity/AppliedReservations/default", - "type": "Microsoft.Capacity/AppliedReservations", - "name": "default", - "properties": { - "reservationOrderIds": { - "value": [ - "/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7", - "/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac", - "/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a", - "/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901", - "/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f", - "/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928", - "/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8", - "/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b", - "/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db", - "/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6", - "/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3", - "/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e", - "/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723" - ] + "parameters": { + "api-version": "2017-11-01", + "subscriptionId": "23bc208b-083f-4901-ae85-4f98c0c3b4b6" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/23bc208b-083f-4901-ae85-4f98c0c3b4b6/providers/microsoft.capacity/AppliedReservations/default", + "type": "Microsoft.Capacity/AppliedReservations", + "name": "default", + "properties": { + "reservationOrderIds": { + "value": [ + "/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7", + "/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac", + "/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a", + "/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901", + "/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f", + "/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928", + "/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8", + "/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b", + "/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db", + "/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6", + "/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3", + "/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e", + "/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723" + ] + } + } + } } } } -}}} \ No newline at end of file diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetCatalog.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetCatalog.json index 18239bc9c61a..6b680012346e 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetCatalog.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetCatalog.json @@ -6,77 +6,77 @@ "responses": { "200": { "body": [ - { - "resourceType": "virtualMachines", - "name": "Standard_DS4_v2", - "tier": "Standard", - "size": "DS4_v2", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "restrictions": [] - }, - { - "resourceType": "virtualMachines", - "name": "Standard_D14_v2_Promo", - "tier": "Standard", - "size": "D14_v2_Promo", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "CanadaCentral" - ], - "restrictions": [ - { - "type": "Term", - "values": [ - "P1Y" - ], - "reasonCode": "NotAvailableForSubscription" - }, - { - "type": "Term", - "values": [ - "P3Y" - ], - "reasonCode": "NotAvailableForSubscription" - } - ] - }, - { - "resourceType": "virtualMachines", - "name": "Standard_DS2_v2", - "tier": "Standard", - "size": "DS2_v2", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "restrictions": [] - }, - { - "resourceType": "virtualMachines", - "name": "Standard_DS1_v2", - "tier": "Standard", - "size": "DS1_v2", - "terms": [ - "P1Y", - "P3Y" - ], - "locations": [ - "eastus" - ], - "restrictions": [] - } + { + "resourceType": "virtualMachines", + "name": "Standard_DS4_v2", + "tier": "Standard", + "size": "DS4_v2", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "restrictions": [] + }, + { + "resourceType": "virtualMachines", + "name": "Standard_D14_v2_Promo", + "tier": "Standard", + "size": "D14_v2_Promo", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "CanadaCentral" + ], + "restrictions": [ + { + "type": "Term", + "values": [ + "P1Y" + ], + "reasonCode": "NotAvailableForSubscription" + }, + { + "type": "Term", + "values": [ + "P3Y" + ], + "reasonCode": "NotAvailableForSubscription" + } + ] + }, + { + "resourceType": "virtualMachines", + "name": "Standard_DS2_v2", + "tier": "Standard", + "size": "DS2_v2", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "restrictions": [] + }, + { + "resourceType": "virtualMachines", + "name": "Standard_DS1_v2", + "tier": "Standard", + "size": "DS1_v2", + "terms": [ + "P1Y", + "P3Y" + ], + "locations": [ + "eastus" + ], + "restrictions": [] + } ] } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetOperations.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetOperations.json index 6f7c26704656..091c7a0c92c0 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetOperations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetOperations.json @@ -91,4 +91,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationDetails.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationDetails.json index 8b445066f237..5419dd6d4c25 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationDetails.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationDetails.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationOrderDetails.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationOrderDetails.json index f4a4470980e2..8ed0b7fb2eef 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationOrderDetails.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationOrderDetails.json @@ -25,4 +25,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationOrders.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationOrders.json index 6deddef7ffcc..e5f3ca7a0d51 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationOrders.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationOrders.json @@ -83,4 +83,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationRevisions.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationRevisions.json index 7b9023ebfb90..d754fc2e19e0 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationRevisions.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservationRevisions.json @@ -125,4 +125,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservations.json index ce72bea86f36..bd73bb3e1be0 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/GetReservations.json @@ -135,4 +135,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/MergeReservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/MergeReservations.json index 318b0733f288..c20dcb0ecee1 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/MergeReservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/MergeReservations.json @@ -3,7 +3,7 @@ "api-version": "2017-11-01", "reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", "body": { - "properties" : { + "properties": { "sources": [ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/cea04232-932e-47db-acb5-e29a945ecc73", "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/5bf54dc7-dacd-4f46-a16b-7b78f4a59799" @@ -108,8 +108,8 @@ } ] }, - "202" : { + "202": { "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/SplitReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/SplitReservation.json index 8ca9357bebdc..5748c448f403 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/SplitReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/SplitReservation.json @@ -99,8 +99,8 @@ } ] }, - "202" : { + "202": { "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/UpdateReservation.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/UpdateReservation.json index b65ce3b907c7..102576ecfe15 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/UpdateReservation.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/examples/UpdateReservation.json @@ -4,7 +4,7 @@ "reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", "reservationId": "6ef59113-3482-40da-8d79-787f823e34bc", "parameters": { - "properties" : { + "properties": { "appliedScopeType": "Shared" } } @@ -41,4 +41,4 @@ "body": "" } } -} \ No newline at end of file +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/reservations.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/reservations.json index 8f9e6fd9b1b8..6e31812fa2ce 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/reservations.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2017-11-01/reservations.json @@ -1,1206 +1,1206 @@ { - "swagger": "2.0", - "info": { - "title": "Azure Reservation API", - "description": "This API describe Azure Reservation", - "version": "2017-11-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "produces": [ - "application/json" - ], - "consumes": [ - "application/json" - ], - "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" + "swagger": "2.0", + "info": { + "title": "Azure Reservation API", + "description": "This API describe Azure Reservation", + "version": "2017-11-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "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}/providers/Microsoft.Capacity/catalogs": { + "get": { + "summary": "Get the regions and skus that are available for RI purchase for the specified Azure subscription.", + "operationId": "GetCatalog", + "x-ms-examples": { + "Catalog": { + "$ref": "./examples/GetCatalog.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "tags": [ + "Catalog" + ], + "responses": { + "200": { + "description": "List of available resources", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Catalog" + } + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } } + } }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs": { - "get": { - "summary": "Get the regions and skus that are available for RI purchase for the specified Azure subscription.", - "operationId": "GetCatalog", - "x-ms-examples": { - "Catalog": { - "$ref": "./examples/GetCatalog.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "tags": [ - "Catalog" - ], - "responses": { - "200": { - "description": "List of available resources", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Catalog" - } - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - } + "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations": { + "get": { + "summary": "Get list of applicable `Reservation`s.", + "description": "Get applicable `Reservation`s that are applied to this subscription.", + "operationId": "GetAppliedReservationList", + "x-ms-examples": { + "AppliedReservationList": { + "$ref": "./examples/GetAppliedReservations.json" + } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations": { - "get": { - "summary": "Get list of applicable `Reservation`s.", - "description": "Get applicable `Reservation`s that are applied to this subscription.", - "operationId": "GetAppliedReservationList", - "x-ms-examples": { - "AppliedReservationList": { - "$ref": "./examples/GetAppliedReservations.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "tags": [ - "AppliedReservation" - ], - "responses": { - "200": { - "description": "Applicable `Reservation`s.", - "schema": { - "$ref": "#/definitions/AppliedReservations" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "tags": [ + "AppliedReservation" + ], + "responses": { + "200": { + "description": "Applicable `Reservation`s.", + "schema": { + "$ref": "#/definitions/AppliedReservations" } - }, - "/providers/Microsoft.Capacity/reservationOrders": { - "get": { - "summary": "Get all `ReservationOrder`s.", - "description": "List of all the `ReservationOrder`s that the user has access to in the current tenant.", - "operationId": "ReservationOrder_List", - "x-ms-examples": { - "ReservationOrderList": { - "$ref": "./examples/GetReservationOrders.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "List of `ReservationOrder`s", - "schema": { - "$ref": "#/definitions/ReservationOrderList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders": { + "get": { + "summary": "Get all `ReservationOrder`s.", + "description": "List of all the `ReservationOrder`s that the user has access to in the current tenant.", + "operationId": "ReservationOrder_List", + "x-ms-examples": { + "ReservationOrderList": { + "$ref": "./examples/GetReservationOrders.json" + } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}": { - "get": { - "summary": "Get a specific `ReservationOrder`.", - "description": "Get the details of the `ReservationOrder`.", - "operationId": "ReservationOrder_Get", - "x-ms-examples": { - "GetReservation": { - "$ref": "./examples/GetReservationOrderDetails.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "Get the details of the `ReservationOrder`.", - "schema": { - "$ref": "#/definitions/ReservationOrderResponse" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - } + "x-ms-pageable": { + "nextLinkName": "nextLink" }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split": { - "post": { - "summary": "Split the `Reservation`.", - "description": "Split a `Reservation` into two `Reservation`s with specified quantity distribution.\n", - "operationId": "Reservation_Split", - "x-ms-examples": { - "Split": { - "$ref": "./examples/SplitReservation.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SplitParameter" - } - ], - "tags": [ - "Reservation, Split" - ], - "responses": { - "200": { - "description": "List of `Reservation`s created after the split operation.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationResponse" - } - } - }, - "202": { - "description": "The request is accepted and is being processed" - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List of `ReservationOrder`s", + "schema": { + "$ref": "#/definitions/ReservationOrderList" } - }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge": { - "post": { - "summary": "Merges two `Reservation`s.", - "description": "Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.", - "operationId": "Reservation_Merge", - "x-ms-examples": { - "Merge": { - "$ref": "./examples/MergeReservations.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/MergeParameter" - } - ], - "tags": [ - "Reservation, Merge" - ], - "responses": { - "200": { - "description": "Returns the `Reservation` created after the merge.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationResponse" - } - } - }, - "202": { - "description": "The request is accepted and is being processed" - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}": { + "get": { + "summary": "Get a specific `ReservationOrder`.", + "description": "Get the details of the `ReservationOrder`.", + "operationId": "ReservationOrder_Get", + "x-ms-examples": { + "GetReservation": { + "$ref": "./examples/GetReservationOrderDetails.json" + } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations": { - "get": { - "summary": "Get `Reservation`s in a given reservation Order", - "description": "List `Reservation`s within a single `ReservationOrder`.", - "operationId": "Reservation_List", - "x-ms-examples": { - "ReservationList": { - "$ref": "./examples/GetReservations.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "List `Reservation`s within a single `ReservationOrder`.", - "schema": { - "$ref": "#/definitions/ReservationList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "Get the details of the `ReservationOrder`.", + "schema": { + "$ref": "#/definitions/ReservationOrderResponse" } - }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}": { - "get": { - "summary": "Get `Reservation` details.", - "description": "Get specific `Reservation` details.", - "operationId": "Reservation_Get", - "x-ms-examples": { - "GetReservation": { - "$ref": "./examples/GetReservationDetails.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ReservationIdParameter" - }, - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "Get `Reservation` details.", - "schema": { - "$ref": "#/definitions/ReservationResponse" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } - }, - "patch": { - "summary": "Updates a `Reservation`.", - "description": "Updates the applied scopes of the `Reservation`.", - "operationId": "Reservation_Update", - "x-ms-examples": { - "PatchReservation": { - "$ref": "./examples/UpdateReservation.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ReservationIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/PatchParameter" - } - ], - "tags": [ - "Reservation", - "ApplyScope" - ], - "responses": { - "200": { - "description": "Returns the updated `Reservation`.", - "schema": { - "$ref": "#/definitions/ReservationResponse" - } - }, - "202": { - "description": "The request is accepted and is being processed" - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split": { + "post": { + "summary": "Split the `Reservation`.", + "description": "Split a `Reservation` into two `Reservation`s with specified quantity distribution.\n", + "operationId": "Reservation_Split", + "x-ms-examples": { + "Split": { + "$ref": "./examples/SplitReservation.json" + } }, - "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions": { - "get": { - "summary": "Get `Reservation` revisions.", - "description": "List of all the revisions for the `Reservation`.\n", - "operationId": "Reservation_ListRevisions", - "x-ms-examples": { - "ReservationRevisions": { - "$ref": "./examples/GetReservationRevisions.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "#/parameters/ReservationIdParameter" - }, - { - "$ref": "#/parameters/ReservationOrderIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Reservation" - ], - "responses": { - "200": { - "description": "List of all the revisions for the `Reservation`.", - "schema": { - "$ref": "#/definitions/ReservationList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SplitParameter" + } + ], + "tags": [ + "Reservation, Split" + ], + "responses": { + "200": { + "description": "List of `Reservation`s created after the split operation.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" + } } + }, + "202": { + "description": "The request is accepted and is being processed" + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge": { + "post": { + "summary": "Merges two `Reservation`s.", + "description": "Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.", + "operationId": "Reservation_Merge", + "x-ms-examples": { + "Merge": { + "$ref": "./examples/MergeReservations.json" + } }, - "/providers/Microsoft.Capacity/operations": { - "get": { - "summary": "Get operations.", - "description": "List all the operations.", - "operationId": "Operation_List", - "x-ms-examples": { - "GetOperations": { - "$ref": "./examples/GetOperations.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "tags": [ - "Operation" - ], - "responses": { - "200": { - "description": "List all the operations.", - "schema": { - "$ref": "#/definitions/OperationList" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "#/definitions/Error" - } - } - } + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/MergeParameter" + } + ], + "tags": [ + "Reservation, Merge" + ], + "responses": { + "200": { + "description": "Returns the `Reservation` created after the merge.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" + } + } + }, + "202": { + "description": "The request is accepted and is being processed" + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } } + } }, - "definitions": { - "ReservationStatusCode": { - "type": "string", - "enum": [ - "None", - "Pending", - "Active", - "PurchaseError", - "PaymentInstrumentError", - "Split", - "Merged", - "Expired", - "Succeeded" - ] - }, - "ErrorResponseCode": { - "type": "string", - "enum": [ - "NotSpecified", - "InternalServerError", - "ServerTimeout", - "AuthorizationFailed", - "BadRequest", - "ClientCertificateThumbprintNotSet", - "InvalidRequestContent", - "OperationFailed", - "HttpMethodNotSupported", - "InvalidRequestUri", - "MissingTenantId", - "InvalidTenantId", - "InvalidReservationOrderId", - "InvalidReservationId", - "ReservationIdNotInReservationOrder", - "ReservationOrderNotFound", - "InvalidSubscriptionId", - "InvalidAccessToken", - "InvalidLocationId", - "UnauthenticatedRequestsThrottled", - "InvalidHealthCheckType", - "Forbidden", - "BillingScopeIdCannotBeChanged", - "AppliedScopesNotAssociatedWithCommerceAccount", - "AppliedScopesSameAsExisting", - "RoleAssignmentCreationFailed", - "ReservationOrderCreationFailed", - "ReservationOrderNotEnabled", - "CapacityUpdateScopesFailed", - "UnsupportedReservationTerm", - "ReservationOrderIdAlreadyExists", - "RiskCheckFailed", - "CreateQuoteFailed", - "ActivateQuoteFailed", - "NonsupportedAccountId", - "PaymentInstrumentNotFound", - "MissingAppliedScopesForSingle", - "NoValidReservationsToReRate", - "ReRateOnlyAllowedForEA", - "OperationCannotBePerformedInCurrentState", - "InvalidSingleAppliedScopesCount", - "InvalidFulfillmentRequestParameters", - "NotSupportedCountry", - "InvalidRefundQuantity", - "PurchaseError", - "BillingCustomerInputError", - "BillingPaymentInstrumentSoftError", - "BillingPaymentInstrumentHardError", - "BillingTransientError", - "BillingError", - "FulfillmentConfigurationError", - "FulfillmentOutOfStockError", - "FulfillmentTransientError", - "FulfillmentError", - "CalculatePriceFailed" - ] - }, - "ProvisioningState": { - "type": "string", - "description": "Represent the current state of the Reservation.", - "enum": [ - "Creating", - "PendingResourceHold", - "ConfirmedResourceHold", - "PendingBilling", - "ConfirmedBilling", - "Created", - "Succeeded", - "Cancelled", - "Expired", - "BillingFailed", - "Failed", - "Split", - "Merged" - ] - }, - "Location": { - "type": "string", - "description": "Location in which the Resources needs to be reserved. It cannot be changed after the resource has been created.", - "enum": [ - "westus", - "eastus", - "eastus2", - "northcentralus", - "westus2", - "southcentralus", - "centralus", - "westeurope", - "northeurope", - "eastasia", - "southeastasia", - "japaneast", - "japanwest", - "brazilsouth", - "australiaeast", - "australiasoutheast", - "southindia", - "westindia", - "centralindia", - "canadacentral", - "canadaeast", - "uksouth", - "westcentralus", - "ukwest" - ] - }, - "SkuName": { - "type": "object", - "properties": { - "name": { - "type": "string" - } + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations": { + "get": { + "summary": "Get `Reservation`s in a given reservation Order", + "description": "List `Reservation`s within a single `ReservationOrder`.", + "operationId": "Reservation_List", + "x-ms-examples": { + "ReservationList": { + "$ref": "./examples/GetReservations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List `Reservation`s within a single `ReservationOrder`.", + "schema": { + "$ref": "#/definitions/ReservationList" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}": { + "get": { + "summary": "Get `Reservation` details.", + "description": "Get specific `Reservation` details.", + "operationId": "Reservation_Get", + "x-ms-examples": { + "GetReservation": { + "$ref": "./examples/GetReservationDetails.json" + } }, - "Catalog": { - "type": "object", - "properties": { - "resourceType": { - "type": "string", - "description": "The type of resource the SKU applies to.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The name of SKU", - "readOnly": true - }, - "tier": { - "type": "string", - "description": "The tier of this SKU", - "readOnly": true - }, - "size": { - "type": "string", - "description": "The size of this SKU", - "readOnly": true - }, - "terms": { - "type": "array", - "readOnly": true, - "description": "Available reservation terms for this resource", - "items": { - "$ref": "#/definitions/ReservationTerm" - } - }, - "locations": { - "type": "array", - "readOnly": true, - "items": { - "type": "string", - "description": "The set of locations that the SKU is available." - } - }, - "capabilities": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SkuCapability" - } - }, - "restrictions": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SkuRestriction" - } - } + "parameters": [ + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "Get `Reservation` details.", + "schema": { + "$ref": "#/definitions/ReservationResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + }, + "patch": { + "summary": "Updates a `Reservation`.", + "description": "Updates the applied scopes of the `Reservation`.", + "operationId": "Reservation_Update", + "x-ms-examples": { + "PatchReservation": { + "$ref": "./examples/UpdateReservation.json" + } }, - "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." - } + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/PatchParameter" + } + ], + "tags": [ + "Reservation", + "ApplyScope" + ], + "responses": { + "200": { + "description": "Returns the updated `Reservation`.", + "schema": { + "$ref": "#/definitions/ReservationResponse" } + }, + "202": { + "description": "The request is accepted and is being processed" + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions": { + "get": { + "summary": "Get `Reservation` revisions.", + "description": "List of all the revisions for the `Reservation`.\n", + "operationId": "Reservation_ListRevisions", + "x-ms-examples": { + "ReservationRevisions": { + "$ref": "./examples/GetReservationRevisions.json" + } }, - "SkuRestriction": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The type of restrictions." - }, - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted." - }, - "reasonCode": { - "type": "string", - "description": "The reason for restriction." - } + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ReservationIdParameter" + }, + { + "$ref": "#/parameters/ReservationOrderIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Reservation" + ], + "responses": { + "200": { + "description": "List of all the revisions for the `Reservation`.", + "schema": { + "$ref": "#/definitions/ReservationList" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + }, + "/providers/Microsoft.Capacity/operations": { + "get": { + "summary": "Get operations.", + "description": "List all the operations.", + "operationId": "Operation_List", + "x-ms-examples": { + "GetOperations": { + "$ref": "./examples/GetOperations.json" + } }, - "ReservationOrderResponse": { - "type": "object", - "x-ms-azure-resource": true, - "properties": { - "etag": { - "type": "integer" - }, - "id": { - "type": "string", - "readOnly": true, - "description": "Identifier of the reservation" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Name of the reservation" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ReservationOrderProperties" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Type of resource. \"Microsoft.Capacity/reservations\"" - } + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "tags": [ + "Operation" + ], + "responses": { + "200": { + "description": "List all the operations.", + "schema": { + "$ref": "#/definitions/OperationList" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" } + } + } + } + } + }, + "definitions": { + "ReservationStatusCode": { + "type": "string", + "enum": [ + "None", + "Pending", + "Active", + "PurchaseError", + "PaymentInstrumentError", + "Split", + "Merged", + "Expired", + "Succeeded" + ] + }, + "ErrorResponseCode": { + "type": "string", + "enum": [ + "NotSpecified", + "InternalServerError", + "ServerTimeout", + "AuthorizationFailed", + "BadRequest", + "ClientCertificateThumbprintNotSet", + "InvalidRequestContent", + "OperationFailed", + "HttpMethodNotSupported", + "InvalidRequestUri", + "MissingTenantId", + "InvalidTenantId", + "InvalidReservationOrderId", + "InvalidReservationId", + "ReservationIdNotInReservationOrder", + "ReservationOrderNotFound", + "InvalidSubscriptionId", + "InvalidAccessToken", + "InvalidLocationId", + "UnauthenticatedRequestsThrottled", + "InvalidHealthCheckType", + "Forbidden", + "BillingScopeIdCannotBeChanged", + "AppliedScopesNotAssociatedWithCommerceAccount", + "AppliedScopesSameAsExisting", + "RoleAssignmentCreationFailed", + "ReservationOrderCreationFailed", + "ReservationOrderNotEnabled", + "CapacityUpdateScopesFailed", + "UnsupportedReservationTerm", + "ReservationOrderIdAlreadyExists", + "RiskCheckFailed", + "CreateQuoteFailed", + "ActivateQuoteFailed", + "NonsupportedAccountId", + "PaymentInstrumentNotFound", + "MissingAppliedScopesForSingle", + "NoValidReservationsToReRate", + "ReRateOnlyAllowedForEA", + "OperationCannotBePerformedInCurrentState", + "InvalidSingleAppliedScopesCount", + "InvalidFulfillmentRequestParameters", + "NotSupportedCountry", + "InvalidRefundQuantity", + "PurchaseError", + "BillingCustomerInputError", + "BillingPaymentInstrumentSoftError", + "BillingPaymentInstrumentHardError", + "BillingTransientError", + "BillingError", + "FulfillmentConfigurationError", + "FulfillmentOutOfStockError", + "FulfillmentTransientError", + "FulfillmentError", + "CalculatePriceFailed" + ] + }, + "ProvisioningState": { + "type": "string", + "description": "Represent the current state of the Reservation.", + "enum": [ + "Creating", + "PendingResourceHold", + "ConfirmedResourceHold", + "PendingBilling", + "ConfirmedBilling", + "Created", + "Succeeded", + "Cancelled", + "Expired", + "BillingFailed", + "Failed", + "Split", + "Merged" + ] + }, + "Location": { + "type": "string", + "description": "Location in which the Resources needs to be reserved. It cannot be changed after the resource has been created.", + "enum": [ + "westus", + "eastus", + "eastus2", + "northcentralus", + "westus2", + "southcentralus", + "centralus", + "westeurope", + "northeurope", + "eastasia", + "southeastasia", + "japaneast", + "japanwest", + "brazilsouth", + "australiaeast", + "australiasoutheast", + "southindia", + "westindia", + "centralindia", + "canadacentral", + "canadaeast", + "uksouth", + "westcentralus", + "ukwest" + ] + }, + "SkuName": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "Catalog": { + "type": "object", + "properties": { + "resourceType": { + "type": "string", + "description": "The type of resource the SKU applies to.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of SKU", + "readOnly": true + }, + "tier": { + "type": "string", + "description": "The tier of this SKU", + "readOnly": true + }, + "size": { + "type": "string", + "description": "The size of this SKU", + "readOnly": true }, - "ReservationTerm": { + "terms": { + "type": "array", + "readOnly": true, + "description": "Available reservation terms for this resource", + "items": { + "$ref": "#/definitions/ReservationTerm" + } + }, + "locations": { + "type": "array", + "readOnly": true, + "items": { "type": "string", - "description": "Represent the term of Reservation.", - "enum": [ - "P1Y", - "P3Y" - ] - }, - "ReservationOrderProperties": { - "type": "object", - "properties": { - "displayName": { - "type": "string", - "description": "Friendly name for user to easily identified the reservation." - }, - "requestDateTime": { - "type": "string", - "format": "date-time", - "description": "This is the DateTime when the reservation was initially requested for purchase." - }, - "createdDateTime": { - "type": "string", - "format": "date-time", - "description": "This is the DateTime when the reservation was created." - }, - "expiryDate": { - "type": "string", - "format": "date", - "description": "This is the date when the Reservation will expire." - }, - "originalQuantity": { - "type": "integer", - "format": "int32", - "description": "Total Quantity of the SKUs purchased in the Reservation." - }, - "term": { - "$ref": "#/definitions/ReservationTerm" - }, - "provisioningState": { - "$ref": "#/definitions/ProvisioningState" - }, - "reservations": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationResponse" - } - } - } + "description": "The set of locations that the SKU is available." + } }, - "ReservationResponse": { - "type": "object", - "x-ms-azure-resource": true, - "properties": { - "location": { - "$ref": "#/definitions/Location" - }, - "etag": { - "type": "integer" - }, - "id": { - "type": "string", - "readOnly": true, - "description": "Identifier of the reservation" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Name of the reservation" - }, - "kind": { - "type": "string", - "description": "Resource Provider type to be reserved.", - "enum": [ - "Microsoft.Compute" - ], - "x-ms-enum": { - "name": "Kind", - "modelAsString": false - } - }, - "sku": { - "$ref": "#/definitions/SkuName" - }, - "properties": { - "$ref": "#/definitions/ReservationProperties" - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Type of resource. \"Microsoft.Capacity/reservationOrders/reservations\"" - } - } + "capabilities": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SkuCapability" + } }, - "ReservationProperties": { - "type": "object", - "properties": { - "displayName": { - "type": "string", - "description": "Friendly name for user to easily identify the reservation" - }, - "appliedScopes": { - "$ref": "#/definitions/AppliedScopes" - }, - "appliedScopeType": { - "$ref": "#/definitions/AppliedScopeType" - }, - "quantity": { - "type": "integer", - "format": "int32", - "description": "Quantity of the SKUs that are part of the Reservation." - }, - "provisioningState": { - "$ref": "#/definitions/ProvisioningState" - }, - "effectiveDateTime": { - "type": "string", - "format": "date-time", - "description": "DateTime of the Reservation starting when this version is effective from." - }, - "lastUpdatedDateTime": { - "type": "string", - "format": "date-time", - "description": "DateTime of the last time the Reservation was updated.", - "readOnly": true - }, - "expiryDate": { - "type": "string", - "format": "date", - "description": "This is the date when the Reservation will expire." - }, - "extendedStatusInfo": { - "$ref": "#/definitions/ExtendedStatusInfo" - }, - "splitProperties": { - "$ref": "#/definitions/ReservationSplitProperties" - }, - "mergeProperties": { - "$ref": "#/definitions/ReservationMergeProperties" - } - } + "restrictions": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SkuRestriction" + } + } + } + }, + "SkuCapability": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "An invariant to describe the feature." }, - "ReservationSplitProperties": { - "type": "object", - "properties": { - "splitDestinations": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - }, - "splitSource": { - "type": "string", - "description": "Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - } - } + "value": { + "type": "string", + "description": "An invariant if the feature is measured by quantity." + } + } + }, + "SkuRestriction": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The type of restrictions." }, - "ReservationMergeProperties": { - "type": "object", - "properties": { - "mergeDestination": { - "type": "string", - "description": "Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - }, - "mergeSources": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - } - } + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted." }, - "PatchProperties": { - "type": "object", - "properties": { - "appliedScopeType": { - "$ref": "#/definitions/AppliedScopeType" - }, - "appliedScopes": { - "$ref": "#/definitions/AppliedScopes" - } - } + "reasonCode": { + "type": "string", + "description": "The reason for restriction." + } + } + }, + "ReservationOrderResponse": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "etag": { + "type": "integer" }, - "SplitProperties": { - "type": "object", - "properties": { - "quantities": { - "type": "array", - "description": "List of the quantities in the new reservations to create.", - "items": { - "type": "integer", - "minItems": 2, - "maxItems": 2 - } - }, - "reservationId": { - "type": "string", - "description": "Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - } - } + "id": { + "type": "string", + "readOnly": true, + "description": "Identifier of the reservation" }, - "MergeProperties": { - "type": "object", - "properties": { - "sources": { - "type": "array", - "description": "Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}", - "items": { - "type": "string" - } - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the reservation" }, - "MergeRequest": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/MergeProperties" - } - } + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReservationOrderProperties" }, - "Patch": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PatchProperties" - } - } + "type": { + "type": "string", + "readOnly": true, + "description": "Type of resource. \"Microsoft.Capacity/reservations\"" + } + } + }, + "ReservationTerm": { + "type": "string", + "description": "Represent the term of Reservation.", + "enum": [ + "P1Y", + "P3Y" + ] + }, + "ReservationOrderProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name for user to easily identified the reservation." }, - "SplitRequest": { - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SplitProperties" - } - } + "requestDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the reservation was initially requested for purchase." }, - "Error": { - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/ExtendedErrorInfo" - } - } + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "This is the DateTime when the reservation was created." }, - "ExtendedErrorInfo": { - "type": "object", - "properties": { - "code": { - "$ref": "#/definitions/ErrorResponseCode" - }, - "message": { - "type": "string" - } - } + "expiryDate": { + "type": "string", + "format": "date", + "description": "This is the date when the Reservation will expire." }, - "ExtendedStatusInfo": { - "type": "object", - "properties": { - "statusCode": { - "$ref": "#/definitions/ReservationStatusCode" - }, - "message": { - "type": "string", - "description": "The message giving detailed information about the status code." - } - } + "originalQuantity": { + "type": "integer", + "format": "int32", + "description": "Total Quantity of the SKUs purchased in the Reservation." }, - "ReservationOrderList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationOrderResponse" - } - }, - "nextLink": { - "type": "string", - "description": "Url to get the next page of reservationOrders." - } - } + "term": { + "$ref": "#/definitions/ReservationTerm" }, - "ReservationList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ReservationResponse" - } - }, - "nextLink": { - "type": "string", - "description": "Url to get the next page of reservations." - } - } + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" }, - "AppliedReservations": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Identifier of the applied reservations", - "readOnly": true - }, - "name": { - "type": "string", - "description": "Name of resource", - "readOnly": true - }, - "type": { - "type": "string", - "description": "Type of resource. \"Microsoft.Capacity/AppliedReservations\"", - "readOnly": true - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/AppliedReservationsProperties" - } - } + "reservations": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" + } + } + } + }, + "ReservationResponse": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "location": { + "$ref": "#/definitions/Location" }, - "AppliedReservationsProperties": { - "type": "object", - "properties": { - "reservationOrderIds": { - "$ref": "#/definitions/AppliedReservationList" - } - } + "etag": { + "type": "integer" }, - "AppliedReservationList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "type": "string", - "description": "Reservation resource Id. \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}\"" - } - }, - "nextLink": { - "type": "string", - "description": "Url to get the next page of reservations" - } - } + "id": { + "type": "string", + "readOnly": true, + "description": "Identifier of the reservation" }, - "OperationList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/OperationResponse" - } - }, - "nextLink": { - "type": "string", - "description": "Url to get the next page of items." - } - } + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the reservation" }, - "OperationResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "display": { - "$ref": "#/definitions/OperationDisplay" - }, - "origin": { - "type": "string" - } - } + "kind": { + "type": "string", + "description": "Resource Provider type to be reserved.", + "enum": [ + "Microsoft.Compute" + ], + "x-ms-enum": { + "name": "Kind", + "modelAsString": false + } }, - "OperationDisplay": { - "type": "object", - "properties": { - "provider": { - "type": "string" - }, - "resource": { - "type": "string" - }, - "operation": { - "type": "string" - }, - "description": { - "type": "string" - } - } + "sku": { + "$ref": "#/definitions/SkuName" }, - "AppliedScopeType": { - "type": "string", - "description": "Type of the Applied Scope.", - "enum": [ - "Single", - "Shared" - ] - }, - "AppliedScopes": { - "type": "array", - "description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.", - "items": { - "type": "string", - "minItems": 1, - "maxItems": 1 - } + "properties": { + "$ref": "#/definitions/ReservationProperties" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Type of resource. \"Microsoft.Capacity/reservationOrders/reservations\"" } + } }, - "parameters": { - "ReservationIdParameter": { - "name": "reservationId", - "x-ms-parameter-location": "method", - "in": "path", - "required": true, - "type": "string", - "description": "Id of the Reservation Item" - }, - "MergeParameter": { - "name": "body", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Information needed for commercial request for a reservation", - "schema": { - "$ref": "#/definitions/MergeRequest" - } + "ReservationProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name for user to easily identify the reservation" }, - "PatchParameter": { - "name": "parameters", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Information needed to patch a reservation item", - "schema": { - "$ref": "#/definitions/Patch" - } + "appliedScopes": { + "$ref": "#/definitions/AppliedScopes" }, - "SplitParameter": { - "name": "body", - "x-ms-parameter-location": "method", - "in": "body", - "required": true, - "description": "Information needed to Split a reservation item", - "schema": { - "$ref": "#/definitions/SplitRequest" - } + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" + }, + "quantity": { + "type": "integer", + "format": "int32", + "description": "Quantity of the SKUs that are part of the Reservation." + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState" }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "description": "Supported version.", - "required": true, + "effectiveDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the Reservation starting when this version is effective from." + }, + "lastUpdatedDateTime": { + "type": "string", + "format": "date-time", + "description": "DateTime of the last time the Reservation was updated.", + "readOnly": true + }, + "expiryDate": { + "type": "string", + "format": "date", + "description": "This is the date when the Reservation will expire." + }, + "extendedStatusInfo": { + "$ref": "#/definitions/ExtendedStatusInfo" + }, + "splitProperties": { + "$ref": "#/definitions/ReservationSplitProperties" + }, + "mergeProperties": { + "$ref": "#/definitions/ReservationMergeProperties" + } + } + }, + "ReservationSplitProperties": { + "type": "object", + "properties": { + "splitDestinations": { + "type": "array", + "items": { "type": "string" + }, + "description": "List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" }, - "SubscriptionIdParameter": { - "name": "subscriptionId", - "x-ms-parameter-location": "method", - "in": "path", - "required": true, - "type": "string", - "description": "Id of the subscription" + "splitSource": { + "type": "string", + "description": "Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + } + } + }, + "ReservationMergeProperties": { + "type": "object", + "properties": { + "mergeDestination": { + "type": "string", + "description": "Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + }, + "mergeSources": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + } + } + }, + "PatchProperties": { + "type": "object", + "properties": { + "appliedScopeType": { + "$ref": "#/definitions/AppliedScopeType" + }, + "appliedScopes": { + "$ref": "#/definitions/AppliedScopes" + } + } + }, + "SplitProperties": { + "type": "object", + "properties": { + "quantities": { + "type": "array", + "description": "List of the quantities in the new reservations to create.", + "items": { + "type": "integer", + "minItems": 2, + "maxItems": 2 + } }, - "ReservationOrderIdParameter": { - "name": "reservationOrderId", - "x-ms-parameter-location": "method", - "in": "path", - "required": true, + "reservationId": { + "type": "string", + "description": "Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" + } + } + }, + "MergeProperties": { + "type": "object", + "properties": { + "sources": { + "type": "array", + "description": "Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}", + "items": { + "type": "string" + } + } + } + }, + "MergeRequest": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/MergeProperties" + } + } + }, + "Patch": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PatchProperties" + } + } + }, + "SplitRequest": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SplitProperties" + } + } + }, + "Error": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ExtendedErrorInfo" + } + } + }, + "ExtendedErrorInfo": { + "type": "object", + "properties": { + "code": { + "$ref": "#/definitions/ErrorResponseCode" + }, + "message": { + "type": "string" + } + } + }, + "ExtendedStatusInfo": { + "type": "object", + "properties": { + "statusCode": { + "$ref": "#/definitions/ReservationStatusCode" + }, + "message": { + "type": "string", + "description": "The message giving detailed information about the status code." + } + } + }, + "ReservationOrderList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationOrderResponse" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservationOrders." + } + } + }, + "ReservationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ReservationResponse" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservations." + } + } + }, + "AppliedReservations": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Identifier of the applied reservations", + "readOnly": true + }, + "name": { + "type": "string", + "description": "Name of resource", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of resource. \"Microsoft.Capacity/AppliedReservations\"", + "readOnly": true + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AppliedReservationsProperties" + } + } + }, + "AppliedReservationsProperties": { + "type": "object", + "properties": { + "reservationOrderIds": { + "$ref": "#/definitions/AppliedReservationList" + } + } + }, + "AppliedReservationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { "type": "string", - "description": "Order Id of the reservation\n" + "description": "Reservation resource Id. \"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}\"" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of reservations" + } + } + }, + "OperationList": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OperationResponse" + } + }, + "nextLink": { + "type": "string", + "description": "Url to get the next page of items." + } + } + }, + "OperationResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplay" + }, + "origin": { + "type": "string" } + } + }, + "OperationDisplay": { + "type": "object", + "properties": { + "provider": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "operation": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "AppliedScopeType": { + "type": "string", + "description": "Type of the Applied Scope.", + "enum": [ + "Single", + "Shared" + ] + }, + "AppliedScopes": { + "type": "array", + "description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.", + "items": { + "type": "string", + "minItems": 1, + "maxItems": 1 + } + } + }, + "parameters": { + "ReservationIdParameter": { + "name": "reservationId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Id of the Reservation Item" + }, + "MergeParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed for commercial request for a reservation", + "schema": { + "$ref": "#/definitions/MergeRequest" + } + }, + "PatchParameter": { + "name": "parameters", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed to patch a reservation item", + "schema": { + "$ref": "#/definitions/Patch" + } + }, + "SplitParameter": { + "name": "body", + "x-ms-parameter-location": "method", + "in": "body", + "required": true, + "description": "Information needed to Split a reservation item", + "schema": { + "$ref": "#/definitions/SplitRequest" + } + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "Supported version.", + "required": true, + "type": "string" + }, + "SubscriptionIdParameter": { + "name": "subscriptionId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Id of the subscription" + }, + "ReservationOrderIdParameter": { + "name": "reservationOrderId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Order Id of the reservation\n" } -} \ No newline at end of file + } +}