@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.
Files changed (301) hide show
  1. package/{LICENSE.txt → LICENSE} +4 -4
  2. package/README.md +247 -98
  3. package/dist/browser/index.d.ts +4 -0
  4. package/dist/browser/index.d.ts.map +1 -0
  5. package/dist/browser/index.js +11 -0
  6. package/dist/browser/index.js.map +1 -0
  7. package/dist/browser/models/index.d.ts +320 -0
  8. package/dist/browser/models/index.d.ts.map +1 -0
  9. package/dist/browser/models/index.js +58 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.d.ts +13 -0
  12. package/dist/browser/models/mappers.d.ts.map +1 -0
  13. package/{dist-esm/src → dist/browser}/models/mappers.js +141 -140
  14. package/dist/browser/models/mappers.js.map +1 -0
  15. package/dist/browser/models/parameters.d.ts +12 -0
  16. package/dist/browser/models/parameters.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/models/parameters.js +37 -37
  18. package/dist/browser/models/parameters.js.map +1 -0
  19. package/dist/browser/operations/index.d.ts +5 -0
  20. package/dist/browser/operations/index.d.ts.map +1 -0
  21. package/dist/browser/operations/index.js +12 -0
  22. package/dist/browser/operations/index.js.map +1 -0
  23. package/dist/browser/operations/jobs.d.ts +51 -0
  24. package/dist/browser/operations/jobs.d.ts.map +1 -0
  25. package/dist/browser/operations/jobs.js +209 -0
  26. package/dist/browser/operations/jobs.js.map +1 -0
  27. package/dist/browser/operations/providers.d.ts +32 -0
  28. package/dist/browser/operations/providers.d.ts.map +1 -0
  29. package/dist/browser/operations/providers.js +118 -0
  30. package/dist/browser/operations/providers.js.map +1 -0
  31. package/dist/browser/operations/quotas.d.ts +32 -0
  32. package/dist/browser/operations/quotas.d.ts.map +1 -0
  33. package/dist/browser/operations/quotas.js +118 -0
  34. package/dist/browser/operations/quotas.js.map +1 -0
  35. package/dist/browser/operations/storage.d.ts +20 -0
  36. package/dist/browser/operations/storage.d.ts.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/storage.js +33 -35
  38. package/dist/browser/operations/storage.js.map +1 -0
  39. package/dist/browser/operationsInterfaces/index.d.ts +5 -0
  40. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  41. package/dist/browser/operationsInterfaces/index.js +12 -0
  42. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  43. package/dist/browser/operationsInterfaces/jobs.d.ts +30 -0
  44. package/dist/browser/operationsInterfaces/jobs.d.ts.map +1 -0
  45. package/{dist-esm/src/models/index.js → dist/browser/operationsInterfaces/jobs.js} +1 -1
  46. package/dist/browser/operationsInterfaces/jobs.js.map +1 -0
  47. package/dist/browser/operationsInterfaces/providers.d.ts +11 -0
  48. package/dist/browser/operationsInterfaces/providers.d.ts.map +1 -0
  49. package/{dist-esm/src/operations/index.js → dist/browser/operationsInterfaces/providers.js} +2 -5
  50. package/dist/browser/operationsInterfaces/providers.js.map +1 -0
  51. package/dist/browser/operationsInterfaces/quotas.d.ts +11 -0
  52. package/dist/browser/operationsInterfaces/quotas.d.ts.map +1 -0
  53. package/dist/browser/operationsInterfaces/quotas.js +9 -0
  54. package/dist/browser/operationsInterfaces/quotas.js.map +1 -0
  55. package/dist/browser/operationsInterfaces/storage.d.ts +12 -0
  56. package/dist/browser/operationsInterfaces/storage.d.ts.map +1 -0
  57. package/dist/browser/operationsInterfaces/storage.js +9 -0
  58. package/dist/browser/operationsInterfaces/storage.js.map +1 -0
  59. package/dist/browser/package.json +3 -0
  60. package/dist/browser/pagingHelper.d.ts +13 -0
  61. package/dist/browser/pagingHelper.d.ts.map +1 -0
  62. package/dist/browser/pagingHelper.js +30 -0
  63. package/dist/browser/pagingHelper.js.map +1 -0
  64. package/dist/browser/quantumJobClient.d.ts +25 -0
  65. package/dist/browser/quantumJobClient.d.ts.map +1 -0
  66. package/dist/browser/quantumJobClient.js +93 -0
  67. package/dist/browser/quantumJobClient.js.map +1 -0
  68. package/dist/browser/tracing.d.ts +2 -0
  69. package/dist/browser/tracing.d.ts.map +1 -0
  70. package/dist/browser/tracing.js +14 -0
  71. package/dist/browser/tracing.js.map +1 -0
  72. package/dist/commonjs/index.d.ts +4 -0
  73. package/dist/commonjs/index.d.ts.map +1 -0
  74. package/dist/commonjs/index.js +16 -0
  75. package/dist/commonjs/index.js.map +1 -0
  76. package/dist/commonjs/models/index.d.ts +320 -0
  77. package/dist/commonjs/models/index.d.ts.map +1 -0
  78. package/dist/commonjs/models/index.js +61 -0
  79. package/dist/commonjs/models/index.js.map +1 -0
  80. package/dist/commonjs/models/mappers.d.ts +13 -0
  81. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  82. package/dist/commonjs/models/mappers.js +414 -0
  83. package/dist/commonjs/models/mappers.js.map +1 -0
  84. package/dist/commonjs/models/parameters.d.ts +12 -0
  85. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  86. package/dist/commonjs/models/parameters.js +104 -0
  87. package/dist/commonjs/models/parameters.js.map +1 -0
  88. package/dist/commonjs/operations/index.d.ts +5 -0
  89. package/dist/commonjs/operations/index.d.ts.map +1 -0
  90. package/dist/commonjs/operations/index.js +15 -0
  91. package/dist/commonjs/operations/index.js.map +1 -0
  92. package/dist/commonjs/operations/jobs.d.ts +51 -0
  93. package/dist/commonjs/operations/jobs.d.ts.map +1 -0
  94. package/dist/commonjs/operations/jobs.js +214 -0
  95. package/dist/commonjs/operations/jobs.js.map +1 -0
  96. package/dist/commonjs/operations/providers.d.ts +32 -0
  97. package/dist/commonjs/operations/providers.d.ts.map +1 -0
  98. package/dist/commonjs/operations/providers.js +123 -0
  99. package/dist/commonjs/operations/providers.js.map +1 -0
  100. package/dist/commonjs/operations/quotas.d.ts +32 -0
  101. package/dist/commonjs/operations/quotas.d.ts.map +1 -0
  102. package/dist/commonjs/operations/quotas.js +123 -0
  103. package/dist/commonjs/operations/quotas.js.map +1 -0
  104. package/dist/commonjs/operations/storage.d.ts +20 -0
  105. package/dist/commonjs/operations/storage.d.ts.map +1 -0
  106. package/dist/commonjs/operations/storage.js +63 -0
  107. package/dist/commonjs/operations/storage.js.map +1 -0
  108. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
  109. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  110. package/dist/commonjs/operationsInterfaces/index.js +15 -0
  111. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  112. package/dist/commonjs/operationsInterfaces/jobs.d.ts +30 -0
  113. package/dist/commonjs/operationsInterfaces/jobs.d.ts.map +1 -0
  114. package/dist/commonjs/operationsInterfaces/jobs.js +10 -0
  115. package/dist/commonjs/operationsInterfaces/jobs.js.map +1 -0
  116. package/dist/commonjs/operationsInterfaces/providers.d.ts +11 -0
  117. package/dist/commonjs/operationsInterfaces/providers.d.ts.map +1 -0
  118. package/dist/commonjs/operationsInterfaces/providers.js +10 -0
  119. package/dist/commonjs/operationsInterfaces/providers.js.map +1 -0
  120. package/dist/commonjs/operationsInterfaces/quotas.d.ts +11 -0
  121. package/dist/commonjs/operationsInterfaces/quotas.d.ts.map +1 -0
  122. package/dist/commonjs/operationsInterfaces/quotas.js +10 -0
  123. package/dist/commonjs/operationsInterfaces/quotas.js.map +1 -0
  124. package/dist/commonjs/operationsInterfaces/storage.d.ts +12 -0
  125. package/dist/commonjs/operationsInterfaces/storage.d.ts.map +1 -0
  126. package/dist/commonjs/operationsInterfaces/storage.js +10 -0
  127. package/dist/commonjs/operationsInterfaces/storage.js.map +1 -0
  128. package/dist/commonjs/package.json +3 -0
  129. package/dist/commonjs/pagingHelper.d.ts +13 -0
  130. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  131. package/dist/commonjs/pagingHelper.js +34 -0
  132. package/dist/commonjs/pagingHelper.js.map +1 -0
  133. package/dist/commonjs/quantumJobClient.d.ts +25 -0
  134. package/dist/commonjs/quantumJobClient.d.ts.map +1 -0
  135. package/dist/commonjs/quantumJobClient.js +98 -0
  136. package/dist/commonjs/quantumJobClient.js.map +1 -0
  137. package/dist/commonjs/tracing.d.ts +2 -0
  138. package/dist/commonjs/tracing.d.ts.map +1 -0
  139. package/dist/commonjs/tracing.js +17 -0
  140. package/dist/commonjs/tracing.js.map +1 -0
  141. package/dist/commonjs/tsdoc-metadata.json +11 -0
  142. package/dist/esm/index.d.ts +4 -0
  143. package/dist/esm/index.d.ts.map +1 -0
  144. package/dist/esm/index.js +11 -0
  145. package/dist/esm/index.js.map +1 -0
  146. package/dist/esm/models/index.d.ts +320 -0
  147. package/dist/esm/models/index.d.ts.map +1 -0
  148. package/dist/esm/models/index.js +58 -0
  149. package/dist/esm/models/index.js.map +1 -0
  150. package/dist/esm/models/mappers.d.ts +13 -0
  151. package/dist/esm/models/mappers.d.ts.map +1 -0
  152. package/dist/esm/models/mappers.js +411 -0
  153. package/dist/esm/models/mappers.js.map +1 -0
  154. package/dist/esm/models/parameters.d.ts +12 -0
  155. package/dist/esm/models/parameters.d.ts.map +1 -0
  156. package/dist/esm/models/parameters.js +101 -0
  157. package/dist/esm/models/parameters.js.map +1 -0
  158. package/dist/esm/operations/index.d.ts +5 -0
  159. package/dist/esm/operations/index.d.ts.map +1 -0
  160. package/dist/esm/operations/index.js +12 -0
  161. package/dist/esm/operations/index.js.map +1 -0
  162. package/dist/esm/operations/jobs.d.ts +51 -0
  163. package/dist/esm/operations/jobs.d.ts.map +1 -0
  164. package/dist/esm/operations/jobs.js +209 -0
  165. package/dist/esm/operations/jobs.js.map +1 -0
  166. package/dist/esm/operations/providers.d.ts +32 -0
  167. package/dist/esm/operations/providers.d.ts.map +1 -0
  168. package/dist/esm/operations/providers.js +118 -0
  169. package/dist/esm/operations/providers.js.map +1 -0
  170. package/dist/esm/operations/quotas.d.ts +32 -0
  171. package/dist/esm/operations/quotas.d.ts.map +1 -0
  172. package/dist/esm/operations/quotas.js +118 -0
  173. package/dist/esm/operations/quotas.js.map +1 -0
  174. package/dist/esm/operations/storage.d.ts +20 -0
  175. package/dist/esm/operations/storage.d.ts.map +1 -0
  176. package/dist/esm/operations/storage.js +58 -0
  177. package/dist/esm/operations/storage.js.map +1 -0
  178. package/dist/esm/operationsInterfaces/index.d.ts +5 -0
  179. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  180. package/dist/esm/operationsInterfaces/index.js +12 -0
  181. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  182. package/dist/esm/operationsInterfaces/jobs.d.ts +30 -0
  183. package/dist/esm/operationsInterfaces/jobs.d.ts.map +1 -0
  184. package/dist/esm/operationsInterfaces/jobs.js +9 -0
  185. package/dist/esm/operationsInterfaces/jobs.js.map +1 -0
  186. package/dist/esm/operationsInterfaces/providers.d.ts +11 -0
  187. package/dist/esm/operationsInterfaces/providers.d.ts.map +1 -0
  188. package/dist/esm/operationsInterfaces/providers.js +9 -0
  189. package/dist/esm/operationsInterfaces/providers.js.map +1 -0
  190. package/dist/esm/operationsInterfaces/quotas.d.ts +11 -0
  191. package/dist/esm/operationsInterfaces/quotas.d.ts.map +1 -0
  192. package/dist/esm/operationsInterfaces/quotas.js +9 -0
  193. package/dist/esm/operationsInterfaces/quotas.js.map +1 -0
  194. package/dist/esm/operationsInterfaces/storage.d.ts +12 -0
  195. package/dist/esm/operationsInterfaces/storage.d.ts.map +1 -0
  196. package/dist/esm/operationsInterfaces/storage.js +9 -0
  197. package/dist/esm/operationsInterfaces/storage.js.map +1 -0
  198. package/dist/esm/package.json +3 -0
  199. package/dist/esm/pagingHelper.d.ts +13 -0
  200. package/dist/esm/pagingHelper.d.ts.map +1 -0
  201. package/dist/esm/pagingHelper.js +30 -0
  202. package/dist/esm/pagingHelper.js.map +1 -0
  203. package/dist/esm/quantumJobClient.d.ts +25 -0
  204. package/dist/esm/quantumJobClient.d.ts.map +1 -0
  205. package/dist/esm/quantumJobClient.js +93 -0
  206. package/dist/esm/quantumJobClient.js.map +1 -0
  207. package/dist/esm/tracing.d.ts +2 -0
  208. package/dist/esm/tracing.d.ts.map +1 -0
  209. package/dist/esm/tracing.js +14 -0
  210. package/dist/esm/tracing.js.map +1 -0
  211. package/dist/react-native/index.d.ts +4 -0
  212. package/dist/react-native/index.d.ts.map +1 -0
  213. package/dist/react-native/index.js +11 -0
  214. package/dist/react-native/index.js.map +1 -0
  215. package/dist/react-native/models/index.d.ts +320 -0
  216. package/dist/react-native/models/index.d.ts.map +1 -0
  217. package/dist/react-native/models/index.js +58 -0
  218. package/dist/react-native/models/index.js.map +1 -0
  219. package/dist/react-native/models/mappers.d.ts +13 -0
  220. package/dist/react-native/models/mappers.d.ts.map +1 -0
  221. package/dist/react-native/models/mappers.js +411 -0
  222. package/dist/react-native/models/mappers.js.map +1 -0
  223. package/dist/react-native/models/parameters.d.ts +12 -0
  224. package/dist/react-native/models/parameters.d.ts.map +1 -0
  225. package/dist/react-native/models/parameters.js +101 -0
  226. package/dist/react-native/models/parameters.js.map +1 -0
  227. package/dist/react-native/operations/index.d.ts +5 -0
  228. package/dist/react-native/operations/index.d.ts.map +1 -0
  229. package/dist/react-native/operations/index.js +12 -0
  230. package/dist/react-native/operations/index.js.map +1 -0
  231. package/dist/react-native/operations/jobs.d.ts +51 -0
  232. package/dist/react-native/operations/jobs.d.ts.map +1 -0
  233. package/dist/react-native/operations/jobs.js +209 -0
  234. package/dist/react-native/operations/jobs.js.map +1 -0
  235. package/dist/react-native/operations/providers.d.ts +32 -0
  236. package/dist/react-native/operations/providers.d.ts.map +1 -0
  237. package/dist/react-native/operations/providers.js +118 -0
  238. package/dist/react-native/operations/providers.js.map +1 -0
  239. package/dist/react-native/operations/quotas.d.ts +32 -0
  240. package/dist/react-native/operations/quotas.d.ts.map +1 -0
  241. package/dist/react-native/operations/quotas.js +118 -0
  242. package/dist/react-native/operations/quotas.js.map +1 -0
  243. package/dist/react-native/operations/storage.d.ts +20 -0
  244. package/dist/react-native/operations/storage.d.ts.map +1 -0
  245. package/dist/react-native/operations/storage.js +58 -0
  246. package/dist/react-native/operations/storage.js.map +1 -0
  247. package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
  248. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  249. package/dist/react-native/operationsInterfaces/index.js +12 -0
  250. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  251. package/dist/react-native/operationsInterfaces/jobs.d.ts +30 -0
  252. package/dist/react-native/operationsInterfaces/jobs.d.ts.map +1 -0
  253. package/dist/react-native/operationsInterfaces/jobs.js +9 -0
  254. package/dist/react-native/operationsInterfaces/jobs.js.map +1 -0
  255. package/dist/react-native/operationsInterfaces/providers.d.ts +11 -0
  256. package/dist/react-native/operationsInterfaces/providers.d.ts.map +1 -0
  257. package/dist/react-native/operationsInterfaces/providers.js +9 -0
  258. package/dist/react-native/operationsInterfaces/providers.js.map +1 -0
  259. package/dist/react-native/operationsInterfaces/quotas.d.ts +11 -0
  260. package/dist/react-native/operationsInterfaces/quotas.d.ts.map +1 -0
  261. package/dist/react-native/operationsInterfaces/quotas.js +9 -0
  262. package/dist/react-native/operationsInterfaces/quotas.js.map +1 -0
  263. package/dist/react-native/operationsInterfaces/storage.d.ts +12 -0
  264. package/dist/react-native/operationsInterfaces/storage.d.ts.map +1 -0
  265. package/dist/react-native/operationsInterfaces/storage.js +9 -0
  266. package/dist/react-native/operationsInterfaces/storage.js.map +1 -0
  267. package/dist/react-native/package.json +3 -0
  268. package/dist/react-native/pagingHelper.d.ts +13 -0
  269. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  270. package/dist/react-native/pagingHelper.js +30 -0
  271. package/dist/react-native/pagingHelper.js.map +1 -0
  272. package/dist/react-native/quantumJobClient.d.ts +25 -0
  273. package/dist/react-native/quantumJobClient.d.ts.map +1 -0
  274. package/dist/react-native/quantumJobClient.js +93 -0
  275. package/dist/react-native/quantumJobClient.js.map +1 -0
  276. package/dist/react-native/tracing.d.ts +2 -0
  277. package/dist/react-native/tracing.d.ts.map +1 -0
  278. package/dist/react-native/tracing.js +14 -0
  279. package/dist/react-native/tracing.js.map +1 -0
  280. package/package.json +90 -92
  281. package/CHANGELOG.md +0 -5
  282. package/dist/index.js +0 -1309
  283. package/dist/index.js.map +0 -1
  284. package/dist-esm/src/index.js +0 -13
  285. package/dist-esm/src/index.js.map +0 -1
  286. package/dist-esm/src/models/index.js.map +0 -1
  287. package/dist-esm/src/models/mappers.js.map +0 -1
  288. package/dist-esm/src/models/parameters.js.map +0 -1
  289. package/dist-esm/src/operations/index.js.map +0 -1
  290. package/dist-esm/src/operations/jobs.js +0 -280
  291. package/dist-esm/src/operations/jobs.js.map +0 -1
  292. package/dist-esm/src/operations/providers.js +0 -182
  293. package/dist-esm/src/operations/providers.js.map +0 -1
  294. package/dist-esm/src/operations/quotas.js +0 -182
  295. package/dist-esm/src/operations/quotas.js.map +0 -1
  296. package/dist-esm/src/operations/storage.js.map +0 -1
  297. package/dist-esm/src/quantumJobClient.js +0 -33
  298. package/dist-esm/src/quantumJobClient.js.map +0 -1
  299. package/dist-esm/src/quantumJobClientContext.js +0 -59
  300. package/dist-esm/src/quantumJobClientContext.js.map +0 -1
  301. package/types/latest/quantum-jobs.d.ts +0 -534
