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