forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Quantum] Add job cost estimate (Azure#16339)
* copy existin api-version * update api-version ref * new feature
- Loading branch information
1 parent
1b64fac
commit 4df4b84
Showing
10 changed files
with
1,262 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...n/quantum/data-plane/Microsoft.Quantum/preview/2021-10-01-preview/examples/jobDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"resourceGroupName": "quantumResourcegroup", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"workspaceName": "quantumworkspace1" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...tion/quantum/data-plane/Microsoft.Quantum/preview/2021-10-01-preview/examples/jobGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"parameters": { | ||
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"resourceGroupName": "quantumResourcegroup", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"workspaceName": "quantumworkspace1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "tabu-demo", | ||
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z", | ||
"cancellationTime": null, | ||
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"creationTime": "2020-09-30T23:57:02.3737928+00:00", | ||
"endExecutionTime": "2020-09-30T23:57:11.6180743Z", | ||
"errorData": null, | ||
"inputDataFormat": "microsoft.qio.v2", | ||
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"inputParams": { | ||
"params": { | ||
"sweeps": 300 | ||
} | ||
}, | ||
"metadata": null, | ||
"outputDataFormat": "microsoft.qio-results.v2", | ||
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"providerId": "microsoft", | ||
"status": "Succeeded", | ||
"target": "microsoft.tabu.cpu", | ||
"costEstimate": { | ||
"currency": "USD", | ||
"events": [ | ||
{ | ||
"dimensionId": "jobhours", | ||
"dimensionName": "Job Hours", | ||
"measureUnit": "Hours", | ||
"amountBilled": 0.5, | ||
"amountConsumed": 0.5, | ||
"unitPrice": 0.01 | ||
} | ||
], | ||
"estimatedTotal": 0.005 | ||
}, | ||
"tags": [ | ||
"tag1", | ||
"new" | ||
] | ||
} | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...ion/quantum/data-plane/Microsoft.Quantum/preview/2021-10-01-preview/examples/jobList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "quantumResourcegroup", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"workspaceName": "quantumworkspace1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "tabu-demo", | ||
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z", | ||
"cancellationTime": null, | ||
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"creationTime": "2020-09-30T23:57:02.3737928+00:00", | ||
"endExecutionTime": "2020-09-30T23:57:11.6180743Z", | ||
"errorData": null, | ||
"inputDataFormat": "microsoft.qio.v2", | ||
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"inputParams": { | ||
"params": { | ||
"sweeps": 300 | ||
} | ||
}, | ||
"metadata": null, | ||
"outputDataFormat": "microsoft.qio-results.v2", | ||
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"providerId": "microsoft", | ||
"status": "Succeeded", | ||
"target": "microsoft.tabu.cpu", | ||
"tags": [ | ||
"tag1" | ||
] | ||
}, | ||
{ | ||
"id": "ab1aeddd-f191-4884-b8a9-13cdfa020fc6", | ||
"name": "Superposition: true", | ||
"beginExecutionTime": "2020-09-18T23:25:45.781389Z", | ||
"cancellationTime": null, | ||
"containerUri": "https://storage.blob.core.windows.net/quantum-job-ab1aeddd-f191-4884-b8a9-13cdfa020fc6?sv=2019-02-02&sr=c&sig=xhQtyt7Forj1HtpEkBTJTXAMTuuEvN0dTssv2OZlUNk%3D&se=2020-09-25T23%3A25%3A32Z&sp=rcw", | ||
"creationTime": "2020-09-18T23:25:33.5541484+00:00", | ||
"endExecutionTime": "2020-09-18T23:25:53.911837Z", | ||
"errorData": null, | ||
"inputDataFormat": "microsoft.qci-ir.v1", | ||
"inputDataUri": "https://storage.blob.core.windows.net/quantum-job-ab1aeddd-f191-4884-b8a9-13cdfa020fc6/inputData?sv=2019-02-02&sr=b&sig=nDMUBPqNskFDLq591NGBE4nVnCiQhXYQBhSiU4xseVY%3D&se=2020-09-19T00%3A25%3A33Z&sp=rcw", | ||
"inputParams": { | ||
"shots": "10" | ||
}, | ||
"metadata": { | ||
"entryPointInput": "true", | ||
"outputMappingBlobUri": "https://storage.blob.core.windows.net/quantum-job-ab1aeddd-f191-4884-b8a9-13cdfa020fc6/mappingData?sv=2019-02-02&sr=b&sig=k6Gvd396GUtBxJasU9muSzkYXPQb8utASRSz932MFiw%3D&se=2020-09-19T00%3A25%3A33Z&sp=rcw" | ||
}, | ||
"outputDataFormat": "microsoft.quantum-results.v1", | ||
"outputDataUri": "https://storage.blob.core.windows.net/quantum-job-ab1aeddd-f191-4884-b8a9-13cdfa020fc6/outputData?sv=2019-02-02&sr=c&sig=xhQtyt7Forj1HtpEkBTJTXAMTuuEvN0dTssv2OZlUNk%3D&se=2020-09-25T23%3A25%3A32Z&sp=rcw", | ||
"providerId": "qci", | ||
"status": "Succeeded", | ||
"target": "qci.simulator", | ||
"tags": [ | ||
"tag2" | ||
] | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...on/quantum/data-plane/Microsoft.Quantum/preview/2021-10-01-preview/examples/jobPatch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"parameters": { | ||
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"resourceGroupName": "quantumResourcegroup", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"workspaceName": "quantumworkspace1", | ||
"patchJob": [ | ||
{ | ||
"op": "add", | ||
"path": "/tags/-", | ||
"value": "new_tag" | ||
}, | ||
{ | ||
"op": "remove", | ||
"path": "/tags/0" | ||
} | ||
] | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "tabu-demo", | ||
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z", | ||
"cancellationTime": null, | ||
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"creationTime": "2020-09-30T23:57:02.3737928+00:00", | ||
"endExecutionTime": "2020-09-30T23:57:11.6180743Z", | ||
"errorData": null, | ||
"inputDataFormat": "microsoft.qio.v2", | ||
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"inputParams": { | ||
"params": { | ||
"sweeps": 300 | ||
} | ||
}, | ||
"metadata": null, | ||
"outputDataFormat": "microsoft.qio-results.v2", | ||
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"providerId": "microsoft", | ||
"status": "Succeeded", | ||
"target": "microsoft.tabu.cpu", | ||
"tags": [ | ||
"tag2", | ||
"new_tag" | ||
] | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
...tion/quantum/data-plane/Microsoft.Quantum/preview/2021-10-01-preview/examples/jobPut.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"parameters": { | ||
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"resourceGroupName": "quantumResourcegroup", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"workspaceName": "quantumworkspace1", | ||
"job": { | ||
"name": "tabu-demo", | ||
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"inputDataFormat": "microsoft.qio.v2", | ||
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"inputParams": { | ||
"params": { | ||
"sweeps": 300 | ||
} | ||
}, | ||
"outputDataFormat": "microsoft.qio-results.v2", | ||
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"providerId": "microsoft", | ||
"target": "microsoft.tabu.cpu", | ||
"tags": [ | ||
"tag1", | ||
"tag_2" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "tabu-demo", | ||
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z", | ||
"cancellationTime": null, | ||
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"creationTime": "2020-09-30T23:57:02.3737928+00:00", | ||
"endExecutionTime": "2020-09-30T23:57:11.6180743Z", | ||
"errorData": null, | ||
"inputDataFormat": "microsoft.qio.v2", | ||
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"inputParams": { | ||
"params": { | ||
"sweeps": 300 | ||
} | ||
}, | ||
"metadata": null, | ||
"outputDataFormat": "microsoft.qio-results.v2", | ||
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"providerId": "microsoft", | ||
"status": "Succeeded", | ||
"target": "microsoft.tabu.cpu", | ||
"tags": [ | ||
"tag1", | ||
"tag_2" | ||
] | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "tabu-demo", | ||
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3", | ||
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z", | ||
"cancellationTime": null, | ||
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"creationTime": "2020-09-30T23:57:02.3737928+00:00", | ||
"endExecutionTime": "2020-09-30T23:57:11.6180743Z", | ||
"errorData": null, | ||
"inputDataFormat": "microsoft.qio.v2", | ||
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"inputParams": { | ||
"params": { | ||
"sweeps": 300 | ||
} | ||
}, | ||
"metadata": null, | ||
"outputDataFormat": "microsoft.qio-results.v2", | ||
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw", | ||
"providerId": "microsoft", | ||
"status": "Succeeded", | ||
"target": "microsoft.tabu.cpu", | ||
"tags": [ | ||
"tag1", | ||
"tag_2" | ||
] | ||
} | ||
} | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
...ntum/data-plane/Microsoft.Quantum/preview/2021-10-01-preview/examples/providerStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "quantumResourcegroup", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"workspaceName": "quantumworkspace1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "Microsoft", | ||
"currentAvailability": "Available", | ||
"targets": [ | ||
{ | ||
"id": "microsoft.paralleltempering-parameterfree.cpu", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": null | ||
}, | ||
{ | ||
"id": "microsoft.paralleltempering.cpu", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": null | ||
}, | ||
{ | ||
"id": "microsoft.simulatedannealing-parameterfree.cpu", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": null | ||
}, | ||
{ | ||
"id": "microsoft.simulatedannealing.cpu", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": null | ||
}, | ||
{ | ||
"id": "microsoft.tabu-parameterfree.cpu", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": null | ||
}, | ||
{ | ||
"id": "microsoft.tabu.cpu", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": null | ||
}, | ||
{ | ||
"id": "microsoft.simulatedannealing-parameterfree.fpga", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": null | ||
}, | ||
{ | ||
"id": "microsoft.simulatedannealing.fpga", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": null | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "ionq", | ||
"currentAvailability": "Available", | ||
"targets": [ | ||
{ | ||
"id": "ionq.qpu", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 1679, | ||
"statusPage": "https://status.ionq.co" | ||
}, | ||
{ | ||
"id": "ionq.simulator", | ||
"currentAvailability": "Available", | ||
"averageQueueTime": 0, | ||
"statusPage": "https://status.ionq.co" | ||
} | ||
] | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.