oci-jmsutils 2.118.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/LICENSE.txt +89 -0
  2. package/NOTICE.txt +1 -0
  3. package/README.md +22 -0
  4. package/THIRD_PARTY_LICENSES.txt +576 -0
  5. package/index.d.ts +22 -0
  6. package/index.js +45 -0
  7. package/index.js.map +1 -0
  8. package/lib/client.d.ts +270 -0
  9. package/lib/client.js +1368 -0
  10. package/lib/client.js.map +1 -0
  11. package/lib/jmsutils-waiter.d.ts +27 -0
  12. package/lib/jmsutils-waiter.js +44 -0
  13. package/lib/jmsutils-waiter.js.map +1 -0
  14. package/lib/model/action-type.d.ts +32 -0
  15. package/lib/model/action-type.js +43 -0
  16. package/lib/model/action-type.js.map +1 -0
  17. package/lib/model/analyze-applications-configuration.d.ts +29 -0
  18. package/lib/model/analyze-applications-configuration.js +29 -0
  19. package/lib/model/analyze-applications-configuration.js.map +1 -0
  20. package/lib/model/basic-work-item-details.d.ts +24 -0
  21. package/lib/model/basic-work-item-details.js +52 -0
  22. package/lib/model/basic-work-item-details.js.map +1 -0
  23. package/lib/model/index.d.ts +88 -0
  24. package/lib/model/index.js +111 -0
  25. package/lib/model/index.js.map +1 -0
  26. package/lib/model/java-migration-analysis-collection.d.ts +26 -0
  27. package/lib/model/java-migration-analysis-collection.js +61 -0
  28. package/lib/model/java-migration-analysis-collection.js.map +1 -0
  29. package/lib/model/java-migration-analysis-sort-by.d.ts +24 -0
  30. package/lib/model/java-migration-analysis-sort-by.js +35 -0
  31. package/lib/model/java-migration-analysis-sort-by.js.map +1 -0
  32. package/lib/model/java-migration-analysis-summary.d.ts +88 -0
  33. package/lib/model/java-migration-analysis-summary.js +55 -0
  34. package/lib/model/java-migration-analysis-summary.js.map +1 -0
  35. package/lib/model/java-migration-analysis-target.d.ts +43 -0
  36. package/lib/model/java-migration-analysis-target.js +29 -0
  37. package/lib/model/java-migration-analysis-target.js.map +1 -0
  38. package/lib/model/java-migration-analysis.d.ts +91 -0
  39. package/lib/model/java-migration-analysis.js +55 -0
  40. package/lib/model/java-migration-analysis.js.map +1 -0
  41. package/lib/model/java-migration-work-item-details.d.ts +38 -0
  42. package/lib/model/java-migration-work-item-details.js +54 -0
  43. package/lib/model/java-migration-work-item-details.js.map +1 -0
  44. package/lib/model/operation-status.d.ts +34 -0
  45. package/lib/model/operation-status.js +45 -0
  46. package/lib/model/operation-status.js.map +1 -0
  47. package/lib/model/operation-type.d.ts +28 -0
  48. package/lib/model/operation-type.js +39 -0
  49. package/lib/model/operation-type.js.map +1 -0
  50. package/lib/model/performance-tuning-analysis-collection.d.ts +26 -0
  51. package/lib/model/performance-tuning-analysis-collection.js +61 -0
  52. package/lib/model/performance-tuning-analysis-collection.js.map +1 -0
  53. package/lib/model/performance-tuning-analysis-sort-by.d.ts +24 -0
  54. package/lib/model/performance-tuning-analysis-sort-by.js +35 -0
  55. package/lib/model/performance-tuning-analysis-sort-by.js.map +1 -0
  56. package/lib/model/performance-tuning-analysis-summary.d.ts +76 -0
  57. package/lib/model/performance-tuning-analysis-summary.js +55 -0
  58. package/lib/model/performance-tuning-analysis-summary.js.map +1 -0
  59. package/lib/model/performance-tuning-analysis-target.d.ts +29 -0
  60. package/lib/model/performance-tuning-analysis-target.js +29 -0
  61. package/lib/model/performance-tuning-analysis-target.js.map +1 -0
  62. package/lib/model/performance-tuning-analysis.d.ts +88 -0
  63. package/lib/model/performance-tuning-analysis.js +65 -0
  64. package/lib/model/performance-tuning-analysis.js.map +1 -0
  65. package/lib/model/performance-tuning-work-item-details.d.ts +32 -0
  66. package/lib/model/performance-tuning-work-item-details.js +54 -0
  67. package/lib/model/performance-tuning-work-item-details.js.map +1 -0
  68. package/lib/model/principal.d.ts +29 -0
  69. package/lib/model/principal.js +29 -0
  70. package/lib/model/principal.js.map +1 -0
  71. package/lib/model/request-java-migration-analysis-details.d.ts +52 -0
  72. package/lib/model/request-java-migration-analysis-details.js +61 -0
  73. package/lib/model/request-java-migration-analysis-details.js.map +1 -0
  74. package/lib/model/request-performance-tuning-analysis-details.d.ts +52 -0
  75. package/lib/model/request-performance-tuning-analysis-details.js +61 -0
  76. package/lib/model/request-performance-tuning-analysis-details.js.map +1 -0
  77. package/lib/model/sort-order.d.ts +30 -0
  78. package/lib/model/sort-order.js +41 -0
  79. package/lib/model/sort-order.js.map +1 -0
  80. package/lib/model/subscription-acknowledgment-configuration.d.ts +34 -0
  81. package/lib/model/subscription-acknowledgment-configuration.js +29 -0
  82. package/lib/model/subscription-acknowledgment-configuration.js.map +1 -0
  83. package/lib/model/update-analyze-applications-configuration-details.d.ts +29 -0
  84. package/lib/model/update-analyze-applications-configuration-details.js +29 -0
  85. package/lib/model/update-analyze-applications-configuration-details.js.map +1 -0
  86. package/lib/model/update-subscription-acknowledgment-configuration-details.d.ts +25 -0
  87. package/lib/model/update-subscription-acknowledgment-configuration-details.js +29 -0
  88. package/lib/model/update-subscription-acknowledgment-configuration-details.js.map +1 -0
  89. package/lib/model/work-item-collection.d.ts +26 -0
  90. package/lib/model/work-item-collection.js +61 -0
  91. package/lib/model/work-item-collection.js.map +1 -0
  92. package/lib/model/work-item-details.d.ts +27 -0
  93. package/lib/model/work-item-details.js +76 -0
  94. package/lib/model/work-item-details.js.map +1 -0
  95. package/lib/model/work-item-status.d.ts +34 -0
  96. package/lib/model/work-item-status.js +45 -0
  97. package/lib/model/work-item-status.js.map +1 -0
  98. package/lib/model/work-item-summary.d.ts +44 -0
  99. package/lib/model/work-item-summary.js +55 -0
  100. package/lib/model/work-item-summary.js.map +1 -0
  101. package/lib/model/work-item-type.d.ts +28 -0
  102. package/lib/model/work-item-type.js +39 -0
  103. package/lib/model/work-item-type.js.map +1 -0
  104. package/lib/model/work-request-error-collection.d.ts +26 -0
  105. package/lib/model/work-request-error-collection.js +61 -0
  106. package/lib/model/work-request-error-collection.js.map +1 -0
  107. package/lib/model/work-request-error.d.ts +37 -0
  108. package/lib/model/work-request-error.js +29 -0
  109. package/lib/model/work-request-error.js.map +1 -0
  110. package/lib/model/work-request-log-entry-collection.d.ts +26 -0
  111. package/lib/model/work-request-log-entry-collection.js +61 -0
  112. package/lib/model/work-request-log-entry-collection.js.map +1 -0
  113. package/lib/model/work-request-log-entry.d.ts +31 -0
  114. package/lib/model/work-request-log-entry.js +29 -0
  115. package/lib/model/work-request-log-entry.js.map +1 -0
  116. package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
  117. package/lib/model/work-request-resource-metadata-key.js +38 -0
  118. package/lib/model/work-request-resource-metadata-key.js.map +1 -0
  119. package/lib/model/work-request-resource.d.ts +48 -0
  120. package/lib/model/work-request-resource.js +29 -0
  121. package/lib/model/work-request-resource.js.map +1 -0
  122. package/lib/model/work-request-summary-collection.d.ts +26 -0
  123. package/lib/model/work-request-summary-collection.js +61 -0
  124. package/lib/model/work-request-summary-collection.js.map +1 -0
  125. package/lib/model/work-request-summary.d.ts +74 -0
  126. package/lib/model/work-request-summary.js +65 -0
  127. package/lib/model/work-request-summary.js.map +1 -0
  128. package/lib/model/work-request.d.ts +85 -0
  129. package/lib/model/work-request.js +65 -0
  130. package/lib/model/work-request.js.map +1 -0
  131. package/lib/request/cancel-work-request-request.d.ts +38 -0
  132. package/lib/request/cancel-work-request-request.js +15 -0
  133. package/lib/request/cancel-work-request-request.js.map +1 -0
  134. package/lib/request/delete-java-migration-analysis-request.d.ts +38 -0
  135. package/lib/request/delete-java-migration-analysis-request.js +15 -0
  136. package/lib/request/delete-java-migration-analysis-request.js.map +1 -0
  137. package/lib/request/delete-performance-tuning-analysis-request.d.ts +38 -0
  138. package/lib/request/delete-performance-tuning-analysis-request.js +15 -0
  139. package/lib/request/delete-performance-tuning-analysis-request.js.map +1 -0
  140. package/lib/request/get-analyze-applications-configuration-request.d.ts +30 -0
  141. package/lib/request/get-analyze-applications-configuration-request.js +15 -0
  142. package/lib/request/get-analyze-applications-configuration-request.js.map +1 -0
  143. package/lib/request/get-java-migration-analysis-request.d.ts +30 -0
  144. package/lib/request/get-java-migration-analysis-request.js +15 -0
  145. package/lib/request/get-java-migration-analysis-request.js.map +1 -0
  146. package/lib/request/get-performance-tuning-analysis-request.d.ts +30 -0
  147. package/lib/request/get-performance-tuning-analysis-request.js +15 -0
  148. package/lib/request/get-performance-tuning-analysis-request.js.map +1 -0
  149. package/lib/request/get-subscription-acknowledgment-configuration-request.d.ts +30 -0
  150. package/lib/request/get-subscription-acknowledgment-configuration-request.js +15 -0
  151. package/lib/request/get-subscription-acknowledgment-configuration-request.js.map +1 -0
  152. package/lib/request/get-work-request-request.d.ts +30 -0
  153. package/lib/request/get-work-request-request.js +15 -0
  154. package/lib/request/get-work-request-request.js.map +1 -0
  155. package/lib/request/index.d.ts +48 -0
  156. package/lib/request/index.js +41 -0
  157. package/lib/request/index.js.map +1 -0
  158. package/lib/request/list-java-migration-analysis-request.d.ts +56 -0
  159. package/lib/request/list-java-migration-analysis-request.js +15 -0
  160. package/lib/request/list-java-migration-analysis-request.js.map +1 -0
  161. package/lib/request/list-performance-tuning-analysis-request.d.ts +60 -0
  162. package/lib/request/list-performance-tuning-analysis-request.js +15 -0
  163. package/lib/request/list-performance-tuning-analysis-request.js.map +1 -0
  164. package/lib/request/list-work-items-request.d.ts +38 -0
  165. package/lib/request/list-work-items-request.js +15 -0
  166. package/lib/request/list-work-items-request.js.map +1 -0
  167. package/lib/request/list-work-request-errors-request.d.ts +53 -0
  168. package/lib/request/list-work-request-errors-request.js +23 -0
  169. package/lib/request/list-work-request-errors-request.js.map +1 -0
  170. package/lib/request/list-work-request-logs-request.d.ts +53 -0
  171. package/lib/request/list-work-request-logs-request.js +23 -0
  172. package/lib/request/list-work-request-logs-request.js.map +1 -0
  173. package/lib/request/list-work-requests-request.d.ts +65 -0
  174. package/lib/request/list-work-requests-request.js +23 -0
  175. package/lib/request/list-work-requests-request.js.map +1 -0
  176. package/lib/request/request-java-migration-analysis-request.d.ts +40 -0
  177. package/lib/request/request-java-migration-analysis-request.js +15 -0
  178. package/lib/request/request-java-migration-analysis-request.js.map +1 -0
  179. package/lib/request/request-performance-tuning-analysis-request.d.ts +40 -0
  180. package/lib/request/request-performance-tuning-analysis-request.js +15 -0
  181. package/lib/request/request-performance-tuning-analysis-request.js.map +1 -0
  182. package/lib/request/update-analyze-applications-configuration-request.d.ts +43 -0
  183. package/lib/request/update-analyze-applications-configuration-request.js +15 -0
  184. package/lib/request/update-analyze-applications-configuration-request.js.map +1 -0
  185. package/lib/request/update-subscription-acknowledgment-configuration-request.d.ts +43 -0
  186. package/lib/request/update-subscription-acknowledgment-configuration-request.js +15 -0
  187. package/lib/request/update-subscription-acknowledgment-configuration-request.js.map +1 -0
  188. package/lib/response/cancel-work-request-response.d.ts +20 -0
  189. package/lib/response/cancel-work-request-response.js +15 -0
  190. package/lib/response/cancel-work-request-response.js.map +1 -0
  191. package/lib/response/delete-java-migration-analysis-response.d.ts +20 -0
  192. package/lib/response/delete-java-migration-analysis-response.js +15 -0
  193. package/lib/response/delete-java-migration-analysis-response.js.map +1 -0
  194. package/lib/response/delete-performance-tuning-analysis-response.d.ts +20 -0
  195. package/lib/response/delete-performance-tuning-analysis-response.js +15 -0
  196. package/lib/response/delete-performance-tuning-analysis-response.js.map +1 -0
  197. package/lib/response/get-analyze-applications-configuration-response.d.ts +30 -0
  198. package/lib/response/get-analyze-applications-configuration-response.js +15 -0
  199. package/lib/response/get-analyze-applications-configuration-response.js.map +1 -0
  200. package/lib/response/get-java-migration-analysis-response.d.ts +30 -0
  201. package/lib/response/get-java-migration-analysis-response.js +15 -0
  202. package/lib/response/get-java-migration-analysis-response.js.map +1 -0
  203. package/lib/response/get-performance-tuning-analysis-response.d.ts +30 -0
  204. package/lib/response/get-performance-tuning-analysis-response.js +15 -0
  205. package/lib/response/get-performance-tuning-analysis-response.js.map +1 -0
  206. package/lib/response/get-subscription-acknowledgment-configuration-response.d.ts +30 -0
  207. package/lib/response/get-subscription-acknowledgment-configuration-response.js +15 -0
  208. package/lib/response/get-subscription-acknowledgment-configuration-response.js.map +1 -0
  209. package/lib/response/get-work-request-response.d.ts +34 -0
  210. package/lib/response/get-work-request-response.js +15 -0
  211. package/lib/response/get-work-request-response.js.map +1 -0
  212. package/lib/response/index.d.ts +48 -0
  213. package/lib/response/index.js +15 -0
  214. package/lib/response/index.js.map +1 -0
  215. package/lib/response/list-java-migration-analysis-response.d.ts +31 -0
  216. package/lib/response/list-java-migration-analysis-response.js +15 -0
  217. package/lib/response/list-java-migration-analysis-response.js.map +1 -0
  218. package/lib/response/list-performance-tuning-analysis-response.d.ts +31 -0
  219. package/lib/response/list-performance-tuning-analysis-response.js +15 -0
  220. package/lib/response/list-performance-tuning-analysis-response.js.map +1 -0
  221. package/lib/response/list-work-items-response.d.ts +31 -0
  222. package/lib/response/list-work-items-response.js +15 -0
  223. package/lib/response/list-work-items-response.js.map +1 -0
  224. package/lib/response/list-work-request-errors-response.d.ts +31 -0
  225. package/lib/response/list-work-request-errors-response.js +15 -0
  226. package/lib/response/list-work-request-errors-response.js.map +1 -0
  227. package/lib/response/list-work-request-logs-response.d.ts +31 -0
  228. package/lib/response/list-work-request-logs-response.js +15 -0
  229. package/lib/response/list-work-request-logs-response.js.map +1 -0
  230. package/lib/response/list-work-requests-response.d.ts +31 -0
  231. package/lib/response/list-work-requests-response.js +15 -0
  232. package/lib/response/list-work-requests-response.js.map +1 -0
  233. package/lib/response/request-java-migration-analysis-response.d.ts +26 -0
  234. package/lib/response/request-java-migration-analysis-response.js +15 -0
  235. package/lib/response/request-java-migration-analysis-response.js.map +1 -0
  236. package/lib/response/request-performance-tuning-analysis-response.d.ts +26 -0
  237. package/lib/response/request-performance-tuning-analysis-response.js +15 -0
  238. package/lib/response/request-performance-tuning-analysis-response.js.map +1 -0
  239. package/lib/response/update-analyze-applications-configuration-response.d.ts +30 -0
  240. package/lib/response/update-analyze-applications-configuration-response.js +15 -0
  241. package/lib/response/update-analyze-applications-configuration-response.js.map +1 -0
  242. package/lib/response/update-subscription-acknowledgment-configuration-response.d.ts +30 -0
  243. package/lib/response/update-subscription-acknowledgment-configuration-response.js +15 -0
  244. package/lib/response/update-subscription-acknowledgment-configuration-response.js.map +1 -0
  245. package/package.json +29 -0
