@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
@@ -0,0 +1,473 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { setContinuationToken } from "../pagingHelper.js";
4
+ import * as coreClient from "@azure/core-client";
5
+ import * as Mappers from "../models/mappers.js";
6
+ import * as Parameters from "../models/parameters.js";
7
+ import { createHttpPoller } from "@azure/core-lro";
8
+ import { createLroSpec } from "../lroImpl.js";
9
+ /// <reference lib="esnext.asynciterable" />
10
+ /** Class containing ExpansionJobs operations. */
11
+ export class ExpansionJobsImpl {
12
+ client;
13
+ /**
14
+ * Initialize a new instance of the class ExpansionJobs class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Returns all the expansion 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
+ };
43
+ }
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;
53
+ }
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;
60
+ }
61
+ }
62
+ async *listByAmlFilesystemPagingAll(resourceGroupName, amlFilesystemName, options) {
63
+ for await (const page of this.listByAmlFilesystemPagingPage(resourceGroupName, amlFilesystemName, options)) {
64
+ yield* page;
65
+ }
66
+ }
67
+ /**
68
+ * Schedules an expansion 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 expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
73
+ * Start and end with alphanumeric.
74
+ * @param options The options parameters.
75
+ */
76
+ async beginDelete(resourceGroupName, amlFilesystemName, expansionJobName, 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, expansionJobName, 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 expansion 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 expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
123
+ * Start and end with alphanumeric.
124
+ * @param options The options parameters.
125
+ */
126
+ async beginDeleteAndWait(resourceGroupName, amlFilesystemName, expansionJobName, options) {
127
+ const poller = await this.beginDelete(resourceGroupName, amlFilesystemName, expansionJobName, options);
128
+ return poller.pollUntilDone();
129
+ }
130
+ /**
131
+ * Returns an expansion 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 expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
136
+ * Start and end with alphanumeric.
137
+ * @param options The options parameters.
138
+ */
139
+ get(resourceGroupName, amlFilesystemName, expansionJobName, options) {
140
+ return this.client.sendOperationRequest({ resourceGroupName, amlFilesystemName, expansionJobName, options }, getOperationSpec);
141
+ }
142
+ /**
143
+ * Create or update an expansion 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 expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
148
+ * Start and end with alphanumeric.
149
+ * @param expansionJob Object containing the user-selectable properties of the expansion job. If
150
+ * read-only properties are included, they must match the existing values of those properties.
151
+ * @param options The options parameters.
152
+ */
153
+ async beginCreateOrUpdate(resourceGroupName, amlFilesystemName, expansionJobName, expansionJob, 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
+ expansionJobName,
187
+ expansionJob,
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 expansion 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 expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
206
+ * Start and end with alphanumeric.
207
+ * @param expansionJob Object containing the user-selectable properties of the expansion job. If
208
+ * read-only properties are included, they must match the existing values of those properties.
209
+ * @param options The options parameters.
210
+ */
211
+ async beginCreateOrUpdateAndWait(resourceGroupName, amlFilesystemName, expansionJobName, expansionJob, options) {
212
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, amlFilesystemName, expansionJobName, expansionJob, options);
213
+ return poller.pollUntilDone();
214
+ }
215
+ /**
216
+ * Update an expansion 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 expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
221
+ * Start and end with alphanumeric.
222
+ * @param expansionJob Object containing the user-selectable properties of the expansion job. If
223
+ * read-only properties are included, they must match the existing values of those properties.
224
+ * @param options The options parameters.
225
+ */
226
+ async beginUpdate(resourceGroupName, amlFilesystemName, expansionJobName, expansionJob, 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
+ expansionJobName,
260
+ expansionJob,
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 expansion 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 expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.
279
+ * Start and end with alphanumeric.
280
+ * @param expansionJob Object containing the user-selectable properties of the expansion job. If
281
+ * read-only properties are included, they must match the existing values of those properties.
282
+ * @param options The options parameters.
283
+ */
284
+ async beginUpdateAndWait(resourceGroupName, amlFilesystemName, expansionJobName, expansionJob, options) {
285
+ const poller = await this.beginUpdate(resourceGroupName, amlFilesystemName, expansionJobName, expansionJob, options);
286
+ return poller.pollUntilDone();
287
+ }
288
+ /**
289
+ * Returns all the expansion 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
+ }
309
+ }
310
+ // Operation Specifications
311
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
312
+ const deleteOperationSpec = {
313
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}",
314
+ httpMethod: "DELETE",
315
+ responses: {
316
+ 200: {
317
+ headersMapper: Mappers.ExpansionJobsDeleteHeaders,
318
+ },
319
+ 201: {
320
+ headersMapper: Mappers.ExpansionJobsDeleteHeaders,
321
+ },
322
+ 202: {
323
+ headersMapper: Mappers.ExpansionJobsDeleteHeaders,
324
+ },
325
+ 204: {
326
+ headersMapper: Mappers.ExpansionJobsDeleteHeaders,
327
+ },
328
+ default: {
329
+ bodyMapper: Mappers.ErrorResponse,
330
+ },
331
+ },
332
+ queryParameters: [Parameters.apiVersion],
333
+ urlParameters: [
334
+ Parameters.$host,
335
+ Parameters.subscriptionId,
336
+ Parameters.resourceGroupName,
337
+ Parameters.amlFilesystemName,
338
+ Parameters.expansionJobName,
339
+ ],
340
+ headerParameters: [Parameters.accept],
341
+ serializer,
342
+ };
343
+ const getOperationSpec = {
344
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}",
345
+ httpMethod: "GET",
346
+ responses: {
347
+ 200: {
348
+ bodyMapper: Mappers.ExpansionJob,
349
+ },
350
+ default: {
351
+ bodyMapper: Mappers.CloudError,
352
+ },
353
+ },
354
+ queryParameters: [Parameters.apiVersion],
355
+ urlParameters: [
356
+ Parameters.$host,
357
+ Parameters.subscriptionId,
358
+ Parameters.resourceGroupName,
359
+ Parameters.amlFilesystemName,
360
+ Parameters.expansionJobName,
361
+ ],
362
+ headerParameters: [Parameters.accept],
363
+ serializer,
364
+ };
365
+ const createOrUpdateOperationSpec = {
366
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}",
367
+ httpMethod: "PUT",
368
+ responses: {
369
+ 200: {
370
+ bodyMapper: Mappers.ExpansionJob,
371
+ },
372
+ 201: {
373
+ bodyMapper: Mappers.ExpansionJob,
374
+ },
375
+ 202: {
376
+ bodyMapper: Mappers.ExpansionJob,
377
+ },
378
+ 204: {
379
+ bodyMapper: Mappers.ExpansionJob,
380
+ },
381
+ default: {
382
+ bodyMapper: Mappers.ErrorResponse,
383
+ },
384
+ },
385
+ requestBody: Parameters.expansionJob,
386
+ queryParameters: [Parameters.apiVersion],
387
+ urlParameters: [
388
+ Parameters.$host,
389
+ Parameters.subscriptionId,
390
+ Parameters.resourceGroupName,
391
+ Parameters.amlFilesystemName,
392
+ Parameters.expansionJobName,
393
+ ],
394
+ headerParameters: [Parameters.accept, Parameters.contentType],
395
+ mediaType: "json",
396
+ serializer,
397
+ };
398
+ const updateOperationSpec = {
399
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}",
400
+ httpMethod: "PATCH",
401
+ responses: {
402
+ 200: {
403
+ bodyMapper: Mappers.ExpansionJob,
404
+ },
405
+ 201: {
406
+ bodyMapper: Mappers.ExpansionJob,
407
+ },
408
+ 202: {
409
+ bodyMapper: Mappers.ExpansionJob,
410
+ },
411
+ 204: {
412
+ bodyMapper: Mappers.ExpansionJob,
413
+ },
414
+ default: {
415
+ bodyMapper: Mappers.ErrorResponse,
416
+ },
417
+ },
418
+ requestBody: Parameters.expansionJob1,
419
+ queryParameters: [Parameters.apiVersion],
420
+ urlParameters: [
421
+ Parameters.$host,
422
+ Parameters.subscriptionId,
423
+ Parameters.resourceGroupName,
424
+ Parameters.amlFilesystemName,
425
+ Parameters.expansionJobName,
426
+ ],
427
+ headerParameters: [Parameters.accept, Parameters.contentType],
428
+ mediaType: "json",
429
+ serializer,
430
+ };
431
+ const listByAmlFilesystemOperationSpec = {
432
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs",
433
+ httpMethod: "GET",
434
+ responses: {
435
+ 200: {
436
+ bodyMapper: Mappers.ExpansionJobsListResult,
437
+ },
438
+ default: {
439
+ bodyMapper: Mappers.CloudError,
440
+ },
441
+ },
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,
451
+ };
452
+ const listByAmlFilesystemNextOperationSpec = {
453
+ path: "{nextLink}",
454
+ httpMethod: "GET",
455
+ responses: {
456
+ 200: {
457
+ bodyMapper: Mappers.ExpansionJobsListResult,
458
+ },
459
+ default: {
460
+ bodyMapper: Mappers.CloudError,
461
+ },
462
+ },
463
+ urlParameters: [
464
+ Parameters.$host,
465
+ Parameters.subscriptionId,
466
+ Parameters.resourceGroupName,
467
+ Parameters.amlFilesystemName,
468
+ Parameters.nextLink,
469
+ ],
470
+ headerParameters: [Parameters.accept],
471
+ serializer,
472
+ };
473
+ //# sourceMappingURL=expansionJobs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expansionJobs.js","sourceRoot":"","sources":["../../../src/operations/expansionJobs.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAoC,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkB9C,4CAA4C;AAC5C,iDA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AU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ExpansionJobs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageCacheManagementClient } from \"../storageCacheManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ExpansionJob,\n ExpansionJobsListByAmlFilesystemNextOptionalParams,\n ExpansionJobsListByAmlFilesystemOptionalParams,\n ExpansionJobsListByAmlFilesystemResponse,\n ExpansionJobsDeleteOptionalParams,\n ExpansionJobsDeleteResponse,\n ExpansionJobsGetOptionalParams,\n ExpansionJobsGetResponse,\n ExpansionJobsCreateOrUpdateOptionalParams,\n ExpansionJobsCreateOrUpdateResponse,\n ExpansionJobUpdate,\n ExpansionJobsUpdateOptionalParams,\n ExpansionJobsUpdateResponse,\n ExpansionJobsListByAmlFilesystemNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ExpansionJobs operations. */\nexport class ExpansionJobsImpl implements ExpansionJobs {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class ExpansionJobs class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all the expansion jobs the user has access to under an AML File System.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n public listByAmlFilesystem(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ExpansionJobsListByAmlFilesystemOptionalParams,\n ): PagedAsyncIterableIterator<ExpansionJob> {\n const iter = this.listByAmlFilesystemPagingAll(resourceGroupName, amlFilesystemName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAmlFilesystemPagingPage(\n resourceGroupName,\n amlFilesystemName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByAmlFilesystemPagingPage(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ExpansionJobsListByAmlFilesystemOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ExpansionJob[]> {\n let result: ExpansionJobsListByAmlFilesystemResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAmlFilesystem(resourceGroupName, amlFilesystemName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAmlFilesystemNext(\n resourceGroupName,\n amlFilesystemName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAmlFilesystemPagingAll(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ExpansionJobsListByAmlFilesystemOptionalParams,\n ): AsyncIterableIterator<ExpansionJob> {\n for await (const page of this.listByAmlFilesystemPagingPage(\n resourceGroupName,\n amlFilesystemName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Schedules an expansion job for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n options?: ExpansionJobsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<ExpansionJobsDeleteResponse>, ExpansionJobsDeleteResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ExpansionJobsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, amlFilesystemName, expansionJobName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ExpansionJobsDeleteResponse,\n OperationState<ExpansionJobsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Schedules an expansion job for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n options?: ExpansionJobsDeleteOptionalParams,\n ): Promise<ExpansionJobsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n amlFilesystemName,\n expansionJobName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns an expansion job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n options?: ExpansionJobsGetOptionalParams,\n ): Promise<ExpansionJobsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, expansionJobName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update an expansion job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param expansionJob Object containing the user-selectable properties of the expansion job. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n expansionJob: ExpansionJob,\n options?: ExpansionJobsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ExpansionJobsCreateOrUpdateResponse>,\n ExpansionJobsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ExpansionJobsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n amlFilesystemName,\n expansionJobName,\n expansionJob,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ExpansionJobsCreateOrUpdateResponse,\n OperationState<ExpansionJobsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update an expansion job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param expansionJob Object containing the user-selectable properties of the expansion job. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n expansionJob: ExpansionJob,\n options?: ExpansionJobsCreateOrUpdateOptionalParams,\n ): Promise<ExpansionJobsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n amlFilesystemName,\n expansionJobName,\n expansionJob,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an expansion job instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param expansionJob Object containing the user-selectable properties of the expansion job. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n expansionJob: ExpansionJobUpdate,\n options?: ExpansionJobsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<ExpansionJobsUpdateResponse>, ExpansionJobsUpdateResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ExpansionJobsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n amlFilesystemName,\n expansionJobName,\n expansionJob,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ExpansionJobsUpdateResponse,\n OperationState<ExpansionJobsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an expansion job instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param expansionJobName Name for the expansion job. Allows alphanumerics, underscores, and hyphens.\n * Start and end with alphanumeric.\n * @param expansionJob Object containing the user-selectable properties of the expansion job. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n expansionJobName: string,\n expansionJob: ExpansionJobUpdate,\n options?: ExpansionJobsUpdateOptionalParams,\n ): Promise<ExpansionJobsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n amlFilesystemName,\n expansionJobName,\n expansionJob,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns all the expansion jobs the user has access to under an AML File System.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n private _listByAmlFilesystem(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ExpansionJobsListByAmlFilesystemOptionalParams,\n ): Promise<ExpansionJobsListByAmlFilesystemResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, options },\n listByAmlFilesystemOperationSpec,\n );\n }\n\n /**\n * ListByAmlFilesystemNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param nextLink The nextLink from the previous successful call to the ListByAmlFilesystem method.\n * @param options The options parameters.\n */\n private _listByAmlFilesystemNext(\n resourceGroupName: string,\n amlFilesystemName: string,\n nextLink: string,\n options?: ExpansionJobsListByAmlFilesystemNextOptionalParams,\n ): Promise<ExpansionJobsListByAmlFilesystemNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, nextLink, options },\n listByAmlFilesystemNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ExpansionJobsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.ExpansionJobsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.ExpansionJobsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.ExpansionJobsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.expansionJobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExpansionJob,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.expansionJobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExpansionJob,\n },\n 201: {\n bodyMapper: Mappers.ExpansionJob,\n },\n 202: {\n bodyMapper: Mappers.ExpansionJob,\n },\n 204: {\n bodyMapper: Mappers.ExpansionJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.expansionJob,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.expansionJobName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs/{expansionJobName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExpansionJob,\n },\n 201: {\n bodyMapper: Mappers.ExpansionJob,\n },\n 202: {\n bodyMapper: Mappers.ExpansionJob,\n },\n 204: {\n bodyMapper: Mappers.ExpansionJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.expansionJob1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.expansionJobName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByAmlFilesystemOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/expansionJobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExpansionJobsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByAmlFilesystemNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExpansionJobsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -2,6 +2,7 @@ export * from "./amlFilesystems.js";
2
2
  export * from "./autoExportJobs.js";
3
3
  export * from "./importJobs.js";
4
4
  export * from "./autoImportJobs.js";
5
+ export * from "./expansionJobs.js";
5
6
  export * from "./operations.js";
6
7
  export * from "./skus.js";
7
8
  export * from "./usageModels.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
@@ -6,6 +6,7 @@ export * from "./amlFilesystems.js";
6
6
  export * from "./autoExportJobs.js";
7
7
  export * from "./importJobs.js";
8
8
  export * from "./autoImportJobs.js";
9
+ export * from "./expansionJobs.js";
9
10
  export * from "./operations.js";
10
11
  export * from "./skus.js";
11
12
  export * from "./usageModels.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nexport * from \"./amlFilesystems.js\";\nexport * from \"./autoExportJobs.js\";\nexport * from \"./importJobs.js\";\nexport * from \"./autoImportJobs.js\";\nexport * from \"./operations.js\";\nexport * from \"./skus.js\";\nexport * from \"./usageModels.js\";\nexport * from \"./ascOperations.js\";\nexport * from \"./ascUsages.js\";\nexport * from \"./caches.js\";\nexport * from \"./storageTargets.js\";\nexport * from \"./storageTargetOperations.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nexport * from \"./amlFilesystems.js\";\nexport * from \"./autoExportJobs.js\";\nexport * from \"./importJobs.js\";\nexport * from \"./autoImportJobs.js\";\nexport * from \"./expansionJobs.js\";\nexport * from \"./operations.js\";\nexport * from \"./skus.js\";\nexport * from \"./usageModels.js\";\nexport * from \"./ascOperations.js\";\nexport * from \"./ascUsages.js\";\nexport * from \"./caches.js\";\nexport * from \"./storageTargets.js\";\nexport * from \"./storageTargetOperations.js\";\n"]}