@azure/arm-storagecache 8.1.0 → 8.2.0

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 (239) hide show
  1. package/README.md +2 -2
  2. package/dist/browser/models/index.d.ts +185 -2
  3. package/dist/browser/models/index.d.ts.map +1 -1
  4. package/dist/browser/models/index.js +32 -0
  5. package/dist/browser/models/index.js.map +1 -1
  6. package/dist/browser/models/mappers.d.ts +6 -0
  7. package/dist/browser/models/mappers.d.ts.map +1 -1
  8. package/dist/browser/models/mappers.js +183 -0
  9. package/dist/browser/models/mappers.js.map +1 -1
  10. package/dist/browser/models/parameters.d.ts +3 -0
  11. package/dist/browser/models/parameters.d.ts.map +1 -1
  12. package/dist/browser/models/parameters.js +25 -2
  13. package/dist/browser/models/parameters.js.map +1 -1
  14. package/dist/browser/operations/expansionJobs.d.ts +120 -0
  15. package/dist/browser/operations/expansionJobs.d.ts.map +1 -0
  16. package/dist/browser/operations/expansionJobs.js +473 -0
  17. package/dist/browser/operations/expansionJobs.js.map +1 -0
  18. package/dist/browser/operations/index.d.ts +1 -0
  19. package/dist/browser/operations/index.d.ts.map +1 -1
  20. package/dist/browser/operations/index.js +1 -0
  21. package/dist/browser/operations/index.js.map +1 -1
  22. package/dist/browser/operationsInterfaces/expansionJobs.d.ts +93 -0
  23. package/dist/browser/operationsInterfaces/expansionJobs.d.ts.map +1 -0
  24. package/dist/browser/operationsInterfaces/expansionJobs.js +4 -0
  25. package/dist/browser/operationsInterfaces/expansionJobs.js.map +1 -0
  26. package/dist/browser/operationsInterfaces/index.d.ts +1 -0
  27. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  28. package/dist/browser/operationsInterfaces/index.js +1 -0
  29. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  30. package/dist/browser/storageCacheManagementClient.d.ts +2 -1
  31. package/dist/browser/storageCacheManagementClient.d.ts.map +1 -1
  32. package/dist/browser/storageCacheManagementClient.js +5 -3
  33. package/dist/browser/storageCacheManagementClient.js.map +1 -1
  34. package/dist/commonjs/index.js +35 -16
  35. package/dist/commonjs/index.js.map +7 -1
  36. package/dist/commonjs/lroImpl.js +41 -21
  37. package/dist/commonjs/lroImpl.js.map +7 -1
  38. package/dist/commonjs/models/index.d.ts +185 -2
  39. package/dist/commonjs/models/index.d.ts.map +1 -1
  40. package/dist/commonjs/models/index.js +326 -386
  41. package/dist/commonjs/models/index.js.map +7 -1
  42. package/dist/commonjs/models/mappers.d.ts +6 -0
  43. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  44. package/dist/commonjs/models/mappers.js +4573 -4116
  45. package/dist/commonjs/models/mappers.js.map +7 -1
  46. package/dist/commonjs/models/parameters.d.ts +3 -0
  47. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  48. package/dist/commonjs/models/parameters.js +402 -287
  49. package/dist/commonjs/models/parameters.js.map +7 -1
  50. package/dist/commonjs/operations/amlFilesystems.js +594 -540
  51. package/dist/commonjs/operations/amlFilesystems.js.map +7 -1
  52. package/dist/commonjs/operations/ascOperations.js +79 -49
  53. package/dist/commonjs/operations/ascOperations.js.map +7 -1
  54. package/dist/commonjs/operations/ascUsages.js +141 -112
  55. package/dist/commonjs/operations/ascUsages.js.map +7 -1
  56. package/dist/commonjs/operations/autoExportJobs.js +527 -458
  57. package/dist/commonjs/operations/autoExportJobs.js.map +7 -1
  58. package/dist/commonjs/operations/autoImportJobs.js +527 -458
  59. package/dist/commonjs/operations/autoImportJobs.js.map +7 -1
  60. package/dist/commonjs/operations/caches.js +1353 -1315
  61. package/dist/commonjs/operations/caches.js.map +7 -1
  62. package/dist/commonjs/operations/expansionJobs.d.ts +120 -0
  63. package/dist/commonjs/operations/expansionJobs.d.ts.map +1 -0
  64. package/dist/commonjs/operations/expansionJobs.js +547 -0
  65. package/dist/commonjs/operations/expansionJobs.js.map +7 -0
  66. package/dist/commonjs/operations/importJobs.js +522 -453
  67. package/dist/commonjs/operations/importJobs.js.map +7 -1
  68. package/dist/commonjs/operations/index.d.ts +1 -0
  69. package/dist/commonjs/operations/index.d.ts.map +1 -1
  70. package/dist/commonjs/operations/index.js +45 -20
  71. package/dist/commonjs/operations/index.js.map +7 -1
  72. package/dist/commonjs/operations/operations.js +133 -104
  73. package/dist/commonjs/operations/operations.js.map +7 -1
  74. package/dist/commonjs/operations/skus.js +133 -104
  75. package/dist/commonjs/operations/skus.js.map +7 -1
  76. package/dist/commonjs/operations/storageTargetOperations.js +396 -356
  77. package/dist/commonjs/operations/storageTargetOperations.js.map +7 -1
  78. package/dist/commonjs/operations/storageTargets.js +567 -508
  79. package/dist/commonjs/operations/storageTargets.js.map +7 -1
  80. package/dist/commonjs/operations/usageModels.js +133 -104
  81. package/dist/commonjs/operations/usageModels.js.map +7 -1
  82. package/dist/commonjs/operationsInterfaces/amlFilesystems.js +15 -5
  83. package/dist/commonjs/operationsInterfaces/amlFilesystems.js.map +7 -1
  84. package/dist/commonjs/operationsInterfaces/ascOperations.js +15 -5
  85. package/dist/commonjs/operationsInterfaces/ascOperations.js.map +7 -1
  86. package/dist/commonjs/operationsInterfaces/ascUsages.js +15 -5
  87. package/dist/commonjs/operationsInterfaces/ascUsages.js.map +7 -1
  88. package/dist/commonjs/operationsInterfaces/autoExportJobs.js +15 -5
  89. package/dist/commonjs/operationsInterfaces/autoExportJobs.js.map +7 -1
  90. package/dist/commonjs/operationsInterfaces/autoImportJobs.js +15 -5
  91. package/dist/commonjs/operationsInterfaces/autoImportJobs.js.map +7 -1
  92. package/dist/commonjs/operationsInterfaces/caches.js +15 -5
  93. package/dist/commonjs/operationsInterfaces/caches.js.map +7 -1
  94. package/dist/commonjs/operationsInterfaces/expansionJobs.d.ts +93 -0
  95. package/dist/commonjs/operationsInterfaces/expansionJobs.d.ts.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/expansionJobs.js +15 -0
  97. package/dist/commonjs/operationsInterfaces/expansionJobs.js.map +7 -0
  98. package/dist/commonjs/operationsInterfaces/importJobs.js +15 -5
  99. package/dist/commonjs/operationsInterfaces/importJobs.js.map +7 -1
  100. package/dist/commonjs/operationsInterfaces/index.d.ts +1 -0
  101. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  102. package/dist/commonjs/operationsInterfaces/index.js +45 -20
  103. package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
  104. package/dist/commonjs/operationsInterfaces/operations.js +15 -5
  105. package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
  106. package/dist/commonjs/operationsInterfaces/skus.js +15 -5
  107. package/dist/commonjs/operationsInterfaces/skus.js.map +7 -1
  108. package/dist/commonjs/operationsInterfaces/storageTargetOperations.js +15 -5
  109. package/dist/commonjs/operationsInterfaces/storageTargetOperations.js.map +7 -1
  110. package/dist/commonjs/operationsInterfaces/storageTargets.js +15 -5
  111. package/dist/commonjs/operationsInterfaces/storageTargets.js.map +7 -1
  112. package/dist/commonjs/operationsInterfaces/usageModels.js +15 -5
  113. package/dist/commonjs/operationsInterfaces/usageModels.js.map +7 -1
  114. package/dist/commonjs/pagingHelper.js +39 -25
  115. package/dist/commonjs/pagingHelper.js.map +7 -1
  116. package/dist/commonjs/storageCacheManagementClient.d.ts +2 -1
  117. package/dist/commonjs/storageCacheManagementClient.d.ts.map +1 -1
  118. package/dist/commonjs/storageCacheManagementClient.js +198 -172
  119. package/dist/commonjs/storageCacheManagementClient.js.map +7 -1
  120. package/dist/commonjs/tsdoc-metadata.json +1 -1
  121. package/dist/esm/index.js +6 -8
  122. package/dist/esm/index.js.map +7 -1
  123. package/dist/esm/lroImpl.js +19 -19
  124. package/dist/esm/lroImpl.js.map +7 -1
  125. package/dist/esm/models/index.d.ts +185 -2
  126. package/dist/esm/models/index.d.ts.map +1 -1
  127. package/dist/esm/models/index.js +272 -383
  128. package/dist/esm/models/index.js.map +7 -1
  129. package/dist/esm/models/mappers.d.ts +6 -0
  130. package/dist/esm/models/mappers.d.ts.map +1 -1
  131. package/dist/esm/models/mappers.js +4422 -4111
  132. package/dist/esm/models/mappers.js.map +7 -1
  133. package/dist/esm/models/parameters.d.ts +3 -0
  134. package/dist/esm/models/parameters.d.ts.map +1 -1
  135. package/dist/esm/models/parameters.js +360 -283
  136. package/dist/esm/models/parameters.js.map +7 -1
  137. package/dist/esm/operations/amlFilesystems.js +556 -530
  138. package/dist/esm/operations/amlFilesystems.js.map +7 -1
  139. package/dist/esm/operations/ascOperations.js +44 -42
  140. package/dist/esm/operations/ascOperations.js.map +7 -1
  141. package/dist/esm/operations/ascUsages.js +105 -104
  142. package/dist/esm/operations/ascUsages.js.map +7 -1
  143. package/dist/esm/operations/autoExportJobs.js +489 -448
  144. package/dist/esm/operations/autoExportJobs.js.map +7 -1
  145. package/dist/esm/operations/autoImportJobs.js +489 -448
  146. package/dist/esm/operations/autoImportJobs.js.map +7 -1
  147. package/dist/esm/operations/caches.js +1315 -1305
  148. package/dist/esm/operations/caches.js.map +7 -1
  149. package/dist/esm/operations/expansionJobs.d.ts +120 -0
  150. package/dist/esm/operations/expansionJobs.d.ts.map +1 -0
  151. package/dist/esm/operations/expansionJobs.js +514 -0
  152. package/dist/esm/operations/expansionJobs.js.map +7 -0
  153. package/dist/esm/operations/importJobs.js +484 -443
  154. package/dist/esm/operations/importJobs.js.map +7 -1
  155. package/dist/esm/operations/index.d.ts +1 -0
  156. package/dist/esm/operations/index.d.ts.map +1 -1
  157. package/dist/esm/operations/index.js +1 -5
  158. package/dist/esm/operations/index.js.map +7 -1
  159. package/dist/esm/operations/operations.js +97 -96
  160. package/dist/esm/operations/operations.js.map +7 -1
  161. package/dist/esm/operations/skus.js +97 -96
  162. package/dist/esm/operations/skus.js.map +7 -1
  163. package/dist/esm/operations/storageTargetOperations.js +359 -347
  164. package/dist/esm/operations/storageTargetOperations.js.map +7 -1
  165. package/dist/esm/operations/storageTargets.js +529 -498
  166. package/dist/esm/operations/storageTargets.js.map +7 -1
  167. package/dist/esm/operations/usageModels.js +97 -96
  168. package/dist/esm/operations/usageModels.js.map +7 -1
  169. package/dist/esm/operationsInterfaces/amlFilesystems.js +0 -4
  170. package/dist/esm/operationsInterfaces/amlFilesystems.js.map +7 -1
  171. package/dist/esm/operationsInterfaces/ascOperations.js +0 -4
  172. package/dist/esm/operationsInterfaces/ascOperations.js.map +7 -1
  173. package/dist/esm/operationsInterfaces/ascUsages.js +0 -4
  174. package/dist/esm/operationsInterfaces/ascUsages.js.map +7 -1
  175. package/dist/esm/operationsInterfaces/autoExportJobs.js +0 -4
  176. package/dist/esm/operationsInterfaces/autoExportJobs.js.map +7 -1
  177. package/dist/esm/operationsInterfaces/autoImportJobs.js +0 -4
  178. package/dist/esm/operationsInterfaces/autoImportJobs.js.map +7 -1
  179. package/dist/esm/operationsInterfaces/caches.js +0 -4
  180. package/dist/esm/operationsInterfaces/caches.js.map +7 -1
  181. package/dist/esm/operationsInterfaces/expansionJobs.d.ts +93 -0
  182. package/dist/esm/operationsInterfaces/expansionJobs.d.ts.map +1 -0
  183. package/dist/esm/operationsInterfaces/expansionJobs.js +0 -0
  184. package/dist/esm/operationsInterfaces/expansionJobs.js.map +7 -0
  185. package/dist/esm/operationsInterfaces/importJobs.js +0 -4
  186. package/dist/esm/operationsInterfaces/importJobs.js.map +7 -1
  187. package/dist/esm/operationsInterfaces/index.d.ts +1 -0
  188. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  189. package/dist/esm/operationsInterfaces/index.js +1 -5
  190. package/dist/esm/operationsInterfaces/index.js.map +7 -1
  191. package/dist/esm/operationsInterfaces/operations.js +0 -4
  192. package/dist/esm/operationsInterfaces/operations.js.map +7 -1
  193. package/dist/esm/operationsInterfaces/skus.js +0 -4
  194. package/dist/esm/operationsInterfaces/skus.js.map +7 -1
  195. package/dist/esm/operationsInterfaces/storageTargetOperations.js +0 -4
  196. package/dist/esm/operationsInterfaces/storageTargetOperations.js.map +7 -1
  197. package/dist/esm/operationsInterfaces/storageTargets.js +0 -4
  198. package/dist/esm/operationsInterfaces/storageTargets.js.map +7 -1
  199. package/dist/esm/operationsInterfaces/usageModels.js +0 -4
  200. package/dist/esm/operationsInterfaces/usageModels.js.map +7 -1
  201. package/dist/esm/pagingHelper.js +17 -23
  202. package/dist/esm/pagingHelper.js.map +7 -1
  203. package/dist/esm/storageCacheManagementClient.d.ts +2 -1
  204. package/dist/esm/storageCacheManagementClient.d.ts.map +1 -1
  205. package/dist/esm/storageCacheManagementClient.js +176 -164
  206. package/dist/esm/storageCacheManagementClient.js.map +7 -1
  207. package/dist/react-native/models/index.d.ts +185 -2
  208. package/dist/react-native/models/index.d.ts.map +1 -1
  209. package/dist/react-native/models/index.js +32 -0
  210. package/dist/react-native/models/index.js.map +1 -1
  211. package/dist/react-native/models/mappers.d.ts +6 -0
  212. package/dist/react-native/models/mappers.d.ts.map +1 -1
  213. package/dist/react-native/models/mappers.js +183 -0
  214. package/dist/react-native/models/mappers.js.map +1 -1
  215. package/dist/react-native/models/parameters.d.ts +3 -0
  216. package/dist/react-native/models/parameters.d.ts.map +1 -1
  217. package/dist/react-native/models/parameters.js +25 -2
  218. package/dist/react-native/models/parameters.js.map +1 -1
  219. package/dist/react-native/operations/expansionJobs.d.ts +120 -0
  220. package/dist/react-native/operations/expansionJobs.d.ts.map +1 -0
  221. package/dist/react-native/operations/expansionJobs.js +473 -0
  222. package/dist/react-native/operations/expansionJobs.js.map +1 -0
  223. package/dist/react-native/operations/index.d.ts +1 -0
  224. package/dist/react-native/operations/index.d.ts.map +1 -1
  225. package/dist/react-native/operations/index.js +1 -0
  226. package/dist/react-native/operations/index.js.map +1 -1
  227. package/dist/react-native/operationsInterfaces/expansionJobs.d.ts +93 -0
  228. package/dist/react-native/operationsInterfaces/expansionJobs.d.ts.map +1 -0
  229. package/dist/react-native/operationsInterfaces/expansionJobs.js +4 -0
  230. package/dist/react-native/operationsInterfaces/expansionJobs.js.map +1 -0
  231. package/dist/react-native/operationsInterfaces/index.d.ts +1 -0
  232. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  233. package/dist/react-native/operationsInterfaces/index.js +1 -0
  234. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  235. package/dist/react-native/storageCacheManagementClient.d.ts +2 -1
  236. package/dist/react-native/storageCacheManagementClient.d.ts.map +1 -1
  237. package/dist/react-native/storageCacheManagementClient.js +5 -3
  238. package/dist/react-native/storageCacheManagementClient.js.map +1 -1
  239. package/package.json +26 -38
