@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,1374 +1,1412 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.CachesImpl = 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 Caches 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 caches_exports = {};
29
+ __export(caches_exports, {
30
+ CachesImpl: () => CachesImpl
31
+ });
32
+ module.exports = __toCommonJS(caches_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 CachesImpl {
16
- client;
17
- /**
18
- * Initialize a new instance of the class Caches 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 Caches class.
43
+ * @param client Reference to the service client
44
+ */
45
+ constructor(client) {
46
+ this.client = client;
47
+ }
48
+ /**
49
+ * Returns all caches 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 caches 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 caches 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 caches 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 caches 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 caches 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 a cache for deletion.
157
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
158
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
159
+ * the [-0-9a-zA-Z_] char class.
160
+ * @param options The options parameters.
161
+ */
162
+ async beginDelete(resourceGroupName, cacheName, 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, cacheName, options },
193
+ spec: deleteOperationSpec
194
+ });
195
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
196
+ restoreFrom: options?.resumeFrom,
197
+ intervalInMs: options?.updateIntervalInMs
198
+ });
199
+ await poller.poll();
200
+ return poller;
201
+ }
202
+ /**
203
+ * Schedules a cache for deletion.
204
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
205
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
206
+ * the [-0-9a-zA-Z_] char class.
207
+ * @param options The options parameters.
208
+ */
209
+ async beginDeleteAndWait(resourceGroupName, cacheName, options) {
210
+ const poller = await this.beginDelete(resourceGroupName, cacheName, options);
211
+ return poller.pollUntilDone();
212
+ }
213
+ /**
214
+ * Returns a cache.
215
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
216
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
217
+ * the [-0-9a-zA-Z_] char class.
218
+ * @param options The options parameters.
219
+ */
220
+ get(resourceGroupName, cacheName, options) {
221
+ return this.client.sendOperationRequest(
222
+ { resourceGroupName, cacheName, options },
223
+ getOperationSpec
224
+ );
225
+ }
226
+ /**
227
+ * Create or update a cache.
228
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
229
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
230
+ * the [-0-9a-zA-Z_] char class.
231
+ * @param cache Object containing the user-selectable properties of the new cache. If read-only
232
+ * properties are included, they must match the existing values of those properties.
233
+ * @param options The options parameters.
234
+ */
235
+ async beginCreateOrUpdate(resourceGroupName, cacheName, cache, options) {
236
+ const directSendOperation = async (args, spec) => {
237
+ return this.client.sendOperationRequest(args, spec);
238
+ };
239
+ const sendOperationFn = async (args, spec) => {
240
+ let currentRawResponse = void 0;
241
+ const providedCallback = args.options?.onResponse;
242
+ const callback = (rawResponse, flatResponse2) => {
243
+ currentRawResponse = rawResponse;
244
+ providedCallback?.(rawResponse, flatResponse2);
245
+ };
246
+ const updatedArgs = {
247
+ ...args,
248
+ options: {
249
+ ...args.options,
250
+ onResponse: callback
111
251
  }
112
- }
113
- /**
114
- * Returns all caches 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 caches 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 a cache for deletion.
130
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
131
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
132
- * the [-0-9a-zA-Z_] char class.
133
- * @param options The options parameters.
134
- */
135
- async beginDelete(resourceGroupName, cacheName, 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, cacheName, options },
166
- spec: deleteOperationSpec,
167
- });
168
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
169
- restoreFrom: options?.resumeFrom,
170
- intervalInMs: options?.updateIntervalInMs,
171
- });
172
- await poller.poll();
173
- return poller;
174
- }
175
- /**
176
- * Schedules a cache for deletion.
177
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
178
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
179
- * the [-0-9a-zA-Z_] char class.
180
- * @param options The options parameters.
181
- */
182
- async beginDeleteAndWait(resourceGroupName, cacheName, options) {
183
- const poller = await this.beginDelete(resourceGroupName, cacheName, options);
184
- return poller.pollUntilDone();
185
- }
186
- /**
187
- * Returns a cache.
188
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
189
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
190
- * the [-0-9a-zA-Z_] char class.
191
- * @param options The options parameters.
192
- */
193
- get(resourceGroupName, cacheName, options) {
194
- return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, getOperationSpec);
195
- }
196
- /**
197
- * Create or update a cache.
198
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
199
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
200
- * the [-0-9a-zA-Z_] char class.
201
- * @param cache Object containing the user-selectable properties of the new cache. If read-only
202
- * properties are included, they must match the existing values of those properties.
203
- * @param options The options parameters.
204
- */
205
- async beginCreateOrUpdate(resourceGroupName, cacheName, cache, options) {
206
- const directSendOperation = async (args, spec) => {
207
- return this.client.sendOperationRequest(args, spec);
208
- };
209
- const sendOperationFn = async (args, spec) => {
210
- let currentRawResponse = undefined;
211
- const providedCallback = args.options?.onResponse;
212
- const callback = (rawResponse, flatResponse) => {
213
- currentRawResponse = rawResponse;
214
- providedCallback?.(rawResponse, flatResponse);
215
- };
216
- const updatedArgs = {
217
- ...args,
218
- options: {
219
- ...args.options,
220
- onResponse: callback,
221
- },
222
- };
223
- const flatResponse = await directSendOperation(updatedArgs, spec);
224
- return {
225
- flatResponse,
226
- rawResponse: {
227
- statusCode: currentRawResponse.status,
228
- body: currentRawResponse.parsedBody,
229
- headers: currentRawResponse.headers.toJSON(),
230
- },
231
- };
232
- };
233
- const lro = (0, lroImpl_js_1.createLroSpec)({
234
- sendOperationFn,
235
- args: { resourceGroupName, cacheName, cache, options },
236
- spec: createOrUpdateOperationSpec,
237
- });
238
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
239
- restoreFrom: options?.resumeFrom,
240
- intervalInMs: options?.updateIntervalInMs,
241
- });
242
- await poller.poll();
243
- return poller;
244
- }
245
- /**
246
- * Create or update a cache.
247
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
248
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
249
- * the [-0-9a-zA-Z_] char class.
250
- * @param cache Object containing the user-selectable properties of the new cache. If read-only
251
- * properties are included, they must match the existing values of those properties.
252
- * @param options The options parameters.
253
- */
254
- async beginCreateOrUpdateAndWait(resourceGroupName, cacheName, cache, options) {
255
- const poller = await this.beginCreateOrUpdate(resourceGroupName, cacheName, cache, options);
256
- return poller.pollUntilDone();
257
- }
258
- /**
259
- * Update a cache instance.
260
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
261
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
262
- * the [-0-9a-zA-Z_] char class.
263
- * @param options The options parameters.
264
- */
265
- async beginUpdate(resourceGroupName, cacheName, options) {
266
- const directSendOperation = async (args, spec) => {
267
- return this.client.sendOperationRequest(args, spec);
268
- };
269
- const sendOperationFn = async (args, spec) => {
270
- let currentRawResponse = undefined;
271
- const providedCallback = args.options?.onResponse;
272
- const callback = (rawResponse, flatResponse) => {
273
- currentRawResponse = rawResponse;
274
- providedCallback?.(rawResponse, flatResponse);
275
- };
276
- const updatedArgs = {
277
- ...args,
278
- options: {
279
- ...args.options,
280
- onResponse: callback,
281
- },
282
- };
283
- const flatResponse = await directSendOperation(updatedArgs, spec);
284
- return {
285
- flatResponse,
286
- rawResponse: {
287
- statusCode: currentRawResponse.status,
288
- body: currentRawResponse.parsedBody,
289
- headers: currentRawResponse.headers.toJSON(),
290
- },
291
- };
292
- };
293
- const lro = (0, lroImpl_js_1.createLroSpec)({
294
- sendOperationFn,
295
- args: { resourceGroupName, cacheName, options },
296
- spec: updateOperationSpec,
297
- });
298
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
299
- restoreFrom: options?.resumeFrom,
300
- intervalInMs: options?.updateIntervalInMs,
301
- resourceLocationConfig: "azure-async-operation",
302
- });
303
- await poller.poll();
304
- return poller;
305
- }
306
- /**
307
- * Update a cache instance.
308
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
309
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
310
- * the [-0-9a-zA-Z_] char class.
311
- * @param options The options parameters.
312
- */
313
- async beginUpdateAndWait(resourceGroupName, cacheName, options) {
314
- const poller = await this.beginUpdate(resourceGroupName, cacheName, options);
315
- return poller.pollUntilDone();
316
- }
317
- /**
318
- * Tells a cache to write generate debug info for support to process.
319
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
320
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
321
- * the [-0-9a-zA-Z_] char class.
322
- * @param options The options parameters.
323
- */
324
- async beginDebugInfo(resourceGroupName, cacheName, options) {
325
- const directSendOperation = async (args, spec) => {
326
- return this.client.sendOperationRequest(args, spec);
327
- };
328
- const sendOperationFn = async (args, spec) => {
329
- let currentRawResponse = undefined;
330
- const providedCallback = args.options?.onResponse;
331
- const callback = (rawResponse, flatResponse) => {
332
- currentRawResponse = rawResponse;
333
- providedCallback?.(rawResponse, flatResponse);
334
- };
335
- const updatedArgs = {
336
- ...args,
337
- options: {
338
- ...args.options,
339
- onResponse: callback,
340
- },
341
- };
342
- const flatResponse = await directSendOperation(updatedArgs, spec);
343
- return {
344
- flatResponse,
345
- rawResponse: {
346
- statusCode: currentRawResponse.status,
347
- body: currentRawResponse.parsedBody,
348
- headers: currentRawResponse.headers.toJSON(),
349
- },
350
- };
351
- };
352
- const lro = (0, lroImpl_js_1.createLroSpec)({
353
- sendOperationFn,
354
- args: { resourceGroupName, cacheName, options },
355
- spec: debugInfoOperationSpec,
356
- });
357
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
358
- restoreFrom: options?.resumeFrom,
359
- intervalInMs: options?.updateIntervalInMs,
360
- resourceLocationConfig: "azure-async-operation",
361
- });
362
- await poller.poll();
363
- return poller;
364
- }
365
- /**
366
- * Tells a cache to write generate debug info for support to process.
367
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
368
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
369
- * the [-0-9a-zA-Z_] char class.
370
- * @param options The options parameters.
371
- */
372
- async beginDebugInfoAndWait(resourceGroupName, cacheName, options) {
373
- const poller = await this.beginDebugInfo(resourceGroupName, cacheName, options);
374
- return poller.pollUntilDone();
375
- }
376
- /**
377
- * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see
378
- * errors returned until the flush is complete.
379
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
380
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
381
- * the [-0-9a-zA-Z_] char class.
382
- * @param options The options parameters.
383
- */
384
- async beginFlush(resourceGroupName, cacheName, options) {
385
- const directSendOperation = async (args, spec) => {
386
- return this.client.sendOperationRequest(args, spec);
387
- };
388
- const sendOperationFn = async (args, spec) => {
389
- let currentRawResponse = undefined;
390
- const providedCallback = args.options?.onResponse;
391
- const callback = (rawResponse, flatResponse) => {
392
- currentRawResponse = rawResponse;
393
- providedCallback?.(rawResponse, flatResponse);
394
- };
395
- const updatedArgs = {
396
- ...args,
397
- options: {
398
- ...args.options,
399
- onResponse: callback,
400
- },
401
- };
402
- const flatResponse = await directSendOperation(updatedArgs, spec);
403
- return {
404
- flatResponse,
405
- rawResponse: {
406
- statusCode: currentRawResponse.status,
407
- body: currentRawResponse.parsedBody,
408
- headers: currentRawResponse.headers.toJSON(),
409
- },
410
- };
411
- };
412
- const lro = (0, lroImpl_js_1.createLroSpec)({
413
- sendOperationFn,
414
- args: { resourceGroupName, cacheName, options },
415
- spec: flushOperationSpec,
416
- });
417
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
418
- restoreFrom: options?.resumeFrom,
419
- intervalInMs: options?.updateIntervalInMs,
420
- resourceLocationConfig: "azure-async-operation",
421
- });
422
- await poller.poll();
423
- return poller;
424
- }
425
- /**
426
- * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see
427
- * errors returned until the flush is complete.
428
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
429
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
430
- * the [-0-9a-zA-Z_] char class.
431
- * @param options The options parameters.
432
- */
433
- async beginFlushAndWait(resourceGroupName, cacheName, options) {
434
- const poller = await this.beginFlush(resourceGroupName, cacheName, options);
435
- return poller.pollUntilDone();
436
- }
437
- /**
438
- * Tells a Stopped state cache to transition to Active state.
439
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
440
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
441
- * the [-0-9a-zA-Z_] char class.
442
- * @param options The options parameters.
443
- */
444
- async beginStart(resourceGroupName, cacheName, options) {
445
- const directSendOperation = async (args, spec) => {
446
- return this.client.sendOperationRequest(args, spec);
447
- };
448
- const sendOperationFn = async (args, spec) => {
449
- let currentRawResponse = undefined;
450
- const providedCallback = args.options?.onResponse;
451
- const callback = (rawResponse, flatResponse) => {
452
- currentRawResponse = rawResponse;
453
- providedCallback?.(rawResponse, flatResponse);
454
- };
455
- const updatedArgs = {
456
- ...args,
457
- options: {
458
- ...args.options,
459
- onResponse: callback,
460
- },
461
- };
462
- const flatResponse = await directSendOperation(updatedArgs, spec);
463
- return {
464
- flatResponse,
465
- rawResponse: {
466
- statusCode: currentRawResponse.status,
467
- body: currentRawResponse.parsedBody,
468
- headers: currentRawResponse.headers.toJSON(),
469
- },
470
- };
471
- };
472
- const lro = (0, lroImpl_js_1.createLroSpec)({
473
- sendOperationFn,
474
- args: { resourceGroupName, cacheName, options },
475
- spec: startOperationSpec,
476
- });
477
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
478
- restoreFrom: options?.resumeFrom,
479
- intervalInMs: options?.updateIntervalInMs,
480
- resourceLocationConfig: "azure-async-operation",
481
- });
482
- await poller.poll();
483
- return poller;
484
- }
485
- /**
486
- * Tells a Stopped state cache to transition to Active state.
487
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
488
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
489
- * the [-0-9a-zA-Z_] char class.
490
- * @param options The options parameters.
491
- */
492
- async beginStartAndWait(resourceGroupName, cacheName, options) {
493
- const poller = await this.beginStart(resourceGroupName, cacheName, options);
494
- return poller.pollUntilDone();
495
- }
496
- /**
497
- * Tells an Active cache to transition to Stopped state.
498
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
499
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
500
- * the [-0-9a-zA-Z_] char class.
501
- * @param options The options parameters.
502
- */
503
- async beginStop(resourceGroupName, cacheName, options) {
504
- const directSendOperation = async (args, spec) => {
505
- return this.client.sendOperationRequest(args, spec);
506
- };
507
- const sendOperationFn = async (args, spec) => {
508
- let currentRawResponse = undefined;
509
- const providedCallback = args.options?.onResponse;
510
- const callback = (rawResponse, flatResponse) => {
511
- currentRawResponse = rawResponse;
512
- providedCallback?.(rawResponse, flatResponse);
513
- };
514
- const updatedArgs = {
515
- ...args,
516
- options: {
517
- ...args.options,
518
- onResponse: callback,
519
- },
520
- };
521
- const flatResponse = await directSendOperation(updatedArgs, spec);
522
- return {
523
- flatResponse,
524
- rawResponse: {
525
- statusCode: currentRawResponse.status,
526
- body: currentRawResponse.parsedBody,
527
- headers: currentRawResponse.headers.toJSON(),
528
- },
529
- };
530
- };
531
- const lro = (0, lroImpl_js_1.createLroSpec)({
532
- sendOperationFn,
533
- args: { resourceGroupName, cacheName, options },
534
- spec: stopOperationSpec,
535
- });
536
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
537
- restoreFrom: options?.resumeFrom,
538
- intervalInMs: options?.updateIntervalInMs,
539
- resourceLocationConfig: "azure-async-operation",
540
- });
541
- await poller.poll();
542
- return poller;
543
- }
544
- /**
545
- * Tells an Active cache to transition to Stopped state.
546
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
547
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
548
- * the [-0-9a-zA-Z_] char class.
549
- * @param options The options parameters.
550
- */
551
- async beginStopAndWait(resourceGroupName, cacheName, options) {
552
- const poller = await this.beginStop(resourceGroupName, cacheName, options);
553
- return poller.pollUntilDone();
554
- }
555
- /**
556
- * Create a priming job. This operation is only allowed when the cache is healthy.
557
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
558
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
559
- * the [-0-9a-zA-Z_] char class.
560
- * @param options The options parameters.
561
- */
562
- async beginStartPrimingJob(resourceGroupName, cacheName, options) {
563
- const directSendOperation = async (args, spec) => {
564
- return this.client.sendOperationRequest(args, spec);
565
- };
566
- const sendOperationFn = async (args, spec) => {
567
- let currentRawResponse = undefined;
568
- const providedCallback = args.options?.onResponse;
569
- const callback = (rawResponse, flatResponse) => {
570
- currentRawResponse = rawResponse;
571
- providedCallback?.(rawResponse, flatResponse);
572
- };
573
- const updatedArgs = {
574
- ...args,
575
- options: {
576
- ...args.options,
577
- onResponse: callback,
578
- },
579
- };
580
- const flatResponse = await directSendOperation(updatedArgs, spec);
581
- return {
582
- flatResponse,
583
- rawResponse: {
584
- statusCode: currentRawResponse.status,
585
- body: currentRawResponse.parsedBody,
586
- headers: currentRawResponse.headers.toJSON(),
587
- },
588
- };
589
- };
590
- const lro = (0, lroImpl_js_1.createLroSpec)({
591
- sendOperationFn,
592
- args: { resourceGroupName, cacheName, options },
593
- spec: startPrimingJobOperationSpec,
594
- });
595
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
596
- restoreFrom: options?.resumeFrom,
597
- intervalInMs: options?.updateIntervalInMs,
598
- resourceLocationConfig: "azure-async-operation",
599
- });
600
- await poller.poll();
601
- return poller;
602
- }
603
- /**
604
- * Create a priming job. This operation is only allowed when the cache is healthy.
605
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
606
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
607
- * the [-0-9a-zA-Z_] char class.
608
- * @param options The options parameters.
609
- */
610
- async beginStartPrimingJobAndWait(resourceGroupName, cacheName, options) {
611
- const poller = await this.beginStartPrimingJob(resourceGroupName, cacheName, options);
612
- return poller.pollUntilDone();
613
- }
614
- /**
615
- * Schedule a priming job for deletion.
616
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
617
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
618
- * the [-0-9a-zA-Z_] char class.
619
- * @param options The options parameters.
620
- */
621
- async beginStopPrimingJob(resourceGroupName, cacheName, options) {
622
- const directSendOperation = async (args, spec) => {
623
- return this.client.sendOperationRequest(args, spec);
624
- };
625
- const sendOperationFn = async (args, spec) => {
626
- let currentRawResponse = undefined;
627
- const providedCallback = args.options?.onResponse;
628
- const callback = (rawResponse, flatResponse) => {
629
- currentRawResponse = rawResponse;
630
- providedCallback?.(rawResponse, flatResponse);
631
- };
632
- const updatedArgs = {
633
- ...args,
634
- options: {
635
- ...args.options,
636
- onResponse: callback,
637
- },
638
- };
639
- const flatResponse = await directSendOperation(updatedArgs, spec);
640
- return {
641
- flatResponse,
642
- rawResponse: {
643
- statusCode: currentRawResponse.status,
644
- body: currentRawResponse.parsedBody,
645
- headers: currentRawResponse.headers.toJSON(),
646
- },
647
- };
648
- };
649
- const lro = (0, lroImpl_js_1.createLroSpec)({
650
- sendOperationFn,
651
- args: { resourceGroupName, cacheName, options },
652
- spec: stopPrimingJobOperationSpec,
653
- });
654
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
655
- restoreFrom: options?.resumeFrom,
656
- intervalInMs: options?.updateIntervalInMs,
657
- resourceLocationConfig: "azure-async-operation",
658
- });
659
- await poller.poll();
660
- return poller;
661
- }
662
- /**
663
- * Schedule a priming job for deletion.
664
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
665
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
666
- * the [-0-9a-zA-Z_] char class.
667
- * @param options The options parameters.
668
- */
669
- async beginStopPrimingJobAndWait(resourceGroupName, cacheName, options) {
670
- const poller = await this.beginStopPrimingJob(resourceGroupName, cacheName, options);
671
- return poller.pollUntilDone();
672
- }
673
- /**
674
- * Schedule a priming job to be paused.
675
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
676
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
677
- * the [-0-9a-zA-Z_] char class.
678
- * @param options The options parameters.
679
- */
680
- async beginPausePrimingJob(resourceGroupName, cacheName, options) {
681
- const directSendOperation = async (args, spec) => {
682
- return this.client.sendOperationRequest(args, spec);
683
- };
684
- const sendOperationFn = async (args, spec) => {
685
- let currentRawResponse = undefined;
686
- const providedCallback = args.options?.onResponse;
687
- const callback = (rawResponse, flatResponse) => {
688
- currentRawResponse = rawResponse;
689
- providedCallback?.(rawResponse, flatResponse);
690
- };
691
- const updatedArgs = {
692
- ...args,
693
- options: {
694
- ...args.options,
695
- onResponse: callback,
696
- },
697
- };
698
- const flatResponse = await directSendOperation(updatedArgs, spec);
699
- return {
700
- flatResponse,
701
- rawResponse: {
702
- statusCode: currentRawResponse.status,
703
- body: currentRawResponse.parsedBody,
704
- headers: currentRawResponse.headers.toJSON(),
705
- },
706
- };
707
- };
708
- const lro = (0, lroImpl_js_1.createLroSpec)({
709
- sendOperationFn,
710
- args: { resourceGroupName, cacheName, options },
711
- spec: pausePrimingJobOperationSpec,
712
- });
713
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
714
- restoreFrom: options?.resumeFrom,
715
- intervalInMs: options?.updateIntervalInMs,
716
- resourceLocationConfig: "azure-async-operation",
717
- });
718
- await poller.poll();
719
- return poller;
720
- }
721
- /**
722
- * Schedule a priming job to be paused.
723
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
724
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
725
- * the [-0-9a-zA-Z_] char class.
726
- * @param options The options parameters.
727
- */
728
- async beginPausePrimingJobAndWait(resourceGroupName, cacheName, options) {
729
- const poller = await this.beginPausePrimingJob(resourceGroupName, cacheName, options);
730
- return poller.pollUntilDone();
731
- }
732
- /**
733
- * Resumes a paused priming job.
734
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
735
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
736
- * the [-0-9a-zA-Z_] char class.
737
- * @param options The options parameters.
738
- */
739
- async beginResumePrimingJob(resourceGroupName, cacheName, options) {
740
- const directSendOperation = async (args, spec) => {
741
- return this.client.sendOperationRequest(args, spec);
742
- };
743
- const sendOperationFn = async (args, spec) => {
744
- let currentRawResponse = undefined;
745
- const providedCallback = args.options?.onResponse;
746
- const callback = (rawResponse, flatResponse) => {
747
- currentRawResponse = rawResponse;
748
- providedCallback?.(rawResponse, flatResponse);
749
- };
750
- const updatedArgs = {
751
- ...args,
752
- options: {
753
- ...args.options,
754
- onResponse: callback,
755
- },
756
- };
757
- const flatResponse = await directSendOperation(updatedArgs, spec);
758
- return {
759
- flatResponse,
760
- rawResponse: {
761
- statusCode: currentRawResponse.status,
762
- body: currentRawResponse.parsedBody,
763
- headers: currentRawResponse.headers.toJSON(),
764
- },
765
- };
766
- };
767
- const lro = (0, lroImpl_js_1.createLroSpec)({
768
- sendOperationFn,
769
- args: { resourceGroupName, cacheName, options },
770
- spec: resumePrimingJobOperationSpec,
771
- });
772
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
773
- restoreFrom: options?.resumeFrom,
774
- intervalInMs: options?.updateIntervalInMs,
775
- resourceLocationConfig: "azure-async-operation",
776
- });
777
- await poller.poll();
778
- return poller;
779
- }
780
- /**
781
- * Resumes a paused priming job.
782
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
783
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
784
- * the [-0-9a-zA-Z_] char class.
785
- * @param options The options parameters.
786
- */
787
- async beginResumePrimingJobAndWait(resourceGroupName, cacheName, options) {
788
- const poller = await this.beginResumePrimingJob(resourceGroupName, cacheName, options);
789
- return poller.pollUntilDone();
790
- }
791
- /**
792
- * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
793
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
794
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
795
- * the [-0-9a-zA-Z_] char class.
796
- * @param options The options parameters.
797
- */
798
- async beginUpgradeFirmware(resourceGroupName, cacheName, options) {
799
- const directSendOperation = async (args, spec) => {
800
- return this.client.sendOperationRequest(args, spec);
801
- };
802
- const sendOperationFn = async (args, spec) => {
803
- let currentRawResponse = undefined;
804
- const providedCallback = args.options?.onResponse;
805
- const callback = (rawResponse, flatResponse) => {
806
- currentRawResponse = rawResponse;
807
- providedCallback?.(rawResponse, flatResponse);
808
- };
809
- const updatedArgs = {
810
- ...args,
811
- options: {
812
- ...args.options,
813
- onResponse: callback,
814
- },
815
- };
816
- const flatResponse = await directSendOperation(updatedArgs, spec);
817
- return {
818
- flatResponse,
819
- rawResponse: {
820
- statusCode: currentRawResponse.status,
821
- body: currentRawResponse.parsedBody,
822
- headers: currentRawResponse.headers.toJSON(),
823
- },
824
- };
825
- };
826
- const lro = (0, lroImpl_js_1.createLroSpec)({
827
- sendOperationFn,
828
- args: { resourceGroupName, cacheName, options },
829
- spec: upgradeFirmwareOperationSpec,
830
- });
831
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
832
- restoreFrom: options?.resumeFrom,
833
- intervalInMs: options?.updateIntervalInMs,
834
- resourceLocationConfig: "azure-async-operation",
835
- });
836
- await poller.poll();
837
- return poller;
838
- }
839
- /**
840
- * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
841
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
842
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
843
- * the [-0-9a-zA-Z_] char class.
844
- * @param options The options parameters.
845
- */
846
- async beginUpgradeFirmwareAndWait(resourceGroupName, cacheName, options) {
847
- const poller = await this.beginUpgradeFirmware(resourceGroupName, cacheName, options);
848
- return poller.pollUntilDone();
849
- }
850
- /**
851
- * Update cache space allocation.
852
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
853
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
854
- * the [-0-9a-zA-Z_] char class.
855
- * @param options The options parameters.
856
- */
857
- async beginSpaceAllocation(resourceGroupName, cacheName, options) {
858
- const directSendOperation = async (args, spec) => {
859
- return this.client.sendOperationRequest(args, spec);
860
- };
861
- const sendOperationFn = async (args, spec) => {
862
- let currentRawResponse = undefined;
863
- const providedCallback = args.options?.onResponse;
864
- const callback = (rawResponse, flatResponse) => {
865
- currentRawResponse = rawResponse;
866
- providedCallback?.(rawResponse, flatResponse);
867
- };
868
- const updatedArgs = {
869
- ...args,
870
- options: {
871
- ...args.options,
872
- onResponse: callback,
873
- },
874
- };
875
- const flatResponse = await directSendOperation(updatedArgs, spec);
876
- return {
877
- flatResponse,
878
- rawResponse: {
879
- statusCode: currentRawResponse.status,
880
- body: currentRawResponse.parsedBody,
881
- headers: currentRawResponse.headers.toJSON(),
882
- },
883
- };
884
- };
885
- const lro = (0, lroImpl_js_1.createLroSpec)({
886
- sendOperationFn,
887
- args: { resourceGroupName, cacheName, options },
888
- spec: spaceAllocationOperationSpec,
889
- });
890
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
891
- restoreFrom: options?.resumeFrom,
892
- intervalInMs: options?.updateIntervalInMs,
893
- resourceLocationConfig: "azure-async-operation",
894
- });
895
- await poller.poll();
896
- return poller;
897
- }
898
- /**
899
- * Update cache space allocation.
900
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
901
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
902
- * the [-0-9a-zA-Z_] char class.
903
- * @param options The options parameters.
904
- */
905
- async beginSpaceAllocationAndWait(resourceGroupName, cacheName, options) {
906
- const poller = await this.beginSpaceAllocation(resourceGroupName, cacheName, options);
907
- return poller.pollUntilDone();
908
- }
909
- /**
910
- * ListNext
911
- * @param nextLink The nextLink from the previous successful call to the List method.
912
- * @param options The options parameters.
913
- */
914
- _listNext(nextLink, options) {
915
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
916
- }
917
- /**
918
- * ListByResourceGroupNext
919
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
920
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
921
- * @param options The options parameters.
922
- */
923
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
924
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
925
- }
252
+ };
253
+ const flatResponse = await directSendOperation(updatedArgs, spec);
254
+ return {
255
+ flatResponse,
256
+ rawResponse: {
257
+ statusCode: currentRawResponse.status,
258
+ body: currentRawResponse.parsedBody,
259
+ headers: currentRawResponse.headers.toJSON()
260
+ }
261
+ };
262
+ };
263
+ const lro = (0, import_lroImpl.createLroSpec)({
264
+ sendOperationFn,
265
+ args: { resourceGroupName, cacheName, cache, options },
266
+ spec: createOrUpdateOperationSpec
267
+ });
268
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
269
+ restoreFrom: options?.resumeFrom,
270
+ intervalInMs: options?.updateIntervalInMs
271
+ });
272
+ await poller.poll();
273
+ return poller;
274
+ }
275
+ /**
276
+ * Create or update a cache.
277
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
278
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
279
+ * the [-0-9a-zA-Z_] char class.
280
+ * @param cache Object containing the user-selectable properties of the new cache. If read-only
281
+ * properties are included, they must match the existing values of those properties.
282
+ * @param options The options parameters.
283
+ */
284
+ async beginCreateOrUpdateAndWait(resourceGroupName, cacheName, cache, options) {
285
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, cacheName, cache, options);
286
+ return poller.pollUntilDone();
287
+ }
288
+ /**
289
+ * Update a cache instance.
290
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
291
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
292
+ * the [-0-9a-zA-Z_] char class.
293
+ * @param options The options parameters.
294
+ */
295
+ async beginUpdate(resourceGroupName, cacheName, options) {
296
+ const directSendOperation = async (args, spec) => {
297
+ return this.client.sendOperationRequest(args, spec);
298
+ };
299
+ const sendOperationFn = async (args, spec) => {
300
+ let currentRawResponse = void 0;
301
+ const providedCallback = args.options?.onResponse;
302
+ const callback = (rawResponse, flatResponse2) => {
303
+ currentRawResponse = rawResponse;
304
+ providedCallback?.(rawResponse, flatResponse2);
305
+ };
306
+ const updatedArgs = {
307
+ ...args,
308
+ options: {
309
+ ...args.options,
310
+ onResponse: callback
311
+ }
312
+ };
313
+ const flatResponse = await directSendOperation(updatedArgs, spec);
314
+ return {
315
+ flatResponse,
316
+ rawResponse: {
317
+ statusCode: currentRawResponse.status,
318
+ body: currentRawResponse.parsedBody,
319
+ headers: currentRawResponse.headers.toJSON()
320
+ }
321
+ };
322
+ };
323
+ const lro = (0, import_lroImpl.createLroSpec)({
324
+ sendOperationFn,
325
+ args: { resourceGroupName, cacheName, options },
326
+ spec: updateOperationSpec
327
+ });
328
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
329
+ restoreFrom: options?.resumeFrom,
330
+ intervalInMs: options?.updateIntervalInMs,
331
+ resourceLocationConfig: "azure-async-operation"
332
+ });
333
+ await poller.poll();
334
+ return poller;
335
+ }
336
+ /**
337
+ * Update a cache instance.
338
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
339
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
340
+ * the [-0-9a-zA-Z_] char class.
341
+ * @param options The options parameters.
342
+ */
343
+ async beginUpdateAndWait(resourceGroupName, cacheName, options) {
344
+ const poller = await this.beginUpdate(resourceGroupName, cacheName, options);
345
+ return poller.pollUntilDone();
346
+ }
347
+ /**
348
+ * Tells a cache to write generate debug info for support to process.
349
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
350
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
351
+ * the [-0-9a-zA-Z_] char class.
352
+ * @param options The options parameters.
353
+ */
354
+ async beginDebugInfo(resourceGroupName, cacheName, options) {
355
+ const directSendOperation = async (args, spec) => {
356
+ return this.client.sendOperationRequest(args, spec);
357
+ };
358
+ const sendOperationFn = async (args, spec) => {
359
+ let currentRawResponse = void 0;
360
+ const providedCallback = args.options?.onResponse;
361
+ const callback = (rawResponse, flatResponse2) => {
362
+ currentRawResponse = rawResponse;
363
+ providedCallback?.(rawResponse, flatResponse2);
364
+ };
365
+ const updatedArgs = {
366
+ ...args,
367
+ options: {
368
+ ...args.options,
369
+ onResponse: callback
370
+ }
371
+ };
372
+ const flatResponse = await directSendOperation(updatedArgs, spec);
373
+ return {
374
+ flatResponse,
375
+ rawResponse: {
376
+ statusCode: currentRawResponse.status,
377
+ body: currentRawResponse.parsedBody,
378
+ headers: currentRawResponse.headers.toJSON()
379
+ }
380
+ };
381
+ };
382
+ const lro = (0, import_lroImpl.createLroSpec)({
383
+ sendOperationFn,
384
+ args: { resourceGroupName, cacheName, options },
385
+ spec: debugInfoOperationSpec
386
+ });
387
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
388
+ restoreFrom: options?.resumeFrom,
389
+ intervalInMs: options?.updateIntervalInMs,
390
+ resourceLocationConfig: "azure-async-operation"
391
+ });
392
+ await poller.poll();
393
+ return poller;
394
+ }
395
+ /**
396
+ * Tells a cache to write generate debug info for support to process.
397
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
398
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
399
+ * the [-0-9a-zA-Z_] char class.
400
+ * @param options The options parameters.
401
+ */
402
+ async beginDebugInfoAndWait(resourceGroupName, cacheName, options) {
403
+ const poller = await this.beginDebugInfo(resourceGroupName, cacheName, options);
404
+ return poller.pollUntilDone();
405
+ }
406
+ /**
407
+ * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see
408
+ * errors returned until the flush is complete.
409
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
410
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
411
+ * the [-0-9a-zA-Z_] char class.
412
+ * @param options The options parameters.
413
+ */
414
+ async beginFlush(resourceGroupName, cacheName, options) {
415
+ const directSendOperation = async (args, spec) => {
416
+ return this.client.sendOperationRequest(args, spec);
417
+ };
418
+ const sendOperationFn = async (args, spec) => {
419
+ let currentRawResponse = void 0;
420
+ const providedCallback = args.options?.onResponse;
421
+ const callback = (rawResponse, flatResponse2) => {
422
+ currentRawResponse = rawResponse;
423
+ providedCallback?.(rawResponse, flatResponse2);
424
+ };
425
+ const updatedArgs = {
426
+ ...args,
427
+ options: {
428
+ ...args.options,
429
+ onResponse: callback
430
+ }
431
+ };
432
+ const flatResponse = await directSendOperation(updatedArgs, spec);
433
+ return {
434
+ flatResponse,
435
+ rawResponse: {
436
+ statusCode: currentRawResponse.status,
437
+ body: currentRawResponse.parsedBody,
438
+ headers: currentRawResponse.headers.toJSON()
439
+ }
440
+ };
441
+ };
442
+ const lro = (0, import_lroImpl.createLroSpec)({
443
+ sendOperationFn,
444
+ args: { resourceGroupName, cacheName, options },
445
+ spec: flushOperationSpec
446
+ });
447
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
448
+ restoreFrom: options?.resumeFrom,
449
+ intervalInMs: options?.updateIntervalInMs,
450
+ resourceLocationConfig: "azure-async-operation"
451
+ });
452
+ await poller.poll();
453
+ return poller;
454
+ }
455
+ /**
456
+ * Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see
457
+ * errors returned until the flush is complete.
458
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
459
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
460
+ * the [-0-9a-zA-Z_] char class.
461
+ * @param options The options parameters.
462
+ */
463
+ async beginFlushAndWait(resourceGroupName, cacheName, options) {
464
+ const poller = await this.beginFlush(resourceGroupName, cacheName, options);
465
+ return poller.pollUntilDone();
466
+ }
467
+ /**
468
+ * Tells a Stopped state cache to transition to Active state.
469
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
470
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
471
+ * the [-0-9a-zA-Z_] char class.
472
+ * @param options The options parameters.
473
+ */
474
+ async beginStart(resourceGroupName, cacheName, options) {
475
+ const directSendOperation = async (args, spec) => {
476
+ return this.client.sendOperationRequest(args, spec);
477
+ };
478
+ const sendOperationFn = async (args, spec) => {
479
+ let currentRawResponse = void 0;
480
+ const providedCallback = args.options?.onResponse;
481
+ const callback = (rawResponse, flatResponse2) => {
482
+ currentRawResponse = rawResponse;
483
+ providedCallback?.(rawResponse, flatResponse2);
484
+ };
485
+ const updatedArgs = {
486
+ ...args,
487
+ options: {
488
+ ...args.options,
489
+ onResponse: callback
490
+ }
491
+ };
492
+ const flatResponse = await directSendOperation(updatedArgs, spec);
493
+ return {
494
+ flatResponse,
495
+ rawResponse: {
496
+ statusCode: currentRawResponse.status,
497
+ body: currentRawResponse.parsedBody,
498
+ headers: currentRawResponse.headers.toJSON()
499
+ }
500
+ };
501
+ };
502
+ const lro = (0, import_lroImpl.createLroSpec)({
503
+ sendOperationFn,
504
+ args: { resourceGroupName, cacheName, options },
505
+ spec: startOperationSpec
506
+ });
507
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
508
+ restoreFrom: options?.resumeFrom,
509
+ intervalInMs: options?.updateIntervalInMs,
510
+ resourceLocationConfig: "azure-async-operation"
511
+ });
512
+ await poller.poll();
513
+ return poller;
514
+ }
515
+ /**
516
+ * Tells a Stopped state cache to transition to Active state.
517
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
518
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
519
+ * the [-0-9a-zA-Z_] char class.
520
+ * @param options The options parameters.
521
+ */
522
+ async beginStartAndWait(resourceGroupName, cacheName, options) {
523
+ const poller = await this.beginStart(resourceGroupName, cacheName, options);
524
+ return poller.pollUntilDone();
525
+ }
526
+ /**
527
+ * Tells an Active cache to transition to Stopped state.
528
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
529
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
530
+ * the [-0-9a-zA-Z_] char class.
531
+ * @param options The options parameters.
532
+ */
533
+ async beginStop(resourceGroupName, cacheName, options) {
534
+ const directSendOperation = async (args, spec) => {
535
+ return this.client.sendOperationRequest(args, spec);
536
+ };
537
+ const sendOperationFn = async (args, spec) => {
538
+ let currentRawResponse = void 0;
539
+ const providedCallback = args.options?.onResponse;
540
+ const callback = (rawResponse, flatResponse2) => {
541
+ currentRawResponse = rawResponse;
542
+ providedCallback?.(rawResponse, flatResponse2);
543
+ };
544
+ const updatedArgs = {
545
+ ...args,
546
+ options: {
547
+ ...args.options,
548
+ onResponse: callback
549
+ }
550
+ };
551
+ const flatResponse = await directSendOperation(updatedArgs, spec);
552
+ return {
553
+ flatResponse,
554
+ rawResponse: {
555
+ statusCode: currentRawResponse.status,
556
+ body: currentRawResponse.parsedBody,
557
+ headers: currentRawResponse.headers.toJSON()
558
+ }
559
+ };
560
+ };
561
+ const lro = (0, import_lroImpl.createLroSpec)({
562
+ sendOperationFn,
563
+ args: { resourceGroupName, cacheName, options },
564
+ spec: stopOperationSpec
565
+ });
566
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
567
+ restoreFrom: options?.resumeFrom,
568
+ intervalInMs: options?.updateIntervalInMs,
569
+ resourceLocationConfig: "azure-async-operation"
570
+ });
571
+ await poller.poll();
572
+ return poller;
573
+ }
574
+ /**
575
+ * Tells an Active cache to transition to Stopped state.
576
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
577
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
578
+ * the [-0-9a-zA-Z_] char class.
579
+ * @param options The options parameters.
580
+ */
581
+ async beginStopAndWait(resourceGroupName, cacheName, options) {
582
+ const poller = await this.beginStop(resourceGroupName, cacheName, options);
583
+ return poller.pollUntilDone();
584
+ }
585
+ /**
586
+ * Create a priming job. This operation is only allowed when the cache is healthy.
587
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
588
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
589
+ * the [-0-9a-zA-Z_] char class.
590
+ * @param options The options parameters.
591
+ */
592
+ async beginStartPrimingJob(resourceGroupName, cacheName, options) {
593
+ const directSendOperation = async (args, spec) => {
594
+ return this.client.sendOperationRequest(args, spec);
595
+ };
596
+ const sendOperationFn = async (args, spec) => {
597
+ let currentRawResponse = void 0;
598
+ const providedCallback = args.options?.onResponse;
599
+ const callback = (rawResponse, flatResponse2) => {
600
+ currentRawResponse = rawResponse;
601
+ providedCallback?.(rawResponse, flatResponse2);
602
+ };
603
+ const updatedArgs = {
604
+ ...args,
605
+ options: {
606
+ ...args.options,
607
+ onResponse: callback
608
+ }
609
+ };
610
+ const flatResponse = await directSendOperation(updatedArgs, spec);
611
+ return {
612
+ flatResponse,
613
+ rawResponse: {
614
+ statusCode: currentRawResponse.status,
615
+ body: currentRawResponse.parsedBody,
616
+ headers: currentRawResponse.headers.toJSON()
617
+ }
618
+ };
619
+ };
620
+ const lro = (0, import_lroImpl.createLroSpec)({
621
+ sendOperationFn,
622
+ args: { resourceGroupName, cacheName, options },
623
+ spec: startPrimingJobOperationSpec
624
+ });
625
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
626
+ restoreFrom: options?.resumeFrom,
627
+ intervalInMs: options?.updateIntervalInMs,
628
+ resourceLocationConfig: "azure-async-operation"
629
+ });
630
+ await poller.poll();
631
+ return poller;
632
+ }
633
+ /**
634
+ * Create a priming job. This operation is only allowed when the cache is healthy.
635
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
636
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
637
+ * the [-0-9a-zA-Z_] char class.
638
+ * @param options The options parameters.
639
+ */
640
+ async beginStartPrimingJobAndWait(resourceGroupName, cacheName, options) {
641
+ const poller = await this.beginStartPrimingJob(resourceGroupName, cacheName, options);
642
+ return poller.pollUntilDone();
643
+ }
644
+ /**
645
+ * Schedule a priming job for deletion.
646
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
647
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
648
+ * the [-0-9a-zA-Z_] char class.
649
+ * @param options The options parameters.
650
+ */
651
+ async beginStopPrimingJob(resourceGroupName, cacheName, options) {
652
+ const directSendOperation = async (args, spec) => {
653
+ return this.client.sendOperationRequest(args, spec);
654
+ };
655
+ const sendOperationFn = async (args, spec) => {
656
+ let currentRawResponse = void 0;
657
+ const providedCallback = args.options?.onResponse;
658
+ const callback = (rawResponse, flatResponse2) => {
659
+ currentRawResponse = rawResponse;
660
+ providedCallback?.(rawResponse, flatResponse2);
661
+ };
662
+ const updatedArgs = {
663
+ ...args,
664
+ options: {
665
+ ...args.options,
666
+ onResponse: callback
667
+ }
668
+ };
669
+ const flatResponse = await directSendOperation(updatedArgs, spec);
670
+ return {
671
+ flatResponse,
672
+ rawResponse: {
673
+ statusCode: currentRawResponse.status,
674
+ body: currentRawResponse.parsedBody,
675
+ headers: currentRawResponse.headers.toJSON()
676
+ }
677
+ };
678
+ };
679
+ const lro = (0, import_lroImpl.createLroSpec)({
680
+ sendOperationFn,
681
+ args: { resourceGroupName, cacheName, options },
682
+ spec: stopPrimingJobOperationSpec
683
+ });
684
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
685
+ restoreFrom: options?.resumeFrom,
686
+ intervalInMs: options?.updateIntervalInMs,
687
+ resourceLocationConfig: "azure-async-operation"
688
+ });
689
+ await poller.poll();
690
+ return poller;
691
+ }
692
+ /**
693
+ * Schedule a priming job for deletion.
694
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
695
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
696
+ * the [-0-9a-zA-Z_] char class.
697
+ * @param options The options parameters.
698
+ */
699
+ async beginStopPrimingJobAndWait(resourceGroupName, cacheName, options) {
700
+ const poller = await this.beginStopPrimingJob(resourceGroupName, cacheName, options);
701
+ return poller.pollUntilDone();
702
+ }
703
+ /**
704
+ * Schedule a priming job to be paused.
705
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
706
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
707
+ * the [-0-9a-zA-Z_] char class.
708
+ * @param options The options parameters.
709
+ */
710
+ async beginPausePrimingJob(resourceGroupName, cacheName, options) {
711
+ const directSendOperation = async (args, spec) => {
712
+ return this.client.sendOperationRequest(args, spec);
713
+ };
714
+ const sendOperationFn = async (args, spec) => {
715
+ let currentRawResponse = void 0;
716
+ const providedCallback = args.options?.onResponse;
717
+ const callback = (rawResponse, flatResponse2) => {
718
+ currentRawResponse = rawResponse;
719
+ providedCallback?.(rawResponse, flatResponse2);
720
+ };
721
+ const updatedArgs = {
722
+ ...args,
723
+ options: {
724
+ ...args.options,
725
+ onResponse: callback
726
+ }
727
+ };
728
+ const flatResponse = await directSendOperation(updatedArgs, spec);
729
+ return {
730
+ flatResponse,
731
+ rawResponse: {
732
+ statusCode: currentRawResponse.status,
733
+ body: currentRawResponse.parsedBody,
734
+ headers: currentRawResponse.headers.toJSON()
735
+ }
736
+ };
737
+ };
738
+ const lro = (0, import_lroImpl.createLroSpec)({
739
+ sendOperationFn,
740
+ args: { resourceGroupName, cacheName, options },
741
+ spec: pausePrimingJobOperationSpec
742
+ });
743
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
744
+ restoreFrom: options?.resumeFrom,
745
+ intervalInMs: options?.updateIntervalInMs,
746
+ resourceLocationConfig: "azure-async-operation"
747
+ });
748
+ await poller.poll();
749
+ return poller;
750
+ }
751
+ /**
752
+ * Schedule a priming job to be paused.
753
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
754
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
755
+ * the [-0-9a-zA-Z_] char class.
756
+ * @param options The options parameters.
757
+ */
758
+ async beginPausePrimingJobAndWait(resourceGroupName, cacheName, options) {
759
+ const poller = await this.beginPausePrimingJob(resourceGroupName, cacheName, options);
760
+ return poller.pollUntilDone();
761
+ }
762
+ /**
763
+ * Resumes a paused priming job.
764
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
765
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
766
+ * the [-0-9a-zA-Z_] char class.
767
+ * @param options The options parameters.
768
+ */
769
+ async beginResumePrimingJob(resourceGroupName, cacheName, options) {
770
+ const directSendOperation = async (args, spec) => {
771
+ return this.client.sendOperationRequest(args, spec);
772
+ };
773
+ const sendOperationFn = async (args, spec) => {
774
+ let currentRawResponse = void 0;
775
+ const providedCallback = args.options?.onResponse;
776
+ const callback = (rawResponse, flatResponse2) => {
777
+ currentRawResponse = rawResponse;
778
+ providedCallback?.(rawResponse, flatResponse2);
779
+ };
780
+ const updatedArgs = {
781
+ ...args,
782
+ options: {
783
+ ...args.options,
784
+ onResponse: callback
785
+ }
786
+ };
787
+ const flatResponse = await directSendOperation(updatedArgs, spec);
788
+ return {
789
+ flatResponse,
790
+ rawResponse: {
791
+ statusCode: currentRawResponse.status,
792
+ body: currentRawResponse.parsedBody,
793
+ headers: currentRawResponse.headers.toJSON()
794
+ }
795
+ };
796
+ };
797
+ const lro = (0, import_lroImpl.createLroSpec)({
798
+ sendOperationFn,
799
+ args: { resourceGroupName, cacheName, options },
800
+ spec: resumePrimingJobOperationSpec
801
+ });
802
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
803
+ restoreFrom: options?.resumeFrom,
804
+ intervalInMs: options?.updateIntervalInMs,
805
+ resourceLocationConfig: "azure-async-operation"
806
+ });
807
+ await poller.poll();
808
+ return poller;
809
+ }
810
+ /**
811
+ * Resumes a paused priming job.
812
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
813
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
814
+ * the [-0-9a-zA-Z_] char class.
815
+ * @param options The options parameters.
816
+ */
817
+ async beginResumePrimingJobAndWait(resourceGroupName, cacheName, options) {
818
+ const poller = await this.beginResumePrimingJob(resourceGroupName, cacheName, options);
819
+ return poller.pollUntilDone();
820
+ }
821
+ /**
822
+ * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
823
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
824
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
825
+ * the [-0-9a-zA-Z_] char class.
826
+ * @param options The options parameters.
827
+ */
828
+ async beginUpgradeFirmware(resourceGroupName, cacheName, options) {
829
+ const directSendOperation = async (args, spec) => {
830
+ return this.client.sendOperationRequest(args, spec);
831
+ };
832
+ const sendOperationFn = async (args, spec) => {
833
+ let currentRawResponse = void 0;
834
+ const providedCallback = args.options?.onResponse;
835
+ const callback = (rawResponse, flatResponse2) => {
836
+ currentRawResponse = rawResponse;
837
+ providedCallback?.(rawResponse, flatResponse2);
838
+ };
839
+ const updatedArgs = {
840
+ ...args,
841
+ options: {
842
+ ...args.options,
843
+ onResponse: callback
844
+ }
845
+ };
846
+ const flatResponse = await directSendOperation(updatedArgs, spec);
847
+ return {
848
+ flatResponse,
849
+ rawResponse: {
850
+ statusCode: currentRawResponse.status,
851
+ body: currentRawResponse.parsedBody,
852
+ headers: currentRawResponse.headers.toJSON()
853
+ }
854
+ };
855
+ };
856
+ const lro = (0, import_lroImpl.createLroSpec)({
857
+ sendOperationFn,
858
+ args: { resourceGroupName, cacheName, options },
859
+ spec: upgradeFirmwareOperationSpec
860
+ });
861
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
862
+ restoreFrom: options?.resumeFrom,
863
+ intervalInMs: options?.updateIntervalInMs,
864
+ resourceLocationConfig: "azure-async-operation"
865
+ });
866
+ await poller.poll();
867
+ return poller;
868
+ }
869
+ /**
870
+ * Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
871
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
872
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
873
+ * the [-0-9a-zA-Z_] char class.
874
+ * @param options The options parameters.
875
+ */
876
+ async beginUpgradeFirmwareAndWait(resourceGroupName, cacheName, options) {
877
+ const poller = await this.beginUpgradeFirmware(resourceGroupName, cacheName, options);
878
+ return poller.pollUntilDone();
879
+ }
880
+ /**
881
+ * Update cache space allocation.
882
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
883
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
884
+ * the [-0-9a-zA-Z_] char class.
885
+ * @param options The options parameters.
886
+ */
887
+ async beginSpaceAllocation(resourceGroupName, cacheName, options) {
888
+ const directSendOperation = async (args, spec) => {
889
+ return this.client.sendOperationRequest(args, spec);
890
+ };
891
+ const sendOperationFn = async (args, spec) => {
892
+ let currentRawResponse = void 0;
893
+ const providedCallback = args.options?.onResponse;
894
+ const callback = (rawResponse, flatResponse2) => {
895
+ currentRawResponse = rawResponse;
896
+ providedCallback?.(rawResponse, flatResponse2);
897
+ };
898
+ const updatedArgs = {
899
+ ...args,
900
+ options: {
901
+ ...args.options,
902
+ onResponse: callback
903
+ }
904
+ };
905
+ const flatResponse = await directSendOperation(updatedArgs, spec);
906
+ return {
907
+ flatResponse,
908
+ rawResponse: {
909
+ statusCode: currentRawResponse.status,
910
+ body: currentRawResponse.parsedBody,
911
+ headers: currentRawResponse.headers.toJSON()
912
+ }
913
+ };
914
+ };
915
+ const lro = (0, import_lroImpl.createLroSpec)({
916
+ sendOperationFn,
917
+ args: { resourceGroupName, cacheName, options },
918
+ spec: spaceAllocationOperationSpec
919
+ });
920
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
921
+ restoreFrom: options?.resumeFrom,
922
+ intervalInMs: options?.updateIntervalInMs,
923
+ resourceLocationConfig: "azure-async-operation"
924
+ });
925
+ await poller.poll();
926
+ return poller;
927
+ }
928
+ /**
929
+ * Update cache space allocation.
930
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
931
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
932
+ * the [-0-9a-zA-Z_] char class.
933
+ * @param options The options parameters.
934
+ */
935
+ async beginSpaceAllocationAndWait(resourceGroupName, cacheName, options) {
936
+ const poller = await this.beginSpaceAllocation(resourceGroupName, cacheName, options);
937
+ return poller.pollUntilDone();
938
+ }
939
+ /**
940
+ * ListNext
941
+ * @param nextLink The nextLink from the previous successful call to the List method.
942
+ * @param options The options parameters.
943
+ */
944
+ _listNext(nextLink, options) {
945
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
946
+ }
947
+ /**
948
+ * ListByResourceGroupNext
949
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
950
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
951
+ * @param options The options parameters.
952
+ */
953
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
954
+ return this.client.sendOperationRequest(
955
+ { resourceGroupName, nextLink, options },
956
+ listByResourceGroupNextOperationSpec
957
+ );
958
+ }
926
959
  }
