@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,528 +1,559 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
1
  import { setContinuationToken } from "../pagingHelper.js";
4
2
  import * as coreClient from "@azure/core-client";
5
3
  import * as Mappers from "../models/mappers.js";
6
4
  import * as Parameters from "../models/parameters.js";
7
5
  import { createHttpPoller } from "@azure/core-lro";
8
6
  import { createLroSpec } from "../lroImpl.js";
9
- /// <reference lib="esnext.asynciterable" />
10
- /** Class containing StorageTargets operations. */
11
- export class StorageTargetsImpl {
12
- client;
13
- /**
14
- * Initialize a new instance of the class StorageTargets class.
15
- * @param client Reference to the service client
16
- */
17
- constructor(client) {
18
- this.client = client;
7
+ class StorageTargetsImpl {
8
+ client;
9
+ /**
10
+ * Initialize a new instance of the class StorageTargets class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client) {
14
+ this.client = client;
15
+ }
16
+ /**
17
+ * Returns a list of Storage Targets for the specified cache.
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
20
+ * the [-0-9a-zA-Z_] char class.
21
+ * @param options The options parameters.
22
+ */
23
+ listByCache(resourceGroupName, cacheName, options) {
24
+ const iter = this.listByCachePagingAll(resourceGroupName, cacheName, options);
25
+ return {
26
+ next() {
27
+ return iter.next();
28
+ },
29
+ [Symbol.asyncIterator]() {
30
+ return this;
31
+ },
32
+ byPage: (settings) => {
33
+ if (settings?.maxPageSize) {
34
+ throw new Error("maxPageSize is not supported by this operation.");
35
+ }
36
+ return this.listByCachePagingPage(resourceGroupName, cacheName, options, settings);
37
+ }
38
+ };
39
+ }
40
+ async *listByCachePagingPage(resourceGroupName, cacheName, options, settings) {
41
+ let result;
42
+ let continuationToken = settings?.continuationToken;
43
+ if (!continuationToken) {
44
+ result = await this._listByCache(resourceGroupName, cacheName, options);
45
+ let page = result.value || [];
46
+ continuationToken = result.nextLink;
47
+ setContinuationToken(page, continuationToken);
48
+ yield page;
49
+ }
50
+ while (continuationToken) {
51
+ result = await this._listByCacheNext(
52
+ resourceGroupName,
53
+ cacheName,
54
+ continuationToken,
55
+ options
56
+ );
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield page;
19
61
  }
20
- /**
21
- * Returns a list of Storage Targets for the specified cache.
22
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
23
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
24
- * the [-0-9a-zA-Z_] char class.
25
- * @param options The options parameters.
26
- */
27
- listByCache(resourceGroupName, cacheName, options) {
28
- const iter = this.listByCachePagingAll(resourceGroupName, cacheName, 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.listByCachePagingPage(resourceGroupName, cacheName, options, settings);
41
- },
42
- };
62
+ }
63
+ async *listByCachePagingAll(resourceGroupName, cacheName, options) {
64
+ for await (const page of this.listByCachePagingPage(resourceGroupName, cacheName, options)) {
65
+ yield* page;
43
66
  }
44
- async *listByCachePagingPage(resourceGroupName, cacheName, options, settings) {
45
- let result;
46
- let continuationToken = settings?.continuationToken;
47
- if (!continuationToken) {
48
- result = await this._listByCache(resourceGroupName, cacheName, options);
49
- let page = result.value || [];
50
- continuationToken = result.nextLink;
51
- setContinuationToken(page, continuationToken);
52
- yield page;
67
+ }
68
+ /**
69
+ * Tells a storage target to refresh its DNS information.
70
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
72
+ * the [-0-9a-zA-Z_] char class.
73
+ * @param storageTargetName Name of Storage Target.
74
+ * @param options The options parameters.
75
+ */
76
+ async beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options) {
77
+ const directSendOperation = async (args, spec) => {
78
+ return this.client.sendOperationRequest(args, spec);
79
+ };
80
+ const sendOperationFn = async (args, spec) => {
81
+ let currentRawResponse = void 0;
82
+ const providedCallback = args.options?.onResponse;
83
+ const callback = (rawResponse, flatResponse2) => {
84
+ currentRawResponse = rawResponse;
85
+ providedCallback?.(rawResponse, flatResponse2);
86
+ };
87
+ const updatedArgs = {
88
+ ...args,
89
+ options: {
90
+ ...args.options,
91
+ onResponse: callback
53
92
  }
54
- while (continuationToken) {
55
- result = await this._listByCacheNext(resourceGroupName, cacheName, continuationToken, options);
56
- continuationToken = result.nextLink;
57
- let page = result.value || [];
58
- setContinuationToken(page, continuationToken);
59
- yield page;
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()
60
101
  }
61
- }
62
- async *listByCachePagingAll(resourceGroupName, cacheName, options) {
63
- for await (const page of this.listByCachePagingPage(resourceGroupName, cacheName, options)) {
64
- yield* page;
102
+ };
103
+ };
104
+ const lro = createLroSpec({
105
+ sendOperationFn,
106
+ args: { resourceGroupName, cacheName, storageTargetName, options },
107
+ spec: dnsRefreshOperationSpec
108
+ });
109
+ const poller = await createHttpPoller(lro, {
110
+ restoreFrom: options?.resumeFrom,
111
+ intervalInMs: options?.updateIntervalInMs,
112
+ resourceLocationConfig: "azure-async-operation"
113
+ });
114
+ await poller.poll();
115
+ return poller;
116
+ }
117
+ /**
118
+ * Tells a storage target to refresh its DNS information.
119
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
120
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
121
+ * the [-0-9a-zA-Z_] char class.
122
+ * @param storageTargetName Name of Storage Target.
123
+ * @param options The options parameters.
124
+ */
125
+ async beginDnsRefreshAndWait(resourceGroupName, cacheName, storageTargetName, options) {
126
+ const poller = await this.beginDnsRefresh(
127
+ resourceGroupName,
128
+ cacheName,
129
+ storageTargetName,
130
+ options
131
+ );
132
+ return poller.pollUntilDone();
133
+ }
134
+ /**
135
+ * Returns a list of Storage Targets for the specified cache.
136
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
137
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
138
+ * the [-0-9a-zA-Z_] char class.
139
+ * @param options The options parameters.
140
+ */
141
+ _listByCache(resourceGroupName, cacheName, options) {
142
+ return this.client.sendOperationRequest(
143
+ { resourceGroupName, cacheName, options },
144
+ listByCacheOperationSpec
145
+ );
146
+ }
147
+ /**
148
+ * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is
149
+ * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is
150
+ * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be
151
+ * flushed before the Storage Target will be deleted.
152
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
153
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
154
+ * the [-0-9a-zA-Z_] char class.
155
+ * @param storageTargetName Name of Storage Target.
156
+ * @param options The options parameters.
157
+ */
158
+ async beginDelete(resourceGroupName, cacheName, storageTargetName, options) {
159
+ const directSendOperation = async (args, spec) => {
160
+ return this.client.sendOperationRequest(args, spec);
161
+ };
162
+ const sendOperationFn = async (args, spec) => {
163
+ let currentRawResponse = void 0;
164
+ const providedCallback = args.options?.onResponse;
165
+ const callback = (rawResponse, flatResponse2) => {
166
+ currentRawResponse = rawResponse;
167
+ providedCallback?.(rawResponse, flatResponse2);
168
+ };
169
+ const updatedArgs = {
170
+ ...args,
171
+ options: {
172
+ ...args.options,
173
+ onResponse: callback
65
174
  }
66
- }
67
- /**
68
- * Tells a storage target to refresh its DNS information.
69
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
70
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
71
- * the [-0-9a-zA-Z_] char class.
72
- * @param storageTargetName Name of Storage Target.
73
- * @param options The options parameters.
74
- */
75
- async beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options) {
76
- const directSendOperation = async (args, spec) => {
77
- return this.client.sendOperationRequest(args, spec);
78
- };
79
- const sendOperationFn = async (args, spec) => {
80
- let currentRawResponse = undefined;
81
- const providedCallback = args.options?.onResponse;
82
- const callback = (rawResponse, flatResponse) => {
83
- currentRawResponse = rawResponse;
84
- providedCallback?.(rawResponse, flatResponse);
85
- };
86
- const updatedArgs = {
87
- ...args,
88
- options: {
89
- ...args.options,
90
- onResponse: callback,
91
- },
92
- };
93
- const flatResponse = await directSendOperation(updatedArgs, spec);
94
- return {
95
- flatResponse,
96
- rawResponse: {
97
- statusCode: currentRawResponse.status,
98
- body: currentRawResponse.parsedBody,
99
- headers: currentRawResponse.headers.toJSON(),
100
- },
101
- };
102
- };
103
- const lro = createLroSpec({
104
- sendOperationFn,
105
- args: { resourceGroupName, cacheName, storageTargetName, options },
106
- spec: dnsRefreshOperationSpec,
107
- });
108
- const poller = await createHttpPoller(lro, {
109
- restoreFrom: options?.resumeFrom,
110
- intervalInMs: options?.updateIntervalInMs,
111
- resourceLocationConfig: "azure-async-operation",
112
- });
113
- await poller.poll();
114
- return poller;
115
- }
116
- /**
117
- * Tells a storage target to refresh its DNS information.
118
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
119
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
120
- * the [-0-9a-zA-Z_] char class.
121
- * @param storageTargetName Name of Storage Target.
122
- * @param options The options parameters.
123
- */
124
- async beginDnsRefreshAndWait(resourceGroupName, cacheName, storageTargetName, options) {
125
- const poller = await this.beginDnsRefresh(resourceGroupName, cacheName, storageTargetName, options);
126
- return poller.pollUntilDone();
127
- }
128
- /**
129
- * Returns a list of Storage Targets for the specified cache.
130
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
131
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
132
- * the [-0-9a-zA-Z_] char class.
133
- * @param options The options parameters.
134
- */
135
- _listByCache(resourceGroupName, cacheName, options) {
136
- return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, listByCacheOperationSpec);
137
- }
138
- /**
139
- * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is
140
- * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is
141
- * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be
142
- * flushed before the Storage Target will be deleted.
143
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
144
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
145
- * the [-0-9a-zA-Z_] char class.
146
- * @param storageTargetName Name of Storage Target.
147
- * @param options The options parameters.
148
- */
149
- async beginDelete(resourceGroupName, cacheName, storageTargetName, options) {
150
- const directSendOperation = async (args, spec) => {
151
- return this.client.sendOperationRequest(args, spec);
152
- };
153
- const sendOperationFn = async (args, spec) => {
154
- let currentRawResponse = undefined;
155
- const providedCallback = args.options?.onResponse;
156
- const callback = (rawResponse, flatResponse) => {
157
- currentRawResponse = rawResponse;
158
- providedCallback?.(rawResponse, flatResponse);
159
- };
160
- const updatedArgs = {
161
- ...args,
162
- options: {
163
- ...args.options,
164
- onResponse: callback,
165
- },
166
- };
167
- const flatResponse = await directSendOperation(updatedArgs, spec);
168
- return {
169
- flatResponse,
170
- rawResponse: {
171
- statusCode: currentRawResponse.status,
172
- body: currentRawResponse.parsedBody,
173
- headers: currentRawResponse.headers.toJSON(),
174
- },
175
- };
176
- };
177
- const lro = createLroSpec({
178
- sendOperationFn,
179
- args: { resourceGroupName, cacheName, storageTargetName, options },
180
- spec: deleteOperationSpec,
181
- });
182
- const poller = await createHttpPoller(lro, {
183
- restoreFrom: options?.resumeFrom,
184
- intervalInMs: options?.updateIntervalInMs,
185
- });
186
- await poller.poll();
187
- return poller;
188
- }
189
- /**
190
- * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is
191
- * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is
192
- * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be
193
- * flushed before the Storage Target will be deleted.
194
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
195
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
196
- * the [-0-9a-zA-Z_] char class.
197
- * @param storageTargetName Name of Storage Target.
198
- * @param options The options parameters.
199
- */
200
- async beginDeleteAndWait(resourceGroupName, cacheName, storageTargetName, options) {
201
- const poller = await this.beginDelete(resourceGroupName, cacheName, storageTargetName, options);
202
- return poller.pollUntilDone();
203
- }
204
- /**
205
- * Returns a Storage Target from a cache.
206
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
207
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
208
- * the [-0-9a-zA-Z_] char class.
209
- * @param storageTargetName Name of Storage Target.
210
- * @param options The options parameters.
211
- */
212
- get(resourceGroupName, cacheName, storageTargetName, options) {
213
- return this.client.sendOperationRequest({ resourceGroupName, cacheName, storageTargetName, options }, getOperationSpec);
214
- }
215
- /**
216
- * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down
217
- * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache
218
- * is healthy again.
219
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
220
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
221
- * the [-0-9a-zA-Z_] char class.
222
- * @param storageTargetName Name of Storage Target.
223
- * @param storagetarget Object containing the definition of a Storage Target.
224
- * @param options The options parameters.
225
- */
226
- async beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, 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
- cacheName,
259
- storageTargetName,
260
- storagetarget,
261
- options,
262
- },
263
- spec: createOrUpdateOperationSpec,
264
- });
265
- const poller = await createHttpPoller(lro, {
266
- restoreFrom: options?.resumeFrom,
267
- intervalInMs: options?.updateIntervalInMs,
268
- });
269
- await poller.poll();
270
- return poller;
271
- }
272
- /**
273
- * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down
274
- * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache
275
- * is healthy again.
276
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
277
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
278
- * the [-0-9a-zA-Z_] char class.
279
- * @param storageTargetName Name of Storage Target.
280
- * @param storagetarget Object containing the definition of a Storage Target.
281
- * @param options The options parameters.
282
- */
283
- async beginCreateOrUpdateAndWait(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
284
- const poller = await this.beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, options);
285
- return poller.pollUntilDone();
286
- }
287
- /**
288
- * Tells a storage target to restore its settings to their default values.
289
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
290
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
291
- * the [-0-9a-zA-Z_] char class.
292
- * @param storageTargetName Name of Storage Target.
293
- * @param options The options parameters.
294
- */
295
- async beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options) {
296
- const directSendOperation = async (args, spec) => {
297
- return this.client.sendOperationRequest(args, spec);
298
- };
299
- const sendOperationFn = async (args, spec) => {
300
- let currentRawResponse = undefined;
301
- const providedCallback = args.options?.onResponse;
302
- const callback = (rawResponse, flatResponse) => {
303
- currentRawResponse = rawResponse;
304
- providedCallback?.(rawResponse, flatResponse);
305
- };
306
- const updatedArgs = {
307
- ...args,
308
- options: {
309
- ...args.options,
310
- onResponse: callback,
311
- },
312
- };
313
- const flatResponse = await directSendOperation(updatedArgs, spec);
314
- return {
315
- flatResponse,
316
- rawResponse: {
317
- statusCode: currentRawResponse.status,
318
- body: currentRawResponse.parsedBody,
319
- headers: currentRawResponse.headers.toJSON(),
320
- },
321
- };
322
- };
323
- const lro = createLroSpec({
324
- sendOperationFn,
325
- args: { resourceGroupName, cacheName, storageTargetName, options },
326
- spec: restoreDefaultsOperationSpec,
327
- });
328
- const poller = await createHttpPoller(lro, {
329
- restoreFrom: options?.resumeFrom,
330
- intervalInMs: options?.updateIntervalInMs,
331
- resourceLocationConfig: "location",
332
- });
333
- await poller.poll();
334
- return poller;
335
- }
336
- /**
337
- * Tells a storage target to restore its settings to their default values.
338
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
339
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
340
- * the [-0-9a-zA-Z_] char class.
341
- * @param storageTargetName Name of Storage Target.
342
- * @param options The options parameters.
343
- */
344
- async beginRestoreDefaultsAndWait(resourceGroupName, cacheName, storageTargetName, options) {
345
- const poller = await this.beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options);
346
- return poller.pollUntilDone();
347
- }
348
- /**
349
- * ListByCacheNext
350
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
351
- * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
352
- * the [-0-9a-zA-Z_] char class.
353
- * @param nextLink The nextLink from the previous successful call to the ListByCache method.
354
- * @param options The options parameters.
355
- */
356
- _listByCacheNext(resourceGroupName, cacheName, nextLink, options) {
357
- return this.client.sendOperationRequest({ resourceGroupName, cacheName, nextLink, options }, listByCacheNextOperationSpec);
358
- }
175
+ };
176
+ const flatResponse = await directSendOperation(updatedArgs, spec);
177
+ return {
178
+ flatResponse,
179
+ rawResponse: {
180
+ statusCode: currentRawResponse.status,
181
+ body: currentRawResponse.parsedBody,
182
+ headers: currentRawResponse.headers.toJSON()
183
+ }
184
+ };
185
+ };
186
+ const lro = createLroSpec({
187
+ sendOperationFn,
188
+ args: { resourceGroupName, cacheName, storageTargetName, options },
189
+ spec: deleteOperationSpec
190
+ });
191
+ const poller = await createHttpPoller(lro, {
192
+ restoreFrom: options?.resumeFrom,
193
+ intervalInMs: options?.updateIntervalInMs
194
+ });
195
+ await poller.poll();
196
+ return poller;
197
+ }
198
+ /**
199
+ * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is
200
+ * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is
201
+ * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be
202
+ * flushed before the Storage Target will be deleted.
203
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
204
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
205
+ * the [-0-9a-zA-Z_] char class.
206
+ * @param storageTargetName Name of Storage Target.
207
+ * @param options The options parameters.
208
+ */
209
+ async beginDeleteAndWait(resourceGroupName, cacheName, storageTargetName, options) {
210
+ const poller = await this.beginDelete(resourceGroupName, cacheName, storageTargetName, options);
211
+ return poller.pollUntilDone();
212
+ }
213
+ /**
214
+ * Returns a Storage Target from a cache.
215
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
216
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
217
+ * the [-0-9a-zA-Z_] char class.
218
+ * @param storageTargetName Name of Storage Target.
219
+ * @param options The options parameters.
220
+ */
221
+ get(resourceGroupName, cacheName, storageTargetName, options) {
222
+ return this.client.sendOperationRequest(
223
+ { resourceGroupName, cacheName, storageTargetName, options },
224
+ getOperationSpec
225
+ );
226
+ }
227
+ /**
228
+ * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down
229
+ * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache
230
+ * is healthy again.
231
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
232
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
233
+ * the [-0-9a-zA-Z_] char class.
234
+ * @param storageTargetName Name of Storage Target.
235
+ * @param storagetarget Object containing the definition of a Storage Target.
236
+ * @param options The options parameters.
237
+ */
238
+ async beginCreateOrUpdate(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
239
+ const directSendOperation = async (args, spec) => {
240
+ return this.client.sendOperationRequest(args, spec);
241
+ };
242
+ const sendOperationFn = async (args, spec) => {
243
+ let currentRawResponse = void 0;
244
+ const providedCallback = args.options?.onResponse;
245
+ const callback = (rawResponse, flatResponse2) => {
246
+ currentRawResponse = rawResponse;
247
+ providedCallback?.(rawResponse, flatResponse2);
248
+ };
249
+ const updatedArgs = {
250
+ ...args,
251
+ options: {
252
+ ...args.options,
253
+ onResponse: callback
254
+ }
255
+ };
256
+ const flatResponse = await directSendOperation(updatedArgs, spec);
257
+ return {
258
+ flatResponse,
259
+ rawResponse: {
260
+ statusCode: currentRawResponse.status,
261
+ body: currentRawResponse.parsedBody,
262
+ headers: currentRawResponse.headers.toJSON()
263
+ }
264
+ };
265
+ };
266
+ const lro = createLroSpec({
267
+ sendOperationFn,
268
+ args: {
269
+ resourceGroupName,
270
+ cacheName,
271
+ storageTargetName,
272
+ storagetarget,
273
+ options
274
+ },
275
+ spec: createOrUpdateOperationSpec
276
+ });
277
+ const poller = await createHttpPoller(lro, {
278
+ restoreFrom: options?.resumeFrom,
279
+ intervalInMs: options?.updateIntervalInMs
280
+ });
281
+ await poller.poll();
282
+ return poller;
283
+ }
284
+ /**
285
+ * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down
286
+ * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache
287
+ * is healthy again.
288
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
289
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
290
+ * the [-0-9a-zA-Z_] char class.
291
+ * @param storageTargetName Name of Storage Target.
292
+ * @param storagetarget Object containing the definition of a Storage Target.
293
+ * @param options The options parameters.
294
+ */
295
+ async beginCreateOrUpdateAndWait(resourceGroupName, cacheName, storageTargetName, storagetarget, options) {
296
+ const poller = await this.beginCreateOrUpdate(
297
+ resourceGroupName,
298
+ cacheName,
299
+ storageTargetName,
300
+ storagetarget,
301
+ options
302
+ );
303
+ return poller.pollUntilDone();
304
+ }
305
+ /**
306
+ * Tells a storage target to restore its settings to their default values.
307
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
308
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
309
+ * the [-0-9a-zA-Z_] char class.
310
+ * @param storageTargetName Name of Storage Target.
311
+ * @param options The options parameters.
312
+ */
313
+ async beginRestoreDefaults(resourceGroupName, cacheName, storageTargetName, options) {
314
+ const directSendOperation = async (args, spec) => {
315
+ return this.client.sendOperationRequest(args, spec);
316
+ };
317
+ const sendOperationFn = async (args, spec) => {
318
+ let currentRawResponse = void 0;
319
+ const providedCallback = args.options?.onResponse;
320
+ const callback = (rawResponse, flatResponse2) => {
321
+ currentRawResponse = rawResponse;
322
+ providedCallback?.(rawResponse, flatResponse2);
323
+ };
324
+ const updatedArgs = {
325
+ ...args,
326
+ options: {
327
+ ...args.options,
328
+ onResponse: callback
329
+ }
330
+ };
331
+ const flatResponse = await directSendOperation(updatedArgs, spec);
332
+ return {
333
+ flatResponse,
334
+ rawResponse: {
335
+ statusCode: currentRawResponse.status,
336
+ body: currentRawResponse.parsedBody,
337
+ headers: currentRawResponse.headers.toJSON()
338
+ }
339
+ };
340
+ };
341
+ const lro = createLroSpec({
342
+ sendOperationFn,
343
+ args: { resourceGroupName, cacheName, storageTargetName, options },
344
+ spec: restoreDefaultsOperationSpec
345
+ });
346
+ const poller = await createHttpPoller(lro, {
347
+ restoreFrom: options?.resumeFrom,
348
+ intervalInMs: options?.updateIntervalInMs,
349
+ resourceLocationConfig: "location"
350
+ });
351
+ await poller.poll();
352
+ return poller;
353
+ }
354
+ /**
355
+ * Tells a storage target to restore its settings to their default values.
356
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
357
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
358
+ * the [-0-9a-zA-Z_] char class.
359
+ * @param storageTargetName Name of Storage Target.
360
+ * @param options The options parameters.
361
+ */
362
+ async beginRestoreDefaultsAndWait(resourceGroupName, cacheName, storageTargetName, options) {
363
+ const poller = await this.beginRestoreDefaults(
364
+ resourceGroupName,
365
+ cacheName,
366
+ storageTargetName,
367
+ options
368
+ );
369
+ return poller.pollUntilDone();
370
+ }
371
+ /**
372
+ * ListByCacheNext
373
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
374
+ * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
375
+ * the [-0-9a-zA-Z_] char class.
376
+ * @param nextLink The nextLink from the previous successful call to the ListByCache method.
377
+ * @param options The options parameters.
378
+ */
379
+ _listByCacheNext(resourceGroupName, cacheName, nextLink, options) {
380
+ return this.client.sendOperationRequest(
381
+ { resourceGroupName, cacheName, nextLink, options },
382
+ listByCacheNextOperationSpec
383
+ );
384
+ }
359
385
  }
