@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
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing AvailableWorkloadProfiles operations. */
15
14
  export class AvailableWorkloadProfilesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class AvailableWorkloadProfiles class.
18
18
  * @param client Reference to the service client
@@ -35,52 +35,35 @@ export class AvailableWorkloadProfilesImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.getPagingPage(location, options, settings);
42
42
  },
43
43
  };
44
44
  }
45
- getPagingPage(location, options, settings) {
46
- return __asyncGenerator(this, arguments, function* getPagingPage_1() {
47
- let result;
48
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
- if (!continuationToken) {
50
- result = yield __await(this._get(location, options));
51
- let page = result.value || [];
52
- continuationToken = result.nextLink;
53
- setContinuationToken(page, continuationToken);
54
- yield yield __await(page);
55
- }
56
- while (continuationToken) {
57
- result = yield __await(this._getNext(location, continuationToken, options));
58
- continuationToken = result.nextLink;
59
- let page = result.value || [];
60
- setContinuationToken(page, continuationToken);
61
- yield yield __await(page);
62
- }
63
- });
45
+ async *getPagingPage(location, options, settings) {
46
+ let result;
47
+ let continuationToken = settings?.continuationToken;
48
+ if (!continuationToken) {
49
+ result = await this._get(location, options);
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield page;
54
+ }
55
+ while (continuationToken) {
56
+ result = await this._getNext(location, continuationToken, options);
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield page;
61
+ }
64
62
  }
65
- getPagingAll(location, options) {
66
- return __asyncGenerator(this, arguments, function* getPagingAll_1() {
67
- var _a, e_1, _b, _c;
68
- try {
69
- for (var _d = true, _e = __asyncValues(this.getPagingPage(location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
- _c = _f.value;
71
- _d = false;
72
- const page = _c;
73
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
- }
75
- }
76
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
- finally {
78
- try {
79
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
80
- }
81
- finally { if (e_1) throw e_1.error; }
82
- }
83
- });
63
+ async *getPagingAll(location, options) {
64
+ for await (const page of this.getPagingPage(location, options)) {
65
+ yield* page;
66
+ }
84
67
  }
85
68
  /**
86
69
  * Get all available workload profiles for a location.
@@ -1 +1 @@
1
- {"version":3,"file":"availableWorkloadProfiles.js","sourceRoot":"","sources":["../../../src/operations/availableWorkloadProfiles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAKxC;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAClD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,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,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AvailableWorkloadProfiles } 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 AvailableWorkloadProfile,\n AvailableWorkloadProfilesGetNextOptionalParams,\n AvailableWorkloadProfilesGetOptionalParams,\n AvailableWorkloadProfilesGetResponse,\n AvailableWorkloadProfilesGetNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvailableWorkloadProfiles operations. */\nexport class AvailableWorkloadProfilesImpl\n implements AvailableWorkloadProfiles\n{\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class AvailableWorkloadProfiles class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get all available workload profiles for a location.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: AvailableWorkloadProfilesGetOptionalParams,\n ): PagedAsyncIterableIterator<AvailableWorkloadProfile> {\n const iter = this.getPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getPagingPage(location, options, settings);\n },\n };\n }\n\n private async *getPagingPage(\n location: string,\n options?: AvailableWorkloadProfilesGetOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AvailableWorkloadProfile[]> {\n let result: AvailableWorkloadProfilesGetResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._get(location, 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._getNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getPagingAll(\n location: string,\n options?: AvailableWorkloadProfilesGetOptionalParams,\n ): AsyncIterableIterator<AvailableWorkloadProfile> {\n for await (const page of this.getPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Get all available workload profiles for a location.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n private _get(\n location: string,\n options?: AvailableWorkloadProfilesGetOptionalParams,\n ): Promise<AvailableWorkloadProfilesGetResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n getOperationSpec,\n );\n }\n\n /**\n * GetNext\n * @param location The name of Azure region.\n * @param nextLink The nextLink from the previous successful call to the Get method.\n * @param options The options parameters.\n */\n private _getNext(\n location: string,\n nextLink: string,\n options?: AvailableWorkloadProfilesGetNextOptionalParams,\n ): Promise<AvailableWorkloadProfilesGetNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n getNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableWorkloadProfilesCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableWorkloadProfilesCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"availableWorkloadProfiles.js","sourceRoot":"","sources":["../../../src/operations/availableWorkloadProfiles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAGvB,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAClD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,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AO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AvailableWorkloadProfiles } 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 AvailableWorkloadProfile,\n AvailableWorkloadProfilesGetNextOptionalParams,\n AvailableWorkloadProfilesGetOptionalParams,\n AvailableWorkloadProfilesGetResponse,\n AvailableWorkloadProfilesGetNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AvailableWorkloadProfiles operations. */\nexport class AvailableWorkloadProfilesImpl\n implements AvailableWorkloadProfiles\n{\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class AvailableWorkloadProfiles class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get all available workload profiles for a location.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: AvailableWorkloadProfilesGetOptionalParams,\n ): PagedAsyncIterableIterator<AvailableWorkloadProfile> {\n const iter = this.getPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getPagingPage(location, options, settings);\n },\n };\n }\n\n private async *getPagingPage(\n location: string,\n options?: AvailableWorkloadProfilesGetOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<AvailableWorkloadProfile[]> {\n let result: AvailableWorkloadProfilesGetResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._get(location, 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._getNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getPagingAll(\n location: string,\n options?: AvailableWorkloadProfilesGetOptionalParams,\n ): AsyncIterableIterator<AvailableWorkloadProfile> {\n for await (const page of this.getPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Get all available workload profiles for a location.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n private _get(\n location: string,\n options?: AvailableWorkloadProfilesGetOptionalParams,\n ): Promise<AvailableWorkloadProfilesGetResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n getOperationSpec,\n );\n }\n\n /**\n * GetNext\n * @param location The name of Azure region.\n * @param nextLink The nextLink from the previous successful call to the Get method.\n * @param options The options parameters.\n */\n private _getNext(\n location: string,\n nextLink: string,\n options?: AvailableWorkloadProfilesGetNextOptionalParams,\n ): Promise<AvailableWorkloadProfilesGetNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n getNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/availableManagedEnvironmentsWorkloadProfileTypes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableWorkloadProfilesCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AvailableWorkloadProfilesCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing BillingMeters operations. */
12
12
  export class BillingMetersImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class BillingMeters class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"billingMeters.js","sourceRoot":"","sources":["../../../src/operations/billingMeters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,GAAG,CACD,QAAgB,EAChB,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,4FAA4F;IAClG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;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,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { BillingMeters } 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 BillingMetersGetOptionalParams,\n BillingMetersGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing BillingMeters operations. */\nexport class BillingMetersImpl implements BillingMeters {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class BillingMeters class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get all billingMeters for a location.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n get(\n location: string,\n options?: BillingMetersGetOptionalParams,\n ): Promise<BillingMetersGetResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingMeterCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"billingMeters.js","sourceRoot":"","sources":["../../../src/operations/billingMeters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IACX,MAAM,CAAyB;IAEhD;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,GAAG,CACD,QAAgB,EAChB,OAAwC;QAExC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,4FAA4F;IAClG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;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,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { BillingMeters } 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 BillingMetersGetOptionalParams,\n BillingMetersGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing BillingMeters operations. */\nexport class BillingMetersImpl implements BillingMeters {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class BillingMeters class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get all billingMeters for a location.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n get(\n location: string,\n options?: BillingMetersGetOptionalParams,\n ): Promise<BillingMetersGetResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.App/locations/{location}/billingMeters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingMeterCollection,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Certificates operations. */
15
14
  export class CertificatesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Certificates class.
18
18
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class CertificatesImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listPagingPage(resourceGroupName, environmentName, options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listPagingPage(resourceGroupName, environmentName, options, settings) {
47
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._list(resourceGroupName, environmentName, options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listNext(resourceGroupName, environmentName, continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listPagingPage(resourceGroupName, environmentName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._list(resourceGroupName, environmentName, options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listNext(resourceGroupName, environmentName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listPagingAll(resourceGroupName, environmentName, options) {
67
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, environmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listPagingAll(resourceGroupName, environmentName, options) {
65
+ for await (const page of this.listPagingPage(resourceGroupName, environmentName, options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Get the Certificates in a given managed environment.
@@ -1 +1 @@
1
- {"version":3,"file":"certificates.js","sourceRoot":"","sources":["../../../src/operations/certificates.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkBtD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAA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;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 { Certificates } 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 Certificate,\n CertificatesListNextOptionalParams,\n CertificatesListOptionalParams,\n CertificatesListResponse,\n CertificatesGetOptionalParams,\n CertificatesGetResponse,\n CertificatesCreateOrUpdateOptionalParams,\n CertificatesCreateOrUpdateResponse,\n CertificatesDeleteOptionalParams,\n CertificatePatch,\n CertificatesUpdateOptionalParams,\n CertificatesUpdateResponse,\n CertificatesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Certificates operations. */\nexport class CertificatesImpl implements Certificates {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class Certificates class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the 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?: CertificatesListOptionalParams,\n ): PagedAsyncIterableIterator<Certificate> {\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?: CertificatesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Certificate[]> {\n let result: CertificatesListResponse;\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?: CertificatesListOptionalParams,\n ): AsyncIterableIterator<Certificate> {\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 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?: CertificatesListOptionalParams,\n ): Promise<CertificatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get the specified 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 certificateName Name of the Certificate.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n certificateName: string,\n options?: CertificatesGetOptionalParams,\n ): Promise<CertificatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, certificateName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update a 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 certificateName Name of the Certificate.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n certificateName: string,\n options?: CertificatesCreateOrUpdateOptionalParams,\n ): Promise<CertificatesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, certificateName, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified 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 certificateName Name of the Certificate.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n certificateName: string,\n options?: CertificatesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, certificateName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Patches a certificate. Currently only 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 certificateName Name of the Certificate.\n * @param certificateEnvelope Properties of a certificate that need to be updated\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n environmentName: string,\n certificateName: string,\n certificateEnvelope: CertificatePatch,\n options?: CertificatesUpdateOptionalParams,\n ): Promise<CertificatesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n certificateName,\n certificateEnvelope,\n options,\n },\n updateOperationSpec,\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?: CertificatesListNextOptionalParams,\n ): Promise<CertificatesListNextResponse> {\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}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateCollection,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\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.certificateName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.certificateEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.certificateName,\n Parameters.environmentName,\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}/certificates/{certificateName}\",\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.certificateName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.certificateEnvelope1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.certificateName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateCollection,\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":"certificates.js","sourceRoot":"","sources":["../../../src/operations/certificates.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EA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AG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;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 { Certificates } 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 Certificate,\n CertificatesListNextOptionalParams,\n CertificatesListOptionalParams,\n CertificatesListResponse,\n CertificatesGetOptionalParams,\n CertificatesGetResponse,\n CertificatesCreateOrUpdateOptionalParams,\n CertificatesCreateOrUpdateResponse,\n CertificatesDeleteOptionalParams,\n CertificatePatch,\n CertificatesUpdateOptionalParams,\n CertificatesUpdateResponse,\n CertificatesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Certificates operations. */\nexport class CertificatesImpl implements Certificates {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class Certificates class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the 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?: CertificatesListOptionalParams,\n ): PagedAsyncIterableIterator<Certificate> {\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?: CertificatesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Certificate[]> {\n let result: CertificatesListResponse;\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?: CertificatesListOptionalParams,\n ): AsyncIterableIterator<Certificate> {\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 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?: CertificatesListOptionalParams,\n ): Promise<CertificatesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get the specified 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 certificateName Name of the Certificate.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n certificateName: string,\n options?: CertificatesGetOptionalParams,\n ): Promise<CertificatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, certificateName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update a 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 certificateName Name of the Certificate.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n certificateName: string,\n options?: CertificatesCreateOrUpdateOptionalParams,\n ): Promise<CertificatesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, certificateName, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified 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 certificateName Name of the Certificate.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n certificateName: string,\n options?: CertificatesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, certificateName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Patches a certificate. Currently only 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 certificateName Name of the Certificate.\n * @param certificateEnvelope Properties of a certificate that need to be updated\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n environmentName: string,\n certificateName: string,\n certificateEnvelope: CertificatePatch,\n options?: CertificatesUpdateOptionalParams,\n ): Promise<CertificatesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n certificateName,\n certificateEnvelope,\n options,\n },\n updateOperationSpec,\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?: CertificatesListNextOptionalParams,\n ): Promise<CertificatesListNextResponse> {\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}/certificates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateCollection,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\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.certificateName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.certificateEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.certificateName,\n Parameters.environmentName,\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}/certificates/{certificateName}\",\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.certificateName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Certificate,\n },\n default: {\n bodyMapper: Mappers.DefaultErrorResponse,\n },\n },\n requestBody: Parameters.certificateEnvelope1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.certificateName,\n Parameters.environmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CertificateCollection,\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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing ConnectedEnvironments operations. */
17
16
  export class ConnectedEnvironmentsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class ConnectedEnvironments class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class ConnectedEnvironmentsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listBySubscriptionPagingPage(options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listBySubscriptionPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listBySubscription(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listBySubscriptionNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listBySubscriptionPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listBySubscription(options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listBySubscriptionNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listBySubscriptionPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listBySubscriptionPagingAll(options) {
65
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Get all connectedEnvironments in a resource group.
@@ -98,52 +81,35 @@ export class ConnectedEnvironmentsImpl {
98
81
  return this;
99
82
  },
100
83
  byPage: (settings) => {
101
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
84
+ if (settings?.maxPageSize) {
102
85
  throw new Error("maxPageSize is not supported by this operation.");
103
86
  }
104
87
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
88
  },
106
89
  };
107
90
  }
108
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByResourceGroup(resourceGroupName, options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listByResourceGroupPagingAll(resourceGroupName, options) {
129
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
- _c = _f.value;
134
- _d = false;
135
- const page = _c;
136
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
- }
138
- }
139
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
- finally {
141
- try {
142
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
- }
144
- finally { if (e_2) throw e_2.error; }
145
- }
146
- });
109
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
110
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * Get all connectedEnvironments for a subscription.
@@ -181,14 +147,19 @@ export class ConnectedEnvironmentsImpl {
181
147
  return this.client.sendOperationRequest(args, spec);
182
148
  };
183
149
  const sendOperationFn = async (args, spec) => {
184
- var _a;
185
150
  let currentRawResponse = undefined;
186
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
151
+ const providedCallback = args.options?.onResponse;
187
152
  const callback = (rawResponse, flatResponse) => {
188
153
  currentRawResponse = rawResponse;
189
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
154
+ providedCallback?.(rawResponse, flatResponse);
155
+ };
156
+ const updatedArgs = {
157
+ ...args,
158
+ options: {
159
+ ...args.options,
160
+ onResponse: callback,
161
+ },
190
162
  };
191
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
192
163
  const flatResponse = await directSendOperation(updatedArgs, spec);
193
164
  return {
194
165
  flatResponse,
@@ -210,8 +181,8 @@ export class ConnectedEnvironmentsImpl {
210
181
  spec: createOrUpdateOperationSpec,
211
182
  });
212
183
  const poller = await createHttpPoller(lro, {
213
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
214
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
184
+ restoreFrom: options?.resumeFrom,
185
+ intervalInMs: options?.updateIntervalInMs,
215
186
  resourceLocationConfig: "azure-async-operation",
216
187
  });
217
188
  await poller.poll();
@@ -239,14 +210,19 @@ export class ConnectedEnvironmentsImpl {
239
210
  return this.client.sendOperationRequest(args, spec);
240
211
  };
241
212
  const sendOperationFn = async (args, spec) => {
242
- var _a;
243
213
  let currentRawResponse = undefined;
244
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
214
+ const providedCallback = args.options?.onResponse;
245
215
  const callback = (rawResponse, flatResponse) => {
246
216
  currentRawResponse = rawResponse;
247
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
217
+ providedCallback?.(rawResponse, flatResponse);
218
+ };
219
+ const updatedArgs = {
220
+ ...args,
221
+ options: {
222
+ ...args.options,
223
+ onResponse: callback,
224
+ },
248
225
  };
249
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
250
226
  const flatResponse = await directSendOperation(updatedArgs, spec);
251
227
  return {
252
228
  flatResponse,
@@ -263,8 +239,8 @@ export class ConnectedEnvironmentsImpl {
263
239
  spec: deleteOperationSpec,
264
240
  });
265
241
  const poller = await createHttpPoller(lro, {
266
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
267
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
242
+ restoreFrom: options?.resumeFrom,
243
+ intervalInMs: options?.updateIntervalInMs,
268
244
  resourceLocationConfig: "location",
269
245
  });
270
246
  await poller.poll();