@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
@@ -15,7 +15,6 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing ObjectReplicationPoliciesOperations operations. */
17
17
  class ObjectReplicationPoliciesOperationsImpl {
18
- client;
19
18
  /**
20
19
  * Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
21
20
  * @param client Reference to the service client
@@ -42,22 +41,39 @@ class ObjectReplicationPoliciesOperationsImpl {
42
41
  return this;
43
42
  },
44
43
  byPage: (settings) => {
45
- if (settings?.maxPageSize) {
44
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
45
  throw new Error("maxPageSize is not supported by this operation.");
47
46
  }
48
47
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
49
48
  },
50
49
  };
51
50
  }
52
- async *listPagingPage(resourceGroupName, accountName, options, _settings) {
53
- let result;
54
- result = await this._list(resourceGroupName, accountName, options);
55
- yield result.value || [];
51
+ listPagingPage(resourceGroupName, accountName, options, _settings) {
52
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
+ let result;
54
+ result = yield tslib_1.__await(this._list(resourceGroupName, accountName, options));
55
+ yield yield tslib_1.__await(result.value || []);
56
+ });
56
57
  }
57
- async *listPagingAll(resourceGroupName, accountName, options) {
58
- for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {
59
- yield* page;
60
- }
58
+ listPagingAll(resourceGroupName, accountName, options) {
59
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
60
+ var _a, e_1, _b, _c;
61
+ try {
62
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
63
+ _c = _f.value;
64
+ _d = false;
65
+ const page = _c;
66
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
67
+ }
68
+ }
69
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
70
+ finally {
71
+ try {
72
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
73
+ }
74
+ finally { if (e_1) throw e_1.error; }
75
+ }
76
+ });
61
77
  }
62
78
  /**
63
79
  * List the object replication policies associated with the storage account.
@@ -1 +1 @@
1
- {"version":3,"file":"objectReplicationPoliciesOperations.js","sourceRoot":"","sources":["../../../src/operations/objectReplicationPoliciesOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAM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iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,oLAAoL;IAC1L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,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,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;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 { ObjectReplicationPoliciesOperations } 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 ObjectReplicationPolicy,\n ObjectReplicationPoliciesListOptionalParams,\n ObjectReplicationPoliciesListResponse,\n ObjectReplicationPoliciesGetOptionalParams,\n ObjectReplicationPoliciesGetResponse,\n ObjectReplicationPoliciesCreateOrUpdateOptionalParams,\n ObjectReplicationPoliciesCreateOrUpdateResponse,\n ObjectReplicationPoliciesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ObjectReplicationPoliciesOperations operations. */\nexport class ObjectReplicationPoliciesOperationsImpl\n implements ObjectReplicationPoliciesOperations\n{\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class ObjectReplicationPoliciesOperations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List the object replication policies associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: ObjectReplicationPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<ObjectReplicationPolicy> {\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?: ObjectReplicationPoliciesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ObjectReplicationPolicy[]> {\n let result: ObjectReplicationPoliciesListResponse;\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?: ObjectReplicationPoliciesListOptionalParams,\n ): AsyncIterableIterator<ObjectReplicationPolicy> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List the object replication policies associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: ObjectReplicationPoliciesListOptionalParams,\n ): Promise<ObjectReplicationPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get the object replication policy of the storage account by policy ID.\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 objectReplicationPolicyId For the destination account, provide the value 'default'. Configure\n * the policy on the destination account first. For the source account, provide the value of the policy\n * ID that is returned when you download the policy that was defined on the destination account. The\n * policy is downloaded as a JSON file.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n objectReplicationPolicyId: string,\n options?: ObjectReplicationPoliciesGetOptionalParams,\n ): Promise<ObjectReplicationPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, objectReplicationPolicyId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update the object replication policy of the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param objectReplicationPolicyId For the destination account, provide the value 'default'. Configure\n * the policy on the destination account first. For the source account, provide the value of the policy\n * ID that is returned when you download the policy that was defined on the destination account. The\n * policy is downloaded as a JSON file.\n * @param properties The object replication policy set to a storage account. A unique policy ID will be\n * created if absent.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n objectReplicationPolicyId: string,\n properties: ObjectReplicationPolicy,\n options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams,\n ): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n objectReplicationPolicyId,\n properties,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the object replication policy associated with 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 objectReplicationPolicyId For the destination account, provide the value 'default'. Configure\n * the policy on the destination account first. For the source account, provide the value of the policy\n * ID that is returned when you download the policy that was defined on the destination account. The\n * policy is downloaded as a JSON file.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n objectReplicationPolicyId: string,\n options?: ObjectReplicationPoliciesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, objectReplicationPolicyId, options },\n deleteOperationSpec,\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}/objectReplicationPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ObjectReplicationPolicies,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ObjectReplicationPolicy,\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.objectReplicationPolicyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ObjectReplicationPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.objectReplicationPolicyId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\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.objectReplicationPolicyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"objectReplicationPoliciesOperations.js","sourceRoot":"","sources":["../../../src/operations/objectReplicationPoliciesOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4CAA4C;AAC5C,uEAAuE;AACvE,MAAa,uCAAuC;IAKlD;;;OAGG;IACH,YAAY,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AAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,oLAAoL;IAC1L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,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,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,yBAAyB;KACrC;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 { ObjectReplicationPoliciesOperations } 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 ObjectReplicationPolicy,\n ObjectReplicationPoliciesListOptionalParams,\n ObjectReplicationPoliciesListResponse,\n ObjectReplicationPoliciesGetOptionalParams,\n ObjectReplicationPoliciesGetResponse,\n ObjectReplicationPoliciesCreateOrUpdateOptionalParams,\n ObjectReplicationPoliciesCreateOrUpdateResponse,\n ObjectReplicationPoliciesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ObjectReplicationPoliciesOperations operations. */\nexport class ObjectReplicationPoliciesOperationsImpl\n implements ObjectReplicationPoliciesOperations\n{\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class ObjectReplicationPoliciesOperations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List the object replication policies associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: ObjectReplicationPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<ObjectReplicationPolicy> {\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?: ObjectReplicationPoliciesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ObjectReplicationPolicy[]> {\n let result: ObjectReplicationPoliciesListResponse;\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?: ObjectReplicationPoliciesListOptionalParams,\n ): AsyncIterableIterator<ObjectReplicationPolicy> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List the object replication policies associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: ObjectReplicationPoliciesListOptionalParams,\n ): Promise<ObjectReplicationPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get the object replication policy of the storage account by policy ID.\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 objectReplicationPolicyId For the destination account, provide the value 'default'. Configure\n * the policy on the destination account first. For the source account, provide the value of the policy\n * ID that is returned when you download the policy that was defined on the destination account. The\n * policy is downloaded as a JSON file.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n objectReplicationPolicyId: string,\n options?: ObjectReplicationPoliciesGetOptionalParams,\n ): Promise<ObjectReplicationPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, objectReplicationPolicyId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update the object replication policy of the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param objectReplicationPolicyId For the destination account, provide the value 'default'. Configure\n * the policy on the destination account first. For the source account, provide the value of the policy\n * ID that is returned when you download the policy that was defined on the destination account. The\n * policy is downloaded as a JSON file.\n * @param properties The object replication policy set to a storage account. A unique policy ID will be\n * created if absent.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n objectReplicationPolicyId: string,\n properties: ObjectReplicationPolicy,\n options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams,\n ): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n objectReplicationPolicyId,\n properties,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the object replication policy associated with 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 objectReplicationPolicyId For the destination account, provide the value 'default'. Configure\n * the policy on the destination account first. For the source account, provide the value of the policy\n * ID that is returned when you download the policy that was defined on the destination account. The\n * policy is downloaded as a JSON file.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n objectReplicationPolicyId: string,\n options?: ObjectReplicationPoliciesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, objectReplicationPolicyId, options },\n deleteOperationSpec,\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}/objectReplicationPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ObjectReplicationPolicies,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ObjectReplicationPolicy,\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.objectReplicationPolicyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ObjectReplicationPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.objectReplicationPolicyId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\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.objectReplicationPolicyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -15,7 +15,6 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Operations operations. */
17
17
  class OperationsImpl {
18
- client;
19
18
  /**
20
19
  * Initialize a new instance of the class Operations class.
21
20
  * @param client Reference to the service client
@@ -37,22 +36,39 @@ class OperationsImpl {
37
36
  return this;
38
37
  },
39
38
  byPage: (settings) => {
40
- if (settings?.maxPageSize) {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
40
  throw new Error("maxPageSize is not supported by this operation.");
42
41
  }
43
42
  return this.listPagingPage(options, settings);
44
43
  },
45
44
  };
46
45
  }
47
- async *listPagingPage(options, _settings) {
48
- let result;
49
- result = await this._list(options);
50
- yield result.value || [];
46
+ listPagingPage(options, _settings) {
47
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
48
+ let result;
49
+ result = yield tslib_1.__await(this._list(options));
50
+ yield yield tslib_1.__await(result.value || []);
51
+ });
51
52
  }
52
- async *listPagingAll(options) {
53
- for await (const page of this.listPagingPage(options)) {
54
- yield* page;
55
- }
53
+ listPagingAll(options) {
54
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
55
+ var _a, e_1, _b, _c;
56
+ try {
57
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
58
+ _c = _f.value;
59
+ _d = false;
60
+ const page = _c;
61
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
56
72
  }
57
73
  /**
58
74
  * Lists all of the available Storage Rest API operations.
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAA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3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,yCAAyC;IAC/C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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 { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Storage Rest API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Storage Rest API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Storage/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,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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 { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Storage Rest API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Storage Rest API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Storage/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -15,7 +15,6 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing PrivateEndpointConnections operations. */
17
17
  class PrivateEndpointConnectionsImpl {
18
- client;
19
18
  /**
20
19
  * Initialize a new instance of the class PrivateEndpointConnections class.
21
20
  * @param client Reference to the service client
@@ -42,22 +41,39 @@ class PrivateEndpointConnectionsImpl {
42
41
  return this;
43
42
  },
44
43
  byPage: (settings) => {
45
- if (settings?.maxPageSize) {
44
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
46
45
  throw new Error("maxPageSize is not supported by this operation.");
47
46
  }
48
47
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
49
48
  },
50
49
  };
51
50
  }
52
- async *listPagingPage(resourceGroupName, accountName, options, _settings) {
53
- let result;
54
- result = await this._list(resourceGroupName, accountName, options);
55
- yield result.value || [];
51
+ listPagingPage(resourceGroupName, accountName, options, _settings) {
52
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
+ let result;
54
+ result = yield tslib_1.__await(this._list(resourceGroupName, accountName, options));
55
+ yield yield tslib_1.__await(result.value || []);
56
+ });
56
57
  }
57
- async *listPagingAll(resourceGroupName, accountName, options) {
58
- for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {
59
- yield* page;
60
- }
58
+ listPagingAll(resourceGroupName, accountName, options) {
59
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
60
+ var _a, e_1, _b, _c;
61
+ try {
62
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
63
+ _c = _f.value;
64
+ _d = false;
65
+ const page = _c;
66
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
67
+ }
68
+ }
69
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
70
+ finally {
71
+ try {
72
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
73
+ }
74
+ finally { if (e_1) throw e_1.error; }
75
+ }
76
+ });
61
77
  }
62
78
  /**
63
79
  * List all the private endpoint connections associated with the storage account.
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAGxB,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,OAAsD;QAEtD,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;gB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CAAC,cAAc;QACzB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,yLAAyL;IAC/L,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,yLAAyL;IAC/L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,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,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,6BAA6B;KACzC;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 { PrivateEndpointConnections } 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 PrivateEndpointConnection,\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsPutOptionalParams,\n PrivateEndpointConnectionsPutResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the private endpoint connections associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\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?: PrivateEndpointConnectionsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListResponse;\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?: PrivateEndpointConnectionsListOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the private endpoint connections associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n put(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ): Promise<PrivateEndpointConnectionsPutResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n putOperationSpec,\n );\n }\n\n /**\n * Deletes the specified private endpoint connection associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n deleteOperationSpec,\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}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\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.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\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.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;G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a,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,yLAAyL;IAC/L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,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,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,6BAA6B;KACzC;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 { PrivateEndpointConnections } 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 PrivateEndpointConnection,\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsPutOptionalParams,\n PrivateEndpointConnectionsPutResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections\n{\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the private endpoint connections associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\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?: PrivateEndpointConnectionsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListResponse;\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?: PrivateEndpointConnectionsListOptionalParams,\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List all the private endpoint connections associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n put(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsPutOptionalParams,\n ): Promise<PrivateEndpointConnectionsPutResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n putOperationSpec,\n );\n }\n\n /**\n * Deletes the specified private endpoint connection associated with the storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n deleteOperationSpec,\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}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\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.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\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.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,7 +14,6 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing PrivateLinkResources operations. */
16
16
  class PrivateLinkResourcesImpl {
17
- client;
18
17
  /**
19
18
  * Initialize a new instance of the class PrivateLinkResources class.
20
19
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iCAAiC,CAClC,CAAC;IACJ,CAAC;CACF;AA9BD,4DA8BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,mJAAmJ;IACzJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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;KAC1B;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 { PrivateLinkResources } 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 PrivateLinkResourcesListByStorageAccountOptionalParams,\n PrivateLinkResourcesListByStorageAccountResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a 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 listByStorageAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateLinkResourcesListByStorageAccountOptionalParams,\n ): Promise<PrivateLinkResourcesListByStorageAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listByStorageAccountOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult,\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};\n"]}
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iCAAiC,CAClC,CAAC;IACJ,CAAC;CACF;AA9BD,4DA8BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,mJAAmJ;IACzJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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;KAC1B;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 { PrivateLinkResources } 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 PrivateLinkResourcesListByStorageAccountOptionalParams,\n PrivateLinkResourcesListByStorageAccountResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a 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 listByStorageAccount(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateLinkResourcesListByStorageAccountOptionalParams,\n ): Promise<PrivateLinkResourcesListByStorageAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listByStorageAccountOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult,\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};\n"]}
@@ -16,7 +16,6 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Queue operations. */
18
18
  class QueueImpl {
19
- client;
20
19
  /**
21
20
  * Initialize a new instance of the class Queue class.
22
21
  * @param client Reference to the service client
@@ -43,35 +42,52 @@ class QueueImpl {
43
42
  return this;
44
43
  },
45
44
  byPage: (settings) => {
46
- if (settings?.maxPageSize) {
45
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
47
46
  throw new Error("maxPageSize is not supported by this operation.");
48
47
  }
49
48
  return this.listPagingPage(resourceGroupName, accountName, options, settings);
50
49
  },
51
50
  };
52
51
  }
53
- async *listPagingPage(resourceGroupName, accountName, options, settings) {
54
- let result;
55
- let continuationToken = settings?.continuationToken;
56
- if (!continuationToken) {
57
- result = await this._list(resourceGroupName, accountName, options);
58
- let page = result.value || [];
59
- continuationToken = result.nextLink;
60
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
- yield page;
62
- }
63
- while (continuationToken) {
64
- result = await this._listNext(resourceGroupName, accountName, continuationToken, options);
65
- continuationToken = result.nextLink;
66
- let page = result.value || [];
67
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
- yield page;
69
- }
52
+ listPagingPage(resourceGroupName, accountName, options, settings) {
53
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
54
+ let result;
55
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
56
+ if (!continuationToken) {
57
+ result = yield tslib_1.__await(this._list(resourceGroupName, accountName, options));
58
+ let page = result.value || [];
59
+ continuationToken = result.nextLink;
60
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
61
+ yield yield tslib_1.__await(page);
62
+ }
63
+ while (continuationToken) {
64
+ result = yield tslib_1.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
65
+ continuationToken = result.nextLink;
66
+ let page = result.value || [];
67
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
68
+ yield yield tslib_1.__await(page);
69
+ }
70
+ });
70
71
  }
71
- async *listPagingAll(resourceGroupName, accountName, options) {
72
- for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {
73
- yield* page;
74
- }
72
+ listPagingAll(resourceGroupName, accountName, options) {
73
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
74
+ var _a, e_1, _b, _c;
75
+ try {
76
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
77
+ _c = _f.value;
78
+ _d = false;
79
+ const page = _c;
80
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
81
+ }
82
+ }
83
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
84
+ finally {
85
+ try {
86
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
87
+ }
88
+ finally { if (e_1) throw e_1.error; }
89
+ }
90
+ });
75
91
  }
76
92
  /**
77
93
  * Creates a new queue with the specified queue name, under the specified account.
@@ -1 +1 @@
1
- {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../src/operations/queue.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAa,SAAS;IACH,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAiC,EACjC,QAAuB;QAEvB,IAAI,MAAyB,CAAC;QAC9B,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD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AAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Queue } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n ListQueue,\n QueueListNextOptionalParams,\n QueueListOptionalParams,\n QueueListResponse,\n StorageQueue,\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueUpdateOptionalParams,\n QueueUpdateResponse,\n QueueGetOptionalParams,\n QueueGetResponse,\n QueueDeleteOptionalParams,\n QueueListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Queue operations. */\nexport class QueueImpl implements Queue {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Queue class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all the queues under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): PagedAsyncIterableIterator<ListQueue> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ListQueue[]> {\n let result: QueueListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): AsyncIterableIterator<ListQueue> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a new queue with the specified queue name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueCreateOptionalParams,\n ): Promise<QueueCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n createOperationSpec,\n );\n }\n\n /**\n * Creates a new queue with the specified queue name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueUpdateOptionalParams,\n ): Promise<QueueUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the queue with the specified queue name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueGetOptionalParams,\n ): Promise<QueueGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the queue with the specified queue name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all the queues under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): Promise<QueueListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: QueueListNextOptionalParams,\n ): Promise<QueueListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxpagesize,\n Parameters.filter,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../src/operations/queue.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAa,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAA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AC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Queue } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n ListQueue,\n QueueListNextOptionalParams,\n QueueListOptionalParams,\n QueueListResponse,\n StorageQueue,\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueUpdateOptionalParams,\n QueueUpdateResponse,\n QueueGetOptionalParams,\n QueueGetResponse,\n QueueDeleteOptionalParams,\n QueueListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Queue operations. */\nexport class QueueImpl implements Queue {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class Queue class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all the queues under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): PagedAsyncIterableIterator<ListQueue> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ListQueue[]> {\n let result: QueueListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): AsyncIterableIterator<ListQueue> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a new queue with the specified queue name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueCreateOptionalParams,\n ): Promise<QueueCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n createOperationSpec,\n );\n }\n\n /**\n * Creates a new queue with the specified queue name, under the specified account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param queue Queue properties and metadata to be created with\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n queue: StorageQueue,\n options?: QueueUpdateOptionalParams,\n ): Promise<QueueUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, queue, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the queue with the specified queue name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueGetOptionalParams,\n ): Promise<QueueGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the queue with the specified queue name, under the specified account if it exists.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param queueName A queue name must be unique within a storage account and must be between 3 and 63\n * characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should\n * begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n queueName: string,\n options?: QueueDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, queueName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets a list of all the queues under the specified storage account\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: QueueListOptionalParams,\n ): Promise<QueueListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: QueueListNextOptionalParams,\n ): Promise<QueueListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queue,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageQueue,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.queueName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxpagesize,\n Parameters.filter,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueueResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,7 +14,6 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing QueueServices operations. */
16
16
  class QueueServicesImpl {
17
- client;
18
17
  /**
19
18
  * Initialize a new instance of the class QueueServices class.
20
19
  * @param client Reference to the service client