oci-optimizer 2.5.2 → 2.8.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 (249) hide show
  1. package/index.d.ts +4 -1
  2. package/index.js +4 -1
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +83 -24
  5. package/lib/client.js +322 -47
  6. package/lib/client.js.map +1 -1
  7. package/lib/model/action-type.d.ts +4 -1
  8. package/lib/model/action-type.js +4 -1
  9. package/lib/model/action-type.js.map +1 -1
  10. package/lib/model/action.d.ts +4 -1
  11. package/lib/model/action.js +4 -1
  12. package/lib/model/action.js.map +1 -1
  13. package/lib/model/bulk-apply-recommendations-details.d.ts +4 -1
  14. package/lib/model/bulk-apply-recommendations-details.js +4 -1
  15. package/lib/model/bulk-apply-recommendations-details.js.map +1 -1
  16. package/lib/model/bulk-apply-resource-action.d.ts +4 -1
  17. package/lib/model/bulk-apply-resource-action.js +4 -1
  18. package/lib/model/bulk-apply-resource-action.js.map +1 -1
  19. package/lib/model/category-collection.d.ts +4 -1
  20. package/lib/model/category-collection.js +4 -1
  21. package/lib/model/category-collection.js.map +1 -1
  22. package/lib/model/category-summary.d.ts +17 -3
  23. package/lib/model/category-summary.js +4 -1
  24. package/lib/model/category-summary.js.map +1 -1
  25. package/lib/model/category.d.ts +17 -3
  26. package/lib/model/category.js +4 -1
  27. package/lib/model/category.js.map +1 -1
  28. package/lib/model/create-profile-details.d.ts +8 -1
  29. package/lib/model/create-profile-details.js +4 -1
  30. package/lib/model/create-profile-details.js.map +1 -1
  31. package/lib/model/enrollment-status-collection.d.ts +4 -1
  32. package/lib/model/enrollment-status-collection.js +4 -1
  33. package/lib/model/enrollment-status-collection.js.map +1 -1
  34. package/lib/model/enrollment-status-summary.d.ts +4 -1
  35. package/lib/model/enrollment-status-summary.js +4 -1
  36. package/lib/model/enrollment-status-summary.js.map +1 -1
  37. package/lib/model/enrollment-status.d.ts +4 -1
  38. package/lib/model/enrollment-status.js +4 -1
  39. package/lib/model/enrollment-status.js.map +1 -1
  40. package/lib/model/evaluated-metric.d.ts +40 -0
  41. package/lib/model/evaluated-metric.js +32 -0
  42. package/lib/model/evaluated-metric.js.map +1 -0
  43. package/lib/model/history-collection.d.ts +4 -1
  44. package/lib/model/history-collection.js +4 -1
  45. package/lib/model/history-collection.js.map +1 -1
  46. package/lib/model/history-summary.d.ts +4 -1
  47. package/lib/model/history-summary.js +4 -1
  48. package/lib/model/history-summary.js.map +1 -1
  49. package/lib/model/importance.d.ts +4 -1
  50. package/lib/model/importance.js +4 -1
  51. package/lib/model/importance.js.map +1 -1
  52. package/lib/model/index.d.ts +18 -1
  53. package/lib/model/index.js +20 -3
  54. package/lib/model/index.js.map +1 -1
  55. package/lib/model/level-configuration.d.ts +4 -1
  56. package/lib/model/level-configuration.js +4 -1
  57. package/lib/model/level-configuration.js.map +1 -1
  58. package/lib/model/levels-configuration.d.ts +4 -1
  59. package/lib/model/levels-configuration.js +4 -1
  60. package/lib/model/levels-configuration.js.map +1 -1
  61. package/lib/model/lifecycle-state.d.ts +4 -1
  62. package/lib/model/lifecycle-state.js +4 -1
  63. package/lib/model/lifecycle-state.js.map +1 -1
  64. package/lib/model/operation-status.d.ts +4 -1
  65. package/lib/model/operation-status.js +4 -1
  66. package/lib/model/operation-status.js.map +1 -1
  67. package/lib/model/operation-type.d.ts +4 -1
  68. package/lib/model/operation-type.js +4 -1
  69. package/lib/model/operation-type.js.map +1 -1
  70. package/lib/model/optimizer-enrollment-status.d.ts +4 -1
  71. package/lib/model/optimizer-enrollment-status.js +4 -1
  72. package/lib/model/optimizer-enrollment-status.js.map +1 -1
  73. package/lib/model/profile-collection.d.ts +4 -1
  74. package/lib/model/profile-collection.js +4 -1
  75. package/lib/model/profile-collection.js.map +1 -1
  76. package/lib/model/profile-level-collection.d.ts +30 -0
  77. package/lib/model/profile-level-collection.js +64 -0
  78. package/lib/model/profile-level-collection.js.map +1 -0
  79. package/lib/model/profile-level-summary.d.ts +56 -0
  80. package/lib/model/profile-level-summary.js +64 -0
  81. package/lib/model/profile-level-summary.js.map +1 -0
  82. package/lib/model/profile-summary.d.ts +8 -1
  83. package/lib/model/profile-summary.js +4 -1
  84. package/lib/model/profile-summary.js.map +1 -1
  85. package/lib/model/profile.d.ts +8 -1
  86. package/lib/model/profile.js +4 -1
  87. package/lib/model/profile.js.map +1 -1
  88. package/lib/model/query-details.d.ts +30 -0
  89. package/lib/model/query-details.js +32 -0
  90. package/lib/model/query-details.js.map +1 -0
  91. package/lib/model/queryable-field-collection.d.ts +30 -0
  92. package/lib/model/queryable-field-collection.js +64 -0
  93. package/lib/model/queryable-field-collection.js.map +1 -0
  94. package/lib/model/queryable-field-summary.d.ts +53 -0
  95. package/lib/model/queryable-field-summary.js +77 -0
  96. package/lib/model/queryable-field-summary.js.map +1 -0
  97. package/lib/model/recommendation-collection.d.ts +4 -1
  98. package/lib/model/recommendation-collection.js +4 -1
  99. package/lib/model/recommendation-collection.js.map +1 -1
  100. package/lib/model/recommendation-count.d.ts +4 -1
  101. package/lib/model/recommendation-count.js +4 -1
  102. package/lib/model/recommendation-count.js.map +1 -1
  103. package/lib/model/recommendation-strategy-collection.d.ts +4 -1
  104. package/lib/model/recommendation-strategy-collection.js +4 -1
  105. package/lib/model/recommendation-strategy-collection.js.map +1 -1
  106. package/lib/model/recommendation-strategy-summary.d.ts +4 -1
  107. package/lib/model/recommendation-strategy-summary.js +4 -1
  108. package/lib/model/recommendation-strategy-summary.js.map +1 -1
  109. package/lib/model/recommendation-summary.d.ts +15 -1
  110. package/lib/model/recommendation-summary.js +4 -1
  111. package/lib/model/recommendation-summary.js.map +1 -1
  112. package/lib/model/recommendation.d.ts +15 -1
  113. package/lib/model/recommendation.js +4 -1
  114. package/lib/model/recommendation.js.map +1 -1
  115. package/lib/model/resource-action-collection.d.ts +4 -1
  116. package/lib/model/resource-action-collection.js +4 -1
  117. package/lib/model/resource-action-collection.js.map +1 -1
  118. package/lib/model/resource-action-summary.d.ts +4 -1
  119. package/lib/model/resource-action-summary.js +4 -1
  120. package/lib/model/resource-action-summary.js.map +1 -1
  121. package/lib/model/resource-action.d.ts +4 -1
  122. package/lib/model/resource-action.js +4 -1
  123. package/lib/model/resource-action.js.map +1 -1
  124. package/lib/model/resource-count.d.ts +4 -1
  125. package/lib/model/resource-count.js +4 -1
  126. package/lib/model/resource-count.js.map +1 -1
  127. package/lib/model/sort-order.d.ts +4 -1
  128. package/lib/model/sort-order.js +4 -1
  129. package/lib/model/sort-order.js.map +1 -1
  130. package/lib/model/status.d.ts +4 -1
  131. package/lib/model/status.js +4 -1
  132. package/lib/model/status.js.map +1 -1
  133. package/lib/model/strategy-parameter-type.d.ts +4 -1
  134. package/lib/model/strategy-parameter-type.js +4 -1
  135. package/lib/model/strategy-parameter-type.js.map +1 -1
  136. package/lib/model/strategy-parameter.d.ts +4 -1
  137. package/lib/model/strategy-parameter.js +4 -1
  138. package/lib/model/strategy-parameter.js.map +1 -1
  139. package/lib/model/strategy.d.ts +4 -1
  140. package/lib/model/strategy.js +4 -1
  141. package/lib/model/strategy.js.map +1 -1
  142. package/lib/model/supported-level.d.ts +4 -1
  143. package/lib/model/supported-level.js +4 -1
  144. package/lib/model/supported-level.js.map +1 -1
  145. package/lib/model/supported-levels.d.ts +4 -1
  146. package/lib/model/supported-levels.js +4 -1
  147. package/lib/model/supported-levels.js.map +1 -1
  148. package/lib/model/tag-value-type.d.ts +9 -6
  149. package/lib/model/tag-value-type.js +9 -6
  150. package/lib/model/tag-value-type.js.map +1 -1
  151. package/lib/model/target-compartments.d.ts +6 -3
  152. package/lib/model/target-compartments.js +4 -1
  153. package/lib/model/target-compartments.js.map +1 -1
  154. package/lib/model/target-tag.d.ts +18 -6
  155. package/lib/model/target-tag.js +4 -1
  156. package/lib/model/target-tag.js.map +1 -1
  157. package/lib/model/target-tags.d.ts +6 -3
  158. package/lib/model/target-tags.js +4 -1
  159. package/lib/model/target-tags.js.map +1 -1
  160. package/lib/model/update-enrollment-status-details.d.ts +4 -1
  161. package/lib/model/update-enrollment-status-details.js +4 -1
  162. package/lib/model/update-enrollment-status-details.js.map +1 -1
  163. package/lib/model/update-profile-details.d.ts +8 -1
  164. package/lib/model/update-profile-details.js +4 -1
  165. package/lib/model/update-profile-details.js.map +1 -1
  166. package/lib/model/update-recommendation-details.d.ts +4 -1
  167. package/lib/model/update-recommendation-details.js +4 -1
  168. package/lib/model/update-recommendation-details.js.map +1 -1
  169. package/lib/model/update-resource-action-details.d.ts +4 -1
  170. package/lib/model/update-resource-action-details.js +4 -1
  171. package/lib/model/update-resource-action-details.js.map +1 -1
  172. package/lib/model/work-request-action-type.d.ts +4 -1
  173. package/lib/model/work-request-action-type.js +4 -1
  174. package/lib/model/work-request-action-type.js.map +1 -1
  175. package/lib/model/work-request-collection.d.ts +4 -1
  176. package/lib/model/work-request-collection.js +4 -1
  177. package/lib/model/work-request-collection.js.map +1 -1
  178. package/lib/model/work-request-error-collection.d.ts +4 -1
  179. package/lib/model/work-request-error-collection.js +4 -1
  180. package/lib/model/work-request-error-collection.js.map +1 -1
  181. package/lib/model/work-request-error.d.ts +5 -2
  182. package/lib/model/work-request-error.js +4 -1
  183. package/lib/model/work-request-error.js.map +1 -1
  184. package/lib/model/work-request-log-entry-collection.d.ts +4 -1
  185. package/lib/model/work-request-log-entry-collection.js +4 -1
  186. package/lib/model/work-request-log-entry-collection.js.map +1 -1
  187. package/lib/model/work-request-log-entry.d.ts +4 -1
  188. package/lib/model/work-request-log-entry.js +4 -1
  189. package/lib/model/work-request-log-entry.js.map +1 -1
  190. package/lib/model/work-request-resource-metadata-key.d.ts +30 -0
  191. package/lib/model/work-request-resource-metadata-key.js +41 -0
  192. package/lib/model/work-request-resource-metadata-key.js.map +1 -0
  193. package/lib/model/work-request-resource.d.ts +10 -1
  194. package/lib/model/work-request-resource.js +4 -1
  195. package/lib/model/work-request-resource.js.map +1 -1
  196. package/lib/model/work-request.d.ts +4 -1
  197. package/lib/model/work-request.js +4 -1
  198. package/lib/model/work-request.js.map +1 -1
  199. package/lib/optimizer-waiter.d.ts +4 -1
  200. package/lib/optimizer-waiter.js +4 -1
  201. package/lib/optimizer-waiter.js.map +1 -1
  202. package/lib/request/bulk-apply-recommendations-request.d.ts +1 -1
  203. package/lib/request/create-profile-request.d.ts +1 -1
  204. package/lib/request/delete-profile-request.d.ts +1 -1
  205. package/lib/request/filter-resource-actions-request.d.ts +53 -0
  206. package/lib/request/filter-resource-actions-request.js +15 -0
  207. package/lib/request/filter-resource-actions-request.js.map +1 -0
  208. package/lib/request/get-category-request.d.ts +1 -1
  209. package/lib/request/get-enrollment-status-request.d.ts +1 -1
  210. package/lib/request/get-profile-request.d.ts +1 -1
  211. package/lib/request/get-recommendation-request.d.ts +1 -1
  212. package/lib/request/get-resource-action-request.d.ts +1 -1
  213. package/lib/request/get-work-request-request.d.ts +1 -1
  214. package/lib/request/index.d.ts +10 -1
  215. package/lib/request/index.js +7 -2
  216. package/lib/request/index.js.map +1 -1
  217. package/lib/request/list-categories-request.d.ts +1 -1
  218. package/lib/request/list-enrollment-statuses-request.d.ts +1 -1
  219. package/lib/request/list-histories-request.d.ts +1 -1
  220. package/lib/request/list-profile-levels-request.d.ts +68 -0
  221. package/lib/request/list-profile-levels-request.js +24 -0
  222. package/lib/request/list-profile-levels-request.js.map +1 -0
  223. package/lib/request/list-profiles-request.d.ts +1 -1
  224. package/lib/request/list-recommendation-strategies-request.d.ts +1 -1
  225. package/lib/request/list-recommendations-request.d.ts +1 -1
  226. package/lib/request/list-resource-action-queryable-fields-request.d.ts +44 -0
  227. package/lib/request/list-resource-action-queryable-fields-request.js +15 -0
  228. package/lib/request/list-resource-action-queryable-fields-request.js.map +1 -0
  229. package/lib/request/list-resource-actions-request.d.ts +1 -1
  230. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  231. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  232. package/lib/request/list-work-requests-request.d.ts +1 -1
  233. package/lib/request/update-enrollment-status-request.d.ts +1 -1
  234. package/lib/request/update-profile-request.d.ts +1 -1
  235. package/lib/request/update-recommendation-request.d.ts +1 -1
  236. package/lib/request/update-resource-action-request.d.ts +1 -1
  237. package/lib/response/filter-resource-actions-response.d.ts +38 -0
  238. package/lib/response/filter-resource-actions-response.js +15 -0
  239. package/lib/response/filter-resource-actions-response.js.map +1 -0
  240. package/lib/response/index.d.ts +10 -1
  241. package/lib/response/index.js +4 -1
  242. package/lib/response/index.js.map +1 -1
  243. package/lib/response/list-profile-levels-response.d.ts +38 -0
  244. package/lib/response/list-profile-levels-response.js +15 -0
  245. package/lib/response/list-profile-levels-response.js.map +1 -0
  246. package/lib/response/list-resource-action-queryable-fields-response.d.ts +38 -0
  247. package/lib/response/list-resource-action-queryable-fields-response.js +15 -0
  248. package/lib/response/list-resource-action-queryable-fields-response.js.map +1 -0
  249. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  /**
3
3
  * Cloud Advisor API
4
- * APIs for managing Cloud Advisor. Cloud Advisor provides recommendations that help you maximize cost savings and improve the security posture of your tenancy.
4
+ * Use the Cloud Advisor API to find potential inefficiencies in your tenancy and address them.
5
+ Cloud Advisor can help you save money, improve performance, strengthen system resilience, and improve security.
6
+ For more information, see [Cloud Advisor](/Content/CloudAdvisor/Concepts/cloudadvisoroverview.htm).
7
+
5
8
  * OpenAPI spec version: 20200606
6
9
  *
7
10
  *
@@ -51,6 +54,9 @@ const oci_common_1 = require("oci-common");
51
54
  var OptimizerApiKeys;
52
55
  (function (OptimizerApiKeys) {
53
56
  })(OptimizerApiKeys = exports.OptimizerApiKeys || (exports.OptimizerApiKeys = {}));
57
+ /**
58
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
59
+ */
54
60
  class OptimizerClient {
55
61
  constructor(params, clientConfiguration) {
56
62
  this["_endpoint"] = "";
@@ -65,6 +71,13 @@ class OptimizerClient {
65
71
  ? clientConfiguration.circuitBreaker.circuit
66
72
  : null;
67
73
  }
74
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
75
+ const specCircuitBreakerEnabled = true;
76
+ if (!this._circuitBreaker &&
77
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
78
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
79
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
80
+ }
68
81
  this._httpClient =
69
82
  params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
70
83
  if (params.authenticationDetailsProvider &&
@@ -137,10 +150,11 @@ class OptimizerClient {
137
150
  /**
138
151
  * Applies the specified recommendations to the resources.
139
152
  *
153
+ * This operation does not retry by default if the user has not defined a retry configuration.
140
154
  * @param BulkApplyRecommendationsRequest
141
155
  * @return BulkApplyRecommendationsResponse
142
156
  * @throws OciError when an error occurs
143
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/BulkApplyRecommendations.ts.html |here} to see how to use BulkApplyRecommendations API.
157
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/BulkApplyRecommendations.ts.html |here} to see how to use BulkApplyRecommendations API.
144
158
  */
145
159
  bulkApplyRecommendations(bulkApplyRecommendationsRequest) {
146
160
  return __awaiter(this, void 0, void 0, function* () {
@@ -155,7 +169,8 @@ class OptimizerClient {
155
169
  "opc-request-id": bulkApplyRecommendationsRequest.opcRequestId,
156
170
  "opc-retry-token": bulkApplyRecommendationsRequest.opcRetryToken
157
171
  };
158
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, bulkApplyRecommendationsRequest.retryConfiguration);
172
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
173
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkApplyRecommendationsRequest.retryConfiguration, specRetryConfiguration);
159
174
  if (this.logger)
160
175
  retrier.logger = this.logger;
161
176
  const request = yield oci_common_1.composeRequest({
@@ -195,10 +210,11 @@ class OptimizerClient {
195
210
  /**
196
211
  * Creates a new profile.
197
212
  *
213
+ * This operation does not retry by default if the user has not defined a retry configuration.
198
214
  * @param CreateProfileRequest
199
215
  * @return CreateProfileResponse
200
216
  * @throws OciError when an error occurs
201
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/CreateProfile.ts.html |here} to see how to use CreateProfile API.
217
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/CreateProfile.ts.html |here} to see how to use CreateProfile API.
202
218
  */
203
219
  createProfile(createProfileRequest) {
204
220
  return __awaiter(this, void 0, void 0, function* () {
@@ -211,7 +227,8 @@ class OptimizerClient {
211
227
  "opc-request-id": createProfileRequest.opcRequestId,
212
228
  "opc-retry-token": createProfileRequest.opcRetryToken
213
229
  };
214
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, createProfileRequest.retryConfiguration);
230
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
231
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProfileRequest.retryConfiguration, specRetryConfiguration);
215
232
  if (this.logger)
216
233
  retrier.logger = this.logger;
217
234
  const request = yield oci_common_1.composeRequest({
@@ -255,10 +272,11 @@ class OptimizerClient {
255
272
  /**
256
273
  * Deletes the specified profile. Uses the profile's OCID to determine which profile to delete.
257
274
  *
275
+ * This operation does not retry by default if the user has not defined a retry configuration.
258
276
  * @param DeleteProfileRequest
259
277
  * @return DeleteProfileResponse
260
278
  * @throws OciError when an error occurs
261
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/DeleteProfile.ts.html |here} to see how to use DeleteProfile API.
279
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/DeleteProfile.ts.html |here} to see how to use DeleteProfile API.
262
280
  */
263
281
  deleteProfile(deleteProfileRequest) {
264
282
  return __awaiter(this, void 0, void 0, function* () {
@@ -273,7 +291,8 @@ class OptimizerClient {
273
291
  "if-match": deleteProfileRequest.ifMatch,
274
292
  "opc-request-id": deleteProfileRequest.opcRequestId
275
293
  };
276
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, deleteProfileRequest.retryConfiguration);
294
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
295
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProfileRequest.retryConfiguration, specRetryConfiguration);
277
296
  if (this.logger)
278
297
  retrier.logger = this.logger;
279
298
  const request = yield oci_common_1.composeRequest({
@@ -304,13 +323,86 @@ class OptimizerClient {
304
323
  }
305
324
  });
306
325
  }
326
+ /**
327
+ * Queries the Cloud Advisor resource actions that are supported by the specified recommendation.
328
+ *
329
+ * This operation does not retry by default if the user has not defined a retry configuration.
330
+ * @param FilterResourceActionsRequest
331
+ * @return FilterResourceActionsResponse
332
+ * @throws OciError when an error occurs
333
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/FilterResourceActions.ts.html |here} to see how to use FilterResourceActions API.
334
+ */
335
+ filterResourceActions(filterResourceActionsRequest) {
336
+ return __awaiter(this, void 0, void 0, function* () {
337
+ if (this.logger)
338
+ this.logger.debug("Calling operation OptimizerClient#filterResourceActions.");
339
+ const pathParams = {};
340
+ const queryParams = {
341
+ "compartmentId": filterResourceActionsRequest.compartmentId,
342
+ "compartmentIdInSubtree": filterResourceActionsRequest.compartmentIdInSubtree,
343
+ "recommendationId": filterResourceActionsRequest.recommendationId,
344
+ "limit": filterResourceActionsRequest.limit,
345
+ "page": filterResourceActionsRequest.page
346
+ };
347
+ let headerParams = {
348
+ "Content-Type": common.Constants.APPLICATION_JSON,
349
+ "opc-request-id": filterResourceActionsRequest.opcRequestId
350
+ };
351
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
352
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, filterResourceActionsRequest.retryConfiguration, specRetryConfiguration);
353
+ if (this.logger)
354
+ retrier.logger = this.logger;
355
+ const request = yield oci_common_1.composeRequest({
356
+ baseEndpoint: this._endpoint,
357
+ defaultHeaders: this._defaultHeaders,
358
+ path: "/actions/filterResourceActions",
359
+ method: "POST",
360
+ bodyContent: common.ObjectSerializer.serialize(filterResourceActionsRequest.queryDetails, "QueryDetails", model.QueryDetails.getJsonObj),
361
+ pathParams: pathParams,
362
+ headerParams: headerParams,
363
+ queryParams: queryParams
364
+ });
365
+ try {
366
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
367
+ const sdkResponse = oci_common_1.composeResponse({
368
+ responseObject: {},
369
+ body: yield response.json(),
370
+ bodyKey: "resourceActionCollection",
371
+ bodyModel: model.ResourceActionCollection,
372
+ type: "model.ResourceActionCollection",
373
+ responseHeaders: [
374
+ {
375
+ value: response.headers.get("opc-request-id"),
376
+ key: "opcRequestId",
377
+ dataType: "string"
378
+ },
379
+ {
380
+ value: response.headers.get("opc-next-page"),
381
+ key: "opcNextPage",
382
+ dataType: "string"
383
+ },
384
+ {
385
+ value: response.headers.get("opc-prev-page"),
386
+ key: "opcPrevPage",
387
+ dataType: "string"
388
+ }
389
+ ]
390
+ });
391
+ return sdkResponse;
392
+ }
393
+ catch (err) {
394
+ throw err;
395
+ }
396
+ });
397
+ }
307
398
  /**
308
399
  * Gets the category that corresponds to the specified OCID.
309
400
  *
401
+ * This operation does not retry by default if the user has not defined a retry configuration.
310
402
  * @param GetCategoryRequest
311
403
  * @return GetCategoryResponse
312
404
  * @throws OciError when an error occurs
313
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/GetCategory.ts.html |here} to see how to use GetCategory API.
405
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/GetCategory.ts.html |here} to see how to use GetCategory API.
314
406
  */
315
407
  getCategory(getCategoryRequest) {
316
408
  return __awaiter(this, void 0, void 0, function* () {
@@ -324,7 +416,8 @@ class OptimizerClient {
324
416
  "Content-Type": common.Constants.APPLICATION_JSON,
325
417
  "opc-request-id": getCategoryRequest.opcRequestId
326
418
  };
327
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getCategoryRequest.retryConfiguration);
419
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
420
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCategoryRequest.retryConfiguration, specRetryConfiguration);
328
421
  if (this.logger)
329
422
  retrier.logger = this.logger;
330
423
  const request = yield oci_common_1.composeRequest({
@@ -362,10 +455,11 @@ class OptimizerClient {
362
455
  /**
363
456
  * Gets the Cloud Advisor enrollment status.
364
457
  *
458
+ * This operation does not retry by default if the user has not defined a retry configuration.
365
459
  * @param GetEnrollmentStatusRequest
366
460
  * @return GetEnrollmentStatusResponse
367
461
  * @throws OciError when an error occurs
368
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/GetEnrollmentStatus.ts.html |here} to see how to use GetEnrollmentStatus API.
462
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/GetEnrollmentStatus.ts.html |here} to see how to use GetEnrollmentStatus API.
369
463
  */
370
464
  getEnrollmentStatus(getEnrollmentStatusRequest) {
371
465
  return __awaiter(this, void 0, void 0, function* () {
@@ -379,7 +473,8 @@ class OptimizerClient {
379
473
  "Content-Type": common.Constants.APPLICATION_JSON,
380
474
  "opc-request-id": getEnrollmentStatusRequest.opcRequestId
381
475
  };
382
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getEnrollmentStatusRequest.retryConfiguration);
476
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
477
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEnrollmentStatusRequest.retryConfiguration, specRetryConfiguration);
383
478
  if (this.logger)
384
479
  retrier.logger = this.logger;
385
480
  const request = yield oci_common_1.composeRequest({
@@ -422,10 +517,11 @@ class OptimizerClient {
422
517
  /**
423
518
  * Gets the specified profile's information. Uses the profile's OCID to determine which profile to retrieve.
424
519
  *
520
+ * This operation does not retry by default if the user has not defined a retry configuration.
425
521
  * @param GetProfileRequest
426
522
  * @return GetProfileResponse
427
523
  * @throws OciError when an error occurs
428
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/GetProfile.ts.html |here} to see how to use GetProfile API.
524
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/GetProfile.ts.html |here} to see how to use GetProfile API.
429
525
  */
430
526
  getProfile(getProfileRequest) {
431
527
  return __awaiter(this, void 0, void 0, function* () {
@@ -439,7 +535,8 @@ class OptimizerClient {
439
535
  "Content-Type": common.Constants.APPLICATION_JSON,
440
536
  "opc-request-id": getProfileRequest.opcRequestId
441
537
  };
442
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getProfileRequest.retryConfiguration);
538
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
539
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProfileRequest.retryConfiguration, specRetryConfiguration);
443
540
  if (this.logger)
444
541
  retrier.logger = this.logger;
445
542
  const request = yield oci_common_1.composeRequest({
@@ -482,10 +579,11 @@ class OptimizerClient {
482
579
  /**
483
580
  * Gets the recommendation for the specified OCID.
484
581
  *
582
+ * This operation does not retry by default if the user has not defined a retry configuration.
485
583
  * @param GetRecommendationRequest
486
584
  * @return GetRecommendationResponse
487
585
  * @throws OciError when an error occurs
488
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/GetRecommendation.ts.html |here} to see how to use GetRecommendation API.
586
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/GetRecommendation.ts.html |here} to see how to use GetRecommendation API.
489
587
  */
490
588
  getRecommendation(getRecommendationRequest) {
491
589
  return __awaiter(this, void 0, void 0, function* () {
@@ -499,7 +597,8 @@ class OptimizerClient {
499
597
  "Content-Type": common.Constants.APPLICATION_JSON,
500
598
  "opc-request-id": getRecommendationRequest.opcRequestId
501
599
  };
502
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getRecommendationRequest.retryConfiguration);
600
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
601
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRecommendationRequest.retryConfiguration, specRetryConfiguration);
503
602
  if (this.logger)
504
603
  retrier.logger = this.logger;
505
604
  const request = yield oci_common_1.composeRequest({
@@ -542,10 +641,11 @@ class OptimizerClient {
542
641
  /**
543
642
  * Gets the resource action that corresponds to the specified OCID.
544
643
  *
644
+ * This operation does not retry by default if the user has not defined a retry configuration.
545
645
  * @param GetResourceActionRequest
546
646
  * @return GetResourceActionResponse
547
647
  * @throws OciError when an error occurs
548
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/GetResourceAction.ts.html |here} to see how to use GetResourceAction API.
648
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/GetResourceAction.ts.html |here} to see how to use GetResourceAction API.
549
649
  */
550
650
  getResourceAction(getResourceActionRequest) {
551
651
  return __awaiter(this, void 0, void 0, function* () {
@@ -559,7 +659,8 @@ class OptimizerClient {
559
659
  "Content-Type": common.Constants.APPLICATION_JSON,
560
660
  "opc-request-id": getResourceActionRequest.opcRequestId
561
661
  };
562
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getResourceActionRequest.retryConfiguration);
662
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
663
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getResourceActionRequest.retryConfiguration, specRetryConfiguration);
563
664
  if (this.logger)
564
665
  retrier.logger = this.logger;
565
666
  const request = yield oci_common_1.composeRequest({
@@ -601,10 +702,11 @@ class OptimizerClient {
601
702
  }
602
703
  /**
603
704
  * Gets the status of the work request associated with the specified ID.
705
+ * This operation does not retry by default if the user has not defined a retry configuration.
604
706
  * @param GetWorkRequestRequest
605
707
  * @return GetWorkRequestResponse
606
708
  * @throws OciError when an error occurs
607
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
709
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
608
710
  */
609
711
  getWorkRequest(getWorkRequestRequest) {
610
712
  return __awaiter(this, void 0, void 0, function* () {
@@ -618,7 +720,8 @@ class OptimizerClient {
618
720
  "Content-Type": common.Constants.APPLICATION_JSON,
619
721
  "opc-request-id": getWorkRequestRequest.opcRequestId
620
722
  };
621
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getWorkRequestRequest.retryConfiguration);
723
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
724
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
622
725
  if (this.logger)
623
726
  retrier.logger = this.logger;
624
727
  const request = yield oci_common_1.composeRequest({
@@ -661,10 +764,11 @@ class OptimizerClient {
661
764
  /**
662
765
  * Lists the supported Cloud Advisor categories.
663
766
  *
767
+ * This operation does not retry by default if the user has not defined a retry configuration.
664
768
  * @param ListCategoriesRequest
665
769
  * @return ListCategoriesResponse
666
770
  * @throws OciError when an error occurs
667
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListCategories.ts.html |here} to see how to use ListCategories API.
771
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListCategories.ts.html |here} to see how to use ListCategories API.
668
772
  */
669
773
  listCategories(listCategoriesRequest) {
670
774
  return __awaiter(this, void 0, void 0, function* () {
@@ -685,7 +789,8 @@ class OptimizerClient {
685
789
  "Content-Type": common.Constants.APPLICATION_JSON,
686
790
  "opc-request-id": listCategoriesRequest.opcRequestId
687
791
  };
688
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listCategoriesRequest.retryConfiguration);
792
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
793
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCategoriesRequest.retryConfiguration, specRetryConfiguration);
689
794
  if (this.logger)
690
795
  retrier.logger = this.logger;
691
796
  const request = yield oci_common_1.composeRequest({
@@ -733,10 +838,11 @@ class OptimizerClient {
733
838
  /**
734
839
  * Lists the Cloud Advisor enrollment statuses.
735
840
  *
841
+ * This operation does not retry by default if the user has not defined a retry configuration.
736
842
  * @param ListEnrollmentStatusesRequest
737
843
  * @return ListEnrollmentStatusesResponse
738
844
  * @throws OciError when an error occurs
739
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListEnrollmentStatuses.ts.html |here} to see how to use ListEnrollmentStatuses API.
845
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListEnrollmentStatuses.ts.html |here} to see how to use ListEnrollmentStatuses API.
740
846
  */
741
847
  listEnrollmentStatuses(listEnrollmentStatusesRequest) {
742
848
  return __awaiter(this, void 0, void 0, function* () {
@@ -756,7 +862,8 @@ class OptimizerClient {
756
862
  "Content-Type": common.Constants.APPLICATION_JSON,
757
863
  "opc-request-id": listEnrollmentStatusesRequest.opcRequestId
758
864
  };
759
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listEnrollmentStatusesRequest.retryConfiguration);
865
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
866
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEnrollmentStatusesRequest.retryConfiguration, specRetryConfiguration);
760
867
  if (this.logger)
761
868
  retrier.logger = this.logger;
762
869
  const request = yield oci_common_1.composeRequest({
@@ -805,10 +912,11 @@ class OptimizerClient {
805
912
  * Lists changes to the recommendations based on user activity.
806
913
  * For example, lists when recommendations have been implemented, dismissed, postponed, or reactivated.
807
914
  *
915
+ * This operation does not retry by default if the user has not defined a retry configuration.
808
916
  * @param ListHistoriesRequest
809
917
  * @return ListHistoriesResponse
810
918
  * @throws OciError when an error occurs
811
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListHistories.ts.html |here} to see how to use ListHistories API.
919
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListHistories.ts.html |here} to see how to use ListHistories API.
812
920
  */
813
921
  listHistories(listHistoriesRequest) {
814
922
  return __awaiter(this, void 0, void 0, function* () {
@@ -833,7 +941,8 @@ class OptimizerClient {
833
941
  "Content-Type": common.Constants.APPLICATION_JSON,
834
942
  "opc-request-id": listHistoriesRequest.opcRequestId
835
943
  };
836
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listHistoriesRequest.retryConfiguration);
944
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
945
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listHistoriesRequest.retryConfiguration, specRetryConfiguration);
837
946
  if (this.logger)
838
947
  retrier.logger = this.logger;
839
948
  const request = yield oci_common_1.composeRequest({
@@ -878,13 +987,88 @@ class OptimizerClient {
878
987
  }
879
988
  });
880
989
  }
990
+ /**
991
+ * Lists the existing profile levels.
992
+ *
993
+ * This operation does not retry by default if the user has not defined a retry configuration.
994
+ * @param ListProfileLevelsRequest
995
+ * @return ListProfileLevelsResponse
996
+ * @throws OciError when an error occurs
997
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListProfileLevels.ts.html |here} to see how to use ListProfileLevels API.
998
+ */
999
+ listProfileLevels(listProfileLevelsRequest) {
1000
+ return __awaiter(this, void 0, void 0, function* () {
1001
+ if (this.logger)
1002
+ this.logger.debug("Calling operation OptimizerClient#listProfileLevels.");
1003
+ const pathParams = {};
1004
+ const queryParams = {
1005
+ "compartmentId": listProfileLevelsRequest.compartmentId,
1006
+ "compartmentIdInSubtree": listProfileLevelsRequest.compartmentIdInSubtree,
1007
+ "name": listProfileLevelsRequest.name,
1008
+ "recommendationName": listProfileLevelsRequest.recommendationName,
1009
+ "limit": listProfileLevelsRequest.limit,
1010
+ "page": listProfileLevelsRequest.page,
1011
+ "sortOrder": listProfileLevelsRequest.sortOrder,
1012
+ "sortBy": listProfileLevelsRequest.sortBy
1013
+ };
1014
+ let headerParams = {
1015
+ "Content-Type": common.Constants.APPLICATION_JSON,
1016
+ "opc-request-id": listProfileLevelsRequest.opcRequestId
1017
+ };
1018
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1019
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProfileLevelsRequest.retryConfiguration, specRetryConfiguration);
1020
+ if (this.logger)
1021
+ retrier.logger = this.logger;
1022
+ const request = yield oci_common_1.composeRequest({
1023
+ baseEndpoint: this._endpoint,
1024
+ defaultHeaders: this._defaultHeaders,
1025
+ path: "/profileLevels",
1026
+ method: "GET",
1027
+ pathParams: pathParams,
1028
+ headerParams: headerParams,
1029
+ queryParams: queryParams
1030
+ });
1031
+ try {
1032
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1033
+ const sdkResponse = oci_common_1.composeResponse({
1034
+ responseObject: {},
1035
+ body: yield response.json(),
1036
+ bodyKey: "profileLevelCollection",
1037
+ bodyModel: model.ProfileLevelCollection,
1038
+ type: "model.ProfileLevelCollection",
1039
+ responseHeaders: [
1040
+ {
1041
+ value: response.headers.get("opc-request-id"),
1042
+ key: "opcRequestId",
1043
+ dataType: "string"
1044
+ },
1045
+ {
1046
+ value: response.headers.get("opc-next-page"),
1047
+ key: "opcNextPage",
1048
+ dataType: "string"
1049
+ },
1050
+ {
1051
+ value: response.headers.get("opc-prev-page"),
1052
+ key: "opcPrevPage",
1053
+ dataType: "string"
1054
+ }
1055
+ ]
1056
+ });
1057
+ return sdkResponse;
1058
+ }
1059
+ catch (err) {
1060
+ throw err;
1061
+ }
1062
+ });
1063
+ }
881
1064
  /**
882
1065
  * Lists the existing profiles.
883
1066
  *
1067
+ * This operation does not retry by default if the user has not defined a retry configuration.
884
1068
  * @param ListProfilesRequest
885
1069
  * @return ListProfilesResponse
886
1070
  * @throws OciError when an error occurs
887
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListProfiles.ts.html |here} to see how to use ListProfiles API.
1071
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListProfiles.ts.html |here} to see how to use ListProfiles API.
888
1072
  */
889
1073
  listProfiles(listProfilesRequest) {
890
1074
  return __awaiter(this, void 0, void 0, function* () {
@@ -904,7 +1088,8 @@ class OptimizerClient {
904
1088
  "Content-Type": common.Constants.APPLICATION_JSON,
905
1089
  "opc-request-id": listProfilesRequest.opcRequestId
906
1090
  };
907
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listProfilesRequest.retryConfiguration);
1091
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1092
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProfilesRequest.retryConfiguration, specRetryConfiguration);
908
1093
  if (this.logger)
909
1094
  retrier.logger = this.logger;
910
1095
  const request = yield oci_common_1.composeRequest({
@@ -952,10 +1137,11 @@ class OptimizerClient {
952
1137
  /**
953
1138
  * Lists the existing strategies.
954
1139
  *
1140
+ * This operation does not retry by default if the user has not defined a retry configuration.
955
1141
  * @param ListRecommendationStrategiesRequest
956
1142
  * @return ListRecommendationStrategiesResponse
957
1143
  * @throws OciError when an error occurs
958
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListRecommendationStrategies.ts.html |here} to see how to use ListRecommendationStrategies API.
1144
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListRecommendationStrategies.ts.html |here} to see how to use ListRecommendationStrategies API.
959
1145
  */
960
1146
  listRecommendationStrategies(listRecommendationStrategiesRequest) {
961
1147
  return __awaiter(this, void 0, void 0, function* () {
@@ -976,7 +1162,8 @@ class OptimizerClient {
976
1162
  "Content-Type": common.Constants.APPLICATION_JSON,
977
1163
  "opc-request-id": listRecommendationStrategiesRequest.opcRequestId
978
1164
  };
979
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listRecommendationStrategiesRequest.retryConfiguration);
1165
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1166
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRecommendationStrategiesRequest.retryConfiguration, specRetryConfiguration);
980
1167
  if (this.logger)
981
1168
  retrier.logger = this.logger;
982
1169
  const request = yield oci_common_1.composeRequest({
@@ -1024,10 +1211,11 @@ class OptimizerClient {
1024
1211
  /**
1025
1212
  * Lists the Cloud Advisor recommendations that are currently supported in the specified category.
1026
1213
  *
1214
+ * This operation does not retry by default if the user has not defined a retry configuration.
1027
1215
  * @param ListRecommendationsRequest
1028
1216
  * @return ListRecommendationsResponse
1029
1217
  * @throws OciError when an error occurs
1030
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListRecommendations.ts.html |here} to see how to use ListRecommendations API.
1218
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListRecommendations.ts.html |here} to see how to use ListRecommendations API.
1031
1219
  */
1032
1220
  listRecommendations(listRecommendationsRequest) {
1033
1221
  return __awaiter(this, void 0, void 0, function* () {
@@ -1050,7 +1238,8 @@ class OptimizerClient {
1050
1238
  "Content-Type": common.Constants.APPLICATION_JSON,
1051
1239
  "opc-request-id": listRecommendationsRequest.opcRequestId
1052
1240
  };
1053
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listRecommendationsRequest.retryConfiguration);
1241
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1242
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRecommendationsRequest.retryConfiguration, specRetryConfiguration);
1054
1243
  if (this.logger)
1055
1244
  retrier.logger = this.logger;
1056
1245
  const request = yield oci_common_1.composeRequest({
@@ -1095,13 +1284,84 @@ class OptimizerClient {
1095
1284
  }
1096
1285
  });
1097
1286
  }
1287
+ /**
1288
+ * Lists the fields that are indexed for querying and their associated value types.
1289
+ *
1290
+ * This operation does not retry by default if the user has not defined a retry configuration.
1291
+ * @param ListResourceActionQueryableFieldsRequest
1292
+ * @return ListResourceActionQueryableFieldsResponse
1293
+ * @throws OciError when an error occurs
1294
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListResourceActionQueryableFields.ts.html |here} to see how to use ListResourceActionQueryableFields API.
1295
+ */
1296
+ listResourceActionQueryableFields(listResourceActionQueryableFieldsRequest) {
1297
+ return __awaiter(this, void 0, void 0, function* () {
1298
+ if (this.logger)
1299
+ this.logger.debug("Calling operation OptimizerClient#listResourceActionQueryableFields.");
1300
+ const pathParams = {};
1301
+ const queryParams = {
1302
+ "compartmentId": listResourceActionQueryableFieldsRequest.compartmentId,
1303
+ "compartmentIdInSubtree": listResourceActionQueryableFieldsRequest.compartmentIdInSubtree,
1304
+ "limit": listResourceActionQueryableFieldsRequest.limit,
1305
+ "page": listResourceActionQueryableFieldsRequest.page
1306
+ };
1307
+ let headerParams = {
1308
+ "Content-Type": common.Constants.APPLICATION_JSON,
1309
+ "opc-request-id": listResourceActionQueryableFieldsRequest.opcRequestId
1310
+ };
1311
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1312
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResourceActionQueryableFieldsRequest.retryConfiguration, specRetryConfiguration);
1313
+ if (this.logger)
1314
+ retrier.logger = this.logger;
1315
+ const request = yield oci_common_1.composeRequest({
1316
+ baseEndpoint: this._endpoint,
1317
+ defaultHeaders: this._defaultHeaders,
1318
+ path: "/resourceActions/actions/getQueryableFields",
1319
+ method: "GET",
1320
+ pathParams: pathParams,
1321
+ headerParams: headerParams,
1322
+ queryParams: queryParams
1323
+ });
1324
+ try {
1325
+ const response = yield retrier.makeServiceCall(this._httpClient, request);
1326
+ const sdkResponse = oci_common_1.composeResponse({
1327
+ responseObject: {},
1328
+ body: yield response.json(),
1329
+ bodyKey: "queryableFieldCollection",
1330
+ bodyModel: model.QueryableFieldCollection,
1331
+ type: "model.QueryableFieldCollection",
1332
+ responseHeaders: [
1333
+ {
1334
+ value: response.headers.get("opc-request-id"),
1335
+ key: "opcRequestId",
1336
+ dataType: "string"
1337
+ },
1338
+ {
1339
+ value: response.headers.get("opc-next-page"),
1340
+ key: "opcNextPage",
1341
+ dataType: "string"
1342
+ },
1343
+ {
1344
+ value: response.headers.get("opc-prev-page"),
1345
+ key: "opcPrevPage",
1346
+ dataType: "string"
1347
+ }
1348
+ ]
1349
+ });
1350
+ return sdkResponse;
1351
+ }
1352
+ catch (err) {
1353
+ throw err;
1354
+ }
1355
+ });
1356
+ }
1098
1357
  /**
1099
1358
  * Lists the Cloud Advisor resource actions that are supported by the specified recommendation.
1100
1359
  *
1360
+ * This operation does not retry by default if the user has not defined a retry configuration.
1101
1361
  * @param ListResourceActionsRequest
1102
1362
  * @return ListResourceActionsResponse
1103
1363
  * @throws OciError when an error occurs
1104
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListResourceActions.ts.html |here} to see how to use ListResourceActions API.
1364
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListResourceActions.ts.html |here} to see how to use ListResourceActions API.
1105
1365
  */
1106
1366
  listResourceActions(listResourceActionsRequest) {
1107
1367
  return __awaiter(this, void 0, void 0, function* () {
@@ -1125,7 +1385,8 @@ class OptimizerClient {
1125
1385
  "Content-Type": common.Constants.APPLICATION_JSON,
1126
1386
  "opc-request-id": listResourceActionsRequest.opcRequestId
1127
1387
  };
1128
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listResourceActionsRequest.retryConfiguration);
1388
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1389
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResourceActionsRequest.retryConfiguration, specRetryConfiguration);
1129
1390
  if (this.logger)
1130
1391
  retrier.logger = this.logger;
1131
1392
  const request = yield oci_common_1.composeRequest({
@@ -1173,10 +1434,11 @@ class OptimizerClient {
1173
1434
  /**
1174
1435
  * Lists errors associated with the specified work request.
1175
1436
  *
1437
+ * This operation does not retry by default if the user has not defined a retry configuration.
1176
1438
  * @param ListWorkRequestErrorsRequest
1177
1439
  * @return ListWorkRequestErrorsResponse
1178
1440
  * @throws OciError when an error occurs
1179
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1441
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1180
1442
  */
1181
1443
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
1182
1444
  return __awaiter(this, void 0, void 0, function* () {
@@ -1193,7 +1455,8 @@ class OptimizerClient {
1193
1455
  "Content-Type": common.Constants.APPLICATION_JSON,
1194
1456
  "opc-request-id": listWorkRequestErrorsRequest.opcRequestId
1195
1457
  };
1196
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestErrorsRequest.retryConfiguration);
1458
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1459
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
1197
1460
  if (this.logger)
1198
1461
  retrier.logger = this.logger;
1199
1462
  const request = yield oci_common_1.composeRequest({
@@ -1236,10 +1499,11 @@ class OptimizerClient {
1236
1499
  /**
1237
1500
  * Lists the logs associated with the specified work request.
1238
1501
  *
1502
+ * This operation does not retry by default if the user has not defined a retry configuration.
1239
1503
  * @param ListWorkRequestLogsRequest
1240
1504
  * @return ListWorkRequestLogsResponse
1241
1505
  * @throws OciError when an error occurs
1242
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1506
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1243
1507
  */
1244
1508
  listWorkRequestLogs(listWorkRequestLogsRequest) {
1245
1509
  return __awaiter(this, void 0, void 0, function* () {
@@ -1256,7 +1520,8 @@ class OptimizerClient {
1256
1520
  "Content-Type": common.Constants.APPLICATION_JSON,
1257
1521
  "opc-request-id": listWorkRequestLogsRequest.opcRequestId
1258
1522
  };
1259
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestLogsRequest.retryConfiguration);
1523
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1524
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
1260
1525
  if (this.logger)
1261
1526
  retrier.logger = this.logger;
1262
1527
  const request = yield oci_common_1.composeRequest({
@@ -1299,10 +1564,11 @@ class OptimizerClient {
1299
1564
  /**
1300
1565
  * Lists the work requests in the tenancy. The tenancy is the root compartment.
1301
1566
  *
1567
+ * This operation does not retry by default if the user has not defined a retry configuration.
1302
1568
  * @param ListWorkRequestsRequest
1303
1569
  * @return ListWorkRequestsResponse
1304
1570
  * @throws OciError when an error occurs
1305
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1571
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1306
1572
  */
1307
1573
  listWorkRequests(listWorkRequestsRequest) {
1308
1574
  return __awaiter(this, void 0, void 0, function* () {
@@ -1318,7 +1584,8 @@ class OptimizerClient {
1318
1584
  "Content-Type": common.Constants.APPLICATION_JSON,
1319
1585
  "opc-request-id": listWorkRequestsRequest.opcRequestId
1320
1586
  };
1321
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listWorkRequestsRequest.retryConfiguration);
1587
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1588
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
1322
1589
  if (this.logger)
1323
1590
  retrier.logger = this.logger;
1324
1591
  const request = yield oci_common_1.composeRequest({
@@ -1361,10 +1628,11 @@ class OptimizerClient {
1361
1628
  /**
1362
1629
  * Updates the enrollment status of the tenancy.
1363
1630
  *
1631
+ * This operation does not retry by default if the user has not defined a retry configuration.
1364
1632
  * @param UpdateEnrollmentStatusRequest
1365
1633
  * @return UpdateEnrollmentStatusResponse
1366
1634
  * @throws OciError when an error occurs
1367
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/UpdateEnrollmentStatus.ts.html |here} to see how to use UpdateEnrollmentStatus API.
1635
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/UpdateEnrollmentStatus.ts.html |here} to see how to use UpdateEnrollmentStatus API.
1368
1636
  */
1369
1637
  updateEnrollmentStatus(updateEnrollmentStatusRequest) {
1370
1638
  return __awaiter(this, void 0, void 0, function* () {
@@ -1379,7 +1647,8 @@ class OptimizerClient {
1379
1647
  "opc-request-id": updateEnrollmentStatusRequest.opcRequestId,
1380
1648
  "if-match": updateEnrollmentStatusRequest.ifMatch
1381
1649
  };
1382
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateEnrollmentStatusRequest.retryConfiguration);
1650
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1651
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEnrollmentStatusRequest.retryConfiguration, specRetryConfiguration);
1383
1652
  if (this.logger)
1384
1653
  retrier.logger = this.logger;
1385
1654
  const request = yield oci_common_1.composeRequest({
@@ -1423,10 +1692,11 @@ class OptimizerClient {
1423
1692
  /**
1424
1693
  * Updates the specified profile. Uses the profile's OCID to determine which profile to update.
1425
1694
  *
1695
+ * This operation does not retry by default if the user has not defined a retry configuration.
1426
1696
  * @param UpdateProfileRequest
1427
1697
  * @return UpdateProfileResponse
1428
1698
  * @throws OciError when an error occurs
1429
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/UpdateProfile.ts.html |here} to see how to use UpdateProfile API.
1699
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/UpdateProfile.ts.html |here} to see how to use UpdateProfile API.
1430
1700
  */
1431
1701
  updateProfile(updateProfileRequest) {
1432
1702
  return __awaiter(this, void 0, void 0, function* () {
@@ -1441,7 +1711,8 @@ class OptimizerClient {
1441
1711
  "if-match": updateProfileRequest.ifMatch,
1442
1712
  "opc-request-id": updateProfileRequest.opcRequestId
1443
1713
  };
1444
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateProfileRequest.retryConfiguration);
1714
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1715
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProfileRequest.retryConfiguration, specRetryConfiguration);
1445
1716
  if (this.logger)
1446
1717
  retrier.logger = this.logger;
1447
1718
  const request = yield oci_common_1.composeRequest({
@@ -1490,10 +1761,11 @@ class OptimizerClient {
1490
1761
  * * Dismiss recommendation
1491
1762
  * * Reactivate recommendation
1492
1763
  *
1764
+ * This operation does not retry by default if the user has not defined a retry configuration.
1493
1765
  * @param UpdateRecommendationRequest
1494
1766
  * @return UpdateRecommendationResponse
1495
1767
  * @throws OciError when an error occurs
1496
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/UpdateRecommendation.ts.html |here} to see how to use UpdateRecommendation API.
1768
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/UpdateRecommendation.ts.html |here} to see how to use UpdateRecommendation API.
1497
1769
  */
1498
1770
  updateRecommendation(updateRecommendationRequest) {
1499
1771
  return __awaiter(this, void 0, void 0, function* () {
@@ -1508,7 +1780,8 @@ class OptimizerClient {
1508
1780
  "opc-request-id": updateRecommendationRequest.opcRequestId,
1509
1781
  "if-match": updateRecommendationRequest.ifMatch
1510
1782
  };
1511
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateRecommendationRequest.retryConfiguration);
1783
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1784
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRecommendationRequest.retryConfiguration, specRetryConfiguration);
1512
1785
  if (this.logger)
1513
1786
  retrier.logger = this.logger;
1514
1787
  const request = yield oci_common_1.composeRequest({
@@ -1557,10 +1830,11 @@ class OptimizerClient {
1557
1830
  * * Ignore resource action
1558
1831
  * * Reactivate resource action
1559
1832
  *
1833
+ * This operation does not retry by default if the user has not defined a retry configuration.
1560
1834
  * @param UpdateResourceActionRequest
1561
1835
  * @return UpdateResourceActionResponse
1562
1836
  * @throws OciError when an error occurs
1563
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.5.2/optimizer/UpdateResourceAction.ts.html |here} to see how to use UpdateResourceAction API.
1837
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/optimizer/UpdateResourceAction.ts.html |here} to see how to use UpdateResourceAction API.
1564
1838
  */
1565
1839
  updateResourceAction(updateResourceActionRequest) {
1566
1840
  return __awaiter(this, void 0, void 0, function* () {
@@ -1575,7 +1849,8 @@ class OptimizerClient {
1575
1849
  "opc-request-id": updateResourceActionRequest.opcRequestId,
1576
1850
  "if-match": updateResourceActionRequest.ifMatch
1577
1851
  };
1578
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateResourceActionRequest.retryConfiguration);
1852
+ const specRetryConfiguration = common.NoRetryConfigurationDetails;
1853
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateResourceActionRequest.retryConfiguration, specRetryConfiguration);
1579
1854
  if (this.logger)
1580
1855
  retrier.logger = this.logger;
1581
1856
  const request = yield oci_common_1.composeRequest({