@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,179 +1,191 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- // Code generated by Microsoft (R) AutoRest Code Generator.
4
- // Changes may cause incorrect behavior and will be lost if the code is regenerated.
5
1
  import * as coreClient from "@azure/core-client";
6
2
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
7
- import { AmlFilesystemsImpl, AutoExportJobsImpl, ImportJobsImpl, AutoImportJobsImpl, OperationsImpl, SkusImpl, UsageModelsImpl, AscOperationsImpl, AscUsagesImpl, CachesImpl, StorageTargetsImpl, StorageTargetOperationsImpl, } from "./operations/index.js";
3
+ import {
4
+ AmlFilesystemsImpl,
5
+ AutoExportJobsImpl,
6
+ ImportJobsImpl,
7
+ AutoImportJobsImpl,
8
+ ExpansionJobsImpl,
9
+ OperationsImpl,
10
+ SkusImpl,
11
+ UsageModelsImpl,
12
+ AscOperationsImpl,
13
+ AscUsagesImpl,
14
+ CachesImpl,
15
+ StorageTargetsImpl,
16
+ StorageTargetOperationsImpl
17
+ } from "./operations/index.js";
8
18
  import * as Parameters from "./models/parameters.js";
9
19
  import * as Mappers from "./models/mappers.js";
10
- export class StorageCacheManagementClient extends coreClient.ServiceClient {
11
- $host;
12
- apiVersion;
13
- subscriptionId;
14
- /**
15
- * Initializes a new instance of the StorageCacheManagementClient class.
16
- * @param credentials Subscription credentials which uniquely identify client subscription.
17
- * @param subscriptionId The ID of the target subscription.
18
- * @param options The parameter options
19
- */
20
- constructor(credentials, subscriptionId, options) {
21
- if (credentials === undefined) {
22
- throw new Error("'credentials' cannot be null");
23
- }
24
- if (subscriptionId === undefined) {
25
- throw new Error("'subscriptionId' cannot be null");
26
- }
27
- // Initializing default values for options
28
- if (!options) {
29
- options = {};
30
- }
31
- const defaults = {
32
- requestContentType: "application/json; charset=utf-8",
33
- credential: credentials,
34
- };
35
- const packageDetails = `azsdk-js-arm-storagecache/8.1.0`;
36
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
- : `${packageDetails}`;
39
- const optionsWithDefaults = {
40
- ...defaults,
41
- ...options,
42
- userAgentOptions: {
43
- userAgentPrefix,
44
- },
45
- endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
46
- };
47
- super(optionsWithDefaults);
48
- let bearerTokenAuthenticationPolicyFound = false;
49
- if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
50
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
51
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
52
- }
53
- if (!options ||
54
- !options.pipeline ||
55
- options.pipeline.getOrderedPolicies().length == 0 ||
56
- !bearerTokenAuthenticationPolicyFound) {
57
- this.pipeline.removePolicy({
58
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
59
- });
60
- this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
61
- credential: credentials,
62
- scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
63
- challengeCallbacks: {
64
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
65
- },
66
- }));
67
- }
68
- // Parameter assignments
69
- this.subscriptionId = subscriptionId;
70
- // Assigning values to Constant parameters
71
- this.$host = options.$host || "https://management.azure.com";
72
- this.apiVersion = options.apiVersion || "2025-07-01";
73
- this.amlFilesystems = new AmlFilesystemsImpl(this);
74
- this.autoExportJobs = new AutoExportJobsImpl(this);
75
- this.importJobs = new ImportJobsImpl(this);
76
- this.autoImportJobs = new AutoImportJobsImpl(this);
77
- this.operations = new OperationsImpl(this);
78
- this.skus = new SkusImpl(this);
79
- this.usageModels = new UsageModelsImpl(this);
80
- this.ascOperations = new AscOperationsImpl(this);
81
- this.ascUsages = new AscUsagesImpl(this);
82
- this.caches = new CachesImpl(this);
83
- this.storageTargets = new StorageTargetsImpl(this);
84
- this.storageTargetOperations = new StorageTargetOperationsImpl(this);
85
- this.addCustomApiVersionPolicy(options.apiVersion);
20
+ class StorageCacheManagementClient extends coreClient.ServiceClient {
21
+ $host;
22
+ apiVersion;
23
+ subscriptionId;
24
+ /**
25
+ * Initializes a new instance of the StorageCacheManagementClient class.
26
+ * @param credentials Subscription credentials which uniquely identify client subscription.
27
+ * @param subscriptionId The ID of the target subscription.
28
+ * @param options The parameter options
29
+ */
30
+ constructor(credentials, subscriptionId, options) {
31
+ if (credentials === void 0) {
32
+ throw new Error("'credentials' cannot be null");
86
33
  }
87
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
88
- addCustomApiVersionPolicy(apiVersion) {
89
- if (!apiVersion) {
90
- return;
91
- }
92
- const apiVersionPolicy = {
93
- name: "CustomApiVersionPolicy",
94
- async sendRequest(request, next) {
95
- const param = request.url.split("?");
96
- if (param.length > 1) {
97
- const newParams = param[1].split("&").map((item) => {
98
- if (item.indexOf("api-version") > -1) {
99
- return "api-version=" + apiVersion;
100
- }
101
- else {
102
- return item;
103
- }
104
- });
105
- request.url = param[0] + "?" + newParams.join("&");
106
- }
107
- return next(request);
108
- },
109
- };
110
- this.pipeline.addPolicy(apiVersionPolicy);
34
+ if (subscriptionId === void 0) {
35
+ throw new Error("'subscriptionId' cannot be null");
111
36
  }
112
- /**
113
- * Check that subnets will be valid for AML file system create calls.
114
- * @param options The options parameters.
115
- */
116
- checkAmlFSSubnets(options) {
117
- return this.sendOperationRequest({ options }, checkAmlFSSubnetsOperationSpec);
37
+ if (!options) {
38
+ options = {};
118
39
  }
119
- /**
120
- * Get the number of available IP addresses needed for the AML file system information provided.
121
- * @param options The options parameters.
122
- */
123
- getRequiredAmlFSSubnetsSize(options) {
124
- return this.sendOperationRequest({ options }, getRequiredAmlFSSubnetsSizeOperationSpec);
40
+ const defaults = {
41
+ requestContentType: "application/json; charset=utf-8",
42
+ credential: credentials
43
+ };
44
+ const packageDetails = `azsdk-js-arm-storagecache/8.2.0`;
45
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
46
+ const optionsWithDefaults = {
47
+ ...defaults,
48
+ ...options,
49
+ userAgentOptions: {
50
+ userAgentPrefix
51
+ },
52
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
53
+ };
54
+ super(optionsWithDefaults);
55
+ let bearerTokenAuthenticationPolicyFound = false;
56
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
57
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
58
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
59
+ (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName
60
+ );
125
61
  }
126
- amlFilesystems;
127
- autoExportJobs;
128
- importJobs;
129
- autoImportJobs;
130
- operations;
131
- skus;
132
- usageModels;
133
- ascOperations;
134
- ascUsages;
135
- caches;
136
- storageTargets;
137
- storageTargetOperations;
62
+ if (!options || !options.pipeline || options.pipeline.getOrderedPolicies().length == 0 || !bearerTokenAuthenticationPolicyFound) {
63
+ this.pipeline.removePolicy({
64
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
65
+ });
66
+ this.pipeline.addPolicy(
67
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
68
+ credential: credentials,
69
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
70
+ challengeCallbacks: {
71
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
72
+ }
73
+ })
74
+ );
75
+ }
76
+ this.subscriptionId = subscriptionId;
77
+ this.$host = options.$host || "https://management.azure.com";
78
+ this.apiVersion = options.apiVersion || "2026-01-01";
79
+ this.amlFilesystems = new AmlFilesystemsImpl(this);
80
+ this.autoExportJobs = new AutoExportJobsImpl(this);
81
+ this.importJobs = new ImportJobsImpl(this);
82
+ this.autoImportJobs = new AutoImportJobsImpl(this);
83
+ this.expansionJobs = new ExpansionJobsImpl(this);
84
+ this.operations = new OperationsImpl(this);
85
+ this.skus = new SkusImpl(this);
86
+ this.usageModels = new UsageModelsImpl(this);
87
+ this.ascOperations = new AscOperationsImpl(this);
88
+ this.ascUsages = new AscUsagesImpl(this);
89
+ this.caches = new CachesImpl(this);
90
+ this.storageTargets = new StorageTargetsImpl(this);
91
+ this.storageTargetOperations = new StorageTargetOperationsImpl(this);
92
+ this.addCustomApiVersionPolicy(options.apiVersion);
93
+ }
94
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
95
+ addCustomApiVersionPolicy(apiVersion) {
96
+ if (!apiVersion) {
97
+ return;
98
+ }
99
+ const apiVersionPolicy = {
100
+ name: "CustomApiVersionPolicy",
101
+ async sendRequest(request, next) {
102
+ const param = request.url.split("?");
103
+ if (param.length > 1) {
104
+ const newParams = param[1].split("&").map((item) => {
105
+ if (item.indexOf("api-version") > -1) {
106
+ return "api-version=" + apiVersion;
107
+ } else {
108
+ return item;
109
+ }
110
+ });
111
+ request.url = param[0] + "?" + newParams.join("&");
112
+ }
113
+ return next(request);
114
+ }
115
+ };
116
+ this.pipeline.addPolicy(apiVersionPolicy);
117
+ }
118
+ /**
119
+ * Check that subnets will be valid for AML file system create calls.
120
+ * @param options The options parameters.
121
+ */
122
+ checkAmlFSSubnets(options) {
123
+ return this.sendOperationRequest({ options }, checkAmlFSSubnetsOperationSpec);
124
+ }
125
+ /**
126
+ * Get the number of available IP addresses needed for the AML file system information provided.
127
+ * @param options The options parameters.
128
+ */
129
+ getRequiredAmlFSSubnetsSize(options) {
130
+ return this.sendOperationRequest({ options }, getRequiredAmlFSSubnetsSizeOperationSpec);
131
+ }
132
+ amlFilesystems;
133
+ autoExportJobs;
134
+ importJobs;
135
+ autoImportJobs;
136
+ expansionJobs;
137
+ operations;
138
+ skus;
139
+ usageModels;
140
+ ascOperations;
141
+ ascUsages;
142
+ caches;
143
+ storageTargets;
144
+ storageTargetOperations;
138
145
  }