360
- // Operation Specifications
361
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
386
+ const serializer = coreClient.createSerializer(
387
+ Mappers,
388
+ /* isXml */
389
+ false
390
+ );
362
391
  const dnsRefreshOperationSpec = {
363
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh",
364
- httpMethod: "POST",
365
- responses: {
366
- 200: {},
367
- 201: {},
368
- 202: {},
369
- 204: {},
370
- default: {
371
- bodyMapper: Mappers.CloudError,
372
- },
373
- },
374
- queryParameters: [Parameters.apiVersion],
375
- urlParameters: [
376
- Parameters.$host,
377
- Parameters.subscriptionId,
378
- Parameters.resourceGroupName,
379
- Parameters.cacheName,
380
- Parameters.storageTargetName,
381
- ],
382
- headerParameters: [Parameters.accept],
383
- serializer,
392
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh",
393
+ httpMethod: "POST",
394
+ responses: {
395
+ 200: {},
396
+ 201: {},
397
+ 202: {},
398
+ 204: {},
399
+ default: {
400
+ bodyMapper: Mappers.CloudError
401
+ }
402
+ },
403
+ queryParameters: [Parameters.apiVersion],
404
+ urlParameters: [
405
+ Parameters.$host,
406
+ Parameters.subscriptionId,
407
+ Parameters.resourceGroupName,
408
+ Parameters.cacheName,
409
+ Parameters.storageTargetName
410
+ ],
411
+ headerParameters: [Parameters.accept],
412
+ serializer
384
413
  };
