@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
|
@@ -5,97 +5,97 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { JobDetails as JobDetailsMapper, BlobDetails as BlobDetailsMapper } from "../models/mappers";
|
|
9
|
-
export
|
|
8
|
+
import { JobDetails as JobDetailsMapper, BlobDetails as BlobDetailsMapper, } from "../models/mappers.js";
|
|
9
|
+
export const accept = {
|
|
10
10
|
parameterPath: "accept",
|
|
11
11
|
mapper: {
|
|
12
12
|
defaultValue: "application/json",
|
|
13
13
|
isConstant: true,
|
|
14
14
|
serializedName: "Accept",
|
|
15
15
|
type: {
|
|
16
|
-
name: "String"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
16
|
+
name: "String",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export const $host = {
|
|
21
21
|
parameterPath: "$host",
|
|
22
22
|
mapper: {
|
|
23
23
|
serializedName: "$host",
|
|
24
24
|
required: true,
|
|
25
25
|
type: {
|
|
26
|
-
name: "String"
|
|
27
|
-
}
|
|
26
|
+
name: "String",
|
|
27
|
+
},
|
|
28
28
|
},
|
|
29
|
-
skipEncoding: true
|
|
29
|
+
skipEncoding: true,
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export const subscriptionId = {
|
|
32
32
|
parameterPath: "subscriptionId",
|
|
33
33
|
mapper: {
|
|
34
34
|
serializedName: "subscriptionId",
|
|
35
35
|
required: true,
|
|
36
36
|
type: {
|
|
37
|
-
name: "String"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
37
|
+
name: "String",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export const resourceGroupName = {
|
|
42
42
|
parameterPath: "resourceGroupName",
|
|
43
43
|
mapper: {
|
|
44
44
|
serializedName: "resourceGroupName",
|
|
45
45
|
required: true,
|
|
46
46
|
type: {
|
|
47
|
-
name: "String"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
47
|
+
name: "String",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
50
|
};
|
|
51
|
-
export
|
|
51
|
+
export const workspaceName = {
|
|
52
52
|
parameterPath: "workspaceName",
|
|
53
53
|
mapper: {
|
|
54
54
|
serializedName: "workspaceName",
|
|
55
55
|
required: true,
|
|
56
56
|
type: {
|
|
57
|
-
name: "String"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
57
|
+
name: "String",
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export const jobId = {
|
|
62
62
|
parameterPath: "jobId",
|
|
63
63
|
mapper: {
|
|
64
64
|
serializedName: "jobId",
|
|
65
65
|
required: true,
|
|
66
66
|
type: {
|
|
67
|
-
name: "String"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
67
|
+
name: "String",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
70
|
};
|
|
71
|
-
export
|
|
71
|
+
export const contentType = {
|
|
72
72
|
parameterPath: ["options", "contentType"],
|
|
73
73
|
mapper: {
|
|
74
74
|
defaultValue: "application/json",
|
|
75
75
|
isConstant: true,
|
|
76
76
|
serializedName: "Content-Type",
|
|
77
77
|
type: {
|
|
78
|
-
name: "String"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
78
|
+
name: "String",
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
81
|
};
|
|
82
|
-
export
|
|
82
|
+
export const job = {
|
|
83
83
|
parameterPath: "job",
|
|
84
|
-
mapper: JobDetailsMapper
|
|
84
|
+
mapper: JobDetailsMapper,
|
|
85
85
|
};
|
|
86
|
-
export
|
|
86
|
+
export const nextLink = {
|
|
87
87
|
parameterPath: "nextLink",
|
|
88
88
|
mapper: {
|
|
89
89
|
serializedName: "nextLink",
|
|
90
90
|
required: true,
|
|
91
91
|
type: {
|
|
92
|
-
name: "String"
|
|
93
|
-
}
|
|
92
|
+
name: "String",
|
|
93
|
+
},
|
|
94
94
|
},
|
|
95
|
-
skipEncoding: true
|
|
95
|
+
skipEncoding: true,
|
|
96
96
|
};
|
|
97
|
-
export
|
|
97
|
+
export const blobDetails = {
|
|
98
98
|
parameterPath: "blobDetails",
|
|
99
|
-
mapper: BlobDetailsMapper
|
|
99
|
+
mapper: BlobDetailsMapper,
|
|
100
100
|
};
|
|
101
101
|
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,WAAW,IAAI,iBAAiB,GACjC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD,aAAa,EAAE,gBAAgB;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,gBAAgB;QAChC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAA0B;IACtD,aAAa,EAAE,mBAAmB;IAClC,MAAM,EAAE;QACN,cAAc,EAAE,mBAAmB;QACnC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA0B;IAClD,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE;QACN,cAAc,EAAE,eAAe;QAC/B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE,OAAO;QACvB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACzC,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,cAAc;QAC9B,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAuB;IACrC,aAAa,EAAE,KAAK;IACpB,MAAM,EAAE,gBAAgB;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAA0B;IAC7C,aAAa,EAAE,UAAU;IACzB,MAAM,EAAE;QACN,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;IACD,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,aAAa,EAAE,aAAa;IAC5B,MAAM,EAAE,iBAAiB;CAC1B,CAAC","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 { OperationParameter, OperationURLParameter } from \"@azure/core-client\";\nimport {\n JobDetails as JobDetailsMapper,\n BlobDetails as BlobDetailsMapper,\n} from \"../models/mappers.js\";\n\nexport const accept: OperationParameter = {\n parameterPath: \"accept\",\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Accept\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const $host: OperationURLParameter = {\n parameterPath: \"$host\",\n mapper: {\n serializedName: \"$host\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const subscriptionId: OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n serializedName: \"subscriptionId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const resourceGroupName: OperationURLParameter = {\n parameterPath: \"resourceGroupName\",\n mapper: {\n serializedName: \"resourceGroupName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const workspaceName: OperationURLParameter = {\n parameterPath: \"workspaceName\",\n mapper: {\n serializedName: \"workspaceName\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const jobId: OperationURLParameter = {\n parameterPath: \"jobId\",\n mapper: {\n serializedName: \"jobId\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const contentType: OperationParameter = {\n parameterPath: [\"options\", \"contentType\"],\n mapper: {\n defaultValue: \"application/json\",\n isConstant: true,\n serializedName: \"Content-Type\",\n type: {\n name: \"String\",\n },\n },\n};\n\nexport const job: OperationParameter = {\n parameterPath: \"job\",\n mapper: JobDetailsMapper,\n};\n\nexport const nextLink: OperationURLParameter = {\n parameterPath: \"nextLink\",\n mapper: {\n serializedName: \"nextLink\",\n required: true,\n type: {\n name: \"String\",\n },\n },\n skipEncoding: true,\n};\n\nexport const blobDetails: OperationParameter = {\n parameterPath: \"blobDetails\",\n mapper: BlobDetailsMapper,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export * from "./jobs.js";
|
|
9
|
+
export * from "./providers.js";
|
|
10
|
+
export * from "./storage.js";
|
|
11
|
+
export * from "./quotas.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC","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\nexport * from \"./jobs.js\";\nexport * from \"./providers.js\";\nexport * from \"./storage.js\";\nexport * from \"./quotas.js\";\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { Jobs } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { QuantumJobClient } from "../quantumJobClient.js";
|
|
4
|
+
import type { JobDetails, JobsListOptionalParams, JobsGetOptionalParams, JobsGetResponse, JobsCreateOptionalParams, JobsCreateResponse, JobsCancelOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Jobs operations. */
|
|
6
|
+
export declare class JobsImpl implements Jobs {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Jobs class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: QuantumJobClient);
|
|
13
|
+
/**
|
|
14
|
+
* List jobs.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: JobsListOptionalParams): PagedAsyncIterableIterator<JobDetails>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* List jobs.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* Get job by id
|
|
27
|
+
* @param jobId Id of the job.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
get(jobId: string, options?: JobsGetOptionalParams): Promise<JobsGetResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a job.
|
|
33
|
+
* @param jobId Id of the job.
|
|
34
|
+
* @param job The complete metadata of the job to submit.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
create(jobId: string, job: JobDetails, options?: JobsCreateOptionalParams): Promise<JobsCreateResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Cancel a job.
|
|
40
|
+
* @param jobId Id of the job.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
cancel(jobId: string, options?: JobsCancelOptionalParams): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* ListNext
|
|
46
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
private _listNext;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,UAAU,EAEV,sBAAsB,EAEtB,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EAEzB,MAAM,oBAAoB,CAAC;AA2G5B,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,0BAA0B,CAAC,UAAU,CAAC;YAetE,cAAc;YAad,aAAa;IAQ5B;;;OAGG;YACW,KAAK;IAanB;;;;OAIG;IACG,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC;IASnF;;;;;OAKG;IACG,MAAM,CACV,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,UAAU,EACf,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAa9B;;;;OAIG;IACG,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAa9E;;;;OAIG;YACW,SAAS;CAexB"}
|
|
@@ -0,0 +1,209 @@
|
|
|
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
|
+
import { tracingClient } from "../tracing.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
// Operation Specifications
|
|
13
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
14
|
+
const listOperationSpec = {
|
|
15
|
+
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs",
|
|
16
|
+
httpMethod: "GET",
|
|
17
|
+
responses: {
|
|
18
|
+
200: {
|
|
19
|
+
bodyMapper: Mappers.JobDetailsList,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
urlParameters: [
|
|
23
|
+
Parameters.$host,
|
|
24
|
+
Parameters.subscriptionId,
|
|
25
|
+
Parameters.resourceGroupName,
|
|
26
|
+
Parameters.workspaceName,
|
|
27
|
+
],
|
|
28
|
+
headerParameters: [Parameters.accept],
|
|
29
|
+
serializer,
|
|
30
|
+
};
|
|
31
|
+
const getOperationSpec = {
|
|
32
|
+
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
|
|
33
|
+
httpMethod: "GET",
|
|
34
|
+
responses: {
|
|
35
|
+
200: {
|
|
36
|
+
bodyMapper: Mappers.JobDetails,
|
|
37
|
+
},
|
|
38
|
+
default: {
|
|
39
|
+
bodyMapper: Mappers.RestError,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
urlParameters: [
|
|
43
|
+
Parameters.$host,
|
|
44
|
+
Parameters.subscriptionId,
|
|
45
|
+
Parameters.resourceGroupName,
|
|
46
|
+
Parameters.workspaceName,
|
|
47
|
+
Parameters.jobId,
|
|
48
|
+
],
|
|
49
|
+
headerParameters: [Parameters.accept],
|
|
50
|
+
serializer,
|
|
51
|
+
};
|
|
52
|
+
const createOperationSpec = {
|
|
53
|
+
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
|
|
54
|
+
httpMethod: "PUT",
|
|
55
|
+
responses: {
|
|
56
|
+
200: {
|
|
57
|
+
bodyMapper: Mappers.JobDetails,
|
|
58
|
+
},
|
|
59
|
+
201: {
|
|
60
|
+
bodyMapper: Mappers.JobDetails,
|
|
61
|
+
},
|
|
62
|
+
default: {
|
|
63
|
+
bodyMapper: Mappers.RestError,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
requestBody: Parameters.job,
|
|
67
|
+
urlParameters: [
|
|
68
|
+
Parameters.$host,
|
|
69
|
+
Parameters.subscriptionId,
|
|
70
|
+
Parameters.resourceGroupName,
|
|
71
|
+
Parameters.workspaceName,
|
|
72
|
+
Parameters.jobId,
|
|
73
|
+
],
|
|
74
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
75
|
+
mediaType: "json",
|
|
76
|
+
serializer,
|
|
77
|
+
};
|
|
78
|
+
const cancelOperationSpec = {
|
|
79
|
+
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
|
|
80
|
+
httpMethod: "DELETE",
|
|
81
|
+
responses: {
|
|
82
|
+
204: {},
|
|
83
|
+
default: {
|
|
84
|
+
bodyMapper: Mappers.RestError,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
urlParameters: [
|
|
88
|
+
Parameters.$host,
|
|
89
|
+
Parameters.subscriptionId,
|
|
90
|
+
Parameters.resourceGroupName,
|
|
91
|
+
Parameters.workspaceName,
|
|
92
|
+
Parameters.jobId,
|
|
93
|
+
],
|
|
94
|
+
headerParameters: [Parameters.accept],
|
|
95
|
+
serializer,
|
|
96
|
+
};
|
|
97
|
+
const listNextOperationSpec = {
|
|
98
|
+
path: "{nextLink}",
|
|
99
|
+
httpMethod: "GET",
|
|
100
|
+
responses: {
|
|
101
|
+
200: {
|
|
102
|
+
bodyMapper: Mappers.JobDetailsList,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
urlParameters: [
|
|
106
|
+
Parameters.$host,
|
|
107
|
+
Parameters.subscriptionId,
|
|
108
|
+
Parameters.resourceGroupName,
|
|
109
|
+
Parameters.workspaceName,
|
|
110
|
+
Parameters.nextLink,
|
|
111
|
+
],
|
|
112
|
+
headerParameters: [Parameters.accept],
|
|
113
|
+
serializer,
|
|
114
|
+
};
|
|
115
|
+
/** Class containing Jobs operations. */
|
|
116
|
+
export class JobsImpl {
|
|
117
|
+
client;
|
|
118
|
+
/**
|
|
119
|
+
* Initialize a new instance of the class Jobs class.
|
|
120
|
+
* @param client Reference to the service client
|
|
121
|
+
*/
|
|
122
|
+
constructor(client) {
|
|
123
|
+
this.client = client;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* List jobs.
|
|
127
|
+
* @param options The options parameters.
|
|
128
|
+
*/
|
|
129
|
+
list(options) {
|
|
130
|
+
const iter = this.listPagingAll(options);
|
|
131
|
+
return {
|
|
132
|
+
next() {
|
|
133
|
+
return iter.next();
|
|
134
|
+
},
|
|
135
|
+
[Symbol.asyncIterator]() {
|
|
136
|
+
return this;
|
|
137
|
+
},
|
|
138
|
+
byPage: () => {
|
|
139
|
+
return this.listPagingPage(options);
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
async *listPagingPage(options) {
|
|
144
|
+
let result = await this._list(options);
|
|
145
|
+
yield result.value || [];
|
|
146
|
+
let continuationToken = result.nextLink;
|
|
147
|
+
while (continuationToken) {
|
|
148
|
+
result = await this._listNext(continuationToken, options);
|
|
149
|
+
continuationToken = result.nextLink;
|
|
150
|
+
yield result.value || [];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
async *listPagingAll(options) {
|
|
154
|
+
for await (const page of this.listPagingPage(options)) {
|
|
155
|
+
yield* page;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* List jobs.
|
|
160
|
+
* @param options The options parameters.
|
|
161
|
+
*/
|
|
162
|
+
async _list(options) {
|
|
163
|
+
return tracingClient.withSpan("QuantumJobClient._list", options ?? {}, async (updatedOptions) => {
|
|
164
|
+
return this.client.sendOperationRequest({ updatedOptions }, listOperationSpec);
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Get job by id
|
|
169
|
+
* @param jobId Id of the job.
|
|
170
|
+
* @param options The options parameters.
|
|
171
|
+
*/
|
|
172
|
+
async get(jobId, options) {
|
|
173
|
+
return tracingClient.withSpan("QuantumJobClient.get", options ?? {}, async (updatedOptions) => {
|
|
174
|
+
return this.client.sendOperationRequest({ jobId, updatedOptions }, getOperationSpec);
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Create a job.
|
|
179
|
+
* @param jobId Id of the job.
|
|
180
|
+
* @param job The complete metadata of the job to submit.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
async create(jobId, job, options) {
|
|
184
|
+
return tracingClient.withSpan("QuantumJobClient.create", options ?? {}, async (updatedOptions) => {
|
|
185
|
+
return this.client.sendOperationRequest({ jobId, job, updatedOptions }, createOperationSpec);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Cancel a job.
|
|
190
|
+
* @param jobId Id of the job.
|
|
191
|
+
* @param options The options parameters.
|
|
192
|
+
*/
|
|
193
|
+
async cancel(jobId, options) {
|
|
194
|
+
return tracingClient.withSpan("QuantumJobClient.cancel", options ?? {}, async (updatedOptions) => {
|
|
195
|
+
return this.client.sendOperationRequest({ jobId, updatedOptions }, cancelOperationSpec);
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* ListNext
|
|
200
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
201
|
+
* @param options The options parameters.
|
|
202
|
+
*/
|
|
203
|
+
async _listNext(nextLink, options) {
|
|
204
|
+
return tracingClient.withSpan("QuantumJobClient._listNext", options ?? {}, async (updatedOptions) => {
|
|
205
|
+
return this.client.sendOperationRequest({ nextLink, updatedOptions }, listNextOperationSpec);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,qIAAqI;IAC3I,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,6IAA6I;IACnJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UA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CAAC;QACnC,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,OAAkC;QAC5D,OAAO,aAAa,CAAC,QAAQ,CAC3B,yBAAyB,EACzB,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,mBAAmB,CACH,CAAC;QACrB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,SAAS,CACrB,QAAgB,EAChB,OAAoC;QAEpC,OAAO,aAAa,CAAC,QAAQ,CAC3B,4BAA4B,EAC5B,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,qBAAqB,CACW,CAAC;QACrC,CAAC,CACF,CAAC;IACJ,CAAC;CACF","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 { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { Jobs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { QuantumJobClient } from \"../quantumJobClient.js\";\nimport type {\n JobDetails,\n JobsListNextOptionalParams,\n JobsListOptionalParams,\n JobsListResponse,\n JobsGetOptionalParams,\n JobsGetResponse,\n JobsCreateOptionalParams,\n JobsCreateResponse,\n JobsCancelOptionalParams,\n JobsListNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobDetailsList,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobDetails,\n },\n default: {\n bodyMapper: Mappers.RestError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.jobId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobDetails,\n },\n 201: {\n bodyMapper: Mappers.JobDetails,\n },\n default: {\n bodyMapper: Mappers.RestError,\n },\n },\n requestBody: Parameters.job,\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.jobId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.RestError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.jobId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobDetailsList,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing Jobs operations. */\nexport class JobsImpl implements Jobs {\n private readonly client: QuantumJobClient;\n\n /**\n * Initialize a new instance of the class Jobs class.\n * @param client Reference to the service client\n */\n constructor(client: QuantumJobClient) {\n this.client = client;\n }\n\n /**\n * List jobs.\n * @param options The options parameters.\n */\n public list(options?: JobsListOptionalParams): PagedAsyncIterableIterator<JobDetails> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listPagingPage(options);\n },\n };\n }\n\n private async *listPagingPage(\n options?: JobsListOptionalParams,\n ): AsyncIterableIterator<JobDetails[]> {\n let result = await this._list(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *listPagingAll(\n options?: JobsListOptionalParams,\n ): AsyncIterableIterator<JobDetails> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List jobs.\n * @param options The options parameters.\n */\n private async _list(options?: JobsListOptionalParams): Promise<JobsListResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient._list\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<JobsListResponse>;\n },\n );\n }\n\n /**\n * Get job by id\n * @param jobId Id of the job.\n * @param options The options parameters.\n */\n async get(jobId: string, options?: JobsGetOptionalParams): Promise<JobsGetResponse> {\n return tracingClient.withSpan(\"QuantumJobClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { jobId, updatedOptions },\n getOperationSpec,\n ) as Promise<JobsGetResponse>;\n });\n }\n\n /**\n * Create a job.\n * @param jobId Id of the job.\n * @param job The complete metadata of the job to submit.\n * @param options The options parameters.\n */\n async create(\n jobId: string,\n job: JobDetails,\n options?: JobsCreateOptionalParams,\n ): Promise<JobsCreateResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient.create\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { jobId, job, updatedOptions },\n createOperationSpec,\n ) as Promise<JobsCreateResponse>;\n },\n );\n }\n\n /**\n * Cancel a job.\n * @param jobId Id of the job.\n * @param options The options parameters.\n */\n async cancel(jobId: string, options?: JobsCancelOptionalParams): Promise<void> {\n return tracingClient.withSpan(\n \"QuantumJobClient.cancel\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { jobId, updatedOptions },\n cancelOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private async _listNext(\n nextLink: string,\n options?: JobsListNextOptionalParams,\n ): Promise<JobsListNextResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient._listNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n listNextOperationSpec,\n ) as Promise<JobsListNextResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { Providers } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { QuantumJobClient } from "../quantumJobClient.js";
|
|
4
|
+
import type { ProviderStatus, ProvidersGetStatusOptionalParams } from "../models/index.js";
|
|
5
|
+
/** Class containing Providers operations. */
|
|
6
|
+
export declare class ProvidersImpl implements Providers {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Providers class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: QuantumJobClient);
|
|
13
|
+
/**
|
|
14
|
+
* Get provider status.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
listStatus(options?: ProvidersGetStatusOptionalParams): PagedAsyncIterableIterator<ProviderStatus>;
|
|
18
|
+
private getStatusPagingPage;
|
|
19
|
+
private getStatusPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Get provider status.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _getStatus;
|
|
25
|
+
/**
|
|
26
|
+
* GetStatusNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the GetStatus method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _getStatusNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../src/operations/providers.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,cAAc,EAEd,gCAAgC,EAGjC,MAAM,oBAAoB,CAAC;AA+C5B,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;OAGG;IACI,UAAU,CACf,OAAO,CAAC,EAAE,gCAAgC,GACzC,0BAA0B,CAAC,cAAc,CAAC;YAe9B,mBAAmB;YAanB,kBAAkB;IAQjC;;;OAGG;YACW,UAAU;IAexB;;;;OAIG;YACW,cAAc;CAe7B"}
|
|
@@ -0,0 +1,118 @@
|
|
|
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
|
+
import { tracingClient } from "../tracing.js";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers.js";
|
|
11
|
+
import * as Parameters from "../models/parameters.js";
|
|
12
|
+
// Operation Specifications
|
|
13
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
14
|
+
const getStatusOperationSpec = {
|
|
15
|
+
path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/providerStatus",
|
|
16
|
+
httpMethod: "GET",
|
|
17
|
+
responses: {
|
|
18
|
+
200: {
|
|
19
|
+
bodyMapper: Mappers.ProviderStatusList,
|
|
20
|
+
},
|
|
21
|
+
default: {
|
|
22
|
+
bodyMapper: Mappers.RestError,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
urlParameters: [
|
|
26
|
+
Parameters.$host,
|
|
27
|
+
Parameters.subscriptionId,
|
|
28
|
+
Parameters.resourceGroupName,
|
|
29
|
+
Parameters.workspaceName,
|
|
30
|
+
],
|
|
31
|
+
headerParameters: [Parameters.accept],
|
|
32
|
+
serializer,
|
|
33
|
+
};
|
|
34
|
+
const getStatusNextOperationSpec = {
|
|
35
|
+
path: "{nextLink}",
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
responses: {
|
|
38
|
+
200: {
|
|
39
|
+
bodyMapper: Mappers.ProviderStatusList,
|
|
40
|
+
},
|
|
41
|
+
default: {
|
|
42
|
+
bodyMapper: Mappers.RestError,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
urlParameters: [
|
|
46
|
+
Parameters.$host,
|
|
47
|
+
Parameters.subscriptionId,
|
|
48
|
+
Parameters.resourceGroupName,
|
|
49
|
+
Parameters.workspaceName,
|
|
50
|
+
Parameters.nextLink,
|
|
51
|
+
],
|
|
52
|
+
headerParameters: [Parameters.accept],
|
|
53
|
+
serializer,
|
|
54
|
+
};
|
|
55
|
+
/** Class containing Providers operations. */
|
|
56
|
+
export class ProvidersImpl {
|
|
57
|
+
client;
|
|
58
|
+
/**
|
|
59
|
+
* Initialize a new instance of the class Providers class.
|
|
60
|
+
* @param client Reference to the service client
|
|
61
|
+
*/
|
|
62
|
+
constructor(client) {
|
|
63
|
+
this.client = client;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Get provider status.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
listStatus(options) {
|
|
70
|
+
const iter = this.getStatusPagingAll(options);
|
|
71
|
+
return {
|
|
72
|
+
next() {
|
|
73
|
+
return iter.next();
|
|
74
|
+
},
|
|
75
|
+
[Symbol.asyncIterator]() {
|
|
76
|
+
return this;
|
|
77
|
+
},
|
|
78
|
+
byPage: () => {
|
|
79
|
+
return this.getStatusPagingPage(options);
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
async *getStatusPagingPage(options) {
|
|
84
|
+
let result = await this._getStatus(options);
|
|
85
|
+
yield result.value || [];
|
|
86
|
+
let continuationToken = result.nextLink;
|
|
87
|
+
while (continuationToken) {
|
|
88
|
+
result = await this._getStatusNext(continuationToken, options);
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async *getStatusPagingAll(options) {
|
|
94
|
+
for await (const page of this.getStatusPagingPage(options)) {
|
|
95
|
+
yield* page;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get provider status.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
async _getStatus(options) {
|
|
103
|
+
return tracingClient.withSpan("QuantumJobClient._getStatus", options ?? {}, async (updatedOptions) => {
|
|
104
|
+
return this.client.sendOperationRequest({ updatedOptions }, getStatusOperationSpec);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* GetStatusNext
|
|
109
|
+
* @param nextLink The nextLink from the previous successful call to the GetStatus method.
|
|
110
|
+
* @param options The options parameters.
|
|
111
|
+
*/
|
|
112
|
+
async _getStatusNext(nextLink, options) {
|
|
113
|
+
return tracingClient.withSpan("QuantumJobClient._getStatusNext", options ?? {}, async (updatedOptions) => {
|
|
114
|
+
return this.client.sendOperationRequest({ nextLink, updatedOptions }, getStatusNextOperationSpec);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/operations/providers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EAAE,+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MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,0BAA0B,CACgB,CAAC;QAC/C,CAAC,CACF,CAAC;IACJ,CAAC;CACF","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 { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport type { Providers } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { QuantumJobClient } from \"../quantumJobClient.js\";\nimport type {\n ProviderStatus,\n ProvidersGetStatusNextOptionalParams,\n ProvidersGetStatusOptionalParams,\n ProvidersGetStatusResponse,\n ProvidersGetStatusNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/providerStatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderStatusList,\n },\n default: {\n bodyMapper: Mappers.RestError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getStatusNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderStatusList,\n },\n default: {\n bodyMapper: Mappers.RestError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing Providers operations. */\nexport class ProvidersImpl implements Providers {\n private readonly client: QuantumJobClient;\n\n /**\n * Initialize a new instance of the class Providers class.\n * @param client Reference to the service client\n */\n constructor(client: QuantumJobClient) {\n this.client = client;\n }\n\n /**\n * Get provider status.\n * @param options The options parameters.\n */\n public listStatus(\n options?: ProvidersGetStatusOptionalParams,\n ): PagedAsyncIterableIterator<ProviderStatus> {\n const iter = this.getStatusPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.getStatusPagingPage(options);\n },\n };\n }\n\n private async *getStatusPagingPage(\n options?: ProvidersGetStatusOptionalParams,\n ): AsyncIterableIterator<ProviderStatus[]> {\n let result = await this._getStatus(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._getStatusNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *getStatusPagingAll(\n options?: ProvidersGetStatusOptionalParams,\n ): AsyncIterableIterator<ProviderStatus> {\n for await (const page of this.getStatusPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get provider status.\n * @param options The options parameters.\n */\n private async _getStatus(\n options?: ProvidersGetStatusOptionalParams,\n ): Promise<ProvidersGetStatusResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient._getStatus\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n getStatusOperationSpec,\n ) as Promise<ProvidersGetStatusResponse>;\n },\n );\n }\n\n /**\n * GetStatusNext\n * @param nextLink The nextLink from the previous successful call to the GetStatus method.\n * @param options The options parameters.\n */\n private async _getStatusNext(\n nextLink: string,\n options?: ProvidersGetStatusNextOptionalParams,\n ): Promise<ProvidersGetStatusNextResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient._getStatusNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n getStatusNextOperationSpec,\n ) as Promise<ProvidersGetStatusNextResponse>;\n },\n );\n }\n}\n"]}
|