@azure/arm-storage 18.6.0-alpha.20250718.2 → 18.6.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 (226) hide show
  1. package/dist/browser/lroImpl.js +3 -7
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +241 -511
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/blobContainers.js +46 -34
  6. package/dist/browser/operations/blobContainers.js.map +1 -1
  7. package/dist/browser/operations/blobInventoryPolicies.js +27 -10
  8. package/dist/browser/operations/blobInventoryPolicies.js.map +1 -1
  9. package/dist/browser/operations/blobServices.js +27 -10
  10. package/dist/browser/operations/blobServices.js.map +1 -1
  11. package/dist/browser/operations/deletedAccounts.js +40 -23
  12. package/dist/browser/operations/deletedAccounts.js.map +1 -1
  13. package/dist/browser/operations/encryptionScopes.js +40 -23
  14. package/dist/browser/operations/encryptionScopes.js.map +1 -1
  15. package/dist/browser/operations/fileServices.js +40 -23
  16. package/dist/browser/operations/fileServices.js.map +1 -1
  17. package/dist/browser/operations/fileShares.js +40 -23
  18. package/dist/browser/operations/fileShares.js.map +1 -1
  19. package/dist/browser/operations/localUsersOperations.js +27 -10
  20. package/dist/browser/operations/localUsersOperations.js.map +1 -1
  21. package/dist/browser/operations/managementPolicies.js +0 -1
  22. package/dist/browser/operations/managementPolicies.js.map +1 -1
  23. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +33 -21
  24. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  25. package/dist/browser/operations/objectReplicationPoliciesOperations.js +27 -10
  26. package/dist/browser/operations/objectReplicationPoliciesOperations.js.map +1 -1
  27. package/dist/browser/operations/operations.js +27 -10
  28. package/dist/browser/operations/operations.js.map +1 -1
  29. package/dist/browser/operations/privateEndpointConnections.js +27 -10
  30. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  31. package/dist/browser/operations/privateLinkResources.js +0 -1
  32. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  33. package/dist/browser/operations/queue.js +40 -23
  34. package/dist/browser/operations/queue.js.map +1 -1
  35. package/dist/browser/operations/queueServices.js +0 -1
  36. package/dist/browser/operations/queueServices.js.map +1 -1
  37. package/dist/browser/operations/skus.js +27 -10
  38. package/dist/browser/operations/skus.js.map +1 -1
  39. package/dist/browser/operations/storageAccounts.js +115 -111
  40. package/dist/browser/operations/storageAccounts.js.map +1 -1
  41. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js +40 -23
  42. package/dist/browser/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  43. package/dist/browser/operations/storageTaskAssignments.js +58 -56
  44. package/dist/browser/operations/storageTaskAssignments.js.map +1 -1
  45. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js +40 -23
  46. package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  47. package/dist/browser/operations/tableOperations.js +40 -23
  48. package/dist/browser/operations/tableOperations.js.map +1 -1
  49. package/dist/browser/operations/tableServices.js +0 -1
  50. package/dist/browser/operations/tableServices.js.map +1 -1
  51. package/dist/browser/operations/usages.js +27 -10
  52. package/dist/browser/operations/usages.js.map +1 -1
  53. package/dist/browser/pagingHelper.js +4 -2
  54. package/dist/browser/pagingHelper.js.map +1 -1
  55. package/dist/browser/storageManagementClient.js +5 -37
  56. package/dist/browser/storageManagementClient.js.map +1 -1
  57. package/dist/commonjs/lroImpl.js +3 -7
  58. package/dist/commonjs/lroImpl.js.map +1 -1
  59. package/dist/commonjs/models/mappers.js +241 -511
  60. package/dist/commonjs/models/mappers.js.map +1 -1
  61. package/dist/commonjs/operations/blobContainers.js +45 -34
  62. package/dist/commonjs/operations/blobContainers.js.map +1 -1
  63. package/dist/commonjs/operations/blobInventoryPolicies.js +26 -10
  64. package/dist/commonjs/operations/blobInventoryPolicies.js.map +1 -1
  65. package/dist/commonjs/operations/blobServices.js +26 -10
  66. package/dist/commonjs/operations/blobServices.js.map +1 -1
  67. package/dist/commonjs/operations/deletedAccounts.js +39 -23
  68. package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
  69. package/dist/commonjs/operations/encryptionScopes.js +39 -23
  70. package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
  71. package/dist/commonjs/operations/fileServices.js +39 -23
  72. package/dist/commonjs/operations/fileServices.js.map +1 -1
  73. package/dist/commonjs/operations/fileShares.js +39 -23
  74. package/dist/commonjs/operations/fileShares.js.map +1 -1
  75. package/dist/commonjs/operations/localUsersOperations.js +26 -10
  76. package/dist/commonjs/operations/localUsersOperations.js.map +1 -1
  77. package/dist/commonjs/operations/managementPolicies.js +0 -1
  78. package/dist/commonjs/operations/managementPolicies.js.map +1 -1
  79. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +32 -21
  80. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  81. package/dist/commonjs/operations/objectReplicationPoliciesOperations.js +26 -10
  82. package/dist/commonjs/operations/objectReplicationPoliciesOperations.js.map +1 -1
  83. package/dist/commonjs/operations/operations.js +26 -10
  84. package/dist/commonjs/operations/operations.js.map +1 -1
  85. package/dist/commonjs/operations/privateEndpointConnections.js +26 -10
  86. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  87. package/dist/commonjs/operations/privateLinkResources.js +0 -1
  88. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  89. package/dist/commonjs/operations/queue.js +39 -23
  90. package/dist/commonjs/operations/queue.js.map +1 -1
  91. package/dist/commonjs/operations/queueServices.js +0 -1
  92. package/dist/commonjs/operations/queueServices.js.map +1 -1
  93. package/dist/commonjs/operations/skus.js +26 -10
  94. package/dist/commonjs/operations/skus.js.map +1 -1
  95. package/dist/commonjs/operations/storageAccounts.js +114 -111
  96. package/dist/commonjs/operations/storageAccounts.js.map +1 -1
  97. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js +39 -23
  98. package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  99. package/dist/commonjs/operations/storageTaskAssignments.js +57 -56
  100. package/dist/commonjs/operations/storageTaskAssignments.js.map +1 -1
  101. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js +39 -23
  102. package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  103. package/dist/commonjs/operations/tableOperations.js +39 -23
  104. package/dist/commonjs/operations/tableOperations.js.map +1 -1
  105. package/dist/commonjs/operations/tableServices.js +0 -1
  106. package/dist/commonjs/operations/tableServices.js.map +1 -1
  107. package/dist/commonjs/operations/usages.js +26 -10
  108. package/dist/commonjs/operations/usages.js.map +1 -1
  109. package/dist/commonjs/pagingHelper.js +4 -2
  110. package/dist/commonjs/pagingHelper.js.map +1 -1
  111. package/dist/commonjs/storageManagementClient.js +5 -37
  112. package/dist/commonjs/storageManagementClient.js.map +1 -1
  113. package/dist/commonjs/tsdoc-metadata.json +11 -11
  114. package/dist/esm/lroImpl.js +3 -7
  115. package/dist/esm/lroImpl.js.map +1 -1
  116. package/dist/esm/models/mappers.js +241 -511
  117. package/dist/esm/models/mappers.js.map +1 -1
  118. package/dist/esm/operations/blobContainers.js +46 -34
  119. package/dist/esm/operations/blobContainers.js.map +1 -1
  120. package/dist/esm/operations/blobInventoryPolicies.js +27 -10
  121. package/dist/esm/operations/blobInventoryPolicies.js.map +1 -1
  122. package/dist/esm/operations/blobServices.js +27 -10
  123. package/dist/esm/operations/blobServices.js.map +1 -1
  124. package/dist/esm/operations/deletedAccounts.js +40 -23
  125. package/dist/esm/operations/deletedAccounts.js.map +1 -1
  126. package/dist/esm/operations/encryptionScopes.js +40 -23
  127. package/dist/esm/operations/encryptionScopes.js.map +1 -1
  128. package/dist/esm/operations/fileServices.js +40 -23
  129. package/dist/esm/operations/fileServices.js.map +1 -1
  130. package/dist/esm/operations/fileShares.js +40 -23
  131. package/dist/esm/operations/fileShares.js.map +1 -1
  132. package/dist/esm/operations/localUsersOperations.js +27 -10
  133. package/dist/esm/operations/localUsersOperations.js.map +1 -1
  134. package/dist/esm/operations/managementPolicies.js +0 -1
  135. package/dist/esm/operations/managementPolicies.js.map +1 -1
  136. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +33 -21
  137. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  138. package/dist/esm/operations/objectReplicationPoliciesOperations.js +27 -10
  139. package/dist/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
  140. package/dist/esm/operations/operations.js +27 -10
  141. package/dist/esm/operations/operations.js.map +1 -1
  142. package/dist/esm/operations/privateEndpointConnections.js +27 -10
  143. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  144. package/dist/esm/operations/privateLinkResources.js +0 -1
  145. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  146. package/dist/esm/operations/queue.js +40 -23
  147. package/dist/esm/operations/queue.js.map +1 -1
  148. package/dist/esm/operations/queueServices.js +0 -1
  149. package/dist/esm/operations/queueServices.js.map +1 -1
  150. package/dist/esm/operations/skus.js +27 -10
  151. package/dist/esm/operations/skus.js.map +1 -1
  152. package/dist/esm/operations/storageAccounts.js +115 -111
  153. package/dist/esm/operations/storageAccounts.js.map +1 -1
  154. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js +40 -23
  155. package/dist/esm/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  156. package/dist/esm/operations/storageTaskAssignments.js +58 -56
  157. package/dist/esm/operations/storageTaskAssignments.js.map +1 -1
  158. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js +40 -23
  159. package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  160. package/dist/esm/operations/tableOperations.js +40 -23
  161. package/dist/esm/operations/tableOperations.js.map +1 -1
  162. package/dist/esm/operations/tableServices.js +0 -1
  163. package/dist/esm/operations/tableServices.js.map +1 -1
  164. package/dist/esm/operations/usages.js +27 -10
  165. package/dist/esm/operations/usages.js.map +1 -1
  166. package/dist/esm/pagingHelper.js +4 -2
  167. package/dist/esm/pagingHelper.js.map +1 -1
  168. package/dist/esm/storageManagementClient.js +5 -37
  169. package/dist/esm/storageManagementClient.js.map +1 -1
  170. package/dist/react-native/lroImpl.js +3 -7
  171. package/dist/react-native/lroImpl.js.map +1 -1
  172. package/dist/react-native/models/mappers.js +241 -511
  173. package/dist/react-native/models/mappers.js.map +1 -1
  174. package/dist/react-native/operations/blobContainers.js +46 -34
  175. package/dist/react-native/operations/blobContainers.js.map +1 -1
  176. package/dist/react-native/operations/blobInventoryPolicies.js +27 -10
  177. package/dist/react-native/operations/blobInventoryPolicies.js.map +1 -1
  178. package/dist/react-native/operations/blobServices.js +27 -10
  179. package/dist/react-native/operations/blobServices.js.map +1 -1
  180. package/dist/react-native/operations/deletedAccounts.js +40 -23
  181. package/dist/react-native/operations/deletedAccounts.js.map +1 -1
  182. package/dist/react-native/operations/encryptionScopes.js +40 -23
  183. package/dist/react-native/operations/encryptionScopes.js.map +1 -1
  184. package/dist/react-native/operations/fileServices.js +40 -23
  185. package/dist/react-native/operations/fileServices.js.map +1 -1
  186. package/dist/react-native/operations/fileShares.js +40 -23
  187. package/dist/react-native/operations/fileShares.js.map +1 -1
  188. package/dist/react-native/operations/localUsersOperations.js +27 -10
  189. package/dist/react-native/operations/localUsersOperations.js.map +1 -1
  190. package/dist/react-native/operations/managementPolicies.js +0 -1
  191. package/dist/react-native/operations/managementPolicies.js.map +1 -1
  192. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +33 -21
  193. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  194. package/dist/react-native/operations/objectReplicationPoliciesOperations.js +27 -10
  195. package/dist/react-native/operations/objectReplicationPoliciesOperations.js.map +1 -1
  196. package/dist/react-native/operations/operations.js +27 -10
  197. package/dist/react-native/operations/operations.js.map +1 -1
  198. package/dist/react-native/operations/privateEndpointConnections.js +27 -10
  199. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  200. package/dist/react-native/operations/privateLinkResources.js +0 -1
  201. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  202. package/dist/react-native/operations/queue.js +40 -23
  203. package/dist/react-native/operations/queue.js.map +1 -1
  204. package/dist/react-native/operations/queueServices.js +0 -1
  205. package/dist/react-native/operations/queueServices.js.map +1 -1
  206. package/dist/react-native/operations/skus.js +27 -10
  207. package/dist/react-native/operations/skus.js.map +1 -1
  208. package/dist/react-native/operations/storageAccounts.js +115 -111
  209. package/dist/react-native/operations/storageAccounts.js.map +1 -1
  210. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js +40 -23
  211. package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
  212. package/dist/react-native/operations/storageTaskAssignments.js +58 -56
  213. package/dist/react-native/operations/storageTaskAssignments.js.map +1 -1
  214. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js +40 -23
  215. package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
  216. package/dist/react-native/operations/tableOperations.js +40 -23
  217. package/dist/react-native/operations/tableOperations.js.map +1 -1
  218. package/dist/react-native/operations/tableServices.js +0 -1
  219. package/dist/react-native/operations/tableServices.js.map +1 -1
  220. package/dist/react-native/operations/usages.js +27 -10
  221. package/dist/react-native/operations/usages.js.map +1 -1
  222. package/dist/react-native/pagingHelper.js +4 -2
  223. package/dist/react-native/pagingHelper.js.map +1 -1
  224. package/dist/react-native/storageManagementClient.js +5 -37
  225. package/dist/react-native/storageManagementClient.js.map +1 -1
  226. package/package.json +5 -5