@@ -1,578 +1,632 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.AmlFilesystemsImpl = void 0;
6
- const tslib_1 = require("tslib");
7
- const pagingHelper_js_1 = require("../pagingHelper.js");
8
- const coreClient = tslib_1.__importStar(require("@azure/core-client"));
9
- const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
10
- const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
11
- const core_lro_1 = require("@azure/core-lro");
12
- const lroImpl_js_1 = require("../lroImpl.js");
13
- /// <reference lib="esnext.asynciterable" />
14
- /** Class containing AmlFilesystems operations. */
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var amlFilesystems_exports = {};
29
+ __export(amlFilesystems_exports, {
30
+ AmlFilesystemsImpl: () => AmlFilesystemsImpl
31
+ });
32
+ module.exports = __toCommonJS(amlFilesystems_exports);
33
+ var import_pagingHelper = require("../pagingHelper.js");
34
+ var coreClient = __toESM(require("@azure/core-client"));
35
+ var Mappers = __toESM(require("../models/mappers.js"));
36
+ var Parameters = __toESM(require("../models/parameters.js"));
37
+ var import_core_lro = require("@azure/core-lro");
38
+ var import_lroImpl = require("../lroImpl.js");
15
39
  class AmlFilesystemsImpl {
16
- client;
17
- /**
18
- * Initialize a new instance of the class AmlFilesystems class.
19
- * @param client Reference to the service client
20
- */
21
- constructor(client) {
22
- this.client = client;
40
+ client;
41
+ /**
42
+ * Initialize a new instance of the class AmlFilesystems class.
43
+ * @param client Reference to the service client
44
+ */
45
+ constructor(client) {
46
+ this.client = client;
47
+ }
48
+ /**
49
+ * Returns all AML file systems the user has access to under a subscription.
50
+ * @param options The options parameters.
51
+ */
52
+ list(options) {
53
+ const iter = this.listPagingAll(options);
54
+ return {
55
+ next() {
56
+ return iter.next();
57
+ },
58
+ [Symbol.asyncIterator]() {
59
+ return this;
60
+ },
61
+ byPage: (settings) => {
62
+ if (settings?.maxPageSize) {
63
+ throw new Error("maxPageSize is not supported by this operation.");
64
+ }
65
+ return this.listPagingPage(options, settings);
66
+ }
67
+ };
68
+ }
69
+ async *listPagingPage(options, settings) {
70
+ let result;
71
+ let continuationToken = settings?.continuationToken;
72
+ if (!continuationToken) {
73
+ result = await this._list(options);
74
+ let page = result.value || [];
75
+ continuationToken = result.nextLink;
76
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
77
+ yield page;
23
78
  }
24
- /**
25
- * Returns all AML file systems the user has access to under a subscription.
26
- * @param options The options parameters.
27
- */
28
- list(options) {
29
- const iter = this.listPagingAll(options);
30
- return {
31
- next() {
32
- return iter.next();
33
- },
34
- [Symbol.asyncIterator]() {
35
- return this;
36
- },
37
- byPage: (settings) => {
38
- if (settings?.maxPageSize) {
39
- throw new Error("maxPageSize is not supported by this operation.");
40
- }
41
- return this.listPagingPage(options, settings);
42
- },
43
- };
79
+ while (continuationToken) {
80
+ result = await this._listNext(continuationToken, options);
81
+ continuationToken = result.nextLink;
82
+ let page = result.value || [];
83
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
84
+ yield page;
44
85
  }
45
- async *listPagingPage(options, settings) {
46
- let result;
47
- let continuationToken = settings?.continuationToken;
48
- if (!continuationToken) {
49
- result = await this._list(options);
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
53
- yield page;
54
- }
55
- while (continuationToken) {
56
- result = await this._listNext(continuationToken, options);
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield page;
61
- }
86
+ }
87
+ async *listPagingAll(options) {
88
+ for await (const page of this.listPagingPage(options)) {
89
+ yield* page;
62
90
  }
63
- async *listPagingAll(options) {
64
- for await (const page of this.listPagingPage(options)) {
65
- yield* page;
91
+ }
92
+ /**
93
+ * Returns all AML file systems the user has access to under a resource group.
94
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
95
+ * @param options The options parameters.
96
+ */
97
+ listByResourceGroup(resourceGroupName, options) {
98
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
99
+ return {
100
+ next() {
101
+ return iter.next();
102
+ },
103
+ [Symbol.asyncIterator]() {
104
+ return this;
105
+ },
106
+ byPage: (settings) => {
107
+ if (settings?.maxPageSize) {
108
+ throw new Error("maxPageSize is not supported by this operation.");
66
109
  }
110
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
111
+ }
112
+ };
113
+ }
114
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
115
+ let result;
116
+ let continuationToken = settings?.continuationToken;
117
+ if (!continuationToken) {
118
+ result = await this._listByResourceGroup(resourceGroupName, options);
119
+ let page = result.value || [];
120
+ continuationToken = result.nextLink;
121
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
122
+ yield page;
123
+ }
124
+ while (continuationToken) {
125
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
126
+ continuationToken = result.nextLink;
127
+ let page = result.value || [];
128
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
129
+ yield page;
67
130
  }
68
- /**
69
- * Returns all AML file systems the user has access to under a resource group.
70
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
- * @param options The options parameters.
72
- */
73
- listByResourceGroup(resourceGroupName, options) {
74
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
75
- return {
76
- next() {
77
- return iter.next();
78
- },
79
- [Symbol.asyncIterator]() {
80
- return this;
81
- },
82
- byPage: (settings) => {
83
- if (settings?.maxPageSize) {
84
- throw new Error("maxPageSize is not supported by this operation.");
85
- }
86
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
87
- },
88
- };
131
+ }
132
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
133
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
134
+ yield* page;
89
135
  }
90
- async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
91
- let result;
92
- let continuationToken = settings?.continuationToken;
93
- if (!continuationToken) {
94
- result = await this._listByResourceGroup(resourceGroupName, options);
95
- let page = result.value || [];
96
- continuationToken = result.nextLink;
97
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
98
- yield page;
136
+ }
137
+ /**
138
+ * Returns all AML file systems the user has access to under a subscription.
139
+ * @param options The options parameters.
140
+ */
141
+ _list(options) {
142
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
143
+ }
144
+ /**
145
+ * Returns all AML file systems the user has access to under a resource group.
146
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
147
+ * @param options The options parameters.
148
+ */
149
+ _listByResourceGroup(resourceGroupName, options) {
150
+ return this.client.sendOperationRequest(
151
+ { resourceGroupName, options },
152
+ listByResourceGroupOperationSpec
153
+ );
154
+ }
155
+ /**
156
+ * Schedules an AML file system for deletion.
157
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
158
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
159
+ * hyphens. Start and end with alphanumeric.
160
+ * @param options The options parameters.
161
+ */
162
+ async beginDelete(resourceGroupName, amlFilesystemName, options) {
163
+ const directSendOperation = async (args, spec) => {
164
+ return this.client.sendOperationRequest(args, spec);
165
+ };
166
+ const sendOperationFn = async (args, spec) => {
167
+ let currentRawResponse = void 0;
168
+ const providedCallback = args.options?.onResponse;
169
+ const callback = (rawResponse, flatResponse2) => {
170
+ currentRawResponse = rawResponse;
171
+ providedCallback?.(rawResponse, flatResponse2);
172
+ };
173
+ const updatedArgs = {
174
+ ...args,
175
+ options: {
176
+ ...args.options,
177
+ onResponse: callback
99
178
  }
100
- while (continuationToken) {
101
- result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
102
- continuationToken = result.nextLink;
103
- let page = result.value || [];
104
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
105
- yield page;
179
+ };
180
+ const flatResponse = await directSendOperation(updatedArgs, spec);
181
+ return {
182
+ flatResponse,
183
+ rawResponse: {
184
+ statusCode: currentRawResponse.status,
185
+ body: currentRawResponse.parsedBody,
186
+ headers: currentRawResponse.headers.toJSON()
106
187
  }
107
- }
108
- async *listByResourceGroupPagingAll(resourceGroupName, options) {
109
- for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
110
- yield* page;
188
+ };
189
+ };
190
+ const lro = (0, import_lroImpl.createLroSpec)({
191
+ sendOperationFn,
192
+ args: { resourceGroupName, amlFilesystemName, options },
193
+ spec: deleteOperationSpec
194
+ });
195
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
196
+ restoreFrom: options?.resumeFrom,
197
+ intervalInMs: options?.updateIntervalInMs,
198
+ resourceLocationConfig: "location"
199
+ });
200
+ await poller.poll();
201
+ return poller;
202
+ }
203
+ /**
204
+ * Schedules an AML file system for deletion.
205
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
206
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
207
+ * hyphens. Start and end with alphanumeric.
208
+ * @param options The options parameters.
209
+ */
210
+ async beginDeleteAndWait(resourceGroupName, amlFilesystemName, options) {
211
+ const poller = await this.beginDelete(resourceGroupName, amlFilesystemName, options);
212
+ return poller.pollUntilDone();
213
+ }
214
+ /**
215
+ * Returns an AML file system.
216
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
217
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
218
+ * hyphens. Start and end with alphanumeric.
219
+ * @param options The options parameters.
220
+ */
221
+ get(resourceGroupName, amlFilesystemName, options) {
222
+ return this.client.sendOperationRequest(
223
+ { resourceGroupName, amlFilesystemName, options },
224
+ getOperationSpec
225
+ );
226
+ }
227
+ /**
228
+ * Create or update an AML file system.
229
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
230
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
231
+ * hyphens. Start and end with alphanumeric.
232
+ * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
233
+ * read-only properties are included, they must match the existing values of those properties.
234
+ * @param options The options parameters.
235
+ */
236
+ async beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
237
+ const directSendOperation = async (args, spec) => {
238
+ return this.client.sendOperationRequest(args, spec);
239
+ };
240
+ const sendOperationFn = async (args, spec) => {
241
+ let currentRawResponse = void 0;
242
+ const providedCallback = args.options?.onResponse;
243
+ const callback = (rawResponse, flatResponse2) => {
244
+ currentRawResponse = rawResponse;
245
+ providedCallback?.(rawResponse, flatResponse2);
246
+ };
247
+ const updatedArgs = {
248
+ ...args,
249
+ options: {
250
+ ...args.options,
251
+ onResponse: callback
111
252
  }
112
- }
113
- /**
114
- * Returns all AML file systems the user has access to under a subscription.
115
- * @param options The options parameters.
116
- */
117
- _list(options) {
118
- return this.client.sendOperationRequest({ options }, listOperationSpec);
119
- }
120
- /**
121
- * Returns all AML file systems the user has access to under a resource group.
122
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
123
- * @param options The options parameters.
124
- */
125
- _listByResourceGroup(resourceGroupName, options) {
126
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
127
- }
128
- /**
129
- * Schedules an AML file system for deletion.
130
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
131
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
132
- * hyphens. Start and end with alphanumeric.
133
- * @param options The options parameters.
134
- */
135
- async beginDelete(resourceGroupName, amlFilesystemName, options) {
136
- const directSendOperation = async (args, spec) => {
137
- return this.client.sendOperationRequest(args, spec);
138
- };
139
- const sendOperationFn = async (args, spec) => {
140
- let currentRawResponse = undefined;
141
- const providedCallback = args.options?.onResponse;
142
- const callback = (rawResponse, flatResponse) => {
143
- currentRawResponse = rawResponse;
144
- providedCallback?.(rawResponse, flatResponse);
145
- };
146
- const updatedArgs = {
147
- ...args,
148
- options: {
149
- ...args.options,
150
- onResponse: callback,
151
- },
152
- };
153
- const flatResponse = await directSendOperation(updatedArgs, spec);
154
- return {
155
- flatResponse,
156
- rawResponse: {
157
- statusCode: currentRawResponse.status,
158
- body: currentRawResponse.parsedBody,
159
- headers: currentRawResponse.headers.toJSON(),
160
- },
161
- };
162
- };
163
- const lro = (0, lroImpl_js_1.createLroSpec)({
164
- sendOperationFn,
165
- args: { resourceGroupName, amlFilesystemName, options },
166
- spec: deleteOperationSpec,
167
- });
168
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
169
- restoreFrom: options?.resumeFrom,
170
- intervalInMs: options?.updateIntervalInMs,
171
- resourceLocationConfig: "location",
172
- });
173
- await poller.poll();
174
- return poller;
175
- }
176
- /**
177
- * Schedules an AML file system for deletion.
178
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
179
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
180
- * hyphens. Start and end with alphanumeric.
181
- * @param options The options parameters.
182
- */
183
- async beginDeleteAndWait(resourceGroupName, amlFilesystemName, options) {
184
- const poller = await this.beginDelete(resourceGroupName, amlFilesystemName, options);
185
- return poller.pollUntilDone();
186
- }
187
- /**
188
- * Returns an AML file system.
189
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
190
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
191
- * hyphens. Start and end with alphanumeric.
192
- * @param options The options parameters.
193
- */
194
- get(resourceGroupName, amlFilesystemName, options) {
195
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, options }, getOperationSpec);
196
- }
197
- /**
198
- * Create or update an AML file system.
199
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
200
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
201
- * hyphens. Start and end with alphanumeric.
202
- * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
203
- * read-only properties are included, they must match the existing values of those properties.
204
- * @param options The options parameters.
205
- */
206
- async beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
207
- const directSendOperation = async (args, spec) => {
208
- return this.client.sendOperationRequest(args, spec);
209
- };
210
- const sendOperationFn = async (args, spec) => {
211
- let currentRawResponse = undefined;
212
- const providedCallback = args.options?.onResponse;
213
- const callback = (rawResponse, flatResponse) => {
214
- currentRawResponse = rawResponse;
215
- providedCallback?.(rawResponse, flatResponse);
216
- };
217
- const updatedArgs = {
218
- ...args,
219
- options: {
220
- ...args.options,
221
- onResponse: callback,
222
- },
223
- };
224
- const flatResponse = await directSendOperation(updatedArgs, spec);
225
- return {
226
- flatResponse,
227
- rawResponse: {
228
- statusCode: currentRawResponse.status,
229
- body: currentRawResponse.parsedBody,
230
- headers: currentRawResponse.headers.toJSON(),
231
- },
232
- };
233
- };
234
- const lro = (0, lroImpl_js_1.createLroSpec)({
235
- sendOperationFn,
236
- args: { resourceGroupName, amlFilesystemName, amlFilesystem, options },
237
- spec: createOrUpdateOperationSpec,
238
- });
239
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
240
- restoreFrom: options?.resumeFrom,
241
- intervalInMs: options?.updateIntervalInMs,
242
- resourceLocationConfig: "azure-async-operation",
243
- });
244
- await poller.poll();
245
- return poller;
246
- }
247
- /**
248
- * Create or update an AML file system.
249
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
250
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
251
- * hyphens. Start and end with alphanumeric.
252
- * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
253
- * read-only properties are included, they must match the existing values of those properties.
254
- * @param options The options parameters.
255
- */
256
- async beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
257
- const poller = await this.beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options);
258
- return poller.pollUntilDone();
259
- }
260
- /**
261
- * Update an AML file system instance.
262
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
263
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
264
- * hyphens. Start and end with alphanumeric.
265
- * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
266
- * read-only properties are included, they must match the existing values of those properties.
267
- * @param options The options parameters.
268
- */
269
- async beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
270
- const directSendOperation = async (args, spec) => {
271
- return this.client.sendOperationRequest(args, spec);
272
- };
273
- const sendOperationFn = async (args, spec) => {
274
- let currentRawResponse = undefined;
275
- const providedCallback = args.options?.onResponse;
276
- const callback = (rawResponse, flatResponse) => {
277
- currentRawResponse = rawResponse;
278
- providedCallback?.(rawResponse, flatResponse);
279
- };
280
- const updatedArgs = {
281
- ...args,
282
- options: {
283
- ...args.options,
284
- onResponse: callback,
285
- },
286
- };
287
- const flatResponse = await directSendOperation(updatedArgs, spec);
288
- return {
289
- flatResponse,
290
- rawResponse: {
291
- statusCode: currentRawResponse.status,
292
- body: currentRawResponse.parsedBody,
293
- headers: currentRawResponse.headers.toJSON(),
294
- },
295
- };
296
- };
297
- const lro = (0, lroImpl_js_1.createLroSpec)({
298
- sendOperationFn,
299
- args: { resourceGroupName, amlFilesystemName, amlFilesystem, options },
300
- spec: updateOperationSpec,
301
- });
302
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
303
- restoreFrom: options?.resumeFrom,
304
- intervalInMs: options?.updateIntervalInMs,
305
- resourceLocationConfig: "azure-async-operation",
306
- });
307
- await poller.poll();
308
- return poller;
309
- }
310
- /**
311
- * Update an AML file system instance.
312
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
313
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
314
- * hyphens. Start and end with alphanumeric.
315
- * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
316
- * read-only properties are included, they must match the existing values of those properties.
317
- * @param options The options parameters.
318
- */
319
- async beginUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
320
- const poller = await this.beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options);
321
- return poller.pollUntilDone();
322
- }
323
- /**
324
- * Archive data from the AML file system.
325
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
326
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
327
- * hyphens. Start and end with alphanumeric.
328
- * @param options The options parameters.
329
- */
330
- archive(resourceGroupName, amlFilesystemName, options) {
331
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, options }, archiveOperationSpec);
332
- }
333
- /**
334
- * Cancel archiving data from the AML file system.
335
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
336
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
337
- * hyphens. Start and end with alphanumeric.
338
- * @param options The options parameters.
339
- */
340
- cancelArchive(resourceGroupName, amlFilesystemName, options) {
341
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, options }, cancelArchiveOperationSpec);
342
- }
343
- /**
344
- * ListNext
345
- * @param nextLink The nextLink from the previous successful call to the List method.
346
- * @param options The options parameters.
347
- */
348
- _listNext(nextLink, options) {
349
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
350
- }
351
- /**
352
- * ListByResourceGroupNext
353
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
354
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
355
- * @param options The options parameters.
356
- */
357
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
358
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
359
- }
253
+ };
254
+ const flatResponse = await directSendOperation(updatedArgs, spec);
255
+ return {
256
+ flatResponse,
257
+ rawResponse: {
258
+ statusCode: currentRawResponse.status,
259
+ body: currentRawResponse.parsedBody,
260
+ headers: currentRawResponse.headers.toJSON()
261
+ }
262
+ };
263
+ };
264
+ const lro = (0, import_lroImpl.createLroSpec)({
265
+ sendOperationFn,
266
+ args: { resourceGroupName, amlFilesystemName, amlFilesystem, options },
267
+ spec: createOrUpdateOperationSpec
268
+ });
269
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
270
+ restoreFrom: options?.resumeFrom,
271
+ intervalInMs: options?.updateIntervalInMs,
272
+ resourceLocationConfig: "azure-async-operation"
273
+ });
274
+ await poller.poll();
275
+ return poller;
276
+ }
277
+ /**
278
+ * Create or update an AML file system.
279
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
280
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
281
+ * hyphens. Start and end with alphanumeric.
282
+ * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
283
+ * read-only properties are included, they must match the existing values of those properties.
284
+ * @param options The options parameters.
285
+ */
286
+ async beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
287
+ const poller = await this.beginCreateOrUpdate(
288
+ resourceGroupName,
289
+ amlFilesystemName,
290
+ amlFilesystem,
291
+ options
292
+ );
293
+ return poller.pollUntilDone();
294
+ }
295
+ /**
296
+ * Update an AML file system instance.
297
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
298
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
299
+ * hyphens. Start and end with alphanumeric.
300
+ * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
301
+ * read-only properties are included, they must match the existing values of those properties.
302
+ * @param options The options parameters.
303
+ */
304
+ async beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
305
+ const directSendOperation = async (args, spec) => {
306
+ return this.client.sendOperationRequest(args, spec);
307
+ };
308
+ const sendOperationFn = async (args, spec) => {
309
+ let currentRawResponse = void 0;
310
+ const providedCallback = args.options?.onResponse;
311
+ const callback = (rawResponse, flatResponse2) => {
312
+ currentRawResponse = rawResponse;
313
+ providedCallback?.(rawResponse, flatResponse2);
314
+ };
315
+ const updatedArgs = {
316
+ ...args,
317
+ options: {
318
+ ...args.options,
319
+ onResponse: callback
320
+ }
321
+ };
322
+ const flatResponse = await directSendOperation(updatedArgs, spec);
323
+ return {
324
+ flatResponse,
325
+ rawResponse: {
326
+ statusCode: currentRawResponse.status,
327
+ body: currentRawResponse.parsedBody,
328
+ headers: currentRawResponse.headers.toJSON()
329
+ }
330
+ };
331
+ };
332
+ const lro = (0, import_lroImpl.createLroSpec)({
333
+ sendOperationFn,
334
+ args: { resourceGroupName, amlFilesystemName, amlFilesystem, options },
335
+ spec: updateOperationSpec
336
+ });
337
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
338
+ restoreFrom: options?.resumeFrom,
339
+ intervalInMs: options?.updateIntervalInMs,
340
+ resourceLocationConfig: "azure-async-operation"
341
+ });
342
+ await poller.poll();
343
+ return poller;
344
+ }
345
+ /**
346
+ * Update an AML file system instance.
347
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
348
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
349
+ * hyphens. Start and end with alphanumeric.
350
+ * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
351
+ * read-only properties are included, they must match the existing values of those properties.
352
+ * @param options The options parameters.
353
+ */
354
+ async beginUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
355
+ const poller = await this.beginUpdate(
356
+ resourceGroupName,
357
+ amlFilesystemName,
358
+ amlFilesystem,
359
+ options
360
+ );
361
+ return poller.pollUntilDone();
362
+ }
363
+ /**
364
+ * Archive data from the AML file system.
365
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
366
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
367
+ * hyphens. Start and end with alphanumeric.
368
+ * @param options The options parameters.
369
+ */
370
+ archive(resourceGroupName, amlFilesystemName, options) {
371
+ return this.client.sendOperationRequest(
372
+ { resourceGroupName, amlFilesystemName, options },
373
+ archiveOperationSpec
374
+ );
375
+ }
376
+ /**
377
+ * Cancel archiving data from the AML file system.
378
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
379
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
380
+ * hyphens. Start and end with alphanumeric.
381
+ * @param options The options parameters.
382
+ */
383
+ cancelArchive(resourceGroupName, amlFilesystemName, options) {
384
+ return this.client.sendOperationRequest(
385
+ { resourceGroupName, amlFilesystemName, options },
386
+ cancelArchiveOperationSpec
387
+ );
388
+ }
389
+ /**
390
+ * ListNext
391
+ * @param nextLink The nextLink from the previous successful call to the List method.
392
+ * @param options The options parameters.
393
+ */
394
+ _listNext(nextLink, options) {
395
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
396
+ }
397
+ /**
398
+ * ListByResourceGroupNext
399
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
400
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
401
+ * @param options The options parameters.
402
+ */
403
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
404
+ return this.client.sendOperationRequest(
405
+ { resourceGroupName, nextLink, options },
406
+ listByResourceGroupNextOperationSpec
407
+ );
408
+ }
360
409
  }
