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