@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
package/dist/index.js DELETED
@@ -1,1631 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link Origin} that the service accepts. */
70
- exports.KnownOrigin = void 0;
71
- (function (KnownOrigin) {
72
- /** User */
73
- KnownOrigin["User"] = "user";
74
- /** System */
75
- KnownOrigin["System"] = "system";
76
- /** UserSystem */
77
- KnownOrigin["UserSystem"] = "user,system";
78
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
79
- /** Known values of {@link ActionType} that the service accepts. */
80
- exports.KnownActionType = void 0;
81
- (function (KnownActionType) {
82
- /** Internal */
83
- KnownActionType["Internal"] = "Internal";
84
- })(exports.KnownActionType || (exports.KnownActionType = {}));
85
- /** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */
86
- exports.KnownMarketplaceSubscriptionStatus = void 0;
87
- (function (KnownMarketplaceSubscriptionStatus) {
88
- /** Fulfillment has not started */
89
- KnownMarketplaceSubscriptionStatus["PendingFulfillmentStart"] = "PendingFulfillmentStart";
90
- /** Marketplace offer is subscribed */
91
- KnownMarketplaceSubscriptionStatus["Subscribed"] = "Subscribed";
92
- /** Marketplace offer is suspended because of non payment */
93
- KnownMarketplaceSubscriptionStatus["Suspended"] = "Suspended";
94
- /** Marketplace offer is unsubscribed */
95
- KnownMarketplaceSubscriptionStatus["Unsubscribed"] = "Unsubscribed";
96
- })(exports.KnownMarketplaceSubscriptionStatus || (exports.KnownMarketplaceSubscriptionStatus = {}));
97
- /** Known values of {@link ProvisioningState} that the service accepts. */
98
- exports.KnownProvisioningState = void 0;
99
- (function (KnownProvisioningState) {
100
- /** File system resource creation request accepted */
101
- KnownProvisioningState["Accepted"] = "Accepted";
102
- /** File system resource creation started */
103
- KnownProvisioningState["Creating"] = "Creating";
104
- /** File system resource is being updated */
105
- KnownProvisioningState["Updating"] = "Updating";
106
- /** File system resource deletion started */
107
- KnownProvisioningState["Deleting"] = "Deleting";
108
- /** File system resource creation successful */
109
- KnownProvisioningState["Succeeded"] = "Succeeded";
110
- /** File system resource creation failed */
111
- KnownProvisioningState["Failed"] = "Failed";
112
- /** File system resource creation canceled */
113
- KnownProvisioningState["Canceled"] = "Canceled";
114
- /** File system resource is deleted */
115
- KnownProvisioningState["Deleted"] = "Deleted";
116
- })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
117
- /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
118
- exports.KnownManagedServiceIdentityType = void 0;
119
- (function (KnownManagedServiceIdentityType) {
120
- /** None */
121
- KnownManagedServiceIdentityType["None"] = "None";
122
- /** SystemAssigned */
123
- KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
124
- /** UserAssigned */
125
- KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
126
- /** SystemAssignedUserAssigned */
127
- KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
128
- })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
129
- /** Known values of {@link CreatedByType} that the service accepts. */
130
- exports.KnownCreatedByType = void 0;
131
- (function (KnownCreatedByType) {
132
- /** User */
133
- KnownCreatedByType["User"] = "User";
134
- /** Application */
135
- KnownCreatedByType["Application"] = "Application";
136
- /** ManagedIdentity */
137
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
138
- /** Key */
139
- KnownCreatedByType["Key"] = "Key";
140
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
141
-
142
- /*
143
- * Copyright (c) Microsoft Corporation.
144
- * Licensed under the MIT License.
145
- *
146
- * Code generated by Microsoft (R) AutoRest Code Generator.
147
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
148
- */
149
- const OperationListResult = {
150
- type: {
151
- name: "Composite",
152
- className: "OperationListResult",
153
- modelProperties: {
154
- value: {
155
- serializedName: "value",
156
- readOnly: true,
157
- type: {
158
- name: "Sequence",
159
- element: {
160
- type: {
161
- name: "Composite",
162
- className: "Operation",
163
- },
164
- },
165
- },
166
- },
167
- nextLink: {
168
- serializedName: "nextLink",
169
- readOnly: true,
170
- type: {
171
- name: "String",
172
- },
173
- },
174
- },
175
- },
176
- };
177
- const Operation = {
178
- type: {
179
- name: "Composite",
180
- className: "Operation",
181
- modelProperties: {
182
- name: {
183
- serializedName: "name",
184
- readOnly: true,
185
- type: {
186
- name: "String",
187
- },
188
- },
189
- isDataAction: {
190
- serializedName: "isDataAction",
191
- readOnly: true,
192
- type: {
193
- name: "Boolean",
194
- },
195
- },
196
- display: {
197
- serializedName: "display",
198
- type: {
199
- name: "Composite",
200
- className: "OperationDisplay",
201
- },
202
- },
203
- origin: {
204
- serializedName: "origin",
205
- readOnly: true,
206
- type: {
207
- name: "String",
208
- },
209
- },
210
- actionType: {
211
- serializedName: "actionType",
212
- readOnly: true,
213
- type: {
214
- name: "String",
215
- },
216
- },
217
- },
218
- },
219
- };
220
- const OperationDisplay = {
221
- type: {
222
- name: "Composite",
223
- className: "OperationDisplay",
224
- modelProperties: {
225
- provider: {
226
- serializedName: "provider",
227
- readOnly: true,
228
- type: {
229
- name: "String",
230
- },
231
- },
232
- resource: {
233
- serializedName: "resource",
234
- readOnly: true,
235
- type: {
236
- name: "String",
237
- },
238
- },
239
- operation: {
240
- serializedName: "operation",
241
- readOnly: true,
242
- type: {
243
- name: "String",
244
- },
245
- },
246
- description: {
247
- serializedName: "description",
248
- readOnly: true,
249
- type: {
250
- name: "String",
251
- },
252
- },
253
- },
254
- },
255
- };
256
- const ErrorResponse = {
257
- type: {
258
- name: "Composite",
259
- className: "ErrorResponse",
260
- modelProperties: {
261
- error: {
262
- serializedName: "error",
263
- type: {
264
- name: "Composite",
265
- className: "ErrorDetail",
266
- },
267
- },
268
- },
269
- },
270
- };
271
- const ErrorDetail = {
272
- type: {
273
- name: "Composite",
274
- className: "ErrorDetail",
275
- modelProperties: {
276
- code: {
277
- serializedName: "code",
278
- readOnly: true,
279
- type: {
280
- name: "String",
281
- },
282
- },
283
- message: {
284
- serializedName: "message",
285
- readOnly: true,
286
- type: {
287
- name: "String",
288
- },
289
- },
290
- target: {
291
- serializedName: "target",
292
- readOnly: true,
293
- type: {
294
- name: "String",
295
- },
296
- },
297
- details: {
298
- serializedName: "details",
299
- readOnly: true,
300
- type: {
301
- name: "Sequence",
302
- element: {
303
- type: {
304
- name: "Composite",
305
- className: "ErrorDetail",
306
- },
307
- },
308
- },
309
- },
310
- additionalInfo: {
311
- serializedName: "additionalInfo",
312
- readOnly: true,
313
- type: {
314
- name: "Sequence",
315
- element: {
316
- type: {
317
- name: "Composite",
318
- className: "ErrorAdditionalInfo",
319
- },
320
- },
321
- },
322
- },
323
- },
324
- },
325
- };
326
- const ErrorAdditionalInfo = {
327
- type: {
328
- name: "Composite",
329
- className: "ErrorAdditionalInfo",
330
- modelProperties: {
331
- type: {
332
- serializedName: "type",
333
- readOnly: true,
334
- type: {
335
- name: "String",
336
- },
337
- },
338
- info: {
339
- serializedName: "info",
340
- readOnly: true,
341
- type: {
342
- name: "Dictionary",
343
- value: { type: { name: "any" } },
344
- },
345
- },
346
- },
347
- },
348
- };
349
- const FileSystemResourceListResult = {
350
- type: {
351
- name: "Composite",
352
- className: "FileSystemResourceListResult",
353
- modelProperties: {
354
- value: {
355
- serializedName: "value",
356
- required: true,
357
- type: {
358
- name: "Sequence",
359
- element: {
360
- type: {
361
- name: "Composite",
362
- className: "FileSystemResource",
363
- },
364
- },
365
- },
366
- },
367
- nextLink: {
368
- serializedName: "nextLink",
369
- type: {
370
- name: "String",
371
- },
372
- },
373
- },
374
- },
375
- };
376
- const MarketplaceDetails = {
377
- type: {
378
- name: "Composite",
379
- className: "MarketplaceDetails",
380
- modelProperties: {
381
- marketplaceSubscriptionId: {
382
- serializedName: "marketplaceSubscriptionId",
383
- type: {
384
- name: "String",
385
- },
386
- },
387
- planId: {
388
- serializedName: "planId",
389
- required: true,
390
- type: {
391
- name: "String",
392
- },
393
- },
394
- offerId: {
395
- serializedName: "offerId",
396
- required: true,
397
- type: {
398
- name: "String",
399
- },
400
- },
401
- publisherId: {
402
- serializedName: "publisherId",
403
- type: {
404
- name: "String",
405
- },
406
- },
407
- termUnit: {
408
- serializedName: "termUnit",
409
- type: {
410
- name: "String",
411
- },
412
- },
413
- marketplaceSubscriptionStatus: {
414
- serializedName: "marketplaceSubscriptionStatus",
415
- readOnly: true,
416
- type: {
417
- name: "String",
418
- },
419
- },
420
- },
421
- },
422
- };
423
- const UserDetails = {
424
- type: {
425
- name: "Composite",
426
- className: "UserDetails",
427
- modelProperties: {
428
- email: {
429
- serializedName: "email",
430
- required: true,
431
- type: {
432
- name: "String",
433
- },
434
- },
435
- },
436
- },
437
- };
438
- const ManagedServiceIdentity = {
439
- type: {
440
- name: "Composite",
441
- className: "ManagedServiceIdentity",
442
- modelProperties: {
443
- principalId: {
444
- serializedName: "principalId",
445
- readOnly: true,
446
- type: {
447
- name: "Uuid",
448
- },
449
- },
450
- tenantId: {
451
- serializedName: "tenantId",
452
- readOnly: true,
453
- type: {
454
- name: "Uuid",
455
- },
456
- },
457
- type: {
458
- serializedName: "type",
459
- required: true,
460
- type: {
461
- name: "String",
462
- },
463
- },
464
- userAssignedIdentities: {
465
- serializedName: "userAssignedIdentities",
466
- type: {
467
- name: "Dictionary",
468
- value: {
469
- type: { name: "Composite", className: "UserAssignedIdentity" },
470
- },
471
- },
472
- },
473
- },
474
- },
475
- };
476
- const UserAssignedIdentity = {
477
- type: {
478
- name: "Composite",
479
- className: "UserAssignedIdentity",
480
- modelProperties: {
481
- principalId: {
482
- serializedName: "principalId",
483
- readOnly: true,
484
- type: {
485
- name: "Uuid",
486
- },
487
- },
488
- clientId: {
489
- serializedName: "clientId",
490
- readOnly: true,
491
- type: {
492
- name: "Uuid",
493
- },
494
- },
495
- },
496
- },
497
- };
498
- const Resource = {
499
- type: {
500
- name: "Composite",
501
- className: "Resource",
502
- modelProperties: {
503
- id: {
504
- serializedName: "id",
505
- readOnly: true,
506
- type: {
507
- name: "String",
508
- },
509
- },
510
- name: {
511
- serializedName: "name",
512
- readOnly: true,
513
- type: {
514
- name: "String",
515
- },
516
- },
517
- type: {
518
- serializedName: "type",
519
- readOnly: true,
520
- type: {
521
- name: "String",
522
- },
523
- },
524
- systemData: {
525
- serializedName: "systemData",
526
- type: {
527
- name: "Composite",
528
- className: "SystemData",
529
- },
530
- },
531
- },
532
- },
533
- };
534
- const SystemData = {
535
- type: {
536
- name: "Composite",
537
- className: "SystemData",
538
- modelProperties: {
539
- createdBy: {
540
- serializedName: "createdBy",
541
- type: {
542
- name: "String",
543
- },
544
- },
545
- createdByType: {
546
- serializedName: "createdByType",
547
- type: {
548
- name: "String",
549
- },
550
- },
551
- createdAt: {
552
- serializedName: "createdAt",
553
- type: {
554
- name: "DateTime",
555
- },
556
- },
557
- lastModifiedBy: {
558
- serializedName: "lastModifiedBy",
559
- type: {
560
- name: "String",
561
- },
562
- },
563
- lastModifiedByType: {
564
- serializedName: "lastModifiedByType",
565
- type: {
566
- name: "String",
567
- },
568
- },
569
- lastModifiedAt: {
570
- serializedName: "lastModifiedAt",
571
- type: {
572
- name: "DateTime",
573
- },
574
- },
575
- },
576
- },
577
- };
578
- const FileSystemResourceUpdate = {
579
- type: {
580
- name: "Composite",
581
- className: "FileSystemResourceUpdate",
582
- modelProperties: {
583
- identity: {
584
- serializedName: "identity",
585
- type: {
586
- name: "Composite",
587
- className: "ManagedServiceIdentity",
588
- },
589
- },
590
- tags: {
591
- serializedName: "tags",
592
- type: {
593
- name: "Dictionary",
594
- value: { type: { name: "String" } },
595
- },
596
- },
597
- properties: {
598
- serializedName: "properties",
599
- type: {
600
- name: "Composite",
601
- className: "FileSystemResourceUpdateProperties",
602
- },
603
- },
604
- },
605
- },
606
- };
607
- const FileSystemResourceUpdateProperties = {
608
- type: {
609
- name: "Composite",
610
- className: "FileSystemResourceUpdateProperties",
611
- modelProperties: {
612
- marketplaceDetails: {
613
- serializedName: "marketplaceDetails",
614
- type: {
615
- name: "Composite",
616
- className: "MarketplaceDetails",
617
- },
618
- },
619
- userDetails: {
620
- serializedName: "userDetails",
621
- type: {
622
- name: "Composite",
623
- className: "UserDetails",
624
- },
625
- },
626
- delegatedSubnetId: {
627
- serializedName: "delegatedSubnetId",
628
- type: {
629
- name: "String",
630
- },
631
- },
632
- },
633
- },
634
- };
635
- const TrackedResource = {
636
- type: {
637
- name: "Composite",
638
- className: "TrackedResource",
639
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
640
- serializedName: "tags",
641
- type: {
642
- name: "Dictionary",
643
- value: { type: { name: "String" } },
644
- },
645
- }, location: {
646
- serializedName: "location",
647
- required: true,
648
- type: {
649
- name: "String",
650
- },
651
- } }),
652
- },
653
- };
654
- const FileSystemResource = {
655
- type: {
656
- name: "Composite",
657
- className: "FileSystemResource",
658
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
659
- serializedName: "identity",
660
- type: {
661
- name: "Composite",
662
- className: "ManagedServiceIdentity",
663
- },
664
- }, marketplaceDetails: {
665
- serializedName: "properties.marketplaceDetails",
666
- type: {
667
- name: "Composite",
668
- className: "MarketplaceDetails",
669
- },
670
- }, provisioningState: {
671
- serializedName: "properties.provisioningState",
672
- readOnly: true,
673
- type: {
674
- name: "String",
675
- },
676
- }, storageSku: {
677
- serializedName: "properties.storageSku",
678
- type: {
679
- name: "String",
680
- },
681
- }, userDetails: {
682
- serializedName: "properties.userDetails",
683
- type: {
684
- name: "Composite",
685
- className: "UserDetails",
686
- },
687
- }, delegatedSubnetId: {
688
- serializedName: "properties.delegatedSubnetId",
689
- type: {
690
- name: "String",
691
- },
692
- }, clusterLoginUrl: {
693
- serializedName: "properties.clusterLoginUrl",
694
- type: {
695
- name: "String",
696
- },
697
- }, privateIPs: {
698
- serializedName: "properties.privateIPs",
699
- type: {
700
- name: "Sequence",
701
- element: {
702
- type: {
703
- name: "String",
704
- },
705
- },
706
- },
707
- }, adminPassword: {
708
- serializedName: "properties.adminPassword",
709
- type: {
710
- name: "String",
711
- },
712
- }, availabilityZone: {
713
- serializedName: "properties.availabilityZone",
714
- type: {
715
- name: "String",
716
- },
717
- } }),
718
- },
719
- };
720
- const FileSystemsCreateOrUpdateHeaders = {
721
- type: {
722
- name: "Composite",
723
- className: "FileSystemsCreateOrUpdateHeaders",
724
- modelProperties: {
725
- azureAsyncOperation: {
726
- serializedName: "azure-asyncoperation",
727
- type: {
728
- name: "String",
729
- },
730
- },
731
- retryAfter: {
732
- serializedName: "retry-after",
733
- type: {
734
- name: "Number",
735
- },
736
- },
737
- },
738
- },
739
- };
740
- const FileSystemsDeleteHeaders = {
741
- type: {
742
- name: "Composite",
743
- className: "FileSystemsDeleteHeaders",
744
- modelProperties: {
745
- azureAsyncOperation: {
746
- serializedName: "azure-asyncoperation",
747
- type: {
748
- name: "String",
749
- },
750
- },
751
- location: {
752
- serializedName: "location",
753
- type: {
754
- name: "String",
755
- },
756
- },
757
- retryAfter: {
758
- serializedName: "retry-after",
759
- type: {
760
- name: "Number",
761
- },
762
- },
763
- },
764
- },
765
- };
766
-
767
- var Mappers = /*#__PURE__*/Object.freeze({
768
- __proto__: null,
769
- ErrorAdditionalInfo: ErrorAdditionalInfo,
770
- ErrorDetail: ErrorDetail,
771
- ErrorResponse: ErrorResponse,
772
- FileSystemResource: FileSystemResource,
773
- FileSystemResourceListResult: FileSystemResourceListResult,
774
- FileSystemResourceUpdate: FileSystemResourceUpdate,
775
- FileSystemResourceUpdateProperties: FileSystemResourceUpdateProperties,
776
- FileSystemsCreateOrUpdateHeaders: FileSystemsCreateOrUpdateHeaders,
777
- FileSystemsDeleteHeaders: FileSystemsDeleteHeaders,
778
- ManagedServiceIdentity: ManagedServiceIdentity,
779
- MarketplaceDetails: MarketplaceDetails,
780
- Operation: Operation,
781
- OperationDisplay: OperationDisplay,
782
- OperationListResult: OperationListResult,
783
- Resource: Resource,
784
- SystemData: SystemData,
785
- TrackedResource: TrackedResource,
786
- UserAssignedIdentity: UserAssignedIdentity,
787
- UserDetails: UserDetails
788
- });
789
-
790
- /*
791
- * Copyright (c) Microsoft Corporation.
792
- * Licensed under the MIT License.
793
- *
794
- * Code generated by Microsoft (R) AutoRest Code Generator.
795
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
796
- */
797
- const accept = {
798
- parameterPath: "accept",
799
- mapper: {
800
- defaultValue: "application/json",
801
- isConstant: true,
802
- serializedName: "Accept",
803
- type: {
804
- name: "String",
805
- },
806
- },
807
- };
808
- const $host = {
809
- parameterPath: "$host",
810
- mapper: {
811
- serializedName: "$host",
812
- required: true,
813
- type: {
814
- name: "String",
815
- },
816
- },
817
- skipEncoding: true,
818
- };
819
- const apiVersion = {
820
- parameterPath: "apiVersion",
821
- mapper: {
822
- defaultValue: "2024-06-19",
823
- isConstant: true,
824
- serializedName: "api-version",
825
- type: {
826
- name: "String",
827
- },
828
- },
829
- };
830
- const nextLink = {
831
- parameterPath: "nextLink",
832
- mapper: {
833
- serializedName: "nextLink",
834
- required: true,
835
- type: {
836
- name: "String",
837
- },
838
- },
839
- skipEncoding: true,
840
- };
841
- const subscriptionId = {
842
- parameterPath: "subscriptionId",
843
- mapper: {
844
- constraints: {
845
- MinLength: 1,
846
- },
847
- serializedName: "subscriptionId",
848
- required: true,
849
- type: {
850
- name: "String",
851
- },
852
- },
853
- };
854
- const resourceGroupName = {
855
- parameterPath: "resourceGroupName",
856
- mapper: {
857
- constraints: {
858
- MaxLength: 90,
859
- MinLength: 1,
860
- },
861
- serializedName: "resourceGroupName",
862
- required: true,
863
- type: {
864
- name: "String",
865
- },
866
- },
867
- };
868
- const fileSystemName = {
869
- parameterPath: "fileSystemName",
870
- mapper: {
871
- constraints: {
872
- Pattern: new RegExp("^[a-zA-Z0-9_-]*$"),
873
- },
874
- serializedName: "fileSystemName",
875
- required: true,
876
- type: {
877
- name: "String",
878
- },
879
- },
880
- };
881
- const contentType = {
882
- parameterPath: ["options", "contentType"],
883
- mapper: {
884
- defaultValue: "application/json",
885
- isConstant: true,
886
- serializedName: "Content-Type",
887
- type: {
888
- name: "String",
889
- },
890
- },
891
- };
892
- const resource = {
893
- parameterPath: "resource",
894
- mapper: FileSystemResource,
895
- };
896
- const properties = {
897
- parameterPath: "properties",
898
- mapper: FileSystemResourceUpdate,
899
- };
900
-
901
- /*
902
- * Copyright (c) Microsoft Corporation.
903
- * Licensed under the MIT License.
904
- *
905
- * Code generated by Microsoft (R) AutoRest Code Generator.
906
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
907
- */
908
- /// <reference lib="esnext.asynciterable" />
909
- /** Class containing Operations operations. */
910
- class OperationsImpl {
911
- /**
912
- * Initialize a new instance of the class Operations class.
913
- * @param client Reference to the service client
914
- */
915
- constructor(client) {
916
- this.client = client;
917
- }
918
- /**
919
- * List the operations for the provider
920
- * @param options The options parameters.
921
- */
922
- list(options) {
923
- const iter = this.listPagingAll(options);
924
- return {
925
- next() {
926
- return iter.next();
927
- },
928
- [Symbol.asyncIterator]() {
929
- return this;
930
- },
931
- byPage: (settings) => {
932
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
933
- throw new Error("maxPageSize is not supported by this operation.");
934
- }
935
- return this.listPagingPage(options, settings);
936
- },
937
- };
938
- }
939
- listPagingPage(options, settings) {
940
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
941
- let result;
942
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
943
- if (!continuationToken) {
944
- result = yield tslib.__await(this._list(options));
945
- let page = result.value || [];
946
- continuationToken = result.nextLink;
947
- setContinuationToken(page, continuationToken);
948
- yield yield tslib.__await(page);
949
- }
950
- while (continuationToken) {
951
- result = yield tslib.__await(this._listNext(continuationToken, options));
952
- continuationToken = result.nextLink;
953
- let page = result.value || [];
954
- setContinuationToken(page, continuationToken);
955
- yield yield tslib.__await(page);
956
- }
957
- });
958
- }
959
- listPagingAll(options) {
960
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
961
- var _a, e_1, _b, _c;
962
- try {
963
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
964
- _c = _f.value;
965
- _d = false;
966
- const page = _c;
967
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
968
- }
969
- }
970
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
971
- finally {
972
- try {
973
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
974
- }
975
- finally { if (e_1) throw e_1.error; }
976
- }
977
- });
978
- }
979
- /**
980
- * List the operations for the provider
981
- * @param options The options parameters.
982
- */
983
- _list(options) {
984
- return this.client.sendOperationRequest({ options }, listOperationSpec);
985
- }
986
- /**
987
- * ListNext
988
- * @param nextLink The nextLink from the previous successful call to the List method.
989
- * @param options The options parameters.
990
- */
991
- _listNext(nextLink, options) {
992
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
993
- }
994
- }
995
- // Operation Specifications
996
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
997
- const listOperationSpec = {
998
- path: "/providers/Qumulo.Storage/operations",
999
- httpMethod: "GET",
1000
- responses: {
1001
- 200: {
1002
- bodyMapper: OperationListResult,
1003
- },
1004
- default: {
1005
- bodyMapper: ErrorResponse,
1006
- },
1007
- },
1008
- queryParameters: [apiVersion],
1009
- urlParameters: [$host],
1010
- headerParameters: [accept],
1011
- serializer: serializer$1,
1012
- };
1013
- const listNextOperationSpec = {
1014
- path: "{nextLink}",
1015
- httpMethod: "GET",
1016
- responses: {
1017
- 200: {
1018
- bodyMapper: OperationListResult,
1019
- },
1020
- default: {
1021
- bodyMapper: ErrorResponse,
1022
- },
1023
- },
1024
- urlParameters: [$host, nextLink],
1025
- headerParameters: [accept],
1026
- serializer: serializer$1,
1027
- };
1028
-
1029
- function createLroSpec(inputs) {
1030
- const { args, spec, sendOperationFn } = inputs;
1031
- return {
1032
- requestMethod: spec.httpMethod,
1033
- requestPath: spec.path,
1034
- sendInitialRequest: () => sendOperationFn(args, spec),
1035
- sendPollRequest: (path, options) => {
1036
- const { requestBody } = spec, restSpec = tslib.__rest(spec, ["requestBody"]);
1037
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1038
- },
1039
- };
1040
- }
1041
-
1042
- /*
1043
- * Copyright (c) Microsoft Corporation.
1044
- * Licensed under the MIT License.
1045
- *
1046
- * Code generated by Microsoft (R) AutoRest Code Generator.
1047
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1048
- */
1049
- /// <reference lib="esnext.asynciterable" />
1050
- /** Class containing FileSystems operations. */
1051
- class FileSystemsImpl {
1052
- /**
1053
- * Initialize a new instance of the class FileSystems class.
1054
- * @param client Reference to the service client
1055
- */
1056
- constructor(client) {
1057
- this.client = client;
1058
- }
1059
- /**
1060
- * List FileSystemResource resources by subscription ID
1061
- * @param options The options parameters.
1062
- */
1063
- listBySubscription(options) {
1064
- const iter = this.listBySubscriptionPagingAll(options);
1065
- return {
1066
- next() {
1067
- return iter.next();
1068
- },
1069
- [Symbol.asyncIterator]() {
1070
- return this;
1071
- },
1072
- byPage: (settings) => {
1073
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1074
- throw new Error("maxPageSize is not supported by this operation.");
1075
- }
1076
- return this.listBySubscriptionPagingPage(options, settings);
1077
- },
1078
- };
1079
- }
1080
- listBySubscriptionPagingPage(options, settings) {
1081
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1082
- let result;
1083
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1084
- if (!continuationToken) {
1085
- result = yield tslib.__await(this._listBySubscription(options));
1086
- let page = result.value || [];
1087
- continuationToken = result.nextLink;
1088
- setContinuationToken(page, continuationToken);
1089
- yield yield tslib.__await(page);
1090
- }
1091
- while (continuationToken) {
1092
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1093
- continuationToken = result.nextLink;
1094
- let page = result.value || [];
1095
- setContinuationToken(page, continuationToken);
1096
- yield yield tslib.__await(page);
1097
- }
1098
- });
1099
- }
1100
- listBySubscriptionPagingAll(options) {
1101
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1102
- var _a, e_1, _b, _c;
1103
- try {
1104
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1105
- _c = _f.value;
1106
- _d = false;
1107
- const page = _c;
1108
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1109
- }
1110
- }
1111
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1112
- finally {
1113
- try {
1114
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1115
- }
1116
- finally { if (e_1) throw e_1.error; }
1117
- }
1118
- });
1119
- }
1120
- /**
1121
- * List FileSystemResource resources by resource group
1122
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1123
- * @param options The options parameters.
1124
- */
1125
- listByResourceGroup(resourceGroupName, options) {
1126
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1127
- return {
1128
- next() {
1129
- return iter.next();
1130
- },
1131
- [Symbol.asyncIterator]() {
1132
- return this;
1133
- },
1134
- byPage: (settings) => {
1135
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1136
- throw new Error("maxPageSize is not supported by this operation.");
1137
- }
1138
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1139
- },
1140
- };
1141
- }
1142
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1143
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1144
- let result;
1145
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1146
- if (!continuationToken) {
1147
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1148
- let page = result.value || [];
1149
- continuationToken = result.nextLink;
1150
- setContinuationToken(page, continuationToken);
1151
- yield yield tslib.__await(page);
1152
- }
1153
- while (continuationToken) {
1154
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1155
- continuationToken = result.nextLink;
1156
- let page = result.value || [];
1157
- setContinuationToken(page, continuationToken);
1158
- yield yield tslib.__await(page);
1159
- }
1160
- });
1161
- }
1162
- listByResourceGroupPagingAll(resourceGroupName, options) {
1163
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1164
- var _a, e_2, _b, _c;
1165
- try {
1166
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1167
- _c = _f.value;
1168
- _d = false;
1169
- const page = _c;
1170
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1171
- }
1172
- }
1173
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1174
- finally {
1175
- try {
1176
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1177
- }
1178
- finally { if (e_2) throw e_2.error; }
1179
- }
1180
- });
1181
- }
1182
- /**
1183
- * List FileSystemResource resources by subscription ID
1184
- * @param options The options parameters.
1185
- */
1186
- _listBySubscription(options) {
1187
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1188
- }
1189
- /**
1190
- * List FileSystemResource resources by resource group
1191
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1192
- * @param options The options parameters.
1193
- */
1194
- _listByResourceGroup(resourceGroupName, options) {
1195
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1196
- }
1197
- /**
1198
- * Get a FileSystemResource
1199
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1200
- * @param fileSystemName Name of the File System resource
1201
- * @param options The options parameters.
1202
- */
1203
- get(resourceGroupName, fileSystemName, options) {
1204
- return this.client.sendOperationRequest({ resourceGroupName, fileSystemName, options }, getOperationSpec);
1205
- }
1206
- /**
1207
- * Create a FileSystemResource
1208
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1209
- * @param fileSystemName Name of the File System resource
1210
- * @param resource Resource create parameters.
1211
- * @param options The options parameters.
1212
- */
1213
- beginCreateOrUpdate(resourceGroupName, fileSystemName, resource, options) {
1214
- return tslib.__awaiter(this, void 0, void 0, function* () {
1215
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1216
- return this.client.sendOperationRequest(args, spec);
1217
- });
1218
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1219
- var _a;
1220
- let currentRawResponse = undefined;
1221
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1222
- const callback = (rawResponse, flatResponse) => {
1223
- currentRawResponse = rawResponse;
1224
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1225
- };
1226
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1227
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1228
- return {
1229
- flatResponse,
1230
- rawResponse: {
1231
- statusCode: currentRawResponse.status,
1232
- body: currentRawResponse.parsedBody,
1233
- headers: currentRawResponse.headers.toJSON(),
1234
- },
1235
- };
1236
- });
1237
- const lro = createLroSpec({
1238
- sendOperationFn,
1239
- args: { resourceGroupName, fileSystemName, resource, options },
1240
- spec: createOrUpdateOperationSpec,
1241
- });
1242
- const poller = yield coreLro.createHttpPoller(lro, {
1243
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1244
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1245
- resourceLocationConfig: "azure-async-operation",
1246
- });
1247
- yield poller.poll();
1248
- return poller;
1249
- });
1250
- }
1251
- /**
1252
- * Create a FileSystemResource
1253
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1254
- * @param fileSystemName Name of the File System resource
1255
- * @param resource Resource create parameters.
1256
- * @param options The options parameters.
1257
- */
1258
- beginCreateOrUpdateAndWait(resourceGroupName, fileSystemName, resource, options) {
1259
- return tslib.__awaiter(this, void 0, void 0, function* () {
1260
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, fileSystemName, resource, options);
1261
- return poller.pollUntilDone();
1262
- });
1263
- }
1264
- /**
1265
- * Update a FileSystemResource
1266
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1267
- * @param fileSystemName Name of the File System resource
1268
- * @param properties The resource properties to be updated.
1269
- * @param options The options parameters.
1270
- */
1271
- update(resourceGroupName, fileSystemName, properties, options) {
1272
- return this.client.sendOperationRequest({ resourceGroupName, fileSystemName, properties, options }, updateOperationSpec);
1273
- }
1274
- /**
1275
- * Delete a FileSystemResource
1276
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1277
- * @param fileSystemName Name of the File System resource
1278
- * @param options The options parameters.
1279
- */
1280
- beginDelete(resourceGroupName, fileSystemName, options) {
1281
- return tslib.__awaiter(this, void 0, void 0, function* () {
1282
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1283
- return this.client.sendOperationRequest(args, spec);
1284
- });
1285
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1286
- var _a;
1287
- let currentRawResponse = undefined;
1288
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1289
- const callback = (rawResponse, flatResponse) => {
1290
- currentRawResponse = rawResponse;
1291
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1292
- };
1293
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1294
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1295
- return {
1296
- flatResponse,
1297
- rawResponse: {
1298
- statusCode: currentRawResponse.status,
1299
- body: currentRawResponse.parsedBody,
1300
- headers: currentRawResponse.headers.toJSON(),
1301
- },
1302
- };
1303
- });
1304
- const lro = createLroSpec({
1305
- sendOperationFn,
1306
- args: { resourceGroupName, fileSystemName, options },
1307
- spec: deleteOperationSpec,
1308
- });
1309
- const poller = yield coreLro.createHttpPoller(lro, {
1310
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1311
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1312
- resourceLocationConfig: "location",
1313
- });
1314
- yield poller.poll();
1315
- return poller;
1316
- });
1317
- }
1318
- /**
1319
- * Delete a FileSystemResource
1320
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1321
- * @param fileSystemName Name of the File System resource
1322
- * @param options The options parameters.
1323
- */
1324
- beginDeleteAndWait(resourceGroupName, fileSystemName, options) {
1325
- return tslib.__awaiter(this, void 0, void 0, function* () {
1326
- const poller = yield this.beginDelete(resourceGroupName, fileSystemName, options);
1327
- return poller.pollUntilDone();
1328
- });
1329
- }
1330
- /**
1331
- * ListBySubscriptionNext
1332
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1333
- * @param options The options parameters.
1334
- */
1335
- _listBySubscriptionNext(nextLink, options) {
1336
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1337
- }
1338
- /**
1339
- * ListByResourceGroupNext
1340
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1341
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1342
- * @param options The options parameters.
1343
- */
1344
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1345
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1346
- }
1347
- }
1348
- // Operation Specifications
1349
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1350
- const listBySubscriptionOperationSpec = {
1351
- path: "/subscriptions/{subscriptionId}/providers/Qumulo.Storage/fileSystems",
1352
- httpMethod: "GET",
1353
- responses: {
1354
- 200: {
1355
- bodyMapper: FileSystemResourceListResult,
1356
- },
1357
- default: {
1358
- bodyMapper: ErrorResponse,
1359
- },
1360
- },
1361
- queryParameters: [apiVersion],
1362
- urlParameters: [$host, subscriptionId],
1363
- headerParameters: [accept],
1364
- serializer,
1365
- };
1366
- const listByResourceGroupOperationSpec = {
1367
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems",
1368
- httpMethod: "GET",
1369
- responses: {
1370
- 200: {
1371
- bodyMapper: FileSystemResourceListResult,
1372
- },
1373
- default: {
1374
- bodyMapper: ErrorResponse,
1375
- },
1376
- },
1377
- queryParameters: [apiVersion],
1378
- urlParameters: [
1379
- $host,
1380
- subscriptionId,
1381
- resourceGroupName,
1382
- ],
1383
- headerParameters: [accept],
1384
- serializer,
1385
- };
1386
- const getOperationSpec = {
1387
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
1388
- httpMethod: "GET",
1389
- responses: {
1390
- 200: {
1391
- bodyMapper: FileSystemResource,
1392
- },
1393
- default: {
1394
- bodyMapper: ErrorResponse,
1395
- },
1396
- },
1397
- queryParameters: [apiVersion],
1398
- urlParameters: [
1399
- $host,
1400
- subscriptionId,
1401
- resourceGroupName,
1402
- fileSystemName,
1403
- ],
1404
- headerParameters: [accept],
1405
- serializer,
1406
- };
1407
- const createOrUpdateOperationSpec = {
1408
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
1409
- httpMethod: "PUT",
1410
- responses: {
1411
- 200: {
1412
- bodyMapper: FileSystemResource,
1413
- },
1414
- 201: {
1415
- bodyMapper: FileSystemResource,
1416
- },
1417
- 202: {
1418
- bodyMapper: FileSystemResource,
1419
- },
1420
- 204: {
1421
- bodyMapper: FileSystemResource,
1422
- },
1423
- default: {
1424
- bodyMapper: ErrorResponse,
1425
- },
1426
- },
1427
- requestBody: resource,
1428
- queryParameters: [apiVersion],
1429
- urlParameters: [
1430
- $host,
1431
- subscriptionId,
1432
- resourceGroupName,
1433
- fileSystemName,
1434
- ],
1435
- headerParameters: [accept, contentType],
1436
- mediaType: "json",
1437
- serializer,
1438
- };
1439
- const updateOperationSpec = {
1440
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
1441
- httpMethod: "PATCH",
1442
- responses: {
1443
- 200: {
1444
- bodyMapper: FileSystemResource,
1445
- },
1446
- default: {
1447
- bodyMapper: ErrorResponse,
1448
- },
1449
- },
1450
- requestBody: properties,
1451
- queryParameters: [apiVersion],
1452
- urlParameters: [
1453
- $host,
1454
- subscriptionId,
1455
- resourceGroupName,
1456
- fileSystemName,
1457
- ],
1458
- headerParameters: [accept, contentType],
1459
- mediaType: "json",
1460
- serializer,
1461
- };
1462
- const deleteOperationSpec = {
1463
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
1464
- httpMethod: "DELETE",
1465
- responses: {
1466
- 200: {
1467
- headersMapper: FileSystemsDeleteHeaders,
1468
- },
1469
- 201: {
1470
- headersMapper: FileSystemsDeleteHeaders,
1471
- },
1472
- 202: {
1473
- headersMapper: FileSystemsDeleteHeaders,
1474
- },
1475
- 204: {
1476
- headersMapper: FileSystemsDeleteHeaders,
1477
- },
1478
- default: {
1479
- bodyMapper: ErrorResponse,
1480
- },
1481
- },
1482
- queryParameters: [apiVersion],
1483
- urlParameters: [
1484
- $host,
1485
- subscriptionId,
1486
- resourceGroupName,
1487
- fileSystemName,
1488
- ],
1489
- headerParameters: [accept],
1490
- serializer,
1491
- };
1492
- const listBySubscriptionNextOperationSpec = {
1493
- path: "{nextLink}",
1494
- httpMethod: "GET",
1495
- responses: {
1496
- 200: {
1497
- bodyMapper: FileSystemResourceListResult,
1498
- },
1499
- default: {
1500
- bodyMapper: ErrorResponse,
1501
- },
1502
- },
1503
- urlParameters: [
1504
- $host,
1505
- nextLink,
1506
- subscriptionId,
1507
- ],
1508
- headerParameters: [accept],
1509
- serializer,
1510
- };
1511
- const listByResourceGroupNextOperationSpec = {
1512
- path: "{nextLink}",
1513
- httpMethod: "GET",
1514
- responses: {
1515
- 200: {
1516
- bodyMapper: FileSystemResourceListResult,
1517
- },
1518
- default: {
1519
- bodyMapper: ErrorResponse,
1520
- },
1521
- },
1522
- urlParameters: [
1523
- $host,
1524
- nextLink,
1525
- subscriptionId,
1526
- resourceGroupName,
1527
- ],
1528
- headerParameters: [accept],
1529
- serializer,
1530
- };
1531
-
1532
- /*
1533
- * Copyright (c) Microsoft Corporation.
1534
- * Licensed under the MIT License.
1535
- *
1536
- * Code generated by Microsoft (R) AutoRest Code Generator.
1537
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1538
- */
1539
- class QumuloStorage extends coreClient__namespace.ServiceClient {
1540
- /**
1541
- * Initializes a new instance of the QumuloStorage class.
1542
- * @param credentials Subscription credentials which uniquely identify client subscription.
1543
- * @param subscriptionId The ID of the target subscription.
1544
- * @param options The parameter options
1545
- */
1546
- constructor(credentials, subscriptionId, options) {
1547
- var _a, _b, _c;
1548
- if (credentials === undefined) {
1549
- throw new Error("'credentials' cannot be null");
1550
- }
1551
- if (subscriptionId === undefined) {
1552
- throw new Error("'subscriptionId' cannot be null");
1553
- }
1554
- // Initializing default values for options
1555
- if (!options) {
1556
- options = {};
1557
- }
1558
- const defaults = {
1559
- requestContentType: "application/json; charset=utf-8",
1560
- credential: credentials,
1561
- };
1562
- const packageDetails = `azsdk-js-arm-qumulo/2.0.1`;
1563
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1564
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1565
- : `${packageDetails}`;
1566
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1567
- userAgentPrefix,
1568
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1569
- super(optionsWithDefaults);
1570
- let bearerTokenAuthenticationPolicyFound = false;
1571
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1572
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1573
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1574
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1575
- }
1576
- if (!options ||
1577
- !options.pipeline ||
1578
- options.pipeline.getOrderedPolicies().length == 0 ||
1579
- !bearerTokenAuthenticationPolicyFound) {
1580
- this.pipeline.removePolicy({
1581
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
1582
- });
1583
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1584
- credential: credentials,
1585
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
1586
- challengeCallbacks: {
1587
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
1588
- },
1589
- }));
1590
- }
1591
- // Parameter assignments
1592
- this.subscriptionId = subscriptionId;
1593
- // Assigning values to Constant parameters
1594
- this.$host = options.$host || "https://management.azure.com";
1595
- this.apiVersion = options.apiVersion || "2024-06-19";
1596
- this.operations = new OperationsImpl(this);
1597
- this.fileSystems = new FileSystemsImpl(this);
1598
- this.addCustomApiVersionPolicy(options.apiVersion);
1599
- }
1600
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1601
- addCustomApiVersionPolicy(apiVersion) {
1602
- if (!apiVersion) {
1603
- return;
1604
- }
1605
- const apiVersionPolicy = {
1606
- name: "CustomApiVersionPolicy",
1607
- sendRequest(request, next) {
1608
- return tslib.__awaiter(this, void 0, void 0, function* () {
1609
- const param = request.url.split("?");
1610
- if (param.length > 1) {
1611
- const newParams = param[1].split("&").map((item) => {
1612
- if (item.indexOf("api-version") > -1) {
1613
- return "api-version=" + apiVersion;
1614
- }
1615
- else {
1616
- return item;
1617
- }
1618
- });
1619
- request.url = param[0] + "?" + newParams.join("&");
1620
- }
1621
- return next(request);
1622
- });
1623
- },
1624
- };
1625
- this.pipeline.addPolicy(apiVersionPolicy);
1626
- }
1627
- }
1628
-
1629
- exports.QumuloStorage = QumuloStorage;
1630
- exports.getContinuationToken = getContinuationToken;
1631
- //# sourceMappingURL=index.js.map