@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
@@ -1,182 +0,0 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __generator, __values } from "tslib";
9
- import * as coreHttp from "@azure/core-http";
10
- import * as Mappers from "../models/mappers";
11
- import * as Parameters from "../models/parameters";
12
- /** Class representing a Providers. */
13
- var Providers = /** @class */ (function () {
14
- /**
15
- * Initialize a new instance of the class Providers class.
16
- * @param client Reference to the service client
17
- */
18
- function Providers(client) {
19
- this.client = client;
20
- }
21
- /**
22
- * Get provider status.
23
- * @param options The options parameters.
24
- */
25
- Providers.prototype.listStatus = function (options) {
26
- var _a;
27
- var _this = this;
28
- var iter = this.getStatusPagingAll(options);
29
- return _a = {
30
- next: function () {
31
- return iter.next();
32
- }
33
- },
34
- _a[Symbol.asyncIterator] = function () {
35
- return this;
36
- },
37
- _a.byPage = function () {
38
- return _this.getStatusPagingPage(options);
39
- },
40
- _a;
41
- };
42
- Providers.prototype.getStatusPagingPage = function (options) {
43
- return __asyncGenerator(this, arguments, function getStatusPagingPage_1() {
44
- var result, continuationToken;
45
- return __generator(this, function (_a) {
46
- switch (_a.label) {
47
- case 0: return [4 /*yield*/, __await(this._getStatus(options))];
48
- case 1:
49
- result = _a.sent();
50
- return [4 /*yield*/, __await(result.value || [])];
51
- case 2: return [4 /*yield*/, _a.sent()];
52
- case 3:
53
- _a.sent();
54
- continuationToken = result.nextLink;
55
- _a.label = 4;
56
- case 4:
57
- if (!continuationToken) return [3 /*break*/, 8];
58
- return [4 /*yield*/, __await(this._getStatusNext(continuationToken, options))];
59
- case 5:
60
- result = _a.sent();
61
- continuationToken = result.nextLink;
62
- return [4 /*yield*/, __await(result.value || [])];
63
- case 6: return [4 /*yield*/, _a.sent()];
64
- case 7:
65
- _a.sent();
66
- return [3 /*break*/, 4];
67
- case 8: return [2 /*return*/];
68
- }
69
- });
70
- });
71
- };
72
- Providers.prototype.getStatusPagingAll = function (options) {
73
- return __asyncGenerator(this, arguments, function getStatusPagingAll_1() {
74
- var _a, _b, page, e_1_1;
75
- var e_1, _c;
76
- return __generator(this, function (_d) {
77
- switch (_d.label) {
78
- case 0:
79
- _d.trys.push([0, 7, 8, 13]);
80
- _a = __asyncValues(this.getStatusPagingPage(options));
81
- _d.label = 1;
82
- case 1: return [4 /*yield*/, __await(_a.next())];
83
- case 2:
84
- if (!(_b = _d.sent(), !_b.done)) return [3 /*break*/, 6];
85
- page = _b.value;
86
- return [5 /*yield**/, __values(__asyncDelegator(__asyncValues(page)))];
87
- case 3: return [4 /*yield*/, __await.apply(void 0, [_d.sent()])];
88
- case 4:
89
- _d.sent();
90
- _d.label = 5;
91
- case 5: return [3 /*break*/, 1];
92
- case 6: return [3 /*break*/, 13];
93
- case 7:
94
- e_1_1 = _d.sent();
95
- e_1 = { error: e_1_1 };
96
- return [3 /*break*/, 13];
97
- case 8:
98
- _d.trys.push([8, , 11, 12]);
99
- if (!(_b && !_b.done && (_c = _a.return))) return [3 /*break*/, 10];
100
- return [4 /*yield*/, __await(_c.call(_a))];
101
- case 9:
102
- _d.sent();
103
- _d.label = 10;
104
- case 10: return [3 /*break*/, 12];
105
- case 11:
106
- if (e_1) throw e_1.error;
107
- return [7 /*endfinally*/];
108
- case 12: return [7 /*endfinally*/];
109
- case 13: return [2 /*return*/];
110
- }
111
- });
112
- });
113
- };
114
- /**
115
- * Get provider status.
116
- * @param options The options parameters.
117
- */
118
- Providers.prototype._getStatus = function (options) {
119
- var operationArguments = {
120
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
121
- };
122
- return this.client.sendOperationRequest(operationArguments, getStatusOperationSpec);
123
- };
124
- /**
125
- * GetStatusNext
126
- * @param nextLink The nextLink from the previous successful call to the GetStatus method.
127
- * @param options The options parameters.
128
- */
129
- Providers.prototype._getStatusNext = function (nextLink, options) {
130
- var operationArguments = {
131
- nextLink: nextLink,
132
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
133
- };
134
- return this.client.sendOperationRequest(operationArguments, getStatusNextOperationSpec);
135
- };
136
- return Providers;
137
- }());
138
- export { Providers };
139
- // Operation Specifications
140
- var serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
141
- var getStatusOperationSpec = {
142
- path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/providerStatus",
143
- httpMethod: "GET",
144
- responses: {
145
- 200: {
146
- bodyMapper: Mappers.ProviderStatusList
147
- },
148
- default: {
149
- bodyMapper: Mappers.RestError
150
- }
151
- },
152
- urlParameters: [
153
- Parameters.$host,
154
- Parameters.subscriptionId,
155
- Parameters.resourceGroupName,
156
- Parameters.workspaceName
157
- ],
158
- headerParameters: [Parameters.accept],
159
- serializer: serializer
160
- };
161
- var getStatusNextOperationSpec = {
162
- path: "{nextLink}",
163
- httpMethod: "GET",
164
- responses: {
165
- 200: {
166
- bodyMapper: Mappers.ProviderStatusList
167
- },
168
- default: {
169
- bodyMapper: Mappers.RestError
170
- }
171
- },
172
- urlParameters: [
173
- Parameters.$host,
174
- Parameters.subscriptionId,
175
- Parameters.resourceGroupName,
176
- Parameters.workspaceName,
177
- Parameters.nextLink
178
- ],
179
- headerParameters: [Parameters.accept],
180
- serializer: serializer
181
- };
182
- //# sourceMappingURL=providers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/operations/providers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,sCAAsC;AACtC;IAGE;;;OAGG;IACH,mBAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,8BAAU,GAAjB,UACE,OAAmC;;QADrC,iBAeC;QAZC,IAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAC9C;gBACE,IAAI;oBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;gBACrB,CAAC;;YACD,GAAC,MAAM,CAAC,aAAa,IAArB;gBACE,OAAO,IAAI,CAAC;YACd,CAAC;YACD,SAAM,GAAE;gBACN,OAAO,KAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC3C,CAAC;eACD;IACJ,CAAC;IAEc,uCAAmB,GAAlC,UACE,OAAmC;;;;;4BAEtB,6BAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAA;;wBAAvC,MAAM,GAAG,SAA8B;qDACrC,MAAM,CAAC,KAAK,IAAI,EAAE;4BAAxB,gCAAwB;;wBAAxB,SAAwB,CAAC;wBACrB,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;;;6BACjC,iBAAiB;wBACb,6BAAM,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAAA;;wBAA9D,MAAM,GAAG,SAAqD,CAAC;wBAC/D,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;qDAC9B,MAAM,CAAC,KAAK,IAAI,EAAE;4BAAxB,gCAAwB;;wBAAxB,SAAwB,CAAC;;;;;;KAE5B;IAEc,sCAAkB,GAAjC,UACE,OAAmC;;;;;;;;wBAEV,KAAA,cAAA,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAA;;;;;wBAAzC,IAAI,WAAA,CAAA;wBACnB,sBAAA,SAAO,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,EAAA;4BAAX,4CAAA,SAAW,IAAA;;wBAAX,SAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;KAEf;IAED;;;OAGG;IACK,8BAAU,GAAlB,UAAmB,OAAmC;QACpD,IAAM,kBAAkB,GAAgC;YACtD,OAAO,EAAE,QAAQ,CAAC,oCAAoC,CAAC,OAAO,IAAI,EAAE,CAAC;SACtE,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,sBAAsB,CAEjF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,kCAAc,GAAtB,UACE,QAAgB,EAChB,OAAmC;QAEnC,IAAM,kBAAkB,GAAgC;YACtD,QAAQ,UAAA;YACR,OAAO,EAAE,QAAQ,CAAC,oCAAoC,CAAC,OAAO,IAAI,EAAE,CAAC;SACtE,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,kBAAkB,EAClB,0BAA0B,CACgB,CAAC;IAC/C,CAAC;IACH,gBAAC;AAAD,CAAC,AApFD,IAoFC;;AACD,2BAA2B;AAC3B,IAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAEvE,IAAM,sBAAsB,GAA2B;IACrD,IAAI,EACF,+IAA+I;IACjJ,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,YAAA;CACX,CAAC;AACF,IAAM,0BAA0B,GAA2B;IACzD,IAAI,EAAE,YAAY;IAClB,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;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU,YAAA;CACX,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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport * as coreHttp from \"@azure/core-http\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { QuantumJobClient } from \"../quantumJobClient\";\nimport {\n ProviderStatus,\n ProvidersGetStatusResponse,\n ProvidersGetStatusNextResponse\n} from \"../models\";\n\n/** Class representing a Providers. */\nexport class 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?: coreHttp.OperationOptions\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?: coreHttp.OperationOptions\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?: coreHttp.OperationOptions\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 _getStatus(options?: coreHttp.OperationOptions): Promise<ProvidersGetStatusResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, getStatusOperationSpec) as Promise<\n ProvidersGetStatusResponse\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 _getStatusNext(\n nextLink: string,\n options?: coreHttp.OperationOptions\n ): Promise<ProvidersGetStatusNextResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n nextLink,\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(\n operationArguments,\n getStatusNextOperationSpec\n ) as Promise<ProvidersGetStatusNextResponse>;\n }\n}\n// Operation Specifications\nconst serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);\n\nconst getStatusOperationSpec: coreHttp.OperationSpec = {\n path:\n \"/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: coreHttp.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"]}
@@ -1,182 +0,0 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __generator, __values } from "tslib";
9
- import * as coreHttp from "@azure/core-http";
10
- import * as Mappers from "../models/mappers";
11
- import * as Parameters from "../models/parameters";
12
- /** Class representing a Quotas. */
13
- var Quotas = /** @class */ (function () {
14
- /**
15
- * Initialize a new instance of the class Quotas class.
16
- * @param client Reference to the service client
17
- */
18
- function Quotas(client) {
19
- this.client = client;
20
- }
21
- /**
22
- * List quotas for the given workspace.
23
- * @param options The options parameters.
24
- */
25
- Quotas.prototype.list = function (options) {
26
- var _a;
27
- var _this = this;
28
- var iter = this.listPagingAll(options);
29
- return _a = {
30
- next: function () {
31
- return iter.next();
32
- }
33
- },
34
- _a[Symbol.asyncIterator] = function () {
35
- return this;
36
- },
37
- _a.byPage = function () {
38
- return _this.listPagingPage(options);
39
- },
40
- _a;
41
- };
42
- Quotas.prototype.listPagingPage = function (options) {
43
- return __asyncGenerator(this, arguments, function listPagingPage_1() {
44
- var result, continuationToken;
45
- return __generator(this, function (_a) {
46
- switch (_a.label) {
47
- case 0: return [4 /*yield*/, __await(this._list(options))];
48
- case 1:
49
- result = _a.sent();
50
- return [4 /*yield*/, __await(result.value || [])];
51
- case 2: return [4 /*yield*/, _a.sent()];
52
- case 3:
53
- _a.sent();
54
- continuationToken = result.nextLink;
55
- _a.label = 4;
56
- case 4:
57
- if (!continuationToken) return [3 /*break*/, 8];
58
- return [4 /*yield*/, __await(this._listNext(continuationToken, options))];
59
- case 5:
60
- result = _a.sent();
61
- continuationToken = result.nextLink;
62
- return [4 /*yield*/, __await(result.value || [])];
63
- case 6: return [4 /*yield*/, _a.sent()];
64
- case 7:
65
- _a.sent();
66
- return [3 /*break*/, 4];
67
- case 8: return [2 /*return*/];
68
- }
69
- });
70
- });
71
- };
72
- Quotas.prototype.listPagingAll = function (options) {
73
- return __asyncGenerator(this, arguments, function listPagingAll_1() {
74
- var _a, _b, page, e_1_1;
75
- var e_1, _c;
76
- return __generator(this, function (_d) {
77
- switch (_d.label) {
78
- case 0:
79
- _d.trys.push([0, 7, 8, 13]);
80
- _a = __asyncValues(this.listPagingPage(options));
81
- _d.label = 1;
82
- case 1: return [4 /*yield*/, __await(_a.next())];
83
- case 2:
84
- if (!(_b = _d.sent(), !_b.done)) return [3 /*break*/, 6];
85
- page = _b.value;
86
- return [5 /*yield**/, __values(__asyncDelegator(__asyncValues(page)))];
87
- case 3: return [4 /*yield*/, __await.apply(void 0, [_d.sent()])];
88
- case 4:
89
- _d.sent();
90
- _d.label = 5;
91
- case 5: return [3 /*break*/, 1];
92
- case 6: return [3 /*break*/, 13];
93
- case 7:
94
- e_1_1 = _d.sent();
95
- e_1 = { error: e_1_1 };
96
- return [3 /*break*/, 13];
97
- case 8:
98
- _d.trys.push([8, , 11, 12]);
99
- if (!(_b && !_b.done && (_c = _a.return))) return [3 /*break*/, 10];
100
- return [4 /*yield*/, __await(_c.call(_a))];
101
- case 9:
102
- _d.sent();
103
- _d.label = 10;
104
- case 10: return [3 /*break*/, 12];
105
- case 11:
106
- if (e_1) throw e_1.error;
107
- return [7 /*endfinally*/];
108
- case 12: return [7 /*endfinally*/];
109
- case 13: return [2 /*return*/];
110
- }
111
- });
112
- });
113
- };
114
- /**
115
- * List quotas for the given workspace.
116
- * @param options The options parameters.
117
- */
118
- Quotas.prototype._list = function (options) {
119
- var operationArguments = {
120
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
121
- };
122
- return this.client.sendOperationRequest(operationArguments, listOperationSpec);
123
- };
124
- /**
125
- * ListNext
126
- * @param nextLink The nextLink from the previous successful call to the List method.
127
- * @param options The options parameters.
128
- */
129
- Quotas.prototype._listNext = function (nextLink, options) {
130
- var operationArguments = {
131
- nextLink: nextLink,
132
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
133
- };
134
- return this.client.sendOperationRequest(operationArguments, listNextOperationSpec);
135
- };
136
- return Quotas;
137
- }());
138
- export { Quotas };
139
- // Operation Specifications
140
- var serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
141
- var listOperationSpec = {
142
- path: "/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/quotas",
143
- httpMethod: "GET",
144
- responses: {
145
- 200: {
146
- bodyMapper: Mappers.QuotaList
147
- },
148
- default: {
149
- bodyMapper: Mappers.RestError
150
- }
151
- },
152
- urlParameters: [
153
- Parameters.$host,
154
- Parameters.subscriptionId,
155
- Parameters.resourceGroupName,
156
- Parameters.workspaceName
157
- ],
158
- headerParameters: [Parameters.accept],
159
- serializer: serializer
160
- };
161
- var listNextOperationSpec = {
162
- path: "{nextLink}",
163
- httpMethod: "GET",
164
- responses: {
165
- 200: {
166
- bodyMapper: Mappers.QuotaList
167
- },
168
- default: {
169
- bodyMapper: Mappers.RestError
170
- }
171
- },
172
- urlParameters: [
173
- Parameters.$host,
174
- Parameters.subscriptionId,
175
- Parameters.resourceGroupName,
176
- Parameters.workspaceName,
177
- Parameters.nextLink
178
- ],
179
- headerParameters: [Parameters.accept],
180
- serializer: serializer
181
- };
182
- //# sourceMappingURL=quotas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quotas.js","sourceRoot":"","sources":["../../../src/operations/quotas.ts"],"names":[],"mappings":"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","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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport * as coreHttp from \"@azure/core-http\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { QuantumJobClient } from \"../quantumJobClient\";\nimport { Quota, QuotasListResponse, QuotasListNextResponse } from \"../models\";\n\n/** Class representing a Quotas. */\nexport class 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?: coreHttp.OperationOptions): 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?: coreHttp.OperationOptions\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?: coreHttp.OperationOptions): 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 _list(options?: coreHttp.OperationOptions): Promise<QuotasListResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, listOperationSpec) as Promise<\n QuotasListResponse\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 _listNext(\n nextLink: string,\n options?: coreHttp.OperationOptions\n ): Promise<QuotasListNextResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n nextLink,\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, listNextOperationSpec) as Promise<\n QuotasListNextResponse\n >;\n }\n}\n// Operation Specifications\nconst serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreHttp.OperationSpec = {\n path:\n \"/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: coreHttp.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"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/operations/storage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAInD,oCAAoC;AACpC;IAGE;;;OAGG;IACH,iBAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,wBAAM,GAAN,UACE,WAAwB,EACxB,OAAmC;QAEnC,IAAM,kBAAkB,GAAgC;YACtD,WAAW,aAAA;YACX,OAAO,EAAE,QAAQ,CAAC,oCAAoC,CAAC,OAAO,IAAI,EAAE,CAAC;SACtE,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,mBAAmB,CAE9E,CAAC;IACJ,CAAC;IACH,cAAC;AAAD,CAAC,AA7BD,IA6BC;;AACD,2BAA2B;AAC3B,IAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAEvE,IAAM,mBAAmB,GAA2B;IAClD,IAAI,EACF,+IAA+I;IACjJ,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,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,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU,YAAA;CACX,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 * as coreHttp from \"@azure/core-http\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { QuantumJobClient } from \"../quantumJobClient\";\nimport { BlobDetails, StorageSasUriResponse } from \"../models\";\n\n/** Class representing a Storage. */\nexport class Storage {\n private readonly client: QuantumJobClient;\n\n /**\n * Initialize a new instance of the class Storage class.\n * @param client Reference to the service client\n */\n constructor(client: QuantumJobClient) {\n this.client = client;\n }\n\n /**\n * Gets a URL with SAS token for a container/blob in the storage account associated with the workspace.\n * The SAS URL can be used to upload job input and/or download job output.\n * @param blobDetails The details (name and container) of the blob to store or download data.\n * @param options The options parameters.\n */\n sasUri(\n blobDetails: BlobDetails,\n options?: coreHttp.OperationOptions\n ): Promise<StorageSasUriResponse> {\n const operationArguments: coreHttp.OperationArguments = {\n blobDetails,\n options: coreHttp.operationOptionsToRequestOptionsBase(options || {})\n };\n return this.client.sendOperationRequest(operationArguments, sasUriOperationSpec) as Promise<\n StorageSasUriResponse\n >;\n }\n}\n// Operation Specifications\nconst serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);\n\nconst sasUriOperationSpec: coreHttp.OperationSpec = {\n path:\n \"/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/storage/sasUri\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SasUriResponse\n },\n default: {\n bodyMapper: Mappers.RestError\n }\n },\n requestBody: Parameters.blobDetails,\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -1,33 +0,0 @@
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 { __extends } from "tslib";
9
- import { Jobs, Providers, Storage, Quotas } from "./operations";
10
- import { QuantumJobClientContext } from "./quantumJobClientContext";
11
- var QuantumJobClient = /** @class */ (function (_super) {
12
- __extends(QuantumJobClient, _super);
13
- /**
14
- * Initializes a new instance of the QuantumJobClient class.
15
- * @param credentials Subscription credentials which uniquely identify client subscription.
16
- * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
17
- * 00000000-0000-0000-0000-000000000000)
18
- * @param resourceGroupName Name of an Azure resource group.
19
- * @param workspaceName Name of the workspace.
20
- * @param options The parameter options
21
- */
22
- function QuantumJobClient(credentials, subscriptionId, resourceGroupName, workspaceName, options) {
23
- var _this = _super.call(this, credentials, subscriptionId, resourceGroupName, workspaceName, options) || this;
24
- _this.jobs = new Jobs(_this);
25
- _this.providers = new Providers(_this);
26
- _this.storage = new Storage(_this);
27
- _this.quotas = new Quotas(_this);
28
- return _this;
29
- }
30
- return QuantumJobClient;
31
- }(QuantumJobClientContext));
32
- export { QuantumJobClient };
33
- //# sourceMappingURL=quantumJobClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quantumJobClient.js","sourceRoot":"","sources":["../../src/quantumJobClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE;IAAsC,oCAAuB;IAC3D;;;;;;;;OAQG;IACH,0BACE,WAAyE,EACzE,cAAsB,EACtB,iBAAyB,EACzB,aAAqB,EACrB,OAAwC;QAL1C,YAOE,kBAAM,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAC,SAK9E;QAJC,KAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,KAAI,CAAC,CAAC;QAC3B,KAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,KAAI,CAAC,CAAC;QACrC,KAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,KAAI,CAAC,CAAC;QACjC,KAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,KAAI,CAAC,CAAC;;IACjC,CAAC;IAMH,uBAAC;AAAD,CAAC,AA5BD,CAAsC,uBAAuB,GA4B5D","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 * as coreHttp from \"@azure/core-http\";\nimport { Jobs, Providers, Storage, Quotas } from \"./operations\";\nimport { QuantumJobClientContext } from \"./quantumJobClientContext\";\nimport { QuantumJobClientOptionalParams } from \"./models\";\n\nexport class QuantumJobClient extends QuantumJobClientContext {\n /**\n * Initializes a new instance of the QuantumJobClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param resourceGroupName Name of an Azure resource group.\n * @param workspaceName Name of the workspace.\n * @param options The parameter options\n */\n constructor(\n credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials,\n subscriptionId: string,\n resourceGroupName: string,\n workspaceName: string,\n options?: QuantumJobClientOptionalParams\n ) {\n super(credentials, subscriptionId, resourceGroupName, workspaceName, options);\n this.jobs = new Jobs(this);\n this.providers = new Providers(this);\n this.storage = new Storage(this);\n this.quotas = new Quotas(this);\n }\n\n jobs: Jobs;\n providers: Providers;\n storage: Storage;\n quotas: Quotas;\n}\n"]}
@@ -1,59 +0,0 @@
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 { __extends } from "tslib";
9
- import * as coreHttp from "@azure/core-http";
10
- var packageName = "@azure/quantum-jobs";
11
- var packageVersion = "1.0.0-beta.1";
12
- var QuantumJobClientContext = /** @class */ (function (_super) {
13
- __extends(QuantumJobClientContext, _super);
14
- /**
15
- * Initializes a new instance of the QuantumJobClientContext class.
16
- * @param credentials Subscription credentials which uniquely identify client subscription.
17
- * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
18
- * 00000000-0000-0000-0000-000000000000)
19
- * @param resourceGroupName Name of an Azure resource group.
20
- * @param workspaceName Name of the workspace.
21
- * @param options The parameter options
22
- */
23
- function QuantumJobClientContext(credentials, subscriptionId, resourceGroupName, workspaceName, options) {
24
- var _this = this;
25
- if (credentials === undefined) {
26
- throw new Error("'credentials' cannot be null");
27
- }
28
- if (subscriptionId === undefined) {
29
- throw new Error("'subscriptionId' cannot be null");
30
- }
31
- if (resourceGroupName === undefined) {
32
- throw new Error("'resourceGroupName' cannot be null");
33
- }
34
- if (workspaceName === undefined) {
35
- throw new Error("'workspaceName' cannot be null");
36
- }
37
- // Initializing default values for options
38
- if (!options) {
39
- options = {};
40
- }
41
- if (!options.userAgent) {
42
- var defaultUserAgent = coreHttp.getDefaultUserAgentValue();
43
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
44
- }
45
- _this = _super.call(this, credentials, options) || this;
46
- _this.requestContentType = "application/json; charset=utf-8";
47
- _this.baseUri = options.endpoint || "https://quantum.azure.com";
48
- // Parameter assignments
49
- _this.subscriptionId = subscriptionId;
50
- _this.resourceGroupName = resourceGroupName;
51
- _this.workspaceName = workspaceName;
52
- // Assigning values to Constant parameters
53
- _this.$host = options.$host || "https://quantum.azure.com";
54
- return _this;
55
- }
56
- return QuantumJobClientContext;
57
- }(coreHttp.ServiceClient));
58
- export { QuantumJobClientContext };
59
- //# sourceMappingURL=quantumJobClientContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quantumJobClientContext.js","sourceRoot":"","sources":["../../src/quantumJobClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,IAAM,WAAW,GAAG,qBAAqB,CAAC;AAC1C,IAAM,cAAc,GAAG,cAAc,CAAC;AAEtC;IAA6C,2CAAsB;IAMjE;;;;;;;;OAQG;IACH,iCACE,WAAyE,EACzE,cAAsB,EACtB,iBAAyB,EACzB,aAAqB,EACrB,OAAwC;QAL1C,iBA2CC;QApCC,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QACD,IAAI,iBAAiB,KAAK,SAAS,EAAE;YACnC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACvD;QACD,IAAI,aAAa,KAAK,SAAS,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACnD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,IAAM,gBAAgB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC7D,OAAO,CAAC,SAAS,GAAM,WAAW,SAAI,cAAc,SAAI,gBAAkB,CAAC;SAC5E;QAED,QAAA,kBAAM,WAAW,EAAE,OAAO,CAAC,SAAC;QAE5B,KAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAE5D,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,2BAA2B,CAAC;QAE/D,wBAAwB;QACxB,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,KAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QAEnC,0CAA0C;QAC1C,KAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,2BAA2B,CAAC;;IAC5D,CAAC;IACH,8BAAC;AAAD,CAAC,AA3DD,CAA6C,QAAQ,CAAC,aAAa,GA2DlE","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 * as coreHttp from \"@azure/core-http\";\nimport { QuantumJobClientOptionalParams } from \"./models\";\n\nconst packageName = \"@azure/quantum-jobs\";\nconst packageVersion = \"1.0.0-beta.1\";\n\nexport class QuantumJobClientContext extends coreHttp.ServiceClient {\n $host: string;\n subscriptionId: string;\n resourceGroupName: string;\n workspaceName: string;\n\n /**\n * Initializes a new instance of the QuantumJobClientContext class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param resourceGroupName Name of an Azure resource group.\n * @param workspaceName Name of the workspace.\n * @param options The parameter options\n */\n constructor(\n credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials,\n subscriptionId: string,\n resourceGroupName: string,\n workspaceName: string,\n options?: QuantumJobClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n if (resourceGroupName === undefined) {\n throw new Error(\"'resourceGroupName' cannot be null\");\n }\n if (workspaceName === undefined) {\n throw new Error(\"'workspaceName' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n super(credentials, options);\n\n this.requestContentType = \"application/json; charset=utf-8\";\n\n this.baseUri = options.endpoint || \"https://quantum.azure.com\";\n\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n this.resourceGroupName = resourceGroupName;\n this.workspaceName = workspaceName;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://quantum.azure.com\";\n }\n}\n"]}