385
414
  const listByCacheOperationSpec = {
386
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets",
387
- httpMethod: "GET",
388
- responses: {
389
- 200: {
390
- bodyMapper: Mappers.StorageTargetsResult,
391
- },
392
- default: {
393
- bodyMapper: Mappers.CloudError,
394
- },
415
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets",
416
+ httpMethod: "GET",
417
+ responses: {
418
+ 200: {
419
+ bodyMapper: Mappers.StorageTargetsResult
395
420
  },
396
- queryParameters: [Parameters.apiVersion],
397
- urlParameters: [
398
- Parameters.$host,
399
- Parameters.subscriptionId,
400
- Parameters.resourceGroupName,
401
- Parameters.cacheName,
402
- ],
403
- headerParameters: [Parameters.accept],
404
- serializer,
421
+ default: {
422
+ bodyMapper: Mappers.CloudError
423
+ }
424
+ },
425
+ queryParameters: [Parameters.apiVersion],
426
+ urlParameters: [
427
+ Parameters.$host,
428
+ Parameters.subscriptionId,
429
+ Parameters.resourceGroupName,
430
+ Parameters.cacheName
431
+ ],
432
+ headerParameters: [Parameters.accept],
433
+ serializer
405
434
  };
406
435
  const deleteOperationSpec = {
407
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
408
- httpMethod: "DELETE",
409
- responses: {
410
- 200: {},
411
- 201: {},
412
- 202: {},
413
- 204: {},
414
- default: {
415
- bodyMapper: Mappers.CloudError,
416
- },
417
- },
418
- queryParameters: [Parameters.apiVersion, Parameters.force],
419
- urlParameters: [
420
- Parameters.$host,
421
- Parameters.subscriptionId,
422
- Parameters.resourceGroupName,
423
- Parameters.cacheName,
424
- Parameters.storageTargetName,
425
- ],
426
- headerParameters: [Parameters.accept],
427
- serializer,
436
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
437
+ httpMethod: "DELETE",
438
+ responses: {
439
+ 200: {},
440
+ 201: {},
441
+ 202: {},
442
+ 204: {},
443
+ default: {
444
+ bodyMapper: Mappers.CloudError
445
+ }
446
+ },
447
+ queryParameters: [Parameters.apiVersion, Parameters.force],
448
+ urlParameters: [
449
+ Parameters.$host,
450
+ Parameters.subscriptionId,
451
+ Parameters.resourceGroupName,
452
+ Parameters.cacheName,
453
+ Parameters.storageTargetName
454
+ ],
455
+ headerParameters: [Parameters.accept],
456
+ serializer
428
457
  };
429
458
  const getOperationSpec = {
430
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
431
- httpMethod: "GET",
432
- responses: {
433
- 200: {
434
- bodyMapper: Mappers.StorageTarget,
435
- },
436
- default: {
437
- bodyMapper: Mappers.CloudError,
438
- },
459
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
460
+ httpMethod: "GET",
461
+ responses: {
462
+ 200: {
463
+ bodyMapper: Mappers.StorageTarget
439
464
  },
440
- queryParameters: [Parameters.apiVersion],
441
- urlParameters: [
442
- Parameters.$host,
443
- Parameters.subscriptionId,
444
- Parameters.resourceGroupName,
445
- Parameters.cacheName,
446
- Parameters.storageTargetName,
447
- ],
448
- headerParameters: [Parameters.accept],
449
- serializer,
465
+ default: {
466
+ bodyMapper: Mappers.CloudError
467
+ }
468
+ },
469
+ queryParameters: [Parameters.apiVersion],
470
+ urlParameters: [
471
+ Parameters.$host,
472
+ Parameters.subscriptionId,
473
+ Parameters.resourceGroupName,
474
+ Parameters.cacheName,
475
+ Parameters.storageTargetName
476
+ ],
477
+ headerParameters: [Parameters.accept],
478
+ serializer
450
479
  };
451
480
  const createOrUpdateOperationSpec = {
452
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
453
- httpMethod: "PUT",
454
- responses: {
455
- 200: {
456
- bodyMapper: Mappers.StorageTarget,
457
- },
458
- 201: {
459
- bodyMapper: Mappers.StorageTarget,
460
- },
461
- 202: {
462
- bodyMapper: Mappers.StorageTarget,
463
- },
464
- 204: {
465
- bodyMapper: Mappers.StorageTarget,
466
- },
467
- default: {
468
- bodyMapper: Mappers.CloudError,
469
- },
481
+ path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}",
482
+ httpMethod: "PUT",
483
+ responses: {
484
+ 200: {
485
+ bodyMapper: Mappers.StorageTarget
470
486
  },
471
- requestBody: Parameters.storagetarget,
472
- queryParameters: [Parameters.apiVersion],
473
- urlParameters: [
474
- Parameters.$host,
475
- Parameters.subscriptionId,
476
- Parameters.resourceGroupName,
477
- Parameters.cacheName,
478
- Parameters.storageTargetName,
479
- ],
480
- headerParameters: [Parameters.accept, Parameters.contentType],
481
- mediaType: "json",
482
- serializer,
487
+ 201: {
488
+ bodyMapper: Mappers.StorageTarget
489
+ },
490
+ 202: {
491
+ bodyMapper: Mappers.StorageTarget
492
+ },
493
+ 204: {
494
+ bodyMapper: Mappers.StorageTarget
495
+ },
496
+ default: {
497
+ bodyMapper: Mappers.CloudError
498
+ }
499
+ },
500
+ requestBody: Parameters.storagetarget,
501
+ queryParameters: [Parameters.apiVersion],
502
+ urlParameters: [
503
+ Parameters.$host,
504
+ Parameters.subscriptionId,
505
+ Parameters.resourceGroupName,
506
+ Parameters.cacheName,
507
+ Parameters.storageTargetName
508
+ ],
509
+ headerParameters: [Parameters.accept, Parameters.contentType],
510
+ mediaType: "json",
511
+ serializer
483
512
  };
484
513
  const restoreDefaultsOperationSpec = {
485
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/restoreDefaults",
486
- httpMethod: "POST",
487
- responses: {
488
- 200: {},
489
- 201: {},
490
- 202: {},
491
- 204: {},
492
- default: {
493
- bodyMapper: Mappers.CloudError,
494
- },
495
- },
496
- queryParameters: [Parameters.apiVersion],
497
- urlParameters: [
498
- Parameters.$host,
499
- Parameters.subscriptionId,
500
- Parameters.resourceGroupName,
501
- Parameters.cacheName,
502
- Parameters.storageTargetName,
503
- ],
504
- headerParameters: [Parameters.accept],
505
- serializer,
514
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/restoreDefaults",
515
+ httpMethod: "POST",
516
+ responses: {
517
+ 200: {},
518
+ 201: {},
519
+ 202: {},
520
+ 204: {},
521
+ default: {
522
+ bodyMapper: Mappers.CloudError
523
+ }
524
+ },
525
+ queryParameters: [Parameters.apiVersion],
526
+ urlParameters: [
527
+ Parameters.$host,
528
+ Parameters.subscriptionId,
529
+ Parameters.resourceGroupName,
530
+ Parameters.cacheName,
531
+ Parameters.storageTargetName
532
+ ],
533
+ headerParameters: [Parameters.accept],
534
+ serializer
506
535
  };
507
536
  const listByCacheNextOperationSpec = {
508
- path: "{nextLink}",
509
- httpMethod: "GET",
510
- responses: {
511
- 200: {
512
- bodyMapper: Mappers.StorageTargetsResult,
513
- },
514
- default: {
515
- bodyMapper: Mappers.CloudError,
516
- },
537
+ path: "{nextLink}",
538
+ httpMethod: "GET",
539
+ responses: {
540
+ 200: {
541
+ bodyMapper: Mappers.StorageTargetsResult
517
542
  },
518
- urlParameters: [
519
- Parameters.$host,
520
- Parameters.subscriptionId,
521
- Parameters.resourceGroupName,
522
- Parameters.nextLink,
523
- Parameters.cacheName,
524
- ],
525
- headerParameters: [Parameters.accept],
526
- serializer,
543
+ default: {
544
+ bodyMapper: Mappers.CloudError
545
+ }
546
+ },
547
+ urlParameters: [
548
+ Parameters.$host,
549
+ Parameters.subscriptionId,
550
+ Parameters.resourceGroupName,
551
+ Parameters.nextLink,
552
+ Parameters.cacheName
553
+ ],
554
+ headerParameters: [Parameters.accept],
555
+ serializer
556
+ };
557
+ export {
558
+ StorageTargetsImpl
527
559
  };
528
- //# sourceMappingURL=storageTargets.js.map