@@ -0,0 +1,214 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.JobsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const tracing_js_1 = require("../tracing.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ // Operation Specifications
17
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
18
+ const listOperationSpec = {
19
+ path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs",
20
+ httpMethod: "GET",
21
+ responses: {
22
+ 200: {
23
+ bodyMapper: Mappers.JobDetailsList,
24
+ },
25
+ },
26
+ urlParameters: [
27
+ Parameters.$host,
28
+ Parameters.subscriptionId,
29
+ Parameters.resourceGroupName,
30
+ Parameters.workspaceName,
31
+ ],
32
+ headerParameters: [Parameters.accept],
33
+ serializer,
34
+ };
35
+ const getOperationSpec = {
36
+ path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
37
+ httpMethod: "GET",
38
+ responses: {
39
+ 200: {
40
+ bodyMapper: Mappers.JobDetails,
41
+ },
42
+ default: {
43
+ bodyMapper: Mappers.RestError,
44
+ },
45
+ },
46
+ urlParameters: [
47
+ Parameters.$host,
48
+ Parameters.subscriptionId,
49
+ Parameters.resourceGroupName,
50
+ Parameters.workspaceName,
51
+ Parameters.jobId,
52
+ ],
53
+ headerParameters: [Parameters.accept],
54
+ serializer,
55
+ };
56
+ const createOperationSpec = {
57
+ path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
58
+ httpMethod: "PUT",
59
+ responses: {
60
+ 200: {
61
+ bodyMapper: Mappers.JobDetails,
62
+ },
63
+ 201: {
64
+ bodyMapper: Mappers.JobDetails,
65
+ },
66
+ default: {
67
+ bodyMapper: Mappers.RestError,
68
+ },
69
+ },
70
+ requestBody: Parameters.job,
71
+ urlParameters: [
72
+ Parameters.$host,
73
+ Parameters.subscriptionId,
74
+ Parameters.resourceGroupName,
75
+ Parameters.workspaceName,
76
+ Parameters.jobId,
77
+ ],
78
+ headerParameters: [Parameters.accept, Parameters.contentType],
79
+ mediaType: "json",
80
+ serializer,
81
+ };
82
+ const cancelOperationSpec = {
83
+ path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/jobs/{jobId}",
84
+ httpMethod: "DELETE",
85
+ responses: {
86
+ 204: {},
87
+ default: {
88
+ bodyMapper: Mappers.RestError,
89
+ },
90
+ },
91
+ urlParameters: [
92
+ Parameters.$host,
93
+ Parameters.subscriptionId,
94
+ Parameters.resourceGroupName,
95
+ Parameters.workspaceName,
96
+ Parameters.jobId,
97
+ ],
98
+ headerParameters: [Parameters.accept],
99
+ serializer,
100
+ };
101
+ const listNextOperationSpec = {
102
+ path: "{nextLink}",
103
+ httpMethod: "GET",
104
+ responses: {
105
+ 200: {
106
+ bodyMapper: Mappers.JobDetailsList,
107
+ },
108
+ },
109
+ urlParameters: [
110
+ Parameters.$host,
111
+ Parameters.subscriptionId,
112
+ Parameters.resourceGroupName,
113
+ Parameters.workspaceName,
114
+ Parameters.nextLink,
115
+ ],
116
+ headerParameters: [Parameters.accept],
117
+ serializer,
118
+ };
119
+ /** Class containing Jobs operations. */
120
+ class JobsImpl {
121
+ client;
122
+ /**
123
+ * Initialize a new instance of the class Jobs class.
124
+ * @param client Reference to the service client
125
+ */
126
+ constructor(client) {
127
+ this.client = client;
128
+ }
129
+ /**
130
+ * List jobs.
131
+ * @param options The options parameters.
132
+ */
133
+ list(options) {
134
+ const iter = this.listPagingAll(options);
135
+ return {
136
+ next() {
137
+ return iter.next();
138
+ },
139
+ [Symbol.asyncIterator]() {
140
+ return this;
141
+ },
142
+ byPage: () => {
143
+ return this.listPagingPage(options);
144
+ },
145
+ };
146
+ }
147
+ async *listPagingPage(options) {
148
+ let result = await this._list(options);
149
+ yield result.value || [];
150
+ let continuationToken = result.nextLink;
151
+ while (continuationToken) {
152
+ result = await this._listNext(continuationToken, options);
153
+ continuationToken = result.nextLink;
154
+ yield result.value || [];
155
+ }
156
+ }
157
+ async *listPagingAll(options) {
158
+ for await (const page of this.listPagingPage(options)) {
159
+ yield* page;
160
+ }
161
+ }
162
+ /**
163
+ * List jobs.
164
+ * @param options The options parameters.
165
+ */
166
+ async _list(options) {
167
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient._list", options ?? {}, async (updatedOptions) => {
168
+ return this.client.sendOperationRequest({ updatedOptions }, listOperationSpec);
169
+ });
170
+ }
171
+ /**
172
+ * Get job by id
173
+ * @param jobId Id of the job.
174
+ * @param options The options parameters.
175
+ */
176
+ async get(jobId, options) {
177
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient.get", options ?? {}, async (updatedOptions) => {
178
+ return this.client.sendOperationRequest({ jobId, updatedOptions }, getOperationSpec);
179
+ });
180
+ }
181
+ /**
182
+ * Create a job.
183
+ * @param jobId Id of the job.
184
+ * @param job The complete metadata of the job to submit.
185
+ * @param options The options parameters.
186
+ */
187
+ async create(jobId, job, options) {
188
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient.create", options ?? {}, async (updatedOptions) => {
189
+ return this.client.sendOperationRequest({ jobId, job, updatedOptions }, createOperationSpec);
190
+ });
191
+ }
192
+ /**
193
+ * Cancel a job.
194
+ * @param jobId Id of the job.
195
+ * @param options The options parameters.
196
+ */
197
+ async cancel(jobId, options) {
198
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient.cancel", options ?? {}, async (updatedOptions) => {
199
+ return this.client.sendOperationRequest({ jobId, updatedOptions }, cancelOperationSpec);
200
+ });
201
+ }
202
+ /**
203
+ * ListNext
204
+ * @param nextLink The nextLink from the previous successful call to the List method.
205
+ * @param options The options parameters.
206
+ */
207
+ async _listNext(nextLink, options) {
208
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient._listNext", options ?? {}, async (updatedOptions) => {
209
+ return this.client.sendOperationRequest({ nextLink, updatedOptions }, listNextOperationSpec);
210
+ });
211
+ }
212
+ }
213
+ exports.JobsImpl = JobsImpl;
214
+ //# sourceMappingURL=jobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../../src/operations/jobs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAG9C,uEAA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,cAAc,EAAE,EAC5B,qBAAqB,CACW,CAAC;QACrC,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA/ID,4BA+IC","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,123 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ProvidersImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const tracing_js_1 = require("../tracing.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ // Operation Specifications
17
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
18
+ const getStatusOperationSpec = {
19
+ path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/providerStatus",
20
+ httpMethod: "GET",
21
+ responses: {
22
+ 200: {
23
+ bodyMapper: Mappers.ProviderStatusList,
24
+ },
25
+ default: {
26
+ bodyMapper: Mappers.RestError,
27
+ },
28
+ },
29
+ urlParameters: [
30
+ Parameters.$host,
31
+ Parameters.subscriptionId,
32
+ Parameters.resourceGroupName,
33
+ Parameters.workspaceName,
34
+ ],
35
+ headerParameters: [Parameters.accept],
36
+ serializer,
37
+ };
38
+ const getStatusNextOperationSpec = {
39
+ path: "{nextLink}",
40
+ httpMethod: "GET",
41
+ responses: {
42
+ 200: {
43
+ bodyMapper: Mappers.ProviderStatusList,
44
+ },
45
+ default: {
46
+ bodyMapper: Mappers.RestError,
47
+ },
48
+ },
49
+ urlParameters: [
50
+ Parameters.$host,
51
+ Parameters.subscriptionId,
52
+ Parameters.resourceGroupName,
53
+ Parameters.workspaceName,
54
+ Parameters.nextLink,
55
+ ],
56
+ headerParameters: [Parameters.accept],
57
+ serializer,
58
+ };
59
+ /** Class containing Providers operations. */
60
+ class ProvidersImpl {
61
+ client;
62
+ /**
63
+ * Initialize a new instance of the class Providers class.
64
+ * @param client Reference to the service client
65
+ */
66
+ constructor(client) {
67
+ this.client = client;
68
+ }
69
+ /**
70
+ * Get provider status.
71
+ * @param options The options parameters.
72
+ */
73
+ listStatus(options) {
74
+ const iter = this.getStatusPagingAll(options);
75
+ return {
76
+ next() {
77
+ return iter.next();
78
+ },
79
+ [Symbol.asyncIterator]() {
80
+ return this;
81
+ },
82
+ byPage: () => {
83
+ return this.getStatusPagingPage(options);
84
+ },
85
+ };
86
+ }
87
+ async *getStatusPagingPage(options) {
88
+ let result = await this._getStatus(options);
89
+ yield result.value || [];
90
+ let continuationToken = result.nextLink;
91
+ while (continuationToken) {
92
+ result = await this._getStatusNext(continuationToken, options);
93
+ continuationToken = result.nextLink;
94
+ yield result.value || [];
95
+ }
96
+ }
97
+ async *getStatusPagingAll(options) {
98
+ for await (const page of this.getStatusPagingPage(options)) {
99
+ yield* page;
100
+ }
101
+ }
102
+ /**
103
+ * Get provider status.
104
+ * @param options The options parameters.
105
+ */
106
+ async _getStatus(options) {
107
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient._getStatus", options ?? {}, async (updatedOptions) => {
108
+ return this.client.sendOperationRequest({ updatedOptions }, getStatusOperationSpec);
109
+ });
110
+ }
111
+ /**
112
+ * GetStatusNext
113
+ * @param nextLink The nextLink from the previous successful call to the GetStatus method.
114
+ * @param options The options parameters.
115
+ */
116
+ async _getStatusNext(nextLink, options) {
117
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient._getStatusNext", options ?? {}, async (updatedOptions) => {
118
+ return this.client.sendOperationRequest({ nextLink, updatedOptions }, getStatusNextOperationSpec);
119
+ });
120
+ }
121
+ }
122
+ exports.ProvidersImpl = ProvidersImpl;
123
+ //# sourceMappingURL=providers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/operations/providers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAG9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EAAE,+IAA+I;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;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,0BAA0B,GAA6B;IAC3D,IAAI,EAA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AAC,CAAC;YAC/D,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACpC,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;QAC3B,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,CAAC,kBAAkB,CAC/B,OAA0C;QAE1C,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3D,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,UAAU,CACtB,OAA0C;QAE1C,OAAO,0BAAa,CAAC,QAAQ,CAC3B,6BAA6B,EAC7B,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,cAAc,EAAE,EAClB,sBAAsB,CACgB,CAAC;QAC3C,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,cAAc,CAC1B,QAAgB,EAChB,OAA8C;QAE9C,OAAO,0BAAa,CAAC,QAAQ,CAC3B,iCAAiC,EACjC,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,0BAA0B,CACgB,CAAC;QAC/C,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA5FD,sCA4FC","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"]}
@@ -0,0 +1,32 @@
1
+ import type { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import type { Quotas } from "../operationsInterfaces/index.js";
3
+ import type { QuantumJobClient } from "../quantumJobClient.js";
4
+ import type { Quota, QuotasListOptionalParams } from "../models/index.js";
5
+ /** Class containing Quotas operations. */
6
+ export declare class QuotasImpl implements Quotas {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Quotas class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: QuantumJobClient);
13
+ /**
14
+ * List quotas for the given workspace.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: QuotasListOptionalParams): PagedAsyncIterableIterator<Quota>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * List quotas for the given workspace.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=quotas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.d.ts","sourceRoot":"","sources":["../../../src/operations/quotas.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,KAAK,EAEL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AA+C5B,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;OAGG;IACI,IAAI,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,0BAA0B,CAAC,KAAK,CAAC;YAenE,cAAc;YAad,aAAa;IAM5B;;;OAGG;YACW,KAAK;IAanB;;;;OAIG;YACW,SAAS;CAexB"}
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.QuotasImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const tracing_js_1 = require("../tracing.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ // Operation Specifications
17
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
18
+ const listOperationSpec = {
19
+ path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/quotas",
20
+ httpMethod: "GET",
21
+ responses: {
22
+ 200: {
23
+ bodyMapper: Mappers.QuotaList,
24
+ },
25
+ default: {
26
+ bodyMapper: Mappers.RestError,
27
+ },
28
+ },
29
+ urlParameters: [
30
+ Parameters.$host,
31
+ Parameters.subscriptionId,
32
+ Parameters.resourceGroupName,
33
+ Parameters.workspaceName,
34
+ ],
35
+ headerParameters: [Parameters.accept],
36
+ serializer,
37
+ };
38
+ const listNextOperationSpec = {
39
+ path: "{nextLink}",
40
+ httpMethod: "GET",
41
+ responses: {
42
+ 200: {
43
+ bodyMapper: Mappers.QuotaList,
44
+ },
45
+ default: {
46
+ bodyMapper: Mappers.RestError,
47
+ },
48
+ },
49
+ urlParameters: [
50
+ Parameters.$host,
51
+ Parameters.subscriptionId,
52
+ Parameters.resourceGroupName,
53
+ Parameters.workspaceName,
54
+ Parameters.nextLink,
55
+ ],
56
+ headerParameters: [Parameters.accept],
57
+ serializer,
58
+ };
59
+ /** Class containing Quotas operations. */
60
+ class QuotasImpl {
61
+ client;
62
+ /**
63
+ * Initialize a new instance of the class Quotas class.
64
+ * @param client Reference to the service client
65
+ */
66
+ constructor(client) {
67
+ this.client = client;
68
+ }
69
+ /**
70
+ * List quotas for the given workspace.
71
+ * @param options The options parameters.
72
+ */
73
+ list(options) {
74
+ const iter = this.listPagingAll(options);
75
+ return {
76
+ next() {
77
+ return iter.next();
78
+ },
79
+ [Symbol.asyncIterator]() {
80
+ return this;
81
+ },
82
+ byPage: () => {
83
+ return this.listPagingPage(options);
84
+ },
85
+ };
86
+ }
87
+ async *listPagingPage(options) {
88
+ let result = await this._list(options);
89
+ yield result.value || [];
90
+ let continuationToken = result.nextLink;
91
+ while (continuationToken) {
92
+ result = await this._listNext(continuationToken, options);
93
+ continuationToken = result.nextLink;
94
+ yield result.value || [];
95
+ }
96
+ }
97
+ async *listPagingAll(options) {
98
+ for await (const page of this.listPagingPage(options)) {
99
+ yield* page;
100
+ }
101
+ }
102
+ /**
103
+ * List quotas for the given workspace.
104
+ * @param options The options parameters.
105
+ */
106
+ async _list(options) {
107
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient._list", options ?? {}, async (updatedOptions) => {
108
+ return this.client.sendOperationRequest({ updatedOptions }, listOperationSpec);
109
+ });
110
+ }
111
+ /**
112
+ * ListNext
113
+ * @param nextLink The nextLink from the previous successful call to the List method.
114
+ * @param options The options parameters.
115
+ */
116
+ async _listNext(nextLink, options) {
117
+ return tracing_js_1.tracingClient.withSpan("QuantumJobClient._listNext", options ?? {}, async (updatedOptions) => {
118
+ return this.client.sendOperationRequest({ nextLink, updatedOptions }, listNextOperationSpec);
119
+ });
120
+ }
121
+ }
122
+ exports.QuotasImpl = QuotasImpl;
123
+ //# sourceMappingURL=quotas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.js","sourceRoot":"","sources":["../../../src/operations/quotas.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAG9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,uIAAuI;IAC7I,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS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D,gCAsFC","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 { Quotas } 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 Quota,\n QuotasListNextOptionalParams,\n QuotasListOptionalParams,\n QuotasListResponse,\n QuotasListNextResponse,\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}/quotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaList,\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 listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaList,\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 Quotas operations. */\nexport class QuotasImpl implements Quotas {\n private readonly client: QuantumJobClient;\n\n /**\n * Initialize a new instance of the class Quotas class.\n * @param client Reference to the service client\n */\n constructor(client: QuantumJobClient) {\n this.client = client;\n }\n\n /**\n * List quotas for the given workspace.\n * @param options The options parameters.\n */\n public list(options?: QuotasListOptionalParams): PagedAsyncIterableIterator<Quota> {\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?: QuotasListOptionalParams,\n ): AsyncIterableIterator<Quota[]> {\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(options?: QuotasListOptionalParams): AsyncIterableIterator<Quota> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List quotas for the given workspace.\n * @param options The options parameters.\n */\n private async _list(options?: QuotasListOptionalParams): Promise<QuotasListResponse> {\n return tracingClient.withSpan(\n \"QuantumJobClient._list\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<QuotasListResponse>;\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?: QuotasListNextOptionalParams,\n ): Promise<QuotasListNextResponse> {\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<QuotasListNextResponse>;\n },\n );\n }\n}\n"]}
@@ -0,0 +1,20 @@
1
+ import type { Storage } from "../operationsInterfaces/index.js";
2
+ import type { QuantumJobClient } from "../quantumJobClient.js";
3
+ import type { BlobDetails, StorageSasUriOptionalParams, StorageSasUriResponse } from "../models/index.js";
4
+ /** Class containing Storage operations. */
5
+ export declare class StorageImpl implements Storage {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class Storage class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: QuantumJobClient);
12
+ /**
13
+ * Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.
14
+ * The SAS URL can be used to upload job input and/or download job output.
15
+ * @param blobDetails The details (name and container) of the blob to store or download data.
16
+ * @param options The options parameters.
17
+ */
18
+ sasUri(blobDetails: BlobDetails, options?: StorageSasUriOptionalParams): Promise<StorageSasUriResponse>;
19
+ }
20
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/operations/storage.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAIhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EACV,WAAW,EACX,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AA4B5B,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAE1C;;;OAGG;gBACS,MAAM,EAAE,gBAAgB;IAIpC;;;;;OAKG;IACG,MAAM,CACV,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;CAYlC"}