@azure/arm-qumulo 2.0.1-alpha.20250210.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,493 @@
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.FileSystemsImpl = 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
+ const core_lro_1 = require("@azure/core-lro");
17
+ const lroImpl_js_1 = require("../lroImpl.js");
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Class containing FileSystems operations. */
20
+ class FileSystemsImpl {
21
+ /**
22
+ * Initialize a new instance of the class FileSystems class.
23
+ * @param client Reference to the service client
24
+ */
25
+ constructor(client) {
26
+ this.client = client;
27
+ }
28
+ /**
29
+ * List FileSystemResource resources by subscription ID
30
+ * @param options The options parameters.
31
+ */
32
+ listBySubscription(options) {
33
+ const iter = this.listBySubscriptionPagingAll(options);
34
+ return {
35
+ next() {
36
+ return iter.next();
37
+ },
38
+ [Symbol.asyncIterator]() {
39
+ return this;
40
+ },
41
+ byPage: (settings) => {
42
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ throw new Error("maxPageSize is not supported by this operation.");
44
+ }
45
+ return this.listBySubscriptionPagingPage(options, settings);
46
+ },
47
+ };
48
+ }
49
+ listBySubscriptionPagingPage(options, settings) {
50
+ return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
51
+ let result;
52
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
+ if (!continuationToken) {
54
+ result = yield tslib_1.__await(this._listBySubscription(options));
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield yield tslib_1.__await(page);
59
+ }
60
+ while (continuationToken) {
61
+ result = yield tslib_1.__await(this._listBySubscriptionNext(continuationToken, options));
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield yield tslib_1.__await(page);
66
+ }
67
+ });
68
+ }
69
+ listBySubscriptionPagingAll(options) {
70
+ return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
71
+ var _a, e_1, _b, _c;
72
+ try {
73
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
+ _c = _f.value;
75
+ _d = false;
76
+ const page = _c;
77
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * List FileSystemResource resources by resource group
91
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
92
+ * @param options The options parameters.
93
+ */
94
+ listByResourceGroup(resourceGroupName, options) {
95
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
96
+ return {
97
+ next() {
98
+ return iter.next();
99
+ },
100
+ [Symbol.asyncIterator]() {
101
+ return this;
102
+ },
103
+ byPage: (settings) => {
104
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
105
+ throw new Error("maxPageSize is not supported by this operation.");
106
+ }
107
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
108
+ },
109
+ };
110
+ }
111
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
112
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
113
+ let result;
114
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
+ if (!continuationToken) {
116
+ result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
117
+ let page = result.value || [];
118
+ continuationToken = result.nextLink;
119
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
+ yield yield tslib_1.__await(page);
121
+ }
122
+ while (continuationToken) {
123
+ result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
124
+ continuationToken = result.nextLink;
125
+ let page = result.value || [];
126
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
+ yield yield tslib_1.__await(page);
128
+ }
129
+ });
130
+ }
131
+ listByResourceGroupPagingAll(resourceGroupName, options) {
132
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
133
+ var _a, e_2, _b, _c;
134
+ try {
135
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
136
+ _c = _f.value;
137
+ _d = false;
138
+ const page = _c;
139
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
140
+ }
141
+ }
142
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
+ finally {
144
+ try {
145
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
146
+ }
147
+ finally { if (e_2) throw e_2.error; }
148
+ }
149
+ });
150
+ }
151
+ /**
152
+ * List FileSystemResource resources by subscription ID
153
+ * @param options The options parameters.
154
+ */
155
+ _listBySubscription(options) {
156
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
157
+ }
158
+ /**
159
+ * List FileSystemResource resources by resource group
160
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
161
+ * @param options The options parameters.
162
+ */
163
+ _listByResourceGroup(resourceGroupName, options) {
164
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
165
+ }
166
+ /**
167
+ * Get a FileSystemResource
168
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
169
+ * @param fileSystemName Name of the File System resource
170
+ * @param options The options parameters.
171
+ */
172
+ get(resourceGroupName, fileSystemName, options) {
173
+ return this.client.sendOperationRequest({ resourceGroupName, fileSystemName, options }, getOperationSpec);
174
+ }
175
+ /**
176
+ * Create a FileSystemResource
177
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
178
+ * @param fileSystemName Name of the File System resource
179
+ * @param resource Resource create parameters.
180
+ * @param options The options parameters.
181
+ */
182
+ async beginCreateOrUpdate(resourceGroupName, fileSystemName, resource, options) {
183
+ const directSendOperation = async (args, spec) => {
184
+ return this.client.sendOperationRequest(args, spec);
185
+ };
186
+ const sendOperationFn = async (args, spec) => {
187
+ var _a;
188
+ let currentRawResponse = undefined;
189
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
190
+ const callback = (rawResponse, flatResponse) => {
191
+ currentRawResponse = rawResponse;
192
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
193
+ };
194
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
195
+ const flatResponse = await directSendOperation(updatedArgs, spec);
196
+ return {
197
+ flatResponse,
198
+ rawResponse: {
199
+ statusCode: currentRawResponse.status,
200
+ body: currentRawResponse.parsedBody,
201
+ headers: currentRawResponse.headers.toJSON(),
202
+ },
203
+ };
204
+ };
205
+ const lro = (0, lroImpl_js_1.createLroSpec)({
206
+ sendOperationFn,
207
+ args: { resourceGroupName, fileSystemName, resource, options },
208
+ spec: createOrUpdateOperationSpec,
209
+ });
210
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
211
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
212
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
213
+ resourceLocationConfig: "azure-async-operation",
214
+ });
215
+ await poller.poll();
216
+ return poller;
217
+ }
218
+ /**
219
+ * Create a FileSystemResource
220
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
221
+ * @param fileSystemName Name of the File System resource
222
+ * @param resource Resource create parameters.
223
+ * @param options The options parameters.
224
+ */
225
+ async beginCreateOrUpdateAndWait(resourceGroupName, fileSystemName, resource, options) {
226
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, fileSystemName, resource, options);
227
+ return poller.pollUntilDone();
228
+ }
229
+ /**
230
+ * Update a FileSystemResource
231
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
232
+ * @param fileSystemName Name of the File System resource
233
+ * @param properties The resource properties to be updated.
234
+ * @param options The options parameters.
235
+ */
236
+ update(resourceGroupName, fileSystemName, properties, options) {
237
+ return this.client.sendOperationRequest({ resourceGroupName, fileSystemName, properties, options }, updateOperationSpec);
238
+ }
239
+ /**
240
+ * Delete a FileSystemResource
241
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
242
+ * @param fileSystemName Name of the File System resource
243
+ * @param options The options parameters.
244
+ */
245
+ async beginDelete(resourceGroupName, fileSystemName, options) {
246
+ const directSendOperation = async (args, spec) => {
247
+ return this.client.sendOperationRequest(args, spec);
248
+ };
249
+ const sendOperationFn = async (args, spec) => {
250
+ var _a;
251
+ let currentRawResponse = undefined;
252
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
253
+ const callback = (rawResponse, flatResponse) => {
254
+ currentRawResponse = rawResponse;
255
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
256
+ };
257
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
258
+ const flatResponse = await directSendOperation(updatedArgs, spec);
259
+ return {
260
+ flatResponse,
261
+ rawResponse: {
262
+ statusCode: currentRawResponse.status,
263
+ body: currentRawResponse.parsedBody,
264
+ headers: currentRawResponse.headers.toJSON(),
265
+ },
266
+ };
267
+ };
268
+ const lro = (0, lroImpl_js_1.createLroSpec)({
269
+ sendOperationFn,
270
+ args: { resourceGroupName, fileSystemName, options },
271
+ spec: deleteOperationSpec,
272
+ });
273
+ const poller = await (0, core_lro_1.createHttpPoller)(lro, {
274
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
275
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
276
+ resourceLocationConfig: "location",
277
+ });
278
+ await poller.poll();
279
+ return poller;
280
+ }
281
+ /**
282
+ * Delete a FileSystemResource
283
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
284
+ * @param fileSystemName Name of the File System resource
285
+ * @param options The options parameters.
286
+ */
287
+ async beginDeleteAndWait(resourceGroupName, fileSystemName, options) {
288
+ const poller = await this.beginDelete(resourceGroupName, fileSystemName, options);
289
+ return poller.pollUntilDone();
290
+ }
291
+ /**
292
+ * ListBySubscriptionNext
293
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
294
+ * @param options The options parameters.
295
+ */
296
+ _listBySubscriptionNext(nextLink, options) {
297
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
298
+ }
299
+ /**
300
+ * ListByResourceGroupNext
301
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
302
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
303
+ * @param options The options parameters.
304
+ */
305
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
306
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
307
+ }
308
+ }
309
+ exports.FileSystemsImpl = FileSystemsImpl;
310
+ // Operation Specifications
311
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
312
+ const listBySubscriptionOperationSpec = {
313
+ path: "/subscriptions/{subscriptionId}/providers/Qumulo.Storage/fileSystems",
314
+ httpMethod: "GET",
315
+ responses: {
316
+ 200: {
317
+ bodyMapper: Mappers.FileSystemResourceListResult,
318
+ },
319
+ default: {
320
+ bodyMapper: Mappers.ErrorResponse,
321
+ },
322
+ },
323
+ queryParameters: [Parameters.apiVersion],
324
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
325
+ headerParameters: [Parameters.accept],
326
+ serializer,
327
+ };
328
+ const listByResourceGroupOperationSpec = {
329
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems",
330
+ httpMethod: "GET",
331
+ responses: {
332
+ 200: {
333
+ bodyMapper: Mappers.FileSystemResourceListResult,
334
+ },
335
+ default: {
336
+ bodyMapper: Mappers.ErrorResponse,
337
+ },
338
+ },
339
+ queryParameters: [Parameters.apiVersion],
340
+ urlParameters: [
341
+ Parameters.$host,
342
+ Parameters.subscriptionId,
343
+ Parameters.resourceGroupName,
344
+ ],
345
+ headerParameters: [Parameters.accept],
346
+ serializer,
347
+ };
348
+ const getOperationSpec = {
349
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
350
+ httpMethod: "GET",
351
+ responses: {
352
+ 200: {
353
+ bodyMapper: Mappers.FileSystemResource,
354
+ },
355
+ default: {
356
+ bodyMapper: Mappers.ErrorResponse,
357
+ },
358
+ },
359
+ queryParameters: [Parameters.apiVersion],
360
+ urlParameters: [
361
+ Parameters.$host,
362
+ Parameters.subscriptionId,
363
+ Parameters.resourceGroupName,
364
+ Parameters.fileSystemName,
365
+ ],
366
+ headerParameters: [Parameters.accept],
367
+ serializer,
368
+ };
369
+ const createOrUpdateOperationSpec = {
370
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
371
+ httpMethod: "PUT",
372
+ responses: {
373
+ 200: {
374
+ bodyMapper: Mappers.FileSystemResource,
375
+ },
376
+ 201: {
377
+ bodyMapper: Mappers.FileSystemResource,
378
+ },
379
+ 202: {
380
+ bodyMapper: Mappers.FileSystemResource,
381
+ },
382
+ 204: {
383
+ bodyMapper: Mappers.FileSystemResource,
384
+ },
385
+ default: {
386
+ bodyMapper: Mappers.ErrorResponse,
387
+ },
388
+ },
389
+ requestBody: Parameters.resource,
390
+ queryParameters: [Parameters.apiVersion],
391
+ urlParameters: [
392
+ Parameters.$host,
393
+ Parameters.subscriptionId,
394
+ Parameters.resourceGroupName,
395
+ Parameters.fileSystemName,
396
+ ],
397
+ headerParameters: [Parameters.accept, Parameters.contentType],
398
+ mediaType: "json",
399
+ serializer,
400
+ };
401
+ const updateOperationSpec = {
402
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
403
+ httpMethod: "PATCH",
404
+ responses: {
405
+ 200: {
406
+ bodyMapper: Mappers.FileSystemResource,
407
+ },
408
+ default: {
409
+ bodyMapper: Mappers.ErrorResponse,
410
+ },
411
+ },
412
+ requestBody: Parameters.properties,
413
+ queryParameters: [Parameters.apiVersion],
414
+ urlParameters: [
415
+ Parameters.$host,
416
+ Parameters.subscriptionId,
417
+ Parameters.resourceGroupName,
418
+ Parameters.fileSystemName,
419
+ ],
420
+ headerParameters: [Parameters.accept, Parameters.contentType],
421
+ mediaType: "json",
422
+ serializer,
423
+ };
424
+ const deleteOperationSpec = {
425
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
426
+ httpMethod: "DELETE",
427
+ responses: {
428
+ 200: {
429
+ headersMapper: Mappers.FileSystemsDeleteHeaders,
430
+ },
431
+ 201: {
432
+ headersMapper: Mappers.FileSystemsDeleteHeaders,
433
+ },
434
+ 202: {
435
+ headersMapper: Mappers.FileSystemsDeleteHeaders,
436
+ },
437
+ 204: {
438
+ headersMapper: Mappers.FileSystemsDeleteHeaders,
439
+ },
440
+ default: {
441
+ bodyMapper: Mappers.ErrorResponse,
442
+ },
443
+ },
444
+ queryParameters: [Parameters.apiVersion],
445
+ urlParameters: [
446
+ Parameters.$host,
447
+ Parameters.subscriptionId,
448
+ Parameters.resourceGroupName,
449
+ Parameters.fileSystemName,
450
+ ],
451
+ headerParameters: [Parameters.accept],
452
+ serializer,
453
+ };
454
+ const listBySubscriptionNextOperationSpec = {
455
+ path: "{nextLink}",
456
+ httpMethod: "GET",
457
+ responses: {
458
+ 200: {
459
+ bodyMapper: Mappers.FileSystemResourceListResult,
460
+ },
461
+ default: {
462
+ bodyMapper: Mappers.ErrorResponse,
463
+ },
464
+ },
465
+ urlParameters: [
466
+ Parameters.$host,
467
+ Parameters.nextLink,
468
+ Parameters.subscriptionId,
469
+ ],
470
+ headerParameters: [Parameters.accept],
471
+ serializer,
472
+ };
473
+ const listByResourceGroupNextOperationSpec = {
474
+ path: "{nextLink}",
475
+ httpMethod: "GET",
476
+ responses: {
477
+ 200: {
478
+ bodyMapper: Mappers.FileSystemResourceListResult,
479
+ },
480
+ default: {
481
+ bodyMapper: Mappers.ErrorResponse,
482
+ },
483
+ },
484
+ urlParameters: [
485
+ Parameters.$host,
486
+ Parameters.nextLink,
487
+ Parameters.subscriptionId,
488
+ Parameters.resourceGroupName,
489
+ ],
490
+ headerParameters: [Parameters.accept],
491
+ serializer,
492
+ };
493
+ //# sourceMappingURL=fileSystems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileSystems.js","sourceRoot":"","sources":["../../../src/operations/fileSystems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAsB9C,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAa,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,C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,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,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 { FileSystems } 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 SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n FileSystemResource,\n FileSystemsListBySubscriptionNextOptionalParams,\n FileSystemsListBySubscriptionOptionalParams,\n FileSystemsListBySubscriptionResponse,\n FileSystemsListByResourceGroupNextOptionalParams,\n FileSystemsListByResourceGroupOptionalParams,\n FileSystemsListByResourceGroupResponse,\n FileSystemsGetOptionalParams,\n FileSystemsGetResponse,\n FileSystemsCreateOrUpdateOptionalParams,\n FileSystemsCreateOrUpdateResponse,\n FileSystemResourceUpdate,\n FileSystemsUpdateOptionalParams,\n FileSystemsUpdateResponse,\n FileSystemsDeleteOptionalParams,\n FileSystemsDeleteResponse,\n FileSystemsListBySubscriptionNextResponse,\n FileSystemsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FileSystems operations. */\nexport class FileSystemsImpl implements FileSystems {\n private readonly client: QumuloStorage;\n\n /**\n * Initialize a new instance of the class FileSystems class.\n * @param client Reference to the service client\n */\n constructor(client: QumuloStorage) {\n this.client = client;\n }\n\n /**\n * List FileSystemResource resources by subscription ID\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: FileSystemsListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<FileSystemResource> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: FileSystemsListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FileSystemResource[]> {\n let result: FileSystemsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: FileSystemsListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<FileSystemResource> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\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 public listByResourceGroup(\n resourceGroupName: string,\n options?: FileSystemsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<FileSystemResource> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: FileSystemsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FileSystemResource[]> {\n let result: FileSystemsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: FileSystemsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<FileSystemResource> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List FileSystemResource resources by subscription ID\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: FileSystemsListBySubscriptionOptionalParams,\n ): Promise<FileSystemsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\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 private _listByResourceGroup(\n resourceGroupName: string,\n options?: FileSystemsListByResourceGroupOptionalParams,\n ): Promise<FileSystemsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\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 return this.client.sendOperationRequest(\n { resourceGroupName, fileSystemName, options },\n getOperationSpec,\n );\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 async 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 const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<FileSystemsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, fileSystemName, resource, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n FileSystemsCreateOrUpdateResponse,\n OperationState<FileSystemsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\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 async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n fileSystemName: string,\n resource: FileSystemResource,\n options?: FileSystemsCreateOrUpdateOptionalParams,\n ): Promise<FileSystemsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n fileSystemName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\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 return this.client.sendOperationRequest(\n { resourceGroupName, fileSystemName, properties, options },\n updateOperationSpec,\n );\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 async beginDelete(\n resourceGroupName: string,\n fileSystemName: string,\n options?: FileSystemsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FileSystemsDeleteResponse>,\n FileSystemsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<FileSystemsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, fileSystemName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n FileSystemsDeleteResponse,\n OperationState<FileSystemsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\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 async beginDeleteAndWait(\n resourceGroupName: string,\n fileSystemName: string,\n options?: FileSystemsDeleteOptionalParams,\n ): Promise<FileSystemsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n fileSystemName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: FileSystemsListBySubscriptionNextOptionalParams,\n ): Promise<FileSystemsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: FileSystemsListByResourceGroupNextOptionalParams,\n ): Promise<FileSystemsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Qumulo.Storage/fileSystems\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileSystemResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileSystemResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileSystemResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.fileSystemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileSystemResource,\n },\n 201: {\n bodyMapper: Mappers.FileSystemResource,\n },\n 202: {\n bodyMapper: Mappers.FileSystemResource,\n },\n 204: {\n bodyMapper: Mappers.FileSystemResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.fileSystemName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileSystemResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.fileSystemName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.FileSystemsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.FileSystemsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.FileSystemsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.FileSystemsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.fileSystemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileSystemResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileSystemResourceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\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/operations/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/operations/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,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { QumuloStorage } from "../qumuloStorage.js";
4
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: QumuloStorage);
13
+ /**
14
+ * List the operations for the provider
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * List the operations for the provider
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}