Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
18d9804
Adds base for updating Microsoft.Capacity from version stable/2022-03…
gaoyp830 Nov 11, 2022
3d625d7
Updates readme
gaoyp830 Nov 11, 2022
75bd6d3
Updates API version in new specs and examples
gaoyp830 Nov 11, 2022
3e3a455
2022-02-16-privatepreview CalculateExchange and Exchange, 2022-06-02-…
chchen3 Nov 16, 2022
07a5f72
Add appliedScopeProperties to purchase and patch request. Add reviewD…
chchen3 Nov 17, 2022
a16361a
Add reviewDateTime to Reservation Response
chchen3 Nov 17, 2022
31826f8
Update operationId to clean up doc heirarchy
chchen3 Nov 17, 2022
6bae505
Modified examples to address property changes. Added back quota.json.…
chchen3 Nov 17, 2022
a87efdd
Add 202 headers for Split, Merge, Patch. Add back AppliedScopes in re…
chchen3 Nov 18, 2022
e0f6d61
Add nextlink and totaItems, filter, skip, take to GetCatalogs
chchen3 Nov 19, 2022
9d604ae
Fix lint error
chchen3 Nov 19, 2022
4aa9531
Add back publisherId, offerId, planId for GetCatalog API
chchen3 Nov 19, 2022
00574ca
Revert "Update operationId to clean up doc heirarchy"
chchen3 Dec 5, 2022
47dd92a
Add back expiryDate and purchaseDate
chchen3 Dec 5, 2022
b902872
Revert string to enum change
chchen3 Dec 5, 2022
9a676f0
Remove readOnly for existing definition to fix breaking change
chchen3 Dec 6, 2022
7f20066
change expand to $expand
chchen3 Dec 6, 2022
cdeda23
Address comments from ARMReview
chchen3 Dec 9, 2022
9fc0e07
Revert "Address comments from ARMReview"
chchen3 Dec 9, 2022
22235cb
Address comments for arm review
chchen3 Dec 9, 2022
65d2fee
Added x-ms-pageable for catalog api
chchen3 Dec 9, 2022
2921c73
Fix spellcheck unknown words
chchen3 Dec 9, 2022
110c200
address comments and legacy lint errors and warnings
chchen3 Dec 14, 2022
a1ee7dc
add location for return. address some lint warnings. use proxyResource
chchen3 Dec 15, 2022
79da892
address legacy lint error and warnings
chchen3 Dec 15, 2022
03f5675
Add descriptions for objects and fix typo
chchen3 Dec 16, 2022
d26a64c
fix spell error and missing description
chchen3 Dec 19, 2022
f1ef98d
Fix comment
chchen3 Jan 4, 2023
5e931cc
Add back long running operations true to available scopes
chchen3 Jan 9, 2023
3a35f36
Add more description for appliedScopeProperties
chchen3 Jan 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2022-11-01",
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
"reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"parameters": {
"api-version": "2022-11-01",
"body": {
"properties": {
"reservationsToPurchase": [
{
"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"
}
}
}
],
"savingsPlansToPurchase": [
{
"sku": {
"name": "Compute_Savings_Plan"
},
"properties": {
"displayName": "ComputeSavingsPlan",
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
"term": "P1Y",
"appliedScopeType": "Single",
"appliedScopeProperties": {
"resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"
},
"commitment": {
"currencyCode": "USD",
"amount": 15.23,
"grain": "Hourly"
}
}
}
],
"reservationsToExchange": [
{
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6",
"quantity": 1
}
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188",
"name": "4e2ffff7-b331-4fcb-ab11-b5fa49368188",
"status": "Succeeded",
"properties": {
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081",
"netPayable": {
"currencyCode": "USD",
"amount": 149254.8
},
"refundsTotal": {
"currencyCode": "USD",
"amount": 3960.0
},
"purchasesTotal": {
"currencyCode": "USD",
"amount": 153214.8
},
"policyResult": {
"policyErrors": null
},
"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",
"renew": false,
"reservedResourceProperties": {
"instanceFlexibility": "On"
}
}
},
"billingCurrencyTotal": {
"currencyCode": "USD",
"amount": 19800.0
}
}
],
"savingsPlansToPurchase": [
{
"properties": {
"sku": {
"name": "Compute_Savings_Plan"
},
"properties": {
"displayName": "ComputeSavingsPlan",
"billingScopeId": "/subscriptions/10000000-0000-0000-0000-000000000000",
"term": "P1Y",
"appliedScopeType": "Single",
"appliedScopeProperties": {
"resourceGroupId": "/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"
},
"commitment": {
"currencyCode": "USD",
"amount": 15.23,
"grain": "Hourly"
}
}
},
"billingCurrencyTotal": {
"currencyCode": "USD",
"amount": 133414.8
}
}
],
"reservationsToExchange": [
{
"reservationId": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6",
"quantity": 1,
"billingRefundAmount": {
"currencyCode": "USD",
"amount": 3960.0
},
"billingInformation": {
"billingCurrencyTotalPaidAmount": {
"currencyCode": "USD",
"amount": 153214.8
},
"billingCurrencyProratedAmount": {
"currencyCode": "USD",
"amount": 149254.8
},
"billingCurrencyRemainingCommitmentAmount": {
"currencyCode": "USD",
"amount": 0.0
}
}
}
]
}
}
},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-11-01",
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2022-11-01",
"Retry-After": 5
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"parameters": {
"api-version": "2022-11-01",
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
"body": {
"id": "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004",
"properties": {
"scope": "Reservation",
"reservationToReturn": {
"reservationId": "/providers/microsoft.capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000",
"quantity": 1
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000",
"properties": {
"sessionId": "10000000-aaaa-bbbb-cccc-200000000000",
"quantity": 1,
"billingRefundAmount": {
"currencyCode": "GBP",
"amount": 20.72
},
"pricingRefundAmount": {
"currencyCode": "USD",
"amount": 24.92
},
"policyResult": {
"properties": {
"consumedRefundsTotal": {
"currencyCode": "USD",
"amount": 83.69
},
"maxRefundLimit": {
"currencyCode": "USD",
"amount": 50000.0
},
"policyErrors": [
{
"code": "SelfServiceRefundNotSupported",
"message": "Self Service refunds are currently not supported for this resource, please contact support."
}
]
}
},
"billingInformation": {
"billingPlan": "Upfront",
"completedTransactions": 1,
"totalTransactions": 1,
"billingCurrencyTotalPaidAmount": {
"currencyCode": "GBP",
"amount": 24.0
},
"billingCurrencyProratedAmount": {
"currencyCode": "GBP",
"amount": 3.28
},
"billingCurrencyRemainingCommitmentAmount": {
"currencyCode": "GBP",
"amount": 0.0
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"parameters": {
"api-version": "2022-11-01",
"body": {
"sku": {
"name": "standard_D1"
},
"location": "westus",
"properties": {
"reservedResourceType": "VirtualMachines",
"billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
"term": "P1Y",
"billingPlan": "Monthly",
"quantity": 1,
"displayName": "TestReservationOrder",
"appliedScopes": null,
"appliedScopeType": "Shared",
"reservedResourceProperties": {
"instanceFlexibility": "On"
}
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"billingCurrencyTotal": {
"currencyCode": "USD",
"amount": 46.0
},
"reservationOrderId": "6d9cec54-7de8-abcd-9de7-80f5d634f2d2",
"skuTitle": "Reserved VM Instance, Standard_D1, US West, 1 Year",
"skuDescription": "standard_D1",
"pricingCurrencyTotal": {
"currencyCode": "USD",
"amount": 46.0
},
"paymentSchedule": [
{
"dueDate": "2019-05-14",
"pricingCurrencyTotal": {
"currencyCode": "USD",
"amount": 46
},
"billingCurrencyTotal": {
"currencyCode": "EUR",
"amount": 40
}
},
{
"dueDate": "2019-06-14",
"pricingCurrencyTotal": {
"currencyCode": "USD",
"amount": 46
}
},
{
"dueDate": "2019-07-14",
"pricingCurrencyTotal": {
"currencyCode": "USD",
"amount": 46
}
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2022-11-01",
"reservationOrderId": "a075419f-44cc-497f-b68a-14ee811d48b9",
"body": {
"destinationTenantId": "906655ea-30be-4587-9d12-b50e077b0f32"
}
},
"responses": {
"200": {
"body": {
"reservationOrder": {
"id": "a075419f-44cc-497f-b68a-14ee811d48b9",
"name": "VM_RI_10-02-2020_15-21",
"isSucceeded": true,
"error": "error string"
},
"reservations": [
{
"id": "1f14354c-dc12-4c8d-8090-6f295a3a34aa",
"name": "VM_RI_10-02-2020_15-21",
"isSucceeded": true,
"error": "error string"
}
]
}
}
}
}
Loading