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