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