@azure/arm-appcontainers 2.2.0-alpha.20250718.1 → 2.2.0-alpha.20250721.1

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 (251) hide show
  1. package/dist/browser/containerAppsAPIClient.js +40 -5
  2. package/dist/browser/containerAppsAPIClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +318 -145
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/availableWorkloadProfiles.js +23 -40
  8. package/dist/browser/operations/availableWorkloadProfiles.js.map +1 -1
  9. package/dist/browser/operations/billingMeters.js +1 -0
  10. package/dist/browser/operations/billingMeters.js.map +1 -1
  11. package/dist/browser/operations/certificates.js +23 -40
  12. package/dist/browser/operations/certificates.js.map +1 -1
  13. package/dist/browser/operations/connectedEnvironments.js +67 -91
  14. package/dist/browser/operations/connectedEnvironments.js.map +1 -1
  15. package/dist/browser/operations/connectedEnvironmentsCertificates.js +23 -40
  16. package/dist/browser/operations/connectedEnvironmentsCertificates.js.map +1 -1
  17. package/dist/browser/operations/connectedEnvironmentsDaprComponents.js +23 -40
  18. package/dist/browser/operations/connectedEnvironmentsDaprComponents.js.map +1 -1
  19. package/dist/browser/operations/connectedEnvironmentsStorages.js +1 -0
  20. package/dist/browser/operations/connectedEnvironmentsStorages.js.map +1 -1
  21. package/dist/browser/operations/containerApps.js +100 -109
  22. package/dist/browser/operations/containerApps.js.map +1 -1
  23. package/dist/browser/operations/containerAppsAuthConfigs.js +23 -40
  24. package/dist/browser/operations/containerAppsAuthConfigs.js.map +1 -1
  25. package/dist/browser/operations/containerAppsDiagnostics.js +45 -79
  26. package/dist/browser/operations/containerAppsDiagnostics.js.map +1 -1
  27. package/dist/browser/operations/containerAppsRevisionReplicas.js +1 -0
  28. package/dist/browser/operations/containerAppsRevisionReplicas.js.map +1 -1
  29. package/dist/browser/operations/containerAppsRevisions.js +23 -40
  30. package/dist/browser/operations/containerAppsRevisions.js.map +1 -1
  31. package/dist/browser/operations/containerAppsSessionPools.js +78 -97
  32. package/dist/browser/operations/containerAppsSessionPools.js.map +1 -1
  33. package/dist/browser/operations/containerAppsSourceControls.js +45 -52
  34. package/dist/browser/operations/containerAppsSourceControls.js.map +1 -1
  35. package/dist/browser/operations/daprComponents.js +23 -40
  36. package/dist/browser/operations/daprComponents.js.map +1 -1
  37. package/dist/browser/operations/javaComponents.js +56 -58
  38. package/dist/browser/operations/javaComponents.js.map +1 -1
  39. package/dist/browser/operations/jobs.js +136 -157
  40. package/dist/browser/operations/jobs.js.map +1 -1
  41. package/dist/browser/operations/jobsExecutions.js +23 -40
  42. package/dist/browser/operations/jobsExecutions.js.map +1 -1
  43. package/dist/browser/operations/managedCertificates.js +34 -46
  44. package/dist/browser/operations/managedCertificates.js.map +1 -1
  45. package/dist/browser/operations/managedEnvironmentDiagnostics.js +1 -0
  46. package/dist/browser/operations/managedEnvironmentDiagnostics.js.map +1 -1
  47. package/dist/browser/operations/managedEnvironmentUsages.js +23 -40
  48. package/dist/browser/operations/managedEnvironmentUsages.js.map +1 -1
  49. package/dist/browser/operations/managedEnvironments.js +100 -136
  50. package/dist/browser/operations/managedEnvironments.js.map +1 -1
  51. package/dist/browser/operations/managedEnvironmentsDiagnostics.js +1 -0
  52. package/dist/browser/operations/managedEnvironmentsDiagnostics.js.map +1 -1
  53. package/dist/browser/operations/managedEnvironmentsStorages.js +1 -0
  54. package/dist/browser/operations/managedEnvironmentsStorages.js.map +1 -1
  55. package/dist/browser/operations/namespaces.js +1 -0
  56. package/dist/browser/operations/namespaces.js.map +1 -1
  57. package/dist/browser/operations/operations.js +23 -40
  58. package/dist/browser/operations/operations.js.map +1 -1
  59. package/dist/browser/operations/usages.js +23 -40
  60. package/dist/browser/operations/usages.js.map +1 -1
  61. package/dist/browser/pagingHelper.js +2 -4
  62. package/dist/browser/pagingHelper.js.map +1 -1
  63. package/dist/commonjs/containerAppsAPIClient.js +40 -5
  64. package/dist/commonjs/containerAppsAPIClient.js.map +1 -1
  65. package/dist/commonjs/lroImpl.js +7 -3
  66. package/dist/commonjs/lroImpl.js.map +1 -1
  67. package/dist/commonjs/models/mappers.js +318 -145
  68. package/dist/commonjs/models/mappers.js.map +1 -1
  69. package/dist/commonjs/operations/availableWorkloadProfiles.js +23 -39
  70. package/dist/commonjs/operations/availableWorkloadProfiles.js.map +1 -1
  71. package/dist/commonjs/operations/billingMeters.js +1 -0
  72. package/dist/commonjs/operations/billingMeters.js.map +1 -1
  73. package/dist/commonjs/operations/certificates.js +23 -39
  74. package/dist/commonjs/operations/certificates.js.map +1 -1
  75. package/dist/commonjs/operations/connectedEnvironments.js +67 -90
  76. package/dist/commonjs/operations/connectedEnvironments.js.map +1 -1
  77. package/dist/commonjs/operations/connectedEnvironmentsCertificates.js +23 -39
  78. package/dist/commonjs/operations/connectedEnvironmentsCertificates.js.map +1 -1
  79. package/dist/commonjs/operations/connectedEnvironmentsDaprComponents.js +23 -39
  80. package/dist/commonjs/operations/connectedEnvironmentsDaprComponents.js.map +1 -1
  81. package/dist/commonjs/operations/connectedEnvironmentsStorages.js +1 -0
  82. package/dist/commonjs/operations/connectedEnvironmentsStorages.js.map +1 -1
  83. package/dist/commonjs/operations/containerApps.js +100 -108
  84. package/dist/commonjs/operations/containerApps.js.map +1 -1
  85. package/dist/commonjs/operations/containerAppsAuthConfigs.js +23 -39
  86. package/dist/commonjs/operations/containerAppsAuthConfigs.js.map +1 -1
  87. package/dist/commonjs/operations/containerAppsDiagnostics.js +45 -78
  88. package/dist/commonjs/operations/containerAppsDiagnostics.js.map +1 -1
  89. package/dist/commonjs/operations/containerAppsRevisionReplicas.js +1 -0
  90. package/dist/commonjs/operations/containerAppsRevisionReplicas.js.map +1 -1
  91. package/dist/commonjs/operations/containerAppsRevisions.js +23 -39
  92. package/dist/commonjs/operations/containerAppsRevisions.js.map +1 -1
  93. package/dist/commonjs/operations/containerAppsSessionPools.js +78 -96
  94. package/dist/commonjs/operations/containerAppsSessionPools.js.map +1 -1
  95. package/dist/commonjs/operations/containerAppsSourceControls.js +45 -51
  96. package/dist/commonjs/operations/containerAppsSourceControls.js.map +1 -1
  97. package/dist/commonjs/operations/daprComponents.js +23 -39
  98. package/dist/commonjs/operations/daprComponents.js.map +1 -1
  99. package/dist/commonjs/operations/javaComponents.js +56 -57
  100. package/dist/commonjs/operations/javaComponents.js.map +1 -1
  101. package/dist/commonjs/operations/jobs.js +136 -156
  102. package/dist/commonjs/operations/jobs.js.map +1 -1
  103. package/dist/commonjs/operations/jobsExecutions.js +23 -39
  104. package/dist/commonjs/operations/jobsExecutions.js.map +1 -1
  105. package/dist/commonjs/operations/managedCertificates.js +34 -45
  106. package/dist/commonjs/operations/managedCertificates.js.map +1 -1
  107. package/dist/commonjs/operations/managedEnvironmentDiagnostics.js +1 -0
  108. package/dist/commonjs/operations/managedEnvironmentDiagnostics.js.map +1 -1
  109. package/dist/commonjs/operations/managedEnvironmentUsages.js +23 -39
  110. package/dist/commonjs/operations/managedEnvironmentUsages.js.map +1 -1
  111. package/dist/commonjs/operations/managedEnvironments.js +100 -135
  112. package/dist/commonjs/operations/managedEnvironments.js.map +1 -1
  113. package/dist/commonjs/operations/managedEnvironmentsDiagnostics.js +1 -0
  114. package/dist/commonjs/operations/managedEnvironmentsDiagnostics.js.map +1 -1
  115. package/dist/commonjs/operations/managedEnvironmentsStorages.js +1 -0
  116. package/dist/commonjs/operations/managedEnvironmentsStorages.js.map +1 -1
  117. package/dist/commonjs/operations/namespaces.js +1 -0
  118. package/dist/commonjs/operations/namespaces.js.map +1 -1
  119. package/dist/commonjs/operations/operations.js +23 -39
  120. package/dist/commonjs/operations/operations.js.map +1 -1
  121. package/dist/commonjs/operations/usages.js +23 -39
  122. package/dist/commonjs/operations/usages.js.map +1 -1
  123. package/dist/commonjs/pagingHelper.js +2 -4
  124. package/dist/commonjs/pagingHelper.js.map +1 -1
  125. package/dist/commonjs/tsdoc-metadata.json +11 -11
  126. package/dist/esm/containerAppsAPIClient.js +40 -5
  127. package/dist/esm/containerAppsAPIClient.js.map +1 -1
  128. package/dist/esm/lroImpl.js +7 -3
  129. package/dist/esm/lroImpl.js.map +1 -1
  130. package/dist/esm/models/mappers.js +318 -145
  131. package/dist/esm/models/mappers.js.map +1 -1
  132. package/dist/esm/operations/availableWorkloadProfiles.js +23 -40
  133. package/dist/esm/operations/availableWorkloadProfiles.js.map +1 -1
  134. package/dist/esm/operations/billingMeters.js +1 -0
  135. package/dist/esm/operations/billingMeters.js.map +1 -1
  136. package/dist/esm/operations/certificates.js +23 -40
  137. package/dist/esm/operations/certificates.js.map +1 -1
  138. package/dist/esm/operations/connectedEnvironments.js +67 -91
  139. package/dist/esm/operations/connectedEnvironments.js.map +1 -1
  140. package/dist/esm/operations/connectedEnvironmentsCertificates.js +23 -40
  141. package/dist/esm/operations/connectedEnvironmentsCertificates.js.map +1 -1
  142. package/dist/esm/operations/connectedEnvironmentsDaprComponents.js +23 -40
  143. package/dist/esm/operations/connectedEnvironmentsDaprComponents.js.map +1 -1
  144. package/dist/esm/operations/connectedEnvironmentsStorages.js +1 -0
  145. package/dist/esm/operations/connectedEnvironmentsStorages.js.map +1 -1
  146. package/dist/esm/operations/containerApps.js +100 -109
  147. package/dist/esm/operations/containerApps.js.map +1 -1
  148. package/dist/esm/operations/containerAppsAuthConfigs.js +23 -40
  149. package/dist/esm/operations/containerAppsAuthConfigs.js.map +1 -1
  150. package/dist/esm/operations/containerAppsDiagnostics.js +45 -79
  151. package/dist/esm/operations/containerAppsDiagnostics.js.map +1 -1
  152. package/dist/esm/operations/containerAppsRevisionReplicas.js +1 -0
  153. package/dist/esm/operations/containerAppsRevisionReplicas.js.map +1 -1
  154. package/dist/esm/operations/containerAppsRevisions.js +23 -40
  155. package/dist/esm/operations/containerAppsRevisions.js.map +1 -1
  156. package/dist/esm/operations/containerAppsSessionPools.js +78 -97
  157. package/dist/esm/operations/containerAppsSessionPools.js.map +1 -1
  158. package/dist/esm/operations/containerAppsSourceControls.js +45 -52
  159. package/dist/esm/operations/containerAppsSourceControls.js.map +1 -1
  160. package/dist/esm/operations/daprComponents.js +23 -40
  161. package/dist/esm/operations/daprComponents.js.map +1 -1
  162. package/dist/esm/operations/javaComponents.js +56 -58
  163. package/dist/esm/operations/javaComponents.js.map +1 -1
  164. package/dist/esm/operations/jobs.js +136 -157
  165. package/dist/esm/operations/jobs.js.map +1 -1
  166. package/dist/esm/operations/jobsExecutions.js +23 -40
  167. package/dist/esm/operations/jobsExecutions.js.map +1 -1
  168. package/dist/esm/operations/managedCertificates.js +34 -46
  169. package/dist/esm/operations/managedCertificates.js.map +1 -1
  170. package/dist/esm/operations/managedEnvironmentDiagnostics.js +1 -0
  171. package/dist/esm/operations/managedEnvironmentDiagnostics.js.map +1 -1
  172. package/dist/esm/operations/managedEnvironmentUsages.js +23 -40
  173. package/dist/esm/operations/managedEnvironmentUsages.js.map +1 -1
  174. package/dist/esm/operations/managedEnvironments.js +100 -136
  175. package/dist/esm/operations/managedEnvironments.js.map +1 -1
  176. package/dist/esm/operations/managedEnvironmentsDiagnostics.js +1 -0
  177. package/dist/esm/operations/managedEnvironmentsDiagnostics.js.map +1 -1
  178. package/dist/esm/operations/managedEnvironmentsStorages.js +1 -0
  179. package/dist/esm/operations/managedEnvironmentsStorages.js.map +1 -1
  180. package/dist/esm/operations/namespaces.js +1 -0
  181. package/dist/esm/operations/namespaces.js.map +1 -1
  182. package/dist/esm/operations/operations.js +23 -40
  183. package/dist/esm/operations/operations.js.map +1 -1
  184. package/dist/esm/operations/usages.js +23 -40
  185. package/dist/esm/operations/usages.js.map +1 -1
  186. package/dist/esm/pagingHelper.js +2 -4
  187. package/dist/esm/pagingHelper.js.map +1 -1
  188. package/dist/react-native/containerAppsAPIClient.js +40 -5
  189. package/dist/react-native/containerAppsAPIClient.js.map +1 -1
  190. package/dist/react-native/lroImpl.js +7 -3
  191. package/dist/react-native/lroImpl.js.map +1 -1
  192. package/dist/react-native/models/mappers.js +318 -145
  193. package/dist/react-native/models/mappers.js.map +1 -1
  194. package/dist/react-native/operations/availableWorkloadProfiles.js +23 -40
  195. package/dist/react-native/operations/availableWorkloadProfiles.js.map +1 -1
  196. package/dist/react-native/operations/billingMeters.js +1 -0
  197. package/dist/react-native/operations/billingMeters.js.map +1 -1
  198. package/dist/react-native/operations/certificates.js +23 -40
  199. package/dist/react-native/operations/certificates.js.map +1 -1
  200. package/dist/react-native/operations/connectedEnvironments.js +67 -91
  201. package/dist/react-native/operations/connectedEnvironments.js.map +1 -1
  202. package/dist/react-native/operations/connectedEnvironmentsCertificates.js +23 -40
  203. package/dist/react-native/operations/connectedEnvironmentsCertificates.js.map +1 -1
  204. package/dist/react-native/operations/connectedEnvironmentsDaprComponents.js +23 -40
  205. package/dist/react-native/operations/connectedEnvironmentsDaprComponents.js.map +1 -1
  206. package/dist/react-native/operations/connectedEnvironmentsStorages.js +1 -0
  207. package/dist/react-native/operations/connectedEnvironmentsStorages.js.map +1 -1
  208. package/dist/react-native/operations/containerApps.js +100 -109
  209. package/dist/react-native/operations/containerApps.js.map +1 -1
  210. package/dist/react-native/operations/containerAppsAuthConfigs.js +23 -40
  211. package/dist/react-native/operations/containerAppsAuthConfigs.js.map +1 -1
  212. package/dist/react-native/operations/containerAppsDiagnostics.js +45 -79
  213. package/dist/react-native/operations/containerAppsDiagnostics.js.map +1 -1
  214. package/dist/react-native/operations/containerAppsRevisionReplicas.js +1 -0
  215. package/dist/react-native/operations/containerAppsRevisionReplicas.js.map +1 -1
  216. package/dist/react-native/operations/containerAppsRevisions.js +23 -40
  217. package/dist/react-native/operations/containerAppsRevisions.js.map +1 -1
  218. package/dist/react-native/operations/containerAppsSessionPools.js +78 -97
  219. package/dist/react-native/operations/containerAppsSessionPools.js.map +1 -1
  220. package/dist/react-native/operations/containerAppsSourceControls.js +45 -52
  221. package/dist/react-native/operations/containerAppsSourceControls.js.map +1 -1
  222. package/dist/react-native/operations/daprComponents.js +23 -40
  223. package/dist/react-native/operations/daprComponents.js.map +1 -1
  224. package/dist/react-native/operations/javaComponents.js +56 -58
  225. package/dist/react-native/operations/javaComponents.js.map +1 -1
  226. package/dist/react-native/operations/jobs.js +136 -157
  227. package/dist/react-native/operations/jobs.js.map +1 -1
  228. package/dist/react-native/operations/jobsExecutions.js +23 -40
  229. package/dist/react-native/operations/jobsExecutions.js.map +1 -1
  230. package/dist/react-native/operations/managedCertificates.js +34 -46
  231. package/dist/react-native/operations/managedCertificates.js.map +1 -1
  232. package/dist/react-native/operations/managedEnvironmentDiagnostics.js +1 -0
  233. package/dist/react-native/operations/managedEnvironmentDiagnostics.js.map +1 -1
  234. package/dist/react-native/operations/managedEnvironmentUsages.js +23 -40
  235. package/dist/react-native/operations/managedEnvironmentUsages.js.map +1 -1
  236. package/dist/react-native/operations/managedEnvironments.js +100 -136
  237. package/dist/react-native/operations/managedEnvironments.js.map +1 -1
  238. package/dist/react-native/operations/managedEnvironmentsDiagnostics.js +1 -0
  239. package/dist/react-native/operations/managedEnvironmentsDiagnostics.js.map +1 -1
  240. package/dist/react-native/operations/managedEnvironmentsStorages.js +1 -0
  241. package/dist/react-native/operations/managedEnvironmentsStorages.js.map +1 -1
  242. package/dist/react-native/operations/namespaces.js +1 -0
  243. package/dist/react-native/operations/namespaces.js.map +1 -1
  244. package/dist/react-native/operations/operations.js +23 -40
  245. package/dist/react-native/operations/operations.js.map +1 -1
  246. package/dist/react-native/operations/usages.js +23 -40
  247. package/dist/react-native/operations/usages.js.map +1 -1
  248. package/dist/react-native/pagingHelper.js +2 -4
  249. package/dist/react-native/pagingHelper.js.map +1 -1
  250. package/package.json +2 -2
  251. package/review/arm-appcontainers-node.api.md +3476 -3476
