oci-optimizer 2.5.2 → 2.6.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.
- package/lib/client.d.ts +49 -23
- package/lib/client.js +102 -46
- package/lib/client.js.map +1 -1
- package/lib/request/bulk-apply-recommendations-request.d.ts +1 -1
- package/lib/request/create-profile-request.d.ts +1 -1
- package/lib/request/delete-profile-request.d.ts +1 -1
- package/lib/request/get-category-request.d.ts +1 -1
- package/lib/request/get-enrollment-status-request.d.ts +1 -1
- package/lib/request/get-profile-request.d.ts +1 -1
- package/lib/request/get-recommendation-request.d.ts +1 -1
- package/lib/request/get-resource-action-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/list-categories-request.d.ts +1 -1
- package/lib/request/list-enrollment-statuses-request.d.ts +1 -1
- package/lib/request/list-histories-request.d.ts +1 -1
- package/lib/request/list-profiles-request.d.ts +1 -1
- package/lib/request/list-recommendation-strategies-request.d.ts +1 -1
- package/lib/request/list-recommendations-request.d.ts +1 -1
- package/lib/request/list-resource-actions-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/update-enrollment-status-request.d.ts +1 -1
- package/lib/request/update-profile-request.d.ts +1 -1
- package/lib/request/update-recommendation-request.d.ts +1 -1
- package/lib/request/update-resource-action-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -51,6 +51,9 @@ const oci_common_1 = require("oci-common");
|
|
|
51
51
|
var OptimizerApiKeys;
|
|
52
52
|
(function (OptimizerApiKeys) {
|
|
53
53
|
})(OptimizerApiKeys = exports.OptimizerApiKeys || (exports.OptimizerApiKeys = {}));
|
|
54
|
+
/**
|
|
55
|
+
* This service client does not use circuit breakers by default if the user has not defined a circuit breaker configuration.
|
|
56
|
+
*/
|
|
54
57
|
class OptimizerClient {
|
|
55
58
|
constructor(params, clientConfiguration) {
|
|
56
59
|
this["_endpoint"] = "";
|
|
@@ -65,6 +68,13 @@ class OptimizerClient {
|
|
|
65
68
|
? clientConfiguration.circuitBreaker.circuit
|
|
66
69
|
: null;
|
|
67
70
|
}
|
|
71
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
72
|
+
const specCircuitBreakerEnabled = false;
|
|
73
|
+
if (!this._circuitBreaker &&
|
|
74
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
75
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
76
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
77
|
+
}
|
|
68
78
|
this._httpClient =
|
|
69
79
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
70
80
|
if (params.authenticationDetailsProvider &&
|
|
@@ -137,10 +147,11 @@ class OptimizerClient {
|
|
|
137
147
|
/**
|
|
138
148
|
* Applies the specified recommendations to the resources.
|
|
139
149
|
*
|
|
150
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
140
151
|
* @param BulkApplyRecommendationsRequest
|
|
141
152
|
* @return BulkApplyRecommendationsResponse
|
|
142
153
|
* @throws OciError when an error occurs
|
|
143
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
154
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/BulkApplyRecommendations.ts.html |here} to see how to use BulkApplyRecommendations API.
|
|
144
155
|
*/
|
|
145
156
|
bulkApplyRecommendations(bulkApplyRecommendationsRequest) {
|
|
146
157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -155,7 +166,8 @@ class OptimizerClient {
|
|
|
155
166
|
"opc-request-id": bulkApplyRecommendationsRequest.opcRequestId,
|
|
156
167
|
"opc-retry-token": bulkApplyRecommendationsRequest.opcRetryToken
|
|
157
168
|
};
|
|
158
|
-
const
|
|
169
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
170
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkApplyRecommendationsRequest.retryConfiguration, specRetryConfiguration);
|
|
159
171
|
if (this.logger)
|
|
160
172
|
retrier.logger = this.logger;
|
|
161
173
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -195,10 +207,11 @@ class OptimizerClient {
|
|
|
195
207
|
/**
|
|
196
208
|
* Creates a new profile.
|
|
197
209
|
*
|
|
210
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
198
211
|
* @param CreateProfileRequest
|
|
199
212
|
* @return CreateProfileResponse
|
|
200
213
|
* @throws OciError when an error occurs
|
|
201
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
214
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/CreateProfile.ts.html |here} to see how to use CreateProfile API.
|
|
202
215
|
*/
|
|
203
216
|
createProfile(createProfileRequest) {
|
|
204
217
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -211,7 +224,8 @@ class OptimizerClient {
|
|
|
211
224
|
"opc-request-id": createProfileRequest.opcRequestId,
|
|
212
225
|
"opc-retry-token": createProfileRequest.opcRetryToken
|
|
213
226
|
};
|
|
214
|
-
const
|
|
227
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
228
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProfileRequest.retryConfiguration, specRetryConfiguration);
|
|
215
229
|
if (this.logger)
|
|
216
230
|
retrier.logger = this.logger;
|
|
217
231
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -255,10 +269,11 @@ class OptimizerClient {
|
|
|
255
269
|
/**
|
|
256
270
|
* Deletes the specified profile. Uses the profile's OCID to determine which profile to delete.
|
|
257
271
|
*
|
|
272
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
258
273
|
* @param DeleteProfileRequest
|
|
259
274
|
* @return DeleteProfileResponse
|
|
260
275
|
* @throws OciError when an error occurs
|
|
261
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
276
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/DeleteProfile.ts.html |here} to see how to use DeleteProfile API.
|
|
262
277
|
*/
|
|
263
278
|
deleteProfile(deleteProfileRequest) {
|
|
264
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -273,7 +288,8 @@ class OptimizerClient {
|
|
|
273
288
|
"if-match": deleteProfileRequest.ifMatch,
|
|
274
289
|
"opc-request-id": deleteProfileRequest.opcRequestId
|
|
275
290
|
};
|
|
276
|
-
const
|
|
291
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
292
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProfileRequest.retryConfiguration, specRetryConfiguration);
|
|
277
293
|
if (this.logger)
|
|
278
294
|
retrier.logger = this.logger;
|
|
279
295
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -307,10 +323,11 @@ class OptimizerClient {
|
|
|
307
323
|
/**
|
|
308
324
|
* Gets the category that corresponds to the specified OCID.
|
|
309
325
|
*
|
|
326
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
310
327
|
* @param GetCategoryRequest
|
|
311
328
|
* @return GetCategoryResponse
|
|
312
329
|
* @throws OciError when an error occurs
|
|
313
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
330
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/GetCategory.ts.html |here} to see how to use GetCategory API.
|
|
314
331
|
*/
|
|
315
332
|
getCategory(getCategoryRequest) {
|
|
316
333
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -324,7 +341,8 @@ class OptimizerClient {
|
|
|
324
341
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
325
342
|
"opc-request-id": getCategoryRequest.opcRequestId
|
|
326
343
|
};
|
|
327
|
-
const
|
|
344
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
345
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCategoryRequest.retryConfiguration, specRetryConfiguration);
|
|
328
346
|
if (this.logger)
|
|
329
347
|
retrier.logger = this.logger;
|
|
330
348
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -362,10 +380,11 @@ class OptimizerClient {
|
|
|
362
380
|
/**
|
|
363
381
|
* Gets the Cloud Advisor enrollment status.
|
|
364
382
|
*
|
|
383
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
365
384
|
* @param GetEnrollmentStatusRequest
|
|
366
385
|
* @return GetEnrollmentStatusResponse
|
|
367
386
|
* @throws OciError when an error occurs
|
|
368
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
387
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/GetEnrollmentStatus.ts.html |here} to see how to use GetEnrollmentStatus API.
|
|
369
388
|
*/
|
|
370
389
|
getEnrollmentStatus(getEnrollmentStatusRequest) {
|
|
371
390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -379,7 +398,8 @@ class OptimizerClient {
|
|
|
379
398
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
380
399
|
"opc-request-id": getEnrollmentStatusRequest.opcRequestId
|
|
381
400
|
};
|
|
382
|
-
const
|
|
401
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
402
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEnrollmentStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
383
403
|
if (this.logger)
|
|
384
404
|
retrier.logger = this.logger;
|
|
385
405
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -422,10 +442,11 @@ class OptimizerClient {
|
|
|
422
442
|
/**
|
|
423
443
|
* Gets the specified profile's information. Uses the profile's OCID to determine which profile to retrieve.
|
|
424
444
|
*
|
|
445
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
425
446
|
* @param GetProfileRequest
|
|
426
447
|
* @return GetProfileResponse
|
|
427
448
|
* @throws OciError when an error occurs
|
|
428
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
449
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/GetProfile.ts.html |here} to see how to use GetProfile API.
|
|
429
450
|
*/
|
|
430
451
|
getProfile(getProfileRequest) {
|
|
431
452
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -439,7 +460,8 @@ class OptimizerClient {
|
|
|
439
460
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
440
461
|
"opc-request-id": getProfileRequest.opcRequestId
|
|
441
462
|
};
|
|
442
|
-
const
|
|
463
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
464
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProfileRequest.retryConfiguration, specRetryConfiguration);
|
|
443
465
|
if (this.logger)
|
|
444
466
|
retrier.logger = this.logger;
|
|
445
467
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -482,10 +504,11 @@ class OptimizerClient {
|
|
|
482
504
|
/**
|
|
483
505
|
* Gets the recommendation for the specified OCID.
|
|
484
506
|
*
|
|
507
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
485
508
|
* @param GetRecommendationRequest
|
|
486
509
|
* @return GetRecommendationResponse
|
|
487
510
|
* @throws OciError when an error occurs
|
|
488
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
511
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/GetRecommendation.ts.html |here} to see how to use GetRecommendation API.
|
|
489
512
|
*/
|
|
490
513
|
getRecommendation(getRecommendationRequest) {
|
|
491
514
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -499,7 +522,8 @@ class OptimizerClient {
|
|
|
499
522
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
500
523
|
"opc-request-id": getRecommendationRequest.opcRequestId
|
|
501
524
|
};
|
|
502
|
-
const
|
|
525
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
526
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRecommendationRequest.retryConfiguration, specRetryConfiguration);
|
|
503
527
|
if (this.logger)
|
|
504
528
|
retrier.logger = this.logger;
|
|
505
529
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -542,10 +566,11 @@ class OptimizerClient {
|
|
|
542
566
|
/**
|
|
543
567
|
* Gets the resource action that corresponds to the specified OCID.
|
|
544
568
|
*
|
|
569
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
545
570
|
* @param GetResourceActionRequest
|
|
546
571
|
* @return GetResourceActionResponse
|
|
547
572
|
* @throws OciError when an error occurs
|
|
548
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
573
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/GetResourceAction.ts.html |here} to see how to use GetResourceAction API.
|
|
549
574
|
*/
|
|
550
575
|
getResourceAction(getResourceActionRequest) {
|
|
551
576
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -559,7 +584,8 @@ class OptimizerClient {
|
|
|
559
584
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
560
585
|
"opc-request-id": getResourceActionRequest.opcRequestId
|
|
561
586
|
};
|
|
562
|
-
const
|
|
587
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
588
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getResourceActionRequest.retryConfiguration, specRetryConfiguration);
|
|
563
589
|
if (this.logger)
|
|
564
590
|
retrier.logger = this.logger;
|
|
565
591
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -601,10 +627,11 @@ class OptimizerClient {
|
|
|
601
627
|
}
|
|
602
628
|
/**
|
|
603
629
|
* Gets the status of the work request associated with the specified ID.
|
|
630
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
604
631
|
* @param GetWorkRequestRequest
|
|
605
632
|
* @return GetWorkRequestResponse
|
|
606
633
|
* @throws OciError when an error occurs
|
|
607
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
634
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
608
635
|
*/
|
|
609
636
|
getWorkRequest(getWorkRequestRequest) {
|
|
610
637
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -618,7 +645,8 @@ class OptimizerClient {
|
|
|
618
645
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
619
646
|
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
620
647
|
};
|
|
621
|
-
const
|
|
648
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
649
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
622
650
|
if (this.logger)
|
|
623
651
|
retrier.logger = this.logger;
|
|
624
652
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -661,10 +689,11 @@ class OptimizerClient {
|
|
|
661
689
|
/**
|
|
662
690
|
* Lists the supported Cloud Advisor categories.
|
|
663
691
|
*
|
|
692
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
664
693
|
* @param ListCategoriesRequest
|
|
665
694
|
* @return ListCategoriesResponse
|
|
666
695
|
* @throws OciError when an error occurs
|
|
667
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
696
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListCategories.ts.html |here} to see how to use ListCategories API.
|
|
668
697
|
*/
|
|
669
698
|
listCategories(listCategoriesRequest) {
|
|
670
699
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -685,7 +714,8 @@ class OptimizerClient {
|
|
|
685
714
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
686
715
|
"opc-request-id": listCategoriesRequest.opcRequestId
|
|
687
716
|
};
|
|
688
|
-
const
|
|
717
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
718
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCategoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
689
719
|
if (this.logger)
|
|
690
720
|
retrier.logger = this.logger;
|
|
691
721
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -733,10 +763,11 @@ class OptimizerClient {
|
|
|
733
763
|
/**
|
|
734
764
|
* Lists the Cloud Advisor enrollment statuses.
|
|
735
765
|
*
|
|
766
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
736
767
|
* @param ListEnrollmentStatusesRequest
|
|
737
768
|
* @return ListEnrollmentStatusesResponse
|
|
738
769
|
* @throws OciError when an error occurs
|
|
739
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
770
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListEnrollmentStatuses.ts.html |here} to see how to use ListEnrollmentStatuses API.
|
|
740
771
|
*/
|
|
741
772
|
listEnrollmentStatuses(listEnrollmentStatusesRequest) {
|
|
742
773
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -756,7 +787,8 @@ class OptimizerClient {
|
|
|
756
787
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
757
788
|
"opc-request-id": listEnrollmentStatusesRequest.opcRequestId
|
|
758
789
|
};
|
|
759
|
-
const
|
|
790
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
791
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEnrollmentStatusesRequest.retryConfiguration, specRetryConfiguration);
|
|
760
792
|
if (this.logger)
|
|
761
793
|
retrier.logger = this.logger;
|
|
762
794
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -805,10 +837,11 @@ class OptimizerClient {
|
|
|
805
837
|
* Lists changes to the recommendations based on user activity.
|
|
806
838
|
* For example, lists when recommendations have been implemented, dismissed, postponed, or reactivated.
|
|
807
839
|
*
|
|
840
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
808
841
|
* @param ListHistoriesRequest
|
|
809
842
|
* @return ListHistoriesResponse
|
|
810
843
|
* @throws OciError when an error occurs
|
|
811
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
844
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListHistories.ts.html |here} to see how to use ListHistories API.
|
|
812
845
|
*/
|
|
813
846
|
listHistories(listHistoriesRequest) {
|
|
814
847
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -833,7 +866,8 @@ class OptimizerClient {
|
|
|
833
866
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
834
867
|
"opc-request-id": listHistoriesRequest.opcRequestId
|
|
835
868
|
};
|
|
836
|
-
const
|
|
869
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
870
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listHistoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
837
871
|
if (this.logger)
|
|
838
872
|
retrier.logger = this.logger;
|
|
839
873
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -881,10 +915,11 @@ class OptimizerClient {
|
|
|
881
915
|
/**
|
|
882
916
|
* Lists the existing profiles.
|
|
883
917
|
*
|
|
918
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
884
919
|
* @param ListProfilesRequest
|
|
885
920
|
* @return ListProfilesResponse
|
|
886
921
|
* @throws OciError when an error occurs
|
|
887
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
922
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListProfiles.ts.html |here} to see how to use ListProfiles API.
|
|
888
923
|
*/
|
|
889
924
|
listProfiles(listProfilesRequest) {
|
|
890
925
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -904,7 +939,8 @@ class OptimizerClient {
|
|
|
904
939
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
905
940
|
"opc-request-id": listProfilesRequest.opcRequestId
|
|
906
941
|
};
|
|
907
|
-
const
|
|
942
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
943
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProfilesRequest.retryConfiguration, specRetryConfiguration);
|
|
908
944
|
if (this.logger)
|
|
909
945
|
retrier.logger = this.logger;
|
|
910
946
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -952,10 +988,11 @@ class OptimizerClient {
|
|
|
952
988
|
/**
|
|
953
989
|
* Lists the existing strategies.
|
|
954
990
|
*
|
|
991
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
955
992
|
* @param ListRecommendationStrategiesRequest
|
|
956
993
|
* @return ListRecommendationStrategiesResponse
|
|
957
994
|
* @throws OciError when an error occurs
|
|
958
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
995
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListRecommendationStrategies.ts.html |here} to see how to use ListRecommendationStrategies API.
|
|
959
996
|
*/
|
|
960
997
|
listRecommendationStrategies(listRecommendationStrategiesRequest) {
|
|
961
998
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -976,7 +1013,8 @@ class OptimizerClient {
|
|
|
976
1013
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
977
1014
|
"opc-request-id": listRecommendationStrategiesRequest.opcRequestId
|
|
978
1015
|
};
|
|
979
|
-
const
|
|
1016
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1017
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRecommendationStrategiesRequest.retryConfiguration, specRetryConfiguration);
|
|
980
1018
|
if (this.logger)
|
|
981
1019
|
retrier.logger = this.logger;
|
|
982
1020
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1024,10 +1062,11 @@ class OptimizerClient {
|
|
|
1024
1062
|
/**
|
|
1025
1063
|
* Lists the Cloud Advisor recommendations that are currently supported in the specified category.
|
|
1026
1064
|
*
|
|
1065
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1027
1066
|
* @param ListRecommendationsRequest
|
|
1028
1067
|
* @return ListRecommendationsResponse
|
|
1029
1068
|
* @throws OciError when an error occurs
|
|
1030
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1069
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListRecommendations.ts.html |here} to see how to use ListRecommendations API.
|
|
1031
1070
|
*/
|
|
1032
1071
|
listRecommendations(listRecommendationsRequest) {
|
|
1033
1072
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1050,7 +1089,8 @@ class OptimizerClient {
|
|
|
1050
1089
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1051
1090
|
"opc-request-id": listRecommendationsRequest.opcRequestId
|
|
1052
1091
|
};
|
|
1053
|
-
const
|
|
1092
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1093
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRecommendationsRequest.retryConfiguration, specRetryConfiguration);
|
|
1054
1094
|
if (this.logger)
|
|
1055
1095
|
retrier.logger = this.logger;
|
|
1056
1096
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1098,10 +1138,11 @@ class OptimizerClient {
|
|
|
1098
1138
|
/**
|
|
1099
1139
|
* Lists the Cloud Advisor resource actions that are supported by the specified recommendation.
|
|
1100
1140
|
*
|
|
1141
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1101
1142
|
* @param ListResourceActionsRequest
|
|
1102
1143
|
* @return ListResourceActionsResponse
|
|
1103
1144
|
* @throws OciError when an error occurs
|
|
1104
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1145
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListResourceActions.ts.html |here} to see how to use ListResourceActions API.
|
|
1105
1146
|
*/
|
|
1106
1147
|
listResourceActions(listResourceActionsRequest) {
|
|
1107
1148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1125,7 +1166,8 @@ class OptimizerClient {
|
|
|
1125
1166
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1126
1167
|
"opc-request-id": listResourceActionsRequest.opcRequestId
|
|
1127
1168
|
};
|
|
1128
|
-
const
|
|
1169
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1170
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResourceActionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1129
1171
|
if (this.logger)
|
|
1130
1172
|
retrier.logger = this.logger;
|
|
1131
1173
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1173,10 +1215,11 @@ class OptimizerClient {
|
|
|
1173
1215
|
/**
|
|
1174
1216
|
* Lists errors associated with the specified work request.
|
|
1175
1217
|
*
|
|
1218
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1176
1219
|
* @param ListWorkRequestErrorsRequest
|
|
1177
1220
|
* @return ListWorkRequestErrorsResponse
|
|
1178
1221
|
* @throws OciError when an error occurs
|
|
1179
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1222
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1180
1223
|
*/
|
|
1181
1224
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1182
1225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1193,7 +1236,8 @@ class OptimizerClient {
|
|
|
1193
1236
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1194
1237
|
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1195
1238
|
};
|
|
1196
|
-
const
|
|
1239
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1240
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1197
1241
|
if (this.logger)
|
|
1198
1242
|
retrier.logger = this.logger;
|
|
1199
1243
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1236,10 +1280,11 @@ class OptimizerClient {
|
|
|
1236
1280
|
/**
|
|
1237
1281
|
* Lists the logs associated with the specified work request.
|
|
1238
1282
|
*
|
|
1283
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1239
1284
|
* @param ListWorkRequestLogsRequest
|
|
1240
1285
|
* @return ListWorkRequestLogsResponse
|
|
1241
1286
|
* @throws OciError when an error occurs
|
|
1242
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1287
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1243
1288
|
*/
|
|
1244
1289
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1245
1290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1256,7 +1301,8 @@ class OptimizerClient {
|
|
|
1256
1301
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1257
1302
|
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1258
1303
|
};
|
|
1259
|
-
const
|
|
1304
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1305
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1260
1306
|
if (this.logger)
|
|
1261
1307
|
retrier.logger = this.logger;
|
|
1262
1308
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1299,10 +1345,11 @@ class OptimizerClient {
|
|
|
1299
1345
|
/**
|
|
1300
1346
|
* Lists the work requests in the tenancy. The tenancy is the root compartment.
|
|
1301
1347
|
*
|
|
1348
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1302
1349
|
* @param ListWorkRequestsRequest
|
|
1303
1350
|
* @return ListWorkRequestsResponse
|
|
1304
1351
|
* @throws OciError when an error occurs
|
|
1305
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1352
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1306
1353
|
*/
|
|
1307
1354
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1308
1355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1318,7 +1365,8 @@ class OptimizerClient {
|
|
|
1318
1365
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1319
1366
|
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1320
1367
|
};
|
|
1321
|
-
const
|
|
1368
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1369
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1322
1370
|
if (this.logger)
|
|
1323
1371
|
retrier.logger = this.logger;
|
|
1324
1372
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1361,10 +1409,11 @@ class OptimizerClient {
|
|
|
1361
1409
|
/**
|
|
1362
1410
|
* Updates the enrollment status of the tenancy.
|
|
1363
1411
|
*
|
|
1412
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1364
1413
|
* @param UpdateEnrollmentStatusRequest
|
|
1365
1414
|
* @return UpdateEnrollmentStatusResponse
|
|
1366
1415
|
* @throws OciError when an error occurs
|
|
1367
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1416
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/UpdateEnrollmentStatus.ts.html |here} to see how to use UpdateEnrollmentStatus API.
|
|
1368
1417
|
*/
|
|
1369
1418
|
updateEnrollmentStatus(updateEnrollmentStatusRequest) {
|
|
1370
1419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1379,7 +1428,8 @@ class OptimizerClient {
|
|
|
1379
1428
|
"opc-request-id": updateEnrollmentStatusRequest.opcRequestId,
|
|
1380
1429
|
"if-match": updateEnrollmentStatusRequest.ifMatch
|
|
1381
1430
|
};
|
|
1382
|
-
const
|
|
1431
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1432
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEnrollmentStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
1383
1433
|
if (this.logger)
|
|
1384
1434
|
retrier.logger = this.logger;
|
|
1385
1435
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1423,10 +1473,11 @@ class OptimizerClient {
|
|
|
1423
1473
|
/**
|
|
1424
1474
|
* Updates the specified profile. Uses the profile's OCID to determine which profile to update.
|
|
1425
1475
|
*
|
|
1476
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1426
1477
|
* @param UpdateProfileRequest
|
|
1427
1478
|
* @return UpdateProfileResponse
|
|
1428
1479
|
* @throws OciError when an error occurs
|
|
1429
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1480
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/UpdateProfile.ts.html |here} to see how to use UpdateProfile API.
|
|
1430
1481
|
*/
|
|
1431
1482
|
updateProfile(updateProfileRequest) {
|
|
1432
1483
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1441,7 +1492,8 @@ class OptimizerClient {
|
|
|
1441
1492
|
"if-match": updateProfileRequest.ifMatch,
|
|
1442
1493
|
"opc-request-id": updateProfileRequest.opcRequestId
|
|
1443
1494
|
};
|
|
1444
|
-
const
|
|
1495
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1496
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProfileRequest.retryConfiguration, specRetryConfiguration);
|
|
1445
1497
|
if (this.logger)
|
|
1446
1498
|
retrier.logger = this.logger;
|
|
1447
1499
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1490,10 +1542,11 @@ class OptimizerClient {
|
|
|
1490
1542
|
* * Dismiss recommendation
|
|
1491
1543
|
* * Reactivate recommendation
|
|
1492
1544
|
*
|
|
1545
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1493
1546
|
* @param UpdateRecommendationRequest
|
|
1494
1547
|
* @return UpdateRecommendationResponse
|
|
1495
1548
|
* @throws OciError when an error occurs
|
|
1496
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1549
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/UpdateRecommendation.ts.html |here} to see how to use UpdateRecommendation API.
|
|
1497
1550
|
*/
|
|
1498
1551
|
updateRecommendation(updateRecommendationRequest) {
|
|
1499
1552
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1508,7 +1561,8 @@ class OptimizerClient {
|
|
|
1508
1561
|
"opc-request-id": updateRecommendationRequest.opcRequestId,
|
|
1509
1562
|
"if-match": updateRecommendationRequest.ifMatch
|
|
1510
1563
|
};
|
|
1511
|
-
const
|
|
1564
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1565
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRecommendationRequest.retryConfiguration, specRetryConfiguration);
|
|
1512
1566
|
if (this.logger)
|
|
1513
1567
|
retrier.logger = this.logger;
|
|
1514
1568
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1557,10 +1611,11 @@ class OptimizerClient {
|
|
|
1557
1611
|
* * Ignore resource action
|
|
1558
1612
|
* * Reactivate resource action
|
|
1559
1613
|
*
|
|
1614
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1560
1615
|
* @param UpdateResourceActionRequest
|
|
1561
1616
|
* @return UpdateResourceActionResponse
|
|
1562
1617
|
* @throws OciError when an error occurs
|
|
1563
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1618
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.6.0/optimizer/UpdateResourceAction.ts.html |here} to see how to use UpdateResourceAction API.
|
|
1564
1619
|
*/
|
|
1565
1620
|
updateResourceAction(updateResourceActionRequest) {
|
|
1566
1621
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1575,7 +1630,8 @@ class OptimizerClient {
|
|
|
1575
1630
|
"opc-request-id": updateResourceActionRequest.opcRequestId,
|
|
1576
1631
|
"if-match": updateResourceActionRequest.ifMatch
|
|
1577
1632
|
};
|
|
1578
|
-
const
|
|
1633
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1634
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateResourceActionRequest.retryConfiguration, specRetryConfiguration);
|
|
1579
1635
|
if (this.logger)
|
|
1580
1636
|
retrier.logger = this.logger;
|
|
1581
1637
|
const request = yield oci_common_1.composeRequest({
|