@azure/arm-storage 18.6.0-alpha.20250703.1 → 18.6.0-alpha.20250718.2

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 (248) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/index.d.ts +15 -2
  4. package/dist/browser/models/index.d.ts.map +1 -1
  5. package/dist/browser/models/index.js +6 -0
  6. package/dist/browser/models/index.js.map +1 -1
  7. package/dist/browser/models/mappers.d.ts.map +1 -1
  8. package/dist/browser/models/mappers.js +511 -245
  9. package/dist/browser/models/mappers.js.map +1 -1
  10. package/dist/browser/operations/blobContainers.js +34 -46
  11. package/dist/browser/operations/blobContainers.js.map +1 -1
  12. package/dist/browser/operations/blobInventoryPolicies.js +10 -27
  13. package/dist/browser/operations/blobInventoryPolicies.js.map +1 -1
  14. package/dist/browser/operations/blobServices.js +10 -27
  15. package/dist/browser/operations/blobServices.js.map +1 -1
  16. package/dist/browser/operations/deletedAccounts.js +23 -40
  17. package/dist/browser/operations/deletedAccounts.js.map +1 -1
  18. package/dist/browser/operations/encryptionScopes.js +23 -40
  19. package/dist/browser/operations/encryptionScopes.js.map +1 -1
  20. package/dist/browser/operations/fileServices.js +23 -40
  21. package/dist/browser/operations/fileServices.js.map +1 -1
  22. package/dist/browser/operations/fileShares.js +23 -40
  23. package/dist/browser/operations/fileShares.js.map +1 -1
  24. package/dist/browser/operations/localUsersOperations.js +10 -27
  25. package/dist/browser/operations/localUsersOperations.js.map +1 -1
  26. package/dist/browser/operations/managementPolicies.js +1 -0
  27. package/dist/browser/operations/managementPolicies.js.map +1 -1
  28. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +21 -33
  29. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  30. package/dist/browser/operations/objectReplicationPoliciesOperations.js +10 -27
  31. package/dist/browser/operations/objectReplicationPoliciesOperations.js.map +1 -1
  32. package/dist/browser/operations/operations.js +10 -27
  33. package/dist/browser/operations/operations.js.map +1 -1
  34. package/dist/browser/operations/privateEndpointConnections.js +10 -27
  35. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  36. package/dist/browser/operations/privateLinkResources.js +1 -0
  37. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  38. package/dist/browser/operations/queue.js +23 -40
  39. package/dist/browser/operations/queue.js.map +1 -1
  40. package/dist/browser/operations/queueServices.js +1 -0
  41. package/dist/browser/operations/queueServices.js.map +1 -1
  42. package/dist/browser/operations/skus.js +10 -27
  43. package/dist/browser/operations/skus.js.map +1 -1
  44. package/dist/browser/operations/storageAccounts.js +111 -115
  45. package/dist/browser/operations/storageAccounts.js.map +1 -1
  46. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js +23 -40
  47. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  48. package/dist/browser/operations/storageTaskAssignments.js +56 -58
  49. package/dist/browser/operations/storageTaskAssignments.js.map +1 -1
  50. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js +23 -40
  51. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  52. package/dist/browser/operations/tableOperations.js +23 -40
  53. package/dist/browser/operations/tableOperations.js.map +1 -1
  54. package/dist/browser/operations/tableServices.js +1 -0
  55. package/dist/browser/operations/tableServices.js.map +1 -1
  56. package/dist/browser/operations/usages.js +10 -27
  57. package/dist/browser/operations/usages.js.map +1 -1
  58. package/dist/browser/pagingHelper.js +2 -4
  59. package/dist/browser/pagingHelper.js.map +1 -1
  60. package/dist/browser/storageManagementClient.js +37 -5
  61. package/dist/browser/storageManagementClient.js.map +1 -1
  62. package/dist/commonjs/lroImpl.js +7 -3
  63. package/dist/commonjs/lroImpl.js.map +1 -1
  64. package/dist/commonjs/models/index.d.ts +15 -2
  65. package/dist/commonjs/models/index.d.ts.map +1 -1
  66. package/dist/commonjs/models/index.js +7 -1
  67. package/dist/commonjs/models/index.js.map +1 -1
  68. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  69. package/dist/commonjs/models/mappers.js +511 -245
  70. package/dist/commonjs/models/mappers.js.map +1 -1
  71. package/dist/commonjs/operations/blobContainers.js +34 -45
  72. package/dist/commonjs/operations/blobContainers.js.map +1 -1
  73. package/dist/commonjs/operations/blobInventoryPolicies.js +10 -26
  74. package/dist/commonjs/operations/blobInventoryPolicies.js.map +1 -1
  75. package/dist/commonjs/operations/blobServices.js +10 -26
  76. package/dist/commonjs/operations/blobServices.js.map +1 -1
  77. package/dist/commonjs/operations/deletedAccounts.js +23 -39
  78. package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
  79. package/dist/commonjs/operations/encryptionScopes.js +23 -39
  80. package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
  81. package/dist/commonjs/operations/fileServices.js +23 -39
  82. package/dist/commonjs/operations/fileServices.js.map +1 -1
  83. package/dist/commonjs/operations/fileShares.js +23 -39
  84. package/dist/commonjs/operations/fileShares.js.map +1 -1
  85. package/dist/commonjs/operations/localUsersOperations.js +10 -26
  86. package/dist/commonjs/operations/localUsersOperations.js.map +1 -1
  87. package/dist/commonjs/operations/managementPolicies.js +1 -0
  88. package/dist/commonjs/operations/managementPolicies.js.map +1 -1
  89. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +21 -32
  90. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  91. package/dist/commonjs/operations/objectReplicationPoliciesOperations.js +10 -26
  92. package/dist/commonjs/operations/objectReplicationPoliciesOperations.js.map +1 -1
  93. package/dist/commonjs/operations/operations.js +10 -26
  94. package/dist/commonjs/operations/operations.js.map +1 -1
  95. package/dist/commonjs/operations/privateEndpointConnections.js +10 -26
  96. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  97. package/dist/commonjs/operations/privateLinkResources.js +1 -0
  98. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  99. package/dist/commonjs/operations/queue.js +23 -39
  100. package/dist/commonjs/operations/queue.js.map +1 -1
  101. package/dist/commonjs/operations/queueServices.js +1 -0
  102. package/dist/commonjs/operations/queueServices.js.map +1 -1
  103. package/dist/commonjs/operations/skus.js +10 -26
  104. package/dist/commonjs/operations/skus.js.map +1 -1
  105. package/dist/commonjs/operations/storageAccounts.js +111 -114
  106. package/dist/commonjs/operations/storageAccounts.js.map +1 -1
  107. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js +23 -39
  108. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  109. package/dist/commonjs/operations/storageTaskAssignments.js +56 -57
  110. package/dist/commonjs/operations/storageTaskAssignments.js.map +1 -1
  111. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js +23 -39
  112. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  113. package/dist/commonjs/operations/tableOperations.js +23 -39
  114. package/dist/commonjs/operations/tableOperations.js.map +1 -1
  115. package/dist/commonjs/operations/tableServices.js +1 -0
  116. package/dist/commonjs/operations/tableServices.js.map +1 -1
  117. package/dist/commonjs/operations/usages.js +10 -26
  118. package/dist/commonjs/operations/usages.js.map +1 -1
  119. package/dist/commonjs/pagingHelper.js +2 -4
  120. package/dist/commonjs/pagingHelper.js.map +1 -1
  121. package/dist/commonjs/storageManagementClient.js +37 -5
  122. package/dist/commonjs/storageManagementClient.js.map +1 -1
  123. package/dist/commonjs/tsdoc-metadata.json +11 -11
  124. package/dist/esm/lroImpl.js +7 -3
  125. package/dist/esm/lroImpl.js.map +1 -1
  126. package/dist/esm/models/index.d.ts +15 -2
  127. package/dist/esm/models/index.d.ts.map +1 -1
  128. package/dist/esm/models/index.js +6 -0
  129. package/dist/esm/models/index.js.map +1 -1
  130. package/dist/esm/models/mappers.d.ts.map +1 -1
  131. package/dist/esm/models/mappers.js +511 -245
  132. package/dist/esm/models/mappers.js.map +1 -1
  133. package/dist/esm/operations/blobContainers.js +34 -46
  134. package/dist/esm/operations/blobContainers.js.map +1 -1
  135. package/dist/esm/operations/blobInventoryPolicies.js +10 -27
  136. package/dist/esm/operations/blobInventoryPolicies.js.map +1 -1
  137. package/dist/esm/operations/blobServices.js +10 -27
  138. package/dist/esm/operations/blobServices.js.map +1 -1
  139. package/dist/esm/operations/deletedAccounts.js +23 -40
  140. package/dist/esm/operations/deletedAccounts.js.map +1 -1
  141. package/dist/esm/operations/encryptionScopes.js +23 -40
  142. package/dist/esm/operations/encryptionScopes.js.map +1 -1
  143. package/dist/esm/operations/fileServices.js +23 -40
  144. package/dist/esm/operations/fileServices.js.map +1 -1
  145. package/dist/esm/operations/fileShares.js +23 -40
  146. package/dist/esm/operations/fileShares.js.map +1 -1
  147. package/dist/esm/operations/localUsersOperations.js +10 -27
  148. package/dist/esm/operations/localUsersOperations.js.map +1 -1
  149. package/dist/esm/operations/managementPolicies.js +1 -0
  150. package/dist/esm/operations/managementPolicies.js.map +1 -1
  151. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +21 -33
  152. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  153. package/dist/esm/operations/objectReplicationPoliciesOperations.js +10 -27
  154. package/dist/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
  155. package/dist/esm/operations/operations.js +10 -27
  156. package/dist/esm/operations/operations.js.map +1 -1
  157. package/dist/esm/operations/privateEndpointConnections.js +10 -27
  158. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  159. package/dist/esm/operations/privateLinkResources.js +1 -0
  160. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  161. package/dist/esm/operations/queue.js +23 -40
  162. package/dist/esm/operations/queue.js.map +1 -1
  163. package/dist/esm/operations/queueServices.js +1 -0
  164. package/dist/esm/operations/queueServices.js.map +1 -1
  165. package/dist/esm/operations/skus.js +10 -27
  166. package/dist/esm/operations/skus.js.map +1 -1
  167. package/dist/esm/operations/storageAccounts.js +111 -115
  168. package/dist/esm/operations/storageAccounts.js.map +1 -1
  169. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js +23 -40
  170. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  171. package/dist/esm/operations/storageTaskAssignments.js +56 -58
  172. package/dist/esm/operations/storageTaskAssignments.js.map +1 -1
  173. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js +23 -40
  174. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  175. package/dist/esm/operations/tableOperations.js +23 -40
  176. package/dist/esm/operations/tableOperations.js.map +1 -1
  177. package/dist/esm/operations/tableServices.js +1 -0
  178. package/dist/esm/operations/tableServices.js.map +1 -1
  179. package/dist/esm/operations/usages.js +10 -27
  180. package/dist/esm/operations/usages.js.map +1 -1
  181. package/dist/esm/pagingHelper.js +2 -4
  182. package/dist/esm/pagingHelper.js.map +1 -1
  183. package/dist/esm/storageManagementClient.js +37 -5
  184. package/dist/esm/storageManagementClient.js.map +1 -1
  185. package/dist/react-native/lroImpl.js +7 -3
  186. package/dist/react-native/lroImpl.js.map +1 -1
  187. package/dist/react-native/models/index.d.ts +15 -2
  188. package/dist/react-native/models/index.d.ts.map +1 -1
  189. package/dist/react-native/models/index.js +6 -0
  190. package/dist/react-native/models/index.js.map +1 -1
  191. package/dist/react-native/models/mappers.d.ts.map +1 -1
  192. package/dist/react-native/models/mappers.js +511 -245
  193. package/dist/react-native/models/mappers.js.map +1 -1
  194. package/dist/react-native/operations/blobContainers.js +34 -46
  195. package/dist/react-native/operations/blobContainers.js.map +1 -1
  196. package/dist/react-native/operations/blobInventoryPolicies.js +10 -27
  197. package/dist/react-native/operations/blobInventoryPolicies.js.map +1 -1
  198. package/dist/react-native/operations/blobServices.js +10 -27
  199. package/dist/react-native/operations/blobServices.js.map +1 -1
  200. package/dist/react-native/operations/deletedAccounts.js +23 -40
  201. package/dist/react-native/operations/deletedAccounts.js.map +1 -1
  202. package/dist/react-native/operations/encryptionScopes.js +23 -40
  203. package/dist/react-native/operations/encryptionScopes.js.map +1 -1
  204. package/dist/react-native/operations/fileServices.js +23 -40
  205. package/dist/react-native/operations/fileServices.js.map +1 -1
  206. package/dist/react-native/operations/fileShares.js +23 -40
  207. package/dist/react-native/operations/fileShares.js.map +1 -1
  208. package/dist/react-native/operations/localUsersOperations.js +10 -27
  209. package/dist/react-native/operations/localUsersOperations.js.map +1 -1
  210. package/dist/react-native/operations/managementPolicies.js +1 -0
  211. package/dist/react-native/operations/managementPolicies.js.map +1 -1
  212. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +21 -33
  213. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  214. package/dist/react-native/operations/objectReplicationPoliciesOperations.js +10 -27
  215. package/dist/react-native/operations/objectReplicationPoliciesOperations.js.map +1 -1
  216. package/dist/react-native/operations/operations.js +10 -27
  217. package/dist/react-native/operations/operations.js.map +1 -1
  218. package/dist/react-native/operations/privateEndpointConnections.js +10 -27
  219. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  220. package/dist/react-native/operations/privateLinkResources.js +1 -0
  221. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  222. package/dist/react-native/operations/queue.js +23 -40
  223. package/dist/react-native/operations/queue.js.map +1 -1
  224. package/dist/react-native/operations/queueServices.js +1 -0
  225. package/dist/react-native/operations/queueServices.js.map +1 -1
  226. package/dist/react-native/operations/skus.js +10 -27
  227. package/dist/react-native/operations/skus.js.map +1 -1
  228. package/dist/react-native/operations/storageAccounts.js +111 -115
  229. package/dist/react-native/operations/storageAccounts.js.map +1 -1
  230. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js +23 -40
  231. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  232. package/dist/react-native/operations/storageTaskAssignments.js +56 -58
  233. package/dist/react-native/operations/storageTaskAssignments.js.map +1 -1
  234. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js +23 -40
  235. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  236. package/dist/react-native/operations/tableOperations.js +23 -40
  237. package/dist/react-native/operations/tableOperations.js.map +1 -1
  238. package/dist/react-native/operations/tableServices.js +1 -0
  239. package/dist/react-native/operations/tableServices.js.map +1 -1
  240. package/dist/react-native/operations/usages.js +10 -27
  241. package/dist/react-native/operations/usages.js.map +1 -1
  242. package/dist/react-native/pagingHelper.js +2 -4
  243. package/dist/react-native/pagingHelper.js.map +1 -1
  244. package/dist/react-native/storageManagementClient.js +37 -5
  245. package/dist/react-native/storageManagementClient.js.map +1 -1
  246. package/package.json +3 -5
  247. package/CHANGELOG.md +0 -347
  248. package/review/arm-storage.api.md +0 -3479
