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