@azure/quantum-jobs 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{LICENSE.txt → LICENSE} +4 -4
- package/README.md +247 -98
- package/dist/browser/index.d.ts +4 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +11 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/models/index.d.ts +320 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +58 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.d.ts +13 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +141 -140
- package/dist/browser/models/mappers.js.map +1 -0
- package/dist/browser/models/parameters.d.ts +12 -0
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +37 -37
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +5 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +12 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/dist/browser/operations/jobs.d.ts +51 -0
- package/dist/browser/operations/jobs.d.ts.map +1 -0
- package/dist/browser/operations/jobs.js +209 -0
- package/dist/browser/operations/jobs.js.map +1 -0
- package/dist/browser/operations/providers.d.ts +32 -0
- package/dist/browser/operations/providers.d.ts.map +1 -0
- package/dist/browser/operations/providers.js +118 -0
- package/dist/browser/operations/providers.js.map +1 -0
- package/dist/browser/operations/quotas.d.ts +32 -0
- package/dist/browser/operations/quotas.d.ts.map +1 -0
- package/dist/browser/operations/quotas.js +118 -0
- package/dist/browser/operations/quotas.js.map +1 -0
- package/dist/browser/operations/storage.d.ts +20 -0
- package/dist/browser/operations/storage.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/storage.js +33 -35
- package/dist/browser/operations/storage.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +5 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +12 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/operationsInterfaces/jobs.d.ts +30 -0
- package/dist/browser/operationsInterfaces/jobs.d.ts.map +1 -0
- package/{dist-esm/src/models/index.js → dist/browser/operationsInterfaces/jobs.js} +1 -1
- package/dist/browser/operationsInterfaces/jobs.js.map +1 -0
- package/dist/browser/operationsInterfaces/providers.d.ts +11 -0
- package/dist/browser/operationsInterfaces/providers.d.ts.map +1 -0
- package/{dist-esm/src/operations/index.js → dist/browser/operationsInterfaces/providers.js} +2 -5
- package/dist/browser/operationsInterfaces/providers.js.map +1 -0
- package/dist/browser/operationsInterfaces/quotas.d.ts +11 -0
- package/dist/browser/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/quotas.js +9 -0
- package/dist/browser/operationsInterfaces/quotas.js.map +1 -0
- package/dist/browser/operationsInterfaces/storage.d.ts +12 -0
- package/dist/browser/operationsInterfaces/storage.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/storage.js +9 -0
- package/dist/browser/operationsInterfaces/storage.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.d.ts +13 -0
- package/dist/browser/pagingHelper.d.ts.map +1 -0
- package/dist/browser/pagingHelper.js +30 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/browser/quantumJobClient.d.ts +25 -0
- package/dist/browser/quantumJobClient.d.ts.map +1 -0
- package/dist/browser/quantumJobClient.js +93 -0
- package/dist/browser/quantumJobClient.js.map +1 -0
- package/dist/browser/tracing.d.ts +2 -0
- package/dist/browser/tracing.d.ts.map +1 -0
- package/dist/browser/tracing.js +14 -0
- package/dist/browser/tracing.js.map +1 -0
- package/dist/commonjs/index.d.ts +4 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +16 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +320 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +61 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +13 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +414 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +12 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +104 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +5 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +15 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/jobs.d.ts +51 -0
- package/dist/commonjs/operations/jobs.d.ts.map +1 -0
- package/dist/commonjs/operations/jobs.js +214 -0
- package/dist/commonjs/operations/jobs.js.map +1 -0
- package/dist/commonjs/operations/providers.d.ts +32 -0
- package/dist/commonjs/operations/providers.d.ts.map +1 -0
- package/dist/commonjs/operations/providers.js +123 -0
- package/dist/commonjs/operations/providers.js.map +1 -0
- package/dist/commonjs/operations/quotas.d.ts +32 -0
- package/dist/commonjs/operations/quotas.d.ts.map +1 -0
- package/dist/commonjs/operations/quotas.js +123 -0
- package/dist/commonjs/operations/quotas.js.map +1 -0
- package/dist/commonjs/operations/storage.d.ts +20 -0
- package/dist/commonjs/operations/storage.d.ts.map +1 -0
- package/dist/commonjs/operations/storage.js +63 -0
- package/dist/commonjs/operations/storage.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +15 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/jobs.d.ts +30 -0
- package/dist/commonjs/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/jobs.js +10 -0
- package/dist/commonjs/operationsInterfaces/jobs.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/providers.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/providers.js +10 -0
- package/dist/commonjs/operationsInterfaces/providers.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotas.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/quotas.js +10 -0
- package/dist/commonjs/operationsInterfaces/quotas.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/storage.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/storage.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/storage.js +10 -0
- package/dist/commonjs/operationsInterfaces/storage.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/quantumJobClient.d.ts +25 -0
- package/dist/commonjs/quantumJobClient.d.ts.map +1 -0
- package/dist/commonjs/quantumJobClient.js +98 -0
- package/dist/commonjs/quantumJobClient.js.map +1 -0
- package/dist/commonjs/tracing.d.ts +2 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +17 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/index.d.ts +320 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +58 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +13 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +411 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +12 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +101 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +5 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +12 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/jobs.d.ts +51 -0
- package/dist/esm/operations/jobs.d.ts.map +1 -0
- package/dist/esm/operations/jobs.js +209 -0
- package/dist/esm/operations/jobs.js.map +1 -0
- package/dist/esm/operations/providers.d.ts +32 -0
- package/dist/esm/operations/providers.d.ts.map +1 -0
- package/dist/esm/operations/providers.js +118 -0
- package/dist/esm/operations/providers.js.map +1 -0
- package/dist/esm/operations/quotas.d.ts +32 -0
- package/dist/esm/operations/quotas.d.ts.map +1 -0
- package/dist/esm/operations/quotas.js +118 -0
- package/dist/esm/operations/quotas.js.map +1 -0
- package/dist/esm/operations/storage.d.ts +20 -0
- package/dist/esm/operations/storage.d.ts.map +1 -0
- package/dist/esm/operations/storage.js +58 -0
- package/dist/esm/operations/storage.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +5 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +12 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/jobs.d.ts +30 -0
- package/dist/esm/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/jobs.js +9 -0
- package/dist/esm/operationsInterfaces/jobs.js.map +1 -0
- package/dist/esm/operationsInterfaces/providers.d.ts +11 -0
- package/dist/esm/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/providers.js +9 -0
- package/dist/esm/operationsInterfaces/providers.js.map +1 -0
- package/dist/esm/operationsInterfaces/quotas.d.ts +11 -0
- package/dist/esm/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/quotas.js +9 -0
- package/dist/esm/operationsInterfaces/quotas.js.map +1 -0
- package/dist/esm/operationsInterfaces/storage.d.ts +12 -0
- package/dist/esm/operationsInterfaces/storage.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/storage.js +9 -0
- package/dist/esm/operationsInterfaces/storage.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/quantumJobClient.d.ts +25 -0
- package/dist/esm/quantumJobClient.d.ts.map +1 -0
- package/dist/esm/quantumJobClient.js +93 -0
- package/dist/esm/quantumJobClient.js.map +1 -0
- package/dist/esm/tracing.d.ts +2 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/tracing.js +14 -0
- package/dist/esm/tracing.js.map +1 -0
- package/dist/react-native/index.d.ts +4 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +11 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/models/index.d.ts +320 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +58 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +13 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +411 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +12 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +101 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +5 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +12 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/jobs.d.ts +51 -0
- package/dist/react-native/operations/jobs.d.ts.map +1 -0
- package/dist/react-native/operations/jobs.js +209 -0
- package/dist/react-native/operations/jobs.js.map +1 -0
- package/dist/react-native/operations/providers.d.ts +32 -0
- package/dist/react-native/operations/providers.d.ts.map +1 -0
- package/dist/react-native/operations/providers.js +118 -0
- package/dist/react-native/operations/providers.js.map +1 -0
- package/dist/react-native/operations/quotas.d.ts +32 -0
- package/dist/react-native/operations/quotas.d.ts.map +1 -0
- package/dist/react-native/operations/quotas.js +118 -0
- package/dist/react-native/operations/quotas.js.map +1 -0
- package/dist/react-native/operations/storage.d.ts +20 -0
- package/dist/react-native/operations/storage.d.ts.map +1 -0
- package/dist/react-native/operations/storage.js +58 -0
- package/dist/react-native/operations/storage.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +12 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/jobs.d.ts +30 -0
- package/dist/react-native/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/jobs.js +9 -0
- package/dist/react-native/operationsInterfaces/jobs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/providers.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/providers.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/providers.js +9 -0
- package/dist/react-native/operationsInterfaces/providers.js.map +1 -0
- package/dist/react-native/operationsInterfaces/quotas.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/quotas.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/quotas.js +9 -0
- package/dist/react-native/operationsInterfaces/quotas.js.map +1 -0
- package/dist/react-native/operationsInterfaces/storage.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/storage.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/storage.js +9 -0
- package/dist/react-native/operationsInterfaces/storage.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/quantumJobClient.d.ts +25 -0
- package/dist/react-native/quantumJobClient.d.ts.map +1 -0
- package/dist/react-native/quantumJobClient.js +93 -0
- package/dist/react-native/quantumJobClient.js.map +1 -0
- package/dist/react-native/tracing.d.ts +2 -0
- package/dist/react-native/tracing.d.ts.map +1 -0
- package/dist/react-native/tracing.js +14 -0
- package/dist/react-native/tracing.js.map +1 -0
- package/package.json +90 -92
- package/CHANGELOG.md +0 -5
- package/dist/index.js +0 -1309
- package/dist/index.js.map +0 -1
- package/dist-esm/src/index.js +0 -13
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/jobs.js +0 -280
- package/dist-esm/src/operations/jobs.js.map +0 -1
- package/dist-esm/src/operations/providers.js +0 -182
- package/dist-esm/src/operations/providers.js.map +0 -1
- package/dist-esm/src/operations/quotas.js +0 -182
- package/dist-esm/src/operations/quotas.js.map +0 -1
- package/dist-esm/src/operations/storage.js.map +0 -1
- package/dist-esm/src/quantumJobClient.js +0 -33
- package/dist-esm/src/quantumJobClient.js.map +0 -1
- package/dist-esm/src/quantumJobClientContext.js +0 -59
- package/dist-esm/src/quantumJobClientContext.js.map +0 -1
- package/types/latest/quantum-jobs.d.ts +0 -534
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import type * as coreClient from "@azure/core-client";
|
|
2
|
+
/** List of job details. */
|
|
3
|
+
export interface JobDetailsList {
|
|
4
|
+
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
5
|
+
readonly value?: JobDetails[];
|
|
6
|
+
/** Total records count number. */
|
|
7
|
+
count?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Link to the next page of results.
|
|
10
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
11
|
+
*/
|
|
12
|
+
readonly nextLink?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Job details. */
|
|
15
|
+
export interface JobDetails {
|
|
16
|
+
/** The job id. */
|
|
17
|
+
id?: string;
|
|
18
|
+
/** The job name. Is not required for the name to be unique and it's only used for display purposes. */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** The blob container SAS uri, the container is used to host job data. */
|
|
21
|
+
containerUri: string;
|
|
22
|
+
/** The input blob SAS uri, if specified, it will override the default input blob in the container. */
|
|
23
|
+
inputDataUri?: string;
|
|
24
|
+
/** The format of the input data. */
|
|
25
|
+
inputDataFormat: string;
|
|
26
|
+
/** The input parameters for the job. JSON object used by the target solver. It is expected that the size of this object is small and only used to specify parameters for the execution target, not the input data. */
|
|
27
|
+
inputParams?: Record<string, unknown>;
|
|
28
|
+
/** The unique identifier for the provider. */
|
|
29
|
+
providerId: string;
|
|
30
|
+
/** The target identifier to run the job. */
|
|
31
|
+
target: string;
|
|
32
|
+
/** The job metadata. Metadata provides client the ability to store client-specific information */
|
|
33
|
+
metadata?: {
|
|
34
|
+
[propertyName: string]: string;
|
|
35
|
+
};
|
|
36
|
+
/** The output blob SAS uri. When a job finishes successfully, results will be uploaded to this blob. */
|
|
37
|
+
outputDataUri?: string;
|
|
38
|
+
/** The format of the output data. */
|
|
39
|
+
outputDataFormat?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The job status.
|
|
42
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
43
|
+
*/
|
|
44
|
+
readonly status?: JobStatus;
|
|
45
|
+
/**
|
|
46
|
+
* The creation time of the job.
|
|
47
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
48
|
+
*/
|
|
49
|
+
readonly creationTime?: Date;
|
|
50
|
+
/**
|
|
51
|
+
* The time when the job began execution.
|
|
52
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
53
|
+
*/
|
|
54
|
+
readonly beginExecutionTime?: Date;
|
|
55
|
+
/**
|
|
56
|
+
* The time when the job finished execution.
|
|
57
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
58
|
+
*/
|
|
59
|
+
readonly endExecutionTime?: Date;
|
|
60
|
+
/**
|
|
61
|
+
* The time when a job was successfully cancelled.
|
|
62
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
63
|
+
*/
|
|
64
|
+
readonly cancellationTime?: Date;
|
|
65
|
+
/**
|
|
66
|
+
* The error data for the job. This is expected only when Status 'Failed'.
|
|
67
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
68
|
+
*/
|
|
69
|
+
readonly errorData?: ErrorData;
|
|
70
|
+
}
|
|
71
|
+
/** An error response from Azure. */
|
|
72
|
+
export interface ErrorData {
|
|
73
|
+
/** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */
|
|
74
|
+
code?: string;
|
|
75
|
+
/** A message describing the error, intended to be suitable for displaying in a user interface. */
|
|
76
|
+
message?: string;
|
|
77
|
+
}
|
|
78
|
+
/** Error information returned by the API */
|
|
79
|
+
export interface RestError {
|
|
80
|
+
/** An error response from Azure. */
|
|
81
|
+
error?: ErrorData;
|
|
82
|
+
}
|
|
83
|
+
/** Providers status. */
|
|
84
|
+
export interface ProviderStatusList {
|
|
85
|
+
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
86
|
+
readonly value?: ProviderStatus[];
|
|
87
|
+
/**
|
|
88
|
+
* Link to the next page of results.
|
|
89
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
90
|
+
*/
|
|
91
|
+
readonly nextLink?: string;
|
|
92
|
+
}
|
|
93
|
+
/** Providers status. */
|
|
94
|
+
export interface ProviderStatus {
|
|
95
|
+
/**
|
|
96
|
+
* Provider id.
|
|
97
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
98
|
+
*/
|
|
99
|
+
readonly id?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Provider availability.
|
|
102
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
103
|
+
*/
|
|
104
|
+
readonly currentAvailability?: ProviderAvailability;
|
|
105
|
+
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
106
|
+
readonly targets?: TargetStatus[];
|
|
107
|
+
}
|
|
108
|
+
/** Target status. */
|
|
109
|
+
export interface TargetStatus {
|
|
110
|
+
/**
|
|
111
|
+
* Target id.
|
|
112
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
113
|
+
*/
|
|
114
|
+
readonly id?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Target availability.
|
|
117
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
118
|
+
*/
|
|
119
|
+
readonly currentAvailability?: TargetAvailability;
|
|
120
|
+
/**
|
|
121
|
+
* Average queue time in seconds.
|
|
122
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
123
|
+
*/
|
|
124
|
+
readonly averageQueueTime?: number;
|
|
125
|
+
/**
|
|
126
|
+
* A page with detailed status of the provider.
|
|
127
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
128
|
+
*/
|
|
129
|
+
readonly statusPage?: string;
|
|
130
|
+
}
|
|
131
|
+
/** Blob details. */
|
|
132
|
+
export interface BlobDetails {
|
|
133
|
+
/** The container name. */
|
|
134
|
+
containerName: string;
|
|
135
|
+
/** The blob name. */
|
|
136
|
+
blobName?: string;
|
|
137
|
+
}
|
|
138
|
+
/** Get SAS URL operation response. */
|
|
139
|
+
export interface SasUriResponse {
|
|
140
|
+
/** A URL with a SAS token to upload a blob for execution in the given workspace. */
|
|
141
|
+
sasUri?: string;
|
|
142
|
+
}
|
|
143
|
+
/** List of quotas. */
|
|
144
|
+
export interface QuotaList {
|
|
145
|
+
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
146
|
+
readonly value?: Quota[];
|
|
147
|
+
/**
|
|
148
|
+
* Link to the next page of results.
|
|
149
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
150
|
+
*/
|
|
151
|
+
readonly nextLink?: string;
|
|
152
|
+
}
|
|
153
|
+
/** Quota information. */
|
|
154
|
+
export interface Quota {
|
|
155
|
+
/** The name of the dimension associated with the quota. */
|
|
156
|
+
dimension?: string;
|
|
157
|
+
/** The scope at which the quota is applied. */
|
|
158
|
+
scope?: DimensionScope;
|
|
159
|
+
/** The unique identifier for the provider. */
|
|
160
|
+
providerId?: string;
|
|
161
|
+
/** The amount of the usage that has been applied for the current period. */
|
|
162
|
+
utilization?: number;
|
|
163
|
+
/** The amount of the usage that has been reserved but not applied for the current period. */
|
|
164
|
+
holds?: number;
|
|
165
|
+
/** The maximum amount of usage allowed for the current period. */
|
|
166
|
+
limit?: number;
|
|
167
|
+
/** The time period in which the quota's underlying meter is accumulated. Based on calendar year. 'None' is used for concurrent quotas. */
|
|
168
|
+
period?: MeterPeriod;
|
|
169
|
+
}
|
|
170
|
+
/** Known values of {@link JobStatus} that the service accepts. */
|
|
171
|
+
export declare enum KnownJobStatus {
|
|
172
|
+
/** Waiting */
|
|
173
|
+
Waiting = "Waiting",
|
|
174
|
+
/** Executing */
|
|
175
|
+
Executing = "Executing",
|
|
176
|
+
/** Succeeded */
|
|
177
|
+
Succeeded = "Succeeded",
|
|
178
|
+
/** Failed */
|
|
179
|
+
Failed = "Failed",
|
|
180
|
+
/** Cancelled */
|
|
181
|
+
Cancelled = "Cancelled"
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Defines values for JobStatus. \
|
|
185
|
+
* {@link KnownJobStatus} can be used interchangeably with JobStatus,
|
|
186
|
+
* this enum contains the known values that the service supports.
|
|
187
|
+
* ### Known values supported by the service
|
|
188
|
+
* **Waiting** \
|
|
189
|
+
* **Executing** \
|
|
190
|
+
* **Succeeded** \
|
|
191
|
+
* **Failed** \
|
|
192
|
+
* **Cancelled**
|
|
193
|
+
*/
|
|
194
|
+
export type JobStatus = string;
|
|
195
|
+
/** Known values of {@link ProviderAvailability} that the service accepts. */
|
|
196
|
+
export declare enum KnownProviderAvailability {
|
|
197
|
+
/** Available */
|
|
198
|
+
Available = "Available",
|
|
199
|
+
/** Degraded */
|
|
200
|
+
Degraded = "Degraded",
|
|
201
|
+
/** Unavailable */
|
|
202
|
+
Unavailable = "Unavailable"
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Defines values for ProviderAvailability. \
|
|
206
|
+
* {@link KnownProviderAvailability} can be used interchangeably with ProviderAvailability,
|
|
207
|
+
* this enum contains the known values that the service supports.
|
|
208
|
+
* ### Known values supported by the service
|
|
209
|
+
* **Available** \
|
|
210
|
+
* **Degraded** \
|
|
211
|
+
* **Unavailable**
|
|
212
|
+
*/
|
|
213
|
+
export type ProviderAvailability = string;
|
|
214
|
+
/** Known values of {@link TargetAvailability} that the service accepts. */
|
|
215
|
+
export declare enum KnownTargetAvailability {
|
|
216
|
+
/** Available */
|
|
217
|
+
Available = "Available",
|
|
218
|
+
/** Degraded */
|
|
219
|
+
Degraded = "Degraded",
|
|
220
|
+
/** Unavailable */
|
|
221
|
+
Unavailable = "Unavailable"
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Defines values for TargetAvailability. \
|
|
225
|
+
* {@link KnownTargetAvailability} can be used interchangeably with TargetAvailability,
|
|
226
|
+
* this enum contains the known values that the service supports.
|
|
227
|
+
* ### Known values supported by the service
|
|
228
|
+
* **Available** \
|
|
229
|
+
* **Degraded** \
|
|
230
|
+
* **Unavailable**
|
|
231
|
+
*/
|
|
232
|
+
export type TargetAvailability = string;
|
|
233
|
+
/** Known values of {@link DimensionScope} that the service accepts. */
|
|
234
|
+
export declare enum KnownDimensionScope {
|
|
235
|
+
/** Workspace */
|
|
236
|
+
Workspace = "Workspace",
|
|
237
|
+
/** Subscription */
|
|
238
|
+
Subscription = "Subscription"
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Defines values for DimensionScope. \
|
|
242
|
+
* {@link KnownDimensionScope} can be used interchangeably with DimensionScope,
|
|
243
|
+
* this enum contains the known values that the service supports.
|
|
244
|
+
* ### Known values supported by the service
|
|
245
|
+
* **Workspace** \
|
|
246
|
+
* **Subscription**
|
|
247
|
+
*/
|
|
248
|
+
export type DimensionScope = string;
|
|
249
|
+
/** Known values of {@link MeterPeriod} that the service accepts. */
|
|
250
|
+
export declare enum KnownMeterPeriod {
|
|
251
|
+
/** None */
|
|
252
|
+
None = "None",
|
|
253
|
+
/** Monthly */
|
|
254
|
+
Monthly = "Monthly"
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Defines values for MeterPeriod. \
|
|
258
|
+
* {@link KnownMeterPeriod} can be used interchangeably with MeterPeriod,
|
|
259
|
+
* this enum contains the known values that the service supports.
|
|
260
|
+
* ### Known values supported by the service
|
|
261
|
+
* **None** \
|
|
262
|
+
* **Monthly**
|
|
263
|
+
*/
|
|
264
|
+
export type MeterPeriod = string;
|
|
265
|
+
/** Optional parameters. */
|
|
266
|
+
export interface JobsListOptionalParams extends coreClient.OperationOptions {
|
|
267
|
+
}
|
|
268
|
+
/** Contains response data for the list operation. */
|
|
269
|
+
export type JobsListResponse = JobDetailsList;
|
|
270
|
+
/** Optional parameters. */
|
|
271
|
+
export interface JobsGetOptionalParams extends coreClient.OperationOptions {
|
|
272
|
+
}
|
|
273
|
+
/** Contains response data for the get operation. */
|
|
274
|
+
export type JobsGetResponse = JobDetails;
|
|
275
|
+
/** Optional parameters. */
|
|
276
|
+
export interface JobsCreateOptionalParams extends coreClient.OperationOptions {
|
|
277
|
+
}
|
|
278
|
+
/** Contains response data for the create operation. */
|
|
279
|
+
export type JobsCreateResponse = JobDetails;
|
|
280
|
+
/** Optional parameters. */
|
|
281
|
+
export interface JobsCancelOptionalParams extends coreClient.OperationOptions {
|
|
282
|
+
}
|
|
283
|
+
/** Optional parameters. */
|
|
284
|
+
export interface JobsListNextOptionalParams extends coreClient.OperationOptions {
|
|
285
|
+
}
|
|
286
|
+
/** Contains response data for the listNext operation. */
|
|
287
|
+
export type JobsListNextResponse = JobDetailsList;
|
|
288
|
+
/** Optional parameters. */
|
|
289
|
+
export interface ProvidersGetStatusOptionalParams extends coreClient.OperationOptions {
|
|
290
|
+
}
|
|
291
|
+
/** Contains response data for the getStatus operation. */
|
|
292
|
+
export type ProvidersGetStatusResponse = ProviderStatusList;
|
|
293
|
+
/** Optional parameters. */
|
|
294
|
+
export interface ProvidersGetStatusNextOptionalParams extends coreClient.OperationOptions {
|
|
295
|
+
}
|
|
296
|
+
/** Contains response data for the getStatusNext operation. */
|
|
297
|
+
export type ProvidersGetStatusNextResponse = ProviderStatusList;
|
|
298
|
+
/** Optional parameters. */
|
|
299
|
+
export interface StorageSasUriOptionalParams extends coreClient.OperationOptions {
|
|
300
|
+
}
|
|
301
|
+
/** Contains response data for the sasUri operation. */
|
|
302
|
+
export type StorageSasUriResponse = SasUriResponse;
|
|
303
|
+
/** Optional parameters. */
|
|
304
|
+
export interface QuotasListOptionalParams extends coreClient.OperationOptions {
|
|
305
|
+
}
|
|
306
|
+
/** Contains response data for the list operation. */
|
|
307
|
+
export type QuotasListResponse = QuotaList;
|
|
308
|
+
/** Optional parameters. */
|
|
309
|
+
export interface QuotasListNextOptionalParams extends coreClient.OperationOptions {
|
|
310
|
+
}
|
|
311
|
+
/** Contains response data for the listNext operation. */
|
|
312
|
+
export type QuotasListNextResponse = QuotaList;
|
|
313
|
+
/** Optional parameters. */
|
|
314
|
+
export interface QuantumJobClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
315
|
+
/** server parameter */
|
|
316
|
+
$host?: string;
|
|
317
|
+
/** Overrides client endpoint. */
|
|
318
|
+
endpoint?: string;
|
|
319
|
+
}
|
|
320
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEtD,2BAA2B;AAC3B,MAAM,WAAW,cAAc;IAC7B,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IAC9B,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,mBAAmB;AACnB,MAAM,WAAW,UAAU;IACzB,kBAAkB;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uGAAuG;IACvG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,sNAAsN;IACtN,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,QAAQ,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC9C,wGAAwG;IACxG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qCAAqC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,CAA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MAAM,WAAW,gCAAiC,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExF,0DAA0D;AAC1D,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,CAAC;AAE5D,2BAA2B;AAC3B,MAAM,WAAW,oCAAqC,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAE5F,8DAA8D;AAC9D,MAAM,MAAM,8BAA8B,GAAG,kBAAkB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,2BAA4B,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAEnF,uDAAuD;AACvD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAEnD,2BAA2B;AAC3B,MAAM,WAAW,wBAAyB,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAEhF,qDAAqD;AACrD,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAE3C,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAEpF,yDAAyD;AACzD,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAE/C,2BAA2B;AAC3B,MAAM,WAAW,8BAA+B,SAAQ,UAAU,CAAC,oBAAoB;IACrF,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
/** Known values of {@link JobStatus} that the service accepts. */
|
|
9
|
+
export var KnownJobStatus;
|
|
10
|
+
(function (KnownJobStatus) {
|
|
11
|
+
/** Waiting */
|
|
12
|
+
KnownJobStatus["Waiting"] = "Waiting";
|
|
13
|
+
/** Executing */
|
|
14
|
+
KnownJobStatus["Executing"] = "Executing";
|
|
15
|
+
/** Succeeded */
|
|
16
|
+
KnownJobStatus["Succeeded"] = "Succeeded";
|
|
17
|
+
/** Failed */
|
|
18
|
+
KnownJobStatus["Failed"] = "Failed";
|
|
19
|
+
/** Cancelled */
|
|
20
|
+
KnownJobStatus["Cancelled"] = "Cancelled";
|
|
21
|
+
})(KnownJobStatus || (KnownJobStatus = {}));
|
|
22
|
+
/** Known values of {@link ProviderAvailability} that the service accepts. */
|
|
23
|
+
export var KnownProviderAvailability;
|
|
24
|
+
(function (KnownProviderAvailability) {
|
|
25
|
+
/** Available */
|
|
26
|
+
KnownProviderAvailability["Available"] = "Available";
|
|
27
|
+
/** Degraded */
|
|
28
|
+
KnownProviderAvailability["Degraded"] = "Degraded";
|
|
29
|
+
/** Unavailable */
|
|
30
|
+
KnownProviderAvailability["Unavailable"] = "Unavailable";
|
|
31
|
+
})(KnownProviderAvailability || (KnownProviderAvailability = {}));
|
|
32
|
+
/** Known values of {@link TargetAvailability} that the service accepts. */
|
|
33
|
+
export var KnownTargetAvailability;
|
|
34
|
+
(function (KnownTargetAvailability) {
|
|
35
|
+
/** Available */
|
|
36
|
+
KnownTargetAvailability["Available"] = "Available";
|
|
37
|
+
/** Degraded */
|
|
38
|
+
KnownTargetAvailability["Degraded"] = "Degraded";
|
|
39
|
+
/** Unavailable */
|
|
40
|
+
KnownTargetAvailability["Unavailable"] = "Unavailable";
|
|
41
|
+
})(KnownTargetAvailability || (KnownTargetAvailability = {}));
|
|
42
|
+
/** Known values of {@link DimensionScope} that the service accepts. */
|
|
43
|
+
export var KnownDimensionScope;
|
|
44
|
+
(function (KnownDimensionScope) {
|
|
45
|
+
/** Workspace */
|
|
46
|
+
KnownDimensionScope["Workspace"] = "Workspace";
|
|
47
|
+
/** Subscription */
|
|
48
|
+
KnownDimensionScope["Subscription"] = "Subscription";
|
|
49
|
+
})(KnownDimensionScope || (KnownDimensionScope = {}));
|
|
50
|
+
/** Known values of {@link MeterPeriod} that the service accepts. */
|
|
51
|
+
export var KnownMeterPeriod;
|
|
52
|
+
(function (KnownMeterPeriod) {
|
|
53
|
+
/** None */
|
|
54
|
+
KnownMeterPeriod["None"] = "None";
|
|
55
|
+
/** Monthly */
|
|
56
|
+
KnownMeterPeriod["Monthly"] = "Monthly";
|
|
57
|
+
})(KnownMeterPeriod || (KnownMeterPeriod = {}));
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqLH,kEAAkE;AAClE,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,cAAc;IACd,qCAAmB,CAAA;IACnB,gBAAgB;IAChB,yCAAuB,CAAA;IACvB,gBAAgB;IAChB,yCAAuB,CAAA;IACvB,aAAa;IACb,mCAAiB,CAAA;IACjB,gBAAgB;IAChB,yCAAuB,CAAA;AACzB,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB;AAeD,6EAA6E;AAC7E,MAAM,CAAN,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,gBAAgB;IAChB,oDAAuB,CAAA;IACvB,eAAe;IACf,kDAAqB,CAAA;IACrB,kBAAkB;IAClB,wDAA2B,CAAA;AAC7B,CAAC,EAPW,yBAAyB,KAAzB,yBAAyB,QAOpC;AAaD,2EAA2E;AAC3E,MAAM,CAAN,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,gBAAgB;IAChB,kDAAuB,CAAA;IACvB,eAAe;IACf,gDAAqB,CAAA;IACrB,kBAAkB;IAClB,sDAA2B,CAAA;AAC7B,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,QAOlC;AAaD,uEAAuE;AACvE,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,gBAAgB;IAChB,8CAAuB,CAAA;IACvB,mBAAmB;IACnB,oDAA6B,CAAA;AAC/B,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAYD,oEAAoE;AACpE,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,WAAW;IACX,iCAAa,CAAA;IACb,cAAc;IACd,uCAAmB,CAAA;AACrB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type * as coreClient from \"@azure/core-client\";\n\n/** List of job details. */\nexport interface JobDetailsList {\n /** NOTE: This property will not be serialized. It can only be populated by the server. */\n readonly value?: JobDetails[];\n /** Total records count number. */\n count?: number;\n /**\n * Link to the next page of results.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Job details. */\nexport interface JobDetails {\n /** The job id. */\n id?: string;\n /** The job name. Is not required for the name to be unique and it's only used for display purposes. */\n name?: string;\n /** The blob container SAS uri, the container is used to host job data. */\n containerUri: string;\n /** The input blob SAS uri, if specified, it will override the default input blob in the container. */\n inputDataUri?: string;\n /** The format of the input data. */\n inputDataFormat: string;\n /** The input parameters for the job. JSON object used by the target solver. It is expected that the size of this object is small and only used to specify parameters for the execution target, not the input data. */\n inputParams?: Record<string, unknown>;\n /** The unique identifier for the provider. */\n providerId: string;\n /** The target identifier to run the job. */\n target: string;\n /** The job metadata. Metadata provides client the ability to store client-specific information */\n metadata?: { [propertyName: string]: string };\n /** The output blob SAS uri. When a job finishes successfully, results will be uploaded to this blob. */\n outputDataUri?: string;\n /** The format of the output data. */\n outputDataFormat?: string;\n /**\n * The job status.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly status?: JobStatus;\n /**\n * The creation time of the job.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly creationTime?: Date;\n /**\n * The time when the job began execution.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly beginExecutionTime?: Date;\n /**\n * The time when the job finished execution.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly endExecutionTime?: Date;\n /**\n * The time when a job was successfully cancelled.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly cancellationTime?: Date;\n /**\n * The error data for the job. This is expected only when Status 'Failed'.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly errorData?: ErrorData;\n}\n\n/** An error response from Azure. */\nexport interface ErrorData {\n /** An identifier for the error. Codes are invariant and are intended to be consumed programmatically. */\n code?: string;\n /** A message describing the error, intended to be suitable for displaying in a user interface. */\n message?: string;\n}\n\n/** Error information returned by the API */\nexport interface RestError {\n /** An error response from Azure. */\n error?: ErrorData;\n}\n\n/** Providers status. */\nexport interface ProviderStatusList {\n /** NOTE: This property will not be serialized. It can only be populated by the server. */\n readonly value?: ProviderStatus[];\n /**\n * Link to the next page of results.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Providers status. */\nexport interface ProviderStatus {\n /**\n * Provider id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Provider availability.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly currentAvailability?: ProviderAvailability;\n /** NOTE: This property will not be serialized. It can only be populated by the server. */\n readonly targets?: TargetStatus[];\n}\n\n/** Target status. */\nexport interface TargetStatus {\n /**\n * Target id.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * Target availability.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly currentAvailability?: TargetAvailability;\n /**\n * Average queue time in seconds.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly averageQueueTime?: number;\n /**\n * A page with detailed status of the provider.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly statusPage?: string;\n}\n\n/** Blob details. */\nexport interface BlobDetails {\n /** The container name. */\n containerName: string;\n /** The blob name. */\n blobName?: string;\n}\n\n/** Get SAS URL operation response. */\nexport interface SasUriResponse {\n /** A URL with a SAS token to upload a blob for execution in the given workspace. */\n sasUri?: string;\n}\n\n/** List of quotas. */\nexport interface QuotaList {\n /** NOTE: This property will not be serialized. It can only be populated by the server. */\n readonly value?: Quota[];\n /**\n * Link to the next page of results.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Quota information. */\nexport interface Quota {\n /** The name of the dimension associated with the quota. */\n dimension?: string;\n /** The scope at which the quota is applied. */\n scope?: DimensionScope;\n /** The unique identifier for the provider. */\n providerId?: string;\n /** The amount of the usage that has been applied for the current period. */\n utilization?: number;\n /** The amount of the usage that has been reserved but not applied for the current period. */\n holds?: number;\n /** The maximum amount of usage allowed for the current period. */\n limit?: number;\n /** The time period in which the quota's underlying meter is accumulated. Based on calendar year. 'None' is used for concurrent quotas. */\n period?: MeterPeriod;\n}\n\n/** Known values of {@link JobStatus} that the service accepts. */\nexport enum KnownJobStatus {\n /** Waiting */\n Waiting = \"Waiting\",\n /** Executing */\n Executing = \"Executing\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Cancelled */\n Cancelled = \"Cancelled\",\n}\n\n/**\n * Defines values for JobStatus. \\\n * {@link KnownJobStatus} can be used interchangeably with JobStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Waiting** \\\n * **Executing** \\\n * **Succeeded** \\\n * **Failed** \\\n * **Cancelled**\n */\nexport type JobStatus = string;\n\n/** Known values of {@link ProviderAvailability} that the service accepts. */\nexport enum KnownProviderAvailability {\n /** Available */\n Available = \"Available\",\n /** Degraded */\n Degraded = \"Degraded\",\n /** Unavailable */\n Unavailable = \"Unavailable\",\n}\n\n/**\n * Defines values for ProviderAvailability. \\\n * {@link KnownProviderAvailability} can be used interchangeably with ProviderAvailability,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Available** \\\n * **Degraded** \\\n * **Unavailable**\n */\nexport type ProviderAvailability = string;\n\n/** Known values of {@link TargetAvailability} that the service accepts. */\nexport enum KnownTargetAvailability {\n /** Available */\n Available = \"Available\",\n /** Degraded */\n Degraded = \"Degraded\",\n /** Unavailable */\n Unavailable = \"Unavailable\",\n}\n\n/**\n * Defines values for TargetAvailability. \\\n * {@link KnownTargetAvailability} can be used interchangeably with TargetAvailability,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Available** \\\n * **Degraded** \\\n * **Unavailable**\n */\nexport type TargetAvailability = string;\n\n/** Known values of {@link DimensionScope} that the service accepts. */\nexport enum KnownDimensionScope {\n /** Workspace */\n Workspace = \"Workspace\",\n /** Subscription */\n Subscription = \"Subscription\",\n}\n\n/**\n * Defines values for DimensionScope. \\\n * {@link KnownDimensionScope} can be used interchangeably with DimensionScope,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Workspace** \\\n * **Subscription**\n */\nexport type DimensionScope = string;\n\n/** Known values of {@link MeterPeriod} that the service accepts. */\nexport enum KnownMeterPeriod {\n /** None */\n None = \"None\",\n /** Monthly */\n Monthly = \"Monthly\",\n}\n\n/**\n * Defines values for MeterPeriod. \\\n * {@link KnownMeterPeriod} can be used interchangeably with MeterPeriod,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None** \\\n * **Monthly**\n */\nexport type MeterPeriod = string;\n\n/** Optional parameters. */\nexport interface JobsListOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type JobsListResponse = JobDetailsList;\n\n/** Optional parameters. */\nexport interface JobsGetOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type JobsGetResponse = JobDetails;\n\n/** Optional parameters. */\nexport interface JobsCreateOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the create operation. */\nexport type JobsCreateResponse = JobDetails;\n\n/** Optional parameters. */\nexport interface JobsCancelOptionalParams extends coreClient.OperationOptions {}\n\n/** Optional parameters. */\nexport interface JobsListNextOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type JobsListNextResponse = JobDetailsList;\n\n/** Optional parameters. */\nexport interface ProvidersGetStatusOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the getStatus operation. */\nexport type ProvidersGetStatusResponse = ProviderStatusList;\n\n/** Optional parameters. */\nexport interface ProvidersGetStatusNextOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the getStatusNext operation. */\nexport type ProvidersGetStatusNextResponse = ProviderStatusList;\n\n/** Optional parameters. */\nexport interface StorageSasUriOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the sasUri operation. */\nexport type StorageSasUriResponse = SasUriResponse;\n\n/** Optional parameters. */\nexport interface QuotasListOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type QuotasListResponse = QuotaList;\n\n/** Optional parameters. */\nexport interface QuotasListNextOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type QuotasListNextResponse = QuotaList;\n\n/** Optional parameters. */\nexport interface QuantumJobClientOptionalParams extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as coreClient from "@azure/core-client";
|
|
2
|
+
export declare const JobDetailsList: coreClient.CompositeMapper;
|
|
3
|
+
export declare const JobDetails: coreClient.CompositeMapper;
|
|
4
|
+
export declare const ErrorData: coreClient.CompositeMapper;
|
|
5
|
+
export declare const RestError: coreClient.CompositeMapper;
|
|
6
|
+
export declare const ProviderStatusList: coreClient.CompositeMapper;
|
|
7
|
+
export declare const ProviderStatus: coreClient.CompositeMapper;
|
|
8
|
+
export declare const TargetStatus: coreClient.CompositeMapper;
|
|
9
|
+
export declare const BlobDetails: coreClient.CompositeMapper;
|
|
10
|
+
export declare const SasUriResponse: coreClient.CompositeMapper;
|
|
11
|
+
export declare const QuotaList: coreClient.CompositeMapper;
|
|
12
|
+
export declare const Quota: coreClient.CompositeMapper;
|
|
13
|
+
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eAiCvC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eAyHnC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eAmBlC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eAclC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eA2B3C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eAkCvC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eAmCrC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,eAoBpC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,eAavC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eA2BlC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,UAAU,CAAC,eAiD9B,CAAC"}
|