@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 +1,7 @@
1
- {"version":3,"file":"storageTargets.js","sourceRoot":"","sources":["../../../src/operations/storageTargets.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAgB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAChB,iBAAyB,EACzB,SAAiB,EACjB,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACrF,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,qBAAqB,CACl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,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { StorageTargets } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageCacheManagementClient } from \"../storageCacheManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n StorageTarget,\n StorageTargetsListByCacheNextOptionalParams,\n StorageTargetsListByCacheOptionalParams,\n StorageTargetsListByCacheResponse,\n StorageTargetsDnsRefreshOptionalParams,\n StorageTargetsDeleteOptionalParams,\n StorageTargetsGetOptionalParams,\n StorageTargetsGetResponse,\n StorageTargetsCreateOrUpdateOptionalParams,\n StorageTargetsCreateOrUpdateResponse,\n StorageTargetsRestoreDefaultsOptionalParams,\n StorageTargetsListByCacheNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageTargets operations. */\nexport class StorageTargetsImpl implements StorageTargets {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class StorageTargets class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of Storage Targets for the specified cache.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param options The options parameters.\n */\n public listByCache(\n resourceGroupName: string,\n cacheName: string,\n options?: StorageTargetsListByCacheOptionalParams,\n ): PagedAsyncIterableIterator<StorageTarget> {\n const iter = this.listByCachePagingAll(resourceGroupName, cacheName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByCachePagingPage(resourceGroupName, cacheName, options, settings);\n },\n };\n }\n\n private async *listByCachePagingPage(\n resourceGroupName: string,\n cacheName: string,\n options?: StorageTargetsListByCacheOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<StorageTarget[]> {\n let result: StorageTargetsListByCacheResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCache(resourceGroupName, cacheName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByCacheNext(\n resourceGroupName,\n cacheName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByCachePagingAll(\n resourceGroupName: string,\n cacheName: string,\n options?: StorageTargetsListByCacheOptionalParams,\n ): AsyncIterableIterator<StorageTarget> {\n for await (const page of this.listByCachePagingPage(resourceGroupName, cacheName, options)) {\n yield* page;\n }\n }\n\n /**\n * Tells a storage target to refresh its DNS information.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginDnsRefresh(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsDnsRefreshOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, cacheName, storageTargetName, options },\n spec: dnsRefreshOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Tells a storage target to refresh its DNS information.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginDnsRefreshAndWait(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsDnsRefreshOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDnsRefresh(\n resourceGroupName,\n cacheName,\n storageTargetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a list of Storage Targets for the specified cache.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param options The options parameters.\n */\n private _listByCache(\n resourceGroupName: string,\n cacheName: string,\n options?: StorageTargetsListByCacheOptionalParams,\n ): Promise<StorageTargetsListByCacheResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, cacheName, options },\n listByCacheOperationSpec,\n );\n }\n\n /**\n * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is\n * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is\n * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be\n * flushed before the Storage Target will be deleted.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, cacheName, storageTargetName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is\n * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is\n * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be\n * flushed before the Storage Target will be deleted.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, cacheName, storageTargetName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a Storage Target from a cache.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsGetOptionalParams,\n ): Promise<StorageTargetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, cacheName, storageTargetName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down\n * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache\n * is healthy again.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param storagetarget Object containing the definition of a Storage Target.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n storagetarget: StorageTarget,\n options?: StorageTargetsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageTargetsCreateOrUpdateResponse>,\n StorageTargetsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<StorageTargetsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n cacheName,\n storageTargetName,\n storagetarget,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n StorageTargetsCreateOrUpdateResponse,\n OperationState<StorageTargetsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down\n * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache\n * is healthy again.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param storagetarget Object containing the definition of a Storage Target.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n storagetarget: StorageTarget,\n options?: StorageTargetsCreateOrUpdateOptionalParams,\n ): Promise<StorageTargetsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n cacheName,\n storageTargetName,\n storagetarget,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Tells a storage target to restore its settings to their default values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginRestoreDefaults(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsRestoreDefaultsOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, cacheName, storageTargetName, options },\n spec: restoreDefaultsOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Tells a storage target to restore its settings to their default values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginRestoreDefaultsAndWait(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsRestoreDefaultsOptionalParams,\n ): Promise<void> {\n const poller = await this.beginRestoreDefaults(\n resourceGroupName,\n cacheName,\n storageTargetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByCacheNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param nextLink The nextLink from the previous successful call to the ListByCache method.\n * @param options The options parameters.\n */\n private _listByCacheNext(\n resourceGroupName: string,\n cacheName: string,\n nextLink: string,\n options?: StorageTargetsListByCacheNextOptionalParams,\n ): Promise<StorageTargetsListByCacheNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, cacheName, nextLink, options },\n listByCacheNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst dnsRefreshOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByCacheOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTargetsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.force],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTarget,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTarget,\n },\n 201: {\n bodyMapper: Mappers.StorageTarget,\n },\n 202: {\n bodyMapper: Mappers.StorageTarget,\n },\n 204: {\n bodyMapper: Mappers.StorageTarget,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.storagetarget,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst restoreDefaultsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/restoreDefaults\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByCacheNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTargetsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.cacheName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/operations/storageTargets.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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { StorageTargets } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageCacheManagementClient } from \"../storageCacheManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n StorageTarget,\n StorageTargetsListByCacheNextOptionalParams,\n StorageTargetsListByCacheOptionalParams,\n StorageTargetsListByCacheResponse,\n StorageTargetsDnsRefreshOptionalParams,\n StorageTargetsDeleteOptionalParams,\n StorageTargetsGetOptionalParams,\n StorageTargetsGetResponse,\n StorageTargetsCreateOrUpdateOptionalParams,\n StorageTargetsCreateOrUpdateResponse,\n StorageTargetsRestoreDefaultsOptionalParams,\n StorageTargetsListByCacheNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageTargets operations. */\nexport class StorageTargetsImpl implements StorageTargets {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class StorageTargets class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of Storage Targets for the specified cache.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param options The options parameters.\n */\n public listByCache(\n resourceGroupName: string,\n cacheName: string,\n options?: StorageTargetsListByCacheOptionalParams,\n ): PagedAsyncIterableIterator<StorageTarget> {\n const iter = this.listByCachePagingAll(resourceGroupName, cacheName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByCachePagingPage(resourceGroupName, cacheName, options, settings);\n },\n };\n }\n\n private async *listByCachePagingPage(\n resourceGroupName: string,\n cacheName: string,\n options?: StorageTargetsListByCacheOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<StorageTarget[]> {\n let result: StorageTargetsListByCacheResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCache(resourceGroupName, cacheName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByCacheNext(\n resourceGroupName,\n cacheName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByCachePagingAll(\n resourceGroupName: string,\n cacheName: string,\n options?: StorageTargetsListByCacheOptionalParams,\n ): AsyncIterableIterator<StorageTarget> {\n for await (const page of this.listByCachePagingPage(resourceGroupName, cacheName, options)) {\n yield* page;\n }\n }\n\n /**\n * Tells a storage target to refresh its DNS information.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginDnsRefresh(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsDnsRefreshOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, cacheName, storageTargetName, options },\n spec: dnsRefreshOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Tells a storage target to refresh its DNS information.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginDnsRefreshAndWait(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsDnsRefreshOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDnsRefresh(\n resourceGroupName,\n cacheName,\n storageTargetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a list of Storage Targets for the specified cache.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param options The options parameters.\n */\n private _listByCache(\n resourceGroupName: string,\n cacheName: string,\n options?: StorageTargetsListByCacheOptionalParams,\n ): Promise<StorageTargetsListByCacheResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, cacheName, options },\n listByCacheOperationSpec,\n );\n }\n\n /**\n * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is\n * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is\n * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be\n * flushed before the Storage Target will be deleted.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, cacheName, storageTargetName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Removes a Storage Target from a cache. This operation is allowed at any time, but if the cache is\n * down or unhealthy, the actual removal of the Storage Target may be delayed until the cache is\n * healthy again. Note that if the cache has data to flush to the Storage Target, the data will be\n * flushed before the Storage Target will be deleted.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(resourceGroupName, cacheName, storageTargetName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Returns a Storage Target from a cache.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsGetOptionalParams,\n ): Promise<StorageTargetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, cacheName, storageTargetName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down\n * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache\n * is healthy again.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param storagetarget Object containing the definition of a Storage Target.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n storagetarget: StorageTarget,\n options?: StorageTargetsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageTargetsCreateOrUpdateResponse>,\n StorageTargetsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<StorageTargetsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n cacheName,\n storageTargetName,\n storagetarget,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n StorageTargetsCreateOrUpdateResponse,\n OperationState<StorageTargetsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a Storage Target. This operation is allowed at any time, but if the cache is down\n * or unhealthy, the actual creation/modification of the Storage Target may be delayed until the cache\n * is healthy again.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param storagetarget Object containing the definition of a Storage Target.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n storagetarget: StorageTarget,\n options?: StorageTargetsCreateOrUpdateOptionalParams,\n ): Promise<StorageTargetsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n cacheName,\n storageTargetName,\n storagetarget,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Tells a storage target to restore its settings to their default values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginRestoreDefaults(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsRestoreDefaultsOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, cacheName, storageTargetName, options },\n spec: restoreDefaultsOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Tells a storage target to restore its settings to their default values.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param storageTargetName Name of Storage Target.\n * @param options The options parameters.\n */\n async beginRestoreDefaultsAndWait(\n resourceGroupName: string,\n cacheName: string,\n storageTargetName: string,\n options?: StorageTargetsRestoreDefaultsOptionalParams,\n ): Promise<void> {\n const poller = await this.beginRestoreDefaults(\n resourceGroupName,\n cacheName,\n storageTargetName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByCacheNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from\n * the [-0-9a-zA-Z_] char class.\n * @param nextLink The nextLink from the previous successful call to the ListByCache method.\n * @param options The options parameters.\n */\n private _listByCacheNext(\n resourceGroupName: string,\n cacheName: string,\n nextLink: string,\n options?: StorageTargetsListByCacheNextOptionalParams,\n ): Promise<StorageTargetsListByCacheNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, cacheName, nextLink, options },\n listByCacheNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst dnsRefreshOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/dnsRefresh\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByCacheOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTargetsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.force],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTarget,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTarget,\n },\n 201: {\n bodyMapper: Mappers.StorageTarget,\n },\n 202: {\n bodyMapper: Mappers.StorageTarget,\n },\n 204: {\n bodyMapper: Mappers.StorageTarget,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.storagetarget,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst restoreDefaultsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/restoreDefaults\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.cacheName,\n Parameters.storageTargetName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByCacheNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTargetsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.cacheName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,0BAAqC;AAErC,iBAA4B;AAC5B,cAAyB;AACzB,iBAA4B;AAE5B,sBAAmE;AACnE,qBAA8B;AAkBvB,MAAM,mBAA6C;AAAA,EACvC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,YAAY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AA,EACA,aAAa,WAAW;AAAA,EACxB,iBAAiB,CAAC,WAAW,UAAU;AAAA,EACvC,eAAe;AAAA,IACb,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EACA,kBAAkB,CAAC,WAAW,QAAQ,WAAW,WAAW;AAAA,EAC5D,WAAW;AAAA,EACX;AACF;AACA,MAAM,+BAAyD;AAAA,EAC7D,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AAAA,IACT,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,KAAK,CAAC;AAAA,IACN,SAAS;AAAA,MACP,YAAY,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EACA,iBAAiB,CAAC,WAAW,UAAU;AAAA,EACvC,eAAe;AAAA,IACb,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EACA,kBAAkB,CAAC,WAAW,MAAM;AAAA,EACpC;AACF;AACA,MAAM,+BAAyD;AAAA,EAC7D,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,eAAe;AAAA,IACb,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EACA,kBAAkB,CAAC,WAAW,MAAM;AAAA,EACpC;AACF;",
6
+ "names": ["flatResponse"]
7
+ }
@@ -1,116 +1,145 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.UsageModelsImpl = void 0;
6
- const tslib_1 = require("tslib");
7
- const pagingHelper_js_1 = require("../pagingHelper.js");
8
- const coreClient = tslib_1.__importStar(require("@azure/core-client"));
9
- const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
10
- const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
11
- /// <reference lib="esnext.asynciterable" />
12
- /** Class containing UsageModels operations. */
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var usageModels_exports = {};
29
+ __export(usageModels_exports, {
30
+ UsageModelsImpl: () => UsageModelsImpl
31
+ });
32
+ module.exports = __toCommonJS(usageModels_exports);
33
+ var import_pagingHelper = require("../pagingHelper.js");
34
+ var coreClient = __toESM(require("@azure/core-client"));
35
+ var Mappers = __toESM(require("../models/mappers.js"));
36
+ var Parameters = __toESM(require("../models/parameters.js"));
13
37
  class UsageModelsImpl {
14
- client;
15
- /**
16
- * Initialize a new instance of the class UsageModels class.
17
- * @param client Reference to the service client
18
- */
19
- constructor(client) {
20
- this.client = client;
21
- }
22
- /**
23
- * Get the list of cache usage models available to this subscription.
24
- * @param options The options parameters.
25
- */
26
- list(options) {
27
- const iter = this.listPagingAll(options);
28
- return {
29
- next() {
30
- return iter.next();
31
- },
32
- [Symbol.asyncIterator]() {
33
- return this;
34
- },
35
- byPage: (settings) => {
36
- if (settings?.maxPageSize) {
37
- throw new Error("maxPageSize is not supported by this operation.");
38
- }
39
- return this.listPagingPage(options, settings);
40
- },
41
- };
42
- }
43
- async *listPagingPage(options, settings) {
44
- let result;
45
- let continuationToken = settings?.continuationToken;
46
- if (!continuationToken) {
47
- result = await this._list(options);
48
- let page = result.value || [];
49
- continuationToken = result.nextLink;
50
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
51
- yield page;
52
- }
53
- while (continuationToken) {
54
- result = await this._listNext(continuationToken, options);
55
- continuationToken = result.nextLink;
56
- let page = result.value || [];
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield page;
38
+ client;
39
+ /**
40
+ * Initialize a new instance of the class UsageModels class.
41
+ * @param client Reference to the service client
42
+ */
43
+ constructor(client) {
44
+ this.client = client;
45
+ }
46
+ /**
47
+ * Get the list of cache usage models available to this subscription.
48
+ * @param options The options parameters.
49
+ */
50
+ list(options) {
51
+ const iter = this.listPagingAll(options);
52
+ return {
53
+ next() {
54
+ return iter.next();
55
+ },
56
+ [Symbol.asyncIterator]() {
57
+ return this;
58
+ },
59
+ byPage: (settings) => {
60
+ if (settings?.maxPageSize) {
61
+ throw new Error("maxPageSize is not supported by this operation.");
59
62
  }
63
+ return this.listPagingPage(options, settings);
64
+ }
65
+ };
66
+ }
67
+ async *listPagingPage(options, settings) {
68
+ let result;
69
+ let continuationToken = settings?.continuationToken;
70
+ if (!continuationToken) {
71
+ result = await this._list(options);
72
+ let page = result.value || [];
73
+ continuationToken = result.nextLink;
74
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
75
+ yield page;
60
76
  }
61
- async *listPagingAll(options) {
62
- for await (const page of this.listPagingPage(options)) {
63
- yield* page;
64
- }
65
- }
66
- /**
67
- * Get the list of cache usage models available to this subscription.
68
- * @param options The options parameters.
69
- */
70
- _list(options) {
71
- return this.client.sendOperationRequest({ options }, listOperationSpec);
77
+ while (continuationToken) {
78
+ result = await this._listNext(continuationToken, options);
79
+ continuationToken = result.nextLink;
80
+ let page = result.value || [];
81
+ (0, import_pagingHelper.setContinuationToken)(page, continuationToken);
82
+ yield page;
72
83
  }
73
- /**
74
- * ListNext
75
- * @param nextLink The nextLink from the previous successful call to the List method.
76
- * @param options The options parameters.
77
- */
78
- _listNext(nextLink, options) {
79
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
84
+ }
85
+ async *listPagingAll(options) {
86
+ for await (const page of this.listPagingPage(options)) {
87
+ yield* page;
80
88
  }
89
+ }
90
+ /**
91
+ * Get the list of cache usage models available to this subscription.
92
+ * @param options The options parameters.
93
+ */
94
+ _list(options) {
95
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
96
+ }
97
+ /**
98
+ * ListNext
99
+ * @param nextLink The nextLink from the previous successful call to the List method.
100
+ * @param options The options parameters.
101
+ */
102
+ _listNext(nextLink, options) {
103
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
104
+ }
81
105
  }
82
- exports.UsageModelsImpl = UsageModelsImpl;
83
- // Operation Specifications
84
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
106
+ const serializer = coreClient.createSerializer(
107
+ Mappers,
108
+ /* isXml */
109
+ false
110
+ );
85
111
  const listOperationSpec = {
86
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels",
87
- httpMethod: "GET",
88
- responses: {
89
- 200: {
90
- bodyMapper: Mappers.UsageModelsResult,
91
- },
92
- default: {
93
- bodyMapper: Mappers.CloudError,
94
- },
112
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels",
113
+ httpMethod: "GET",
114
+ responses: {
115
+ 200: {
116
+ bodyMapper: Mappers.UsageModelsResult
95
117
  },
96
- queryParameters: [Parameters.apiVersion],
97
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
98
- headerParameters: [Parameters.accept],
99
- serializer,
118
+ default: {
119
+ bodyMapper: Mappers.CloudError
120
+ }
121
+ },
122
+ queryParameters: [Parameters.apiVersion],
123
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
124
+ headerParameters: [Parameters.accept],
125
+ serializer
100
126
  };
101
127
  const listNextOperationSpec = {
102
- path: "{nextLink}",
103
- httpMethod: "GET",
104
- responses: {
105
- 200: {
106
- bodyMapper: Mappers.UsageModelsResult,
107
- },
108
- default: {
109
- bodyMapper: Mappers.CloudError,
110
- },
128
+ path: "{nextLink}",
129
+ httpMethod: "GET",
130
+ responses: {
131
+ 200: {
132
+ bodyMapper: Mappers.UsageModelsResult
111
133
  },
112
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
113
- headerParameters: [Parameters.accept],
114
- serializer,
134
+ default: {
135
+ bodyMapper: Mappers.CloudError
136
+ }
137
+ },
138
+ urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
139
+ headerParameters: [Parameters.accept],
140
+ serializer
115
141
  };
116
- //# sourceMappingURL=usageModels.js.map
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ UsageModelsImpl
145
+ });
@@ -1 +1,7 @@
1
- {"version":3,"file":"usageModels.js","sourceRoot":"","sources":["../../../src/operations/usageModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAa,eAAe;I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IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,CAAC;IACjF,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { UsageModels } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageCacheManagementClient } from \"../storageCacheManagementClient.js\";\nimport {\n UsageModel,\n UsageModelsListNextOptionalParams,\n UsageModelsListOptionalParams,\n UsageModelsListResponse,\n UsageModelsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing UsageModels operations. */\nexport class UsageModelsImpl implements UsageModels {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class UsageModels class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Get the list of cache usage models available to this subscription.\n * @param options The options parameters.\n */\n public list(options?: UsageModelsListOptionalParams): PagedAsyncIterableIterator<UsageModel> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: UsageModelsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<UsageModel[]> {\n let result: UsageModelsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: UsageModelsListOptionalParams,\n ): AsyncIterableIterator<UsageModel> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get the list of cache usage models available to this subscription.\n * @param options The options parameters.\n */\n private _list(options?: UsageModelsListOptionalParams): Promise<UsageModelsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: UsageModelsListNextOptionalParams,\n ): Promise<UsageModelsListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageModelsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageModelsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/operations/usageModels.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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { UsageModels } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageCacheManagementClient } from \"../storageCacheManagementClient.js\";\nimport {\n UsageModel,\n UsageModelsListNextOptionalParams,\n UsageModelsListOptionalParams,\n UsageModelsListResponse,\n UsageModelsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing UsageModels operations. */\nexport class UsageModelsImpl implements UsageModels {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class UsageModels class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Get the list of cache usage models available to this subscription.\n * @param options The options parameters.\n */\n public list(options?: UsageModelsListOptionalParams): PagedAsyncIterableIterator<UsageModel> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: UsageModelsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<UsageModel[]> {\n let result: UsageModelsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: UsageModelsListOptionalParams,\n ): AsyncIterableIterator<UsageModel> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get the list of cache usage models available to this subscription.\n * @param options The options parameters.\n */\n private _list(options?: UsageModelsListOptionalParams): Promise<UsageModelsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: UsageModelsListNextOptionalParams,\n ): Promise<UsageModelsListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageModelsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UsageModelsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],\n headerParameters: [Par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AM,SAA2E;AACvF,WAAO,KAAK,OAAO,qBAAqB,EAAE,QAAQ,GAAG,iBAAiB;AAAA,EACxE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOQ,UACN,UACA,SACsC;AACtC,WAAO,KAAK,OAAO,qBAAqB,EAAE,UAAU,QAAQ,GAAG,qBAAqB;AAAA,EACtF;AACF;AAEA,MAAM,aAAa,WAAW;AAAA,EAAiB;AAAA;AAAA,EAAqB;AAAK;AAEzE,MAAM,oBAA8C;AAAA,EAClD,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,iBAAiB,CAAC,WAAW,UAAU;AAAA,EACvC,eAAe,CAAC,WAAW,OAAO,WAAW,cAAc;AAAA,EAC3D,kBAAkB,CAAC,WAAW,MAAM;AAAA,EACpC;AACF;AACA,MAAM,wBAAkD;AAAA,EACtD,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,eAAe,CAAC,WAAW,OAAO,WAAW,gBAAgB,WAAW,QAAQ;AAAA,EAChF,kBAAkB,CAAC,WAAW,MAAM;AAAA,EACpC;AACF;",
6
+ "names": []
7
+ }
@@ -1,5 +1,15 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=amlFilesystems.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var amlFilesystems_exports = {};
15
+ module.exports = __toCommonJS(amlFilesystems_exports);
@@ -1 +1,7 @@
1
- {"version":3,"file":"amlFilesystems.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/amlFilesystems.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n AmlFilesystem,\n AmlFilesystemsListOptionalParams,\n AmlFilesystemsListByResourceGroupOptionalParams,\n AmlFilesystemsDeleteOptionalParams,\n AmlFilesystemsGetOptionalParams,\n AmlFilesystemsGetResponse,\n AmlFilesystemsCreateOrUpdateOptionalParams,\n AmlFilesystemsCreateOrUpdateResponse,\n AmlFilesystemUpdate,\n AmlFilesystemsUpdateOptionalParams,\n AmlFilesystemsUpdateResponse,\n AmlFilesystemsArchiveOptionalParams,\n AmlFilesystemsCancelArchiveOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a AmlFilesystems. */\nexport interface AmlFilesystems {\n /**\n * Returns all AML file systems the user has access to under a subscription.\n * @param options The options parameters.\n */\n list(options?: AmlFilesystemsListOptionalParams): PagedAsyncIterableIterator<AmlFilesystem>;\n /**\n * Returns all AML file systems the user has access to under a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: AmlFilesystemsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<AmlFilesystem>;\n /**\n * Schedules an AML file system for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Schedules an AML file system for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Returns an AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsGetOptionalParams,\n ): Promise<AmlFilesystemsGetResponse>;\n /**\n * Create or update an AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n amlFilesystem: AmlFilesystem,\n options?: AmlFilesystemsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AmlFilesystemsCreateOrUpdateResponse>,\n AmlFilesystemsCreateOrUpdateResponse\n >\n >;\n /**\n * Create or update an AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n amlFilesystem: AmlFilesystem,\n options?: AmlFilesystemsCreateOrUpdateOptionalParams,\n ): Promise<AmlFilesystemsCreateOrUpdateResponse>;\n /**\n * Update an AML file system instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n amlFilesystem: AmlFilesystemUpdate,\n options?: AmlFilesystemsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<AmlFilesystemsUpdateResponse>, AmlFilesystemsUpdateResponse>\n >;\n /**\n * Update an AML file system instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n amlFilesystem: AmlFilesystemUpdate,\n options?: AmlFilesystemsUpdateOptionalParams,\n ): Promise<AmlFilesystemsUpdateResponse>;\n /**\n * Archive data from the AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n archive(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsArchiveOptionalParams,\n ): Promise<void>;\n /**\n * Cancel archiving data from the AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n cancelArchive(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsCancelArchiveOptionalParams,\n ): Promise<void>;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/operationsInterfaces/amlFilesystems.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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n AmlFilesystem,\n AmlFilesystemsListOptionalParams,\n AmlFilesystemsListByResourceGroupOptionalParams,\n AmlFilesystemsDeleteOptionalParams,\n AmlFilesystemsGetOptionalParams,\n AmlFilesystemsGetResponse,\n AmlFilesystemsCreateOrUpdateOptionalParams,\n AmlFilesystemsCreateOrUpdateResponse,\n AmlFilesystemUpdate,\n AmlFilesystemsUpdateOptionalParams,\n AmlFilesystemsUpdateResponse,\n AmlFilesystemsArchiveOptionalParams,\n AmlFilesystemsCancelArchiveOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a AmlFilesystems. */\nexport interface AmlFilesystems {\n /**\n * Returns all AML file systems the user has access to under a subscription.\n * @param options The options parameters.\n */\n list(options?: AmlFilesystemsListOptionalParams): PagedAsyncIterableIterator<AmlFilesystem>;\n /**\n * Returns all AML file systems the user has access to under a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: AmlFilesystemsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<AmlFilesystem>;\n /**\n * Schedules an AML file system for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Schedules an AML file system for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsDeleteOptionalParams,\n ): Promise<void>;\n /**\n * Returns an AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsGetOptionalParams,\n ): Promise<AmlFilesystemsGetResponse>;\n /**\n * Create or update an AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n amlFilesystem: AmlFilesystem,\n options?: AmlFilesystemsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<AmlFilesystemsCreateOrUpdateResponse>,\n AmlFilesystemsCreateOrUpdateResponse\n >\n >;\n /**\n * Create or update an AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n amlFilesystem: AmlFilesystem,\n options?: AmlFilesystemsCreateOrUpdateOptionalParams,\n ): Promise<AmlFilesystemsCreateOrUpdateResponse>;\n /**\n * Update an AML file system instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n amlFilesystem: AmlFilesystemUpdate,\n options?: AmlFilesystemsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<AmlFilesystemsUpdateResponse>, AmlFilesystemsUpdateResponse>\n >;\n /**\n * Update an AML file system instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param amlFilesystem Object containing the user-selectable properties of the AML file system. If\n * read-only properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n amlFilesystem: AmlFilesystemUpdate,\n options?: AmlFilesystemsUpdateOptionalParams,\n ): Promise<AmlFilesystemsUpdateResponse>;\n /**\n * Archive data from the AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n archive(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsArchiveOptionalParams,\n ): Promise<void>;\n /**\n * Cancel archiving data from the AML file system.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n cancelArchive(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: AmlFilesystemsCancelArchiveOptionalParams,\n ): Promise<void>;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,5 +1,15 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=ascOperations.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var ascOperations_exports = {};
15
+ module.exports = __toCommonJS(ascOperations_exports);
@@ -1 +1,7 @@
1
- {"version":3,"file":"ascOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/ascOperations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","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 { AscOperationsGetOptionalParams, AscOperationsGetResponse } from \"../models/index.js\";\n\n/** Interface representing a AscOperations. */\nexport interface AscOperations {\n /**\n * Gets the status of an asynchronous operation for the Azure HPC Cache\n * @param location The name of Azure region.\n * @param operationId The ID of an ongoing async operation.\n * @param options The options parameters.\n */\n get(\n location: string,\n operationId: string,\n options?: AscOperationsGetOptionalParams,\n ): Promise<AscOperationsGetResponse>;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/operationsInterfaces/ascOperations.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 { AscOperationsGetOptionalParams, AscOperationsGetResponse } from \"../models/index.js\";\n\n/** Interface representing a AscOperations. */\nexport interface AscOperations {\n /**\n * Gets the status of an asynchronous operation for the Azure HPC Cache\n * @param location The name of Azure region.\n * @param operationId The ID of an ongoing async operation.\n * @param options The options parameters.\n */\n get(\n location: string,\n operationId: string,\n options?: AscOperationsGetOptionalParams,\n ): Promise<AscOperationsGetResponse>;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,5 +1,15 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=ascUsages.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var ascUsages_exports = {};
15
+ module.exports = __toCommonJS(ascUsages_exports);
@@ -1 +1,7 @@
1
- {"version":3,"file":"ascUsages.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/ascUsages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ResourceUsage, AscUsagesListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a AscUsages. */\nexport interface AscUsages {\n /**\n * Gets the quantity used and quota limit for resources\n * @param location The name of the region to query for usage information.\n * @param options The options parameters.\n */\n list(\n location: string,\n options?: AscUsagesListOptionalParams,\n ): PagedAsyncIterableIterator<ResourceUsage>;\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/operationsInterfaces/ascUsages.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 { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { ResourceUsage, AscUsagesListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a AscUsages. */\nexport interface AscUsages {\n /**\n * Gets the quantity used and quota limit for resources\n * @param location The name of the region to query for usage information.\n * @param options The options parameters.\n */\n list(\n location: string,\n options?: AscUsagesListOptionalParams,\n ): PagedAsyncIterableIterator<ResourceUsage>;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }