@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":"blobServices.js","sourceRoot":"","sources":["../../../src/operations/blobServices.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;AAYtD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IACV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T,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,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,8JAA8J;IACpK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { BlobServices } 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 BlobServiceProperties,\n BlobServicesListOptionalParams,\n BlobServicesListResponse,\n BlobServicesSetServicePropertiesOptionalParams,\n BlobServicesSetServicePropertiesResponse,\n BlobServicesGetServicePropertiesOptionalParams,\n BlobServicesGetServicePropertiesResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BlobServices operations. */\nexport class BlobServicesImpl implements BlobServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class BlobServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List blob services of storage account. It returns a collection of one object named default.\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?: BlobServicesListOptionalParams,\n ): PagedAsyncIterableIterator<BlobServiceProperties> {\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?: BlobServicesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<BlobServiceProperties[]> {\n let result: BlobServicesListResponse;\n result = await this._list(resourceGroupName, accountName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: BlobServicesListOptionalParams,\n ): AsyncIterableIterator<BlobServiceProperties> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List blob services of storage account. It returns a collection of one object named default.\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?: BlobServicesListOptionalParams,\n ): Promise<BlobServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of a storage account’s Blob 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 Blob service, including properties for\n * Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobServiceProperties,\n options?: BlobServicesSetServicePropertiesOptionalParams,\n ): Promise<BlobServicesSetServicePropertiesResponse> {\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 Blob 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?: BlobServicesGetServicePropertiesOptionalParams,\n ): Promise<BlobServicesGetServicePropertiesResponse> {\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}/blobServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceItems,\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}/blobServices/{BlobServicesName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceProperties,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobServicesName,\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}/blobServices/{BlobServicesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceProperties,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"blobServices.js","sourceRoot":"","sources":["../../../src/operations/blobServices.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;AAYtD,4CAA4C;AAC5C,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gB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,8JAA8J;IACpK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,UAAU;IAClC,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,8JAA8J;IACpK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { BlobServices } 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 BlobServiceProperties,\n BlobServicesListOptionalParams,\n BlobServicesListResponse,\n BlobServicesSetServicePropertiesOptionalParams,\n BlobServicesSetServicePropertiesResponse,\n BlobServicesGetServicePropertiesOptionalParams,\n BlobServicesGetServicePropertiesResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BlobServices operations. */\nexport class BlobServicesImpl implements BlobServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class BlobServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List blob services of storage account. It returns a collection of one object named default.\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?: BlobServicesListOptionalParams,\n ): PagedAsyncIterableIterator<BlobServiceProperties> {\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?: BlobServicesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<BlobServiceProperties[]> {\n let result: BlobServicesListResponse;\n result = await this._list(resourceGroupName, accountName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: BlobServicesListOptionalParams,\n ): AsyncIterableIterator<BlobServiceProperties> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List blob services of storage account. It returns a collection of one object named default.\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?: BlobServicesListOptionalParams,\n ): Promise<BlobServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of a storage account’s Blob 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 Blob service, including properties for\n * Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: BlobServiceProperties,\n options?: BlobServicesSetServicePropertiesOptionalParams,\n ): Promise<BlobServicesSetServicePropertiesResponse> {\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 Blob 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?: BlobServicesGetServicePropertiesOptionalParams,\n ): Promise<BlobServicesGetServicePropertiesResponse> {\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}/blobServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceItems,\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}/blobServices/{BlobServicesName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceProperties,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobServicesName,\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}/blobServices/{BlobServicesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobServiceProperties,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobServicesName,\n ],\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";
@@ -12,7 +13,6 @@ import * as Parameters from "../models/parameters.js";
12
13
  /// <reference lib="esnext.asynciterable" />
13
14
  /** Class containing DeletedAccounts operations. */
14
15
  export class DeletedAccountsImpl {
15
- client;
16
16
  /**
17
17
  * Initialize a new instance of the class DeletedAccounts class.
18
18
  * @param client Reference to the service client
@@ -34,35 +34,52 @@ export class DeletedAccountsImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings?.maxPageSize) {
37
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
41
  },
42
42
  };
43
43
  }
44
- async *listPagingPage(options, settings) {
45
- let result;
46
- let continuationToken = settings?.continuationToken;
47
- if (!continuationToken) {
48
- result = await this._list(options);
49
- let page = result.value || [];
50
- continuationToken = result.nextLink;
51
- setContinuationToken(page, continuationToken);
52
- yield page;
53
- }
54
- while (continuationToken) {
55
- result = await this._listNext(continuationToken, options);
56
- continuationToken = result.nextLink;
57
- let page = result.value || [];
58
- setContinuationToken(page, continuationToken);
59
- yield page;
60
- }
44
+ listPagingPage(options, settings) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result;
47
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
+ if (!continuationToken) {
49
+ result = yield __await(this._list(options));
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield yield __await(page);
54
+ }
55
+ while (continuationToken) {
56
+ result = yield __await(this._listNext(continuationToken, options));
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield yield __await(page);
61
+ }
62
+ });
61
63
  }
62
- async *listPagingAll(options) {
63
- for await (const page of this.listPagingPage(options)) {
64
- yield* page;
65
- }
64
+ listPagingAll(options) {
65
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
+ var _a, e_1, _b, _c;
67
+ try {
68
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
+ _c = _f.value;
70
+ _d = false;
71
+ const page = _c;
72
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
+ }
74
+ }
75
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
+ finally {
77
+ try {
78
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
+ }
80
+ finally { if (e_1) throw e_1.error; }
81
+ }
82
+ });
66
83
  }
67
84
  /**
68
85
  * Lists deleted accounts under the subscription.
@@ -1 +1 @@
1
- {"version":3,"file":"deletedAccounts.js","sourceRoot":"","sources":["../../../src/operations/deletedAccounts.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;AAYtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2C;QAE3C,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,aAA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O,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,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 { DeletedAccounts } 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 DeletedAccount,\n DeletedAccountsListNextOptionalParams,\n DeletedAccountsListOptionalParams,\n DeletedAccountsListResponse,\n DeletedAccountsGetOptionalParams,\n DeletedAccountsGetResponse,\n DeletedAccountsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DeletedAccounts operations. */\nexport class DeletedAccountsImpl implements DeletedAccounts {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class DeletedAccounts class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists deleted accounts under the subscription.\n * @param options The options parameters.\n */\n public list(\n options?: DeletedAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<DeletedAccount> {\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?: DeletedAccountsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DeletedAccount[]> {\n let result: DeletedAccountsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: DeletedAccountsListOptionalParams,\n ): AsyncIterableIterator<DeletedAccount> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists deleted accounts under the subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: DeletedAccountsListOptionalParams,\n ): Promise<DeletedAccountsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get properties of specified deleted account resource.\n * @param deletedAccountName Name of the deleted storage account.\n * @param location The location of the deleted storage account.\n * @param options The options parameters.\n */\n get(\n deletedAccountName: string,\n location: string,\n options?: DeletedAccountsGetOptionalParams,\n ): Promise<DeletedAccountsGetResponse> {\n return this.client.sendOperationRequest(\n { deletedAccountName, location, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: DeletedAccountsListNextOptionalParams,\n ): Promise<DeletedAccountsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/deletedAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedAccountListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.deletedAccountName,\n Parameters.location,\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.DeletedAccountListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"deletedAccounts.js","sourceRoot":"","sources":["../../../src/operations/deletedAccounts.ts"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;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,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 { DeletedAccounts } 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 DeletedAccount,\n DeletedAccountsListNextOptionalParams,\n DeletedAccountsListOptionalParams,\n DeletedAccountsListResponse,\n DeletedAccountsGetOptionalParams,\n DeletedAccountsGetResponse,\n DeletedAccountsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DeletedAccounts operations. */\nexport class DeletedAccountsImpl implements DeletedAccounts {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class DeletedAccounts class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists deleted accounts under the subscription.\n * @param options The options parameters.\n */\n public list(\n options?: DeletedAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<DeletedAccount> {\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?: DeletedAccountsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DeletedAccount[]> {\n let result: DeletedAccountsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: DeletedAccountsListOptionalParams,\n ): AsyncIterableIterator<DeletedAccount> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists deleted accounts under the subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: DeletedAccountsListOptionalParams,\n ): Promise<DeletedAccountsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get properties of specified deleted account resource.\n * @param deletedAccountName Name of the deleted storage account.\n * @param location The location of the deleted storage account.\n * @param options The options parameters.\n */\n get(\n deletedAccountName: string,\n location: string,\n options?: DeletedAccountsGetOptionalParams,\n ): Promise<DeletedAccountsGetResponse> {\n return this.client.sendOperationRequest(\n { deletedAccountName, location, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: DeletedAccountsListNextOptionalParams,\n ): Promise<DeletedAccountsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/deletedAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedAccountListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.deletedAccountName,\n Parameters.location,\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.DeletedAccountListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\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";
@@ -12,7 +13,6 @@ import * as Parameters from "../models/parameters.js";
12
13
  /// <reference lib="esnext.asynciterable" />
13
14
  /** Class containing EncryptionScopes operations. */
14
15
  export class EncryptionScopesImpl {
15
- client;
16
16
  /**
17
17
  * Initialize a new instance of the class EncryptionScopes class.
18
18
  * @param client Reference to the service client
@@ -39,35 +39,52 @@ export class EncryptionScopesImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings?.maxPageSize) {
42
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
46
46
  },
47
47
  };
48
48
  }
49
- async *listPagingPage(resourceGroupName, accountName, options, settings) {
50
- let result;
51
- let continuationToken = settings?.continuationToken;
52
- if (!continuationToken) {
53
- result = await this._list(resourceGroupName, accountName, options);
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield page;
58
- }
59
- while (continuationToken) {
60
- result = await this._listNext(resourceGroupName, accountName, continuationToken, options);
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield page;
65
- }
49
+ listPagingPage(resourceGroupName, accountName, options, settings) {
50
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
51
+ let result;
52
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
+ if (!continuationToken) {
54
+ result = yield __await(this._list(resourceGroupName, accountName, options));
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ setContinuationToken(page, continuationToken);
58
+ yield yield __await(page);
59
+ }
60
+ while (continuationToken) {
61
+ result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ setContinuationToken(page, continuationToken);
65
+ yield yield __await(page);
66
+ }
67
+ });
66
68
  }
67
- async *listPagingAll(resourceGroupName, accountName, options) {
68
- for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {
69
- yield* page;
70
- }
69
+ listPagingAll(resourceGroupName, accountName, options) {
70
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
71
+ var _a, e_1, _b, _c;
72
+ try {
73
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
74
+ _c = _f.value;
75
+ _d = false;
76
+ const page = _c;
77
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
71
88
  }
72
89
  /**
73
90
  * Synchronously creates or updates an encryption scope under the specified storage account. If an
@@ -1 +1 @@
1
- {"version":3,"file":"encryptionScopes.js","sourceRoot":"","sources":["../../../src/operations/encryptionScopes.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;AAgBtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,I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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 { EncryptionScopes } 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 EncryptionScope,\n EncryptionScopesListNextOptionalParams,\n EncryptionScopesListOptionalParams,\n EncryptionScopesListResponse,\n EncryptionScopesPutOptionalParams,\n EncryptionScopesPutResponse,\n EncryptionScopesPatchOptionalParams,\n EncryptionScopesPatchResponse,\n EncryptionScopesGetOptionalParams,\n EncryptionScopesGetResponse,\n EncryptionScopesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EncryptionScopes operations. */\nexport class EncryptionScopesImpl implements EncryptionScopes {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class EncryptionScopes class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the encryption scopes available 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?: EncryptionScopesListOptionalParams,\n ): PagedAsyncIterableIterator<EncryptionScope> {\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?: EncryptionScopesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EncryptionScope[]> {\n let result: EncryptionScopesListResponse;\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?: EncryptionScopesListOptionalParams,\n ): AsyncIterableIterator<EncryptionScope> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Synchronously creates or updates an encryption scope under the specified storage account. If an\n * encryption scope is already created and a subsequent request is issued with different properties,\n * the encryption scope properties will be updated per the specified request.\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 encryptionScopeName The name of the encryption scope within the specified storage account.\n * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case\n * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a\n * letter or number.\n * @param encryptionScope Encryption scope properties to be used for the create or update.\n * @param options The options parameters.\n */\n put(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n encryptionScope: EncryptionScope,\n options?: EncryptionScopesPutOptionalParams,\n ): Promise<EncryptionScopesPutResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n encryptionScopeName,\n encryptionScope,\n options,\n },\n putOperationSpec,\n );\n }\n\n /**\n * Update encryption scope properties as specified in the request body. Update fails if the specified\n * encryption scope does not already exist.\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 encryptionScopeName The name of the encryption scope within the specified storage account.\n * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case\n * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a\n * letter or number.\n * @param encryptionScope Encryption scope properties to be used for the update.\n * @param options The options parameters.\n */\n patch(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n encryptionScope: EncryptionScope,\n options?: EncryptionScopesPatchOptionalParams,\n ): Promise<EncryptionScopesPatchResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n encryptionScopeName,\n encryptionScope,\n options,\n },\n patchOperationSpec,\n );\n }\n\n /**\n * Returns the properties for the specified encryption scope.\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 encryptionScopeName The name of the encryption scope within the specified storage account.\n * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case\n * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a\n * letter or number.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n options?: EncryptionScopesGetOptionalParams,\n ): Promise<EncryptionScopesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, encryptionScopeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all the encryption scopes available 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?: EncryptionScopesListOptionalParams,\n ): Promise<EncryptionScopesListResponse> {\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?: EncryptionScopesListNextOptionalParams,\n ): Promise<EncryptionScopesListNextResponse> {\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 putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n 201: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.encryptionScope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst patchOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.encryptionScope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\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}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScopeListResult,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.maxpagesize2,\n Parameters.include3,\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.EncryptionScopeListResult,\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":"encryptionScopes.js","sourceRoot":"","sources":["../../../src/operations/encryptionScopes.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;AAgBtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAA4C,EAC5C,QAAuB;;YAEvB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,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 { EncryptionScopes } 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 EncryptionScope,\n EncryptionScopesListNextOptionalParams,\n EncryptionScopesListOptionalParams,\n EncryptionScopesListResponse,\n EncryptionScopesPutOptionalParams,\n EncryptionScopesPutResponse,\n EncryptionScopesPatchOptionalParams,\n EncryptionScopesPatchResponse,\n EncryptionScopesGetOptionalParams,\n EncryptionScopesGetResponse,\n EncryptionScopesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EncryptionScopes operations. */\nexport class EncryptionScopesImpl implements EncryptionScopes {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class EncryptionScopes class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the encryption scopes available 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?: EncryptionScopesListOptionalParams,\n ): PagedAsyncIterableIterator<EncryptionScope> {\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?: EncryptionScopesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EncryptionScope[]> {\n let result: EncryptionScopesListResponse;\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?: EncryptionScopesListOptionalParams,\n ): AsyncIterableIterator<EncryptionScope> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Synchronously creates or updates an encryption scope under the specified storage account. If an\n * encryption scope is already created and a subsequent request is issued with different properties,\n * the encryption scope properties will be updated per the specified request.\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 encryptionScopeName The name of the encryption scope within the specified storage account.\n * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case\n * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a\n * letter or number.\n * @param encryptionScope Encryption scope properties to be used for the create or update.\n * @param options The options parameters.\n */\n put(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n encryptionScope: EncryptionScope,\n options?: EncryptionScopesPutOptionalParams,\n ): Promise<EncryptionScopesPutResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n encryptionScopeName,\n encryptionScope,\n options,\n },\n putOperationSpec,\n );\n }\n\n /**\n * Update encryption scope properties as specified in the request body. Update fails if the specified\n * encryption scope does not already exist.\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 encryptionScopeName The name of the encryption scope within the specified storage account.\n * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case\n * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a\n * letter or number.\n * @param encryptionScope Encryption scope properties to be used for the update.\n * @param options The options parameters.\n */\n patch(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n encryptionScope: EncryptionScope,\n options?: EncryptionScopesPatchOptionalParams,\n ): Promise<EncryptionScopesPatchResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n encryptionScopeName,\n encryptionScope,\n options,\n },\n patchOperationSpec,\n );\n }\n\n /**\n * Returns the properties for the specified encryption scope.\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 encryptionScopeName The name of the encryption scope within the specified storage account.\n * Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case\n * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a\n * letter or number.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n options?: EncryptionScopesGetOptionalParams,\n ): Promise<EncryptionScopesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, encryptionScopeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all the encryption scopes available 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?: EncryptionScopesListOptionalParams,\n ): Promise<EncryptionScopesListResponse> {\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?: EncryptionScopesListNextOptionalParams,\n ): Promise<EncryptionScopesListNextResponse> {\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 putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n 201: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.encryptionScope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst patchOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.encryptionScope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\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}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScopeListResult,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.maxpagesize2,\n Parameters.include3,\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.EncryptionScopeListResult,\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"]}
@@ -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";
@@ -12,7 +13,6 @@ import * as Parameters from "../models/parameters.js";
12
13
  /// <reference lib="esnext.asynciterable" />
13
14
  /** Class containing FileServices operations. */
14
15
  export class FileServicesImpl {
15
- client;
16
16
  /**
17
17
  * Initialize a new instance of the class FileServices class.
18
18
  * @param client Reference to the service client
@@ -39,35 +39,52 @@ export class FileServicesImpl {
39
39
  return this;
40
40
  },
41
41
  byPage: (settings) => {
42
- if (settings?.maxPageSize) {
42
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
43
  throw new Error("maxPageSize is not supported by this operation.");
44
44
  }
45
45
  return this.listServiceUsagesPagingPage(resourceGroupName, accountName, options, settings);
46
46
  },
47
47
  };
48
48
  }
49
- async *listServiceUsagesPagingPage(resourceGroupName, accountName, options, settings) {
50
- let result;
51
- let continuationToken = settings?.continuationToken;
52
- if (!continuationToken) {
53
- result = await this._listServiceUsages(resourceGroupName, accountName, options);
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield page;
58
- }
59
- while (continuationToken) {
60
- result = await this._listServiceUsagesNext(resourceGroupName, accountName, continuationToken, options);
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield page;
65
- }
49
+ listServiceUsagesPagingPage(resourceGroupName, accountName, options, settings) {
50
+ return __asyncGenerator(this, arguments, function* listServiceUsagesPagingPage_1() {
51
+ let result;
52
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
+ if (!continuationToken) {
54
+ result = yield __await(this._listServiceUsages(resourceGroupName, accountName, options));
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ setContinuationToken(page, continuationToken);
58
+ yield yield __await(page);
59
+ }
60
+ while (continuationToken) {
61
+ result = yield __await(this._listServiceUsagesNext(resourceGroupName, accountName, continuationToken, options));
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ setContinuationToken(page, continuationToken);
65
+ yield yield __await(page);
66
+ }
67
+ });
66
68
  }
67
- async *listServiceUsagesPagingAll(resourceGroupName, accountName, options) {
68
- for await (const page of this.listServiceUsagesPagingPage(resourceGroupName, accountName, options)) {
69
- yield* page;
70
- }
69
+ listServiceUsagesPagingAll(resourceGroupName, accountName, options) {
70
+ return __asyncGenerator(this, arguments, function* listServiceUsagesPagingAll_1() {
71
+ var _a, e_1, _b, _c;
72
+ try {
73
+ for (var _d = true, _e = __asyncValues(this.listServiceUsagesPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
74
+ _c = _f.value;
75
+ _d = false;
76
+ const page = _c;
77
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
71
88
  }
72
89
  /**
73
90
  * List all file services in storage accounts
@@ -1 +1 @@
1
- {"version":3,"file":"fileServices.js","sourceRoot":"","sources":["../../../src/operations/fileServices.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,OA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;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { FileServices } 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 FileServiceUsage,\n FileServicesListServiceUsagesNextOptionalParams,\n FileServicesListServiceUsagesOptionalParams,\n FileServicesListServiceUsagesResponse,\n FileServicesListOptionalParams,\n FileServicesListResponse,\n FileServiceProperties,\n FileServicesSetServicePropertiesOptionalParams,\n FileServicesSetServicePropertiesResponse,\n FileServicesGetServicePropertiesOptionalParams,\n FileServicesGetServicePropertiesResponse,\n FileServicesGetServiceUsageOptionalParams,\n FileServicesGetServiceUsageResponse,\n FileServicesListServiceUsagesNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FileServices operations. */\nexport class FileServicesImpl implements FileServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class FileServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the usages of file service in 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 listServiceUsages(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): PagedAsyncIterableIterator<FileServiceUsage> {\n const iter = this.listServiceUsagesPagingAll(\n resourceGroupName,\n accountName,\n options,\n );\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.listServiceUsagesPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listServiceUsagesPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FileServiceUsage[]> {\n let result: FileServicesListServiceUsagesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listServiceUsages(\n resourceGroupName,\n accountName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listServiceUsagesNext(\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 *listServiceUsagesPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): AsyncIterableIterator<FileServiceUsage> {\n for await (const page of this.listServiceUsagesPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all file services in storage accounts\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?: FileServicesListOptionalParams,\n ): Promise<FileServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource\n * 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 file services in storage accounts, including CORS (Cross-Origin\n * Resource Sharing) rules.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: FileServiceProperties,\n options?: FileServicesSetServicePropertiesOptionalParams,\n ): Promise<FileServicesSetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, parameters, options },\n setServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource\n * 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?: FileServicesGetServicePropertiesOptionalParams,\n ): Promise<FileServicesGetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the usages of file service in 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 _listServiceUsages(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): Promise<FileServicesListServiceUsagesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listServiceUsagesOperationSpec,\n );\n }\n\n /**\n * Gets the usage of file service in storage account including account limits, file share limits and\n * constants used in recommendations and bursting formula.\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 getServiceUsage(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesGetServiceUsageOptionalParams,\n ): Promise<FileServicesGetServiceUsageResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServiceUsageOperationSpec,\n );\n }\n\n /**\n * ListServiceUsagesNext\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 ListServiceUsages method.\n * @param options The options parameters.\n */\n private _listServiceUsagesNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: FileServicesListServiceUsagesNextOptionalParams,\n ): Promise<FileServicesListServiceUsagesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listServiceUsagesNextOperationSpec,\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}/fileServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceItems,\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}/fileServices/{FileServicesName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\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}/fileServices/{FileServicesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\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.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listServiceUsagesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsages,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxpagesize1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getServiceUsageOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages/{fileServiceUsagesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsage,\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.fileServicesName,\n Parameters.fileServiceUsagesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listServiceUsagesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsages,\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 Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"fileServices.js","sourceRoot":"","sources":["../../../src/operations/fileServices.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;AAmBtD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,iBAAiB,CACtB,iBAAyB,EACzB,WAAmB,EACnB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,0BAA0B,CAC1C,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC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iB;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;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,6LAA6L;IACnM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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;QAC3B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { FileServices } 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 FileServiceUsage,\n FileServicesListServiceUsagesNextOptionalParams,\n FileServicesListServiceUsagesOptionalParams,\n FileServicesListServiceUsagesResponse,\n FileServicesListOptionalParams,\n FileServicesListResponse,\n FileServiceProperties,\n FileServicesSetServicePropertiesOptionalParams,\n FileServicesSetServicePropertiesResponse,\n FileServicesGetServicePropertiesOptionalParams,\n FileServicesGetServicePropertiesResponse,\n FileServicesGetServiceUsageOptionalParams,\n FileServicesGetServiceUsageResponse,\n FileServicesListServiceUsagesNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FileServices operations. */\nexport class FileServicesImpl implements FileServices {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class FileServices class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the usages of file service in 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 listServiceUsages(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): PagedAsyncIterableIterator<FileServiceUsage> {\n const iter = this.listServiceUsagesPagingAll(\n resourceGroupName,\n accountName,\n options,\n );\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.listServiceUsagesPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listServiceUsagesPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FileServiceUsage[]> {\n let result: FileServicesListServiceUsagesResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listServiceUsages(\n resourceGroupName,\n accountName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listServiceUsagesNext(\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 *listServiceUsagesPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): AsyncIterableIterator<FileServiceUsage> {\n for await (const page of this.listServiceUsagesPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all file services in storage accounts\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?: FileServicesListOptionalParams,\n ): Promise<FileServicesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource\n * 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 file services in storage accounts, including CORS (Cross-Origin\n * Resource Sharing) rules.\n * @param options The options parameters.\n */\n setServiceProperties(\n resourceGroupName: string,\n accountName: string,\n parameters: FileServiceProperties,\n options?: FileServicesSetServicePropertiesOptionalParams,\n ): Promise<FileServicesSetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, parameters, options },\n setServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource\n * 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?: FileServicesGetServicePropertiesOptionalParams,\n ): Promise<FileServicesGetServicePropertiesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServicePropertiesOperationSpec,\n );\n }\n\n /**\n * Gets the usages of file service in 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 _listServiceUsages(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesListServiceUsagesOptionalParams,\n ): Promise<FileServicesListServiceUsagesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listServiceUsagesOperationSpec,\n );\n }\n\n /**\n * Gets the usage of file service in storage account including account limits, file share limits and\n * constants used in recommendations and bursting formula.\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 getServiceUsage(\n resourceGroupName: string,\n accountName: string,\n options?: FileServicesGetServiceUsageOptionalParams,\n ): Promise<FileServicesGetServiceUsageResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n getServiceUsageOperationSpec,\n );\n }\n\n /**\n * ListServiceUsagesNext\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 ListServiceUsages method.\n * @param options The options parameters.\n */\n private _listServiceUsagesNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: FileServicesListServiceUsagesNextOptionalParams,\n ): Promise<FileServicesListServiceUsagesNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listServiceUsagesNextOperationSpec,\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}/fileServices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceItems,\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}/fileServices/{FileServicesName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\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}/fileServices/{FileServicesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\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.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listServiceUsagesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsages,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxpagesize1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getServiceUsageOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages/{fileServiceUsagesName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsage,\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.fileServicesName,\n Parameters.fileServiceUsagesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listServiceUsagesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceUsages,\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 Parameters.fileServicesName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}