@@ -1 +1 @@
1
- {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../src/operations/queue.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,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,aAAR,QAAQ,uBAAR,QAAQ,CAA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5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,2JAA2J;IACjK,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,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;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;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * 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 */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Queue } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n ListQueue,\n QueueListNextOptionalParams,\n QueueListOptionalParams,\n QueueListResponse,\n StorageQueue,\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueUpdateOptionalParams,\n QueueUpdateResponse,\n QueueGetOptionalParams,\n QueueGetResponse,\n QueueDeleteOptionalParams,\n QueueListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Queue operations. */\nexport class QueueImpl implements Queue {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Queue class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all the queues under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): PagedAsyncIterableIterator<ListQueue> {\n const iter = this.listPagingAll(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ListQueue[]> {\n let result: QueueListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\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 *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): AsyncIterableIterator<ListQueue> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a new queue with the specified queue name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueCreateOptionalParams,\n ): Promise<QueueCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n createOperationSpec,\n );\n }\n\n /**\n * Creates a new queue with the specified queue name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueUpdateOptionalParams,\n ): Promise<QueueUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the queue with the specified queue name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueGetOptionalParams,\n ): Promise<QueueGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the queue with the specified queue name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all the queues under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): Promise<QueueListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\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 resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: QueueListNextOptionalParams,\n ): Promise<QueueListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\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.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxpagesize,\n Parameters.filter,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../src/operations/queue.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,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,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ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C,UAAU;SAC/B;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,MAAM;KAClB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;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;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * 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 */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Queue } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n ListQueue,\n QueueListNextOptionalParams,\n QueueListOptionalParams,\n QueueListResponse,\n StorageQueue,\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueUpdateOptionalParams,\n QueueUpdateResponse,\n QueueGetOptionalParams,\n QueueGetResponse,\n QueueDeleteOptionalParams,\n QueueListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Queue operations. */\nexport class QueueImpl implements Queue {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Queue class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all the queues under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): PagedAsyncIterableIterator<ListQueue> {\n const iter = this.listPagingAll(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ListQueue[]> {\n let result: QueueListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\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 *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): AsyncIterableIterator<ListQueue> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a new queue with the specified queue name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueCreateOptionalParams,\n ): Promise<QueueCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n createOperationSpec,\n );\n }\n\n /**\n * Creates a new queue with the specified queue name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueUpdateOptionalParams,\n ): Promise<QueueUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the queue with the specified queue name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueGetOptionalParams,\n ): Promise<QueueGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the queue with the specified queue name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all the queues under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): Promise<QueueListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\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 resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: QueueListNextOptionalParams,\n ): Promise<QueueListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\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.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxpagesize,\n Parameters.filter,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing QueueServices operations. */
12
12
  export class QueueServicesImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class QueueServices class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"queueServices.js","sourceRoot":"","sources":["../../../src/operations/queueServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAyB,EACzB,WAAmB,EACnB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,UAAkC,EAClC,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EACvD,iCAAiC,CAClC,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iCAAiC,CAClC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GA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KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * 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 */\n\nimport { QueueServices } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n QueueServicesListOptionalParams,\n QueueServicesListResponse,\n QueueServiceProperties,\n QueueServicesSetServicePropertiesOptionalParams,\n QueueServicesSetServicePropertiesResponse,\n QueueServicesGetServicePropertiesOptionalParams,\n QueueServicesGetServicePropertiesResponse,\n} from \"../models/index.js\";\n\n/** Class containing QueueServices operations. */\nexport class QueueServicesImpl implements QueueServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class QueueServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all queue services for the storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueServicesListOptionalParams,\n ): Promise<QueueServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of a storage account’s Queue service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The properties of a storage account’s Queue service, only properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: QueueServiceProperties,\n options?: QueueServicesSetServicePropertiesOptionalParams,\n ): Promise<QueueServicesSetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, parameters, options },\n setServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the properties of a storage account’s Queue service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getServiceProperties(\n resourceGroupName: string,\n accountName: string,\n options?: QueueServicesGetServicePropertiesOptionalParams,\n ): Promise<QueueServicesGetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServicePropertiesOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueServices,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst setServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"queueServices.js","sourceRoot":"","sources":["../../../src/operations/queueServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IACX,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,i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EAAE,+JAA+J;IACrK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,+JAA+J;IACrK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;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,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * 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 */\n\nimport { QueueServices } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n QueueServicesListOptionalParams,\n QueueServicesListResponse,\n QueueServiceProperties,\n QueueServicesSetServicePropertiesOptionalParams,\n QueueServicesSetServicePropertiesResponse,\n QueueServicesGetServicePropertiesOptionalParams,\n QueueServicesGetServicePropertiesResponse,\n} from \"../models/index.js\";\n\n/** Class containing QueueServices operations. */\nexport class QueueServicesImpl implements QueueServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class QueueServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all queue services for the storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueServicesListOptionalParams,\n ): Promise<QueueServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of a storage account’s Queue service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param parameters The properties of a storage account’s Queue service, only properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: QueueServiceProperties,\n options?: QueueServicesSetServicePropertiesOptionalParams,\n ): Promise<QueueServicesSetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, parameters, options },\n setServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the properties of a storage account’s Queue service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n getServiceProperties(\n resourceGroupName: string,\n accountName: string,\n options?: QueueServicesGetServicePropertiesOptionalParams,\n ): Promise<QueueServicesGetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServicePropertiesOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueServices,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst setServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueServiceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getServicePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueServiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
