@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,573 +1,599 @@
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 AmlFilesystems operations. */
11
- export class AmlFilesystemsImpl {
12
- client;
13
- /**
14
- * Initialize a new instance of the class AmlFilesystems class.
15
- * @param client Reference to the service client
16
- */
17
- constructor(client) {
18
- this.client = client;
7
+ class AmlFilesystemsImpl {
8
+ client;
9
+ /**
10
+ * Initialize a new instance of the class AmlFilesystems class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client) {
14
+ this.client = client;
15
+ }
16
+ /**
17
+ * Returns all AML file systems 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 AML file systems 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 AML file systems 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;
63
91
  }
64
- /**
65
- * Returns all AML file systems 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
- };
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;
85
98
  }
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;
99
+ }
100
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
101
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
102
+ yield* page;
103
+ }
104
+ }
105
+ /**
106
+ * Returns all AML file systems 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 AML file systems 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 an AML file system for deletion.
125
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
126
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
127
+ * hyphens. Start and end with alphanumeric.
128
+ * @param options The options parameters.
129
+ */
130
+ async beginDelete(resourceGroupName, amlFilesystemName, 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, amlFilesystemName, options },
161
+ spec: deleteOperationSpec
162
+ });
163
+ const poller = await createHttpPoller(lro, {
164
+ restoreFrom: options?.resumeFrom,
165
+ intervalInMs: options?.updateIntervalInMs,
166
+ resourceLocationConfig: "location"
167
+ });
168
+ await poller.poll();
169
+ return poller;
170
+ }
171
+ /**
172
+ * Schedules an AML file system for deletion.
173
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
174
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
175
+ * hyphens. Start and end with alphanumeric.
176
+ * @param options The options parameters.
177
+ */
178
+ async beginDeleteAndWait(resourceGroupName, amlFilesystemName, options) {
179
+ const poller = await this.beginDelete(resourceGroupName, amlFilesystemName, options);
180
+ return poller.pollUntilDone();
181
+ }
182
+ /**
183
+ * Returns an AML file system.
184
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
185
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
186
+ * hyphens. Start and end with alphanumeric.
187
+ * @param options The options parameters.
188
+ */
189
+ get(resourceGroupName, amlFilesystemName, options) {
190
+ return this.client.sendOperationRequest(
191
+ { resourceGroupName, amlFilesystemName, options },
192
+ getOperationSpec
193
+ );
194
+ }
195
+ /**
196
+ * Create or update an AML file system.
197
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
198
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
199
+ * hyphens. Start and end with alphanumeric.
200
+ * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
201
+ * read-only properties are included, they must match the existing values of those properties.
202
+ * @param options The options parameters.
203
+ */
204
+ async beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
205
+ const directSendOperation = async (args, spec) => {
206
+ return this.client.sendOperationRequest(args, spec);
207
+ };
208
+ const sendOperationFn = async (args, spec) => {
209
+ let currentRawResponse = void 0;
210
+ const providedCallback = args.options?.onResponse;
211
+ const callback = (rawResponse, flatResponse2) => {
212
+ currentRawResponse = rawResponse;
213
+ providedCallback?.(rawResponse, flatResponse2);
214
+ };
215
+ const updatedArgs = {
216
+ ...args,
217
+ options: {
218
+ ...args.options,
219
+ onResponse: callback
107
220
  }
108
- }
109
- /**
110
- * Returns all AML file systems 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 AML file systems 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 an AML file system for deletion.
126
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
127
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
128
- * hyphens. Start and end with alphanumeric.
129
- * @param options The options parameters.
130
- */
131
- async beginDelete(resourceGroupName, amlFilesystemName, 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, amlFilesystemName, options },
162
- spec: deleteOperationSpec,
163
- });
164
- const poller = await createHttpPoller(lro, {
165
- restoreFrom: options?.resumeFrom,
166
- intervalInMs: options?.updateIntervalInMs,
167
- resourceLocationConfig: "location",
168
- });
169
- await poller.poll();
170
- return poller;
171
- }
172
- /**
173
- * Schedules an AML file system for deletion.
174
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
175
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
176
- * hyphens. Start and end with alphanumeric.
177
- * @param options The options parameters.
178
- */
179
- async beginDeleteAndWait(resourceGroupName, amlFilesystemName, options) {
180
- const poller = await this.beginDelete(resourceGroupName, amlFilesystemName, options);
181
- return poller.pollUntilDone();
182
- }
183
- /**
184
- * Returns an AML file system.
185
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
186
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
187
- * hyphens. Start and end with alphanumeric.
188
- * @param options The options parameters.
189
- */
190
- get(resourceGroupName, amlFilesystemName, options) {
191
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, options }, getOperationSpec);
192
- }
193
- /**
194
- * Create or update an AML file system.
195
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
196
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
197
- * hyphens. Start and end with alphanumeric.
198
- * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
199
- * read-only properties are included, they must match the existing values of those properties.
200
- * @param options The options parameters.
201
- */
202
- async beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
203
- const directSendOperation = async (args, spec) => {
204
- return this.client.sendOperationRequest(args, spec);
205
- };
206
- const sendOperationFn = async (args, spec) => {
207
- let currentRawResponse = undefined;
208
- const providedCallback = args.options?.onResponse;
209
- const callback = (rawResponse, flatResponse) => {
210
- currentRawResponse = rawResponse;
211
- providedCallback?.(rawResponse, flatResponse);
212
- };
213
- const updatedArgs = {
214
- ...args,
215
- options: {
216
- ...args.options,
217
- onResponse: callback,
218
- },
219
- };
220
- const flatResponse = await directSendOperation(updatedArgs, spec);
221
- return {
222
- flatResponse,
223
- rawResponse: {
224
- statusCode: currentRawResponse.status,
225
- body: currentRawResponse.parsedBody,
226
- headers: currentRawResponse.headers.toJSON(),
227
- },
228
- };
229
- };
230
- const lro = createLroSpec({
231
- sendOperationFn,
232
- args: { resourceGroupName, amlFilesystemName, amlFilesystem, options },
233
- spec: createOrUpdateOperationSpec,
234
- });
235
- const poller = await createHttpPoller(lro, {
236
- restoreFrom: options?.resumeFrom,
237
- intervalInMs: options?.updateIntervalInMs,
238
- resourceLocationConfig: "azure-async-operation",
239
- });
240
- await poller.poll();
241
- return poller;
242
- }
243
- /**
244
- * Create or update an AML file system.
245
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
246
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
247
- * hyphens. Start and end with alphanumeric.
248
- * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
249
- * read-only properties are included, they must match the existing values of those properties.
250
- * @param options The options parameters.
251
- */
252
- async beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
253
- const poller = await this.beginCreateOrUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options);
254
- return poller.pollUntilDone();
255
- }
256
- /**
257
- * Update an AML file system instance.
258
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
259
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
260
- * hyphens. Start and end with alphanumeric.
261
- * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
262
- * read-only properties are included, they must match the existing values of those properties.
263
- * @param options The options parameters.
264
- */
265
- async beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
266
- const directSendOperation = async (args, spec) => {
267
- return this.client.sendOperationRequest(args, spec);
268
- };
269
- const sendOperationFn = async (args, spec) => {
270
- let currentRawResponse = undefined;
271
- const providedCallback = args.options?.onResponse;
272
- const callback = (rawResponse, flatResponse) => {
273
- currentRawResponse = rawResponse;
274
- providedCallback?.(rawResponse, flatResponse);
275
- };
276
- const updatedArgs = {
277
- ...args,
278
- options: {
279
- ...args.options,
280
- onResponse: callback,
281
- },
282
- };
283
- const flatResponse = await directSendOperation(updatedArgs, spec);
284
- return {
285
- flatResponse,
286
- rawResponse: {
287
- statusCode: currentRawResponse.status,
288
- body: currentRawResponse.parsedBody,
289
- headers: currentRawResponse.headers.toJSON(),
290
- },
291
- };
292
- };
293
- const lro = createLroSpec({
294
- sendOperationFn,
295
- args: { resourceGroupName, amlFilesystemName, amlFilesystem, options },
296
- spec: updateOperationSpec,
297
- });
298
- const poller = await createHttpPoller(lro, {
299
- restoreFrom: options?.resumeFrom,
300
- intervalInMs: options?.updateIntervalInMs,
301
- resourceLocationConfig: "azure-async-operation",
302
- });
303
- await poller.poll();
304
- return poller;
305
- }
306
- /**
307
- * Update an AML file system instance.
308
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
309
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
310
- * hyphens. Start and end with alphanumeric.
311
- * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
312
- * read-only properties are included, they must match the existing values of those properties.
313
- * @param options The options parameters.
314
- */
315
- async beginUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
316
- const poller = await this.beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options);
317
- return poller.pollUntilDone();
318
- }
319
- /**
320
- * Archive data from the AML file system.
321
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
322
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
323
- * hyphens. Start and end with alphanumeric.
324
- * @param options The options parameters.
325
- */
326
- archive(resourceGroupName, amlFilesystemName, options) {
327
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, options }, archiveOperationSpec);
328
- }
329
- /**
330
- * Cancel archiving data from the AML file system.
331
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
332
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
333
- * hyphens. Start and end with alphanumeric.
334
- * @param options The options parameters.
335
- */
336
- cancelArchive(resourceGroupName, amlFilesystemName, options) {
337
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, options }, cancelArchiveOperationSpec);
338
- }
339
- /**
340
- * ListNext
341
- * @param nextLink The nextLink from the previous successful call to the List method.
342
- * @param options The options parameters.
343
- */
344
- _listNext(nextLink, options) {
345
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
346
- }
347
- /**
348
- * ListByResourceGroupNext
349
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
350
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
351
- * @param options The options parameters.
352
- */
353
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
354
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
355
- }
221
+ };
222
+ const flatResponse = await directSendOperation(updatedArgs, spec);
223
+ return {
224
+ flatResponse,
225
+ rawResponse: {
226
+ statusCode: currentRawResponse.status,
227
+ body: currentRawResponse.parsedBody,
228
+ headers: currentRawResponse.headers.toJSON()
229
+ }
230
+ };
231
+ };
232
+ const lro = createLroSpec({
233
+ sendOperationFn,
234
+ args: { resourceGroupName, amlFilesystemName, amlFilesystem, options },
235
+ spec: createOrUpdateOperationSpec
236
+ });
237
+ const poller = await createHttpPoller(lro, {
238
+ restoreFrom: options?.resumeFrom,
239
+ intervalInMs: options?.updateIntervalInMs,
240
+ resourceLocationConfig: "azure-async-operation"
241
+ });
242
+ await poller.poll();
243
+ return poller;
244
+ }
245
+ /**
246
+ * Create or update an AML file system.
247
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
248
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
249
+ * hyphens. Start and end with alphanumeric.
250
+ * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
251
+ * read-only properties are included, they must match the existing values of those properties.
252
+ * @param options The options parameters.
253
+ */
254
+ async beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
255
+ const poller = await this.beginCreateOrUpdate(
256
+ resourceGroupName,
257
+ amlFilesystemName,
258
+ amlFilesystem,
259
+ options
260
+ );
261
+ return poller.pollUntilDone();
262
+ }
263
+ /**
264
+ * Update an AML file system instance.
265
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
266
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
267
+ * hyphens. Start and end with alphanumeric.
268
+ * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
269
+ * read-only properties are included, they must match the existing values of those properties.
270
+ * @param options The options parameters.
271
+ */
272
+ async beginUpdate(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
273
+ const directSendOperation = async (args, spec) => {
274
+ return this.client.sendOperationRequest(args, spec);
275
+ };
276
+ const sendOperationFn = async (args, spec) => {
277
+ let currentRawResponse = void 0;
278
+ const providedCallback = args.options?.onResponse;
279
+ const callback = (rawResponse, flatResponse2) => {
280
+ currentRawResponse = rawResponse;
281
+ providedCallback?.(rawResponse, flatResponse2);
282
+ };
283
+ const updatedArgs = {
284
+ ...args,
285
+ options: {
286
+ ...args.options,
287
+ onResponse: callback
288
+ }
289
+ };
290
+ const flatResponse = await directSendOperation(updatedArgs, spec);
291
+ return {
292
+ flatResponse,
293
+ rawResponse: {
294
+ statusCode: currentRawResponse.status,
295
+ body: currentRawResponse.parsedBody,
296
+ headers: currentRawResponse.headers.toJSON()
297
+ }
298
+ };
299
+ };
300
+ const lro = createLroSpec({
301
+ sendOperationFn,
302
+ args: { resourceGroupName, amlFilesystemName, amlFilesystem, options },
303
+ spec: updateOperationSpec
304
+ });
305
+ const poller = await createHttpPoller(lro, {
306
+ restoreFrom: options?.resumeFrom,
307
+ intervalInMs: options?.updateIntervalInMs,
308
+ resourceLocationConfig: "azure-async-operation"
309
+ });
310
+ await poller.poll();
311
+ return poller;
312
+ }
313
+ /**
314
+ * Update an AML file system instance.
315
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
316
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
317
+ * hyphens. Start and end with alphanumeric.
318
+ * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If
319
+ * read-only properties are included, they must match the existing values of those properties.
320
+ * @param options The options parameters.
321
+ */
322
+ async beginUpdateAndWait(resourceGroupName, amlFilesystemName, amlFilesystem, options) {
323
+ const poller = await this.beginUpdate(
324
+ resourceGroupName,
325
+ amlFilesystemName,
326
+ amlFilesystem,
327
+ options
328
+ );
329
+ return poller.pollUntilDone();
330
+ }
331
+ /**
332
+ * Archive data from the AML file system.
333
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
334
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
335
+ * hyphens. Start and end with alphanumeric.
336
+ * @param options The options parameters.
337
+ */
338
+ archive(resourceGroupName, amlFilesystemName, options) {
339
+ return this.client.sendOperationRequest(
340
+ { resourceGroupName, amlFilesystemName, options },
341
+ archiveOperationSpec
342
+ );
343
+ }
344
+ /**
345
+ * Cancel archiving data from the AML file system.
346
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
347
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
348
+ * hyphens. Start and end with alphanumeric.
349
+ * @param options The options parameters.
350
+ */
351
+ cancelArchive(resourceGroupName, amlFilesystemName, options) {
352
+ return this.client.sendOperationRequest(
353
+ { resourceGroupName, amlFilesystemName, options },
354
+ cancelArchiveOperationSpec
355
+ );
356
+ }
357
+ /**
358
+ * ListNext
359
+ * @param nextLink The nextLink from the previous successful call to the List method.
360
+ * @param options The options parameters.
361
+ */
362
+ _listNext(nextLink, options) {
363
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
364
+ }
365
+ /**
366
+ * ListByResourceGroupNext
367
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
368
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
369
+ * @param options The options parameters.
370
+ */
371
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
372
+ return this.client.sendOperationRequest(
373
+ { resourceGroupName, nextLink, options },
374
+ listByResourceGroupNextOperationSpec
375
+ );
376
+ }
356
377
  }
