Skip to content

Commit

Permalink
Adding paths from preview versions into new stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
toddm committed Jul 20, 2021
1 parent 55cafc0 commit 193b838
Show file tree
Hide file tree
Showing 6 changed files with 957 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"parameters": {
"api-version": "2021-07-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"
}
}
}
],
"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": 15840.0
},
"refundsTotal": {
"currencyCode": "USD",
"amount": 3960.0
},
"purchasesTotal": {
"currencyCode": "USD",
"amount": 19800.0
},
"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",
"appliedScopes": null,
"renew": false,
"reservedResourceProperties": {
"instanceFlexibility": "On"
}
}
},
"billingCurrencyTotal": {
"currencyCode": "USD",
"amount": 19800.0
}
}
],
"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": 19800.0
},
"billingCurrencyProratedAmount": {
"currencyCode": "USD",
"amount": 15840.0
},
"billingCurrencyRemainingCommitmentAmount": {
"currencyCode": "USD",
"amount": 0.0
}
}
}
]
}
}
},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01",
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01",
"Retry-After": 5
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2021-07-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"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"parameters": {
"api-version": "2021-07-01",
"body": {
"properties": {
"sessionId": "66e2ac8f-439e-4345-8235-6fef07608081"
}
}
},
"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": 15840.0
},
"refundsTotal": {
"currencyCode": "USD",
"amount": 3960.0
},
"purchasesTotal": {
"currencyCode": "USD",
"amount": 19800.0
},
"policyResult": {
"policyErrors": null
},
"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
},
"status": "Succeeded"
}
],
"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": 19800.0
},
"billingCurrencyProratedAmount": {
"currencyCode": "USD",
"amount": 15840.0
},
"billingCurrencyRemainingCommitmentAmount": {
"currencyCode": "USD",
"amount": 0.0
}
},
"status": "Succeeded"
}
]
}
}
},
"202": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01",
"Location": "https://management.azure.com/Microsoft.Capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188?api-version=2021-07-01",
"Retry-After": 5
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2021-07-01",
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da",
"reservationId": "356e7ae4-84d0-4da6-ab4b-d6b94f3557da",
"body": {
"properties": {
"scopes": [
"/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9"
]
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"scopes": [
{
"scope": "/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9",
"valid": true
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-10-01-preview",
"api-version": "2021-07-01",
"reservationOrderId": "276e7ae4-84d0-4da6-ab4b-d6b94f3557da"
},
"responses": {
Expand Down
Loading

0 comments on commit 193b838

Please sign in to comment.