@@ -1 +1 @@
1
- {"version":3,"file":"managedCertificates.js","sourceRoot":"","sources":["../../../src/operations/managedCertificates.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AA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AAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,sJAAsJ;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;KAC3B;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,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;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 { ManagedCertificates } 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 { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ManagedCertificate,\n ManagedCertificatesListNextOptionalParams,\n ManagedCertificatesListOptionalParams,\n ManagedCertificatesListResponse,\n ManagedCertificatesGetOptionalParams,\n ManagedCertificatesGetResponse,\n ManagedCertificatesCreateOrUpdateOptionalParams,\n ManagedCertificatesCreateOrUpdateResponse,\n ManagedCertificatesDeleteOptionalParams,\n ManagedCertificatePatch,\n ManagedCertificatesUpdateOptionalParams,\n ManagedCertificatesUpdateResponse,\n ManagedCertificatesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedCertificates operations. */\nexport class ManagedCertificatesImpl implements ManagedCertificates {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class ManagedCertificates class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the Managed Certificates in a given managed environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedCertificatesListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedCertificate> {\n const iter = this.listPagingAll(\n resourceGroupName,\n environmentName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedCertificatesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ManagedCertificate[]> {\n let result: ManagedCertificatesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, environmentName, 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 environmentName,\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 environmentName: string,\n options?: ManagedCertificatesListOptionalParams,\n ): AsyncIterableIterator<ManagedCertificate> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the specified Managed Certificate.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n options?: ManagedCertificatesGetOptionalParams,\n ): Promise<ManagedCertificatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, managedCertificateName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update a Managed Certificate.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n options?: ManagedCertificatesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ManagedCertificatesCreateOrUpdateResponse>,\n ManagedCertificatesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ManagedCertificatesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n environmentName,\n managedCertificateName,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ManagedCertificatesCreateOrUpdateResponse,\n OperationState<ManagedCertificatesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or Update a Managed Certificate.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n options?: ManagedCertificatesCreateOrUpdateOptionalParams,\n ): Promise<ManagedCertificatesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n environmentName,\n managedCertificateName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified Managed Certificate.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n options?: ManagedCertificatesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, managedCertificateName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Patches a managed certificate. Oly patching of tags is supported\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n managedCertificateEnvelope: ManagedCertificatePatch,\n options?: ManagedCertificatesUpdateOptionalParams,\n ): Promise<ManagedCertificatesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n managedCertificateName,\n managedCertificateEnvelope,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Get the Managed Certificates in a given managed environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedCertificatesListOptionalParams,\n ): Promise<ManagedCertificatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\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 environmentName: string,\n nextLink: string,\n options?: ManagedCertificatesListNextOptionalParams,\n ): Promise<ManagedCertificatesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n Parameters.managedCertificateName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n 201: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n 202: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n 204: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n 400: {\n isError: true,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.managedCertificateEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n Parameters.managedCertificateName,\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.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n Parameters.managedCertificateName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.managedCertificateEnvelope1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n Parameters.managedCertificateName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedCertificateCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\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.ManagedCertificateCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"managedCertificates.js","sourceRoot":"","sources":["../../../src/operations/managedCertificates.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IACjB,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,eAAuB,EACvB,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,CAAC;QACF,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,eAAe,EACf,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,eAAuB,EACvB,OAA+C,EAC/C,QAAuB;QAEvB,IAAI,MAAuC,CAAC;QAC5C,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;YACvE,IAAI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AC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,sJAAsJ;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;KAC3B;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,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;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 { ManagedCertificates } 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 { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ManagedCertificate,\n ManagedCertificatesListNextOptionalParams,\n ManagedCertificatesListOptionalParams,\n ManagedCertificatesListResponse,\n ManagedCertificatesGetOptionalParams,\n ManagedCertificatesGetResponse,\n ManagedCertificatesCreateOrUpdateOptionalParams,\n ManagedCertificatesCreateOrUpdateResponse,\n ManagedCertificatesDeleteOptionalParams,\n ManagedCertificatePatch,\n ManagedCertificatesUpdateOptionalParams,\n ManagedCertificatesUpdateResponse,\n ManagedCertificatesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedCertificates operations. */\nexport class ManagedCertificatesImpl implements ManagedCertificates {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class ManagedCertificates class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the Managed Certificates in a given managed environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedCertificatesListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedCertificate> {\n const iter = this.listPagingAll(\n resourceGroupName,\n environmentName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedCertificatesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ManagedCertificate[]> {\n let result: ManagedCertificatesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, environmentName, 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 environmentName,\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 environmentName: string,\n options?: ManagedCertificatesListOptionalParams,\n ): AsyncIterableIterator<ManagedCertificate> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get the specified Managed Certificate.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n options?: ManagedCertificatesGetOptionalParams,\n ): Promise<ManagedCertificatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, managedCertificateName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update a Managed Certificate.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n options?: ManagedCertificatesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ManagedCertificatesCreateOrUpdateResponse>,\n ManagedCertificatesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ManagedCertificatesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n environmentName,\n managedCertificateName,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ManagedCertificatesCreateOrUpdateResponse,\n OperationState<ManagedCertificatesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or Update a Managed Certificate.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n options?: ManagedCertificatesCreateOrUpdateOptionalParams,\n ): Promise<ManagedCertificatesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n environmentName,\n managedCertificateName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified Managed Certificate.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n options?: ManagedCertificatesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, managedCertificateName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Patches a managed certificate. Oly patching of tags is supported\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param managedCertificateName Name of the Managed Certificate.\n * @param managedCertificateEnvelope Properties of a managed certificate that need to be updated\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n environmentName: string,\n managedCertificateName: string,\n managedCertificateEnvelope: ManagedCertificatePatch,\n options?: ManagedCertificatesUpdateOptionalParams,\n ): Promise<ManagedCertificatesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n managedCertificateName,\n managedCertificateEnvelope,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Get the Managed Certificates in a given managed environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedCertificatesListOptionalParams,\n ): Promise<ManagedCertificatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\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 environmentName: string,\n nextLink: string,\n options?: ManagedCertificatesListNextOptionalParams,\n ): Promise<ManagedCertificatesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n Parameters.managedCertificateName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n 201: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n 202: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n 204: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n 400: {\n isError: true,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.managedCertificateEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n Parameters.managedCertificateName,\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.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n Parameters.managedCertificateName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedCertificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.managedCertificateEnvelope1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n Parameters.managedCertificateName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedCertificateCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\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.ManagedCertificateCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing ManagedEnvironmentDiagnostics operations. */
16
16
  class ManagedEnvironmentDiagnosticsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ManagedEnvironmentDiagnostics class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"managedEnvironmentDiagnostics.js","sourceRoot":"","sources":["../../../src/operations/managedEnvironmentDiagnostics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,iEAAiE;AACjE,MAAa,iCAAiC;IAK5C;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,eAAuB,EACvB,OAAkE;QAElE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,EAAE,EAC/C,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,WAAW,CACT,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,EAC7D,wBAAwB,CACzB,CAAC;IACJ,CAAC;CACF;AAhDD,8EAgDC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,4IAA4I;IAClJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,2JAA2J;IACjK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,eAAe;KAC3B;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 { ManagedEnvironmentDiagnostics } 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 { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n ManagedEnvironmentDiagnosticsListDetectorsOptionalParams,\n ManagedEnvironmentDiagnosticsListDetectorsResponse,\n ManagedEnvironmentDiagnosticsGetDetectorOptionalParams,\n ManagedEnvironmentDiagnosticsGetDetectorResponse,\n} from \"../models/index.js\";\n\n/** Class containing ManagedEnvironmentDiagnostics operations. */\nexport class ManagedEnvironmentDiagnosticsImpl\n implements ManagedEnvironmentDiagnostics\n{\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class ManagedEnvironmentDiagnostics class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the list of diagnostics for a Managed Environment used to host container apps.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\n * @param options The options parameters.\n */\n listDetectors(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedEnvironmentDiagnosticsListDetectorsOptionalParams,\n ): Promise<ManagedEnvironmentDiagnosticsListDetectorsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listDetectorsOperationSpec,\n );\n }\n\n /**\n * Get the diagnostics data for a Managed Environment used to host container apps.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\n * @param detectorName Name of the Managed Environment detector.\n * @param options The options parameters.\n */\n getDetector(\n resourceGroupName: string,\n environmentName: string,\n detectorName: string,\n options?: ManagedEnvironmentDiagnosticsGetDetectorOptionalParams,\n ): Promise<ManagedEnvironmentDiagnosticsGetDetectorResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, detectorName, options },\n getDetectorOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listDetectorsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticsCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getDetectorOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Diagnostics,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.detectorName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"managedEnvironmentDiagnostics.js","sourceRoot":"","sources":["../../../src/operations/managedEnvironmentDiagnostics.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,iEAAiE;AACjE,MAAa,iCAAiC;IAG3B,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,iBAAyB,EACzB,eAAuB,EACvB,OAAkE;QAElE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,EAAE,EAC/C,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,WAAW,CACT,iBAAyB,EACzB,eAAuB,EACvB,YAAoB,EACpB,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,EAC7D,wBAAwB,CACzB,CAAC;IACJ,CAAC;CACF;AAhDD,8EAgDC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,4IAA4I;IAClJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,2JAA2J;IACjK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,eAAe;KAC3B;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 { ManagedEnvironmentDiagnostics } 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 { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n ManagedEnvironmentDiagnosticsListDetectorsOptionalParams,\n ManagedEnvironmentDiagnosticsListDetectorsResponse,\n ManagedEnvironmentDiagnosticsGetDetectorOptionalParams,\n ManagedEnvironmentDiagnosticsGetDetectorResponse,\n} from \"../models/index.js\";\n\n/** Class containing ManagedEnvironmentDiagnostics operations. */\nexport class ManagedEnvironmentDiagnosticsImpl\n implements ManagedEnvironmentDiagnostics\n{\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class ManagedEnvironmentDiagnostics class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the list of diagnostics for a Managed Environment used to host container apps.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\n * @param options The options parameters.\n */\n listDetectors(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedEnvironmentDiagnosticsListDetectorsOptionalParams,\n ): Promise<ManagedEnvironmentDiagnosticsListDetectorsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listDetectorsOperationSpec,\n );\n }\n\n /**\n * Get the diagnostics data for a Managed Environment used to host container apps.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\n * @param detectorName Name of the Managed Environment detector.\n * @param options The options parameters.\n */\n getDetector(\n resourceGroupName: string,\n environmentName: string,\n detectorName: string,\n options?: ManagedEnvironmentDiagnosticsGetDetectorOptionalParams,\n ): Promise<ManagedEnvironmentDiagnosticsGetDetectorResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, detectorName, options },\n getDetectorOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listDetectorsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DiagnosticsCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getDetectorOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/detectors/{detectorName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Diagnostics,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.detectorName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing ManagedEnvironmentUsages operations. */
18
18
  class ManagedEnvironmentUsagesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class ManagedEnvironmentUsages class.
21
22
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class ManagedEnvironmentUsagesImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listPagingPage(resourceGroupName, environmentName, options, settings);
46
47
  },
47
48
  };
48
49
  }
