Skip to content

Commit

Permalink
Adding new properties to response body (#12201)
Browse files Browse the repository at this point in the history
* adding new properties

* updating examples

* prettier fix
  • Loading branch information
juhee0202 authored Dec 23, 2020
1 parent ae80fcb commit 02195e4
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@
},
"reservationsToPurchase": [
{
"properties": {
"sku": {
"name": "Standard_B1ls"
},
"location": "westus",
"properties": {
"reservedResourceType": "VirtualMachines",
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
"term": "P1Y",
"billingPlan": "Upfront",
"quantity": 1,
"displayName": "testDisplayName",
"appliedScopeType": "Shared",
"appliedScopes": null,
"renew": false,
"reservedResourceProperties": {
"instanceFlexibility": "On"
}
}
},
"billingCurrencyTotal": {
"currencyCode": "USD",
"amount": 19800.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,27 @@
"reservationsToPurchase": [
{
"reservationOrderId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f",
"reservationId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f/reservations/0c80fceb-305c-40a8-b5a6-11445807bbb3",
"properties": {
"sku": {
"name": "Standard_B1ls"
},
"location": "westus",
"properties": {
"reservedResourceType": "VirtualMachines",
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
"term": "P1Y",
"billingPlan": "Upfront",
"quantity": 1,
"displayName": "testDisplayName",
"appliedScopeType": "Shared",
"appliedScopes": null,
"renew": false,
"reservedResourceProperties": {
"instanceFlexibility": "On"
}
}
},
"billingCurrencyTotal": {
"currencyCode": "USD",
"amount": 19800.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,9 @@
"type": "object",
"description": "Reservation purchase details",
"properties": {
"properties": {
"$ref": "#/definitions/PurchaseRequest"
},
"billingCurrencyTotal": {
"$ref": "#/definitions/Price"
}
Expand All @@ -1182,6 +1185,13 @@
"type": "string",
"description": "Fully qualified id of the ReservationOrder being purchased"
},
"reservationId": {
"type": "string",
"description": "Fully qualified id of the Reservation being purchased. This value is only guaranteed to be non-null if the purchase is successful."
},
"properties": {
"$ref": "#/definitions/PurchaseRequest"
},
"billingCurrencyTotal": {
"$ref": "#/definitions/Price"
},
Expand Down

0 comments on commit 02195e4

Please sign in to comment.