@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,478 +1,547 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.ImportJobsImpl = 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 ImportJobs 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 importJobs_exports = {};
29
+ __export(importJobs_exports, {
30
+ ImportJobsImpl: () => ImportJobsImpl
31
+ });
32
+ module.exports = __toCommonJS(importJobs_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 ImportJobsImpl {
16
- client;
17
- /**
18
- * Initialize a new instance of the class ImportJobs 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 ImportJobs class.
43
+ * @param client Reference to the service client
44
+ */
45
+ constructor(client) {
46
+ this.client = client;
47
+ }
48
+ /**
49
+ * Returns all import 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 import 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 import 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 importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
115
+ * and end with alphanumeric.
116
+ * @param options The options parameters.
117
+ */
118
+ async beginDelete(resourceGroupName, amlFilesystemName, importJobName, 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: { resourceGroupName, amlFilesystemName, importJobName, options },
149
+ spec: deleteOperationSpec
150
+ });
151
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
152
+ restoreFrom: options?.resumeFrom,
153
+ intervalInMs: options?.updateIntervalInMs,
154
+ resourceLocationConfig: "location"
155
+ });
156
+ await poller.poll();
157
+ return poller;
158
+ }
159
+ /**
160
+ * Schedules an import job for deletion.
161
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
162
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
163
+ * hyphens. Start and end with alphanumeric.
164
+ * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
165
+ * and end with alphanumeric.
166
+ * @param options The options parameters.
167
+ */
168
+ async beginDeleteAndWait(resourceGroupName, amlFilesystemName, importJobName, options) {
169
+ const poller = await this.beginDelete(
170
+ resourceGroupName,
171
+ amlFilesystemName,
172
+ importJobName,
173
+ options
174
+ );
175
+ return poller.pollUntilDone();
176
+ }
177
+ /**
178
+ * Returns an import job.
179
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
180
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
181
+ * hyphens. Start and end with alphanumeric.
182
+ * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
183
+ * and end with alphanumeric.
184
+ * @param options The options parameters.
185
+ */
186
+ get(resourceGroupName, amlFilesystemName, importJobName, options) {
187
+ return this.client.sendOperationRequest(
188
+ { resourceGroupName, amlFilesystemName, importJobName, options },
189
+ getOperationSpec
190
+ );
191
+ }
192
+ /**
193
+ * Create or update an import job.
194
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
195
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
196
+ * hyphens. Start and end with alphanumeric.
197
+ * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
198
+ * and end with alphanumeric.
199
+ * @param importJob Object containing the user-selectable properties of the import job. If read-only
200
+ * properties are included, they must match the existing values of those properties.
201
+ * @param options The options parameters.
202
+ */
203
+ async beginCreateOrUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
204
+ const directSendOperation = async (args, spec) => {
205
+ return this.client.sendOperationRequest(args, spec);
206
+ };
207
+ const sendOperationFn = async (args, spec) => {
208
+ let currentRawResponse = void 0;
209
+ const providedCallback = args.options?.onResponse;
210
+ const callback = (rawResponse, flatResponse2) => {
211
+ currentRawResponse = rawResponse;
212
+ providedCallback?.(rawResponse, flatResponse2);
213
+ };
214
+ const updatedArgs = {
215
+ ...args,
216
+ options: {
217
+ ...args.options,
218
+ onResponse: callback
69
219
  }
70
- }
71
- /**
72
- * Schedules an import 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 importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
77
- * and end with alphanumeric.
78
- * @param options The options parameters.
79
- */
80
- async beginDelete(resourceGroupName, amlFilesystemName, importJobName, 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: { resourceGroupName, amlFilesystemName, importJobName, options },
111
- spec: deleteOperationSpec,
112
- });
113
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
114
- restoreFrom: options?.resumeFrom,
115
- intervalInMs: options?.updateIntervalInMs,
116
- resourceLocationConfig: "location",
117
- });
118
- await poller.poll();
119
- return poller;
120
- }
121
- /**
122
- * Schedules an import job for deletion.
123
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
124
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
125
- * hyphens. Start and end with alphanumeric.
126
- * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
127
- * and end with alphanumeric.
128
- * @param options The options parameters.
129
- */
130
- async beginDeleteAndWait(resourceGroupName, amlFilesystemName, importJobName, options) {
131
- const poller = await this.beginDelete(resourceGroupName, amlFilesystemName, importJobName, options);
132
- return poller.pollUntilDone();
133
- }
134
- /**
135
- * Returns an import job.
136
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
137
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
138
- * hyphens. Start and end with alphanumeric.
139
- * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
140
- * and end with alphanumeric.
141
- * @param options The options parameters.
142
- */
143
- get(resourceGroupName, amlFilesystemName, importJobName, options) {
144
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, importJobName, options }, getOperationSpec);
145
- }
146
- /**
147
- * Create or update an import job.
148
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
149
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
150
- * hyphens. Start and end with alphanumeric.
151
- * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
152
- * and end with alphanumeric.
153
- * @param importJob Object containing the user-selectable properties of the import job. If read-only
154
- * properties are included, they must match the existing values of those properties.
155
- * @param options The options parameters.
156
- */
157
- async beginCreateOrUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
158
- const directSendOperation = async (args, spec) => {
159
- return this.client.sendOperationRequest(args, spec);
160
- };
161
- const sendOperationFn = async (args, spec) => {
162
- let currentRawResponse = undefined;
163
- const providedCallback = args.options?.onResponse;
164
- const callback = (rawResponse, flatResponse) => {
165
- currentRawResponse = rawResponse;
166
- providedCallback?.(rawResponse, flatResponse);
167
- };
168
- const updatedArgs = {
169
- ...args,
170
- options: {
171
- ...args.options,
172
- onResponse: callback,
173
- },
174
- };
175
- const flatResponse = await directSendOperation(updatedArgs, spec);
176
- return {
177
- flatResponse,
178
- rawResponse: {
179
- statusCode: currentRawResponse.status,
180
- body: currentRawResponse.parsedBody,
181
- headers: currentRawResponse.headers.toJSON(),
182
- },
183
- };
184
- };
185
- const lro = (0, lroImpl_js_1.createLroSpec)({
186
- sendOperationFn,
187
- args: {
188
- resourceGroupName,
189
- amlFilesystemName,
190
- importJobName,
191
- importJob,
192
- options,
193
- },
194
- spec: createOrUpdateOperationSpec,
195
- });
196
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
197
- restoreFrom: options?.resumeFrom,
198
- intervalInMs: options?.updateIntervalInMs,
199
- resourceLocationConfig: "azure-async-operation",
200
- });
201
- await poller.poll();
202
- return poller;
203
- }
204
- /**
205
- * Create or update an import job.
206
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
207
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
208
- * hyphens. Start and end with alphanumeric.
209
- * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
210
- * and end with alphanumeric.
211
- * @param importJob Object containing the user-selectable properties of the import job. If read-only
212
- * properties are included, they must match the existing values of those properties.
213
- * @param options The options parameters.
214
- */
215
- async beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
216
- const poller = await this.beginCreateOrUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options);
217
- return poller.pollUntilDone();
218
- }
219
- /**
220
- * Update an import job instance.
221
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
222
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
223
- * hyphens. Start and end with alphanumeric.
224
- * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
225
- * and end with alphanumeric.
226
- * @param importJob Object containing the user-selectable properties of the import job. If read-only
227
- * properties are included, they must match the existing values of those properties.
228
- * @param options The options parameters.
229
- */
230
- async beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
231
- const directSendOperation = async (args, spec) => {
232
- return this.client.sendOperationRequest(args, spec);
233
- };
234
- const sendOperationFn = async (args, spec) => {
235
- let currentRawResponse = undefined;
236
- const providedCallback = args.options?.onResponse;
237
- const callback = (rawResponse, flatResponse) => {
238
- currentRawResponse = rawResponse;
239
- providedCallback?.(rawResponse, flatResponse);
240
- };
241
- const updatedArgs = {
242
- ...args,
243
- options: {
244
- ...args.options,
245
- onResponse: callback,
246
- },
247
- };
248
- const flatResponse = await directSendOperation(updatedArgs, spec);
249
- return {
250
- flatResponse,
251
- rawResponse: {
252
- statusCode: currentRawResponse.status,
253
- body: currentRawResponse.parsedBody,
254
- headers: currentRawResponse.headers.toJSON(),
255
- },
256
- };
257
- };
258
- const lro = (0, lroImpl_js_1.createLroSpec)({
259
- sendOperationFn,
260
- args: {
261
- resourceGroupName,
262
- amlFilesystemName,
263
- importJobName,
264
- importJob,
265
- options,
266
- },
267
- spec: updateOperationSpec,
268
- });
269
- const poller = await (0, core_lro_1.createHttpPoller)(lro, {
270
- restoreFrom: options?.resumeFrom,
271
- intervalInMs: options?.updateIntervalInMs,
272
- resourceLocationConfig: "azure-async-operation",
273
- });
274
- await poller.poll();
275
- return poller;
276
- }
277
- /**
278
- * Update an import job instance.
279
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
280
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
281
- * hyphens. Start and end with alphanumeric.
282
- * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
283
- * and end with alphanumeric.
284
- * @param importJob Object containing the user-selectable properties of the import job. If read-only
285
- * properties are included, they must match the existing values of those properties.
286
- * @param options The options parameters.
287
- */
288
- async beginUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
289
- const poller = await this.beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options);
290
- return poller.pollUntilDone();
291
- }
292
- /**
293
- * Returns all import jobs the user has access to under an AML File System.
294
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
295
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
296
- * hyphens. Start and end with alphanumeric.
297
- * @param options The options parameters.
298
- */
299
- _listByAmlFilesystem(resourceGroupName, amlFilesystemName, options) {
300
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, options }, listByAmlFilesystemOperationSpec);
301
- }
302
- /**
303
- * ListByAmlFilesystemNext
304
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
305
- * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
306
- * hyphens. Start and end with alphanumeric.
307
- * @param nextLink The nextLink from the previous successful call to the ListByAmlFilesystem method.
308
- * @param options The options parameters.
309
- */
310
- _listByAmlFilesystemNext(resourceGroupName, amlFilesystemName, nextLink, options) {
311
- return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, nextLink, options }, listByAmlFilesystemNextOperationSpec);
312
- }
220
+ };
221
+ const flatResponse = await directSendOperation(updatedArgs, spec);
222
+ return {
223
+ flatResponse,
224
+ rawResponse: {
225
+ statusCode: currentRawResponse.status,
226
+ body: currentRawResponse.parsedBody,
227
+ headers: currentRawResponse.headers.toJSON()
228
+ }
229
+ };
230
+ };
231
+ const lro = (0, import_lroImpl.createLroSpec)({
232
+ sendOperationFn,
233
+ args: {
234
+ resourceGroupName,
235
+ amlFilesystemName,
236
+ importJobName,
237
+ importJob,
238
+ options
239
+ },
240
+ spec: createOrUpdateOperationSpec
241
+ });
242
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
243
+ restoreFrom: options?.resumeFrom,
244
+ intervalInMs: options?.updateIntervalInMs,
245
+ resourceLocationConfig: "azure-async-operation"
246
+ });
247
+ await poller.poll();
248
+ return poller;
249
+ }
250
+ /**
251
+ * Create or update an import job.
252
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
253
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
254
+ * hyphens. Start and end with alphanumeric.
255
+ * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
256
+ * and end with alphanumeric.
257
+ * @param importJob Object containing the user-selectable properties of the import job. If read-only
258
+ * properties are included, they must match the existing values of those properties.
259
+ * @param options The options parameters.
260
+ */
261
+ async beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
262
+ const poller = await this.beginCreateOrUpdate(
263
+ resourceGroupName,
264
+ amlFilesystemName,
265
+ importJobName,
266
+ importJob,
267
+ options
268
+ );
269
+ return poller.pollUntilDone();
270
+ }
271
+ /**
272
+ * Update an import job instance.
273
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
274
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
275
+ * hyphens. Start and end with alphanumeric.
276
+ * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
277
+ * and end with alphanumeric.
278
+ * @param importJob Object containing the user-selectable properties of the import job. If read-only
279
+ * properties are included, they must match the existing values of those properties.
280
+ * @param options The options parameters.
281
+ */
282
+ async beginUpdate(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
283
+ const directSendOperation = async (args, spec) => {
284
+ return this.client.sendOperationRequest(args, spec);
285
+ };
286
+ const sendOperationFn = async (args, spec) => {
287
+ let currentRawResponse = void 0;
288
+ const providedCallback = args.options?.onResponse;
289
+ const callback = (rawResponse, flatResponse2) => {
290
+ currentRawResponse = rawResponse;
291
+ providedCallback?.(rawResponse, flatResponse2);
292
+ };
293
+ const updatedArgs = {
294
+ ...args,
295
+ options: {
296
+ ...args.options,
297
+ onResponse: callback
298
+ }
299
+ };
300
+ const flatResponse = await directSendOperation(updatedArgs, spec);
301
+ return {
302
+ flatResponse,
303
+ rawResponse: {
304
+ statusCode: currentRawResponse.status,
305
+ body: currentRawResponse.parsedBody,
306
+ headers: currentRawResponse.headers.toJSON()
307
+ }
308
+ };
309
+ };
310
+ const lro = (0, import_lroImpl.createLroSpec)({
311
+ sendOperationFn,
312
+ args: {
313
+ resourceGroupName,
314
+ amlFilesystemName,
315
+ importJobName,
316
+ importJob,
317
+ options
318
+ },
319
+ spec: updateOperationSpec
320
+ });
321
+ const poller = await (0, import_core_lro.createHttpPoller)(lro, {
322
+ restoreFrom: options?.resumeFrom,
323
+ intervalInMs: options?.updateIntervalInMs,
324
+ resourceLocationConfig: "azure-async-operation"
325
+ });
326
+ await poller.poll();
327
+ return poller;
328
+ }
329
+ /**
330
+ * Update an import job instance.
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 importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start
335
+ * and end with alphanumeric.
336
+ * @param importJob Object containing the user-selectable properties of the import job. If read-only
337
+ * properties are included, they must match the existing values of those properties.
338
+ * @param options The options parameters.
339
+ */
340
+ async beginUpdateAndWait(resourceGroupName, amlFilesystemName, importJobName, importJob, options) {
341
+ const poller = await this.beginUpdate(
342
+ resourceGroupName,
343
+ amlFilesystemName,
344
+ importJobName,
345
+ importJob,
346
+ options
347
+ );
348
+ return poller.pollUntilDone();
349
+ }
350
+ /**
351
+ * Returns all import jobs the user has access to under an AML File System.
352
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
353
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
354
+ * hyphens. Start and end with alphanumeric.
355
+ * @param options The options parameters.
356
+ */
357
+ _listByAmlFilesystem(resourceGroupName, amlFilesystemName, options) {
358
+ return this.client.sendOperationRequest(
359
+ { resourceGroupName, amlFilesystemName, options },
360
+ listByAmlFilesystemOperationSpec
361
+ );
362
+ }
363
+ /**
364
+ * ListByAmlFilesystemNext
365
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
366
+ * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and
367
+ * hyphens. Start and end with alphanumeric.
368
+ * @param nextLink The nextLink from the previous successful call to the ListByAmlFilesystem method.
369
+ * @param options The options parameters.
370
+ */
371
+ _listByAmlFilesystemNext(resourceGroupName, amlFilesystemName, nextLink, options) {
372
+ return this.client.sendOperationRequest(
373
+ { resourceGroupName, amlFilesystemName, nextLink, options },
374
+ listByAmlFilesystemNextOperationSpec
375
+ );
376
+ }
313
377
  }
