Skip to content

Commit 69ad558

Browse files
juhee0202josuh
authored andcommitted
Adding new properties to response body (Azure#12201)
* adding new properties * updating examples * prettier fix
1 parent c04ebb6 commit 69ad558

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

specification/reservations/resource-manager/Microsoft.Capacity/preview/2020-10-01-preview/examples/CalculateExchange.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,26 @@
5959
},
6060
"reservationsToPurchase": [
6161
{
62+
"properties": {
63+
"sku": {
64+
"name": "Standard_B1ls"
65+
},
66+
"location": "westus",
67+
"properties": {
68+
"reservedResourceType": "VirtualMachines",
69+
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
70+
"term": "P1Y",
71+
"billingPlan": "Upfront",
72+
"quantity": 1,
73+
"displayName": "testDisplayName",
74+
"appliedScopeType": "Shared",
75+
"appliedScopes": null,
76+
"renew": false,
77+
"reservedResourceProperties": {
78+
"instanceFlexibility": "On"
79+
}
80+
}
81+
},
6282
"billingCurrencyTotal": {
6383
"currencyCode": "USD",
6484
"amount": 19800.0

specification/reservations/resource-manager/Microsoft.Capacity/preview/2020-10-01-preview/examples/Exchange.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,27 @@
3333
"reservationsToPurchase": [
3434
{
3535
"reservationOrderId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f",
36+
"reservationId": "/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f/reservations/0c80fceb-305c-40a8-b5a6-11445807bbb3",
37+
"properties": {
38+
"sku": {
39+
"name": "Standard_B1ls"
40+
},
41+
"location": "westus",
42+
"properties": {
43+
"reservedResourceType": "VirtualMachines",
44+
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
45+
"term": "P1Y",
46+
"billingPlan": "Upfront",
47+
"quantity": 1,
48+
"displayName": "testDisplayName",
49+
"appliedScopeType": "Shared",
50+
"appliedScopes": null,
51+
"renew": false,
52+
"reservedResourceProperties": {
53+
"instanceFlexibility": "On"
54+
}
55+
}
56+
},
3657
"billingCurrencyTotal": {
3758
"currencyCode": "USD",
3859
"amount": 19800.0

specification/reservations/resource-manager/Microsoft.Capacity/preview/2020-10-01-preview/reservations.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,9 @@
11691169
"type": "object",
11701170
"description": "Reservation purchase details",
11711171
"properties": {
1172+
"properties": {
1173+
"$ref": "#/definitions/PurchaseRequest"
1174+
},
11721175
"billingCurrencyTotal": {
11731176
"$ref": "#/definitions/Price"
11741177
}
@@ -1182,6 +1185,13 @@
11821185
"type": "string",
11831186
"description": "Fully qualified id of the ReservationOrder being purchased"
11841187
},
1188+
"reservationId": {
1189+
"type": "string",
1190+
"description": "Fully qualified id of the Reservation being purchased. This value is only guaranteed to be non-null if the purchase is successful."
1191+
},
1192+
"properties": {
1193+
"$ref": "#/definitions/PurchaseRequest"
1194+
},
11851195
"billingCurrencyTotal": {
11861196
"$ref": "#/definitions/Price"
11871197
},

0 commit comments

Comments
 (0)