package/lib/client.js ADDED
@@ -0,0 +1,1368 @@
1
+ "use strict";
2
+ /**
3
+ * Java Management Service Utilities API
4
+ * The APIs for Analyze Applications and other utilities of Java Management Service.
5
+ * OpenAPI spec version: 20250521
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OracleSDKGenerator.
9
+ * Do not edit the class manually.
10
+ *
11
+ * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
12
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
13
+ */
14
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || function (mod) {
27
+ if (mod && mod.__esModule) return mod;
28
+ var result = {};
29
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
30
+ __setModuleDefault(result, mod);
31
+ return result;
32
+ };
33
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.JmsUtilsClient = exports.JmsUtilsApiKeys = void 0;
44
+ const common = require("oci-common");
45
+ const model = __importStar(require("./model"));
46
+ const jmsutils_waiter_1 = require("./jmsutils-waiter");
47
+ const oci_common_1 = require("oci-common");
48
+ const Breaker = require("opossum");
49
+ // ===============================================
50
+ // This file is autogenerated - Please do not edit
51
+ // ===============================================
52
+ var JmsUtilsApiKeys;
53
+ (function (JmsUtilsApiKeys) {
54
+ })(JmsUtilsApiKeys = exports.JmsUtilsApiKeys || (exports.JmsUtilsApiKeys = {}));
55
+ /**
56
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
57
+ */
58
+ class JmsUtilsClient {
59
+ constructor(params, clientConfiguration) {
60
+ this["_realmSpecificEndpointTemplateEnabled"] = undefined;
61
+ this["_endpoint"] = "";
62
+ this["_defaultHeaders"] = {};
63
+ this._circuitBreaker = null;
64
+ this._httpOptions = undefined;
65
+ this._bodyDuplexMode = undefined;
66
+ this.targetService = "JmsUtils";
67
+ this._regionId = "";
68
+ this._lastSetRegionOrRegionId = "";
69
+ const requestSigner = params.authenticationDetailsProvider
70
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
71
+ : null;
72
+ this._authProvider = params.authenticationDetailsProvider;
73
+ if (clientConfiguration) {
74
+ this._clientConfiguration = clientConfiguration;
75
+ this._circuitBreaker = clientConfiguration.circuitBreaker
76
+ ? clientConfiguration.circuitBreaker.circuit
77
+ : null;
78
+ this._httpOptions = clientConfiguration.httpOptions
79
+ ? clientConfiguration.httpOptions
80
+ : undefined;
81
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
82
+ ? clientConfiguration.bodyDuplexMode
83
+ : undefined;
84
+ }
85
+ if (!oci_common_1.developerToolConfiguration.isServiceEnabled("jmsutils")) {
86
+ let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
87
+ throw errmsg.concat("jmsutils");
88
+ }
89
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
90
+ const specCircuitBreakerEnabled = true;
91
+ if (!this._circuitBreaker &&
92
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
93
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
94
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
95
+ }
96
+ this._httpClient =
97
+ params.httpClient ||
98
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
99
+ if (params.authenticationDetailsProvider &&
100
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
101
+ const provider = params.authenticationDetailsProvider;
102
+ if (provider.getRegion()) {
103
+ this.region = provider.getRegion();
104
+ }
105
+ }
106
+ }
107
+ /**
108
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
109
+ */
110
+ get endpoint() {
111
+ return this._endpoint;
112
+ }
113
+ /**
114
+ * Sets the endpoint to call (ex, https://www.example.com).
115
+ * @param endpoint The endpoint of the service.
116
+ */
117
+ set endpoint(endpoint) {
118
+ this._endpoint = endpoint;
119
+ this._endpoint = this._endpoint + "/20250521";
120
+ if (this.logger)
121
+ this.logger.info(`JmsUtilsClient endpoint set to ${this._endpoint}`);
122
+ }
123
+ get logger() {
124
+ return common.LOG.logger;
125
+ }
126
+ /**
127
+ * Determines whether realm specific endpoint should be used or not.
128
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
129
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
130
+ */
131
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
132
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
133
+ if (this.logger)
134
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
135
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
136
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(JmsUtilsClient.serviceEndpointTemplate, this._region, JmsUtilsClient.endpointServiceName);
137
+ }
138
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
139
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(JmsUtilsClient.serviceEndpointTemplate, this._regionId, JmsUtilsClient.endpointServiceName);
140
+ }
141
+ }
142
+ /**
143
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
144
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
145
+ * @param region The region of the service.
146
+ */
147
+ set region(region) {
148
+ this._region = region;
149
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(JmsUtilsClient.serviceEndpointTemplate, region, JmsUtilsClient.endpointServiceName);
150
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
151
+ }
152
+ /**
153
+ * Sets the regionId to call (ex, 'us-phoenix-1').
154
+ *
155
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
156
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
157
+ * and then call {@link #endpoint(String) endpoint}.
158
+ * @param regionId The public region ID.
159
+ */
160
+ set regionId(regionId) {
161
+ this._regionId = regionId;
162
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(JmsUtilsClient.serviceEndpointTemplate, regionId, JmsUtilsClient.endpointServiceName);
163
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
164
+ }
165
+ /**
166
+ * Creates a new JmsUtilsWaiter for resources for this service.
167
+ *
168
+ * @param config The waiter configuration for termination and delay strategy
169
+ * @return The service waiters.
170
+ */
171
+ createWaiters(config) {
172
+ this._waiters = new jmsutils_waiter_1.JmsUtilsWaiter(this, config);
173
+ return this._waiters;
174
+ }
175
+ /**
176
+ * Gets the waiters available for resources for this service.
177
+ *
178
+ * @return The service waiters.
179
+ */
180
+ getWaiters() {
181
+ if (this._waiters) {
182
+ return this._waiters;
183
+ }
184
+ throw Error("Waiters do not exist. Please create waiters.");
185
+ }
186
+ /**
187
+ * Shutdown the circuit breaker used by the client when it is no longer needed
188
+ */
189
+ shutdownCircuitBreaker() {
190
+ if (this._circuitBreaker) {
191
+ this._circuitBreaker.shutdown();
192
+ }
193
+ }
194
+ /**
195
+ * Close the provider if possible which in turn shuts down any associated circuit breaker
196
+ */
197
+ closeProvider() {
198
+ if (this._authProvider) {
199
+ if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
200
+ (this._authProvider).closeProvider();
201
+ }
202
+ }
203
+ /**
204
+ * Close the client once it is no longer needed
205
+ */
206
+ close() {
207
+ this.shutdownCircuitBreaker();
208
+ this.closeProvider();
209
+ }
210
+ /**
211
+ * Cancels a work request.
212
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
213
+ * @param CancelWorkRequestRequest
214
+ * @return CancelWorkRequestResponse
215
+ * @throws OciError when an error occurs
216
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
217
+ */
218
+ cancelWorkRequest(cancelWorkRequestRequest) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ if (this.logger)
221
+ this.logger.debug("Calling operation JmsUtilsClient#cancelWorkRequest.");
222
+ const operationName = "cancelWorkRequest";
223
+ const apiReferenceLink = "";
224
+ const pathParams = {
225
+ "{workRequestId}": cancelWorkRequestRequest.workRequestId
226
+ };
227
+ const queryParams = {};
228
+ let headerParams = {
229
+ "Content-Type": common.Constants.APPLICATION_JSON,
230
+ "if-match": cancelWorkRequestRequest.ifMatch,
231
+ "opc-request-id": cancelWorkRequestRequest.opcRequestId
232
+ };
233
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
234
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
235
+ if (this.logger)
236
+ retrier.logger = this.logger;
237
+ const request = yield oci_common_1.composeRequest({
238
+ baseEndpoint: this._endpoint,
239
+ defaultHeaders: this._defaultHeaders,
240
+ path: "/workRequests/{workRequestId}",
241
+ method: "DELETE",
242
+ pathParams: pathParams,
243
+ headerParams: headerParams,
244
+ queryParams: queryParams
245
+ });
246
+ try {
247
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
248
+ const sdkResponse = oci_common_1.composeResponse({
249
+ responseObject: {},
250
+ responseHeaders: [
251
+ {
252
+ value: response.headers.get("opc-request-id"),
253
+ key: "opcRequestId",
254
+ dataType: "string"
255
+ }
256
+ ]
257
+ });
258
+ return sdkResponse;
259
+ }
260
+ catch (err) {
261
+ throw err;
262
+ }
263
+ });
264
+ }
265
+ /**
266
+ * Deletes a Java Migration Analysis.
267
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
268
+ * @param DeleteJavaMigrationAnalysisRequest
269
+ * @return DeleteJavaMigrationAnalysisResponse
270
+ * @throws OciError when an error occurs
271
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/DeleteJavaMigrationAnalysis.ts.html |here} to see how to use DeleteJavaMigrationAnalysis API.
272
+ */
273
+ deleteJavaMigrationAnalysis(deleteJavaMigrationAnalysisRequest) {
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ if (this.logger)
276
+ this.logger.debug("Calling operation JmsUtilsClient#deleteJavaMigrationAnalysis.");
277
+ const operationName = "deleteJavaMigrationAnalysis";
278
+ const apiReferenceLink = "";
279
+ const pathParams = {
280
+ "{javaMigrationAnalysisId}": deleteJavaMigrationAnalysisRequest.javaMigrationAnalysisId
281
+ };
282
+ const queryParams = {};
283
+ let headerParams = {
284
+ "Content-Type": common.Constants.APPLICATION_JSON,
285
+ "if-match": deleteJavaMigrationAnalysisRequest.ifMatch,
286
+ "opc-request-id": deleteJavaMigrationAnalysisRequest.opcRequestId
287
+ };
288
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
289
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteJavaMigrationAnalysisRequest.retryConfiguration, specRetryConfiguration);
290
+ if (this.logger)
291
+ retrier.logger = this.logger;
292
+ const request = yield oci_common_1.composeRequest({
293
+ baseEndpoint: this._endpoint,
294
+ defaultHeaders: this._defaultHeaders,
295
+ path: "/javaMigrationAnalysis/{javaMigrationAnalysisId}",
296
+ method: "DELETE",
297
+ pathParams: pathParams,
298
+ headerParams: headerParams,
299
+ queryParams: queryParams
300
+ });
301
+ try {
302
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
303
+ const sdkResponse = oci_common_1.composeResponse({
304
+ responseObject: {},
305
+ responseHeaders: [
306
+ {
307
+ value: response.headers.get("opc-request-id"),
308
+ key: "opcRequestId",
309
+ dataType: "string"
310
+ }
311
+ ]
312
+ });
313
+ return sdkResponse;
314
+ }
315
+ catch (err) {
316
+ throw err;
317
+ }
318
+ });
319
+ }
320
+ /**
321
+ * Deletes a Performance Tuning Analysis.
322
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
323
+ * @param DeletePerformanceTuningAnalysisRequest
324
+ * @return DeletePerformanceTuningAnalysisResponse
325
+ * @throws OciError when an error occurs
326
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/DeletePerformanceTuningAnalysis.ts.html |here} to see how to use DeletePerformanceTuningAnalysis API.
327
+ */
328
+ deletePerformanceTuningAnalysis(deletePerformanceTuningAnalysisRequest) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ if (this.logger)
331
+ this.logger.debug("Calling operation JmsUtilsClient#deletePerformanceTuningAnalysis.");
332
+ const operationName = "deletePerformanceTuningAnalysis";
333
+ const apiReferenceLink = "";
334
+ const pathParams = {
335
+ "{performanceTuningAnalysisId}": deletePerformanceTuningAnalysisRequest.performanceTuningAnalysisId
336
+ };
337
+ const queryParams = {};
338
+ let headerParams = {
339
+ "Content-Type": common.Constants.APPLICATION_JSON,
340
+ "if-match": deletePerformanceTuningAnalysisRequest.ifMatch,
341
+ "opc-request-id": deletePerformanceTuningAnalysisRequest.opcRequestId
342
+ };
343
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
344
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePerformanceTuningAnalysisRequest.retryConfiguration, specRetryConfiguration);
345
+ if (this.logger)
346
+ retrier.logger = this.logger;
347
+ const request = yield oci_common_1.composeRequest({
348
+ baseEndpoint: this._endpoint,
349
+ defaultHeaders: this._defaultHeaders,
350
+ path: "/performanceTuningAnalysis/{performanceTuningAnalysisId}",
351
+ method: "DELETE",
352
+ pathParams: pathParams,
353
+ headerParams: headerParams,
354
+ queryParams: queryParams
355
+ });
356
+ try {
357
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
358
+ const sdkResponse = oci_common_1.composeResponse({
359
+ responseObject: {},
360
+ responseHeaders: [
361
+ {
362
+ value: response.headers.get("opc-request-id"),
363
+ key: "opcRequestId",
364
+ dataType: "string"
365
+ }
366
+ ]
367
+ });
368
+ return sdkResponse;
369
+ }
370
+ catch (err) {
371
+ throw err;
372
+ }
373
+ });
374
+ }
375
+ /**
376
+ * Returns the configuration for analyzing applications.
377
+ *
378
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
379
+ * @param GetAnalyzeApplicationsConfigurationRequest
380
+ * @return GetAnalyzeApplicationsConfigurationResponse
381
+ * @throws OciError when an error occurs
382
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/GetAnalyzeApplicationsConfiguration.ts.html |here} to see how to use GetAnalyzeApplicationsConfiguration API.
383
+ */
384
+ getAnalyzeApplicationsConfiguration(getAnalyzeApplicationsConfigurationRequest) {
385
+ return __awaiter(this, void 0, void 0, function* () {
386
+ if (this.logger)
387
+ this.logger.debug("Calling operation JmsUtilsClient#getAnalyzeApplicationsConfiguration.");
388
+ const operationName = "getAnalyzeApplicationsConfiguration";
389
+ const apiReferenceLink = "";
390
+ const pathParams = {};
391
+ const queryParams = {
392
+ "compartmentId": getAnalyzeApplicationsConfigurationRequest.compartmentId
393
+ };
394
+ let headerParams = {
395
+ "Content-Type": common.Constants.APPLICATION_JSON,
396
+ "opc-request-id": getAnalyzeApplicationsConfigurationRequest.opcRequestId
397
+ };
398
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
399
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAnalyzeApplicationsConfigurationRequest.retryConfiguration, specRetryConfiguration);
400
+ if (this.logger)
401
+ retrier.logger = this.logger;
402
+ const request = yield oci_common_1.composeRequest({
403
+ baseEndpoint: this._endpoint,
404
+ defaultHeaders: this._defaultHeaders,
405
+ path: "/analyzeApplicationsConfiguration",
406
+ method: "GET",
407
+ pathParams: pathParams,
408
+ headerParams: headerParams,
409
+ queryParams: queryParams
410
+ });
411
+ try {
412
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
413
+ const sdkResponse = oci_common_1.composeResponse({
414
+ responseObject: {},
415
+ body: yield response.json(),
416
+ bodyKey: "analyzeApplicationsConfiguration",
417
+ bodyModel: model.AnalyzeApplicationsConfiguration,
418
+ type: "model.AnalyzeApplicationsConfiguration",
419
+ responseHeaders: [
420
+ {
421
+ value: response.headers.get("opc-request-id"),
422
+ key: "opcRequestId",
423
+ dataType: "string"
424
+ },
425
+ {
426
+ value: response.headers.get("etag"),
427
+ key: "etag",
428
+ dataType: "string"
429
+ }
430
+ ]
431
+ });
432
+ return sdkResponse;
433
+ }
434
+ catch (err) {
435
+ throw err;
436
+ }
437
+ });
438
+ }
439
+ /**
440
+ * Gets information about a Java Migration Analysis.
441
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
442
+ * @param GetJavaMigrationAnalysisRequest
443
+ * @return GetJavaMigrationAnalysisResponse
444
+ * @throws OciError when an error occurs
445
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/GetJavaMigrationAnalysis.ts.html |here} to see how to use GetJavaMigrationAnalysis API.
446
+ */
447
+ getJavaMigrationAnalysis(getJavaMigrationAnalysisRequest) {
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ if (this.logger)
450
+ this.logger.debug("Calling operation JmsUtilsClient#getJavaMigrationAnalysis.");
451
+ const operationName = "getJavaMigrationAnalysis";
452
+ const apiReferenceLink = "";
453
+ const pathParams = {
454
+ "{javaMigrationAnalysisId}": getJavaMigrationAnalysisRequest.javaMigrationAnalysisId
455
+ };
456
+ const queryParams = {};
457
+ let headerParams = {
458
+ "Content-Type": common.Constants.APPLICATION_JSON,
459
+ "opc-request-id": getJavaMigrationAnalysisRequest.opcRequestId
460
+ };
461
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
462
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getJavaMigrationAnalysisRequest.retryConfiguration, specRetryConfiguration);
463
+ if (this.logger)
464
+ retrier.logger = this.logger;
465
+ const request = yield oci_common_1.composeRequest({
466
+ baseEndpoint: this._endpoint,
467
+ defaultHeaders: this._defaultHeaders,
468
+ path: "/javaMigrationAnalysis/{javaMigrationAnalysisId}",
469
+ method: "GET",
470
+ pathParams: pathParams,
471
+ headerParams: headerParams,
472
+ queryParams: queryParams
473
+ });
474
+ try {
475
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
476
+ const sdkResponse = oci_common_1.composeResponse({
477
+ responseObject: {},
478
+ body: yield response.json(),
479
+ bodyKey: "javaMigrationAnalysis",
480
+ bodyModel: model.JavaMigrationAnalysis,
481
+ type: "model.JavaMigrationAnalysis",
482
+ responseHeaders: [
483
+ {
484
+ value: response.headers.get("etag"),
485
+ key: "etag",
486
+ dataType: "string"
487
+ },
488
+ {
489
+ value: response.headers.get("opc-request-id"),
490
+ key: "opcRequestId",
491
+ dataType: "string"
492
+ }
493
+ ]
494
+ });
495
+ return sdkResponse;
496
+ }
497
+ catch (err) {
498
+ throw err;
499
+ }
500
+ });
501
+ }
502
+ /**
503
+ * Gets information about a Performance Tuning Analysis.
504
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
505
+ * @param GetPerformanceTuningAnalysisRequest
506
+ * @return GetPerformanceTuningAnalysisResponse
507
+ * @throws OciError when an error occurs
508
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/GetPerformanceTuningAnalysis.ts.html |here} to see how to use GetPerformanceTuningAnalysis API.
509
+ */
510
+ getPerformanceTuningAnalysis(getPerformanceTuningAnalysisRequest) {
511
+ return __awaiter(this, void 0, void 0, function* () {
512
+ if (this.logger)
513
+ this.logger.debug("Calling operation JmsUtilsClient#getPerformanceTuningAnalysis.");
514
+ const operationName = "getPerformanceTuningAnalysis";
515
+ const apiReferenceLink = "";
516
+ const pathParams = {
517
+ "{performanceTuningAnalysisId}": getPerformanceTuningAnalysisRequest.performanceTuningAnalysisId
518
+ };
519
+ const queryParams = {};
520
+ let headerParams = {
521
+ "Content-Type": common.Constants.APPLICATION_JSON,
522
+ "opc-request-id": getPerformanceTuningAnalysisRequest.opcRequestId
523
+ };
524
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
525
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPerformanceTuningAnalysisRequest.retryConfiguration, specRetryConfiguration);
526
+ if (this.logger)
527
+ retrier.logger = this.logger;
528
+ const request = yield oci_common_1.composeRequest({
529
+ baseEndpoint: this._endpoint,
530
+ defaultHeaders: this._defaultHeaders,
531
+ path: "/performanceTuningAnalysis/{performanceTuningAnalysisId}",
532
+ method: "GET",
533
+ pathParams: pathParams,
534
+ headerParams: headerParams,
535
+ queryParams: queryParams
536
+ });
537
+ try {
538
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
539
+ const sdkResponse = oci_common_1.composeResponse({
540
+ responseObject: {},
541
+ body: yield response.json(),
542
+ bodyKey: "performanceTuningAnalysis",
543
+ bodyModel: model.PerformanceTuningAnalysis,
544
+ type: "model.PerformanceTuningAnalysis",
545
+ responseHeaders: [
546
+ {
547
+ value: response.headers.get("etag"),
548
+ key: "etag",
549
+ dataType: "string"
550
+ },
551
+ {
552
+ value: response.headers.get("opc-request-id"),
553
+ key: "opcRequestId",
554
+ dataType: "string"
555
+ }
556
+ ]
557
+ });
558
+ return sdkResponse;
559
+ }
560
+ catch (err) {
561
+ throw err;
562
+ }
563
+ });
564
+ }
565
+ /**
566
+ * Returns the configuration for subscription acknowledgment.
567
+ *
568
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
569
+ * @param GetSubscriptionAcknowledgmentConfigurationRequest
570
+ * @return GetSubscriptionAcknowledgmentConfigurationResponse
571
+ * @throws OciError when an error occurs
572
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/GetSubscriptionAcknowledgmentConfiguration.ts.html |here} to see how to use GetSubscriptionAcknowledgmentConfiguration API.
573
+ */
574
+ getSubscriptionAcknowledgmentConfiguration(getSubscriptionAcknowledgmentConfigurationRequest) {
575
+ return __awaiter(this, void 0, void 0, function* () {
576
+ if (this.logger)
577
+ this.logger.debug("Calling operation JmsUtilsClient#getSubscriptionAcknowledgmentConfiguration.");
578
+ const operationName = "getSubscriptionAcknowledgmentConfiguration";
579
+ const apiReferenceLink = "";
580
+ const pathParams = {};
581
+ const queryParams = {
582
+ "compartmentId": getSubscriptionAcknowledgmentConfigurationRequest.compartmentId
583
+ };
584
+ let headerParams = {
585
+ "Content-Type": common.Constants.APPLICATION_JSON,
586
+ "opc-request-id": getSubscriptionAcknowledgmentConfigurationRequest.opcRequestId
587
+ };
588
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
589
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSubscriptionAcknowledgmentConfigurationRequest.retryConfiguration, specRetryConfiguration);
590
+ if (this.logger)
591
+ retrier.logger = this.logger;
592
+ const request = yield oci_common_1.composeRequest({
593
+ baseEndpoint: this._endpoint,
594
+ defaultHeaders: this._defaultHeaders,
595
+ path: "/subscriptionAcknowledgmentConfiguration",
596
+ method: "GET",
597
+ pathParams: pathParams,
598
+ headerParams: headerParams,
599
+ queryParams: queryParams
600
+ });
601
+ try {
602
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
603
+ const sdkResponse = oci_common_1.composeResponse({
604
+ responseObject: {},
605
+ body: yield response.json(),
606
+ bodyKey: "subscriptionAcknowledgmentConfiguration",
607
+ bodyModel: model.SubscriptionAcknowledgmentConfiguration,
608
+ type: "model.SubscriptionAcknowledgmentConfiguration",
609
+ responseHeaders: [
610
+ {
611
+ value: response.headers.get("opc-request-id"),
612
+ key: "opcRequestId",
613
+ dataType: "string"
614
+ },
615
+ {
616
+ value: response.headers.get("etag"),
617
+ key: "etag",
618
+ dataType: "string"
619
+ }
620
+ ]
621
+ });
622
+ return sdkResponse;
623
+ }
624
+ catch (err) {
625
+ throw err;
626
+ }
627
+ });
628
+ }
629
+ /**
630
+ * Gets the details of a work request.
631
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
632
+ * @param GetWorkRequestRequest
633
+ * @return GetWorkRequestResponse
634
+ * @throws OciError when an error occurs
635
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
636
+ */
637
+ getWorkRequest(getWorkRequestRequest) {
638
+ return __awaiter(this, void 0, void 0, function* () {
639
+ if (this.logger)
640
+ this.logger.debug("Calling operation JmsUtilsClient#getWorkRequest.");
641
+ const operationName = "getWorkRequest";
642
+ const apiReferenceLink = "";
643
+ const pathParams = {
644
+ "{workRequestId}": getWorkRequestRequest.workRequestId
645
+ };
646
+ const queryParams = {};
647
+ let headerParams = {
648
+ "Content-Type": common.Constants.APPLICATION_JSON,
649
+ "opc-request-id": getWorkRequestRequest.opcRequestId
650
+ };
651
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
652
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
653
+ if (this.logger)
654
+ retrier.logger = this.logger;
655
+ const request = yield oci_common_1.composeRequest({
656
+ baseEndpoint: this._endpoint,
657
+ defaultHeaders: this._defaultHeaders,
658
+ path: "/workRequests/{workRequestId}",
659
+ method: "GET",
660
+ pathParams: pathParams,
661
+ headerParams: headerParams,
662
+ queryParams: queryParams
663
+ });
664
+ try {
665
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
666
+ const sdkResponse = oci_common_1.composeResponse({
667
+ responseObject: {},
668
+ body: yield response.json(),
669
+ bodyKey: "workRequest",
670
+ bodyModel: model.WorkRequest,
671
+ type: "model.WorkRequest",
672
+ responseHeaders: [
673
+ {
674
+ value: response.headers.get("etag"),
675
+ key: "etag",
676
+ dataType: "string"
677
+ },
678
+ {
679
+ value: response.headers.get("opc-request-id"),
680
+ key: "opcRequestId",
681
+ dataType: "string"
682
+ },
683
+ {
684
+ value: response.headers.get("retry-after"),
685
+ key: "retryAfter",
686
+ dataType: "number"
687
+ }
688
+ ]
689
+ });
690
+ return sdkResponse;
691
+ }
692
+ catch (err) {
693
+ throw err;
694
+ }
695
+ });
696
+ }
697
+ /**
698
+ * Gets a list of Java Migration Analysis.
699
+ *
700
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
701
+ * @param ListJavaMigrationAnalysisRequest
702
+ * @return ListJavaMigrationAnalysisResponse
703
+ * @throws OciError when an error occurs
704
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/ListJavaMigrationAnalysis.ts.html |here} to see how to use ListJavaMigrationAnalysis API.
705
+ */
706
+ listJavaMigrationAnalysis(listJavaMigrationAnalysisRequest) {
707
+ return __awaiter(this, void 0, void 0, function* () {
708
+ if (this.logger)
709
+ this.logger.debug("Calling operation JmsUtilsClient#listJavaMigrationAnalysis.");
710
+ const operationName = "listJavaMigrationAnalysis";
711
+ const apiReferenceLink = "";
712
+ const pathParams = {};
713
+ const queryParams = {
714
+ "compartmentId": listJavaMigrationAnalysisRequest.compartmentId,
715
+ "id": listJavaMigrationAnalysisRequest.id,
716
+ "analysisProjectName": listJavaMigrationAnalysisRequest.analysisProjectName,
717
+ "limit": listJavaMigrationAnalysisRequest.limit,
718
+ "page": listJavaMigrationAnalysisRequest.page,
719
+ "sortOrder": listJavaMigrationAnalysisRequest.sortOrder,
720
+ "sortBy": listJavaMigrationAnalysisRequest.sortBy
721
+ };
722
+ let headerParams = {
723
+ "Content-Type": common.Constants.APPLICATION_JSON,
724
+ "opc-request-id": listJavaMigrationAnalysisRequest.opcRequestId
725
+ };
726
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
727
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listJavaMigrationAnalysisRequest.retryConfiguration, specRetryConfiguration);
728
+ if (this.logger)
729
+ retrier.logger = this.logger;
730
+ const request = yield oci_common_1.composeRequest({
731
+ baseEndpoint: this._endpoint,
732
+ defaultHeaders: this._defaultHeaders,
733
+ path: "/javaMigrationAnalysis",
734
+ method: "GET",
735
+ pathParams: pathParams,
736
+ headerParams: headerParams,
737
+ queryParams: queryParams
738
+ });
739
+ try {
740
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
741
+ const sdkResponse = oci_common_1.composeResponse({
742
+ responseObject: {},
743
+ body: yield response.json(),
744
+ bodyKey: "javaMigrationAnalysisCollection",
745
+ bodyModel: model.JavaMigrationAnalysisCollection,
746
+ type: "model.JavaMigrationAnalysisCollection",
747
+ responseHeaders: [
748
+ {
749
+ value: response.headers.get("opc-request-id"),
750
+ key: "opcRequestId",
751
+ dataType: "string"
752
+ },
753
+ {
754
+ value: response.headers.get("opc-next-page"),
755
+ key: "opcNextPage",
756
+ dataType: "string"
757
+ }
758
+ ]
759
+ });
760
+ return sdkResponse;
761
+ }
762
+ catch (err) {
763
+ throw err;
764
+ }
765
+ });
766
+ }
767
+ /**
768
+ * Gets a list of Performance tuning Analysis.
769
+ *
770
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
771
+ * @param ListPerformanceTuningAnalysisRequest
772
+ * @return ListPerformanceTuningAnalysisResponse
773
+ * @throws OciError when an error occurs
774
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/ListPerformanceTuningAnalysis.ts.html |here} to see how to use ListPerformanceTuningAnalysis API.
775
+ */
776
+ listPerformanceTuningAnalysis(listPerformanceTuningAnalysisRequest) {
777
+ return __awaiter(this, void 0, void 0, function* () {
778
+ if (this.logger)
779
+ this.logger.debug("Calling operation JmsUtilsClient#listPerformanceTuningAnalysis.");
780
+ const operationName = "listPerformanceTuningAnalysis";
781
+ const apiReferenceLink = "";
782
+ const pathParams = {};
783
+ const queryParams = {
784
+ "compartmentId": listPerformanceTuningAnalysisRequest.compartmentId,
785
+ "id": listPerformanceTuningAnalysisRequest.id,
786
+ "analysisProjectName": listPerformanceTuningAnalysisRequest.analysisProjectName,
787
+ "performanceTuningAnalysisResult": listPerformanceTuningAnalysisRequest.performanceTuningAnalysisResult,
788
+ "limit": listPerformanceTuningAnalysisRequest.limit,
789
+ "page": listPerformanceTuningAnalysisRequest.page,
790
+ "sortOrder": listPerformanceTuningAnalysisRequest.sortOrder,
791
+ "sortBy": listPerformanceTuningAnalysisRequest.sortBy
792
+ };
793
+ let headerParams = {
794
+ "Content-Type": common.Constants.APPLICATION_JSON,
795
+ "opc-request-id": listPerformanceTuningAnalysisRequest.opcRequestId
796
+ };
797
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
798
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPerformanceTuningAnalysisRequest.retryConfiguration, specRetryConfiguration);
799
+ if (this.logger)
800
+ retrier.logger = this.logger;
801
+ const request = yield oci_common_1.composeRequest({
802
+ baseEndpoint: this._endpoint,
803
+ defaultHeaders: this._defaultHeaders,
804
+ path: "/performanceTuningAnalysis",
805
+ method: "GET",
806
+ pathParams: pathParams,
807
+ headerParams: headerParams,
808
+ queryParams: queryParams
809
+ });
810
+ try {
811
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
812
+ const sdkResponse = oci_common_1.composeResponse({
813
+ responseObject: {},
814
+ body: yield response.json(),
815
+ bodyKey: "performanceTuningAnalysisCollection",
816
+ bodyModel: model.PerformanceTuningAnalysisCollection,
817
+ type: "model.PerformanceTuningAnalysisCollection",
818
+ responseHeaders: [
819
+ {
820
+ value: response.headers.get("opc-request-id"),
821
+ key: "opcRequestId",
822
+ dataType: "string"
823
+ },
824
+ {
825
+ value: response.headers.get("opc-next-page"),
826
+ key: "opcNextPage",
827
+ dataType: "string"
828
+ }
829
+ ]
830
+ });
831
+ return sdkResponse;
832
+ }
833
+ catch (err) {
834
+ throw err;
835
+ }
836
+ });
837
+ }
838
+ /**
839
+ * Retrieve a paginated list of work items for a specified work request.
840
+ *
841
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
842
+ * @param ListWorkItemsRequest
843
+ * @return ListWorkItemsResponse
844
+ * @throws OciError when an error occurs
845
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/ListWorkItems.ts.html |here} to see how to use ListWorkItems API.
846
+ */
847
+ listWorkItems(listWorkItemsRequest) {
848
+ return __awaiter(this, void 0, void 0, function* () {
849
+ if (this.logger)
850
+ this.logger.debug("Calling operation JmsUtilsClient#listWorkItems.");
851
+ const operationName = "listWorkItems";
852
+ const apiReferenceLink = "";
853
+ const pathParams = {
854
+ "{workRequestId}": listWorkItemsRequest.workRequestId
855
+ };
856
+ const queryParams = {
857
+ "page": listWorkItemsRequest.page,
858
+ "limit": listWorkItemsRequest.limit
859
+ };
860
+ let headerParams = {
861
+ "Content-Type": common.Constants.APPLICATION_JSON,
862
+ "opc-request-id": listWorkItemsRequest.opcRequestId
863
+ };
864
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
865
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkItemsRequest.retryConfiguration, specRetryConfiguration);
866
+ if (this.logger)
867
+ retrier.logger = this.logger;
868
+ const request = yield oci_common_1.composeRequest({
869
+ baseEndpoint: this._endpoint,
870
+ defaultHeaders: this._defaultHeaders,
871
+ path: "/workRequests/{workRequestId}/workItems",
872
+ method: "GET",
873
+ pathParams: pathParams,
874
+ headerParams: headerParams,
875
+ queryParams: queryParams
876
+ });
877
+ try {
878
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
879
+ const sdkResponse = oci_common_1.composeResponse({
880
+ responseObject: {},
881
+ body: yield response.json(),
882
+ bodyKey: "workItemCollection",
883
+ bodyModel: model.WorkItemCollection,
884
+ type: "model.WorkItemCollection",
885
+ responseHeaders: [
886
+ {
887
+ value: response.headers.get("opc-next-page"),
888
+ key: "opcNextPage",
889
+ dataType: "string"
890
+ },
891
+ {
892
+ value: response.headers.get("opc-request-id"),
893
+ key: "opcRequestId",
894
+ dataType: "string"
895
+ }
896
+ ]
897
+ });
898
+ return sdkResponse;
899
+ }
900
+ catch (err) {
901
+ throw err;
902
+ }
903
+ });
904
+ }
905
+ /**
906
+ * Lists the errors for a work request.
907
+ *
908
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
909
+ * @param ListWorkRequestErrorsRequest
910
+ * @return ListWorkRequestErrorsResponse
911
+ * @throws OciError when an error occurs
912
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
913
+ */
914
+ listWorkRequestErrors(listWorkRequestErrorsRequest) {
915
+ return __awaiter(this, void 0, void 0, function* () {
916
+ if (this.logger)
917
+ this.logger.debug("Calling operation JmsUtilsClient#listWorkRequestErrors.");
918
+ const operationName = "listWorkRequestErrors";
919
+ const apiReferenceLink = "";
920
+ const pathParams = {
921
+ "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
922
+ };
923
+ const queryParams = {
924
+ "page": listWorkRequestErrorsRequest.page,
925
+ "limit": listWorkRequestErrorsRequest.limit,
926
+ "sortBy": listWorkRequestErrorsRequest.sortBy,
927
+ "sortOrder": listWorkRequestErrorsRequest.sortOrder
928
+ };
929
+ let headerParams = {
930
+ "Content-Type": common.Constants.APPLICATION_JSON,
931
+ "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
932
+ };
933
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
934
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
935
+ if (this.logger)
936
+ retrier.logger = this.logger;
937
+ const request = yield oci_common_1.composeRequest({
938
+ baseEndpoint: this._endpoint,
939
+ defaultHeaders: this._defaultHeaders,
940
+ path: "/workRequests/{workRequestId}/errors",
941
+ method: "GET",
942
+ pathParams: pathParams,
943
+ headerParams: headerParams,
944
+ queryParams: queryParams
945
+ });
946
+ try {
947
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
948
+ const sdkResponse = oci_common_1.composeResponse({
949
+ responseObject: {},
950
+ body: yield response.json(),
951
+ bodyKey: "workRequestErrorCollection",
952
+ bodyModel: model.WorkRequestErrorCollection,
953
+ type: "model.WorkRequestErrorCollection",
954
+ responseHeaders: [
955
+ {
956
+ value: response.headers.get("opc-next-page"),
957
+ key: "opcNextPage",
958
+ dataType: "string"
959
+ },
960
+ {
961
+ value: response.headers.get("opc-request-id"),
962
+ key: "opcRequestId",
963
+ dataType: "string"
964
+ }
965
+ ]
966
+ });
967
+ return sdkResponse;
968
+ }
969
+ catch (err) {
970
+ throw err;
971
+ }
972
+ });
973
+ }
974
+ /**
975
+ * Lists the logs for a work request.
976
+ *
977
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
978
+ * @param ListWorkRequestLogsRequest
979
+ * @return ListWorkRequestLogsResponse
980
+ * @throws OciError when an error occurs
981
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
982
+ */
983
+ listWorkRequestLogs(listWorkRequestLogsRequest) {
984
+ return __awaiter(this, void 0, void 0, function* () {
985
+ if (this.logger)
986
+ this.logger.debug("Calling operation JmsUtilsClient#listWorkRequestLogs.");
987
+ const operationName = "listWorkRequestLogs";
988
+ const apiReferenceLink = "";
989
+ const pathParams = {
990
+ "{workRequestId}": listWorkRequestLogsRequest.workRequestId
991
+ };
992
+ const queryParams = {
993
+ "page": listWorkRequestLogsRequest.page,
994
+ "limit": listWorkRequestLogsRequest.limit,
995
+ "sortBy": listWorkRequestLogsRequest.sortBy,
996
+ "sortOrder": listWorkRequestLogsRequest.sortOrder
997
+ };
998
+ let headerParams = {
999
+ "Content-Type": common.Constants.APPLICATION_JSON,
1000
+ "opc-request-id": listWorkRequestLogsRequest.opcRequestId
1001
+ };
1002
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1003
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
1004
+ if (this.logger)
1005
+ retrier.logger = this.logger;
1006
+ const request = yield oci_common_1.composeRequest({
1007
+ baseEndpoint: this._endpoint,
1008
+ defaultHeaders: this._defaultHeaders,
1009
+ path: "/workRequests/{workRequestId}/logs",
1010
+ method: "GET",
1011
+ pathParams: pathParams,
1012
+ headerParams: headerParams,
1013
+ queryParams: queryParams
1014
+ });
1015
+ try {
1016
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1017
+ const sdkResponse = oci_common_1.composeResponse({
1018
+ responseObject: {},
1019
+ body: yield response.json(),
1020
+ bodyKey: "workRequestLogEntryCollection",
1021
+ bodyModel: model.WorkRequestLogEntryCollection,
1022
+ type: "model.WorkRequestLogEntryCollection",
1023
+ responseHeaders: [
1024
+ {
1025
+ value: response.headers.get("opc-next-page"),
1026
+ key: "opcNextPage",
1027
+ dataType: "string"
1028
+ },
1029
+ {
1030
+ value: response.headers.get("opc-request-id"),
1031
+ key: "opcRequestId",
1032
+ dataType: "string"
1033
+ }
1034
+ ]
1035
+ });
1036
+ return sdkResponse;
1037
+ }
1038
+ catch (err) {
1039
+ throw err;
1040
+ }
1041
+ });
1042
+ }
1043
+ /**
1044
+ * Lists the work requests in a compartment.
1045
+ *
1046
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1047
+ * @param ListWorkRequestsRequest
1048
+ * @return ListWorkRequestsResponse
1049
+ * @throws OciError when an error occurs
1050
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1051
+ */
1052
+ listWorkRequests(listWorkRequestsRequest) {
1053
+ return __awaiter(this, void 0, void 0, function* () {
1054
+ if (this.logger)
1055
+ this.logger.debug("Calling operation JmsUtilsClient#listWorkRequests.");
1056
+ const operationName = "listWorkRequests";
1057
+ const apiReferenceLink = "";
1058
+ const pathParams = {};
1059
+ const queryParams = {
1060
+ "compartmentId": listWorkRequestsRequest.compartmentId,
1061
+ "workRequestId": listWorkRequestsRequest.workRequestId,
1062
+ "status": listWorkRequestsRequest.status,
1063
+ "resourceId": listWorkRequestsRequest.resourceId,
1064
+ "page": listWorkRequestsRequest.page,
1065
+ "limit": listWorkRequestsRequest.limit,
1066
+ "sortOrder": listWorkRequestsRequest.sortOrder,
1067
+ "sortBy": listWorkRequestsRequest.sortBy
1068
+ };
1069
+ let headerParams = {
1070
+ "Content-Type": common.Constants.APPLICATION_JSON,
1071
+ "opc-request-id": listWorkRequestsRequest.opcRequestId
1072
+ };
1073
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1074
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
1075
+ if (this.logger)
1076
+ retrier.logger = this.logger;
1077
+ const request = yield oci_common_1.composeRequest({
1078
+ baseEndpoint: this._endpoint,
1079
+ defaultHeaders: this._defaultHeaders,
1080
+ path: "/workRequests",
1081
+ method: "GET",
1082
+ pathParams: pathParams,
1083
+ headerParams: headerParams,
1084
+ queryParams: queryParams
1085
+ });
1086
+ try {
1087
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1088
+ const sdkResponse = oci_common_1.composeResponse({
1089
+ responseObject: {},
1090
+ body: yield response.json(),
1091
+ bodyKey: "workRequestSummaryCollection",
1092
+ bodyModel: model.WorkRequestSummaryCollection,
1093
+ type: "model.WorkRequestSummaryCollection",
1094
+ responseHeaders: [
1095
+ {
1096
+ value: response.headers.get("opc-request-id"),
1097
+ key: "opcRequestId",
1098
+ dataType: "string"
1099
+ },
1100
+ {
1101
+ value: response.headers.get("opc-next-page"),
1102
+ key: "opcNextPage",
1103
+ dataType: "string"
1104
+ }
1105
+ ]
1106
+ });
1107
+ return sdkResponse;
1108
+ }
1109
+ catch (err) {
1110
+ throw err;
1111
+ }
1112
+ });
1113
+ }
1114
+ /**
1115
+ * Requests Java Migration Analysis.
1116
+ *
1117
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1118
+ * @param RequestJavaMigrationAnalysisRequest
1119
+ * @return RequestJavaMigrationAnalysisResponse
1120
+ * @throws OciError when an error occurs
1121
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/RequestJavaMigrationAnalysis.ts.html |here} to see how to use RequestJavaMigrationAnalysis API.
1122
+ */
1123
+ requestJavaMigrationAnalysis(requestJavaMigrationAnalysisRequest) {
1124
+ return __awaiter(this, void 0, void 0, function* () {
1125
+ if (this.logger)
1126
+ this.logger.debug("Calling operation JmsUtilsClient#requestJavaMigrationAnalysis.");
1127
+ const operationName = "requestJavaMigrationAnalysis";
1128
+ const apiReferenceLink = "";
1129
+ const pathParams = {};
1130
+ const queryParams = {};
1131
+ let headerParams = {
1132
+ "Content-Type": common.Constants.APPLICATION_JSON,
1133
+ "opc-retry-token": requestJavaMigrationAnalysisRequest.opcRetryToken,
1134
+ "opc-request-id": requestJavaMigrationAnalysisRequest.opcRequestId
1135
+ };
1136
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1137
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestJavaMigrationAnalysisRequest.retryConfiguration, specRetryConfiguration);
1138
+ if (this.logger)
1139
+ retrier.logger = this.logger;
1140
+ const request = yield oci_common_1.composeRequest({
1141
+ baseEndpoint: this._endpoint,
1142
+ defaultHeaders: this._defaultHeaders,
1143
+ path: "/javaMigrationAnalysis/actions/requestJavaMigrationAnalysis",
1144
+ method: "POST",
1145
+ bodyContent: common.ObjectSerializer.serialize(requestJavaMigrationAnalysisRequest.requestJavaMigrationAnalysisDetails, "RequestJavaMigrationAnalysisDetails", model.RequestJavaMigrationAnalysisDetails.getJsonObj),
1146
+ pathParams: pathParams,
1147
+ headerParams: headerParams,
1148
+ queryParams: queryParams
1149
+ });
1150
+ try {
1151
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1152
+ const sdkResponse = oci_common_1.composeResponse({
1153
+ responseObject: {},
1154
+ responseHeaders: [
1155
+ {
1156
+ value: response.headers.get("opc-work-request-id"),
1157
+ key: "opcWorkRequestId",
1158
+ dataType: "string"
1159
+ },
1160
+ {
1161
+ value: response.headers.get("opc-request-id"),
1162
+ key: "opcRequestId",
1163
+ dataType: "string"
1164
+ }
1165
+ ]
1166
+ });
1167
+ return sdkResponse;
1168
+ }
1169
+ catch (err) {
1170
+ throw err;
1171
+ }
1172
+ });
1173
+ }
1174
+ /**
1175
+ * Requests Performance Tuning Analysis.
1176
+ *
1177
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1178
+ * @param RequestPerformanceTuningAnalysisRequest
1179
+ * @return RequestPerformanceTuningAnalysisResponse
1180
+ * @throws OciError when an error occurs
1181
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/RequestPerformanceTuningAnalysis.ts.html |here} to see how to use RequestPerformanceTuningAnalysis API.
1182
+ */
1183
+ requestPerformanceTuningAnalysis(requestPerformanceTuningAnalysisRequest) {
1184
+ return __awaiter(this, void 0, void 0, function* () {
1185
+ if (this.logger)
1186
+ this.logger.debug("Calling operation JmsUtilsClient#requestPerformanceTuningAnalysis.");
1187
+ const operationName = "requestPerformanceTuningAnalysis";
1188
+ const apiReferenceLink = "";
1189
+ const pathParams = {};
1190
+ const queryParams = {};
1191
+ let headerParams = {
1192
+ "Content-Type": common.Constants.APPLICATION_JSON,
1193
+ "opc-retry-token": requestPerformanceTuningAnalysisRequest.opcRetryToken,
1194
+ "opc-request-id": requestPerformanceTuningAnalysisRequest.opcRequestId
1195
+ };
1196
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1197
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestPerformanceTuningAnalysisRequest.retryConfiguration, specRetryConfiguration);
1198
+ if (this.logger)
1199
+ retrier.logger = this.logger;
1200
+ const request = yield oci_common_1.composeRequest({
1201
+ baseEndpoint: this._endpoint,
1202
+ defaultHeaders: this._defaultHeaders,
1203
+ path: "/performanceTuningAnalysis/actions/requestPerformanceTuningAnalysis",
1204
+ method: "POST",
1205
+ bodyContent: common.ObjectSerializer.serialize(requestPerformanceTuningAnalysisRequest.requestPerformanceTuningAnalysisDetails, "RequestPerformanceTuningAnalysisDetails", model.RequestPerformanceTuningAnalysisDetails.getJsonObj),
1206
+ pathParams: pathParams,
1207
+ headerParams: headerParams,
1208
+ queryParams: queryParams
1209
+ });
1210
+ try {
1211
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1212
+ const sdkResponse = oci_common_1.composeResponse({
1213
+ responseObject: {},
1214
+ responseHeaders: [
1215
+ {
1216
+ value: response.headers.get("opc-work-request-id"),
1217
+ key: "opcWorkRequestId",
1218
+ dataType: "string"
1219
+ },
1220
+ {
1221
+ value: response.headers.get("opc-request-id"),
1222
+ key: "opcRequestId",
1223
+ dataType: "string"
1224
+ }
1225
+ ]
1226
+ });
1227
+ return sdkResponse;
1228
+ }
1229
+ catch (err) {
1230
+ throw err;
1231
+ }
1232
+ });
1233
+ }
1234
+ /**
1235
+ * Updates the configuration for analyze application.
1236
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1237
+ * @param UpdateAnalyzeApplicationsConfigurationRequest
1238
+ * @return UpdateAnalyzeApplicationsConfigurationResponse
1239
+ * @throws OciError when an error occurs
1240
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/UpdateAnalyzeApplicationsConfiguration.ts.html |here} to see how to use UpdateAnalyzeApplicationsConfiguration API.
1241
+ */
1242
+ updateAnalyzeApplicationsConfiguration(updateAnalyzeApplicationsConfigurationRequest) {
1243
+ return __awaiter(this, void 0, void 0, function* () {
1244
+ if (this.logger)
1245
+ this.logger.debug("Calling operation JmsUtilsClient#updateAnalyzeApplicationsConfiguration.");
1246
+ const operationName = "updateAnalyzeApplicationsConfiguration";
1247
+ const apiReferenceLink = "";
1248
+ const pathParams = {};
1249
+ const queryParams = {
1250
+ "compartmentId": updateAnalyzeApplicationsConfigurationRequest.compartmentId
1251
+ };
1252
+ let headerParams = {
1253
+ "Content-Type": common.Constants.APPLICATION_JSON,
1254
+ "if-match": updateAnalyzeApplicationsConfigurationRequest.ifMatch,
1255
+ "opc-request-id": updateAnalyzeApplicationsConfigurationRequest.opcRequestId
1256
+ };
1257
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1258
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateAnalyzeApplicationsConfigurationRequest.retryConfiguration, specRetryConfiguration);
1259
+ if (this.logger)
1260
+ retrier.logger = this.logger;
1261
+ const request = yield oci_common_1.composeRequest({
1262
+ baseEndpoint: this._endpoint,
1263
+ defaultHeaders: this._defaultHeaders,
1264
+ path: "/analyzeApplicationsConfiguration",
1265
+ method: "PUT",
1266
+ bodyContent: common.ObjectSerializer.serialize(updateAnalyzeApplicationsConfigurationRequest.updateAnalyzeApplicationsConfigurationDetails, "UpdateAnalyzeApplicationsConfigurationDetails", model.UpdateAnalyzeApplicationsConfigurationDetails.getJsonObj),
1267
+ pathParams: pathParams,
1268
+ headerParams: headerParams,
1269
+ queryParams: queryParams
1270
+ });
1271
+ try {
1272
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1273
+ const sdkResponse = oci_common_1.composeResponse({
1274
+ responseObject: {},
1275
+ body: yield response.json(),
1276
+ bodyKey: "analyzeApplicationsConfiguration",
1277
+ bodyModel: model.AnalyzeApplicationsConfiguration,
1278
+ type: "model.AnalyzeApplicationsConfiguration",
1279
+ responseHeaders: [
1280
+ {
1281
+ value: response.headers.get("opc-request-id"),
1282
+ key: "opcRequestId",
1283
+ dataType: "string"
1284
+ },
1285
+ {
1286
+ value: response.headers.get("etag"),
1287
+ key: "etag",
1288
+ dataType: "string"
1289
+ }
1290
+ ]
1291
+ });
1292
+ return sdkResponse;
1293
+ }
1294
+ catch (err) {
1295
+ throw err;
1296
+ }
1297
+ });
1298
+ }
1299
+ /**
1300
+ * Updates the configuration for subscription acknowledgment.
1301
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1302
+ * @param UpdateSubscriptionAcknowledgmentConfigurationRequest
1303
+ * @return UpdateSubscriptionAcknowledgmentConfigurationResponse
1304
+ * @throws OciError when an error occurs
1305
+ * @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/jmsutils/UpdateSubscriptionAcknowledgmentConfiguration.ts.html |here} to see how to use UpdateSubscriptionAcknowledgmentConfiguration API.
1306
+ */
1307
+ updateSubscriptionAcknowledgmentConfiguration(updateSubscriptionAcknowledgmentConfigurationRequest) {
1308
+ return __awaiter(this, void 0, void 0, function* () {
1309
+ if (this.logger)
1310
+ this.logger.debug("Calling operation JmsUtilsClient#updateSubscriptionAcknowledgmentConfiguration.");
1311
+ const operationName = "updateSubscriptionAcknowledgmentConfiguration";
1312
+ const apiReferenceLink = "";
1313
+ const pathParams = {};
1314
+ const queryParams = {
1315
+ "compartmentId": updateSubscriptionAcknowledgmentConfigurationRequest.compartmentId
1316
+ };
1317
+ let headerParams = {
1318
+ "Content-Type": common.Constants.APPLICATION_JSON,
1319
+ "if-match": updateSubscriptionAcknowledgmentConfigurationRequest.ifMatch,
1320
+ "opc-request-id": updateSubscriptionAcknowledgmentConfigurationRequest.opcRequestId
1321
+ };
1322
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1323
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSubscriptionAcknowledgmentConfigurationRequest.retryConfiguration, specRetryConfiguration);
1324
+ if (this.logger)
1325
+ retrier.logger = this.logger;
1326
+ const request = yield oci_common_1.composeRequest({
1327
+ baseEndpoint: this._endpoint,
1328
+ defaultHeaders: this._defaultHeaders,
1329
+ path: "/subscriptionAcknowledgmentConfiguration",
1330
+ method: "PUT",
1331
+ bodyContent: common.ObjectSerializer.serialize(updateSubscriptionAcknowledgmentConfigurationRequest.updateSubscriptionAcknowledgmentConfigurationDetails, "UpdateSubscriptionAcknowledgmentConfigurationDetails", model.UpdateSubscriptionAcknowledgmentConfigurationDetails.getJsonObj),
1332
+ pathParams: pathParams,
1333
+ headerParams: headerParams,
1334
+ queryParams: queryParams
1335
+ });
1336
+ try {
1337
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1338
+ const sdkResponse = oci_common_1.composeResponse({
1339
+ responseObject: {},
1340
+ body: yield response.json(),
1341
+ bodyKey: "subscriptionAcknowledgmentConfiguration",
1342
+ bodyModel: model.SubscriptionAcknowledgmentConfiguration,
1343
+ type: "model.SubscriptionAcknowledgmentConfiguration",
1344
+ responseHeaders: [
1345
+ {
1346
+ value: response.headers.get("opc-request-id"),
1347
+ key: "opcRequestId",
1348
+ dataType: "string"
1349
+ },
1350
+ {
1351
+ value: response.headers.get("etag"),
1352
+ key: "etag",
1353
+ dataType: "string"
1354
+ }
1355
+ ]
1356
+ });
1357
+ return sdkResponse;
1358
+ }
1359
+ catch (err) {
1360
+ throw err;
1361
+ }
1362
+ });
1363
+ }
1364
+ }
1365
+ exports.JmsUtilsClient = JmsUtilsClient;
1366
+ JmsUtilsClient.serviceEndpointTemplate = "https://javamanagement-utils.{region}.oci.{secondLevelDomain}";
1367
+ JmsUtilsClient.endpointServiceName = "";
1368
+ //# sourceMappingURL=client.js.map