357
- // Operation Specifications
358
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
378
+ const serializer = coreClient.createSerializer(
379
+ Mappers,
380
+ /* isXml */
381
+ false
382
+ );
359
383
  const listOperationSpec = {
360
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/amlFilesystems",
361
- httpMethod: "GET",
362
- responses: {
363
- 200: {
364
- bodyMapper: Mappers.AmlFilesystemsListResult,
365
- },
366
- default: {
367
- bodyMapper: Mappers.CloudError,
368
- },
384
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/amlFilesystems",
385
+ httpMethod: "GET",
386
+ responses: {
387
+ 200: {
388
+ bodyMapper: Mappers.AmlFilesystemsListResult
369
389
  },
370
- queryParameters: [Parameters.apiVersion],
371
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
372
- headerParameters: [Parameters.accept],
373
- serializer,
390
+ default: {
391
+ bodyMapper: Mappers.CloudError
392
+ }
393
+ },
394
+ queryParameters: [Parameters.apiVersion],
395
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
396
+ headerParameters: [Parameters.accept],
397
+ serializer
374
398
  };
375
399
  const listByResourceGroupOperationSpec = {
376
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems",
377
- httpMethod: "GET",
378
- responses: {
379
- 200: {
380
- bodyMapper: Mappers.AmlFilesystemsListResult,
381
- },
382
- default: {
383
- bodyMapper: Mappers.CloudError,
384
- },
400
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems",
401
+ httpMethod: "GET",
402
+ responses: {
403
+ 200: {
404
+ bodyMapper: Mappers.AmlFilesystemsListResult
385
405
  },
386
- queryParameters: [Parameters.apiVersion],
387
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
388
- headerParameters: [Parameters.accept],
389
- serializer,
406
+ default: {
407
+ bodyMapper: Mappers.CloudError
408
+ }
409
+ },
410
+ queryParameters: [Parameters.apiVersion],
411
+ urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
412
+ headerParameters: [Parameters.accept],
413
+ serializer
390
414
  };
391
415
  const deleteOperationSpec = {
392
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
393
- httpMethod: "DELETE",
394
- responses: {
395
- 200: {},
396
- 201: {},
397
- 202: {},
398
- 204: {},
399
- default: {
400
- bodyMapper: Mappers.CloudError,
401
- },
402
- },
403
- queryParameters: [Parameters.apiVersion],
404
- urlParameters: [
405
- Parameters.$host,
406
- Parameters.subscriptionId,
407
- Parameters.resourceGroupName,
408
- Parameters.amlFilesystemName,
409
- ],
410
- headerParameters: [Parameters.accept],
411
- serializer,
416
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
417
+ httpMethod: "DELETE",
418
+ responses: {
419
+ 200: {},
420
+ 201: {},
421
+ 202: {},
422
+ 204: {},
423
+ default: {
424
+ bodyMapper: Mappers.CloudError
425
+ }
426
+ },
427
+ queryParameters: [Parameters.apiVersion],
428
+ urlParameters: [
429
+ Parameters.$host,
430
+ Parameters.subscriptionId,
431
+ Parameters.resourceGroupName,
432
+ Parameters.amlFilesystemName
433
+ ],
434
+ headerParameters: [Parameters.accept],
435
+ serializer
412
436
  };
413
437
  const getOperationSpec = {
414
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
415
- httpMethod: "GET",
416
- responses: {
417
- 200: {
418
- bodyMapper: Mappers.AmlFilesystem,
419
- },
420
- default: {
421
- bodyMapper: Mappers.CloudError,
422
- },
438
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
439
+ httpMethod: "GET",
440
+ responses: {
441
+ 200: {
442
+ bodyMapper: Mappers.AmlFilesystem
423
443
  },
424
- queryParameters: [Parameters.apiVersion],
425
- urlParameters: [
426
- Parameters.$host,
427
- Parameters.subscriptionId,
428
- Parameters.resourceGroupName,
429
- Parameters.amlFilesystemName,
430
- ],
431
- headerParameters: [Parameters.accept],
432
- serializer,
444
+ default: {
445
+ bodyMapper: Mappers.CloudError
446
+ }
447
+ },
448
+ queryParameters: [Parameters.apiVersion],
449
+ urlParameters: [
450
+ Parameters.$host,
451
+ Parameters.subscriptionId,
452
+ Parameters.resourceGroupName,
453
+ Parameters.amlFilesystemName
454
+ ],
455
+ headerParameters: [Parameters.accept],
456
+ serializer
433
457
  };
434
458
  const createOrUpdateOperationSpec = {
435
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
436
- httpMethod: "PUT",
437
- responses: {
438
- 200: {
439
- bodyMapper: Mappers.AmlFilesystem,
440
- },
441
- 201: {
442
- bodyMapper: Mappers.AmlFilesystem,
443
- },
444
- 202: {
445
- bodyMapper: Mappers.AmlFilesystem,
446
- },
447
- 204: {
448
- bodyMapper: Mappers.AmlFilesystem,
449
- },
450
- default: {
451
- bodyMapper: Mappers.CloudError,
452
- },
459
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
460
+ httpMethod: "PUT",
461
+ responses: {
462
+ 200: {
463
+ bodyMapper: Mappers.AmlFilesystem
453
464
  },
454
- requestBody: Parameters.amlFilesystem,
455
- queryParameters: [Parameters.apiVersion],
456
- urlParameters: [
457
- Parameters.$host,
458
- Parameters.subscriptionId,
459
- Parameters.resourceGroupName,
460
- Parameters.amlFilesystemName,
461
- ],
462
- headerParameters: [Parameters.accept, Parameters.contentType],
463
- mediaType: "json",
464
- serializer,
465
+ 201: {
466
+ bodyMapper: Mappers.AmlFilesystem
467
+ },
468
+ 202: {
469
+ bodyMapper: Mappers.AmlFilesystem
470
+ },
471
+ 204: {
472
+ bodyMapper: Mappers.AmlFilesystem
473
+ },
474
+ default: {
475
+ bodyMapper: Mappers.CloudError
476
+ }
477
+ },
478
+ requestBody: Parameters.amlFilesystem,
479
+ queryParameters: [Parameters.apiVersion],
480
+ urlParameters: [
481
+ Parameters.$host,
482
+ Parameters.subscriptionId,
483
+ Parameters.resourceGroupName,
484
+ Parameters.amlFilesystemName
485
+ ],
486
+ headerParameters: [Parameters.accept, Parameters.contentType],
487
+ mediaType: "json",
488
+ serializer
465
489
  };
466
490
  const updateOperationSpec = {
467
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
468
- httpMethod: "PATCH",
469
- responses: {
470
- 200: {
471
- bodyMapper: Mappers.AmlFilesystem,
472
- },
473
- 201: {
474
- bodyMapper: Mappers.AmlFilesystem,
475
- },
476
- 202: {
477
- bodyMapper: Mappers.AmlFilesystem,
478
- },
479
- 204: {
480
- bodyMapper: Mappers.AmlFilesystem,
481
- },
482
- default: {
483
- bodyMapper: Mappers.CloudError,
484
- },
491
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}",
492
+ httpMethod: "PATCH",
493
+ responses: {
494
+ 200: {
495
+ bodyMapper: Mappers.AmlFilesystem
496
+ },
497
+ 201: {
498
+ bodyMapper: Mappers.AmlFilesystem
485
499
  },
486
- requestBody: Parameters.amlFilesystem1,
487
- queryParameters: [Parameters.apiVersion],
488
- urlParameters: [
489
- Parameters.$host,
490
- Parameters.subscriptionId,
491
- Parameters.resourceGroupName,
492
- Parameters.amlFilesystemName,
493
- ],
494
- headerParameters: [Parameters.accept, Parameters.contentType],
495
- mediaType: "json",
496
- serializer,
500
+ 202: {
501
+ bodyMapper: Mappers.AmlFilesystem
502
+ },
503
+ 204: {
504
+ bodyMapper: Mappers.AmlFilesystem
505
+ },
506
+ default: {
507
+ bodyMapper: Mappers.CloudError
508
+ }
509
+ },
510
+ requestBody: Parameters.amlFilesystem1,
511
+ queryParameters: [Parameters.apiVersion],
512
+ urlParameters: [
513
+ Parameters.$host,
514
+ Parameters.subscriptionId,
515
+ Parameters.resourceGroupName,
516
+ Parameters.amlFilesystemName
517
+ ],
518
+ headerParameters: [Parameters.accept, Parameters.contentType],
519
+ mediaType: "json",
520
+ serializer
497
521
  };
498
522
  const archiveOperationSpec = {
499
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/archive",
500
- httpMethod: "POST",
501
- responses: {
502
- 200: {},
503
- default: {
504
- bodyMapper: Mappers.CloudError,
505
- },
506
- },
507
- requestBody: Parameters.archiveInfo,
508
- queryParameters: [Parameters.apiVersion],
509
- urlParameters: [
510
- Parameters.$host,
511
- Parameters.subscriptionId,
512
- Parameters.resourceGroupName,
513
- Parameters.amlFilesystemName,
514
- ],
515
- headerParameters: [Parameters.accept, Parameters.contentType],
516
- mediaType: "json",
517
- serializer,
523
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/archive",
524
+ httpMethod: "POST",
525
+ responses: {
526
+ 200: {},
527
+ default: {
528
+ bodyMapper: Mappers.CloudError
529
+ }
530
+ },
531
+ requestBody: Parameters.archiveInfo,
532
+ queryParameters: [Parameters.apiVersion],
533
+ urlParameters: [
534
+ Parameters.$host,
535
+ Parameters.subscriptionId,
536
+ Parameters.resourceGroupName,
537
+ Parameters.amlFilesystemName
538
+ ],
539
+ headerParameters: [Parameters.accept, Parameters.contentType],
540
+ mediaType: "json",
541
+ serializer
518
542
  };
519
543
  const cancelArchiveOperationSpec = {
520
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/cancelArchive",
521
- httpMethod: "POST",
522
- responses: {
523
- 200: {},
524
- default: {
525
- bodyMapper: Mappers.CloudError,
526
- },
527
- },
528
- queryParameters: [Parameters.apiVersion],
529
- urlParameters: [
530
- Parameters.$host,
531
- Parameters.subscriptionId,
532
- Parameters.resourceGroupName,
533
- Parameters.amlFilesystemName,
534
- ],
535
- headerParameters: [Parameters.accept],
536
- serializer,
544
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/cancelArchive",
545
+ httpMethod: "POST",
546
+ responses: {
547
+ 200: {},
548
+ default: {
549
+ bodyMapper: Mappers.CloudError
550
+ }
551
+ },
552
+ queryParameters: [Parameters.apiVersion],
553
+ urlParameters: [
554
+ Parameters.$host,
555
+ Parameters.subscriptionId,
556
+ Parameters.resourceGroupName,
557
+ Parameters.amlFilesystemName
558
+ ],
559
+ headerParameters: [Parameters.accept],
560
+ serializer
537
561
  };
538
562
  const listNextOperationSpec = {
539
- path: "{nextLink}",
540
- httpMethod: "GET",
541
- responses: {
542
- 200: {
543
- bodyMapper: Mappers.AmlFilesystemsListResult,
544
- },
545
- default: {
546
- bodyMapper: Mappers.CloudError,
547
- },
563
+ path: "{nextLink}",
564
+ httpMethod: "GET",
565
+ responses: {
566
+ 200: {
567
+ bodyMapper: Mappers.AmlFilesystemsListResult
548
568
  },
549
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
550
- headerParameters: [Parameters.accept],
551
- serializer,
569
+ default: {
570
+ bodyMapper: Mappers.CloudError
571
+ }
572
+ },
573
+ urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
574
+ headerParameters: [Parameters.accept],
575
+ serializer
552
576
  };
553
577
  const listByResourceGroupNextOperationSpec = {
554
- path: "{nextLink}",
555
- httpMethod: "GET",
556
- responses: {
557
- 200: {
558
- bodyMapper: Mappers.AmlFilesystemsListResult,
559
- },
560
- default: {
561
- bodyMapper: Mappers.CloudError,
562
- },
578
+ path: "{nextLink}",
579
+ httpMethod: "GET",
580
+ responses: {
581
+ 200: {
582
+ bodyMapper: Mappers.AmlFilesystemsListResult
563
583
  },
564
- urlParameters: [
565
- Parameters.$host,
566
- Parameters.subscriptionId,
567
- Parameters.resourceGroupName,
568
- Parameters.nextLink,
569
- ],
570
- headerParameters: [Parameters.accept],
571
- serializer,
584
+ default: {
585
+ bodyMapper: Mappers.CloudError
586
+ }
587
+ },
588
+ urlParameters: [
589
+ Parameters.$host,
590
+ Parameters.subscriptionId,
591
+ Parameters.resourceGroupName,
592
+ Parameters.nextLink
593
+ ],
594
+ headerParameters: [Parameters.accept],
595
+ serializer
596
+ };
597
+ export {
598
+ AmlFilesystemsImpl
572
599
  };
573
- //# sourceMappingURL=amlFilesystems.js.map