139
- // Operation Specifications
140
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
146
+ const serializer = coreClient.createSerializer(
147
+ Mappers,
148
+ /* isXml */
149
+ false
150
+ );
141
151
  const checkAmlFSSubnetsOperationSpec = {
142
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/checkAmlFSSubnets",
143
- httpMethod: "POST",
144
- responses: {
145
- 200: {},
146
- 400: {
147
- bodyMapper: Mappers.AmlFilesystemCheckSubnetError,
148
- isError: true,
149
- },
150
- default: {
151
- bodyMapper: Mappers.CloudError,
152
- },
152
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/checkAmlFSSubnets",
153
+ httpMethod: "POST",
154
+ responses: {
155
+ 200: {},
156
+ 400: {
157
+ bodyMapper: Mappers.AmlFilesystemCheckSubnetError,
158
+ isError: true
153
159
  },
154
- requestBody: Parameters.amlFilesystemSubnetInfo,
155
- queryParameters: [Parameters.apiVersion],
156
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
157
- headerParameters: [Parameters.accept, Parameters.contentType],
158
- mediaType: "json",
159
- serializer,
160
+ default: {
161
+ bodyMapper: Mappers.CloudError
162
+ }
163
+ },
164
+ requestBody: Parameters.amlFilesystemSubnetInfo,
165
+ queryParameters: [Parameters.apiVersion],
166
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
167
+ headerParameters: [Parameters.accept, Parameters.contentType],
168
+ mediaType: "json",
169
+ serializer
160
170
  };
161
171
  const getRequiredAmlFSSubnetsSizeOperationSpec = {
162
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/getRequiredAmlFSSubnetsSize",
163
- httpMethod: "POST",
164
- responses: {
165
- 200: {
166
- bodyMapper: Mappers.RequiredAmlFilesystemSubnetsSize,
167
- },
168
- default: {
169
- bodyMapper: Mappers.CloudError,
170
- },
172
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/getRequiredAmlFSSubnetsSize",
173
+ httpMethod: "POST",
174
+ responses: {
175
+ 200: {
176
+ bodyMapper: Mappers.RequiredAmlFilesystemSubnetsSize
171
177
  },
172
- requestBody: Parameters.requiredAMLFilesystemSubnetsSizeInfo,
173
- queryParameters: [Parameters.apiVersion],
174
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
175
- headerParameters: [Parameters.accept, Parameters.contentType],
176
- mediaType: "json",
177
- serializer,
178
+ default: {
179
+ bodyMapper: Mappers.CloudError
180
+ }
181
+ },
182
+ requestBody: Parameters.requiredAMLFilesystemSubnetsSizeInfo,
183
+ queryParameters: [Parameters.apiVersion],
184
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
185
+ headerParameters: [Parameters.accept, Parameters.contentType],
186
+ mediaType: "json",
187
+ serializer
188
+ };
189
+ export {
190
+ StorageCacheManagementClient
178
191
  };
179
- //# sourceMappingURL=storageCacheManagementClient.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"storageCacheManagementClient.js","sourceRoot":"","sources":["../../src/storageCacheManagementClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAe/B,OAAO,KAA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;KACF;IACD,WAAW,EAAE,UAAU,CAAC,uBAAuB;IAC/C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,8FAA8F;IACpG,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,oCAAoC;IAC5D,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AmlFilesystemsImpl,\n AutoExportJobsImpl,\n ImportJobsImpl,\n AutoImportJobsImpl,\n OperationsImpl,\n SkusImpl,\n UsageModelsImpl,\n AscOperationsImpl,\n AscUsagesImpl,\n CachesImpl,\n StorageTargetsImpl,\n StorageTargetOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n AmlFilesystems,\n AutoExportJobs,\n ImportJobs,\n AutoImportJobs,\n Operations,\n Skus,\n UsageModels,\n AscOperations,\n AscUsages,\n Caches,\n StorageTargets,\n StorageTargetOperations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n StorageCacheManagementClientOptionalParams,\n CheckAmlFSSubnetsOptionalParams,\n GetRequiredAmlFSSubnetsSizeOptionalParams,\n GetRequiredAmlFSSubnetsSizeResponse,\n} from \"./models/index.js\";\n\nexport class StorageCacheManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageCacheManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageCacheManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageCacheManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storagecache/8.1.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2025-07-01\";\n this.amlFilesystems = new AmlFilesystemsImpl(this);\n this.autoExportJobs = new AutoExportJobsImpl(this);\n this.importJobs = new ImportJobsImpl(this);\n this.autoImportJobs = new AutoImportJobsImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.usageModels = new UsageModelsImpl(this);\n this.ascOperations = new AscOperationsImpl(this);\n this.ascUsages = new AscUsagesImpl(this);\n this.caches = new CachesImpl(this);\n this.storageTargets = new StorageTargetsImpl(this);\n this.storageTargetOperations = new StorageTargetOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check that subnets will be valid for AML file system create calls.\n * @param options The options parameters.\n */\n checkAmlFSSubnets(options?: CheckAmlFSSubnetsOptionalParams): Promise<void> {\n return this.sendOperationRequest({ options }, checkAmlFSSubnetsOperationSpec);\n }\n\n /**\n * Get the number of available IP addresses needed for the AML file system information provided.\n * @param options The options parameters.\n */\n getRequiredAmlFSSubnetsSize(\n options?: GetRequiredAmlFSSubnetsSizeOptionalParams,\n ): Promise<GetRequiredAmlFSSubnetsSizeResponse> {\n return this.sendOperationRequest({ options }, getRequiredAmlFSSubnetsSizeOperationSpec);\n }\n\n amlFilesystems: AmlFilesystems;\n autoExportJobs: AutoExportJobs;\n importJobs: ImportJobs;\n autoImportJobs: AutoImportJobs;\n operations: Operations;\n skus: Skus;\n usageModels: UsageModels;\n ascOperations: AscOperations;\n ascUsages: AscUsages;\n caches: Caches;\n storageTargets: StorageTargets;\n storageTargetOperations: StorageTargetOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkAmlFSSubnetsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/checkAmlFSSubnets\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 400: {\n bodyMapper: Mappers.AmlFilesystemCheckSubnetError,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.amlFilesystemSubnetInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getRequiredAmlFSSubnetsSizeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/getRequiredAmlFSSubnetsSize\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RequiredAmlFilesystemSubnetsSize,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.requiredAMLFilesystemSubnetsSizeInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/storageCacheManagementClient.ts"],
4
+ "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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport { PipelineRequest, PipelineResponse, SendRequest } from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n AmlFilesystemsImpl,\n AutoExportJobsImpl,\n ImportJobsImpl,\n AutoImportJobsImpl,\n ExpansionJobsImpl,\n OperationsImpl,\n SkusImpl,\n UsageModelsImpl,\n AscOperationsImpl,\n AscUsagesImpl,\n CachesImpl,\n StorageTargetsImpl,\n StorageTargetOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n AmlFilesystems,\n AutoExportJobs,\n ImportJobs,\n AutoImportJobs,\n ExpansionJobs,\n Operations,\n Skus,\n UsageModels,\n AscOperations,\n AscUsages,\n Caches,\n StorageTargets,\n StorageTargetOperations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n StorageCacheManagementClientOptionalParams,\n CheckAmlFSSubnetsOptionalParams,\n GetRequiredAmlFSSubnetsSizeOptionalParams,\n GetRequiredAmlFSSubnetsSizeResponse,\n} from \"./models/index.js\";\n\nexport class StorageCacheManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the StorageCacheManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: StorageCacheManagementClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: StorageCacheManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-storagecache/8.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2026-01-01\";\n this.amlFilesystems = new AmlFilesystemsImpl(this);\n this.autoExportJobs = new AutoExportJobsImpl(this);\n this.importJobs = new ImportJobsImpl(this);\n this.autoImportJobs = new AutoImportJobsImpl(this);\n this.expansionJobs = new ExpansionJobsImpl(this);\n this.operations = new OperationsImpl(this);\n this.skus = new SkusImpl(this);\n this.usageModels = new UsageModelsImpl(this);\n this.ascOperations = new AscOperationsImpl(this);\n this.ascUsages = new AscUsagesImpl(this);\n this.caches = new CachesImpl(this);\n this.storageTargets = new StorageTargetsImpl(this);\n this.storageTargetOperations = new StorageTargetOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Check that subnets will be valid for AML file system create calls.\n * @param options The options parameters.\n */\n checkAmlFSSubnets(options?: CheckAmlFSSubnetsOptionalParams): Promise<void> {\n return this.sendOperationRequest({ options }, checkAmlFSSubnetsOperationSpec);\n }\n\n /**\n * Get the number of available IP addresses needed for the AML file system information provided.\n * @param options The options parameters.\n */\n getRequiredAmlFSSubnetsSize(\n options?: GetRequiredAmlFSSubnetsSizeOptionalParams,\n ): Promise<GetRequiredAmlFSSubnetsSizeResponse> {\n return this.sendOperationRequest({ options }, getRequiredAmlFSSubnetsSizeOperationSpec);\n }\n\n amlFilesystems: AmlFilesystems;\n autoExportJobs: AutoExportJobs;\n importJobs: ImportJobs;\n autoImportJobs: AutoImportJobs;\n expansionJobs: ExpansionJobs;\n operations: Operations;\n skus: Skus;\n usageModels: UsageModels;\n ascOperations: AscOperations;\n ascUsages: AscUsages;\n caches: Caches;\n storageTargets: StorageTargets;\n storageTargetOperations: StorageTargetOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkAmlFSSubnetsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/checkAmlFSSubnets\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 400: {\n bodyMapper: Mappers.AmlFilesystemCheckSubnetError,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.amlFilesystemSubnetInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getRequiredAmlFSSubnetsSizeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/getRequiredAmlFSSubnetsSize\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RequiredAmlFilesystemSubnetsSize,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.requiredAMLFilesystemSubnetsSizeInfo,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.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AA,EACX;AACF;AACA,MAAM,2CAAqE;AAAA,EACzE,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AAAA,IACT,KAAK;AAAA,MACH,YAAY,QAAQ;AAAA,IACtB;AAAA,IACA,SAAS;AAAA,MACP,YAAY,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EACA,aAAa,WAAW;AAAA,EACxB,iBAAiB,CAAC,WAAW,UAAU;AAAA,EACvC,eAAe,CAAC,WAAW,OAAO,WAAW,cAAc;AAAA,EAC3D,kBAAkB,CAAC,WAAW,QAAQ,WAAW,WAAW;AAAA,EAC5D,WAAW;AAAA,EACX;AACF;",
6
+ "names": []
7
+ }
@@ -440,6 +440,20 @@ export interface AutoImportJobsListResult {
440
440
  /** URL to get the next set of auto import job list results, if there are any. */
441
441
  nextLink?: string;
442
442
  }
443
+ /** An expansion job update instance. */
444
+ export interface ExpansionJobUpdate {
445
+ /** Resource tags. */
446
+ tags?: {
447
+ [propertyName: string]: string;
448
+ };
449
+ }
450
+ /** Result of the request to list expansion jobs. It contains a list of expansion jobs and a URL link to get the next set of results. */
451
+ export interface ExpansionJobsListResult {
452
+ /** List of expansion jobs. */
453
+ value?: ExpansionJob[];
454
+ /** URL to get the next set of expansion job list results, if there are any. */
455
+ nextLink?: string;
456
+ }
443
457
  /** Information required to validate the subnet that will be used in AML file system create */
444
458
  export interface AmlFilesystemSubnetInfo {
445
459
  /** Subnet used for managing the AML file system and for client-facing operations. This subnet should have at least a /24 subnet mask within the VNET's address space. */
@@ -1165,6 +1179,16 @@ export interface AmlFilesystem extends TrackedResource {
1165
1179
  zones?: string[];
1166
1180
  /** The size of the AML file system, in TiB. This might be rounded up. */
1167
1181
  storageCapacityTiB?: number;
1182
+ /**
1183
+ * The current storage capacity of the AML file system, in TiB. This reflects the actual capacity including any expansions.
1184
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1185
+ */
1186
+ readonly currentStorageCapacityTiB?: number;
1187
+ /**
1188
+ * The unique identifier of the AML file system cluster.
1189
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1190
+ */
1191
+ readonly clusterUuid?: string;
1168
1192
  /**
1169
1193
  * Health of the AML file system.
1170
1194
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1494,6 +1518,46 @@ export interface AutoImportJob extends TrackedResource {
1494
1518
  */
1495
1519
  readonly lastCompletionTimeUTC?: Date;
1496
1520
  }
1521
+ /** An expansion job instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md */
1522
+ export interface ExpansionJob extends TrackedResource {
1523
+ /**
1524
+ * ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property
1525
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1526
+ */
1527
+ readonly provisioningState?: ExpansionJobPropertiesProvisioningState;
1528
+ /** The new storage capacity in TiB for the AML file system after expansion. This must be a multiple of the Sku step size, and greater than the current storage capacity of the AML file system. */
1529
+ newStorageCapacityTiB?: number;
1530
+ /**
1531
+ * The operational state of the expansion job. InProgress indicates the expansion is still running. Completed indicates expansion finished successfully. Failed means the expansion was unable to complete due to a fatal error. Deleting indicates the expansion is being rolled back.
1532
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1533
+ */
1534
+ readonly state?: ExpansionJobStatusType;
1535
+ /**
1536
+ * Server-defined status code for expansion job.
1537
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1538
+ */
1539
+ readonly statusCode?: string;
1540
+ /**
1541
+ * Server-defined status message for expansion job.
1542
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1543
+ */
1544
+ readonly statusMessage?: string;
1545
+ /**
1546
+ * The percentage of expansion job completion.
1547
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1548
+ */
1549
+ readonly percentComplete?: number;
1550
+ /**
1551
+ * The time (in UTC) the expansion job started.
1552
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1553
+ */
1554
+ readonly startTimeUTC?: Date;
1555
+ /**
1556
+ * The time (in UTC) when the expansion job completed. Only populated when job reaches a terminal state.
1557
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1558
+ */
1559
+ readonly completionTimeUTC?: Date;
1560
+ }
1497
1561
  /** Defines headers for AmlFilesystems_delete operation. */
1498
1562
  export interface AmlFilesystemsDeleteHeaders {
1499
1563
  /** Location URI to poll for result */
@@ -1565,6 +1629,27 @@ export interface AutoImportJobsUpdateHeaders {
1565
1629
  location?: string;
1566
1630
  azureAsyncOperation?: string;
1567
1631
  }
1632
+ /** Defines headers for ExpansionJobs_delete operation. */
1633
+ export interface ExpansionJobsDeleteHeaders {
1634
+ /** URL for monitoring the status. */
1635
+ location?: string;
1636
+ /** URL for monitoring the async operation status. */
1637
+ azureAsyncOperation?: string;
1638
+ }
1639
+ /** Defines headers for ExpansionJobs_createOrUpdate operation. */
1640
+ export interface ExpansionJobsCreateOrUpdateHeaders {
1641
+ /** URL for monitoring the status. */
1642
+ location?: string;
1643
+ /** URL for monitoring the async operation status. */
1644
+ azureAsyncOperation?: string;
1645
+ }
1646
+ /** Defines headers for ExpansionJobs_update operation. */
1647
+ export interface ExpansionJobsUpdateHeaders {
1648
+ /** URL for monitoring the status. */
1649
+ location?: string;
1650
+ /** URL for monitoring the async operation status. */
1651
+ azureAsyncOperation?: string;
1652
+ }
1568
1653
  /** Defines headers for Caches_delete operation. */
1569
1654
  export interface CachesDeleteHeaders {
1570
1655
  /** Location URI to poll for result */
@@ -1709,7 +1794,9 @@ export declare enum KnownAmlFilesystemHealthStateType {
1709
1794
  /** Transitioning */
1710
1795
  Transitioning = "Transitioning",
1711
1796
  /** Maintenance */
1712
- Maintenance = "Maintenance"
1797
+ Maintenance = "Maintenance",
1798
+ /** Expanding */
1799
+ Expanding = "Expanding"
1713
1800
  }
1714
1801
  /**
1715
1802
  * Defines values for AmlFilesystemHealthStateType. \
@@ -1720,7 +1807,8 @@ export declare enum KnownAmlFilesystemHealthStateType {
1720
1807
  * **Available** \
1721
1808
  * **Degraded** \
1722
1809
  * **Transitioning** \
1723
- * **Maintenance**
1810
+ * **Maintenance** \
1811
+ * **Expanding**
1724
1812
  */
1725
1813
  export type AmlFilesystemHealthStateType = string;
1726
1814
  /** Known values of {@link AmlFilesystemProvisioningStateType} that the service accepts. */
@@ -2071,6 +2159,59 @@ export declare enum KnownAutoImportJobUpdatePropertiesAdminStatus {
2071
2159
  * **Disable**
2072
2160
  */
2073
2161
  export type AutoImportJobUpdatePropertiesAdminStatus = string;
2162
+ /** Known values of {@link ExpansionJobPropertiesProvisioningState} that the service accepts. */
2163
+ export declare enum KnownExpansionJobPropertiesProvisioningState {
2164
+ /** Succeeded */
2165
+ Succeeded = "Succeeded",
2166
+ /** Failed */
2167
+ Failed = "Failed",
2168
+ /** Creating */
2169
+ Creating = "Creating",
2170
+ /** Deleting */
2171
+ Deleting = "Deleting",
2172
+ /** Updating */
2173
+ Updating = "Updating",
2174
+ /** Canceled */
2175
+ Canceled = "Canceled"
2176
+ }
2177
+ /**
2178
+ * Defines values for ExpansionJobPropertiesProvisioningState. \
2179
+ * {@link KnownExpansionJobPropertiesProvisioningState} can be used interchangeably with ExpansionJobPropertiesProvisioningState,
2180
+ * this enum contains the known values that the service supports.
2181
+ * ### Known values supported by the service
2182
+ * **Succeeded** \
2183
+ * **Failed** \
2184
+ * **Creating** \
2185
+ * **Deleting** \
2186
+ * **Updating** \
2187
+ * **Canceled**
2188
+ */
2189
+ export type ExpansionJobPropertiesProvisioningState = string;
2190
+ /** Known values of {@link ExpansionJobStatusType} that the service accepts. */
2191
+ export declare enum KnownExpansionJobStatusType {
2192
+ /** InProgress */
2193
+ InProgress = "InProgress",
2194
+ /** Completed */
2195
+ Completed = "Completed",
2196
+ /** Failed */
2197
+ Failed = "Failed",
2198
+ /** Deleting */
2199
+ Deleting = "Deleting",
2200
+ /** RollingBack */
2201
+ RollingBack = "RollingBack"
2202
+ }
2203
+ /**
2204
+ * Defines values for ExpansionJobStatusType. \
2205
+ * {@link KnownExpansionJobStatusType} can be used interchangeably with ExpansionJobStatusType,
2206
+ * this enum contains the known values that the service supports.
2207
+ * ### Known values supported by the service
2208
+ * **InProgress** \
2209
+ * **Completed** \
2210
+ * **Failed** \
2211
+ * **Deleting** \
2212
+ * **RollingBack**
2213
+ */
2214
+ export type ExpansionJobStatusType = string;
2074
2215
  /** Known values of {@link FilesystemSubnetStatusType} that the service accepts. */
2075
2216
  export declare enum KnownFilesystemSubnetStatusType {
2076
2217
  /** Ok */
@@ -2579,6 +2720,48 @@ export interface AutoImportJobsListByAmlFilesystemNextOptionalParams extends cor
2579
2720
  /** Contains response data for the listByAmlFilesystemNext operation. */
2580
2721
  export type AutoImportJobsListByAmlFilesystemNextResponse = AutoImportJobsListResult;
2581
2722
  /** Optional parameters. */
2723
+ export interface ExpansionJobsDeleteOptionalParams extends coreClient.OperationOptions {
2724
+ /** Delay to wait until next poll, in milliseconds. */
2725
+ updateIntervalInMs?: number;
2726
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2727
+ resumeFrom?: string;
2728
+ }
2729
+ /** Contains response data for the delete operation. */
2730
+ export type ExpansionJobsDeleteResponse = ExpansionJobsDeleteHeaders;
2731
+ /** Optional parameters. */
2732
+ export interface ExpansionJobsGetOptionalParams extends coreClient.OperationOptions {
2733
+ }
2734
+ /** Contains response data for the get operation. */
2735
+ export type ExpansionJobsGetResponse = ExpansionJob;
2736
+ /** Optional parameters. */
2737
+ export interface ExpansionJobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
2738
+ /** Delay to wait until next poll, in milliseconds. */
2739
+ updateIntervalInMs?: number;
2740
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2741
+ resumeFrom?: string;
2742
+ }
2743
+ /** Contains response data for the createOrUpdate operation. */
2744
+ export type ExpansionJobsCreateOrUpdateResponse = ExpansionJob;
2745
+ /** Optional parameters. */
2746
+ export interface ExpansionJobsUpdateOptionalParams extends coreClient.OperationOptions {
2747
+ /** Delay to wait until next poll, in milliseconds. */
2748
+ updateIntervalInMs?: number;
2749
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2750
+ resumeFrom?: string;
2751
+ }
2752
+ /** Contains response data for the update operation. */
2753
+ export type ExpansionJobsUpdateResponse = ExpansionJob;
2754
+ /** Optional parameters. */
2755
+ export interface ExpansionJobsListByAmlFilesystemOptionalParams extends coreClient.OperationOptions {
2756
+ }
2757
+ /** Contains response data for the listByAmlFilesystem operation. */
2758
+ export type ExpansionJobsListByAmlFilesystemResponse = ExpansionJobsListResult;
2759
+ /** Optional parameters. */
2760
+ export interface ExpansionJobsListByAmlFilesystemNextOptionalParams extends coreClient.OperationOptions {
2761
+ }
2762
+ /** Contains response data for the listByAmlFilesystemNext operation. */
2763
+ export type ExpansionJobsListByAmlFilesystemNextResponse = ExpansionJobsListResult;
2764
+ /** Optional parameters. */
2582
2765
  export interface CheckAmlFSSubnetsOptionalParams extends coreClient.OperationOptions {
2583
2766
  /** Information about the subnets to validate. */
2584
2767
  amlFilesystemSubnetInfo?: AmlFilesystemSubnetInfo;