@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":"queueServices.js","sourceRoot":"","sources":["../../../src/operations/queueServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,iDAAiD;AACjD,MAAa,iBAAiB;IACX,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;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,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,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"]}
1
+ {"version":3,"file":"queueServices.js","sourceRoot":"","sources":["../../../src/operations/queueServices.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,iDAAiD;AACjD,MAAa,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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,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"]}
@@ -15,7 +15,6 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Skus operations. */
17
17
  class SkusImpl {
18
- client;
19
18
  /**
20
19
  * Initialize a new instance of the class Skus class.
21
20
  * @param client Reference to the service client
@@ -37,22 +36,39 @@ class SkusImpl {
37
36
  return this;
38
37
  },
39
38
  byPage: (settings) => {
40
- if (settings?.maxPageSize) {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
40
  throw new Error("maxPageSize is not supported by this operation.");
42
41
  }
43
42
  return this.listPagingPage(options, settings);
44
43
  },
45
44
  };
46
45
  }
47
- async *listPagingPage(options, _settings) {
48
- let result;
49
- result = await this._list(options);
50
- yield result.value || [];
46
+ listPagingPage(options, _settings) {
47
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
48
+ let result;
49
+ result = yield tslib_1.__await(this._list(options));
50
+ yield yield tslib_1.__await(result.value || []);
51
+ });
51
52
  }
52
- async *listPagingAll(options) {
53
- for await (const page of this.listPagingPage(options)) {
54
- yield* page;
55
- }
53
+ listPagingAll(options) {
54
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
55
+ var _a, e_1, _b, _c;
56
+ try {
57
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
58
+ _c = _f.value;
59
+ _d = false;
60
+ const page = _c;
61
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
56
72
  }
57
73
  /**
58
74
  * 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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,QAA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,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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAa,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,CAA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C,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"]}
@@ -18,7 +18,6 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing StorageAccounts operations. */
20
20
  class StorageAccountsImpl {
21
- client;
22
21
  /**
23
22
  * Initialize a new instance of the class StorageAccounts class.
24
23
  * @param client Reference to the service client
@@ -41,35 +40,52 @@ class StorageAccountsImpl {
41
40
  return this;
42
41
  },
43
42
  byPage: (settings) => {
44
- if (settings?.maxPageSize) {
43
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
44
  throw new Error("maxPageSize is not supported by this operation.");
46
45
  }
47
46
  return this.listPagingPage(options, settings);
48
47
  },
49
48
  };
50
49
  }
51
- async *listPagingPage(options, settings) {
52
- let result;
53
- let continuationToken = settings?.continuationToken;
54
- if (!continuationToken) {
55
- result = await this._list(options);
56
- let page = result.value || [];
57
- continuationToken = result.nextLink;
58
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
- yield page;
60
- }
61
- while (continuationToken) {
62
- result = await this._listNext(continuationToken, options);
63
- continuationToken = result.nextLink;
64
- let page = result.value || [];
65
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
- yield page;
67
- }
50
+ listPagingPage(options, settings) {
51
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
52
+ let result;
53
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
+ if (!continuationToken) {
55
+ result = yield tslib_1.__await(this._list(options));
56
+ let page = result.value || [];
57
+ continuationToken = result.nextLink;
58
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
+ yield yield tslib_1.__await(page);
60
+ }
61
+ while (continuationToken) {
62
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
63
+ continuationToken = result.nextLink;
64
+ let page = result.value || [];
65
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
+ yield yield tslib_1.__await(page);
67
+ }
68
+ });
68
69
  }
69
- async *listPagingAll(options) {
70
- for await (const page of this.listPagingPage(options)) {
71
- yield* page;
72
- }
70
+ listPagingAll(options) {
71
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
72
+ var _a, e_1, _b, _c;
73
+ try {
74
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
75
+ _c = _f.value;
76
+ _d = false;
77
+ const page = _c;
78
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
79
+ }
80
+ }
81
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
+ finally {
83
+ try {
84
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
85
+ }
86
+ finally { if (e_1) throw e_1.error; }
87
+ }
88
+ });
73
89
  }
74
90
  /**
75
91
  * Lists all the storage accounts available under the given resource group. Note that storage keys are
@@ -88,35 +104,52 @@ class StorageAccountsImpl {
88
104
  return this;
89
105
  },
90
106
  byPage: (settings) => {
91
- if (settings?.maxPageSize) {
107
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
92
108
  throw new Error("maxPageSize is not supported by this operation.");
93
109
  }
94
110
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
95
111
  },
96
112
  };
97
113
  }
98
- async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
99
- let result;
100
- let continuationToken = settings?.continuationToken;
101
- if (!continuationToken) {
102
- result = await this._listByResourceGroup(resourceGroupName, options);
103
- let page = result.value || [];
104
- continuationToken = result.nextLink;
105
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
106
- yield page;
107
- }
108
- while (continuationToken) {
109
- result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
110
- continuationToken = result.nextLink;
111
- let page = result.value || [];
112
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
113
- yield page;
114
- }
114
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
115
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
116
+ let result;
117
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
118
+ if (!continuationToken) {
119
+ result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
120
+ let page = result.value || [];
121
+ continuationToken = result.nextLink;
122
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
123
+ yield yield tslib_1.__await(page);
124
+ }
125
+ while (continuationToken) {
126
+ result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
127
+ continuationToken = result.nextLink;
128
+ let page = result.value || [];
129
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
130
+ yield yield tslib_1.__await(page);
131
+ }
132
+ });
115
133
  }
116
- async *listByResourceGroupPagingAll(resourceGroupName, options) {
117
- for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
118
- yield* page;
119
- }
134
+ listByResourceGroupPagingAll(resourceGroupName, options) {
135
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
136
+ var _a, e_2, _b, _c;
137
+ try {
138
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
139
+ _c = _f.value;
140
+ _d = false;
141
+ const page = _c;
142
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
143
+ }
144
+ }
145
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
146
+ finally {
147
+ try {
148
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
149
+ }
150
+ finally { if (e_2) throw e_2.error; }
151
+ }
152
+ });
120
153
  }
121
154
  /**
122
155
  * Checks that the storage account name is valid and is not already in use.
@@ -146,19 +179,14 @@ class StorageAccountsImpl {
146
179
  return this.client.sendOperationRequest(args, spec);
147
180
  };
148
181
  const sendOperationFn = async (args, spec) => {
182
+ var _a;
149
183
  let currentRawResponse = undefined;
150
- const providedCallback = args.options?.onResponse;
184
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
151
185
  const callback = (rawResponse, flatResponse) => {
152
186
  currentRawResponse = rawResponse;
153
- providedCallback?.(rawResponse, flatResponse);
154
- };
155
- const updatedArgs = {
156
- ...args,
157
- options: {
158
- ...args.options,
159
- onResponse: callback,
160
- },
187
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
161
188
  };
189
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
162
190
  const flatResponse = await directSendOperation(updatedArgs, spec);
163
191
  return {
164
192
  flatResponse,
@@ -175,8 +203,8 @@ class StorageAccountsImpl {
175
203
  spec: createOperationSpec,
176
204
  });
177
205
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
178
- restoreFrom: options?.resumeFrom,
179
- intervalInMs: options?.updateIntervalInMs,
206
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
207
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
180
208
  });
181
209
  await poller.poll();
182
210
  return poller;
@@ -336,19 +364,14 @@ class StorageAccountsImpl {
336
364
  return this.client.sendOperationRequest(args, spec);
337
365
  };
338
366
  const sendOperationFn = async (args, spec) => {
367
+ var _a;
339
368
  let currentRawResponse = undefined;
340
- const providedCallback = args.options?.onResponse;
369
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
341
370
  const callback = (rawResponse, flatResponse) => {
342
371
  currentRawResponse = rawResponse;
343
- providedCallback?.(rawResponse, flatResponse);
344
- };
345
- const updatedArgs = {
346
- ...args,
347
- options: {
348
- ...args.options,
349
- onResponse: callback,
350
- },
372
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
351
373
  };
374
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
352
375
  const flatResponse = await directSendOperation(updatedArgs, spec);
353
376
  return {
354
377
  flatResponse,
@@ -365,8 +388,8 @@ class StorageAccountsImpl {
365
388
  spec: failoverOperationSpec,
366
389
  });
367
390
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
368
- restoreFrom: options?.resumeFrom,
369
- intervalInMs: options?.updateIntervalInMs,
391
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
392
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
370
393
  resourceLocationConfig: "location",
371
394
  });
372
395
  await poller.poll();
@@ -412,19 +435,14 @@ class StorageAccountsImpl {
412
435
  return this.client.sendOperationRequest(args, spec);
413
436
  };
414
437
  const sendOperationFn = async (args, spec) => {
438
+ var _a;
415
439
  let currentRawResponse = undefined;
416
- const providedCallback = args.options?.onResponse;
440
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
417
441
  const callback = (rawResponse, flatResponse) => {
418
442
  currentRawResponse = rawResponse;
419
- providedCallback?.(rawResponse, flatResponse);
420
- };
421
- const updatedArgs = {
422
- ...args,
423
- options: {
424
- ...args.options,
425
- onResponse: callback,
426
- },
443
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
427
444
  };
445
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
428
446
  const flatResponse = await directSendOperation(updatedArgs, spec);
429
447
  return {
430
448
  flatResponse,
@@ -441,8 +459,8 @@ class StorageAccountsImpl {
441
459
  spec: hierarchicalNamespaceMigrationOperationSpec,
442
460
  });
443
461
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
444
- restoreFrom: options?.resumeFrom,
445
- intervalInMs: options?.updateIntervalInMs,
462
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
463
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
446
464
  resourceLocationConfig: "location",
447
465
  });
448
466
  await poller.poll();
@@ -479,19 +497,14 @@ class StorageAccountsImpl {
479
497
  return this.client.sendOperationRequest(args, spec);
480
498
  };
481
499
  const sendOperationFn = async (args, spec) => {
500
+ var _a;
482
501
  let currentRawResponse = undefined;
483
- const providedCallback = args.options?.onResponse;
502
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
484
503
  const callback = (rawResponse, flatResponse) => {
485
504
  currentRawResponse = rawResponse;
486
- providedCallback?.(rawResponse, flatResponse);
487
- };
488
- const updatedArgs = {
489
- ...args,
490
- options: {
491
- ...args.options,
492
- onResponse: callback,
493
- },
505
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
494
506
  };
507
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
495
508
  const flatResponse = await directSendOperation(updatedArgs, spec);
496
509
  return {
497
510
  flatResponse,
@@ -508,8 +521,8 @@ class StorageAccountsImpl {
508
521
  spec: abortHierarchicalNamespaceMigrationOperationSpec,
509
522
  });
510
523
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
511
- restoreFrom: options?.resumeFrom,
512
- intervalInMs: options?.updateIntervalInMs,
524
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
525
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
513
526
  resourceLocationConfig: "location",
514
527
  });
515
528
  await poller.poll();
@@ -546,19 +559,14 @@ class StorageAccountsImpl {
546
559
  return this.client.sendOperationRequest(args, spec);
547
560
  };
548
561
  const sendOperationFn = async (args, spec) => {
562
+ var _a;
549
563
  let currentRawResponse = undefined;
550
- const providedCallback = args.options?.onResponse;
564
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
551
565
  const callback = (rawResponse, flatResponse) => {
552
566
  currentRawResponse = rawResponse;
553
- providedCallback?.(rawResponse, flatResponse);
554
- };
555
- const updatedArgs = {
556
- ...args,
557
- options: {
558
- ...args.options,
559
- onResponse: callback,
560
- },
567
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
561
568
  };
569
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
562
570
  const flatResponse = await directSendOperation(updatedArgs, spec);
563
571
  return {
564
572
  flatResponse,
@@ -575,8 +583,8 @@ class StorageAccountsImpl {
575
583
  spec: customerInitiatedMigrationOperationSpec,
576
584
  });
577
585
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
578
- restoreFrom: options?.resumeFrom,
579
- intervalInMs: options?.updateIntervalInMs,
586
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
587
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
580
588
  resourceLocationConfig: "location",
581
589
  });
582
590
  await poller.poll();
@@ -627,19 +635,14 @@ class StorageAccountsImpl {
627
635
  return this.client.sendOperationRequest(args, spec);
628
636
  };
629
637
  const sendOperationFn = async (args, spec) => {
638
+ var _a;
630
639
  let currentRawResponse = undefined;
631
- const providedCallback = args.options?.onResponse;
640
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
632
641
  const callback = (rawResponse, flatResponse) => {
633
642
  currentRawResponse = rawResponse;
634
- providedCallback?.(rawResponse, flatResponse);
635
- };
636
- const updatedArgs = {
637
- ...args,
638
- options: {
639
- ...args.options,
640
- onResponse: callback,
641
- },
643
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
642
644
  };
645
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
643
646
  const flatResponse = await directSendOperation(updatedArgs, spec);
644
647
  return {
645
648
  flatResponse,
@@ -656,8 +659,8 @@ class StorageAccountsImpl {
656
659
  spec: restoreBlobRangesOperationSpec,
657
660
  });
658
661
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
659
- restoreFrom: options?.resumeFrom,
660
- intervalInMs: options?.updateIntervalInMs,
662
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
663
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
661
664
  resourceLocationConfig: "location",
662
665
  });
663
666
  await poller.poll();