927
- exports.CachesImpl = CachesImpl;
928
- // Operation Specifications
929
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
960
+ const serializer = coreClient.createSerializer(
961
+ Mappers,
962
+ /* isXml */
963
+ false
964
+ );
930
965
  const listOperationSpec = {
931
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches",
932
- httpMethod: "GET",
933
- responses: {
934
- 200: {
935
- bodyMapper: Mappers.CachesListResult,
936
- },
937
- default: {
938
- bodyMapper: Mappers.CloudError,
939
- },
966
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches",
967
+ httpMethod: "GET",
968
+ responses: {
969
+ 200: {
970
+ bodyMapper: Mappers.CachesListResult
940
971
  },
941
- queryParameters: [Parameters.apiVersion],
942
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
943
- headerParameters: [Parameters.accept],
944
- serializer,
972
+ default: {
973
+ bodyMapper: Mappers.CloudError
974
+ }
975
+ },
976
+ queryParameters: [Parameters.apiVersion],
977
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
978
+ headerParameters: [Parameters.accept],
979
+ serializer
945
980
  };
946
981
  const listByResourceGroupOperationSpec = {
947
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches",
948
- httpMethod: "GET",
949
- responses: {
950
- 200: {
951
- bodyMapper: Mappers.CachesListResult,
952
- },
953
- default: {
954
- bodyMapper: Mappers.CloudError,
955
- },
982
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches",
983
+ httpMethod: "GET",
984
+ responses: {
985
+ 200: {
986
+ bodyMapper: Mappers.CachesListResult
956
987
  },
957
- queryParameters: [Parameters.apiVersion],
958
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
959
- headerParameters: [Parameters.accept],
960
- serializer,
988
+ default: {
989
+ bodyMapper: Mappers.CloudError
990
+ }
991
+ },
992
+ queryParameters: [Parameters.apiVersion],
993
+ urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
994
+ headerParameters: [Parameters.accept],
995
+ serializer
961
996
  };
962
997
  const deleteOperationSpec = {
963
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
964
- httpMethod: "DELETE",
965
- responses: {
966
- 200: {},
967
- 201: {},
968
- 202: {},
969
- 204: {},
970
- default: {
971
- bodyMapper: Mappers.CloudError,
972
- },
973
- },
974
- queryParameters: [Parameters.apiVersion],
975
- urlParameters: [
976
- Parameters.$host,
977
- Parameters.subscriptionId,
978
- Parameters.resourceGroupName,
979
- Parameters.cacheName,
980
- ],
981
- headerParameters: [Parameters.accept],
982
- serializer,
998
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
999
+ httpMethod: "DELETE",
1000
+ responses: {
1001
+ 200: {},
1002
+ 201: {},
1003
+ 202: {},
1004
+ 204: {},
1005
+ default: {
1006
+ bodyMapper: Mappers.CloudError
1007
+ }
1008
+ },
1009
+ queryParameters: [Parameters.apiVersion],
1010
+ urlParameters: [
1011
+ Parameters.$host,
1012
+ Parameters.subscriptionId,
1013
+ Parameters.resourceGroupName,
1014
+ Parameters.cacheName
1015
+ ],
1016
+ headerParameters: [Parameters.accept],
1017
+ serializer
983
1018
  };
984
1019
  const getOperationSpec = {
985
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
986
- httpMethod: "GET",
987
- responses: {
988
- 200: {
989
- bodyMapper: Mappers.Cache,
990
- },
991
- default: {
992
- bodyMapper: Mappers.CloudError,
993
- },
1020
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
1021
+ httpMethod: "GET",
1022
+ responses: {
1023
+ 200: {
1024
+ bodyMapper: Mappers.Cache
994
1025
  },
995
- queryParameters: [Parameters.apiVersion],
996
- urlParameters: [
997
- Parameters.$host,
998
- Parameters.subscriptionId,
999
- Parameters.resourceGroupName,
1000
- Parameters.cacheName,
1001
- ],
1002
- headerParameters: [Parameters.accept],
1003
- serializer,
1026
+ default: {
1027
+ bodyMapper: Mappers.CloudError
1028
+ }
1029
+ },
1030
+ queryParameters: [Parameters.apiVersion],
1031
+ urlParameters: [
1032
+ Parameters.$host,
1033
+ Parameters.subscriptionId,
1034
+ Parameters.resourceGroupName,
1035
+ Parameters.cacheName
1036
+ ],
1037
+ headerParameters: [Parameters.accept],
1038
+ serializer
1004
1039
  };
1005
1040
  const createOrUpdateOperationSpec = {
1006
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
1007
- httpMethod: "PUT",
1008
- responses: {
1009
- 200: {
1010
- bodyMapper: Mappers.Cache,
1011
- },
1012
- 201: {
1013
- bodyMapper: Mappers.Cache,
1014
- },
1015
- 202: {
1016
- bodyMapper: Mappers.Cache,
1017
- },
1018
- 204: {
1019
- bodyMapper: Mappers.Cache,
1020
- },
1021
- default: {
1022
- bodyMapper: Mappers.CloudError,
1023
- },
1041
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
1042
+ httpMethod: "PUT",
1043
+ responses: {
1044
+ 200: {
1045
+ bodyMapper: Mappers.Cache
1046
+ },
1047
+ 201: {
1048
+ bodyMapper: Mappers.Cache
1024
1049
  },
1025
- requestBody: Parameters.cache,
1026
- queryParameters: [Parameters.apiVersion],
1027
- urlParameters: [
1028
- Parameters.$host,
1029
- Parameters.subscriptionId,
1030
- Parameters.resourceGroupName,
1031
- Parameters.cacheName,
1032
- ],
1033
- headerParameters: [Parameters.accept, Parameters.contentType],
1034
- mediaType: "json",
1035
- serializer,
1050
+ 202: {
1051
+ bodyMapper: Mappers.Cache
1052
+ },
1053
+ 204: {
1054
+ bodyMapper: Mappers.Cache
1055
+ },
1056
+ default: {
1057
+ bodyMapper: Mappers.CloudError
1058
+ }
1059
+ },
1060
+ requestBody: Parameters.cache,
1061
+ queryParameters: [Parameters.apiVersion],
1062
+ urlParameters: [
1063
+ Parameters.$host,
1064
+ Parameters.subscriptionId,
1065
+ Parameters.resourceGroupName,
1066
+ Parameters.cacheName
1067
+ ],
1068
+ headerParameters: [Parameters.accept, Parameters.contentType],
1069
+ mediaType: "json",
1070
+ serializer
1036
1071
  };
1037
1072
  const updateOperationSpec = {
1038
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
1039
- httpMethod: "PATCH",
1040
- responses: {
1041
- 200: {
1042
- bodyMapper: Mappers.Cache,
1043
- },
1044
- 201: {
1045
- bodyMapper: Mappers.Cache,
1046
- },
1047
- 202: {
1048
- bodyMapper: Mappers.Cache,
1049
- },
1050
- 204: {
1051
- bodyMapper: Mappers.Cache,
1052
- },
1053
- default: {
1054
- bodyMapper: Mappers.CloudError,
1055
- },
1073
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
1074
+ httpMethod: "PATCH",
1075
+ responses: {
1076
+ 200: {
1077
+ bodyMapper: Mappers.Cache
1078
+ },
1079
+ 201: {
1080
+ bodyMapper: Mappers.Cache
1056
1081
  },
1057
- requestBody: Parameters.cache1,
1058
- queryParameters: [Parameters.apiVersion],
1059
- urlParameters: [
1060
- Parameters.$host,
1061
- Parameters.subscriptionId,
1062
- Parameters.resourceGroupName,
1063
- Parameters.cacheName,
1064
- ],
1065
- headerParameters: [Parameters.accept, Parameters.contentType],
1066
- mediaType: "json",
1067
- serializer,
1082
+ 202: {
1083
+ bodyMapper: Mappers.Cache
1084
+ },
1085
+ 204: {
1086
+ bodyMapper: Mappers.Cache
1087
+ },
1088
+ default: {
1089
+ bodyMapper: Mappers.CloudError
1090
+ }
1091
+ },
1092
+ requestBody: Parameters.cache1,
1093
+ queryParameters: [Parameters.apiVersion],
1094
+ urlParameters: [
1095
+ Parameters.$host,
1096
+ Parameters.subscriptionId,
1097
+ Parameters.resourceGroupName,
1098
+ Parameters.cacheName
1099
+ ],
1100
+ headerParameters: [Parameters.accept, Parameters.contentType],
1101
+ mediaType: "json",
1102
+ serializer
1068
1103
  };
1069
1104
  const debugInfoOperationSpec = {
1070
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo",
1071
- httpMethod: "POST",
1072
- responses: {
1073
- 200: {},
1074
- 201: {},
1075
- 202: {},
1076
- 204: {},
1077
- default: {
1078
- bodyMapper: Mappers.CloudError,
1079
- },
1080
- },
1081
- queryParameters: [Parameters.apiVersion],
1082
- urlParameters: [
1083
- Parameters.$host,
1084
- Parameters.subscriptionId,
1085
- Parameters.resourceGroupName,
1086
- Parameters.cacheName,
1087
- ],
1088
- headerParameters: [Parameters.accept],
1089
- serializer,
1105
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo",
1106
+ httpMethod: "POST",
1107
+ responses: {
1108
+ 200: {},
1109
+ 201: {},
1110
+ 202: {},
1111
+ 204: {},
1112
+ default: {
1113
+ bodyMapper: Mappers.CloudError
1114
+ }
1115
+ },
1116
+ queryParameters: [Parameters.apiVersion],
1117
+ urlParameters: [
1118
+ Parameters.$host,
1119
+ Parameters.subscriptionId,
1120
+ Parameters.resourceGroupName,
1121
+ Parameters.cacheName
1122
+ ],
1123
+ headerParameters: [Parameters.accept],
1124
+ serializer
1090
1125
  };
1091
1126
  const flushOperationSpec = {
1092
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush",
1093
- httpMethod: "POST",
1094
- responses: {
1095
- 200: {},
1096
- 201: {},
1097
- 202: {},
1098
- 204: {},
1099
- default: {
1100
- bodyMapper: Mappers.CloudError,
1101
- },
1102
- },
1103
- queryParameters: [Parameters.apiVersion],
1104
- urlParameters: [
1105
- Parameters.$host,
1106
- Parameters.subscriptionId,
1107
- Parameters.resourceGroupName,
1108
- Parameters.cacheName,
1109
- ],
1110
- headerParameters: [Parameters.accept],
1111
- serializer,
1127
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush",
1128
+ httpMethod: "POST",
1129
+ responses: {
1130
+ 200: {},
1131
+ 201: {},
1132
+ 202: {},
1133
+ 204: {},
1134
+ default: {
1135
+ bodyMapper: Mappers.CloudError
1136
+ }
1137
+ },
1138
+ queryParameters: [Parameters.apiVersion],
1139
+ urlParameters: [
1140
+ Parameters.$host,
1141
+ Parameters.subscriptionId,
1142
+ Parameters.resourceGroupName,
1143
+ Parameters.cacheName
1144
+ ],
1145
+ headerParameters: [Parameters.accept],
1146
+ serializer
1112
1147
  };
1113
1148
  const startOperationSpec = {
1114
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start",
1115
- httpMethod: "POST",
1116
- responses: {
1117
- 200: {},
1118
- 201: {},
1119
- 202: {},
1120
- 204: {},
1121
- default: {
1122
- bodyMapper: Mappers.CloudError,
1123
- },
1124
- },
1125
- queryParameters: [Parameters.apiVersion],
1126
- urlParameters: [
1127
- Parameters.$host,
1128
- Parameters.subscriptionId,
1129
- Parameters.resourceGroupName,
1130
- Parameters.cacheName,
1131
- ],
1132
- headerParameters: [Parameters.accept],
1133
- serializer,
1149
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start",
1150
+ httpMethod: "POST",
1151
+ responses: {
1152
+ 200: {},
1153
+ 201: {},
1154
+ 202: {},
1155
+ 204: {},
1156
+ default: {
1157
+ bodyMapper: Mappers.CloudError
1158
+ }
1159
+ },
1160
+ queryParameters: [Parameters.apiVersion],
1161
+ urlParameters: [
1162
+ Parameters.$host,
1163
+ Parameters.subscriptionId,
1164
+ Parameters.resourceGroupName,
1165
+ Parameters.cacheName
1166
+ ],
1167
+ headerParameters: [Parameters.accept],
1168
+ serializer
1134
1169
  };
1135
1170
  const stopOperationSpec = {
1136
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop",
1137
- httpMethod: "POST",
1138
- responses: {
1139
- 200: {},
1140
- 201: {},
1141
- 202: {},
1142
- 204: {},
1143
- default: {
1144
- bodyMapper: Mappers.CloudError,
1145
- },
1146
- },
1147
- queryParameters: [Parameters.apiVersion],
1148
- urlParameters: [
1149
- Parameters.$host,
1150
- Parameters.subscriptionId,
1151
- Parameters.resourceGroupName,
1152
- Parameters.cacheName,
1153
- ],
1154
- headerParameters: [Parameters.accept],
1155
- serializer,
1171
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop",
1172
+ httpMethod: "POST",
1173
+ responses: {
1174
+ 200: {},
1175
+ 201: {},
1176
+ 202: {},
1177
+ 204: {},
1178
+ default: {
1179
+ bodyMapper: Mappers.CloudError
1180
+ }
1181
+ },
1182
+ queryParameters: [Parameters.apiVersion],
1183
+ urlParameters: [
1184
+ Parameters.$host,
1185
+ Parameters.subscriptionId,
1186
+ Parameters.resourceGroupName,
1187
+ Parameters.cacheName
1188
+ ],
1189
+ headerParameters: [Parameters.accept],
1190
+ serializer
1156
1191
  };
1157
1192
  const startPrimingJobOperationSpec = {
1158
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/startPrimingJob",
1159
- httpMethod: "POST",
1160
- responses: {
1161
- 200: {
1162
- headersMapper: Mappers.CachesStartPrimingJobHeaders,
1163
- },
1164
- 201: {
1165
- headersMapper: Mappers.CachesStartPrimingJobHeaders,
1166
- },
1167
- 202: {
1168
- headersMapper: Mappers.CachesStartPrimingJobHeaders,
1169
- },
1170
- 204: {
1171
- headersMapper: Mappers.CachesStartPrimingJobHeaders,
1172
- },
1173
- default: {
1174
- bodyMapper: Mappers.CloudError,
1175
- },
1193
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/startPrimingJob",
1194
+ httpMethod: "POST",
1195
+ responses: {
1196
+ 200: {
1197
+ headersMapper: Mappers.CachesStartPrimingJobHeaders
1198
+ },
1199
+ 201: {
1200
+ headersMapper: Mappers.CachesStartPrimingJobHeaders
1201
+ },
1202
+ 202: {
1203
+ headersMapper: Mappers.CachesStartPrimingJobHeaders
1176
1204
  },
1177
- requestBody: Parameters.primingjob,
1178
- queryParameters: [Parameters.apiVersion],
1179
- urlParameters: [
1180
- Parameters.$host,
1181
- Parameters.subscriptionId,
1182
- Parameters.resourceGroupName,
1183
- Parameters.cacheName,
1184
- ],
1185
- headerParameters: [Parameters.accept, Parameters.contentType],
1186
- mediaType: "json",
1187
- serializer,
1205
+ 204: {
1206
+ headersMapper: Mappers.CachesStartPrimingJobHeaders
1207
+ },
1208
+ default: {
1209
+ bodyMapper: Mappers.CloudError
1210
+ }
1211
+ },
1212
+ requestBody: Parameters.primingjob,
1213
+ queryParameters: [Parameters.apiVersion],
1214
+ urlParameters: [
1215
+ Parameters.$host,
1216
+ Parameters.subscriptionId,
1217
+ Parameters.resourceGroupName,
1218
+ Parameters.cacheName
1219
+ ],
1220
+ headerParameters: [Parameters.accept, Parameters.contentType],
1221
+ mediaType: "json",
1222
+ serializer
1188
1223
  };
1189
1224
  const stopPrimingJobOperationSpec = {
1190
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stopPrimingJob",
1191
- httpMethod: "POST",
1192
- responses: {
1193
- 200: {
1194
- headersMapper: Mappers.CachesStopPrimingJobHeaders,
1195
- },
1196
- 201: {
1197
- headersMapper: Mappers.CachesStopPrimingJobHeaders,
1198
- },
1199
- 202: {
1200
- headersMapper: Mappers.CachesStopPrimingJobHeaders,
1201
- },
1202
- 204: {
1203
- headersMapper: Mappers.CachesStopPrimingJobHeaders,
1204
- },
1205
- default: {
1206
- bodyMapper: Mappers.CloudError,
1207
- },
1225
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stopPrimingJob",
1226
+ httpMethod: "POST",
1227
+ responses: {
1228
+ 200: {
1229
+ headersMapper: Mappers.CachesStopPrimingJobHeaders
1230
+ },
1231
+ 201: {
1232
+ headersMapper: Mappers.CachesStopPrimingJobHeaders
1208
1233
  },
1209
- requestBody: Parameters.primingJobId,
1210
- queryParameters: [Parameters.apiVersion],
1211
- urlParameters: [
1212
- Parameters.$host,
1213
- Parameters.subscriptionId,
1214
- Parameters.resourceGroupName,
1215
- Parameters.cacheName,
1216
- ],
1217
- headerParameters: [Parameters.accept, Parameters.contentType],
1218
- mediaType: "json",
1219
- serializer,
1234
+ 202: {
1235
+ headersMapper: Mappers.CachesStopPrimingJobHeaders
1236
+ },
1237
+ 204: {
1238
+ headersMapper: Mappers.CachesStopPrimingJobHeaders
1239
+ },
1240
+ default: {
1241
+ bodyMapper: Mappers.CloudError
1242
+ }
1243
+ },
1244
+ requestBody: Parameters.primingJobId,
1245
+ queryParameters: [Parameters.apiVersion],
1246
+ urlParameters: [
1247
+ Parameters.$host,
1248
+ Parameters.subscriptionId,
1249
+ Parameters.resourceGroupName,
1250
+ Parameters.cacheName
1251
+ ],
1252
+ headerParameters: [Parameters.accept, Parameters.contentType],
1253
+ mediaType: "json",
1254
+ serializer
1220
1255
  };
1221
1256
  const pausePrimingJobOperationSpec = {
1222
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/pausePrimingJob",
1223
- httpMethod: "POST",
1224
- responses: {
1225
- 200: {
1226
- headersMapper: Mappers.CachesPausePrimingJobHeaders,
1227
- },
1228
- 201: {
1229
- headersMapper: Mappers.CachesPausePrimingJobHeaders,
1230
- },
1231
- 202: {
1232
- headersMapper: Mappers.CachesPausePrimingJobHeaders,
1233
- },
1234
- 204: {
1235
- headersMapper: Mappers.CachesPausePrimingJobHeaders,
1236
- },
1237
- default: {
1238
- bodyMapper: Mappers.CloudError,
1239
- },
1257
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/pausePrimingJob",
1258
+ httpMethod: "POST",
1259
+ responses: {
1260
+ 200: {
1261
+ headersMapper: Mappers.CachesPausePrimingJobHeaders
1262
+ },
1263
+ 201: {
1264
+ headersMapper: Mappers.CachesPausePrimingJobHeaders
1265
+ },
1266
+ 202: {
1267
+ headersMapper: Mappers.CachesPausePrimingJobHeaders
1268
+ },
1269
+ 204: {
1270
+ headersMapper: Mappers.CachesPausePrimingJobHeaders
1240
1271
  },
1241
- requestBody: Parameters.primingJobId,
1242
- queryParameters: [Parameters.apiVersion],
1243
- urlParameters: [
1244
- Parameters.$host,
1245
- Parameters.subscriptionId,
1246
- Parameters.resourceGroupName,
1247
- Parameters.cacheName,
1248
- ],
1249
- headerParameters: [Parameters.accept, Parameters.contentType],
1250
- mediaType: "json",
1251
- serializer,
1272
+ default: {
1273
+ bodyMapper: Mappers.CloudError
1274
+ }
1275
+ },
1276
+ requestBody: Parameters.primingJobId,
1277
+ queryParameters: [Parameters.apiVersion],
1278
+ urlParameters: [
1279
+ Parameters.$host,
1280
+ Parameters.subscriptionId,
1281
+ Parameters.resourceGroupName,
1282
+ Parameters.cacheName
1283
+ ],
1284
+ headerParameters: [Parameters.accept, Parameters.contentType],
1285
+ mediaType: "json",
1286
+ serializer
1252
1287
  };
1253
1288
  const resumePrimingJobOperationSpec = {
1254
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/resumePrimingJob",
1255
- httpMethod: "POST",
1256
- responses: {
1257
- 200: {
1258
- headersMapper: Mappers.CachesResumePrimingJobHeaders,
1259
- },
1260
- 201: {
1261
- headersMapper: Mappers.CachesResumePrimingJobHeaders,
1262
- },
1263
- 202: {
1264
- headersMapper: Mappers.CachesResumePrimingJobHeaders,
1265
- },
1266
- 204: {
1267
- headersMapper: Mappers.CachesResumePrimingJobHeaders,
1268
- },
1269
- default: {
1270
- bodyMapper: Mappers.CloudError,
1271
- },
1289
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/resumePrimingJob",
1290
+ httpMethod: "POST",
1291
+ responses: {
1292
+ 200: {
1293
+ headersMapper: Mappers.CachesResumePrimingJobHeaders
1294
+ },
1295
+ 201: {
1296
+ headersMapper: Mappers.CachesResumePrimingJobHeaders
1297
+ },
1298
+ 202: {
1299
+ headersMapper: Mappers.CachesResumePrimingJobHeaders
1300
+ },
1301
+ 204: {
1302
+ headersMapper: Mappers.CachesResumePrimingJobHeaders
1272
1303
  },
1273
- requestBody: Parameters.primingJobId,
1274
- queryParameters: [Parameters.apiVersion],
1275
- urlParameters: [
1276
- Parameters.$host,
1277
- Parameters.subscriptionId,
1278
- Parameters.resourceGroupName,
1279
- Parameters.cacheName,
1280
- ],
1281
- headerParameters: [Parameters.accept, Parameters.contentType],
1282
- mediaType: "json",
1283
- serializer,
1304
+ default: {
1305
+ bodyMapper: Mappers.CloudError
1306
+ }
1307
+ },
1308
+ requestBody: Parameters.primingJobId,
1309
+ queryParameters: [Parameters.apiVersion],
1310
+ urlParameters: [
1311
+ Parameters.$host,
1312
+ Parameters.subscriptionId,
1313
+ Parameters.resourceGroupName,
1314
+ Parameters.cacheName
1315
+ ],
1316
+ headerParameters: [Parameters.accept, Parameters.contentType],
1317
+ mediaType: "json",
1318
+ serializer
1284
1319
  };
1285
1320
  const upgradeFirmwareOperationSpec = {
1286
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade",
1287
- httpMethod: "POST",
1288
- responses: {
1289
- 200: {},
1290
- 201: {},
1291
- 202: {},
1292
- 204: {},
1293
- default: {
1294
- bodyMapper: Mappers.CloudError,
1295
- },
1296
- },
1297
- queryParameters: [Parameters.apiVersion],
1298
- urlParameters: [
1299
- Parameters.$host,
1300
- Parameters.subscriptionId,
1301
- Parameters.resourceGroupName,
1302
- Parameters.cacheName,
1303
- ],
1304
- headerParameters: [Parameters.accept],
1305
- serializer,
1321
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade",
1322
+ httpMethod: "POST",
1323
+ responses: {
1324
+ 200: {},
1325
+ 201: {},
1326
+ 202: {},
1327
+ 204: {},
1328
+ default: {
1329
+ bodyMapper: Mappers.CloudError
1330
+ }
1331
+ },
1332
+ queryParameters: [Parameters.apiVersion],
1333
+ urlParameters: [
1334
+ Parameters.$host,
1335
+ Parameters.subscriptionId,
1336
+ Parameters.resourceGroupName,
1337
+ Parameters.cacheName
1338
+ ],
1339
+ headerParameters: [Parameters.accept],
1340
+ serializer
1306
1341
  };
1307
1342
  const spaceAllocationOperationSpec = {
1308
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/spaceAllocation",
1309
- httpMethod: "POST",
1310
- responses: {
1311
- 200: {
1312
- headersMapper: Mappers.CachesSpaceAllocationHeaders,
1313
- },
1314
- 201: {
1315
- headersMapper: Mappers.CachesSpaceAllocationHeaders,
1316
- },
1317
- 202: {
1318
- headersMapper: Mappers.CachesSpaceAllocationHeaders,
1319
- },
1320
- 204: {
1321
- headersMapper: Mappers.CachesSpaceAllocationHeaders,
1322
- },
1323
- default: {
1324
- bodyMapper: Mappers.CloudError,
1325
- },
1343
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/spaceAllocation",
1344
+ httpMethod: "POST",
1345
+ responses: {
1346
+ 200: {
1347
+ headersMapper: Mappers.CachesSpaceAllocationHeaders
1326
1348
  },
1327
- requestBody: Parameters.spaceAllocation,
1328
- queryParameters: [Parameters.apiVersion],
1329
- urlParameters: [
1330
- Parameters.$host,
1331
- Parameters.subscriptionId,
1332
- Parameters.resourceGroupName,
1333
- Parameters.cacheName,
1334
- ],
1335
- headerParameters: [Parameters.accept, Parameters.contentType],
1336
- mediaType: "json",
1337
- serializer,
1349
+ 201: {
1350
+ headersMapper: Mappers.CachesSpaceAllocationHeaders
1351
+ },
1352
+ 202: {
1353
+ headersMapper: Mappers.CachesSpaceAllocationHeaders
1354
+ },
1355
+ 204: {
1356
+ headersMapper: Mappers.CachesSpaceAllocationHeaders
1357
+ },
1358
+ default: {
1359
+ bodyMapper: Mappers.CloudError
1360
+ }
1361
+ },
1362
+ requestBody: Parameters.spaceAllocation,
1363
+ queryParameters: [Parameters.apiVersion],
1364
+ urlParameters: [
1365
+ Parameters.$host,
1366
+ Parameters.subscriptionId,
1367
+ Parameters.resourceGroupName,
1368
+ Parameters.cacheName
1369
+ ],
1370
+ headerParameters: [Parameters.accept, Parameters.contentType],
1371
+ mediaType: "json",
1372
+ serializer
1338
1373
  };
1339
1374
  const listNextOperationSpec = {
1340
- path: "{nextLink}",
1341
- httpMethod: "GET",
1342
- responses: {
1343
- 200: {
1344
- bodyMapper: Mappers.CachesListResult,
1345
- },
1346
- default: {
1347
- bodyMapper: Mappers.CloudError,
1348
- },
1375
+ path: "{nextLink}",
1376
+ httpMethod: "GET",
1377
+ responses: {
1378
+ 200: {
1379
+ bodyMapper: Mappers.CachesListResult
1349
1380
  },
1350
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
1351
- headerParameters: [Parameters.accept],
1352
- serializer,
1381
+ default: {
1382
+ bodyMapper: Mappers.CloudError
1383
+ }
1384
+ },
1385
+ urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
1386
+ headerParameters: [Parameters.accept],
1387
+ serializer
1353
1388
  };
1354
1389
  const listByResourceGroupNextOperationSpec = {
1355
- path: "{nextLink}",
1356
- httpMethod: "GET",
1357
- responses: {
1358
- 200: {
1359
- bodyMapper: Mappers.CachesListResult,
1360
- },
1361
- default: {
1362
- bodyMapper: Mappers.CloudError,
1363
- },
1390
+ path: "{nextLink}",
1391
+ httpMethod: "GET",
1392
+ responses: {
1393
+ 200: {
1394
+ bodyMapper: Mappers.CachesListResult
1364
1395
  },
1365
- urlParameters: [
1366
- Parameters.$host,
1367
- Parameters.subscriptionId,
1368
- Parameters.resourceGroupName,
1369
- Parameters.nextLink,
1370
- ],
1371
- headerParameters: [Parameters.accept],
1372
- serializer,
1396
+ default: {
1397
+ bodyMapper: Mappers.CloudError
1398
+ }
1399
+ },
1400
+ urlParameters: [
1401
+ Parameters.$host,
1402
+ Parameters.subscriptionId,
1403
+ Parameters.resourceGroupName,
1404
+ Parameters.nextLink
1405
+ ],
1406
+ headerParameters: [Parameters.accept],
1407
+ serializer
1373
1408
  };
1374
- //# sourceMappingURL=caches.js.map
1409
+ // Annotate the CommonJS export names for ESM import in node:
1410
+ 0 && (module.exports = {
1411
+ CachesImpl
1412
+ });