@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
@@ -1,149 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { Operations } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { QumuloStorage } from "../qumuloStorage";
16
- import {
17
- Operation,
18
- OperationsListNextOptionalParams,
19
- OperationsListOptionalParams,
20
- OperationsListResponse,
21
- OperationsListNextResponse,
22
- } from "../models";
23
-
24
- /// <reference lib="esnext.asynciterable" />
25
- /** Class containing Operations operations. */
26
- export class OperationsImpl implements Operations {
27
- private readonly client: QumuloStorage;
28
-
29
- /**
30
- * Initialize a new instance of the class Operations class.
31
- * @param client Reference to the service client
32
- */
33
- constructor(client: QumuloStorage) {
34
- this.client = client;
35
- }
36
-
37
- /**
38
- * List the operations for the provider
39
- * @param options The options parameters.
40
- */
41
- public list(
42
- options?: OperationsListOptionalParams,
43
- ): PagedAsyncIterableIterator<Operation> {
44
- const iter = this.listPagingAll(options);
45
- return {
46
- next() {
47
- return iter.next();
48
- },
49
- [Symbol.asyncIterator]() {
50
- return this;
51
- },
52
- byPage: (settings?: PageSettings) => {
53
- if (settings?.maxPageSize) {
54
- throw new Error("maxPageSize is not supported by this operation.");
55
- }
56
- return this.listPagingPage(options, settings);
57
- },
58
- };
59
- }
60
-
61
- private async *listPagingPage(
62
- options?: OperationsListOptionalParams,
63
- settings?: PageSettings,
64
- ): AsyncIterableIterator<Operation[]> {
65
- let result: OperationsListResponse;
66
- let continuationToken = settings?.continuationToken;
67
- if (!continuationToken) {
68
- result = await this._list(options);
69
- let page = result.value || [];
70
- continuationToken = result.nextLink;
71
- setContinuationToken(page, continuationToken);
72
- yield page;
73
- }
74
- while (continuationToken) {
75
- result = await this._listNext(continuationToken, options);
76
- continuationToken = result.nextLink;
77
- let page = result.value || [];
78
- setContinuationToken(page, continuationToken);
79
- yield page;
80
- }
81
- }
82
-
83
- private async *listPagingAll(
84
- options?: OperationsListOptionalParams,
85
- ): AsyncIterableIterator<Operation> {
86
- for await (const page of this.listPagingPage(options)) {
87
- yield* page;
88
- }
89
- }
90
-
91
- /**
92
- * List the operations for the provider
93
- * @param options The options parameters.
94
- */
95
- private _list(
96
- options?: OperationsListOptionalParams,
97
- ): Promise<OperationsListResponse> {
98
- return this.client.sendOperationRequest({ options }, listOperationSpec);
99
- }
100
-
101
- /**
102
- * ListNext
103
- * @param nextLink The nextLink from the previous successful call to the List method.
104
- * @param options The options parameters.
105
- */
106
- private _listNext(
107
- nextLink: string,
108
- options?: OperationsListNextOptionalParams,
109
- ): Promise<OperationsListNextResponse> {
110
- return this.client.sendOperationRequest(
111
- { nextLink, options },
112
- listNextOperationSpec,
113
- );
114
- }
115
- }
116
- // Operation Specifications
117
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
118
-
119
- const listOperationSpec: coreClient.OperationSpec = {
120
- path: "/providers/Qumulo.Storage/operations",
121
- httpMethod: "GET",
122
- responses: {
123
- 200: {
124
- bodyMapper: Mappers.OperationListResult,
125
- },
126
- default: {
127
- bodyMapper: Mappers.ErrorResponse,
128
- },
129
- },
130
- queryParameters: [Parameters.apiVersion],
131
- urlParameters: [Parameters.$host],
132
- headerParameters: [Parameters.accept],
133
- serializer,
134
- };
135
- const listNextOperationSpec: coreClient.OperationSpec = {
136
- path: "{nextLink}",
137
- httpMethod: "GET",
138
- responses: {
139
- 200: {
140
- bodyMapper: Mappers.OperationListResult,
141
- },
142
- default: {
143
- bodyMapper: Mappers.ErrorResponse,
144
- },
145
- },
146
- urlParameters: [Parameters.$host, Parameters.nextLink],
147
- headerParameters: [Parameters.accept],
148
- serializer,
149
- };
@@ -1,127 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
- import {
12
- FileSystemResource,
13
- FileSystemsListBySubscriptionOptionalParams,
14
- FileSystemsListByResourceGroupOptionalParams,
15
- FileSystemsGetOptionalParams,
16
- FileSystemsGetResponse,
17
- FileSystemsCreateOrUpdateOptionalParams,
18
- FileSystemsCreateOrUpdateResponse,
19
- FileSystemResourceUpdate,
20
- FileSystemsUpdateOptionalParams,
21
- FileSystemsUpdateResponse,
22
- FileSystemsDeleteOptionalParams,
23
- FileSystemsDeleteResponse,
24
- } from "../models";
25
-
26
- /// <reference lib="esnext.asynciterable" />
27
- /** Interface representing a FileSystems. */
28
- export interface FileSystems {
29
- /**
30
- * List FileSystemResource resources by subscription ID
31
- * @param options The options parameters.
32
- */
33
- listBySubscription(
34
- options?: FileSystemsListBySubscriptionOptionalParams,
35
- ): PagedAsyncIterableIterator<FileSystemResource>;
36
- /**
37
- * List FileSystemResource resources by resource group
38
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
- * @param options The options parameters.
40
- */
41
- listByResourceGroup(
42
- resourceGroupName: string,
43
- options?: FileSystemsListByResourceGroupOptionalParams,
44
- ): PagedAsyncIterableIterator<FileSystemResource>;
45
- /**
46
- * Get a FileSystemResource
47
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
48
- * @param fileSystemName Name of the File System resource
49
- * @param options The options parameters.
50
- */
51
- get(
52
- resourceGroupName: string,
53
- fileSystemName: string,
54
- options?: FileSystemsGetOptionalParams,
55
- ): Promise<FileSystemsGetResponse>;
56
- /**
57
- * Create a FileSystemResource
58
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
59
- * @param fileSystemName Name of the File System resource
60
- * @param resource Resource create parameters.
61
- * @param options The options parameters.
62
- */
63
- beginCreateOrUpdate(
64
- resourceGroupName: string,
65
- fileSystemName: string,
66
- resource: FileSystemResource,
67
- options?: FileSystemsCreateOrUpdateOptionalParams,
68
- ): Promise<
69
- SimplePollerLike<
70
- OperationState<FileSystemsCreateOrUpdateResponse>,
71
- FileSystemsCreateOrUpdateResponse
72
- >
73
- >;
74
- /**
75
- * Create a FileSystemResource
76
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
77
- * @param fileSystemName Name of the File System resource
78
- * @param resource Resource create parameters.
79
- * @param options The options parameters.
80
- */
81
- beginCreateOrUpdateAndWait(
82
- resourceGroupName: string,
83
- fileSystemName: string,
84
- resource: FileSystemResource,
85
- options?: FileSystemsCreateOrUpdateOptionalParams,
86
- ): Promise<FileSystemsCreateOrUpdateResponse>;
87
- /**
88
- * Update a FileSystemResource
89
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
90
- * @param fileSystemName Name of the File System resource
91
- * @param properties The resource properties to be updated.
92
- * @param options The options parameters.
93
- */
94
- update(
95
- resourceGroupName: string,
96
- fileSystemName: string,
97
- properties: FileSystemResourceUpdate,
98
- options?: FileSystemsUpdateOptionalParams,
99
- ): Promise<FileSystemsUpdateResponse>;
100
- /**
101
- * Delete a FileSystemResource
102
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
103
- * @param fileSystemName Name of the File System resource
104
- * @param options The options parameters.
105
- */
106
- beginDelete(
107
- resourceGroupName: string,
108
- fileSystemName: string,
109
- options?: FileSystemsDeleteOptionalParams,
110
- ): Promise<
111
- SimplePollerLike<
112
- OperationState<FileSystemsDeleteResponse>,
113
- FileSystemsDeleteResponse
114
- >
115
- >;
116
- /**
117
- * Delete a FileSystemResource
118
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
119
- * @param fileSystemName Name of the File System resource
120
- * @param options The options parameters.
121
- */
122
- beginDeleteAndWait(
123
- resourceGroupName: string,
124
- fileSystemName: string,
125
- options?: FileSystemsDeleteOptionalParams,
126
- ): Promise<FileSystemsDeleteResponse>;
127
- }
@@ -1,22 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { Operation, OperationsListOptionalParams } from "../models";
11
-
12
- /// <reference lib="esnext.asynciterable" />
13
- /** Interface representing a Operations. */
14
- export interface Operations {
15
- /**
16
- * List the operations for the provider
17
- * @param options The options parameters.
18
- */
19
- list(
20
- options?: OperationsListOptionalParams,
21
- ): PagedAsyncIterableIterator<Operation>;
22
- }
@@ -1,39 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- export interface PageInfo {
10
- continuationToken?: string;
11
- }
12
-
13
- const pageMap = new WeakMap<object, PageInfo>();
14
-
15
- /**
16
- * Given the last `.value` produced by the `byPage` iterator,
17
- * returns a continuation token that can be used to begin paging from
18
- * that point later.
19
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
- * @returns The continuation token that can be passed into byPage() during future calls.
21
- */
22
- export function getContinuationToken(page: unknown): string | undefined {
23
- if (typeof page !== "object" || page === null) {
24
- return undefined;
25
- }
26
- return pageMap.get(page)?.continuationToken;
27
- }
28
-
29
- export function setContinuationToken(
30
- page: unknown,
31
- continuationToken: string | undefined,
32
- ): void {
33
- if (typeof page !== "object" || page === null || !continuationToken) {
34
- return;
35
- }
36
- const pageInfo = pageMap.get(page) ?? {};
37
- pageInfo.continuationToken = continuationToken;
38
- pageMap.set(page, pageInfo);
39
- }
@@ -1,143 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import * as coreClient from "@azure/core-client";
10
- import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import {
12
- PipelineRequest,
13
- PipelineResponse,
14
- SendRequest,
15
- } from "@azure/core-rest-pipeline";
16
- import * as coreAuth from "@azure/core-auth";
17
- import { OperationsImpl, FileSystemsImpl } from "./operations";
18
- import { Operations, FileSystems } from "./operationsInterfaces";
19
- import { QumuloStorageOptionalParams } from "./models";
20
-
21
- export class QumuloStorage extends coreClient.ServiceClient {
22
- $host: string;
23
- apiVersion: string;
24
- subscriptionId: string;
25
-
26
- /**
27
- * Initializes a new instance of the QumuloStorage class.
28
- * @param credentials Subscription credentials which uniquely identify client subscription.
29
- * @param subscriptionId The ID of the target subscription.
30
- * @param options The parameter options
31
- */
32
- constructor(
33
- credentials: coreAuth.TokenCredential,
34
- subscriptionId: string,
35
- options?: QumuloStorageOptionalParams,
36
- ) {
37
- if (credentials === undefined) {
38
- throw new Error("'credentials' cannot be null");
39
- }
40
- if (subscriptionId === undefined) {
41
- throw new Error("'subscriptionId' cannot be null");
42
- }
43
-
44
- // Initializing default values for options
45
- if (!options) {
46
- options = {};
47
- }
48
- const defaults: QumuloStorageOptionalParams = {
49
- requestContentType: "application/json; charset=utf-8",
50
- credential: credentials,
51
- };
52
-
53
- const packageDetails = `azsdk-js-arm-qumulo/2.0.1`;
54
- const userAgentPrefix =
55
- options.userAgentOptions && options.userAgentOptions.userAgentPrefix
56
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
57
- : `${packageDetails}`;
58
-
59
- const optionsWithDefaults = {
60
- ...defaults,
61
- ...options,
62
- userAgentOptions: {
63
- userAgentPrefix,
64
- },
65
- endpoint:
66
- options.endpoint ?? options.baseUri ?? "https://management.azure.com",
67
- };
68
- super(optionsWithDefaults);
69
-
70
- let bearerTokenAuthenticationPolicyFound: boolean = false;
71
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
72
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
73
- options.pipeline.getOrderedPolicies();
74
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
75
- (pipelinePolicy) =>
76
- pipelinePolicy.name ===
77
- coreRestPipeline.bearerTokenAuthenticationPolicyName,
78
- );
79
- }
80
- if (
81
- !options ||
82
- !options.pipeline ||
83
- options.pipeline.getOrderedPolicies().length == 0 ||
84
- !bearerTokenAuthenticationPolicyFound
85
- ) {
86
- this.pipeline.removePolicy({
87
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
88
- });
89
- this.pipeline.addPolicy(
90
- coreRestPipeline.bearerTokenAuthenticationPolicy({
91
- credential: credentials,
92
- scopes:
93
- optionsWithDefaults.credentialScopes ??
94
- `${optionsWithDefaults.endpoint}/.default`,
95
- challengeCallbacks: {
96
- authorizeRequestOnChallenge:
97
- coreClient.authorizeRequestOnClaimChallenge,
98
- },
99
- }),
100
- );
101
- }
102
- // Parameter assignments
103
- this.subscriptionId = subscriptionId;
104
-
105
- // Assigning values to Constant parameters
106
- this.$host = options.$host || "https://management.azure.com";
107
- this.apiVersion = options.apiVersion || "2024-06-19";
108
- this.operations = new OperationsImpl(this);
109
- this.fileSystems = new FileSystemsImpl(this);
110
- this.addCustomApiVersionPolicy(options.apiVersion);
111
- }
112
-
113
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
114
- private addCustomApiVersionPolicy(apiVersion?: string) {
115
- if (!apiVersion) {
116
- return;
117
- }
118
- const apiVersionPolicy = {
119
- name: "CustomApiVersionPolicy",
120
- async sendRequest(
121
- request: PipelineRequest,
122
- next: SendRequest,
123
- ): Promise<PipelineResponse> {
124
- const param = request.url.split("?");
125
- if (param.length > 1) {
126
- const newParams = param[1].split("&").map((item) => {
127
- if (item.indexOf("api-version") > -1) {
128
- return "api-version=" + apiVersion;
129
- } else {
130
- return item;
131
- }
132
- });
133
- request.url = param[0] + "?" + newParams.join("&");
134
- }
135
- return next(request);
136
- },
137
- };
138
- this.pipeline.addPolicy(apiVersionPolicy);
139
- }
140
-
141
- operations: Operations;
142
- fileSystems: FileSystems;
143
- }
package/tsconfig.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "es6",
4
- "moduleResolution": "node",
5
- "strict": true,
6
- "target": "es6",
7
- "sourceMap": true,
8
- "declarationMap": true,
9
- "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "lib": [
13
- "es6",
14
- "dom"
15
- ],
16
- "declaration": true,
17
- "outDir": "./dist-esm",
18
- "importHelpers": true,
19
- "paths": {
20
- "@azure/arm-qumulo": [
21
- "./src/index"
22
- ]
23
- }
24
- },
25
- "include": [
26
- "./src/**/*.ts",
27
- "./test/**/*.ts",
28
- "samples-dev/**/*.ts"
29
- ],
30
- "exclude": [
31
- "node_modules"
32
- ]
33
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes