Skip to content

Commit 58b497e

Browse files
chchen3aviyerMSFT
authored andcommitted
Patch reservations microsoft.capacity 2022 11 01 (Azure#22622)
* Add 200 responses for Return to fix SDK * Add additional non required property and extra info in description * Add p3Y, p5Y for msrp response. Fix typo * update example to use reservationOrder call * remove instanceFlexibility which will be deprecated in the near future * add final state schema in long running operations field instead of introduce 200 * add 200 back since azure cli and powershell currently still doesn't support final-state-schema
1 parent a3d2d90 commit 58b497e

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/Return.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,33 @@
1515
}
1616
},
1717
"responses": {
18+
"200": {
19+
"body": {
20+
"id": "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004",
21+
"type": "Microsoft.Capacity/reservationOrders",
22+
"name": "50000000-aaaa-bbbb-cccc-100000000004",
23+
"etag": 7,
24+
"properties": {
25+
"displayName": "cabri",
26+
"requestDateTime": "2017-08-30T03:49:19.0252126Z",
27+
"createdDateTime": "2017-08-30T03:51:49.8083758Z",
28+
"expiryDate": "2018-08-30",
29+
"expiryDateTime": "2018-08-30T03:51:49.8083758Z",
30+
"term": "P1Y",
31+
"billingPlan": "Monthly",
32+
"provisioningState": "Succeeded",
33+
"reservations": [
34+
{
35+
"id": "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000"
36+
}
37+
],
38+
"originalQuantity": 7
39+
}
40+
}
41+
},
1842
"202": {
1943
"headers": {
20-
"Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000?api-version=2022-11-01"
44+
"Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/50000000-aaaa-bbbb-cccc-100000000004?api-version=2022-11-01"
2145
},
2246
"body": {
2347
"id": "/providers/Microsoft.Capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000",

specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/reservations.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,12 @@
867867
"Return"
868868
],
869869
"responses": {
870+
"200": {
871+
"description": "The resource has been returned",
872+
"schema": {
873+
"$ref": "#/definitions/ReservationOrderResponse"
874+
}
875+
},
870876
"202": {
871877
"description": "Detailed refund info of a reservation",
872878
"headers": {
@@ -1586,6 +1592,16 @@
15861592
"type": "object",
15871593
"$ref": "#/definitions/Price",
15881594
"description": "Amount in pricing currency. Tax not included."
1595+
},
1596+
"p3Y": {
1597+
"type": "object",
1598+
"$ref": "#/definitions/Price",
1599+
"description": "Amount in pricing currency. Tax not included."
1600+
},
1601+
"p5Y": {
1602+
"type": "object",
1603+
"$ref": "#/definitions/Price",
1604+
"description": "Amount in pricing currency. Tax not included."
15891605
}
15901606
}
15911607
},
@@ -3258,7 +3274,7 @@
32583274
},
32593275
"AppliedScopes": {
32603276
"type": "array",
3261-
"description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.",
3277+
"description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType.",
32623278
"items": {
32633279
"type": "string",
32643280
"minItems": 1,

0 commit comments

Comments
 (0)