oci-optimizer 2.79.1 → 2.80.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 +28 -27
- package/lib/client.js +138 -55
- 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/filter-resource-actions-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-profile-levels-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-action-queryable-fields-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
|
@@ -60,7 +60,7 @@ var OptimizerApiKeys;
|
|
|
60
60
|
*/
|
|
61
61
|
class OptimizerClient {
|
|
62
62
|
constructor(params, clientConfiguration) {
|
|
63
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
63
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
64
64
|
this["_endpoint"] = "";
|
|
65
65
|
this["_defaultHeaders"] = {};
|
|
66
66
|
this._circuitBreaker = null;
|
|
@@ -119,7 +119,11 @@ class OptimizerClient {
|
|
|
119
119
|
set endpoint(endpoint) {
|
|
120
120
|
this._endpoint = endpoint;
|
|
121
121
|
this._endpoint = this._endpoint + "/20200606";
|
|
122
|
-
|
|
122
|
+
if (this.logger)
|
|
123
|
+
this.logger.info(`OptimizerClient endpoint set to ${this._endpoint}`);
|
|
124
|
+
}
|
|
125
|
+
get logger() {
|
|
126
|
+
return common.LOG.logger;
|
|
123
127
|
}
|
|
124
128
|
/**
|
|
125
129
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -128,7 +132,8 @@ class OptimizerClient {
|
|
|
128
132
|
*/
|
|
129
133
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
130
134
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
131
|
-
|
|
135
|
+
if (this.logger)
|
|
136
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
132
137
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
133
138
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OptimizerClient.serviceEndpointTemplate, this._region, OptimizerClient.endpointServiceName);
|
|
134
139
|
}
|
|
@@ -195,11 +200,12 @@ class OptimizerClient {
|
|
|
195
200
|
* @param BulkApplyRecommendationsRequest
|
|
196
201
|
* @return BulkApplyRecommendationsResponse
|
|
197
202
|
* @throws OciError when an error occurs
|
|
198
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
203
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/BulkApplyRecommendations.ts.html |here} to see how to use BulkApplyRecommendations API.
|
|
199
204
|
*/
|
|
200
205
|
bulkApplyRecommendations(bulkApplyRecommendationsRequest) {
|
|
201
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
-
|
|
207
|
+
if (this.logger)
|
|
208
|
+
this.logger.debug("Calling operation OptimizerClient#bulkApplyRecommendations.");
|
|
203
209
|
const operationName = "bulkApplyRecommendations";
|
|
204
210
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Recommendation/BulkApplyRecommendations";
|
|
205
211
|
const pathParams = {
|
|
@@ -213,6 +219,8 @@ class OptimizerClient {
|
|
|
213
219
|
};
|
|
214
220
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
215
221
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkApplyRecommendationsRequest.retryConfiguration, specRetryConfiguration);
|
|
222
|
+
if (this.logger)
|
|
223
|
+
retrier.logger = this.logger;
|
|
216
224
|
const request = yield oci_common_1.composeRequest({
|
|
217
225
|
baseEndpoint: this._endpoint,
|
|
218
226
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -254,11 +262,12 @@ class OptimizerClient {
|
|
|
254
262
|
* @param CreateProfileRequest
|
|
255
263
|
* @return CreateProfileResponse
|
|
256
264
|
* @throws OciError when an error occurs
|
|
257
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
265
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/CreateProfile.ts.html |here} to see how to use CreateProfile API.
|
|
258
266
|
*/
|
|
259
267
|
createProfile(createProfileRequest) {
|
|
260
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
-
|
|
269
|
+
if (this.logger)
|
|
270
|
+
this.logger.debug("Calling operation OptimizerClient#createProfile.");
|
|
262
271
|
const operationName = "createProfile";
|
|
263
272
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Profile/CreateProfile";
|
|
264
273
|
const pathParams = {};
|
|
@@ -270,6 +279,8 @@ class OptimizerClient {
|
|
|
270
279
|
};
|
|
271
280
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
272
281
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProfileRequest.retryConfiguration, specRetryConfiguration);
|
|
282
|
+
if (this.logger)
|
|
283
|
+
retrier.logger = this.logger;
|
|
273
284
|
const request = yield oci_common_1.composeRequest({
|
|
274
285
|
baseEndpoint: this._endpoint,
|
|
275
286
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -315,11 +326,12 @@ class OptimizerClient {
|
|
|
315
326
|
* @param DeleteProfileRequest
|
|
316
327
|
* @return DeleteProfileResponse
|
|
317
328
|
* @throws OciError when an error occurs
|
|
318
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
329
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/DeleteProfile.ts.html |here} to see how to use DeleteProfile API.
|
|
319
330
|
*/
|
|
320
331
|
deleteProfile(deleteProfileRequest) {
|
|
321
332
|
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
-
|
|
333
|
+
if (this.logger)
|
|
334
|
+
this.logger.debug("Calling operation OptimizerClient#deleteProfile.");
|
|
323
335
|
const operationName = "deleteProfile";
|
|
324
336
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Profile/DeleteProfile";
|
|
325
337
|
const pathParams = {
|
|
@@ -333,6 +345,8 @@ class OptimizerClient {
|
|
|
333
345
|
};
|
|
334
346
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
335
347
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteProfileRequest.retryConfiguration, specRetryConfiguration);
|
|
348
|
+
if (this.logger)
|
|
349
|
+
retrier.logger = this.logger;
|
|
336
350
|
const request = yield oci_common_1.composeRequest({
|
|
337
351
|
baseEndpoint: this._endpoint,
|
|
338
352
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -368,11 +382,12 @@ class OptimizerClient {
|
|
|
368
382
|
* @param FilterResourceActionsRequest
|
|
369
383
|
* @return FilterResourceActionsResponse
|
|
370
384
|
* @throws OciError when an error occurs
|
|
371
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
385
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/FilterResourceActions.ts.html |here} to see how to use FilterResourceActions API.
|
|
372
386
|
*/
|
|
373
387
|
filterResourceActions(filterResourceActionsRequest) {
|
|
374
388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
375
|
-
|
|
389
|
+
if (this.logger)
|
|
390
|
+
this.logger.debug("Calling operation OptimizerClient#filterResourceActions.");
|
|
376
391
|
const operationName = "filterResourceActions";
|
|
377
392
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ResourceActionSummary/FilterResourceActions";
|
|
378
393
|
const pathParams = {};
|
|
@@ -393,6 +408,8 @@ class OptimizerClient {
|
|
|
393
408
|
};
|
|
394
409
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
395
410
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, filterResourceActionsRequest.retryConfiguration, specRetryConfiguration);
|
|
411
|
+
if (this.logger)
|
|
412
|
+
retrier.logger = this.logger;
|
|
396
413
|
const request = yield oci_common_1.composeRequest({
|
|
397
414
|
baseEndpoint: this._endpoint,
|
|
398
415
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -443,11 +460,12 @@ class OptimizerClient {
|
|
|
443
460
|
* @param GetCategoryRequest
|
|
444
461
|
* @return GetCategoryResponse
|
|
445
462
|
* @throws OciError when an error occurs
|
|
446
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
463
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/GetCategory.ts.html |here} to see how to use GetCategory API.
|
|
447
464
|
*/
|
|
448
465
|
getCategory(getCategoryRequest) {
|
|
449
466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
-
|
|
467
|
+
if (this.logger)
|
|
468
|
+
this.logger.debug("Calling operation OptimizerClient#getCategory.");
|
|
451
469
|
const operationName = "getCategory";
|
|
452
470
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Category/GetCategory";
|
|
453
471
|
const pathParams = {
|
|
@@ -460,6 +478,8 @@ class OptimizerClient {
|
|
|
460
478
|
};
|
|
461
479
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
462
480
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCategoryRequest.retryConfiguration, specRetryConfiguration);
|
|
481
|
+
if (this.logger)
|
|
482
|
+
retrier.logger = this.logger;
|
|
463
483
|
const request = yield oci_common_1.composeRequest({
|
|
464
484
|
baseEndpoint: this._endpoint,
|
|
465
485
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -499,11 +519,12 @@ class OptimizerClient {
|
|
|
499
519
|
* @param GetEnrollmentStatusRequest
|
|
500
520
|
* @return GetEnrollmentStatusResponse
|
|
501
521
|
* @throws OciError when an error occurs
|
|
502
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
522
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/GetEnrollmentStatus.ts.html |here} to see how to use GetEnrollmentStatus API.
|
|
503
523
|
*/
|
|
504
524
|
getEnrollmentStatus(getEnrollmentStatusRequest) {
|
|
505
525
|
return __awaiter(this, void 0, void 0, function* () {
|
|
506
|
-
|
|
526
|
+
if (this.logger)
|
|
527
|
+
this.logger.debug("Calling operation OptimizerClient#getEnrollmentStatus.");
|
|
507
528
|
const operationName = "getEnrollmentStatus";
|
|
508
529
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/EnrollmentStatus/GetEnrollmentStatus";
|
|
509
530
|
const pathParams = {
|
|
@@ -516,6 +537,8 @@ class OptimizerClient {
|
|
|
516
537
|
};
|
|
517
538
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
518
539
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEnrollmentStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
540
|
+
if (this.logger)
|
|
541
|
+
retrier.logger = this.logger;
|
|
519
542
|
const request = yield oci_common_1.composeRequest({
|
|
520
543
|
baseEndpoint: this._endpoint,
|
|
521
544
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -560,11 +583,12 @@ class OptimizerClient {
|
|
|
560
583
|
* @param GetProfileRequest
|
|
561
584
|
* @return GetProfileResponse
|
|
562
585
|
* @throws OciError when an error occurs
|
|
563
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
586
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/GetProfile.ts.html |here} to see how to use GetProfile API.
|
|
564
587
|
*/
|
|
565
588
|
getProfile(getProfileRequest) {
|
|
566
589
|
return __awaiter(this, void 0, void 0, function* () {
|
|
567
|
-
|
|
590
|
+
if (this.logger)
|
|
591
|
+
this.logger.debug("Calling operation OptimizerClient#getProfile.");
|
|
568
592
|
const operationName = "getProfile";
|
|
569
593
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Profile/GetProfile";
|
|
570
594
|
const pathParams = {
|
|
@@ -577,6 +601,8 @@ class OptimizerClient {
|
|
|
577
601
|
};
|
|
578
602
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
579
603
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getProfileRequest.retryConfiguration, specRetryConfiguration);
|
|
604
|
+
if (this.logger)
|
|
605
|
+
retrier.logger = this.logger;
|
|
580
606
|
const request = yield oci_common_1.composeRequest({
|
|
581
607
|
baseEndpoint: this._endpoint,
|
|
582
608
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -621,11 +647,12 @@ class OptimizerClient {
|
|
|
621
647
|
* @param GetRecommendationRequest
|
|
622
648
|
* @return GetRecommendationResponse
|
|
623
649
|
* @throws OciError when an error occurs
|
|
624
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
650
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/GetRecommendation.ts.html |here} to see how to use GetRecommendation API.
|
|
625
651
|
*/
|
|
626
652
|
getRecommendation(getRecommendationRequest) {
|
|
627
653
|
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
-
|
|
654
|
+
if (this.logger)
|
|
655
|
+
this.logger.debug("Calling operation OptimizerClient#getRecommendation.");
|
|
629
656
|
const operationName = "getRecommendation";
|
|
630
657
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Recommendation/GetRecommendation";
|
|
631
658
|
const pathParams = {
|
|
@@ -638,6 +665,8 @@ class OptimizerClient {
|
|
|
638
665
|
};
|
|
639
666
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
640
667
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRecommendationRequest.retryConfiguration, specRetryConfiguration);
|
|
668
|
+
if (this.logger)
|
|
669
|
+
retrier.logger = this.logger;
|
|
641
670
|
const request = yield oci_common_1.composeRequest({
|
|
642
671
|
baseEndpoint: this._endpoint,
|
|
643
672
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -682,11 +711,12 @@ class OptimizerClient {
|
|
|
682
711
|
* @param GetResourceActionRequest
|
|
683
712
|
* @return GetResourceActionResponse
|
|
684
713
|
* @throws OciError when an error occurs
|
|
685
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
714
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/GetResourceAction.ts.html |here} to see how to use GetResourceAction API.
|
|
686
715
|
*/
|
|
687
716
|
getResourceAction(getResourceActionRequest) {
|
|
688
717
|
return __awaiter(this, void 0, void 0, function* () {
|
|
689
|
-
|
|
718
|
+
if (this.logger)
|
|
719
|
+
this.logger.debug("Calling operation OptimizerClient#getResourceAction.");
|
|
690
720
|
const operationName = "getResourceAction";
|
|
691
721
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ResourceAction/GetResourceAction";
|
|
692
722
|
const pathParams = {
|
|
@@ -701,6 +731,8 @@ class OptimizerClient {
|
|
|
701
731
|
};
|
|
702
732
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
703
733
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getResourceActionRequest.retryConfiguration, specRetryConfiguration);
|
|
734
|
+
if (this.logger)
|
|
735
|
+
retrier.logger = this.logger;
|
|
704
736
|
const request = yield oci_common_1.composeRequest({
|
|
705
737
|
baseEndpoint: this._endpoint,
|
|
706
738
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -744,11 +776,12 @@ class OptimizerClient {
|
|
|
744
776
|
* @param GetWorkRequestRequest
|
|
745
777
|
* @return GetWorkRequestResponse
|
|
746
778
|
* @throws OciError when an error occurs
|
|
747
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
779
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
748
780
|
*/
|
|
749
781
|
getWorkRequest(getWorkRequestRequest) {
|
|
750
782
|
return __awaiter(this, void 0, void 0, function* () {
|
|
751
|
-
|
|
783
|
+
if (this.logger)
|
|
784
|
+
this.logger.debug("Calling operation OptimizerClient#getWorkRequest.");
|
|
752
785
|
const operationName = "getWorkRequest";
|
|
753
786
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/WorkRequest/GetWorkRequest";
|
|
754
787
|
const pathParams = {
|
|
@@ -761,6 +794,8 @@ class OptimizerClient {
|
|
|
761
794
|
};
|
|
762
795
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
763
796
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
797
|
+
if (this.logger)
|
|
798
|
+
retrier.logger = this.logger;
|
|
764
799
|
const request = yield oci_common_1.composeRequest({
|
|
765
800
|
baseEndpoint: this._endpoint,
|
|
766
801
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -805,11 +840,12 @@ class OptimizerClient {
|
|
|
805
840
|
* @param ListCategoriesRequest
|
|
806
841
|
* @return ListCategoriesResponse
|
|
807
842
|
* @throws OciError when an error occurs
|
|
808
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
843
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListCategories.ts.html |here} to see how to use ListCategories API.
|
|
809
844
|
*/
|
|
810
845
|
listCategories(listCategoriesRequest) {
|
|
811
846
|
return __awaiter(this, void 0, void 0, function* () {
|
|
812
|
-
|
|
847
|
+
if (this.logger)
|
|
848
|
+
this.logger.debug("Calling operation OptimizerClient#listCategories.");
|
|
813
849
|
const operationName = "listCategories";
|
|
814
850
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/CategorySummary/ListCategories";
|
|
815
851
|
const pathParams = {};
|
|
@@ -831,6 +867,8 @@ class OptimizerClient {
|
|
|
831
867
|
};
|
|
832
868
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
833
869
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCategoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
870
|
+
if (this.logger)
|
|
871
|
+
retrier.logger = this.logger;
|
|
834
872
|
const request = yield oci_common_1.composeRequest({
|
|
835
873
|
baseEndpoint: this._endpoint,
|
|
836
874
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -880,11 +918,12 @@ class OptimizerClient {
|
|
|
880
918
|
* @param ListEnrollmentStatusesRequest
|
|
881
919
|
* @return ListEnrollmentStatusesResponse
|
|
882
920
|
* @throws OciError when an error occurs
|
|
883
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
921
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListEnrollmentStatuses.ts.html |here} to see how to use ListEnrollmentStatuses API.
|
|
884
922
|
*/
|
|
885
923
|
listEnrollmentStatuses(listEnrollmentStatusesRequest) {
|
|
886
924
|
return __awaiter(this, void 0, void 0, function* () {
|
|
887
|
-
|
|
925
|
+
if (this.logger)
|
|
926
|
+
this.logger.debug("Calling operation OptimizerClient#listEnrollmentStatuses.");
|
|
888
927
|
const operationName = "listEnrollmentStatuses";
|
|
889
928
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/EnrollmentStatusSummary/ListEnrollmentStatuses";
|
|
890
929
|
const pathParams = {};
|
|
@@ -903,6 +942,8 @@ class OptimizerClient {
|
|
|
903
942
|
};
|
|
904
943
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
905
944
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEnrollmentStatusesRequest.retryConfiguration, specRetryConfiguration);
|
|
945
|
+
if (this.logger)
|
|
946
|
+
retrier.logger = this.logger;
|
|
906
947
|
const request = yield oci_common_1.composeRequest({
|
|
907
948
|
baseEndpoint: this._endpoint,
|
|
908
949
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -953,11 +994,12 @@ class OptimizerClient {
|
|
|
953
994
|
* @param ListHistoriesRequest
|
|
954
995
|
* @return ListHistoriesResponse
|
|
955
996
|
* @throws OciError when an error occurs
|
|
956
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
997
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListHistories.ts.html |here} to see how to use ListHistories API.
|
|
957
998
|
*/
|
|
958
999
|
listHistories(listHistoriesRequest) {
|
|
959
1000
|
return __awaiter(this, void 0, void 0, function* () {
|
|
960
|
-
|
|
1001
|
+
if (this.logger)
|
|
1002
|
+
this.logger.debug("Calling operation OptimizerClient#listHistories.");
|
|
961
1003
|
const operationName = "listHistories";
|
|
962
1004
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/HistorySummary/ListHistories";
|
|
963
1005
|
const pathParams = {};
|
|
@@ -982,6 +1024,8 @@ class OptimizerClient {
|
|
|
982
1024
|
};
|
|
983
1025
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
984
1026
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listHistoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
1027
|
+
if (this.logger)
|
|
1028
|
+
retrier.logger = this.logger;
|
|
985
1029
|
const request = yield oci_common_1.composeRequest({
|
|
986
1030
|
baseEndpoint: this._endpoint,
|
|
987
1031
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1031,11 +1075,12 @@ class OptimizerClient {
|
|
|
1031
1075
|
* @param ListProfileLevelsRequest
|
|
1032
1076
|
* @return ListProfileLevelsResponse
|
|
1033
1077
|
* @throws OciError when an error occurs
|
|
1034
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1078
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListProfileLevels.ts.html |here} to see how to use ListProfileLevels API.
|
|
1035
1079
|
*/
|
|
1036
1080
|
listProfileLevels(listProfileLevelsRequest) {
|
|
1037
1081
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1038
|
-
|
|
1082
|
+
if (this.logger)
|
|
1083
|
+
this.logger.debug("Calling operation OptimizerClient#listProfileLevels.");
|
|
1039
1084
|
const operationName = "listProfileLevels";
|
|
1040
1085
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ProfileLevelSummary/ListProfileLevels";
|
|
1041
1086
|
const pathParams = {};
|
|
@@ -1055,6 +1100,8 @@ class OptimizerClient {
|
|
|
1055
1100
|
};
|
|
1056
1101
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1057
1102
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProfileLevelsRequest.retryConfiguration, specRetryConfiguration);
|
|
1103
|
+
if (this.logger)
|
|
1104
|
+
retrier.logger = this.logger;
|
|
1058
1105
|
const request = yield oci_common_1.composeRequest({
|
|
1059
1106
|
baseEndpoint: this._endpoint,
|
|
1060
1107
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1104,11 +1151,12 @@ class OptimizerClient {
|
|
|
1104
1151
|
* @param ListProfilesRequest
|
|
1105
1152
|
* @return ListProfilesResponse
|
|
1106
1153
|
* @throws OciError when an error occurs
|
|
1107
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1154
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListProfiles.ts.html |here} to see how to use ListProfiles API.
|
|
1108
1155
|
*/
|
|
1109
1156
|
listProfiles(listProfilesRequest) {
|
|
1110
1157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1111
|
-
|
|
1158
|
+
if (this.logger)
|
|
1159
|
+
this.logger.debug("Calling operation OptimizerClient#listProfiles.");
|
|
1112
1160
|
const operationName = "listProfiles";
|
|
1113
1161
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ProfileSummary/ListProfiles";
|
|
1114
1162
|
const pathParams = {};
|
|
@@ -1127,6 +1175,8 @@ class OptimizerClient {
|
|
|
1127
1175
|
};
|
|
1128
1176
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1129
1177
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listProfilesRequest.retryConfiguration, specRetryConfiguration);
|
|
1178
|
+
if (this.logger)
|
|
1179
|
+
retrier.logger = this.logger;
|
|
1130
1180
|
const request = yield oci_common_1.composeRequest({
|
|
1131
1181
|
baseEndpoint: this._endpoint,
|
|
1132
1182
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1176,11 +1226,12 @@ class OptimizerClient {
|
|
|
1176
1226
|
* @param ListRecommendationStrategiesRequest
|
|
1177
1227
|
* @return ListRecommendationStrategiesResponse
|
|
1178
1228
|
* @throws OciError when an error occurs
|
|
1179
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1229
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListRecommendationStrategies.ts.html |here} to see how to use ListRecommendationStrategies API.
|
|
1180
1230
|
*/
|
|
1181
1231
|
listRecommendationStrategies(listRecommendationStrategiesRequest) {
|
|
1182
1232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
|
-
|
|
1233
|
+
if (this.logger)
|
|
1234
|
+
this.logger.debug("Calling operation OptimizerClient#listRecommendationStrategies.");
|
|
1184
1235
|
const operationName = "listRecommendationStrategies";
|
|
1185
1236
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/RecommendationStrategySummary/ListRecommendationStrategies";
|
|
1186
1237
|
const pathParams = {};
|
|
@@ -1200,6 +1251,8 @@ class OptimizerClient {
|
|
|
1200
1251
|
};
|
|
1201
1252
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1202
1253
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRecommendationStrategiesRequest.retryConfiguration, specRetryConfiguration);
|
|
1254
|
+
if (this.logger)
|
|
1255
|
+
retrier.logger = this.logger;
|
|
1203
1256
|
const request = yield oci_common_1.composeRequest({
|
|
1204
1257
|
baseEndpoint: this._endpoint,
|
|
1205
1258
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1249,11 +1302,12 @@ class OptimizerClient {
|
|
|
1249
1302
|
* @param ListRecommendationsRequest
|
|
1250
1303
|
* @return ListRecommendationsResponse
|
|
1251
1304
|
* @throws OciError when an error occurs
|
|
1252
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1305
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListRecommendations.ts.html |here} to see how to use ListRecommendations API.
|
|
1253
1306
|
*/
|
|
1254
1307
|
listRecommendations(listRecommendationsRequest) {
|
|
1255
1308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1256
|
-
|
|
1309
|
+
if (this.logger)
|
|
1310
|
+
this.logger.debug("Calling operation OptimizerClient#listRecommendations.");
|
|
1257
1311
|
const operationName = "listRecommendations";
|
|
1258
1312
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/RecommendationSummary/ListRecommendations";
|
|
1259
1313
|
const pathParams = {};
|
|
@@ -1278,6 +1332,8 @@ class OptimizerClient {
|
|
|
1278
1332
|
};
|
|
1279
1333
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1280
1334
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRecommendationsRequest.retryConfiguration, specRetryConfiguration);
|
|
1335
|
+
if (this.logger)
|
|
1336
|
+
retrier.logger = this.logger;
|
|
1281
1337
|
const request = yield oci_common_1.composeRequest({
|
|
1282
1338
|
baseEndpoint: this._endpoint,
|
|
1283
1339
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1327,11 +1383,12 @@ class OptimizerClient {
|
|
|
1327
1383
|
* @param ListResourceActionQueryableFieldsRequest
|
|
1328
1384
|
* @return ListResourceActionQueryableFieldsResponse
|
|
1329
1385
|
* @throws OciError when an error occurs
|
|
1330
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1386
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListResourceActionQueryableFields.ts.html |here} to see how to use ListResourceActionQueryableFields API.
|
|
1331
1387
|
*/
|
|
1332
1388
|
listResourceActionQueryableFields(listResourceActionQueryableFieldsRequest) {
|
|
1333
1389
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1334
|
-
|
|
1390
|
+
if (this.logger)
|
|
1391
|
+
this.logger.debug("Calling operation OptimizerClient#listResourceActionQueryableFields.");
|
|
1335
1392
|
const operationName = "listResourceActionQueryableFields";
|
|
1336
1393
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/QueryableFieldSummary/ListResourceActionQueryableFields";
|
|
1337
1394
|
const pathParams = {};
|
|
@@ -1347,6 +1404,8 @@ class OptimizerClient {
|
|
|
1347
1404
|
};
|
|
1348
1405
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1349
1406
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResourceActionQueryableFieldsRequest.retryConfiguration, specRetryConfiguration);
|
|
1407
|
+
if (this.logger)
|
|
1408
|
+
retrier.logger = this.logger;
|
|
1350
1409
|
const request = yield oci_common_1.composeRequest({
|
|
1351
1410
|
baseEndpoint: this._endpoint,
|
|
1352
1411
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1396,11 +1455,12 @@ class OptimizerClient {
|
|
|
1396
1455
|
* @param ListResourceActionsRequest
|
|
1397
1456
|
* @return ListResourceActionsResponse
|
|
1398
1457
|
* @throws OciError when an error occurs
|
|
1399
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1458
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListResourceActions.ts.html |here} to see how to use ListResourceActions API.
|
|
1400
1459
|
*/
|
|
1401
1460
|
listResourceActions(listResourceActionsRequest) {
|
|
1402
1461
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1403
|
-
|
|
1462
|
+
if (this.logger)
|
|
1463
|
+
this.logger.debug("Calling operation OptimizerClient#listResourceActions.");
|
|
1404
1464
|
const operationName = "listResourceActions";
|
|
1405
1465
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ResourceActionSummary/ListResourceActions";
|
|
1406
1466
|
const pathParams = {};
|
|
@@ -1427,6 +1487,8 @@ class OptimizerClient {
|
|
|
1427
1487
|
};
|
|
1428
1488
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1429
1489
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listResourceActionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1490
|
+
if (this.logger)
|
|
1491
|
+
retrier.logger = this.logger;
|
|
1430
1492
|
const request = yield oci_common_1.composeRequest({
|
|
1431
1493
|
baseEndpoint: this._endpoint,
|
|
1432
1494
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1476,11 +1538,12 @@ class OptimizerClient {
|
|
|
1476
1538
|
* @param ListWorkRequestErrorsRequest
|
|
1477
1539
|
* @return ListWorkRequestErrorsResponse
|
|
1478
1540
|
* @throws OciError when an error occurs
|
|
1479
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1541
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1480
1542
|
*/
|
|
1481
1543
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1482
1544
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1483
|
-
|
|
1545
|
+
if (this.logger)
|
|
1546
|
+
this.logger.debug("Calling operation OptimizerClient#listWorkRequestErrors.");
|
|
1484
1547
|
const operationName = "listWorkRequestErrors";
|
|
1485
1548
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/WorkRequestError/ListWorkRequestErrors";
|
|
1486
1549
|
const pathParams = {
|
|
@@ -1496,6 +1559,8 @@ class OptimizerClient {
|
|
|
1496
1559
|
};
|
|
1497
1560
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1498
1561
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1562
|
+
if (this.logger)
|
|
1563
|
+
retrier.logger = this.logger;
|
|
1499
1564
|
const request = yield oci_common_1.composeRequest({
|
|
1500
1565
|
baseEndpoint: this._endpoint,
|
|
1501
1566
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1540,11 +1605,12 @@ class OptimizerClient {
|
|
|
1540
1605
|
* @param ListWorkRequestLogsRequest
|
|
1541
1606
|
* @return ListWorkRequestLogsResponse
|
|
1542
1607
|
* @throws OciError when an error occurs
|
|
1543
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1608
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1544
1609
|
*/
|
|
1545
1610
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1546
1611
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1547
|
-
|
|
1612
|
+
if (this.logger)
|
|
1613
|
+
this.logger.debug("Calling operation OptimizerClient#listWorkRequestLogs.");
|
|
1548
1614
|
const operationName = "listWorkRequestLogs";
|
|
1549
1615
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/WorkRequestLogEntry/ListWorkRequestLogs";
|
|
1550
1616
|
const pathParams = {
|
|
@@ -1560,6 +1626,8 @@ class OptimizerClient {
|
|
|
1560
1626
|
};
|
|
1561
1627
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1562
1628
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1629
|
+
if (this.logger)
|
|
1630
|
+
retrier.logger = this.logger;
|
|
1563
1631
|
const request = yield oci_common_1.composeRequest({
|
|
1564
1632
|
baseEndpoint: this._endpoint,
|
|
1565
1633
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1604,11 +1672,12 @@ class OptimizerClient {
|
|
|
1604
1672
|
* @param ListWorkRequestsRequest
|
|
1605
1673
|
* @return ListWorkRequestsResponse
|
|
1606
1674
|
* @throws OciError when an error occurs
|
|
1607
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1675
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1608
1676
|
*/
|
|
1609
1677
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1610
1678
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1611
|
-
|
|
1679
|
+
if (this.logger)
|
|
1680
|
+
this.logger.debug("Calling operation OptimizerClient#listWorkRequests.");
|
|
1612
1681
|
const operationName = "listWorkRequests";
|
|
1613
1682
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/WorkRequest/ListWorkRequests";
|
|
1614
1683
|
const pathParams = {};
|
|
@@ -1623,6 +1692,8 @@ class OptimizerClient {
|
|
|
1623
1692
|
};
|
|
1624
1693
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1625
1694
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1695
|
+
if (this.logger)
|
|
1696
|
+
retrier.logger = this.logger;
|
|
1626
1697
|
const request = yield oci_common_1.composeRequest({
|
|
1627
1698
|
baseEndpoint: this._endpoint,
|
|
1628
1699
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1667,11 +1738,12 @@ class OptimizerClient {
|
|
|
1667
1738
|
* @param UpdateEnrollmentStatusRequest
|
|
1668
1739
|
* @return UpdateEnrollmentStatusResponse
|
|
1669
1740
|
* @throws OciError when an error occurs
|
|
1670
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1741
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/UpdateEnrollmentStatus.ts.html |here} to see how to use UpdateEnrollmentStatus API.
|
|
1671
1742
|
*/
|
|
1672
1743
|
updateEnrollmentStatus(updateEnrollmentStatusRequest) {
|
|
1673
1744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1674
|
-
|
|
1745
|
+
if (this.logger)
|
|
1746
|
+
this.logger.debug("Calling operation OptimizerClient#updateEnrollmentStatus.");
|
|
1675
1747
|
const operationName = "updateEnrollmentStatus";
|
|
1676
1748
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/EnrollmentStatus/UpdateEnrollmentStatus";
|
|
1677
1749
|
const pathParams = {
|
|
@@ -1685,6 +1757,8 @@ class OptimizerClient {
|
|
|
1685
1757
|
};
|
|
1686
1758
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1687
1759
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEnrollmentStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
1760
|
+
if (this.logger)
|
|
1761
|
+
retrier.logger = this.logger;
|
|
1688
1762
|
const request = yield oci_common_1.composeRequest({
|
|
1689
1763
|
baseEndpoint: this._endpoint,
|
|
1690
1764
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1730,11 +1804,12 @@ class OptimizerClient {
|
|
|
1730
1804
|
* @param UpdateProfileRequest
|
|
1731
1805
|
* @return UpdateProfileResponse
|
|
1732
1806
|
* @throws OciError when an error occurs
|
|
1733
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1807
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/UpdateProfile.ts.html |here} to see how to use UpdateProfile API.
|
|
1734
1808
|
*/
|
|
1735
1809
|
updateProfile(updateProfileRequest) {
|
|
1736
1810
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1737
|
-
|
|
1811
|
+
if (this.logger)
|
|
1812
|
+
this.logger.debug("Calling operation OptimizerClient#updateProfile.");
|
|
1738
1813
|
const operationName = "updateProfile";
|
|
1739
1814
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Profile/UpdateProfile";
|
|
1740
1815
|
const pathParams = {
|
|
@@ -1748,6 +1823,8 @@ class OptimizerClient {
|
|
|
1748
1823
|
};
|
|
1749
1824
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1750
1825
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateProfileRequest.retryConfiguration, specRetryConfiguration);
|
|
1826
|
+
if (this.logger)
|
|
1827
|
+
retrier.logger = this.logger;
|
|
1751
1828
|
const request = yield oci_common_1.composeRequest({
|
|
1752
1829
|
baseEndpoint: this._endpoint,
|
|
1753
1830
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1798,11 +1875,12 @@ class OptimizerClient {
|
|
|
1798
1875
|
* @param UpdateRecommendationRequest
|
|
1799
1876
|
* @return UpdateRecommendationResponse
|
|
1800
1877
|
* @throws OciError when an error occurs
|
|
1801
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1878
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/UpdateRecommendation.ts.html |here} to see how to use UpdateRecommendation API.
|
|
1802
1879
|
*/
|
|
1803
1880
|
updateRecommendation(updateRecommendationRequest) {
|
|
1804
1881
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1805
|
-
|
|
1882
|
+
if (this.logger)
|
|
1883
|
+
this.logger.debug("Calling operation OptimizerClient#updateRecommendation.");
|
|
1806
1884
|
const operationName = "updateRecommendation";
|
|
1807
1885
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Recommendation/UpdateRecommendation";
|
|
1808
1886
|
const pathParams = {
|
|
@@ -1816,6 +1894,8 @@ class OptimizerClient {
|
|
|
1816
1894
|
};
|
|
1817
1895
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1818
1896
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRecommendationRequest.retryConfiguration, specRetryConfiguration);
|
|
1897
|
+
if (this.logger)
|
|
1898
|
+
retrier.logger = this.logger;
|
|
1819
1899
|
const request = yield oci_common_1.composeRequest({
|
|
1820
1900
|
baseEndpoint: this._endpoint,
|
|
1821
1901
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1866,11 +1946,12 @@ class OptimizerClient {
|
|
|
1866
1946
|
* @param UpdateResourceActionRequest
|
|
1867
1947
|
* @return UpdateResourceActionResponse
|
|
1868
1948
|
* @throws OciError when an error occurs
|
|
1869
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1949
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/optimizer/UpdateResourceAction.ts.html |here} to see how to use UpdateResourceAction API.
|
|
1870
1950
|
*/
|
|
1871
1951
|
updateResourceAction(updateResourceActionRequest) {
|
|
1872
1952
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1873
|
-
|
|
1953
|
+
if (this.logger)
|
|
1954
|
+
this.logger.debug("Calling operation OptimizerClient#updateResourceAction.");
|
|
1874
1955
|
const operationName = "updateResourceAction";
|
|
1875
1956
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ResourceAction/UpdateResourceAction";
|
|
1876
1957
|
const pathParams = {
|
|
@@ -1884,6 +1965,8 @@ class OptimizerClient {
|
|
|
1884
1965
|
};
|
|
1885
1966
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1886
1967
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateResourceActionRequest.retryConfiguration, specRetryConfiguration);
|
|
1968
|
+
if (this.logger)
|
|
1969
|
+
retrier.logger = this.logger;
|
|
1887
1970
|
const request = yield oci_common_1.composeRequest({
|
|
1888
1971
|
baseEndpoint: this._endpoint,
|
|
1889
1972
|
defaultHeaders: this._defaultHeaders,
|