@@ -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,4CA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ACF;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;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,IA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AAC,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,7 +10,6 @@ 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;
14
13
  /**
15
14
  * Initialize a new instance of the class QueueServices class.
16
15
  * @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;IACX,MAAM,CAA0B;IAEjD;;;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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E,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"]}
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,EA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ACD,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";
8
9
  import * as coreClient from "@azure/core-client";
9
10
  import * as Mappers from "../models/mappers.js";
10
11
  import * as Parameters from "../models/parameters.js";
11
12
  /// <reference lib="esnext.asynciterable" />
12
13
  /** Class containing Skus operations. */
13
14
  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,22 +33,39 @@ export class SkusImpl {
33
33
  return this;
34
34
  },
35
35
  byPage: (settings) => {
36
- if (settings?.maxPageSize) {
36
+ if (settings === null || settings === void 0 ? void 0 : 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
- async *listPagingPage(options, _settings) {
44
- let result;
45
- result = await this._list(options);
46
- yield result.value || [];
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
+ });
47
49
  }
48
- async *listPagingAll(options) {
49
- for await (const page of this.listPagingPage(options)) {
50
- yield* page;
51
- }
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
+ });
52
69
  }
53
70
  /**
54
71
  * 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,4C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C3B,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"]}
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;Y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,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,6 +5,7 @@
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";
8
9
  import { setContinuationToken } from "../pagingHelper.js";
9
10
  import * as coreClient from "@azure/core-client";
10
11
  import * as Mappers from "../models/mappers.js";
@@ -14,7 +15,6 @@ import { createLroSpec } from "../lroImpl.js";
14
15
  /// <reference lib="esnext.asynciterable" />
15
16
  /** Class containing StorageAccounts operations. */