12
11
  /// <reference lib="esnext.asynciterable" />
13
12
  /** Class containing Skus operations. */
14
13
  export class SkusImpl {
14
+ client;
15
15
  /**
16
16
  * Initialize a new instance of the class Skus class.
17
17
  * @param client Reference to the service client
@@ -33,39 +33,22 @@ export class SkusImpl {
33
33
  return this;
34
34
  },
35
35
  byPage: (settings) => {
36
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
36
+ if (settings?.maxPageSize) {
37
37
  throw new Error("maxPageSize is not supported by this operation.");
38
38
  }
39
39
  return this.listPagingPage(options, settings);
40
40
  },
41
41
  };
42
42
  }
43
- listPagingPage(options, _settings) {
44
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
45
- let result;
46
- result = yield __await(this._list(options));
47
- yield yield __await(result.value || []);
48
- });
43
+ async *listPagingPage(options, _settings) {
44
+ let result;
45
+ result = await this._list(options);
46
+ yield result.value || [];
49
47
  }
50
- listPagingAll(options) {
51
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
52
- var _a, e_1, _b, _c;
53
- try {
54
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
55
- _c = _f.value;
56
- _d = false;
57
- const page = _c;
58
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
- }
60
- }
61
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
- finally {
63
- try {
64
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
65
- }
66
- finally { if (e_1) throw e_1.error; }
67
- }
68
- });
48
+ async *listPagingAll(options) {
49
+ for await (const page of this.listPagingPage(options)) {
50
+ yield* page;
51
+ }
69
52
  }
70
53
  /**
71
54
  * Lists the available SKUs supported by Microsoft.Storage for given subscription.
@@ -1 +1 @@
1
- {"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAgC;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBAC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CACX,CAAC","sourcesContent":["/*\n * 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 */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Skus } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n SkuInformation,\n SkusListOptionalParams,\n SkusListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Skus operations. */\nexport class SkusImpl implements Skus {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Skus class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the available SKUs supported by Microsoft.Storage for given subscription.\n * @param options The options parameters.\n */\n public list(\n options?: SkusListOptionalParams,\n ): PagedAsyncIterableIterator<SkuInformation> {\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?: SkusListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<SkuInformation[]> {\n let result: SkusListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: SkusListOptionalParams,\n ): AsyncIterableIterator<SkuInformation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the available SKUs supported by Microsoft.Storage for given subscription.\n * @param options The options parameters.\n */\n private _list(options?: SkusListOptionalParams): Promise<SkusListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSkuListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IACF,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAgC;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAgC,EAChC,SAAwB;QAExB,IAAI,MAAwB,CAAC;QAC7B,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,CAAC,aAAa,CAC1B,OAAgC;QAEhC,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;YACtD,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACK,KAAK,CAAC,OAAgC;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,kEAAkE;IACxE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * 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 */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { Skus } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n SkuInformation,\n SkusListOptionalParams,\n SkusListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Skus operations. */\nexport class SkusImpl implements Skus {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Skus class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the available SKUs supported by Microsoft.Storage for given subscription.\n * @param options The options parameters.\n */\n public list(\n options?: SkusListOptionalParams,\n ): PagedAsyncIterableIterator<SkuInformation> {\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?: SkusListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<SkuInformation[]> {\n let result: SkusListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: SkusListOptionalParams,\n ): AsyncIterableIterator<SkuInformation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the available SKUs supported by Microsoft.Storage for given subscription.\n * @param options The options parameters.\n */\n private _list(options?: SkusListOptionalParams): Promise<SkusListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageSkuListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing StorageAccounts operations. */
17
16
  export class StorageAccountsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class StorageAccounts class.
20
20
  * @param client Reference to the service client
@@ -37,52 +37,35 @@ export class StorageAccountsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ if (settings?.maxPageSize) {
41
41
  throw new Error("maxPageSize is not supported by this operation.");
42
42
  }
43
43
  return this.listPagingPage(options, settings);
44
44
  },
45
45
  };
46
46
  }
47
- listPagingPage(options, settings) {
48
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
47
+ async *listPagingPage(options, settings) {
48
+ let result;
49
+ let continuationToken = settings?.continuationToken;
50
+ if (!continuationToken) {
51
+ result = await this._list(options);
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield page;
56
+ }
57
+ while (continuationToken) {
58
+ result = await this._listNext(continuationToken, options);
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield page;
63
+ }
66
64
  }
67
- listPagingAll(options) {
68
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
65
+ async *listPagingAll(options) {
66
+ for await (const page of this.listPagingPage(options)) {
67
+ yield* page;
68
+ }
86
69
  }
87
70
  /**
88
71
  * Lists all the storage accounts available under the given resource group. Note that storage keys are
@@ -101,52 +84,35 @@ export class StorageAccountsImpl {
101
84
  return this;
102
85
  },
103
86
  byPage: (settings) => {
104
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
87
+ if (settings?.maxPageSize) {
105
88
  throw new Error("maxPageSize is not supported by this operation.");
106
89
  }
107
90
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
108
91
  },
109
92
  };
110
93
  }
111
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
112
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
113
- let result;
114
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
- if (!continuationToken) {
116
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
117
- let page = result.value || [];
118
- continuationToken = result.nextLink;
119
- setContinuationToken(page, continuationToken);
120
- yield yield __await(page);
121
- }
122
- while (continuationToken) {
123
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
124
- continuationToken = result.nextLink;
125
- let page = result.value || [];
126
- setContinuationToken(page, continuationToken);
127
- yield yield __await(page);
128
- }
129
- });
94
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
95
+ let result;
96
+ let continuationToken = settings?.continuationToken;
97
+ if (!continuationToken) {
98
+ result = await this._listByResourceGroup(resourceGroupName, options);
99
+ let page = result.value || [];
100
+ continuationToken = result.nextLink;
101
+ setContinuationToken(page, continuationToken);
102
+ yield page;
103
+ }
104
+ while (continuationToken) {
105
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
106
+ continuationToken = result.nextLink;
107
+ let page = result.value || [];
108
+ setContinuationToken(page, continuationToken);
109
+ yield page;
110
+ }
130
111
  }
131
- listByResourceGroupPagingAll(resourceGroupName, options) {
132
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
133
- var _a, e_2, _b, _c;
134
- try {
135
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
136
- _c = _f.value;
137
- _d = false;
138
- const page = _c;
139
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
140
- }
141
- }
142
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
- finally {
144
- try {
145
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
146
- }
147
- finally { if (e_2) throw e_2.error; }
148
- }
149
- });
112
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
113
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
114
+ yield* page;
115
+ }
150
116
  }
151
117
  /**
152
118
  * Checks that the storage account name is valid and is not already in use.
@@ -176,14 +142,19 @@ export class StorageAccountsImpl {
176
142
  return this.client.sendOperationRequest(args, spec);
177
143
  };
178
144
  const sendOperationFn = async (args, spec) => {
179
- var _a;
180
145
  let currentRawResponse = undefined;
181
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
146
+ const providedCallback = args.options?.onResponse;
182
147
  const callback = (rawResponse, flatResponse) => {
183
148
  currentRawResponse = rawResponse;
184
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
149
+ providedCallback?.(rawResponse, flatResponse);
150
+ };
151
+ const updatedArgs = {
152
+ ...args,
153
+ options: {
154
+ ...args.options,
155
+ onResponse: callback,
156
+ },
185
157
  };
186
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
187
158
  const flatResponse = await directSendOperation(updatedArgs, spec);
188
159
  return {
189
160
  flatResponse,
@@ -200,8 +171,8 @@ export class StorageAccountsImpl {
200
171
  spec: createOperationSpec,
201
172
  });
202
173
  const poller = await createHttpPoller(lro, {
203
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
204
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
174
+ restoreFrom: options?.resumeFrom,
175
+ intervalInMs: options?.updateIntervalInMs,
205
176
  });
206
177
  await poller.poll();
207
178
  return poller;
@@ -361,14 +332,19 @@ export class StorageAccountsImpl {
361
332
  return this.client.sendOperationRequest(args, spec);
362
333
  };
363
334
  const sendOperationFn = async (args, spec) => {
364
- var _a;
365
335
  let currentRawResponse = undefined;
366
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
336
+ const providedCallback = args.options?.onResponse;
367
337
  const callback = (rawResponse, flatResponse) => {
368
338
  currentRawResponse = rawResponse;
369
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
339
+ providedCallback?.(rawResponse, flatResponse);
340
+ };
341
+ const updatedArgs = {
342
+ ...args,
343
+ options: {
344
+ ...args.options,
345
+ onResponse: callback,
346
+ },
370
347
  };
371
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
372
348
  const flatResponse = await directSendOperation(updatedArgs, spec);
373
349
  return {
374
350
  flatResponse,
@@ -385,8 +361,8 @@ export class StorageAccountsImpl {
385
361
  spec: failoverOperationSpec,
386
362
  });
387
363
  const poller = await createHttpPoller(lro, {
388
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
389
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
364
+ restoreFrom: options?.resumeFrom,
365
+ intervalInMs: options?.updateIntervalInMs,
390
366
  resourceLocationConfig: "location",
391
367
  });
392
368
  await poller.poll();
@@ -432,14 +408,19 @@ export class StorageAccountsImpl {
432
408
  return this.client.sendOperationRequest(args, spec);
433
409
  };
434
410
  const sendOperationFn = async (args, spec) => {
435
- var _a;
436
411
  let currentRawResponse = undefined;
437
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
412
+ const providedCallback = args.options?.onResponse;
438
413
  const callback = (rawResponse, flatResponse) => {
439
414
  currentRawResponse = rawResponse;
440
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
415
+ providedCallback?.(rawResponse, flatResponse);
416
+ };
417
+ const updatedArgs = {
418
+ ...args,
419
+ options: {
420
+ ...args.options,
421
+ onResponse: callback,
422
+ },
441
423
  };
442
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
443
424
  const flatResponse = await directSendOperation(updatedArgs, spec);
444
425
  return {
445
426
  flatResponse,
@@ -456,8 +437,8 @@ export class StorageAccountsImpl {
456
437
  spec: hierarchicalNamespaceMigrationOperationSpec,
457
438
  });
458
439
  const poller = await createHttpPoller(lro, {
459
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
460
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
440
+ restoreFrom: options?.resumeFrom,
441
+ intervalInMs: options?.updateIntervalInMs,
461
442
  resourceLocationConfig: "location",
462
443
  });
463
444
  await poller.poll();
@@ -494,14 +475,19 @@ export class StorageAccountsImpl {
494
475
  return this.client.sendOperationRequest(args, spec);
495
476
  };
496
477
  const sendOperationFn = async (args, spec) => {
497
- var _a;
498
478
  let currentRawResponse = undefined;
499
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
479
+ const providedCallback = args.options?.onResponse;
500
480
  const callback = (rawResponse, flatResponse) => {
501
481
  currentRawResponse = rawResponse;
502
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
482
+ providedCallback?.(rawResponse, flatResponse);
483
+ };
484
+ const updatedArgs = {
485
+ ...args,
486
+ options: {
487
+ ...args.options,
488
+ onResponse: callback,
489
+ },
503
490
  };
504
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
505
491
  const flatResponse = await directSendOperation(updatedArgs, spec);
506
492
  return {
507
493
  flatResponse,
@@ -518,8 +504,8 @@ export class StorageAccountsImpl {
518
504
  spec: abortHierarchicalNamespaceMigrationOperationSpec,
519
505
  });
520
506
  const poller = await createHttpPoller(lro, {
521
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
522
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
507
+ restoreFrom: options?.resumeFrom,
508
+ intervalInMs: options?.updateIntervalInMs,
523
509
  resourceLocationConfig: "location",
524
510
  });
525
511
  await poller.poll();
@@ -556,14 +542,19 @@ export class StorageAccountsImpl {
556
542
  return this.client.sendOperationRequest(args, spec);
557
543
  };
558
544
  const sendOperationFn = async (args, spec) => {
559
- var _a;
560
545
  let currentRawResponse = undefined;
561
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
546
+ const providedCallback = args.options?.onResponse;
562
547
  const callback = (rawResponse, flatResponse) => {
563
548
  currentRawResponse = rawResponse;
564
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
549
+ providedCallback?.(rawResponse, flatResponse);
550
+ };
551
+ const updatedArgs = {
552
+ ...args,
553
+ options: {
554
+ ...args.options,
555
+ onResponse: callback,
556
+ },
565
557
  };
566
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
567
558
  const flatResponse = await directSendOperation(updatedArgs, spec);
568
559
  return {
569
560
  flatResponse,
@@ -580,8 +571,8 @@ export class StorageAccountsImpl {
580
571
  spec: customerInitiatedMigrationOperationSpec,
581
572
  });
582
573
  const poller = await createHttpPoller(lro, {
583
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
584
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
574
+ restoreFrom: options?.resumeFrom,
575
+ intervalInMs: options?.updateIntervalInMs,
585
576
  resourceLocationConfig: "location",
586
577
  });
587
578
  await poller.poll();
@@ -632,14 +623,19 @@ export class StorageAccountsImpl {
632
623
  return this.client.sendOperationRequest(args, spec);
633
624
  };
634
625
  const sendOperationFn = async (args, spec) => {
635
- var _a;
636
626
  let currentRawResponse = undefined;
637
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
627
+ const providedCallback = args.options?.onResponse;
638
628
  const callback = (rawResponse, flatResponse) => {
639
629
  currentRawResponse = rawResponse;
640
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
630
+ providedCallback?.(rawResponse, flatResponse);
631
+ };
632
+ const updatedArgs = {
633
+ ...args,
634
+ options: {
635
+ ...args.options,
636
+ onResponse: callback,
637
+ },
641
638
  };
642
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
643
639
  const flatResponse = await directSendOperation(updatedArgs, spec);
644
640
  return {
645
641
  flatResponse,
@@ -656,8 +652,8 @@ export class StorageAccountsImpl {
656
652
  spec: restoreBlobRangesOperationSpec,
657
653
  });
658
654
  const poller = await createHttpPoller(lro, {
659
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
660
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
655
+ restoreFrom: options?.resumeFrom,
656
+ intervalInMs: options?.updateIntervalInMs,
661
657
  resourceLocationConfig: "location",
662
658
  });
663
659
  await poller.poll();