@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":"importJobs.js","sourceRoot":"","sources":["../../../src/operations/importJobs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAkB9C,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,iBAAyB,EACzB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC9F,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,6BAA6B,CACvC,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,6BAA6B,CAC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jB,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,mJAAmJ;IACzJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ImportJobs } 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 ImportJob,\n ImportJobsListByAmlFilesystemNextOptionalParams,\n ImportJobsListByAmlFilesystemOptionalParams,\n ImportJobsListByAmlFilesystemResponse,\n ImportJobsDeleteOptionalParams,\n ImportJobsDeleteResponse,\n ImportJobsGetOptionalParams,\n ImportJobsGetResponse,\n ImportJobsCreateOrUpdateOptionalParams,\n ImportJobsCreateOrUpdateResponse,\n ImportJobUpdate,\n ImportJobsUpdateOptionalParams,\n ImportJobsUpdateResponse,\n ImportJobsListByAmlFilesystemNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ImportJobs operations. */\nexport class ImportJobsImpl implements ImportJobs {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class ImportJobs class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all import jobs the user has access to under an AML File System.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n public listByAmlFilesystem(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ImportJobsListByAmlFilesystemOptionalParams,\n ): PagedAsyncIterableIterator<ImportJob> {\n const iter = this.listByAmlFilesystemPagingAll(resourceGroupName, amlFilesystemName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAmlFilesystemPagingPage(\n resourceGroupName,\n amlFilesystemName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByAmlFilesystemPagingPage(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ImportJobsListByAmlFilesystemOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ImportJob[]> {\n let result: ImportJobsListByAmlFilesystemResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAmlFilesystem(resourceGroupName, amlFilesystemName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAmlFilesystemNext(\n resourceGroupName,\n amlFilesystemName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAmlFilesystemPagingAll(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ImportJobsListByAmlFilesystemOptionalParams,\n ): AsyncIterableIterator<ImportJob> {\n for await (const page of this.listByAmlFilesystemPagingPage(\n resourceGroupName,\n amlFilesystemName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Schedules an import job for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n options?: ImportJobsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ImportJobsDeleteResponse>, ImportJobsDeleteResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ImportJobsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, amlFilesystemName, importJobName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ImportJobsDeleteResponse,\n OperationState<ImportJobsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Schedules an import job for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n options?: ImportJobsDeleteOptionalParams,\n ): Promise<ImportJobsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns an import job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n options?: ImportJobsGetOptionalParams,\n ): Promise<ImportJobsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, importJobName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update an import job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param importJob Object containing the user-selectable properties of the import job. If read-only\n * properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n importJob: ImportJob,\n options?: ImportJobsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ImportJobsCreateOrUpdateResponse>,\n ImportJobsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ImportJobsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n importJob,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ImportJobsCreateOrUpdateResponse,\n OperationState<ImportJobsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update an import job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param importJob Object containing the user-selectable properties of the import job. If read-only\n * properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n importJob: ImportJob,\n options?: ImportJobsCreateOrUpdateOptionalParams,\n ): Promise<ImportJobsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n importJob,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an import job instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param importJob Object containing the user-selectable properties of the import job. If read-only\n * properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n importJob: ImportJobUpdate,\n options?: ImportJobsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ImportJobsUpdateResponse>, ImportJobsUpdateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ImportJobsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n importJob,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ImportJobsUpdateResponse,\n OperationState<ImportJobsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an import job instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param importJob Object containing the user-selectable properties of the import job. If read-only\n * properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n importJob: ImportJobUpdate,\n options?: ImportJobsUpdateOptionalParams,\n ): Promise<ImportJobsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n importJob,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns all import jobs the user has access to under an AML File System.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n private _listByAmlFilesystem(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ImportJobsListByAmlFilesystemOptionalParams,\n ): Promise<ImportJobsListByAmlFilesystemResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, options },\n listByAmlFilesystemOperationSpec,\n );\n }\n\n /**\n * ListByAmlFilesystemNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param nextLink The nextLink from the previous successful call to the ListByAmlFilesystem method.\n * @param options The options parameters.\n */\n private _listByAmlFilesystemNext(\n resourceGroupName: string,\n amlFilesystemName: string,\n nextLink: string,\n options?: ImportJobsListByAmlFilesystemNextOptionalParams,\n ): Promise<ImportJobsListByAmlFilesystemNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, nextLink, options },\n listByAmlFilesystemNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ImportJobsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.ImportJobsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.ImportJobsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.ImportJobsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.importJobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.importJobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n 201: {\n bodyMapper: Mappers.ImportJob,\n },\n 202: {\n bodyMapper: Mappers.ImportJob,\n },\n 204: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.importJob,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.importJobName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n 201: {\n bodyMapper: Mappers.ImportJob,\n },\n 202: {\n bodyMapper: Mappers.ImportJob,\n },\n 204: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.importJob1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.importJobName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByAmlFilesystemOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJobsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByAmlFilesystemNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJobsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/operations/importJobs.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 { ImportJobs } 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 ImportJob,\n ImportJobsListByAmlFilesystemNextOptionalParams,\n ImportJobsListByAmlFilesystemOptionalParams,\n ImportJobsListByAmlFilesystemResponse,\n ImportJobsDeleteOptionalParams,\n ImportJobsDeleteResponse,\n ImportJobsGetOptionalParams,\n ImportJobsGetResponse,\n ImportJobsCreateOrUpdateOptionalParams,\n ImportJobsCreateOrUpdateResponse,\n ImportJobUpdate,\n ImportJobsUpdateOptionalParams,\n ImportJobsUpdateResponse,\n ImportJobsListByAmlFilesystemNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ImportJobs operations. */\nexport class ImportJobsImpl implements ImportJobs {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class ImportJobs class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all import jobs the user has access to under an AML File System.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n public listByAmlFilesystem(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ImportJobsListByAmlFilesystemOptionalParams,\n ): PagedAsyncIterableIterator<ImportJob> {\n const iter = this.listByAmlFilesystemPagingAll(resourceGroupName, amlFilesystemName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByAmlFilesystemPagingPage(\n resourceGroupName,\n amlFilesystemName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByAmlFilesystemPagingPage(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ImportJobsListByAmlFilesystemOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ImportJob[]> {\n let result: ImportJobsListByAmlFilesystemResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAmlFilesystem(resourceGroupName, amlFilesystemName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAmlFilesystemNext(\n resourceGroupName,\n amlFilesystemName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByAmlFilesystemPagingAll(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ImportJobsListByAmlFilesystemOptionalParams,\n ): AsyncIterableIterator<ImportJob> {\n for await (const page of this.listByAmlFilesystemPagingPage(\n resourceGroupName,\n amlFilesystemName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Schedules an import job for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n options?: ImportJobsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ImportJobsDeleteResponse>, ImportJobsDeleteResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ImportJobsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, amlFilesystemName, importJobName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ImportJobsDeleteResponse,\n OperationState<ImportJobsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Schedules an import job for deletion.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n options?: ImportJobsDeleteOptionalParams,\n ): Promise<ImportJobsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns an import job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n options?: ImportJobsGetOptionalParams,\n ): Promise<ImportJobsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, importJobName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update an import job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param importJob Object containing the user-selectable properties of the import job. If read-only\n * properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n importJob: ImportJob,\n options?: ImportJobsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ImportJobsCreateOrUpdateResponse>,\n ImportJobsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ImportJobsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n importJob,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ImportJobsCreateOrUpdateResponse,\n OperationState<ImportJobsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update an import job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param importJob Object containing the user-selectable properties of the import job. If read-only\n * properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n importJob: ImportJob,\n options?: ImportJobsCreateOrUpdateOptionalParams,\n ): Promise<ImportJobsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n importJob,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update an import job instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param importJob Object containing the user-selectable properties of the import job. If read-only\n * properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n importJob: ImportJobUpdate,\n options?: ImportJobsUpdateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<ImportJobsUpdateResponse>, ImportJobsUpdateResponse>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ImportJobsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n importJob,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n ImportJobsUpdateResponse,\n OperationState<ImportJobsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update an import job instance.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param importJobName Name for the import job. Allows alphanumerics, underscores, and hyphens. Start\n * and end with alphanumeric.\n * @param importJob Object containing the user-selectable properties of the import job. If read-only\n * properties are included, they must match the existing values of those properties.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n amlFilesystemName: string,\n importJobName: string,\n importJob: ImportJobUpdate,\n options?: ImportJobsUpdateOptionalParams,\n ): Promise<ImportJobsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n amlFilesystemName,\n importJobName,\n importJob,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Returns all import jobs the user has access to under an AML File System.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param options The options parameters.\n */\n private _listByAmlFilesystem(\n resourceGroupName: string,\n amlFilesystemName: string,\n options?: ImportJobsListByAmlFilesystemOptionalParams,\n ): Promise<ImportJobsListByAmlFilesystemResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, options },\n listByAmlFilesystemOperationSpec,\n );\n }\n\n /**\n * ListByAmlFilesystemNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param amlFilesystemName Name for the AML file system. Allows alphanumerics, underscores, and\n * hyphens. Start and end with alphanumeric.\n * @param nextLink The nextLink from the previous successful call to the ListByAmlFilesystem method.\n * @param options The options parameters.\n */\n private _listByAmlFilesystemNext(\n resourceGroupName: string,\n amlFilesystemName: string,\n nextLink: string,\n options?: ImportJobsListByAmlFilesystemNextOptionalParams,\n ): Promise<ImportJobsListByAmlFilesystemNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, amlFilesystemName, nextLink, options },\n listByAmlFilesystemNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ImportJobsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.ImportJobsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.ImportJobsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.ImportJobsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.importJobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.importJobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n 201: {\n bodyMapper: Mappers.ImportJob,\n },\n 202: {\n bodyMapper: Mappers.ImportJob,\n },\n 204: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.importJob,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.importJobName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs/{importJobName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJob,\n },\n 201: {\n bodyMapper: Mappers.ImportJob,\n },\n 202: {\n bodyMapper: Mappers.ImportJob,\n },\n 204: {\n bodyMapper: Mappers.ImportJob,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.importJob1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.importJobName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByAmlFilesystemOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/amlFilesystems/{amlFilesystemName}/importJobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJobsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByAmlFilesystemNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImportJobsListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.amlFilesystemName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,0BAAqC;AAErC,iBAA4B;AAC5B,cAAyB;AACzB,iB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["flatResponse"]
7
+ }
@@ -2,6 +2,7 @@ export * from "./amlFilesystems.js";
2
2
  export * from "./autoExportJobs.js";
3
3
  export * from "./importJobs.js";
4
4
  export * from "./autoImportJobs.js";
5
+ export * from "./expansionJobs.js";
5
6
  export * from "./operations.js";
6
7
  export * from "./skus.js";
7
8
  export * from "./usageModels.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
@@ -1,20 +1,45 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- const tslib_1 = require("tslib");
6
- // Code generated by Microsoft (R) AutoRest Code Generator.
7
- // Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- tslib_1.__exportStar(require("./amlFilesystems.js"), exports);
9
- tslib_1.__exportStar(require("./autoExportJobs.js"), exports);
10
- tslib_1.__exportStar(require("./importJobs.js"), exports);
11
- tslib_1.__exportStar(require("./autoImportJobs.js"), exports);
12
- tslib_1.__exportStar(require("./operations.js"), exports);
13
- tslib_1.__exportStar(require("./skus.js"), exports);
14
- tslib_1.__exportStar(require("./usageModels.js"), exports);
15
- tslib_1.__exportStar(require("./ascOperations.js"), exports);
16
- tslib_1.__exportStar(require("./ascUsages.js"), exports);
17
- tslib_1.__exportStar(require("./caches.js"), exports);
18
- tslib_1.__exportStar(require("./storageTargets.js"), exports);
19
- tslib_1.__exportStar(require("./storageTargetOperations.js"), exports);
20
- //# sourceMappingURL=index.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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var operations_exports = {};
16
+ module.exports = __toCommonJS(operations_exports);
17
+ __reExport(operations_exports, require("./amlFilesystems.js"), module.exports);
18
+ __reExport(operations_exports, require("./autoExportJobs.js"), module.exports);
19
+ __reExport(operations_exports, require("./importJobs.js"), module.exports);
20
+ __reExport(operations_exports, require("./autoImportJobs.js"), module.exports);
21
+ __reExport(operations_exports, require("./expansionJobs.js"), module.exports);
22
+ __reExport(operations_exports, require("./operations.js"), module.exports);
23
+ __reExport(operations_exports, require("./skus.js"), module.exports);
24
+ __reExport(operations_exports, require("./usageModels.js"), module.exports);
25
+ __reExport(operations_exports, require("./ascOperations.js"), module.exports);
26
+ __reExport(operations_exports, require("./ascUsages.js"), module.exports);
27
+ __reExport(operations_exports, require("./caches.js"), module.exports);
28
+ __reExport(operations_exports, require("./storageTargets.js"), module.exports);
29
+ __reExport(operations_exports, require("./storageTargetOperations.js"), module.exports);
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ ...require("./amlFilesystems.js"),
33
+ ...require("./autoExportJobs.js"),
34
+ ...require("./importJobs.js"),
35
+ ...require("./autoImportJobs.js"),
36
+ ...require("./expansionJobs.js"),
37
+ ...require("./operations.js"),
38
+ ...require("./skus.js"),
39
+ ...require("./usageModels.js"),
40
+ ...require("./ascOperations.js"),
41
+ ...require("./ascUsages.js"),
42
+ ...require("./caches.js"),
43
+ ...require("./storageTargets.js"),
44
+ ...require("./storageTargetOperations.js")
45
+ });
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,2DAA2D;AAC3D,oFAAoF;AAEpF,8DAAoC;AACpC,8DAAoC;AACpC,0DAAgC;AAChC,8DAAoC;AACpC,0DAAgC;AAChC,oDAA0B;AAC1B,2DAAiC;AACjC,6DAAmC;AACnC,yDAA+B;AAC/B,sDAA4B;AAC5B,8DAAoC;AACpC,uEAA6C","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nexport * from \"./amlFilesystems.js\";\nexport * from \"./autoExportJobs.js\";\nexport * from \"./importJobs.js\";\nexport * from \"./autoImportJobs.js\";\nexport * from \"./operations.js\";\nexport * from \"./skus.js\";\nexport * from \"./usageModels.js\";\nexport * from \"./ascOperations.js\";\nexport * from \"./ascUsages.js\";\nexport * from \"./caches.js\";\nexport * from \"./storageTargets.js\";\nexport * from \"./storageTargetOperations.js\";\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/operations/index.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\nexport * from \"./amlFilesystems.js\";\nexport * from \"./autoExportJobs.js\";\nexport * from \"./importJobs.js\";\nexport * from \"./autoImportJobs.js\";\nexport * from \"./expansionJobs.js\";\nexport * from \"./operations.js\";\nexport * from \"./skus.js\";\nexport * from \"./usageModels.js\";\nexport * from \"./ascOperations.js\";\nexport * from \"./ascUsages.js\";\nexport * from \"./caches.js\";\nexport * from \"./storageTargets.js\";\nexport * from \"./storageTargetOperations.js\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAMA,+BAAc,gCANd;AAOA,+BAAc,gCAPd;AAQA,+BAAc,4BARd;AASA,+BAAc,gCATd;AAUA,+BAAc,+BAVd;AAWA,+BAAc,4BAXd;AAYA,+BAAc,sBAZd;AAaA,+BAAc,6BAbd;AAcA,+BAAc,+BAdd;AAeA,+BAAc,2BAfd;AAgBA,+BAAc,wBAhBd;AAiBA,+BAAc,gCAjBd;AAkBA,+BAAc,yCAlBd;",
6
+ "names": []
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.OperationsImpl = 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 Operations 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 operations_exports = {};
29
+ __export(operations_exports, {
30
+ OperationsImpl: () => OperationsImpl
31
+ });
32
+ module.exports = __toCommonJS(operations_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 OperationsImpl {
14
- client;
15
- /**
16
- * Initialize a new instance of the class Operations class.
17
- * @param client Reference to the service client
18
- */
19
- constructor(client) {
20
- this.client = client;
21
- }
22
- /**
23
- * Lists all of the available Resource Provider operations.
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 Operations class.
41
+ * @param client Reference to the service client
42
+ */
43
+ constructor(client) {
44
+ this.client = client;
45
+ }
46
+ /**
47
+ * Lists all of the available Resource Provider operations.
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
- * Lists all of the available Resource Provider operations.
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
+ * Lists all of the available Resource Provider operations.
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.OperationsImpl = OperationsImpl;
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: "/providers/Microsoft.StorageCache/operations",
87
- httpMethod: "GET",
88
- responses: {
89
- 200: {
90
- bodyMapper: Mappers.ApiOperationListResult,
91
- },
92
- default: {
93
- bodyMapper: Mappers.CloudError,
94
- },
112
+ path: "/providers/Microsoft.StorageCache/operations",
113
+ httpMethod: "GET",
114
+ responses: {
115
+ 200: {
116
+ bodyMapper: Mappers.ApiOperationListResult
95
117
  },
96
- queryParameters: [Parameters.apiVersion],
97
- urlParameters: [Parameters.$host],
98
- headerParameters: [Parameters.accept],
99
- serializer,
118
+ default: {
119
+ bodyMapper: Mappers.CloudError
120
+ }
121
+ },
122
+ queryParameters: [Parameters.apiVersion],
123
+ urlParameters: [Parameters.$host],
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.ApiOperationListResult,
107
- },
108
- default: {
109
- bodyMapper: Mappers.CloudError,
110
- },
128
+ path: "{nextLink}",
129
+ httpMethod: "GET",
130
+ responses: {
131
+ 200: {
132
+ bodyMapper: Mappers.ApiOperationListResult
111
133
  },
112
- urlParameters: [Parameters.$host, Parameters.nextLink],
113
- headerParameters: [Parameters.accept],
114
- serializer,
134
+ default: {
135
+ bodyMapper: Mappers.CloudError
136
+ }
137
+ },
138
+ urlParameters: [Parameters.$host, Parameters.nextLink],
139
+ headerParameters: [Parameters.accept],
140
+ serializer
115
141
  };
116
- //# sourceMappingURL=operations.js.map
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ OperationsImpl
145
+ });
@@ -1 +1,7 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CAAC,OAAsC;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,E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C,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 { Operations } 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 ApiOperation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Resource Provider operations.\n * @param options The options parameters.\n */\n public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ApiOperation> {\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?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApiOperation[]> {\n let result: OperationsListResponse;\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?: OperationsListOptionalParams,\n ): AsyncIterableIterator<ApiOperation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Resource Provider operations.\n * @param options The options parameters.\n */\n private _list(options?: OperationsListOptionalParams): Promise<OperationsListResponse> {\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?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\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: \"/providers/Microsoft.StorageCache/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiOperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiOperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, 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/operations.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 { Operations } 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 ApiOperation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Resource Provider operations.\n * @param options The options parameters.\n */\n public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ApiOperation> {\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?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApiOperation[]> {\n let result: OperationsListResponse;\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?: OperationsListOptionalParams,\n ): AsyncIterableIterator<ApiOperation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Resource Provider operations.\n * @param options The options parameters.\n */\n private _list(options?: OperationsListOptionalParams): Promise<OperationsListResponse> {\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?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\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: \"/providers/Microsoft.StorageCache/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiOperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApiOperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,0BAAqC;AAErC,iBAA4B;AAC5B,cAAyB;AACzB,iBAA4B;AAYrB,MAAM,eAAqC;AAAA,EAC/B;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,YAAY,QAAsC;AAChD,SAAK,SAAS;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMO,KAAK,SAAkF;AAC5F,UAAM,OAAO,KAAK,cAAc,OAAO;AACvC,WAAO;AAAA,MACL,OAAO;AACL,eAAO,KAAK,KAAK;AAAA,MACnB;AAAA,MACA,CAAC,OAAO,aAAa,IAAI;AACvB,eAAO;AAAA,MACT;AAAA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