@azure/arm-qumulo 2.0.1-alpha.20250211.1 → 2.0.1-alpha.20250212.1

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 (282) hide show
  1. package/README.md +21 -14
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/lroImpl.js.map +1 -0
  7. package/dist/browser/models/index.js.map +1 -0
  8. package/dist/browser/models/mappers.js.map +1 -0
  9. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  10. package/dist/browser/models/parameters.js.map +1 -0
  11. package/{dist-esm/src → dist/browser}/operations/fileSystems.d.ts +3 -3
  12. package/dist/browser/operations/fileSystems.d.ts.map +1 -0
  13. package/{dist-esm/src → dist/browser}/operations/fileSystems.js +79 -87
  14. package/dist/browser/operations/fileSystems.js.map +1 -0
  15. package/dist/browser/operations/index.d.ts +3 -0
  16. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  17. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +2 -2
  18. package/dist/browser/operations/index.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  20. package/dist/browser/operations/operations.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  22. package/dist/browser/operations/operations.js.map +1 -0
  23. package/{dist-esm/src → dist/browser}/operationsInterfaces/fileSystems.d.ts +1 -1
  24. package/dist/browser/operationsInterfaces/fileSystems.d.ts.map +1 -0
  25. package/dist/browser/operationsInterfaces/fileSystems.js.map +1 -0
  26. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  27. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  28. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +2 -2
  29. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  31. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  32. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  33. package/dist/browser/package.json +3 -0
  34. package/dist/browser/pagingHelper.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/qumuloStorage.d.ts +2 -2
  36. package/dist/browser/qumuloStorage.d.ts.map +1 -0
  37. package/{dist-esm/src → dist/browser}/qumuloStorage.js +15 -18
  38. package/dist/browser/qumuloStorage.js.map +1 -0
  39. package/dist/commonjs/index.d.ts +5 -0
  40. package/dist/commonjs/index.d.ts.map +1 -0
  41. package/dist/commonjs/index.js +19 -0
  42. package/dist/commonjs/index.js.map +1 -0
  43. package/dist/commonjs/lroImpl.d.ts +11 -0
  44. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  45. package/dist/commonjs/lroImpl.js +17 -0
  46. package/dist/commonjs/lroImpl.js.map +1 -0
  47. package/{types/arm-qumulo.d.ts → dist/commonjs/models/index.d.ts} +479 -631
  48. package/dist/commonjs/models/index.d.ts.map +1 -0
  49. package/dist/commonjs/models/index.js +83 -0
  50. package/dist/commonjs/models/index.js.map +1 -0
  51. package/dist/commonjs/models/mappers.d.ts +21 -0
  52. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  53. package/dist/commonjs/models/mappers.js +628 -0
  54. package/dist/commonjs/models/mappers.js.map +1 -0
  55. package/dist/commonjs/models/parameters.d.ts +12 -0
  56. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  57. package/dist/commonjs/models/parameters.js +115 -0
  58. package/dist/commonjs/models/parameters.js.map +1 -0
  59. package/dist/commonjs/operations/fileSystems.d.ts +99 -0
  60. package/dist/commonjs/operations/fileSystems.d.ts.map +1 -0
  61. package/dist/commonjs/operations/fileSystems.js +493 -0
  62. package/dist/commonjs/operations/fileSystems.js.map +1 -0
  63. package/dist/commonjs/operations/index.d.ts +3 -0
  64. package/dist/commonjs/operations/index.d.ts.map +1 -0
  65. package/dist/commonjs/operations/index.js +13 -0
  66. package/dist/commonjs/operations/index.js.map +1 -0
  67. package/dist/commonjs/operations/operations.d.ts +32 -0
  68. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  69. package/dist/commonjs/operations/operations.js +137 -0
  70. package/dist/commonjs/operations/operations.js.map +1 -0
  71. package/dist/commonjs/operationsInterfaces/fileSystems.d.ts +63 -0
  72. package/dist/commonjs/operationsInterfaces/fileSystems.d.ts.map +1 -0
  73. package/dist/commonjs/operationsInterfaces/fileSystems.js +10 -0
  74. package/dist/commonjs/operationsInterfaces/fileSystems.js.map +1 -0
  75. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  76. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  77. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  78. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  79. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  80. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  81. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  82. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  83. package/dist/commonjs/package.json +3 -0
  84. package/dist/commonjs/pagingHelper.d.ts +13 -0
  85. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  86. package/dist/commonjs/pagingHelper.js +36 -0
  87. package/dist/commonjs/pagingHelper.js.map +1 -0
  88. package/dist/commonjs/qumuloStorage.d.ts +21 -0
  89. package/dist/commonjs/qumuloStorage.d.ts.map +1 -0
  90. package/dist/commonjs/qumuloStorage.js +103 -0
  91. package/dist/commonjs/qumuloStorage.js.map +1 -0
  92. package/dist/esm/index.d.ts +5 -0
  93. package/dist/esm/index.d.ts.map +1 -0
  94. package/{src/index.ts → dist/esm/index.js} +5 -5
  95. package/dist/esm/index.js.map +1 -0
  96. package/dist/esm/lroImpl.d.ts +11 -0
  97. package/dist/esm/lroImpl.d.ts.map +1 -0
  98. package/dist/esm/lroImpl.js +14 -0
  99. package/dist/esm/lroImpl.js.map +1 -0
  100. package/dist/esm/models/index.d.ts +479 -0
  101. package/dist/esm/models/index.d.ts.map +1 -0
  102. package/dist/esm/models/index.js +80 -0
  103. package/dist/esm/models/index.js.map +1 -0
  104. package/dist/esm/models/mappers.d.ts +21 -0
  105. package/dist/esm/models/mappers.d.ts.map +1 -0
  106. package/dist/esm/models/mappers.js +625 -0
  107. package/dist/esm/models/mappers.js.map +1 -0
  108. package/dist/esm/models/parameters.d.ts +12 -0
  109. package/dist/esm/models/parameters.d.ts.map +1 -0
  110. package/dist/esm/models/parameters.js +112 -0
  111. package/dist/esm/models/parameters.js.map +1 -0
  112. package/dist/esm/operations/fileSystems.d.ts +99 -0
  113. package/dist/esm/operations/fileSystems.d.ts.map +1 -0
  114. package/dist/esm/operations/fileSystems.js +489 -0
  115. package/dist/esm/operations/fileSystems.js.map +1 -0
  116. package/dist/esm/operations/index.d.ts +3 -0
  117. package/dist/esm/operations/index.d.ts.map +1 -0
  118. package/dist/esm/operations/index.js +10 -0
  119. package/dist/esm/operations/index.js.map +1 -0
  120. package/dist/esm/operations/operations.d.ts +32 -0
  121. package/dist/esm/operations/operations.d.ts.map +1 -0
  122. package/dist/esm/operations/operations.js +133 -0
  123. package/dist/esm/operations/operations.js.map +1 -0
  124. package/dist/esm/operationsInterfaces/fileSystems.d.ts +63 -0
  125. package/dist/esm/operationsInterfaces/fileSystems.d.ts.map +1 -0
  126. package/{src/operations/index.ts → dist/esm/operationsInterfaces/fileSystems.js} +2 -3
  127. package/dist/esm/operationsInterfaces/fileSystems.js.map +1 -0
  128. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  129. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  130. package/dist/esm/operationsInterfaces/index.js +10 -0
  131. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  132. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  133. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  134. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/operations.js} +2 -3
  135. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  136. package/dist/esm/package.json +3 -0
  137. package/dist/esm/pagingHelper.d.ts +13 -0
  138. package/dist/esm/pagingHelper.d.ts.map +1 -0
  139. package/dist/esm/pagingHelper.js +32 -0
  140. package/dist/esm/pagingHelper.js.map +1 -0
  141. package/dist/esm/qumuloStorage.d.ts +21 -0
  142. package/dist/esm/qumuloStorage.d.ts.map +1 -0
  143. package/dist/esm/qumuloStorage.js +98 -0
  144. package/dist/esm/qumuloStorage.js.map +1 -0
  145. package/dist/react-native/index.d.ts +5 -0
  146. package/dist/react-native/index.d.ts.map +1 -0
  147. package/dist/react-native/index.js +13 -0
  148. package/dist/react-native/index.js.map +1 -0
  149. package/dist/react-native/lroImpl.d.ts +11 -0
  150. package/dist/react-native/lroImpl.d.ts.map +1 -0
  151. package/dist/react-native/lroImpl.js +14 -0
  152. package/dist/react-native/lroImpl.js.map +1 -0
  153. package/dist/react-native/models/index.d.ts +479 -0
  154. package/dist/react-native/models/index.d.ts.map +1 -0
  155. package/dist/react-native/models/index.js +80 -0
  156. package/dist/react-native/models/index.js.map +1 -0
  157. package/dist/react-native/models/mappers.d.ts +21 -0
  158. package/dist/react-native/models/mappers.d.ts.map +1 -0
  159. package/dist/react-native/models/mappers.js +625 -0
  160. package/dist/react-native/models/mappers.js.map +1 -0
  161. package/dist/react-native/models/parameters.d.ts +12 -0
  162. package/dist/react-native/models/parameters.d.ts.map +1 -0
  163. package/dist/react-native/models/parameters.js +112 -0
  164. package/dist/react-native/models/parameters.js.map +1 -0
  165. package/dist/react-native/operations/fileSystems.d.ts +99 -0
  166. package/dist/react-native/operations/fileSystems.d.ts.map +1 -0
  167. package/dist/react-native/operations/fileSystems.js +489 -0
  168. package/dist/react-native/operations/fileSystems.js.map +1 -0
  169. package/dist/react-native/operations/index.d.ts +3 -0
  170. package/dist/react-native/operations/index.d.ts.map +1 -0
  171. package/dist/react-native/operations/index.js +10 -0
  172. package/dist/react-native/operations/index.js.map +1 -0
  173. package/dist/react-native/operations/operations.d.ts +32 -0
  174. package/dist/react-native/operations/operations.d.ts.map +1 -0
  175. package/dist/react-native/operations/operations.js +133 -0
  176. package/dist/react-native/operations/operations.js.map +1 -0
  177. package/dist/react-native/operationsInterfaces/fileSystems.d.ts +63 -0
  178. package/dist/react-native/operationsInterfaces/fileSystems.d.ts.map +1 -0
  179. package/dist/react-native/operationsInterfaces/fileSystems.js +9 -0
  180. package/dist/react-native/operationsInterfaces/fileSystems.js.map +1 -0
  181. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  182. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  183. package/dist/react-native/operationsInterfaces/index.js +10 -0
  184. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  185. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  186. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  187. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  188. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  189. package/dist/react-native/package.json +3 -0
  190. package/dist/react-native/pagingHelper.d.ts +13 -0
  191. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  192. package/dist/react-native/pagingHelper.js +32 -0
  193. package/dist/react-native/pagingHelper.js.map +1 -0
  194. package/dist/react-native/qumuloStorage.d.ts +21 -0
  195. package/dist/react-native/qumuloStorage.d.ts.map +1 -0
  196. package/dist/react-native/qumuloStorage.js +98 -0
  197. package/dist/react-native/qumuloStorage.js.map +1 -0
  198. package/package.json +70 -42
  199. package/dist/index.js +0 -1631
  200. package/dist/index.js.map +0 -1
  201. package/dist/index.min.js +0 -1
  202. package/dist/index.min.js.map +0 -1
  203. package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.d.ts +0 -2
  204. package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.d.ts.map +0 -1
  205. package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.js +0 -80
  206. package/dist-esm/samples-dev/fileSystemsCreateOrUpdateSample.js.map +0 -1
  207. package/dist-esm/samples-dev/fileSystemsDeleteSample.d.ts +0 -2
  208. package/dist-esm/samples-dev/fileSystemsDeleteSample.d.ts.map +0 -1
  209. package/dist-esm/samples-dev/fileSystemsDeleteSample.js +0 -54
  210. package/dist-esm/samples-dev/fileSystemsDeleteSample.js.map +0 -1
  211. package/dist-esm/samples-dev/fileSystemsGetSample.d.ts +0 -2
  212. package/dist-esm/samples-dev/fileSystemsGetSample.d.ts.map +0 -1
  213. package/dist-esm/samples-dev/fileSystemsGetSample.js +0 -54
  214. package/dist-esm/samples-dev/fileSystemsGetSample.js.map +0 -1
  215. package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.d.ts +0 -2
  216. package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.d.ts.map +0 -1
  217. package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.js +0 -84
  218. package/dist-esm/samples-dev/fileSystemsListByResourceGroupSample.js.map +0 -1
  219. package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.d.ts +0 -2
  220. package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.d.ts.map +0 -1
  221. package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.js +0 -82
  222. package/dist-esm/samples-dev/fileSystemsListBySubscriptionSample.js.map +0 -1
  223. package/dist-esm/samples-dev/fileSystemsUpdateSample.d.ts +0 -2
  224. package/dist-esm/samples-dev/fileSystemsUpdateSample.d.ts.map +0 -1
  225. package/dist-esm/samples-dev/fileSystemsUpdateSample.js +0 -64
  226. package/dist-esm/samples-dev/fileSystemsUpdateSample.js.map +0 -1
  227. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  228. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  229. package/dist-esm/samples-dev/operationsListSample.js +0 -82
  230. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  231. package/dist-esm/src/index.d.ts +0 -5
  232. package/dist-esm/src/index.js.map +0 -1
  233. package/dist-esm/src/lroImpl.js.map +0 -1
  234. package/dist-esm/src/models/index.js.map +0 -1
  235. package/dist-esm/src/models/mappers.js.map +0 -1
  236. package/dist-esm/src/models/parameters.js.map +0 -1
  237. package/dist-esm/src/operations/fileSystems.d.ts.map +0 -1
  238. package/dist-esm/src/operations/fileSystems.js.map +0 -1
  239. package/dist-esm/src/operations/index.d.ts +0 -3
  240. package/dist-esm/src/operations/index.js.map +0 -1
  241. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  242. package/dist-esm/src/operations/operations.js.map +0 -1
  243. package/dist-esm/src/operationsInterfaces/fileSystems.d.ts.map +0 -1
  244. package/dist-esm/src/operationsInterfaces/fileSystems.js.map +0 -1
  245. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  246. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  247. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  248. package/dist-esm/src/pagingHelper.js.map +0 -1
  249. package/dist-esm/src/qumuloStorage.d.ts.map +0 -1
  250. package/dist-esm/src/qumuloStorage.js.map +0 -1
  251. package/dist-esm/test/liftrqumulo_operations_test.spec.d.ts +0 -4
  252. package/dist-esm/test/liftrqumulo_operations_test.spec.d.ts.map +0 -1
  253. package/dist-esm/test/liftrqumulo_operations_test.spec.js +0 -72
  254. package/dist-esm/test/liftrqumulo_operations_test.spec.js.map +0 -1
  255. package/src/lroImpl.ts +0 -38
  256. package/src/models/index.ts +0 -539
  257. package/src/models/mappers.ts +0 -661
  258. package/src/models/parameters.ts +0 -130
  259. package/src/operations/fileSystems.ts +0 -643
  260. package/src/operations/operations.ts +0 -149
  261. package/src/operationsInterfaces/fileSystems.ts +0 -127
  262. package/src/operationsInterfaces/operations.ts +0 -22
  263. package/src/pagingHelper.ts +0 -39
  264. package/src/qumuloStorage.ts +0 -143
  265. package/tsconfig.json +0 -33
  266. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  267. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  268. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  269. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  270. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  271. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  272. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  273. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  274. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  275. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  276. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  277. /package/{dist-esm/src → dist/browser}/operationsInterfaces/fileSystems.js +0 -0
  278. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  279. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  280. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  281. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  282. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,137 @@
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.OperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.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
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing Operations operations. */
18
+ class OperationsImpl {
19
+ /**
20
+ * Initialize a new instance of the class Operations class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * List the operations for the provider
28
+ * @param options The options parameters.
29
+ */
30
+ list(options) {
31
+ const iter = this.listPagingAll(options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: (settings) => {
40
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ throw new Error("maxPageSize is not supported by this operation.");
42
+ }
43
+ return this.listPagingPage(options, settings);
44
+ },
45
+ };
46
+ }
47
+ listPagingPage(options, settings) {
48
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
49
+ let result;
50
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
+ if (!continuationToken) {
52
+ result = yield tslib_1.__await(this._list(options));
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield yield tslib_1.__await(page);
57
+ }
58
+ while (continuationToken) {
59
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield yield tslib_1.__await(page);
64
+ }
65
+ });
66
+ }
67
+ listPagingAll(options) {
68
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
69
+ var _a, e_1, _b, _c;
70
+ try {
71
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
+ _c = _f.value;
73
+ _d = false;
74
+ const page = _c;
75
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
+ }
77
+ }
78
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
+ finally {
80
+ try {
81
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
+ }
83
+ finally { if (e_1) throw e_1.error; }
84
+ }
85
+ });
86
+ }
87
+ /**
88
+ * List the operations for the provider
89
+ * @param options The options parameters.
90
+ */
91
+ _list(options) {
92
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
93
+ }
94
+ /**
95
+ * ListNext
96
+ * @param nextLink The nextLink from the previous successful call to the List method.
97
+ * @param options The options parameters.
98
+ */
99
+ _listNext(nextLink, options) {
100
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
101
+ }
102
+ }
103
+ exports.OperationsImpl = OperationsImpl;
104
+ // Operation Specifications
105
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
106
+ const listOperationSpec = {
107
+ path: "/providers/Qumulo.Storage/operations",
108
+ httpMethod: "GET",
109
+ responses: {
110
+ 200: {
111
+ bodyMapper: Mappers.OperationListResult,
112
+ },
113
+ default: {
114
+ bodyMapper: Mappers.ErrorResponse,
115
+ },
116
+ },
117
+ queryParameters: [Parameters.apiVersion],
118
+ urlParameters: [Parameters.$host],
119
+ headerParameters: [Parameters.accept],
120
+ serializer,
121
+ };
122
+ const listNextOperationSpec = {
123
+ path: "{nextLink}",
124
+ httpMethod: "GET",
125
+ responses: {
126
+ 200: {
127
+ bodyMapper: Mappers.OperationListResult,
128
+ },
129
+ default: {
130
+ bodyMapper: Mappers.ErrorResponse,
131
+ },
132
+ },
133
+ urlParameters: [Parameters.$host, Parameters.nextLink],
134
+ headerParameters: [Parameters.accept],
135
+ serializer,
136
+ };
137
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAg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AAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;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, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } 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 { QumuloStorage } from \"../qumuloStorage.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: QumuloStorage;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: QumuloStorage) {\n this.client = client;\n }\n\n /**\n * List the operations for the provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List the operations for the provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\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?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Qumulo.Storage/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -0,0 +1,63 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
3
+ import { FileSystemResource, FileSystemsListBySubscriptionOptionalParams, FileSystemsListByResourceGroupOptionalParams, FileSystemsGetOptionalParams, FileSystemsGetResponse, FileSystemsCreateOrUpdateOptionalParams, FileSystemsCreateOrUpdateResponse, FileSystemResourceUpdate, FileSystemsUpdateOptionalParams, FileSystemsUpdateResponse, FileSystemsDeleteOptionalParams, FileSystemsDeleteResponse } from "../models/index.js";
4
+ /** Interface representing a FileSystems. */
5
+ export interface FileSystems {
6
+ /**
7
+ * List FileSystemResource resources by subscription ID
8
+ * @param options The options parameters.
9
+ */
10
+ listBySubscription(options?: FileSystemsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<FileSystemResource>;
11
+ /**
12
+ * List FileSystemResource resources by resource group
13
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
14
+ * @param options The options parameters.
15
+ */
16
+ listByResourceGroup(resourceGroupName: string, options?: FileSystemsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<FileSystemResource>;
17
+ /**
18
+ * Get a FileSystemResource
19
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
20
+ * @param fileSystemName Name of the File System resource
21
+ * @param options The options parameters.
22
+ */
23
+ get(resourceGroupName: string, fileSystemName: string, options?: FileSystemsGetOptionalParams): Promise<FileSystemsGetResponse>;
24
+ /**
25
+ * Create a FileSystemResource
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param fileSystemName Name of the File System resource
28
+ * @param resource Resource create parameters.
29
+ * @param options The options parameters.
30
+ */
31
+ beginCreateOrUpdate(resourceGroupName: string, fileSystemName: string, resource: FileSystemResource, options?: FileSystemsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FileSystemsCreateOrUpdateResponse>, FileSystemsCreateOrUpdateResponse>>;
32
+ /**
33
+ * Create a FileSystemResource
34
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
35
+ * @param fileSystemName Name of the File System resource
36
+ * @param resource Resource create parameters.
37
+ * @param options The options parameters.
38
+ */
39
+ beginCreateOrUpdateAndWait(resourceGroupName: string, fileSystemName: string, resource: FileSystemResource, options?: FileSystemsCreateOrUpdateOptionalParams): Promise<FileSystemsCreateOrUpdateResponse>;
40
+ /**
41
+ * Update a FileSystemResource
42
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
43
+ * @param fileSystemName Name of the File System resource
44
+ * @param properties The resource properties to be updated.
45
+ * @param options The options parameters.
46
+ */
47
+ update(resourceGroupName: string, fileSystemName: string, properties: FileSystemResourceUpdate, options?: FileSystemsUpdateOptionalParams): Promise<FileSystemsUpdateResponse>;
48
+ /**
49
+ * Delete a FileSystemResource
50
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
51
+ * @param fileSystemName Name of the File System resource
52
+ * @param options The options parameters.
53
+ */
54
+ beginDelete(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<FileSystemsDeleteResponse>, FileSystemsDeleteResponse>>;
55
+ /**
56
+ * Delete a FileSystemResource
57
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
58
+ * @param fileSystemName Name of the File System resource
59
+ * @param options The options parameters.
60
+ */
61
+ beginDeleteAndWait(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<FileSystemsDeleteResponse>;
62
+ }
63
+ //# sourceMappingURL=fileSystems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileSystems.d.ts","sourceRoot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AMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,wBAAwB,EACpC,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,yBAAyB,CAAC,EACzC,yBAAyB,CAC1B,CACF,CAAC;IACF;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACvC"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=fileSystems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileSystems.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/fileSystems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n FileSystemResource,\n FileSystemsListBySubscriptionOptionalParams,\n FileSystemsListByResourceGroupOptionalParams,\n FileSystemsGetOptionalParams,\n FileSystemsGetResponse,\n FileSystemsCreateOrUpdateOptionalParams,\n FileSystemsCreateOrUpdateResponse,\n FileSystemResourceUpdate,\n FileSystemsUpdateOptionalParams,\n FileSystemsUpdateResponse,\n FileSystemsDeleteOptionalParams,\n FileSystemsDeleteResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a FileSystems. */\nexport interface FileSystems {\n /**\n * List FileSystemResource resources by subscription ID\n * @param options The options parameters.\n */\n listBySubscription(\n options?: FileSystemsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<FileSystemResource>;\n /**\n * List FileSystemResource resources by resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: FileSystemsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<FileSystemResource>;\n /**\n * Get a FileSystemResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param fileSystemName Name of the File System resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n fileSystemName: string,\n options?: FileSystemsGetOptionalParams,\n ): Promise<FileSystemsGetResponse>;\n /**\n * Create a FileSystemResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param fileSystemName Name of the File System resource\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n fileSystemName: string,\n resource: FileSystemResource,\n options?: FileSystemsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FileSystemsCreateOrUpdateResponse>,\n FileSystemsCreateOrUpdateResponse\n >\n >;\n /**\n * Create a FileSystemResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param fileSystemName Name of the File System resource\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n fileSystemName: string,\n resource: FileSystemResource,\n options?: FileSystemsCreateOrUpdateOptionalParams,\n ): Promise<FileSystemsCreateOrUpdateResponse>;\n /**\n * Update a FileSystemResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param fileSystemName Name of the File System resource\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n fileSystemName: string,\n properties: FileSystemResourceUpdate,\n options?: FileSystemsUpdateOptionalParams,\n ): Promise<FileSystemsUpdateResponse>;\n /**\n * Delete a FileSystemResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param fileSystemName Name of the File System resource\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n fileSystemName: string,\n options?: FileSystemsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FileSystemsDeleteResponse>,\n FileSystemsDeleteResponse\n >\n >;\n /**\n * Delete a FileSystemResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param fileSystemName Name of the File System resource\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n fileSystemName: string,\n options?: FileSystemsDeleteOptionalParams,\n ): Promise<FileSystemsDeleteResponse>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./operations.js";
2
+ export * from "./fileSystems.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,13 @@
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
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./operations.js"), exports);
12
+ tslib_1.__exportStar(require("./fileSystems.js"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC;AAChC,2DAAiC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./fileSystems.js\";\n"]}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * List the operations for the provider
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * List the operations for the provider\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,36 @@
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.getContinuationToken = getContinuationToken;
11
+ exports.setContinuationToken = setContinuationToken;
12
+ const pageMap = new WeakMap();
13
+ /**
14
+ * Given the last `.value` produced by the `byPage` iterator,
15
+ * returns a continuation token that can be used to begin paging from
16
+ * that point later.
17
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
18
+ * @returns The continuation token that can be passed into byPage() during future calls.
19
+ */
20
+ function getContinuationToken(page) {
21
+ var _a;
22
+ if (typeof page !== "object" || page === null) {
23
+ return undefined;
24
+ }
25
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
26
+ }
27
+ function setContinuationToken(page, continuationToken) {
28
+ var _a;
29
+ if (typeof page !== "object" || page === null || !continuationToken) {
30
+ return;
31
+ }
32
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
33
+ pageInfo.continuationToken = continuationToken;
34
+ pageMap.set(page, pageInfo);
35
+ }
36
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations, FileSystems } from "./operationsInterfaces/index.js";
4
+ import { QumuloStorageOptionalParams } from "./models/index.js";
5
+ export declare class QumuloStorage extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the QumuloStorage class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The ID of the target subscription.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: QumuloStorageOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ operations: Operations;
19
+ fileSystems: FileSystems;
20
+ }
21
+ //# sourceMappingURL=qumuloStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qumuloStorage.d.ts","sourceRoot":"","sources":["../../src/qumuloStorage.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAEhE,qBAAa,aAAc,SAAQ,UAAU,CAAC,aAAa;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,2BAA2B;IA8EvC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;CAC1B"}
@@ -0,0 +1,103 @@
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.QumuloStorage = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
13
+ const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
14
+ const index_js_1 = require("./operations/index.js");
15
+ class QumuloStorage extends coreClient.ServiceClient {
16
+ /**
17
+ * Initializes a new instance of the QumuloStorage class.
18
+ * @param credentials Subscription credentials which uniquely identify client subscription.
19
+ * @param subscriptionId The ID of the target subscription.
20
+ * @param options The parameter options
21
+ */
22
+ constructor(credentials, subscriptionId, options) {
23
+ var _a, _b, _c;
24
+ if (credentials === undefined) {
25
+ throw new Error("'credentials' cannot be null");
26
+ }
27
+ if (subscriptionId === undefined) {
28
+ throw new Error("'subscriptionId' cannot be null");
29
+ }
30
+ // Initializing default values for options
31
+ if (!options) {
32
+ options = {};
33
+ }
34
+ const defaults = {
35
+ requestContentType: "application/json; charset=utf-8",
36
+ credential: credentials,
37
+ };
38
+ const packageDetails = `azsdk-js-arm-qumulo/2.0.1`;
39
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
40
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
41
+ : `${packageDetails}`;
42
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
43
+ userAgentPrefix,
44
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
45
+ super(optionsWithDefaults);
46
+ let bearerTokenAuthenticationPolicyFound = false;
47
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
48
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
50
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
51
+ }
52
+ if (!options ||
53
+ !options.pipeline ||
54
+ options.pipeline.getOrderedPolicies().length == 0 ||
55
+ !bearerTokenAuthenticationPolicyFound) {
56
+ this.pipeline.removePolicy({
57
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
58
+ });
59
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
60
+ credential: credentials,
61
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
62
+ challengeCallbacks: {
63
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
64
+ },
65
+ }));
66
+ }
67
+ // Parameter assignments
68
+ this.subscriptionId = subscriptionId;
69
+ // Assigning values to Constant parameters
70
+ this.$host = options.$host || "https://management.azure.com";
71
+ this.apiVersion = options.apiVersion || "2024-06-19";
72
+ this.operations = new index_js_1.OperationsImpl(this);
73
+ this.fileSystems = new index_js_1.FileSystemsImpl(this);
74
+ this.addCustomApiVersionPolicy(options.apiVersion);
75
+ }
76
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
77
+ addCustomApiVersionPolicy(apiVersion) {
78
+ if (!apiVersion) {
79
+ return;
80
+ }
81
+ const apiVersionPolicy = {
82
+ name: "CustomApiVersionPolicy",
83
+ async sendRequest(request, next) {
84
+ const param = request.url.split("?");
85
+ if (param.length > 1) {
86
+ const newParams = param[1].split("&").map((item) => {
87
+ if (item.indexOf("api-version") > -1) {
88
+ return "api-version=" + apiVersion;
89
+ }
90
+ else {
91
+ return item;
92
+ }
93
+ });
94
+ request.url = param[0] + "?" + newParams.join("&");
95
+ }
96
+ return next(request);
97
+ },
98
+ };
99
+ this.pipeline.addPolicy(apiVersionPolicy);
100
+ }
101
+ }
102
+ exports.QumuloStorage = QumuloStorage;
103
+ //# sourceMappingURL=qumuloStorage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qumuloStorage.js","sourceRoot":"","sources":["../../src/qumuloStorage.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9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AgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF;AA1HD,sCA0HC","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 coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, FileSystemsImpl } from \"./operations/index.js\";\nimport { Operations, FileSystems } from \"./operationsInterfaces/index.js\";\nimport { QumuloStorageOptionalParams } from \"./models/index.js\";\n\nexport class QumuloStorage extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the QumuloStorage class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: QumuloStorageOptionalParams,\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\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: QumuloStorageOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-qumulo/2.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-06-19\";\n this.operations = new OperationsImpl(this);\n this.fileSystems = new FileSystemsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n fileSystems: FileSystems;\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { QumuloStorage } from "./qumuloStorage.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,cAAc,iCAAiC,CAAC"}
@@ -5,9 +5,9 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
-
9
8
  /// <reference lib="esnext.asynciterable" />
10
- export { getContinuationToken } from "./pagingHelper";
11
- export * from "./models";
12
- export { QumuloStorage } from "./qumuloStorage";
13
- export * from "./operationsInterfaces";
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { QumuloStorage } from "./qumuloStorage.js";
12
+ export * from "./operationsInterfaces/index.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,cAAc,iCAAiC,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { QumuloStorage } from \"./qumuloStorage.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1,11 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare function createLroSpec<T>(inputs: {
3
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
4
+ args: Record<string, unknown>;
5
+ spec: {
6
+ readonly requestBody?: unknown;
7
+ readonly path?: string;
8
+ readonly httpMethod: string;
9
+ } & Record<string, any>;
10
+ }): LongRunningOperation<T>;
11
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
@@ -0,0 +1,14 @@
1
+ import { __rest } from "tslib";
2
+ export function createLroSpec(inputs) {
3
+ const { args, spec, sendOperationFn } = inputs;
4
+ return {
5
+ requestMethod: spec.httpMethod,
6
+ requestPath: spec.path,
7
+ sendInitialRequest: () => sendOperationFn(args, spec),
8
+ sendPollRequest: (path, options) => {
9
+ const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
10
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
11
+ },
12
+ };
13
+ }
14
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}