@azure/arm-appcontainers 2.2.0-alpha.20250704.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.api.md → arm-appcontainers-node.api.md} +0 -0
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing JavaComponents operations. */
20
20
  class JavaComponentsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class JavaComponents class.
23
24
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class JavaComponentsImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listPagingPage(resourceGroupName, environmentName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listPagingPage(resourceGroupName, environmentName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._list(resourceGroupName, environmentName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listNext(resourceGroupName, environmentName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listPagingPage(resourceGroupName, environmentName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._list(resourceGroupName, environmentName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listNext(resourceGroupName, environmentName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listPagingAll(resourceGroupName, environmentName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- 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) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listPagingAll(resourceGroupName, environmentName, options) {
71
+ for await (const page of this.listPagingPage(resourceGroupName, environmentName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Get the Java Components for a managed environment.
@@ -120,14 +104,19 @@ class JavaComponentsImpl {
120
104
  return this.client.sendOperationRequest(args, spec);
121
105
  };
122
106
  const sendOperationFn = async (args, spec) => {
123
- var _a;
124
107
  let currentRawResponse = undefined;
125
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
108
+ const providedCallback = args.options?.onResponse;
126
109
  const callback = (rawResponse, flatResponse) => {
127
110
  currentRawResponse = rawResponse;
128
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
111
+ providedCallback?.(rawResponse, flatResponse);
112
+ };
113
+ const updatedArgs = {
114
+ ...args,
115
+ options: {
116
+ ...args.options,
117
+ onResponse: callback,
118
+ },
129
119
  };
130
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
131
120
  const flatResponse = await directSendOperation(updatedArgs, spec);
132
121
  return {
133
122
  flatResponse,
@@ -150,8 +139,8 @@ class JavaComponentsImpl {
150
139
  spec: createOrUpdateOperationSpec,
151
140
  });
152
141
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
153
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
154
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
142
+ restoreFrom: options?.resumeFrom,
143
+ intervalInMs: options?.updateIntervalInMs,
155
144
  resourceLocationConfig: "azure-async-operation",
156
145
  });
157
146
  await poller.poll();
@@ -182,14 +171,19 @@ class JavaComponentsImpl {
182
171
  return this.client.sendOperationRequest(args, spec);
183
172
  };
184
173
  const sendOperationFn = async (args, spec) => {
185
- var _a;
186
174
  let currentRawResponse = undefined;
187
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
175
+ const providedCallback = args.options?.onResponse;
188
176
  const callback = (rawResponse, flatResponse) => {
189
177
  currentRawResponse = rawResponse;
190
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
178
+ providedCallback?.(rawResponse, flatResponse);
179
+ };
180
+ const updatedArgs = {
181
+ ...args,
182
+ options: {
183
+ ...args.options,
184
+ onResponse: callback,
185
+ },
191
186
  };
192
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
193
187
  const flatResponse = await directSendOperation(updatedArgs, spec);
194
188
  return {
195
189
  flatResponse,
@@ -212,8 +206,8 @@ class JavaComponentsImpl {
212
206
  spec: updateOperationSpec,
213
207
  });
214
208
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
215
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
216
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
209
+ restoreFrom: options?.resumeFrom,
210
+ intervalInMs: options?.updateIntervalInMs,
217
211
  });
218
212
  await poller.poll();
219
213
  return poller;
@@ -242,14 +236,19 @@ class JavaComponentsImpl {
242
236
  return this.client.sendOperationRequest(args, spec);
243
237
  };
244
238
  const sendOperationFn = async (args, spec) => {
245
- var _a;
246
239
  let currentRawResponse = undefined;
247
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
240
+ const providedCallback = args.options?.onResponse;
248
241
  const callback = (rawResponse, flatResponse) => {
249
242
  currentRawResponse = rawResponse;
250
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
243
+ providedCallback?.(rawResponse, flatResponse);
244
+ };
245
+ const updatedArgs = {
246
+ ...args,
247
+ options: {
248
+ ...args.options,
249
+ onResponse: callback,
250
+ },
251
251
  };
252
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
253
252
  const flatResponse = await directSendOperation(updatedArgs, spec);
254
253
  return {
255
254
  flatResponse,
@@ -266,8 +265,8 @@ class JavaComponentsImpl {
266
265
  spec: deleteOperationSpec,
267
266
  });
268
267
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
269
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
270
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
268
+ restoreFrom: options?.resumeFrom,
269
+ intervalInMs: options?.updateIntervalInMs,
271
270
  resourceLocationConfig: "location",
272
271
  });
273
272
  await poller.poll();
@@ -1 +1 @@
1
- {"version":3,"file":"javaComponents.js","sourceRoot":"","sources":["../../../src/operations/javaComponents.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,eAAuB,EACvB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,eAAe,EACf,OA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M,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,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 { JavaComponents } 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 JavaComponent,\n JavaComponentsListNextOptionalParams,\n JavaComponentsListOptionalParams,\n JavaComponentsListResponse,\n JavaComponentsGetOptionalParams,\n JavaComponentsGetResponse,\n JavaComponentsCreateOrUpdateOptionalParams,\n JavaComponentsCreateOrUpdateResponse,\n JavaComponentsUpdateOptionalParams,\n JavaComponentsUpdateResponse,\n JavaComponentsDeleteOptionalParams,\n JavaComponentsDeleteResponse,\n JavaComponentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing JavaComponents operations. */\nexport class JavaComponentsImpl implements JavaComponents {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class JavaComponents class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the Java Components for a 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?: JavaComponentsListOptionalParams,\n ): PagedAsyncIterableIterator<JavaComponent> {\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?: JavaComponentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<JavaComponent[]> {\n let result: JavaComponentsListResponse;\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?: JavaComponentsListOptionalParams,\n ): AsyncIterableIterator<JavaComponent> {\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 Java Components for a 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?: JavaComponentsListOptionalParams,\n ): Promise<JavaComponentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a Java Component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n options?: JavaComponentsGetOptionalParams,\n ): Promise<JavaComponentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, name, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a Java Component in a 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 name Name of the Java Component.\n * @param javaComponentEnvelope Configuration details of the Java Component.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n javaComponentEnvelope: JavaComponent,\n options?: JavaComponentsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<JavaComponentsCreateOrUpdateResponse>,\n JavaComponentsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<JavaComponentsCreateOrUpdateResponse> => {\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 name,\n javaComponentEnvelope,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n JavaComponentsCreateOrUpdateResponse,\n OperationState<JavaComponentsCreateOrUpdateResponse>\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 * Creates or updates a Java Component in a 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 name Name of the Java Component.\n * @param javaComponentEnvelope Configuration details of the Java Component.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n javaComponentEnvelope: JavaComponent,\n options?: JavaComponentsCreateOrUpdateOptionalParams,\n ): Promise<JavaComponentsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n environmentName,\n name,\n javaComponentEnvelope,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patches a Java Component using JSON Merge Patch\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param javaComponentEnvelope Configuration details of the Java Component.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n javaComponentEnvelope: JavaComponent,\n options?: JavaComponentsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<JavaComponentsUpdateResponse>,\n JavaComponentsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<JavaComponentsUpdateResponse> => {\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 name,\n javaComponentEnvelope,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n JavaComponentsUpdateResponse,\n OperationState<JavaComponentsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patches a Java Component using JSON Merge Patch\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param javaComponentEnvelope Configuration details of the Java Component.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n javaComponentEnvelope: JavaComponent,\n options?: JavaComponentsUpdateOptionalParams,\n ): Promise<JavaComponentsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n environmentName,\n name,\n javaComponentEnvelope,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a Java Component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n options?: JavaComponentsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<JavaComponentsDeleteResponse>,\n JavaComponentsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<JavaComponentsDeleteResponse> => {\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: { resourceGroupName, environmentName, name, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n JavaComponentsDeleteResponse,\n OperationState<JavaComponentsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Java Component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n options?: JavaComponentsDeleteOptionalParams,\n ): Promise<JavaComponentsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n environmentName,\n name,\n options,\n );\n return poller.pollUntilDone();\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?: JavaComponentsListNextOptionalParams,\n ): Promise<JavaComponentsListNextResponse> {\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}/javaComponents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JavaComponentsCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JavaComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.JavaComponent,\n },\n 201: {\n bodyMapper: Mappers.JavaComponent,\n },\n 202: {\n bodyMapper: Mappers.JavaComponent,\n },\n 204: {\n bodyMapper: Mappers.JavaComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.javaComponentEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.JavaComponent,\n },\n 201: {\n bodyMapper: Mappers.JavaComponent,\n },\n 202: {\n bodyMapper: Mappers.JavaComponent,\n },\n 204: {\n bodyMapper: Mappers.JavaComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.javaComponentEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.name,\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}/javaComponents/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.JavaComponentsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.JavaComponentsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.JavaComponentsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.JavaComponentsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.name,\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.JavaComponentsCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.environmentName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"javaComponents.js","sourceRoot":"","sources":["../../../src/operations/javaComponents.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAiB9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,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,OAA0C;QAE1C,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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wJ;IAC9J,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,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 { JavaComponents } 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 JavaComponent,\n JavaComponentsListNextOptionalParams,\n JavaComponentsListOptionalParams,\n JavaComponentsListResponse,\n JavaComponentsGetOptionalParams,\n JavaComponentsGetResponse,\n JavaComponentsCreateOrUpdateOptionalParams,\n JavaComponentsCreateOrUpdateResponse,\n JavaComponentsUpdateOptionalParams,\n JavaComponentsUpdateResponse,\n JavaComponentsDeleteOptionalParams,\n JavaComponentsDeleteResponse,\n JavaComponentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing JavaComponents operations. */\nexport class JavaComponentsImpl implements JavaComponents {\n private readonly client: ContainerAppsAPIClient;\n\n /**\n * Initialize a new instance of the class JavaComponents class.\n * @param client Reference to the service client\n */\n constructor(client: ContainerAppsAPIClient) {\n this.client = client;\n }\n\n /**\n * Get the Java Components for a 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?: JavaComponentsListOptionalParams,\n ): PagedAsyncIterableIterator<JavaComponent> {\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?: JavaComponentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<JavaComponent[]> {\n let result: JavaComponentsListResponse;\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?: JavaComponentsListOptionalParams,\n ): AsyncIterableIterator<JavaComponent> {\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 Java Components for a 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?: JavaComponentsListOptionalParams,\n ): Promise<JavaComponentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a Java Component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n options?: JavaComponentsGetOptionalParams,\n ): Promise<JavaComponentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, name, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a Java Component in a 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 name Name of the Java Component.\n * @param javaComponentEnvelope Configuration details of the Java Component.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n javaComponentEnvelope: JavaComponent,\n options?: JavaComponentsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<JavaComponentsCreateOrUpdateResponse>,\n JavaComponentsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<JavaComponentsCreateOrUpdateResponse> => {\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 name,\n javaComponentEnvelope,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n JavaComponentsCreateOrUpdateResponse,\n OperationState<JavaComponentsCreateOrUpdateResponse>\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 * Creates or updates a Java Component in a 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 name Name of the Java Component.\n * @param javaComponentEnvelope Configuration details of the Java Component.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n javaComponentEnvelope: JavaComponent,\n options?: JavaComponentsCreateOrUpdateOptionalParams,\n ): Promise<JavaComponentsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n environmentName,\n name,\n javaComponentEnvelope,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Patches a Java Component using JSON Merge Patch\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param javaComponentEnvelope Configuration details of the Java Component.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n javaComponentEnvelope: JavaComponent,\n options?: JavaComponentsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<JavaComponentsUpdateResponse>,\n JavaComponentsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<JavaComponentsUpdateResponse> => {\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 name,\n javaComponentEnvelope,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n JavaComponentsUpdateResponse,\n OperationState<JavaComponentsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Patches a Java Component using JSON Merge Patch\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param javaComponentEnvelope Configuration details of the Java Component.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n javaComponentEnvelope: JavaComponent,\n options?: JavaComponentsUpdateOptionalParams,\n ): Promise<JavaComponentsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n environmentName,\n name,\n javaComponentEnvelope,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a Java Component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n options?: JavaComponentsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<JavaComponentsDeleteResponse>,\n JavaComponentsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<JavaComponentsDeleteResponse> => {\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: { resourceGroupName, environmentName, name, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n JavaComponentsDeleteResponse,\n OperationState<JavaComponentsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a Java Component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param environmentName Name of the Managed Environment.\n * @param name Name of the Java Component.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n environmentName: string,\n name: string,\n options?: JavaComponentsDeleteOptionalParams,\n ): Promise<JavaComponentsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n environmentName,\n name,\n options,\n );\n return poller.pollUntilDone();\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?: JavaComponentsListNextOptionalParams,\n ): Promise<JavaComponentsListNextResponse> {\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}/javaComponents\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JavaComponentsCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JavaComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.JavaComponent,\n },\n 201: {\n bodyMapper: Mappers.JavaComponent,\n },\n 202: {\n bodyMapper: Mappers.JavaComponent,\n },\n 204: {\n bodyMapper: Mappers.JavaComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.javaComponentEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/javaComponents/{name}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.JavaComponent,\n },\n 201: {\n bodyMapper: Mappers.JavaComponent,\n },\n 202: {\n bodyMapper: Mappers.JavaComponent,\n },\n 204: {\n bodyMapper: Mappers.JavaComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.javaComponentEnvelope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.name,\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}/javaComponents/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.JavaComponentsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.JavaComponentsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.JavaComponentsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.JavaComponentsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.name,\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.JavaComponentsCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.environmentName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}