314
- exports.ImportJobsImpl = ImportJobsImpl;
315
- // Operation Specifications
316
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
378
+ const serializer = coreClient.createSerializer(
379
+ Mappers,
380
+ /* isXml */
381
+ false
382
+ );
317
383
  const deleteOperationSpec = {
318
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
319
- httpMethod: "DELETE",
320
- responses: {
321
- 200: {
322
- headersMapper: Mappers.ImportJobsDeleteHeaders,
323
- },
324
- 201: {
325
- headersMapper: Mappers.ImportJobsDeleteHeaders,
326
- },
327
- 202: {
328
- headersMapper: Mappers.ImportJobsDeleteHeaders,
329
- },
330
- 204: {
331
- headersMapper: Mappers.ImportJobsDeleteHeaders,
332
- },
333
- default: {
334
- bodyMapper: Mappers.ErrorResponse,
335
- },
384
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
385
+ httpMethod: "DELETE",
386
+ responses: {
387
+ 200: {
388
+ headersMapper: Mappers.ImportJobsDeleteHeaders
389
+ },
390
+ 201: {
391
+ headersMapper: Mappers.ImportJobsDeleteHeaders
392
+ },
393
+ 202: {
394
+ headersMapper: Mappers.ImportJobsDeleteHeaders
395
+ },
396
+ 204: {
397
+ headersMapper: Mappers.ImportJobsDeleteHeaders
336
398
  },
337
- queryParameters: [Parameters.apiVersion],
338
- urlParameters: [
339
- Parameters.$host,
340
- Parameters.subscriptionId,
341
- Parameters.resourceGroupName,
342
- Parameters.amlFilesystemName,
343
- Parameters.importJobName,
344
- ],
345
- headerParameters: [Parameters.accept],
346
- serializer,
399
+ default: {
400
+ bodyMapper: Mappers.ErrorResponse
401
+ }
402
+ },
403
+ queryParameters: [Parameters.apiVersion],
404
+ urlParameters: [
405
+ Parameters.$host,
406
+ Parameters.subscriptionId,
407
+ Parameters.resourceGroupName,
408
+ Parameters.amlFilesystemName,
409
+ Parameters.importJobName
410
+ ],
411
+ headerParameters: [Parameters.accept],
412
+ serializer
347
413
  };
348
414
  const getOperationSpec = {
349
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
350
- httpMethod: "GET",
351
- responses: {
352
- 200: {
353
- bodyMapper: Mappers.ImportJob,
354
- },
355
- default: {
356
- bodyMapper: Mappers.ErrorResponse,
357
- },
415
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
416
+ httpMethod: "GET",
417
+ responses: {
418
+ 200: {
419
+ bodyMapper: Mappers.ImportJob
358
420
  },
359
- queryParameters: [Parameters.apiVersion],
360
- urlParameters: [
361
- Parameters.$host,
362
- Parameters.subscriptionId,
363
- Parameters.resourceGroupName,
364
- Parameters.amlFilesystemName,
365
- Parameters.importJobName,
366
- ],
367
- headerParameters: [Parameters.accept],
368
- serializer,
421
+ default: {
422
+ bodyMapper: Mappers.ErrorResponse
423
+ }
424
+ },
425
+ queryParameters: [Parameters.apiVersion],
426
+ urlParameters: [
427
+ Parameters.$host,
428
+ Parameters.subscriptionId,
429
+ Parameters.resourceGroupName,
430
+ Parameters.amlFilesystemName,
431
+ Parameters.importJobName
432
+ ],
433
+ headerParameters: [Parameters.accept],
434
+ serializer
369
435
  };
370
436
  const createOrUpdateOperationSpec = {
371
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
372
- httpMethod: "PUT",
373
- responses: {
374
- 200: {
375
- bodyMapper: Mappers.ImportJob,
376
- },
377
- 201: {
378
- bodyMapper: Mappers.ImportJob,
379
- },
380
- 202: {
381
- bodyMapper: Mappers.ImportJob,
382
- },
383
- 204: {
384
- bodyMapper: Mappers.ImportJob,
385
- },
386
- default: {
387
- bodyMapper: Mappers.ErrorResponse,
388
- },
437
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
438
+ httpMethod: "PUT",
439
+ responses: {
440
+ 200: {
441
+ bodyMapper: Mappers.ImportJob
442
+ },
443
+ 201: {
444
+ bodyMapper: Mappers.ImportJob
445
+ },
446
+ 202: {
447
+ bodyMapper: Mappers.ImportJob
389
448
  },
390
- requestBody: Parameters.importJob,
391
- queryParameters: [Parameters.apiVersion],
392
- urlParameters: [
393
- Parameters.$host,
394
- Parameters.subscriptionId,
395
- Parameters.resourceGroupName,
396
- Parameters.amlFilesystemName,
397
- Parameters.importJobName,
398
- ],
399
- headerParameters: [Parameters.accept, Parameters.contentType],
400
- mediaType: "json",
401
- serializer,
449
+ 204: {
450
+ bodyMapper: Mappers.ImportJob
451
+ },
452
+ default: {
453
+ bodyMapper: Mappers.ErrorResponse
454
+ }
455
+ },
456
+ requestBody: Parameters.importJob,
457
+ queryParameters: [Parameters.apiVersion],
458
+ urlParameters: [
459
+ Parameters.$host,
460
+ Parameters.subscriptionId,
461
+ Parameters.resourceGroupName,
462
+ Parameters.amlFilesystemName,
463
+ Parameters.importJobName
464
+ ],
465
+ headerParameters: [Parameters.accept, Parameters.contentType],
466
+ mediaType: "json",
467
+ serializer
402
468
  };
403
469
  const updateOperationSpec = {
404
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
405
- httpMethod: "PATCH",
406
- responses: {
407
- 200: {
408
- bodyMapper: Mappers.ImportJob,
409
- },
410
- 201: {
411
- bodyMapper: Mappers.ImportJob,
412
- },
413
- 202: {
414
- bodyMapper: Mappers.ImportJob,
415
- },
416
- 204: {
417
- bodyMapper: Mappers.ImportJob,
418
- },
419
- default: {
420
- bodyMapper: Mappers.ErrorResponse,
421
- },
470
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}",
471
+ httpMethod: "PATCH",
472
+ responses: {
473
+ 200: {
474
+ bodyMapper: Mappers.ImportJob
475
+ },
476
+ 201: {
477
+ bodyMapper: Mappers.ImportJob
478
+ },
479
+ 202: {
480
+ bodyMapper: Mappers.ImportJob
422
481
  },
423
- requestBody: Parameters.importJob1,
424
- queryParameters: [Parameters.apiVersion],
425
- urlParameters: [
426
- Parameters.$host,
427
- Parameters.subscriptionId,
428
- Parameters.resourceGroupName,
429
- Parameters.amlFilesystemName,
430
- Parameters.importJobName,
431
- ],
432
- headerParameters: [Parameters.accept, Parameters.contentType],
433
- mediaType: "json",
434
- serializer,
482
+ 204: {
483
+ bodyMapper: Mappers.ImportJob
484
+ },
485
+ default: {
486
+ bodyMapper: Mappers.ErrorResponse
487
+ }
488
+ },
489
+ requestBody: Parameters.importJob1,
490
+ queryParameters: [Parameters.apiVersion],
491
+ urlParameters: [
492
+ Parameters.$host,
493
+ Parameters.subscriptionId,
494
+ Parameters.resourceGroupName,
495
+ Parameters.amlFilesystemName,
496
+ Parameters.importJobName
497
+ ],
498
+ headerParameters: [Parameters.accept, Parameters.contentType],
499
+ mediaType: "json",
500
+ serializer
435
501
  };
436
502
  const listByAmlFilesystemOperationSpec = {
437
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs",
438
- httpMethod: "GET",
439
- responses: {
440
- 200: {
441
- bodyMapper: Mappers.ImportJobsListResult,
442
- },
443
- default: {
444
- bodyMapper: Mappers.CloudError,
445
- },
503
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs",
504
+ httpMethod: "GET",
505
+ responses: {
506
+ 200: {
507
+ bodyMapper: Mappers.ImportJobsListResult
446
508
  },
447
- queryParameters: [Parameters.apiVersion],
448
- urlParameters: [
449
- Parameters.$host,
450
- Parameters.subscriptionId,
451
- Parameters.resourceGroupName,
452
- Parameters.amlFilesystemName,
453
- ],
454
- headerParameters: [Parameters.accept],
455
- serializer,
509
+ default: {
510
+ bodyMapper: Mappers.CloudError
511
+ }
512
+ },
513
+ queryParameters: [Parameters.apiVersion],
514
+ urlParameters: [
515
+ Parameters.$host,
516
+ Parameters.subscriptionId,
517
+ Parameters.resourceGroupName,
518
+ Parameters.amlFilesystemName
519
+ ],
520
+ headerParameters: [Parameters.accept],
521
+ serializer
456
522
  };
457
523
  const listByAmlFilesystemNextOperationSpec = {
458
- path: "{nextLink}",
459
- httpMethod: "GET",
460
- responses: {
461
- 200: {
462
- bodyMapper: Mappers.ImportJobsListResult,
463
- },
464
- default: {
465
- bodyMapper: Mappers.CloudError,
466
- },
524
+ path: "{nextLink}",
525
+ httpMethod: "GET",
526
+ responses: {
527
+ 200: {
528
+ bodyMapper: Mappers.ImportJobsListResult
467
529
  },
468
- urlParameters: [
469
- Parameters.$host,
470
- Parameters.subscriptionId,
471
- Parameters.resourceGroupName,
472
- Parameters.amlFilesystemName,
473
- Parameters.nextLink,
474
- ],
475
- headerParameters: [Parameters.accept],
476
- serializer,
530
+ default: {
531
+ bodyMapper: Mappers.CloudError
532
+ }
533
+ },
534
+ urlParameters: [
535
+ Parameters.$host,
536
+ Parameters.subscriptionId,
537
+ Parameters.resourceGroupName,
538
+ Parameters.amlFilesystemName,
539
+ Parameters.nextLink
540
+ ],
541
+ headerParameters: [Parameters.accept],
542
+ serializer
477
543
  };
478
- //# sourceMappingURL=importJobs.js.map
544
+ // Annotate the CommonJS export names for ESM import in node:
545
+ 0 && (module.exports = {
546
+ ImportJobsImpl
547
+ });