16
17
  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,35 +37,52 @@ export class StorageAccountsImpl {
37
37
  return this;
38
38
  },
39
39
  byPage: (settings) => {
40
- if (settings?.maxPageSize) {
40
+ if (settings === null || settings === void 0 ? void 0 : 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
- 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
- }
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
+ });
64
66
  }
65
- async *listPagingAll(options) {
66
- for await (const page of this.listPagingPage(options)) {
67
- yield* page;
68
- }
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
+ });
69
86
  }
70
87
  /**
71
88
  * Lists all the storage accounts available under the given resource group. Note that storage keys are
@@ -84,35 +101,52 @@ export class StorageAccountsImpl {
84
101
  return this;
85
102
  },
86
103
  byPage: (settings) => {
87
- if (settings?.maxPageSize) {
104
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
88
105
  throw new Error("maxPageSize is not supported by this operation.");
89
106
  }
90
107
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
91
108
  },
92
109
  };
93
110
  }
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
- }
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
+ });
111
130
  }
112
- async *listByResourceGroupPagingAll(resourceGroupName, options) {
113
- for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
114
- yield* page;
115
- }
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
+ });
116
150
  }
117
151
  /**
118
152
  * Checks that the storage account name is valid and is not already in use.
@@ -142,19 +176,14 @@ export class StorageAccountsImpl {
142
176
  return this.client.sendOperationRequest(args, spec);
143
177
  };
144
178
  const sendOperationFn = async (args, spec) => {
179
+ var _a;
145
180
  let currentRawResponse = undefined;
146
- const providedCallback = args.options?.onResponse;
181
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
147
182
  const callback = (rawResponse, flatResponse) => {
148
183
  currentRawResponse = rawResponse;
149
- providedCallback?.(rawResponse, flatResponse);
150
- };
151
- const updatedArgs = {
152
- ...args,
153
- options: {
154
- ...args.options,
155
- onResponse: callback,
156
- },
184
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
157
185
  };
186
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
158
187
  const flatResponse = await directSendOperation(updatedArgs, spec);
159
188
  return {
160
189
  flatResponse,
@@ -171,8 +200,8 @@ export class StorageAccountsImpl {
171
200
  spec: createOperationSpec,
172
201
  });
173
202
  const poller = await createHttpPoller(lro, {
174
- restoreFrom: options?.resumeFrom,
175
- intervalInMs: options?.updateIntervalInMs,
203
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
204
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
176
205
  });
177
206
  await poller.poll();
178
207
  return poller;
@@ -332,19 +361,14 @@ export class StorageAccountsImpl {
332
361
  return this.client.sendOperationRequest(args, spec);
333
362
  };
334
363
  const sendOperationFn = async (args, spec) => {
364
+ var _a;
335
365
  let currentRawResponse = undefined;
336
- const providedCallback = args.options?.onResponse;
366
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
337
367
  const callback = (rawResponse, flatResponse) => {
338
368
  currentRawResponse = rawResponse;
339
- providedCallback?.(rawResponse, flatResponse);
340
- };
341
- const updatedArgs = {
342
- ...args,
343
- options: {
344
- ...args.options,
345
- onResponse: callback,
346
- },
369
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
347
370
  };
371
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
348
372
  const flatResponse = await directSendOperation(updatedArgs, spec);
349
373
  return {
350
374
  flatResponse,
@@ -361,8 +385,8 @@ export class StorageAccountsImpl {
361
385
  spec: failoverOperationSpec,
362
386
  });
363
387
  const poller = await createHttpPoller(lro, {
364
- restoreFrom: options?.resumeFrom,
365
- intervalInMs: options?.updateIntervalInMs,
388
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
389
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
366
390
  resourceLocationConfig: "location",
367
391
  });
368
392
  await poller.poll();
@@ -408,19 +432,14 @@ export class StorageAccountsImpl {
408
432
  return this.client.sendOperationRequest(args, spec);
409
433
  };
410
434
  const sendOperationFn = async (args, spec) => {
435
+ var _a;
411
436
  let currentRawResponse = undefined;
412
- const providedCallback = args.options?.onResponse;
437
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
413
438
  const callback = (rawResponse, flatResponse) => {
414
439
  currentRawResponse = rawResponse;
415
- providedCallback?.(rawResponse, flatResponse);
416
- };
417
- const updatedArgs = {
418
- ...args,
419
- options: {
420
- ...args.options,
421
- onResponse: callback,
422
- },
440
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
423
441
  };
442
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
424
443
  const flatResponse = await directSendOperation(updatedArgs, spec);
425
444
  return {
426
445
  flatResponse,
@@ -437,8 +456,8 @@ export class StorageAccountsImpl {
437
456
  spec: hierarchicalNamespaceMigrationOperationSpec,
438
457
  });
439
458
  const poller = await createHttpPoller(lro, {
440
- restoreFrom: options?.resumeFrom,
441
- intervalInMs: options?.updateIntervalInMs,
459
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
460
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
442
461
  resourceLocationConfig: "location",
443
462
  });
444
463
  await poller.poll();
@@ -475,19 +494,14 @@ export class StorageAccountsImpl {
475
494
  return this.client.sendOperationRequest(args, spec);
476
495
  };
477
496
  const sendOperationFn = async (args, spec) => {
497
+ var _a;
478
498
  let currentRawResponse = undefined;
479
- const providedCallback = args.options?.onResponse;
499
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
480
500
  const callback = (rawResponse, flatResponse) => {
481
501
  currentRawResponse = rawResponse;
482
- providedCallback?.(rawResponse, flatResponse);
483
- };
484
- const updatedArgs = {
485
- ...args,
486
- options: {
487
- ...args.options,
488
- onResponse: callback,
489
- },
502
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
490
503
  };
504
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
491
505
  const flatResponse = await directSendOperation(updatedArgs, spec);
492
506
  return {
493
507
  flatResponse,
@@ -504,8 +518,8 @@ export class StorageAccountsImpl {
504
518
  spec: abortHierarchicalNamespaceMigrationOperationSpec,
505
519
  });
506
520
  const poller = await createHttpPoller(lro, {
507
- restoreFrom: options?.resumeFrom,
508
- intervalInMs: options?.updateIntervalInMs,
521
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
522
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
509
523
  resourceLocationConfig: "location",
510
524
  });
511
525
  await poller.poll();
@@ -542,19 +556,14 @@ export class StorageAccountsImpl {
542
556
  return this.client.sendOperationRequest(args, spec);
543
557
  };
544
558
  const sendOperationFn = async (args, spec) => {
559
+ var _a;
545
560
  let currentRawResponse = undefined;
546
- const providedCallback = args.options?.onResponse;
561
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
547
562
  const callback = (rawResponse, flatResponse) => {
548
563
  currentRawResponse = rawResponse;
549
- providedCallback?.(rawResponse, flatResponse);
550
- };
551
- const updatedArgs = {
552
- ...args,
553
- options: {
554
- ...args.options,
555
- onResponse: callback,
556
- },
564
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
557
565
  };
566
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
558
567
  const flatResponse = await directSendOperation(updatedArgs, spec);
559
568
  return {
560
569
  flatResponse,
@@ -571,8 +580,8 @@ export class StorageAccountsImpl {
571
580
  spec: customerInitiatedMigrationOperationSpec,
572
581
  });
573
582
  const poller = await createHttpPoller(lro, {
574
- restoreFrom: options?.resumeFrom,
575
- intervalInMs: options?.updateIntervalInMs,
583
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
584
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
576
585
  resourceLocationConfig: "location",
577
586
  });
578
587
  await poller.poll();
@@ -623,19 +632,14 @@ export class StorageAccountsImpl {
623
632
  return this.client.sendOperationRequest(args, spec);
624
633
  };
625
634
  const sendOperationFn = async (args, spec) => {
635
+ var _a;
626
636
  let currentRawResponse = undefined;
627
- const providedCallback = args.options?.onResponse;
637
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
628
638
  const callback = (rawResponse, flatResponse) => {
629
639
  currentRawResponse = rawResponse;
630
- providedCallback?.(rawResponse, flatResponse);
631
- };
632
- const updatedArgs = {
633
- ...args,
634
- options: {
635
- ...args.options,
636
- onResponse: callback,
637
- },
640
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
638
641
  };
642
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
639
643
  const flatResponse = await directSendOperation(updatedArgs, spec);
640
644
  return {
641
645
  flatResponse,
@@ -652,8 +656,8 @@ export class StorageAccountsImpl {
652
656
  spec: restoreBlobRangesOperationSpec,
653
657
  });
654
658
  const poller = await createHttpPoller(lro, {
655
- restoreFrom: options?.resumeFrom,
656
- intervalInMs: options?.updateIntervalInMs,
659
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
660
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
657
661
  resourceLocationConfig: "location",
658
662
  });
659
663
  await poller.poll();