Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch reservations microsoft.capacity 2022 11 01 #22622

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,33 @@
}
},
"responses": {
"200": {
"body": {
"id": "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004",
"type": "Microsoft.Capacity/reservationOrders",
"name": "50000000-aaaa-bbbb-cccc-100000000004",
"etag": 7,
"properties": {
"displayName": "cabri",
"requestDateTime": "2017-08-30T03:49:19.0252126Z",
"createdDateTime": "2017-08-30T03:51:49.8083758Z",
"expiryDate": "2018-08-30",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not returning expiryDate in getOrder api I believe, can you remove this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are now adding in the response

"expiryDateTime": "2018-08-30T03:51:49.8083758Z",
"term": "P1Y",
"billingPlan": "Monthly",
"provisioningState": "Succeeded",
"reservations": [
{
"id": "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000"
}
],
"originalQuantity": 7
}
}
},
"202": {
"headers": {
"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"
"Location": "https://management.azure.com/providers/Microsoft.Capacity/reservationorders/50000000-aaaa-bbbb-cccc-100000000004?api-version=2022-11-01"
},
"body": {
"id": "/providers/Microsoft.Capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,12 @@
"Return"
],
"responses": {
"200": {
"description": "The resource has been returned",
"schema": {
"$ref": "#/definitions/ReservationOrderResponse"
}
},
"202": {
"description": "Detailed refund info of a reservation",
"headers": {
Expand Down Expand Up @@ -1586,6 +1592,16 @@
"type": "object",
"$ref": "#/definitions/Price",
"description": "Amount in pricing currency. Tax not included."
},
"p3Y": {
"type": "object",
"$ref": "#/definitions/Price",
"description": "Amount in pricing currency. Tax not included."
},
"p5Y": {
"type": "object",
"$ref": "#/definitions/Price",
"description": "Amount in pricing currency. Tax not included."
}
}
},
Expand Down Expand Up @@ -3258,7 +3274,7 @@
},
"AppliedScopes": {
"type": "array",
"description": "List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.",
"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.",
"items": {
"type": "string",
"minItems": 1,
Expand Down