49
- listPagingPage(resourceGroupName, environmentName, options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._list(resourceGroupName, environmentName, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listNext(resourceGroupName, environmentName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listPagingPage(resourceGroupName, environmentName, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._list(resourceGroupName, environmentName, options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listNext(resourceGroupName, environmentName, continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listPagingAll(resourceGroupName, environmentName, options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, environmentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listPagingAll(resourceGroupName, environmentName, options) {
69
+ for await (const page of this.listPagingPage(resourceGroupName, environmentName, options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * Gets the current usage information as well as the limits for environment.
@@ -1 +1 @@
1
- {"version":3,"file":"managedEnvironmentUsages.js","sourceRoot":"","sources":["../../../src/operations/managedEnvironmentUsages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,4DAA4D;AAC5D,MAAa,4BAA4B;IAGvC;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,eAAuB,EACvB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,eAAe,EACf,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,eAAuB,EACvB,OAAoD,EACpD,QAAuB;;YAEvB,IAAI,MAA4C,CAAC;YACjD,I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cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ManagedEnvironmentUsages } 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 { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n Usage,\n ManagedEnvironmentUsagesListNextOptionalParams,\n ManagedEnvironmentUsagesListOptionalParams,\n ManagedEnvironmentUsagesListResponse,\n ManagedEnvironmentUsagesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedEnvironmentUsages operations. */\nexport class ManagedEnvironmentUsagesImpl implements ManagedEnvironmentUsages {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class ManagedEnvironmentUsages class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Gets the current usage information as well as the limits for environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedEnvironmentUsagesListOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listPagingAll(\n resourceGroupName,\n environmentName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedEnvironmentUsagesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: ManagedEnvironmentUsagesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, environmentName, 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 environmentName,\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 environmentName: string,\n options?: ManagedEnvironmentUsagesListOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the current usage information as well as the limits for environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedEnvironmentUsagesListOptionalParams,\n ): Promise<ManagedEnvironmentUsagesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\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 environmentName: string,\n nextLink: string,\n options?: ManagedEnvironmentUsagesListNextOptionalParams,\n ): Promise<ManagedEnvironmentUsagesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUsagesResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName2,\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.ListUsagesResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.environmentName2,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"managedEnvironmentUsages.js","sourceRoot":"","sources":["../../../src/operations/managedEnvironmentUsages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,4DAA4D;AAC5D,MAAa,4BAA4B;IACtB,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,eAAuB,EACvB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,eAAe,EACf,OAAO,CACR,CAAC;QACF,OAA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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,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ManagedEnvironmentUsages } 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 { ContainerAppsAPIClient } from \"../containerAppsAPIClient.js\";\nimport {\n Usage,\n ManagedEnvironmentUsagesListNextOptionalParams,\n ManagedEnvironmentUsagesListOptionalParams,\n ManagedEnvironmentUsagesListResponse,\n ManagedEnvironmentUsagesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedEnvironmentUsages operations. */\nexport class ManagedEnvironmentUsagesImpl implements ManagedEnvironmentUsages {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class ManagedEnvironmentUsages class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Gets the current usage information as well as the limits for environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedEnvironmentUsagesListOptionalParams,\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listPagingAll(\n resourceGroupName,\n environmentName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedEnvironmentUsagesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Usage[]> {\n let result: ManagedEnvironmentUsagesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, environmentName, 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 environmentName,\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 environmentName: string,\n options?: ManagedEnvironmentUsagesListOptionalParams,\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n environmentName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the current usage information as well as the limits for environment.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n environmentName: string,\n options?: ManagedEnvironmentUsagesListOptionalParams,\n ): Promise<ManagedEnvironmentUsagesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Environment.\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 environmentName: string,\n nextLink: string,\n options?: ManagedEnvironmentUsagesListNextOptionalParams,\n ): Promise<ManagedEnvironmentUsagesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUsagesResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName2,\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.ListUsagesResult,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.environmentName2,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing ManagedEnvironments operations. */
20
20
  class ManagedEnvironmentsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class ManagedEnvironments class.
23
24
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class ManagedEnvironmentsImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listBySubscriptionPagingPage(options, settings);
46
47
  },
47
48
  };
48
49
  }
49
- listBySubscriptionPagingPage(options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._listBySubscription(options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listBySubscriptionNext(continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listBySubscriptionPagingPage(options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listBySubscription(options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listBySubscriptionNext(continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listBySubscriptionPagingAll(options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listBySubscriptionPagingAll(options) {
69
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * Get all the Managed Environments in a resource group.
@@ -101,52 +85,35 @@ class ManagedEnvironmentsImpl {
101
85
  return this;
102
86
  },
103
87
  byPage: (settings) => {
104
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
88
+ if (settings?.maxPageSize) {
105
89
  throw new Error("maxPageSize is not supported by this operation.");
106
90
  }
107
91
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
108
92
  },
109
93
  };
110
94
  }
111
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
112
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
113
- let result;
114
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
115
- if (!continuationToken) {
116
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
117
- let page = result.value || [];
118
- continuationToken = result.nextLink;
119
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
120
- yield yield tslib_1.__await(page);
121
- }
122
- while (continuationToken) {
123
- result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
124
- continuationToken = result.nextLink;
125
- let page = result.value || [];
126
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
127
- yield yield tslib_1.__await(page);
128
- }
129
- });
95
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
96
+ let result;
97
+ let continuationToken = settings?.continuationToken;
98
+ if (!continuationToken) {
99
+ result = await this._listByResourceGroup(resourceGroupName, options);
100
+ let page = result.value || [];
101
+ continuationToken = result.nextLink;
102
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
103
+ yield page;
104
+ }
105
+ while (continuationToken) {
106
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
107
+ continuationToken = result.nextLink;
108
+ let page = result.value || [];
109
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
110
+ yield page;
111
+ }
130
112
  }
131
- listByResourceGroupPagingAll(resourceGroupName, options) {
132
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
133
- var _a, e_2, _b, _c;
134
- try {
135
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
136
- _c = _f.value;
137
- _d = false;
138
- const page = _c;
139
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
140
- }
141
- }
142
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
143
- finally {
144
- try {
145
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
146
- }
147
- finally { if (e_2) throw e_2.error; }
148
- }
149
- });
113
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
114
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
115
+ yield* page;
116
+ }
150
117
  }
151
118
  /**
152
119
  * Get all workload Profile States for a Managed Environment.
@@ -164,52 +131,35 @@ class ManagedEnvironmentsImpl {
164
131
  return this;
165
132
  },
166
133
  byPage: (settings) => {
167
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
134
+ if (settings?.maxPageSize) {
168
135
  throw new Error("maxPageSize is not supported by this operation.");
169
136
  }
170
137
  return this.listWorkloadProfileStatesPagingPage(resourceGroupName, environmentName, options, settings);
171
138
  },
172
139
  };
173
140
  }
174
- listWorkloadProfileStatesPagingPage(resourceGroupName, environmentName, options, settings) {
175
- return tslib_1.__asyncGenerator(this, arguments, function* listWorkloadProfileStatesPagingPage_1() {
176
- let result;
177
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
178
- if (!continuationToken) {
179
- result = yield tslib_1.__await(this._listWorkloadProfileStates(resourceGroupName, environmentName, options));
180
- let page = result.value || [];
181
- continuationToken = result.nextLink;
182
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
183
- yield yield tslib_1.__await(page);
184
- }
185
- while (continuationToken) {
186
- result = yield tslib_1.__await(this._listWorkloadProfileStatesNext(resourceGroupName, environmentName, continuationToken, options));
187
- continuationToken = result.nextLink;
188
- let page = result.value || [];
189
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
190
- yield yield tslib_1.__await(page);
191
- }
192
- });
141
+ async *listWorkloadProfileStatesPagingPage(resourceGroupName, environmentName, options, settings) {
142
+ let result;
143
+ let continuationToken = settings?.continuationToken;
144
+ if (!continuationToken) {
145
+ result = await this._listWorkloadProfileStates(resourceGroupName, environmentName, options);
146
+ let page = result.value || [];
147
+ continuationToken = result.nextLink;
148
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
149
+ yield page;
150
+ }
151
+ while (continuationToken) {
152
+ result = await this._listWorkloadProfileStatesNext(resourceGroupName, environmentName, continuationToken, options);
153
+ continuationToken = result.nextLink;
154
+ let page = result.value || [];
155
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
156
+ yield page;
157
+ }
193
158
  }
194
- listWorkloadProfileStatesPagingAll(resourceGroupName, environmentName, options) {
195
- return tslib_1.__asyncGenerator(this, arguments, function* listWorkloadProfileStatesPagingAll_1() {
196
- var _a, e_3, _b, _c;
197
- try {
198
- for (var _d = true, _e = tslib_1.__asyncValues(this.listWorkloadProfileStatesPagingPage(resourceGroupName, environmentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
199
- _c = _f.value;
200
- _d = false;
201
- const page = _c;
202
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
203
- }
204
- }
205
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
206
- finally {
207
- try {
208
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
209
- }
210
- finally { if (e_3) throw e_3.error; }
211
- }
212
- });
159
+ async *listWorkloadProfileStatesPagingAll(resourceGroupName, environmentName, options) {
160
+ for await (const page of this.listWorkloadProfileStatesPagingPage(resourceGroupName, environmentName, options)) {
161
+ yield* page;
162
+ }
213
163
  }
214
164
  /**
215
165
  * Get all Managed Environments for a subscription.
@@ -247,14 +197,19 @@ class ManagedEnvironmentsImpl {
247
197
  return this.client.sendOperationRequest(args, spec);
248
198
  };
249
199
  const sendOperationFn = async (args, spec) => {
250
- var _a;
251
200
  let currentRawResponse = undefined;
252
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
201
+ const providedCallback = args.options?.onResponse;
253
202
  const callback = (rawResponse, flatResponse) => {
254
203
  currentRawResponse = rawResponse;
255
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
204
+ providedCallback?.(rawResponse, flatResponse);
205
+ };
206
+ const updatedArgs = {
207
+ ...args,
208
+ options: {
209
+ ...args.options,
210
+ onResponse: callback,
211
+ },
256
212
  };
257
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
258
213
  const flatResponse = await directSendOperation(updatedArgs, spec);
259
214
  return {
260
215
  flatResponse,
@@ -276,8 +231,8 @@ class ManagedEnvironmentsImpl {
276
231
  spec: createOrUpdateOperationSpec,
277
232
  });
278
233
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
279
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
280
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
234
+ restoreFrom: options?.resumeFrom,
235
+ intervalInMs: options?.updateIntervalInMs,
281
236
  });
282
237
  await poller.poll();
283
238
  return poller;
@@ -304,14 +259,19 @@ class ManagedEnvironmentsImpl {
304
259
  return this.client.sendOperationRequest(args, spec);
305
260
  };
306
261
  const sendOperationFn = async (args, spec) => {
307
- var _a;
308
262
  let currentRawResponse = undefined;
309
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
263
+ const providedCallback = args.options?.onResponse;
310
264
  const callback = (rawResponse, flatResponse) => {
311
265
  currentRawResponse = rawResponse;
312
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
266
+ providedCallback?.(rawResponse, flatResponse);
267
+ };
268
+ const updatedArgs = {
269
+ ...args,
270
+ options: {
271
+ ...args.options,
272
+ onResponse: callback,
273
+ },
313
274
  };
314
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
315
275
  const flatResponse = await directSendOperation(updatedArgs, spec);
316
276
  return {
317
277
  flatResponse,
@@ -328,8 +288,8 @@ class ManagedEnvironmentsImpl {
328
288
  spec: deleteOperationSpec,
329
289
  });
330
290
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
331
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
332
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
291
+ restoreFrom: options?.resumeFrom,
292
+ intervalInMs: options?.updateIntervalInMs,
333
293
  });
334
294
  await poller.poll();
335
295
  return poller;
@@ -356,14 +316,19 @@ class ManagedEnvironmentsImpl {
356
316
  return this.client.sendOperationRequest(args, spec);
357
317
  };
358
318
  const sendOperationFn = async (args, spec) => {
359
- var _a;
360
319
  let currentRawResponse = undefined;
361
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
320
+ const providedCallback = args.options?.onResponse;
362
321
  const callback = (rawResponse, flatResponse) => {
363
322
  currentRawResponse = rawResponse;
364
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
323
+ providedCallback?.(rawResponse, flatResponse);
324
+ };
325
+ const updatedArgs = {
326
+ ...args,
327
+ options: {
328
+ ...args.options,
329
+ onResponse: callback,
330
+ },
365
331
  };
366
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
367
332
  const flatResponse = await directSendOperation(updatedArgs, spec);
368
333
  return {
369
334
  flatResponse,
@@ -385,8 +350,8 @@ class ManagedEnvironmentsImpl {
385
350
  spec: updateOperationSpec,
386
351
  });
387
352
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
388
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
389
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
353
+ restoreFrom: options?.resumeFrom,
354
+ intervalInMs: options?.updateIntervalInMs,
390
355
  });
391
356
  await poller.poll();
392
357
  return poller;