361
- exports.AmlFilesystemsImpl = AmlFilesystemsImpl;
362
- // Operation Specifications
363
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
410
+ const serializer = coreClient.createSerializer(
411
+ Mappers,
412
+ /* isXml */
413
+ false
414
+ );
364
415
  const listOperationSpec = {
365
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/amlFilesystems",
366
- httpMethod: "GET",
367
- responses: {
368
- 200: {
369
- bodyMapper: Mappers.AmlFilesystemsListResult,
370
- },
371
- default: {
372
- bodyMapper: Mappers.CloudError,
373
- },
416
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/amlFilesystems",
417
+ httpMethod: "GET",
418
+ responses: {
419
+ 200: {
420
+ bodyMapper: Mappers.AmlFilesystemsListResult
374
421
  },
375
- queryParameters: [Parameters.apiVersion],
376
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
377
- headerParameters: [Parameters.accept],
378
- serializer,
422
+ default: {
423
+ bodyMapper: Mappers.CloudError
424
+ }
425
+ },
426
+ queryParameters: [Parameters.apiVersion],
427
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
428
+ headerParameters: [Parameters.accept],
429
+ serializer
379
430
  };
380
431
  const listByResourceGroupOperationSpec = {
381
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems",
382
- httpMethod: "GET",
383
- responses: {
384
- 200: {
385
- bodyMapper: Mappers.AmlFilesystemsListResult,
386
- },
387
- default: {
388
- bodyMapper: Mappers.CloudError,
389
- },
432
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems",
433
+ httpMethod: "GET",
434
+ responses: {
435
+ 200: {
436
+ bodyMapper: Mappers.AmlFilesystemsListResult
390
437
  },
391
- queryParameters: [Parameters.apiVersion],
392
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
393
- headerParameters: [Parameters.accept],
394
- serializer,
438
+ default: {
439
+ bodyMapper: Mappers.CloudError
440
+ }
441
+ },
442
+ queryParameters: [Parameters.apiVersion],
443
+ urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
444
+ headerParameters: [Parameters.accept],
445
+ serializer
395
446
  };
396
447
  const deleteOperationSpec = {
397
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
398
- httpMethod: "DELETE",
399
- responses: {
400
- 200: {},
401
- 201: {},
402
- 202: {},
403
- 204: {},
404
- default: {
405
- bodyMapper: Mappers.CloudError,
406
- },
407
- },
408
- queryParameters: [Parameters.apiVersion],
409
- urlParameters: [
410
- Parameters.$host,
411
- Parameters.subscriptionId,
412
- Parameters.resourceGroupName,
413
- Parameters.amlFilesystemName,
414
- ],
415
- headerParameters: [Parameters.accept],
416
- serializer,
448
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
449
+ httpMethod: "DELETE",
450
+ responses: {
451
+ 200: {},
452
+ 201: {},
453
+ 202: {},
454
+ 204: {},
455
+ default: {
456
+ bodyMapper: Mappers.CloudError
457
+ }
458
+ },
459
+ queryParameters: [Parameters.apiVersion],
460
+ urlParameters: [
461
+ Parameters.$host,
462
+ Parameters.subscriptionId,
463
+ Parameters.resourceGroupName,
464
+ Parameters.amlFilesystemName
465
+ ],
466
+ headerParameters: [Parameters.accept],
467
+ serializer
417
468
  };
418
469
  const getOperationSpec = {
419
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
420
- httpMethod: "GET",
421
- responses: {
422
- 200: {
423
- bodyMapper: Mappers.AmlFilesystem,
424
- },
425
- default: {
426
- bodyMapper: Mappers.CloudError,
427
- },
470
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
471
+ httpMethod: "GET",
472
+ responses: {
473
+ 200: {
474
+ bodyMapper: Mappers.AmlFilesystem
428
475
  },
429
- queryParameters: [Parameters.apiVersion],
430
- urlParameters: [
431
- Parameters.$host,
432
- Parameters.subscriptionId,
433
- Parameters.resourceGroupName,
434
- Parameters.amlFilesystemName,
435
- ],
436
- headerParameters: [Parameters.accept],
437
- serializer,
476
+ default: {
477
+ bodyMapper: Mappers.CloudError
478
+ }
479
+ },
480
+ queryParameters: [Parameters.apiVersion],
481
+ urlParameters: [
482
+ Parameters.$host,
483
+ Parameters.subscriptionId,
484
+ Parameters.resourceGroupName,
485
+ Parameters.amlFilesystemName
486
+ ],
487
+ headerParameters: [Parameters.accept],
488
+ serializer
438
489
  };
439
490
  const createOrUpdateOperationSpec = {
440
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
441
- httpMethod: "PUT",
442
- responses: {
443
- 200: {
444
- bodyMapper: Mappers.AmlFilesystem,
445
- },
446
- 201: {
447
- bodyMapper: Mappers.AmlFilesystem,
448
- },
449
- 202: {
450
- bodyMapper: Mappers.AmlFilesystem,
451
- },
452
- 204: {
453
- bodyMapper: Mappers.AmlFilesystem,
454
- },
455
- default: {
456
- bodyMapper: Mappers.CloudError,
457
- },
491
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
492
+ httpMethod: "PUT",
493
+ responses: {
494
+ 200: {
495
+ bodyMapper: Mappers.AmlFilesystem
496
+ },
497
+ 201: {
498
+ bodyMapper: Mappers.AmlFilesystem
499
+ },
500
+ 202: {
501
+ bodyMapper: Mappers.AmlFilesystem
458
502
  },
459
- requestBody: Parameters.amlFilesystem,
460
- queryParameters: [Parameters.apiVersion],
461
- urlParameters: [
462
- Parameters.$host,
463
- Parameters.subscriptionId,
464
- Parameters.resourceGroupName,
465
- Parameters.amlFilesystemName,
466
- ],
467
- headerParameters: [Parameters.accept, Parameters.contentType],
468
- mediaType: "json",
469
- serializer,
503
+ 204: {
504
+ bodyMapper: Mappers.AmlFilesystem
505
+ },
506
+ default: {
507
+ bodyMapper: Mappers.CloudError
508
+ }
509
+ },
510
+ requestBody: Parameters.amlFilesystem,
511
+ queryParameters: [Parameters.apiVersion],
512
+ urlParameters: [
513
+ Parameters.$host,
514
+ Parameters.subscriptionId,
515
+ Parameters.resourceGroupName,
516
+ Parameters.amlFilesystemName
517
+ ],
518
+ headerParameters: [Parameters.accept, Parameters.contentType],
519
+ mediaType: "json",
520
+ serializer
470
521
  };
471
522
  const updateOperationSpec = {
472
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
473
- httpMethod: "PATCH",
474
- responses: {
475
- 200: {
476
- bodyMapper: Mappers.AmlFilesystem,
477
- },
478
- 201: {
479
- bodyMapper: Mappers.AmlFilesystem,
480
- },
481
- 202: {
482
- bodyMapper: Mappers.AmlFilesystem,
483
- },
484
- 204: {
485
- bodyMapper: Mappers.AmlFilesystem,
486
- },
487
- default: {
488
- bodyMapper: Mappers.CloudError,
489
- },
523
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
524
+ httpMethod: "PATCH",
525
+ responses: {
526
+ 200: {
527
+ bodyMapper: Mappers.AmlFilesystem
490
528
  },
491
- requestBody: Parameters.amlFilesystem1,
492
- queryParameters: [Parameters.apiVersion],
493
- urlParameters: [
494
- Parameters.$host,
495
- Parameters.subscriptionId,
496
- Parameters.resourceGroupName,
497
- Parameters.amlFilesystemName,
498
- ],
499
- headerParameters: [Parameters.accept, Parameters.contentType],
500
- mediaType: "json",
501
- serializer,
529
+ 201: {
530
+ bodyMapper: Mappers.AmlFilesystem
531
+ },
532
+ 202: {
533
+ bodyMapper: Mappers.AmlFilesystem
534
+ },
535
+ 204: {
536
+ bodyMapper: Mappers.AmlFilesystem
537
+ },
538
+ default: {
539
+ bodyMapper: Mappers.CloudError
540
+ }
541
+ },
542
+ requestBody: Parameters.amlFilesystem1,
543
+ queryParameters: [Parameters.apiVersion],
544
+ urlParameters: [
545
+ Parameters.$host,
546
+ Parameters.subscriptionId,
547
+ Parameters.resourceGroupName,
548
+ Parameters.amlFilesystemName
549
+ ],
550
+ headerParameters: [Parameters.accept, Parameters.contentType],
551
+ mediaType: "json",
552
+ serializer
502
553
  };
503
554
  const archiveOperationSpec = {
504
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/archive",
505
- httpMethod: "POST",
506
- responses: {
507
- 200: {},
508
- default: {
509
- bodyMapper: Mappers.CloudError,
510
- },
511
- },
512
- requestBody: Parameters.archiveInfo,
513
- queryParameters: [Parameters.apiVersion],
514
- urlParameters: [
515
- Parameters.$host,
516
- Parameters.subscriptionId,
517
- Parameters.resourceGroupName,
518
- Parameters.amlFilesystemName,
519
- ],
520
- headerParameters: [Parameters.accept, Parameters.contentType],
521
- mediaType: "json",
522
- serializer,
555
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/archive",
556
+ httpMethod: "POST",
557
+ responses: {
558
+ 200: {},
559
+ default: {
560
+ bodyMapper: Mappers.CloudError
561
+ }
562
+ },
563
+ requestBody: Parameters.archiveInfo,
564
+ queryParameters: [Parameters.apiVersion],
565
+ urlParameters: [
566
+ Parameters.$host,
567
+ Parameters.subscriptionId,
568
+ Parameters.resourceGroupName,
569
+ Parameters.amlFilesystemName
570
+ ],
571
+ headerParameters: [Parameters.accept, Parameters.contentType],
572
+ mediaType: "json",
573
+ serializer
523
574
  };
524
575
  const cancelArchiveOperationSpec = {
525
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/cancelArchive",
526
- httpMethod: "POST",
527
- responses: {
528
- 200: {},
529
- default: {
530
- bodyMapper: Mappers.CloudError,
531
- },
532
- },
533
- queryParameters: [Parameters.apiVersion],
534
- urlParameters: [
535
- Parameters.$host,
536
- Parameters.subscriptionId,
537
- Parameters.resourceGroupName,
538
- Parameters.amlFilesystemName,
539
- ],
540
- headerParameters: [Parameters.accept],
541
- serializer,
576
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/cancelArchive",
577
+ httpMethod: "POST",
578
+ responses: {
579
+ 200: {},
580
+ default: {
581
+ bodyMapper: Mappers.CloudError
582
+ }
583
+ },
584
+ queryParameters: [Parameters.apiVersion],
585
+ urlParameters: [
586
+ Parameters.$host,
587
+ Parameters.subscriptionId,
588
+ Parameters.resourceGroupName,
589
+ Parameters.amlFilesystemName
590
+ ],
591
+ headerParameters: [Parameters.accept],
592
+ serializer
542
593
  };
543
594
  const listNextOperationSpec = {
544
- path: "{nextLink}",
545
- httpMethod: "GET",
546
- responses: {
547
- 200: {
548
- bodyMapper: Mappers.AmlFilesystemsListResult,
549
- },
550
- default: {
551
- bodyMapper: Mappers.CloudError,
552
- },
595
+ path: "{nextLink}",
596
+ httpMethod: "GET",
597
+ responses: {
598
+ 200: {
599
+ bodyMapper: Mappers.AmlFilesystemsListResult
553
600
  },
554
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
555
- headerParameters: [Parameters.accept],
556
- serializer,
601
+ default: {
602
+ bodyMapper: Mappers.CloudError
603
+ }
604
+ },
605
+ urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
606
+ headerParameters: [Parameters.accept],
607
+ serializer
557
608
  };
558
609
  const listByResourceGroupNextOperationSpec = {
559
- path: "{nextLink}",
560
- httpMethod: "GET",
561
- responses: {
562
- 200: {
563
- bodyMapper: Mappers.AmlFilesystemsListResult,
564
- },
565
- default: {
566
- bodyMapper: Mappers.CloudError,
567
- },
610
+ path: "{nextLink}",
611
+ httpMethod: "GET",
612
+ responses: {
613
+ 200: {
614
+ bodyMapper: Mappers.AmlFilesystemsListResult
568
615
  },
569
- urlParameters: [
570
- Parameters.$host,
571
- Parameters.subscriptionId,
572
- Parameters.resourceGroupName,
573
- Parameters.nextLink,
574
- ],
575
- headerParameters: [Parameters.accept],
576
- serializer,
616
+ default: {
617
+ bodyMapper: Mappers.CloudError
618
+ }
619
+ },
620
+ urlParameters: [
621
+ Parameters.$host,
622
+ Parameters.subscriptionId,
623
+ Parameters.resourceGroupName,
624
+ Parameters.nextLink
625
+ ],
626
+ headerParameters: [Parameters.accept],
627
+ serializer
577
628
  };
578
- //# sourceMappingURL=amlFilesystems.js.map
629
+ // Annotate the CommonJS export names for ESM import in node:
630
+ 0 && (module.exports = {
631
+ AmlFilesystemsImpl
632
+ });