oci-usageapi 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 +28 -29
- package/lib/client.js +58 -147
- package/lib/client.js.map +1 -1
- package/lib/model/date-range.js +2 -4
- package/lib/model/date-range.js.map +1 -1
- package/lib/model/result-location.js +2 -4
- package/lib/model/result-location.js.map +1 -1
- package/lib/request/create-custom-table-request.d.ts +1 -1
- package/lib/request/create-query-request.d.ts +1 -1
- package/lib/request/create-schedule-request.d.ts +1 -1
- package/lib/request/create-usage-carbon-emissions-query-request.d.ts +1 -1
- package/lib/request/delete-custom-table-request.d.ts +1 -1
- package/lib/request/delete-query-request.d.ts +1 -1
- package/lib/request/delete-schedule-request.d.ts +1 -1
- package/lib/request/delete-usage-carbon-emissions-query-request.d.ts +1 -1
- package/lib/request/get-custom-table-request.d.ts +1 -1
- package/lib/request/get-query-request.d.ts +1 -1
- package/lib/request/get-schedule-request.d.ts +1 -1
- package/lib/request/get-scheduled-run-request.d.ts +1 -1
- package/lib/request/get-usage-carbon-emissions-query-request.d.ts +1 -1
- package/lib/request/list-custom-tables-request.d.ts +1 -1
- package/lib/request/list-queries-request.d.ts +1 -1
- package/lib/request/list-scheduled-runs-request.d.ts +1 -1
- package/lib/request/list-schedules-request.d.ts +1 -1
- package/lib/request/list-usage-carbon-emissions-queries-request.d.ts +1 -1
- package/lib/request/request-average-carbon-emission-request.d.ts +1 -1
- package/lib/request/request-clean-energy-usage-request.d.ts +1 -1
- package/lib/request/request-summarized-configurations-request.d.ts +1 -1
- package/lib/request/request-summarized-usages-request.d.ts +1 -1
- package/lib/request/request-usage-carbon-emission-config-request.d.ts +1 -1
- package/lib/request/request-usage-carbon-emissions-request.d.ts +1 -1
- package/lib/request/update-custom-table-request.d.ts +1 -1
- package/lib/request/update-query-request.d.ts +1 -1
- package/lib/request/update-schedule-request.d.ts +1 -1
- package/lib/request/update-usage-carbon-emissions-query-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -116,11 +116,7 @@ class UsageapiClient {
|
|
|
116
116
|
set endpoint(endpoint) {
|
|
117
117
|
this._endpoint = endpoint;
|
|
118
118
|
this._endpoint = this._endpoint + "/20200107";
|
|
119
|
-
|
|
120
|
-
this.logger.info(`UsageapiClient endpoint set to ${this._endpoint}`);
|
|
121
|
-
}
|
|
122
|
-
get logger() {
|
|
123
|
-
return common.LOG.logger;
|
|
119
|
+
oci_common_1.logger.info(`UsageapiClient endpoint set to ${this._endpoint}`);
|
|
124
120
|
}
|
|
125
121
|
/**
|
|
126
122
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -129,8 +125,7 @@ class UsageapiClient {
|
|
|
129
125
|
*/
|
|
130
126
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
131
127
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
132
|
-
|
|
133
|
-
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
128
|
+
oci_common_1.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
134
129
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
135
130
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(UsageapiClient.serviceEndpointTemplate, this._region, UsageapiClient.endpointServiceName);
|
|
136
131
|
}
|
|
@@ -197,12 +192,11 @@ class UsageapiClient {
|
|
|
197
192
|
* @param CreateCustomTableRequest
|
|
198
193
|
* @return CreateCustomTableResponse
|
|
199
194
|
* @throws OciError when an error occurs
|
|
200
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
195
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/CreateCustomTable.ts.html |here} to see how to use CreateCustomTable API.
|
|
201
196
|
*/
|
|
202
197
|
createCustomTable(createCustomTableRequest) {
|
|
203
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
-
|
|
205
|
-
this.logger.debug("Calling operation UsageapiClient#createCustomTable.");
|
|
199
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#createCustomTable.");
|
|
206
200
|
const operationName = "createCustomTable";
|
|
207
201
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/CreateCustomTable";
|
|
208
202
|
const pathParams = {};
|
|
@@ -214,8 +208,6 @@ class UsageapiClient {
|
|
|
214
208
|
};
|
|
215
209
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
216
210
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createCustomTableRequest.retryConfiguration, specRetryConfiguration);
|
|
217
|
-
if (this.logger)
|
|
218
|
-
retrier.logger = this.logger;
|
|
219
211
|
const request = yield oci_common_1.composeRequest({
|
|
220
212
|
baseEndpoint: this._endpoint,
|
|
221
213
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -261,12 +253,11 @@ class UsageapiClient {
|
|
|
261
253
|
* @param CreateQueryRequest
|
|
262
254
|
* @return CreateQueryResponse
|
|
263
255
|
* @throws OciError when an error occurs
|
|
264
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
256
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/CreateQuery.ts.html |here} to see how to use CreateQuery API.
|
|
265
257
|
*/
|
|
266
258
|
createQuery(createQueryRequest) {
|
|
267
259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
-
|
|
269
|
-
this.logger.debug("Calling operation UsageapiClient#createQuery.");
|
|
260
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#createQuery.");
|
|
270
261
|
const operationName = "createQuery";
|
|
271
262
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/CreateQuery";
|
|
272
263
|
const pathParams = {};
|
|
@@ -278,8 +269,6 @@ class UsageapiClient {
|
|
|
278
269
|
};
|
|
279
270
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
280
271
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createQueryRequest.retryConfiguration, specRetryConfiguration);
|
|
281
|
-
if (this.logger)
|
|
282
|
-
retrier.logger = this.logger;
|
|
283
272
|
const request = yield oci_common_1.composeRequest({
|
|
284
273
|
baseEndpoint: this._endpoint,
|
|
285
274
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -325,12 +314,11 @@ class UsageapiClient {
|
|
|
325
314
|
* @param CreateScheduleRequest
|
|
326
315
|
* @return CreateScheduleResponse
|
|
327
316
|
* @throws OciError when an error occurs
|
|
328
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
317
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/CreateSchedule.ts.html |here} to see how to use CreateSchedule API.
|
|
329
318
|
*/
|
|
330
319
|
createSchedule(createScheduleRequest) {
|
|
331
320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
-
|
|
333
|
-
this.logger.debug("Calling operation UsageapiClient#createSchedule.");
|
|
321
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#createSchedule.");
|
|
334
322
|
const operationName = "createSchedule";
|
|
335
323
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/CreateSchedule";
|
|
336
324
|
const pathParams = {};
|
|
@@ -342,8 +330,6 @@ class UsageapiClient {
|
|
|
342
330
|
};
|
|
343
331
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
344
332
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
345
|
-
if (this.logger)
|
|
346
|
-
retrier.logger = this.logger;
|
|
347
333
|
const request = yield oci_common_1.composeRequest({
|
|
348
334
|
baseEndpoint: this._endpoint,
|
|
349
335
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -389,12 +375,11 @@ class UsageapiClient {
|
|
|
389
375
|
* @param CreateUsageCarbonEmissionsQueryRequest
|
|
390
376
|
* @return CreateUsageCarbonEmissionsQueryResponse
|
|
391
377
|
* @throws OciError when an error occurs
|
|
392
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
378
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/CreateUsageCarbonEmissionsQuery.ts.html |here} to see how to use CreateUsageCarbonEmissionsQuery API.
|
|
393
379
|
*/
|
|
394
380
|
createUsageCarbonEmissionsQuery(createUsageCarbonEmissionsQueryRequest) {
|
|
395
381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
396
|
-
|
|
397
|
-
this.logger.debug("Calling operation UsageapiClient#createUsageCarbonEmissionsQuery.");
|
|
382
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#createUsageCarbonEmissionsQuery.");
|
|
398
383
|
const operationName = "createUsageCarbonEmissionsQuery";
|
|
399
384
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/CreateUsageCarbonEmissionsQuery";
|
|
400
385
|
const pathParams = {};
|
|
@@ -406,8 +391,6 @@ class UsageapiClient {
|
|
|
406
391
|
};
|
|
407
392
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
408
393
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createUsageCarbonEmissionsQueryRequest.retryConfiguration, specRetryConfiguration);
|
|
409
|
-
if (this.logger)
|
|
410
|
-
retrier.logger = this.logger;
|
|
411
394
|
const request = yield oci_common_1.composeRequest({
|
|
412
395
|
baseEndpoint: this._endpoint,
|
|
413
396
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -453,12 +436,11 @@ class UsageapiClient {
|
|
|
453
436
|
* @param DeleteCustomTableRequest
|
|
454
437
|
* @return DeleteCustomTableResponse
|
|
455
438
|
* @throws OciError when an error occurs
|
|
456
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
439
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/DeleteCustomTable.ts.html |here} to see how to use DeleteCustomTable API.
|
|
457
440
|
*/
|
|
458
441
|
deleteCustomTable(deleteCustomTableRequest) {
|
|
459
442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
-
|
|
461
|
-
this.logger.debug("Calling operation UsageapiClient#deleteCustomTable.");
|
|
443
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#deleteCustomTable.");
|
|
462
444
|
const operationName = "deleteCustomTable";
|
|
463
445
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/DeleteCustomTable";
|
|
464
446
|
const pathParams = {
|
|
@@ -472,8 +454,6 @@ class UsageapiClient {
|
|
|
472
454
|
};
|
|
473
455
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
474
456
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteCustomTableRequest.retryConfiguration, specRetryConfiguration);
|
|
475
|
-
if (this.logger)
|
|
476
|
-
retrier.logger = this.logger;
|
|
477
457
|
const request = yield oci_common_1.composeRequest({
|
|
478
458
|
baseEndpoint: this._endpoint,
|
|
479
459
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -509,12 +489,11 @@ class UsageapiClient {
|
|
|
509
489
|
* @param DeleteQueryRequest
|
|
510
490
|
* @return DeleteQueryResponse
|
|
511
491
|
* @throws OciError when an error occurs
|
|
512
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
492
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/DeleteQuery.ts.html |here} to see how to use DeleteQuery API.
|
|
513
493
|
*/
|
|
514
494
|
deleteQuery(deleteQueryRequest) {
|
|
515
495
|
return __awaiter(this, void 0, void 0, function* () {
|
|
516
|
-
|
|
517
|
-
this.logger.debug("Calling operation UsageapiClient#deleteQuery.");
|
|
496
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#deleteQuery.");
|
|
518
497
|
const operationName = "deleteQuery";
|
|
519
498
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/DeleteQuery";
|
|
520
499
|
const pathParams = {
|
|
@@ -528,8 +507,6 @@ class UsageapiClient {
|
|
|
528
507
|
};
|
|
529
508
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
530
509
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteQueryRequest.retryConfiguration, specRetryConfiguration);
|
|
531
|
-
if (this.logger)
|
|
532
|
-
retrier.logger = this.logger;
|
|
533
510
|
const request = yield oci_common_1.composeRequest({
|
|
534
511
|
baseEndpoint: this._endpoint,
|
|
535
512
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -565,12 +542,11 @@ class UsageapiClient {
|
|
|
565
542
|
* @param DeleteScheduleRequest
|
|
566
543
|
* @return DeleteScheduleResponse
|
|
567
544
|
* @throws OciError when an error occurs
|
|
568
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
545
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/DeleteSchedule.ts.html |here} to see how to use DeleteSchedule API.
|
|
569
546
|
*/
|
|
570
547
|
deleteSchedule(deleteScheduleRequest) {
|
|
571
548
|
return __awaiter(this, void 0, void 0, function* () {
|
|
572
|
-
|
|
573
|
-
this.logger.debug("Calling operation UsageapiClient#deleteSchedule.");
|
|
549
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#deleteSchedule.");
|
|
574
550
|
const operationName = "deleteSchedule";
|
|
575
551
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/DeleteSchedule";
|
|
576
552
|
const pathParams = {
|
|
@@ -584,8 +560,6 @@ class UsageapiClient {
|
|
|
584
560
|
};
|
|
585
561
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
586
562
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
587
|
-
if (this.logger)
|
|
588
|
-
retrier.logger = this.logger;
|
|
589
563
|
const request = yield oci_common_1.composeRequest({
|
|
590
564
|
baseEndpoint: this._endpoint,
|
|
591
565
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -621,12 +595,11 @@ class UsageapiClient {
|
|
|
621
595
|
* @param DeleteUsageCarbonEmissionsQueryRequest
|
|
622
596
|
* @return DeleteUsageCarbonEmissionsQueryResponse
|
|
623
597
|
* @throws OciError when an error occurs
|
|
624
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
598
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/DeleteUsageCarbonEmissionsQuery.ts.html |here} to see how to use DeleteUsageCarbonEmissionsQuery API.
|
|
625
599
|
*/
|
|
626
600
|
deleteUsageCarbonEmissionsQuery(deleteUsageCarbonEmissionsQueryRequest) {
|
|
627
601
|
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
-
|
|
629
|
-
this.logger.debug("Calling operation UsageapiClient#deleteUsageCarbonEmissionsQuery.");
|
|
602
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#deleteUsageCarbonEmissionsQuery.");
|
|
630
603
|
const operationName = "deleteUsageCarbonEmissionsQuery";
|
|
631
604
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/DeleteUsageCarbonEmissionsQuery";
|
|
632
605
|
const pathParams = {
|
|
@@ -640,8 +613,6 @@ class UsageapiClient {
|
|
|
640
613
|
};
|
|
641
614
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
642
615
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteUsageCarbonEmissionsQueryRequest.retryConfiguration, specRetryConfiguration);
|
|
643
|
-
if (this.logger)
|
|
644
|
-
retrier.logger = this.logger;
|
|
645
616
|
const request = yield oci_common_1.composeRequest({
|
|
646
617
|
baseEndpoint: this._endpoint,
|
|
647
618
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -677,12 +648,11 @@ class UsageapiClient {
|
|
|
677
648
|
* @param GetCustomTableRequest
|
|
678
649
|
* @return GetCustomTableResponse
|
|
679
650
|
* @throws OciError when an error occurs
|
|
680
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
651
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/GetCustomTable.ts.html |here} to see how to use GetCustomTable API.
|
|
681
652
|
*/
|
|
682
653
|
getCustomTable(getCustomTableRequest) {
|
|
683
654
|
return __awaiter(this, void 0, void 0, function* () {
|
|
684
|
-
|
|
685
|
-
this.logger.debug("Calling operation UsageapiClient#getCustomTable.");
|
|
655
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#getCustomTable.");
|
|
686
656
|
const operationName = "getCustomTable";
|
|
687
657
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/GetCustomTable";
|
|
688
658
|
const pathParams = {
|
|
@@ -695,8 +665,6 @@ class UsageapiClient {
|
|
|
695
665
|
};
|
|
696
666
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
697
667
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCustomTableRequest.retryConfiguration, specRetryConfiguration);
|
|
698
|
-
if (this.logger)
|
|
699
|
-
retrier.logger = this.logger;
|
|
700
668
|
const request = yield oci_common_1.composeRequest({
|
|
701
669
|
baseEndpoint: this._endpoint,
|
|
702
670
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -741,12 +709,11 @@ class UsageapiClient {
|
|
|
741
709
|
* @param GetQueryRequest
|
|
742
710
|
* @return GetQueryResponse
|
|
743
711
|
* @throws OciError when an error occurs
|
|
744
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
712
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/GetQuery.ts.html |here} to see how to use GetQuery API.
|
|
745
713
|
*/
|
|
746
714
|
getQuery(getQueryRequest) {
|
|
747
715
|
return __awaiter(this, void 0, void 0, function* () {
|
|
748
|
-
|
|
749
|
-
this.logger.debug("Calling operation UsageapiClient#getQuery.");
|
|
716
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#getQuery.");
|
|
750
717
|
const operationName = "getQuery";
|
|
751
718
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/GetQuery";
|
|
752
719
|
const pathParams = {
|
|
@@ -759,8 +726,6 @@ class UsageapiClient {
|
|
|
759
726
|
};
|
|
760
727
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
761
728
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getQueryRequest.retryConfiguration, specRetryConfiguration);
|
|
762
|
-
if (this.logger)
|
|
763
|
-
retrier.logger = this.logger;
|
|
764
729
|
const request = yield oci_common_1.composeRequest({
|
|
765
730
|
baseEndpoint: this._endpoint,
|
|
766
731
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -805,12 +770,11 @@ class UsageapiClient {
|
|
|
805
770
|
* @param GetScheduleRequest
|
|
806
771
|
* @return GetScheduleResponse
|
|
807
772
|
* @throws OciError when an error occurs
|
|
808
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
773
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/GetSchedule.ts.html |here} to see how to use GetSchedule API.
|
|
809
774
|
*/
|
|
810
775
|
getSchedule(getScheduleRequest) {
|
|
811
776
|
return __awaiter(this, void 0, void 0, function* () {
|
|
812
|
-
|
|
813
|
-
this.logger.debug("Calling operation UsageapiClient#getSchedule.");
|
|
777
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#getSchedule.");
|
|
814
778
|
const operationName = "getSchedule";
|
|
815
779
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/GetSchedule";
|
|
816
780
|
const pathParams = {
|
|
@@ -823,8 +787,6 @@ class UsageapiClient {
|
|
|
823
787
|
};
|
|
824
788
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
825
789
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
826
|
-
if (this.logger)
|
|
827
|
-
retrier.logger = this.logger;
|
|
828
790
|
const request = yield oci_common_1.composeRequest({
|
|
829
791
|
baseEndpoint: this._endpoint,
|
|
830
792
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -869,12 +831,11 @@ class UsageapiClient {
|
|
|
869
831
|
* @param GetScheduledRunRequest
|
|
870
832
|
* @return GetScheduledRunResponse
|
|
871
833
|
* @throws OciError when an error occurs
|
|
872
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
834
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/GetScheduledRun.ts.html |here} to see how to use GetScheduledRun API.
|
|
873
835
|
*/
|
|
874
836
|
getScheduledRun(getScheduledRunRequest) {
|
|
875
837
|
return __awaiter(this, void 0, void 0, function* () {
|
|
876
|
-
|
|
877
|
-
this.logger.debug("Calling operation UsageapiClient#getScheduledRun.");
|
|
838
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#getScheduledRun.");
|
|
878
839
|
const operationName = "getScheduledRun";
|
|
879
840
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/ScheduledRun/GetScheduledRun";
|
|
880
841
|
const pathParams = {
|
|
@@ -887,8 +848,6 @@ class UsageapiClient {
|
|
|
887
848
|
};
|
|
888
849
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
889
850
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getScheduledRunRequest.retryConfiguration, specRetryConfiguration);
|
|
890
|
-
if (this.logger)
|
|
891
|
-
retrier.logger = this.logger;
|
|
892
851
|
const request = yield oci_common_1.composeRequest({
|
|
893
852
|
baseEndpoint: this._endpoint,
|
|
894
853
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -933,12 +892,11 @@ class UsageapiClient {
|
|
|
933
892
|
* @param GetUsageCarbonEmissionsQueryRequest
|
|
934
893
|
* @return GetUsageCarbonEmissionsQueryResponse
|
|
935
894
|
* @throws OciError when an error occurs
|
|
936
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
895
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/GetUsageCarbonEmissionsQuery.ts.html |here} to see how to use GetUsageCarbonEmissionsQuery API.
|
|
937
896
|
*/
|
|
938
897
|
getUsageCarbonEmissionsQuery(getUsageCarbonEmissionsQueryRequest) {
|
|
939
898
|
return __awaiter(this, void 0, void 0, function* () {
|
|
940
|
-
|
|
941
|
-
this.logger.debug("Calling operation UsageapiClient#getUsageCarbonEmissionsQuery.");
|
|
899
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#getUsageCarbonEmissionsQuery.");
|
|
942
900
|
const operationName = "getUsageCarbonEmissionsQuery";
|
|
943
901
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/GetUsageCarbonEmissionsQuery";
|
|
944
902
|
const pathParams = {
|
|
@@ -951,8 +909,6 @@ class UsageapiClient {
|
|
|
951
909
|
};
|
|
952
910
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
953
911
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getUsageCarbonEmissionsQueryRequest.retryConfiguration, specRetryConfiguration);
|
|
954
|
-
if (this.logger)
|
|
955
|
-
retrier.logger = this.logger;
|
|
956
912
|
const request = yield oci_common_1.composeRequest({
|
|
957
913
|
baseEndpoint: this._endpoint,
|
|
958
914
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -997,12 +953,11 @@ class UsageapiClient {
|
|
|
997
953
|
* @param ListCustomTablesRequest
|
|
998
954
|
* @return ListCustomTablesResponse
|
|
999
955
|
* @throws OciError when an error occurs
|
|
1000
|
-
* @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/usageapi/ListCustomTables.ts.html |here} to see how to use ListCustomTables API.
|
|
1001
957
|
*/
|
|
1002
958
|
listCustomTables(listCustomTablesRequest) {
|
|
1003
959
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1004
|
-
|
|
1005
|
-
this.logger.debug("Calling operation UsageapiClient#listCustomTables.");
|
|
960
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#listCustomTables.");
|
|
1006
961
|
const operationName = "listCustomTables";
|
|
1007
962
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/ListCustomTables";
|
|
1008
963
|
const pathParams = {};
|
|
@@ -1020,8 +975,6 @@ class UsageapiClient {
|
|
|
1020
975
|
};
|
|
1021
976
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1022
977
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCustomTablesRequest.retryConfiguration, specRetryConfiguration);
|
|
1023
|
-
if (this.logger)
|
|
1024
|
-
retrier.logger = this.logger;
|
|
1025
978
|
const request = yield oci_common_1.composeRequest({
|
|
1026
979
|
baseEndpoint: this._endpoint,
|
|
1027
980
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1066,12 +1019,11 @@ class UsageapiClient {
|
|
|
1066
1019
|
* @param ListQueriesRequest
|
|
1067
1020
|
* @return ListQueriesResponse
|
|
1068
1021
|
* @throws OciError when an error occurs
|
|
1069
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1022
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/ListQueries.ts.html |here} to see how to use ListQueries API.
|
|
1070
1023
|
*/
|
|
1071
1024
|
listQueries(listQueriesRequest) {
|
|
1072
1025
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1073
|
-
|
|
1074
|
-
this.logger.debug("Calling operation UsageapiClient#listQueries.");
|
|
1026
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#listQueries.");
|
|
1075
1027
|
const operationName = "listQueries";
|
|
1076
1028
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/ListQueries";
|
|
1077
1029
|
const pathParams = {};
|
|
@@ -1088,8 +1040,6 @@ class UsageapiClient {
|
|
|
1088
1040
|
};
|
|
1089
1041
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1090
1042
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listQueriesRequest.retryConfiguration, specRetryConfiguration);
|
|
1091
|
-
if (this.logger)
|
|
1092
|
-
retrier.logger = this.logger;
|
|
1093
1043
|
const request = yield oci_common_1.composeRequest({
|
|
1094
1044
|
baseEndpoint: this._endpoint,
|
|
1095
1045
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1134,12 +1084,11 @@ class UsageapiClient {
|
|
|
1134
1084
|
* @param ListScheduledRunsRequest
|
|
1135
1085
|
* @return ListScheduledRunsResponse
|
|
1136
1086
|
* @throws OciError when an error occurs
|
|
1137
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1087
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/ListScheduledRuns.ts.html |here} to see how to use ListScheduledRuns API.
|
|
1138
1088
|
*/
|
|
1139
1089
|
listScheduledRuns(listScheduledRunsRequest) {
|
|
1140
1090
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1141
|
-
|
|
1142
|
-
this.logger.debug("Calling operation UsageapiClient#listScheduledRuns.");
|
|
1091
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#listScheduledRuns.");
|
|
1143
1092
|
const operationName = "listScheduledRuns";
|
|
1144
1093
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/ScheduledRun/ListScheduledRuns";
|
|
1145
1094
|
const pathParams = {};
|
|
@@ -1156,8 +1105,6 @@ class UsageapiClient {
|
|
|
1156
1105
|
};
|
|
1157
1106
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1158
1107
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listScheduledRunsRequest.retryConfiguration, specRetryConfiguration);
|
|
1159
|
-
if (this.logger)
|
|
1160
|
-
retrier.logger = this.logger;
|
|
1161
1108
|
const request = yield oci_common_1.composeRequest({
|
|
1162
1109
|
baseEndpoint: this._endpoint,
|
|
1163
1110
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1202,12 +1149,11 @@ class UsageapiClient {
|
|
|
1202
1149
|
* @param ListSchedulesRequest
|
|
1203
1150
|
* @return ListSchedulesResponse
|
|
1204
1151
|
* @throws OciError when an error occurs
|
|
1205
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1152
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/ListSchedules.ts.html |here} to see how to use ListSchedules API.
|
|
1206
1153
|
*/
|
|
1207
1154
|
listSchedules(listSchedulesRequest) {
|
|
1208
1155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1209
|
-
|
|
1210
|
-
this.logger.debug("Calling operation UsageapiClient#listSchedules.");
|
|
1156
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#listSchedules.");
|
|
1211
1157
|
const operationName = "listSchedules";
|
|
1212
1158
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/ListSchedules";
|
|
1213
1159
|
const pathParams = {};
|
|
@@ -1225,8 +1171,6 @@ class UsageapiClient {
|
|
|
1225
1171
|
};
|
|
1226
1172
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1227
1173
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSchedulesRequest.retryConfiguration, specRetryConfiguration);
|
|
1228
|
-
if (this.logger)
|
|
1229
|
-
retrier.logger = this.logger;
|
|
1230
1174
|
const request = yield oci_common_1.composeRequest({
|
|
1231
1175
|
baseEndpoint: this._endpoint,
|
|
1232
1176
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1271,12 +1215,11 @@ class UsageapiClient {
|
|
|
1271
1215
|
* @param ListUsageCarbonEmissionsQueriesRequest
|
|
1272
1216
|
* @return ListUsageCarbonEmissionsQueriesResponse
|
|
1273
1217
|
* @throws OciError when an error occurs
|
|
1274
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1218
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/ListUsageCarbonEmissionsQueries.ts.html |here} to see how to use ListUsageCarbonEmissionsQueries API.
|
|
1275
1219
|
*/
|
|
1276
1220
|
listUsageCarbonEmissionsQueries(listUsageCarbonEmissionsQueriesRequest) {
|
|
1277
1221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1278
|
-
|
|
1279
|
-
this.logger.debug("Calling operation UsageapiClient#listUsageCarbonEmissionsQueries.");
|
|
1222
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#listUsageCarbonEmissionsQueries.");
|
|
1280
1223
|
const operationName = "listUsageCarbonEmissionsQueries";
|
|
1281
1224
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/ListUsageCarbonEmissionsQueries";
|
|
1282
1225
|
const pathParams = {};
|
|
@@ -1293,8 +1236,6 @@ class UsageapiClient {
|
|
|
1293
1236
|
};
|
|
1294
1237
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1295
1238
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listUsageCarbonEmissionsQueriesRequest.retryConfiguration, specRetryConfiguration);
|
|
1296
|
-
if (this.logger)
|
|
1297
|
-
retrier.logger = this.logger;
|
|
1298
1239
|
const request = yield oci_common_1.composeRequest({
|
|
1299
1240
|
baseEndpoint: this._endpoint,
|
|
1300
1241
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1339,12 +1280,11 @@ class UsageapiClient {
|
|
|
1339
1280
|
* @param RequestAverageCarbonEmissionRequest
|
|
1340
1281
|
* @return RequestAverageCarbonEmissionResponse
|
|
1341
1282
|
* @throws OciError when an error occurs
|
|
1342
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1283
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/RequestAverageCarbonEmission.ts.html |here} to see how to use RequestAverageCarbonEmission API.
|
|
1343
1284
|
*/
|
|
1344
1285
|
requestAverageCarbonEmission(requestAverageCarbonEmissionRequest) {
|
|
1345
1286
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1346
|
-
|
|
1347
|
-
this.logger.debug("Calling operation UsageapiClient#requestAverageCarbonEmission.");
|
|
1287
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#requestAverageCarbonEmission.");
|
|
1348
1288
|
const operationName = "requestAverageCarbonEmission";
|
|
1349
1289
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/AverageCarbonEmission/RequestAverageCarbonEmission";
|
|
1350
1290
|
const pathParams = {
|
|
@@ -1357,8 +1297,6 @@ class UsageapiClient {
|
|
|
1357
1297
|
};
|
|
1358
1298
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1359
1299
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestAverageCarbonEmissionRequest.retryConfiguration, specRetryConfiguration);
|
|
1360
|
-
if (this.logger)
|
|
1361
|
-
retrier.logger = this.logger;
|
|
1362
1300
|
const request = yield oci_common_1.composeRequest({
|
|
1363
1301
|
baseEndpoint: this._endpoint,
|
|
1364
1302
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1403,12 +1341,11 @@ class UsageapiClient {
|
|
|
1403
1341
|
* @param RequestCleanEnergyUsageRequest
|
|
1404
1342
|
* @return RequestCleanEnergyUsageResponse
|
|
1405
1343
|
* @throws OciError when an error occurs
|
|
1406
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1344
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/RequestCleanEnergyUsage.ts.html |here} to see how to use RequestCleanEnergyUsage API.
|
|
1407
1345
|
*/
|
|
1408
1346
|
requestCleanEnergyUsage(requestCleanEnergyUsageRequest) {
|
|
1409
1347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1410
|
-
|
|
1411
|
-
this.logger.debug("Calling operation UsageapiClient#requestCleanEnergyUsage.");
|
|
1348
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#requestCleanEnergyUsage.");
|
|
1412
1349
|
const operationName = "requestCleanEnergyUsage";
|
|
1413
1350
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/CleanEnergyUsage/RequestCleanEnergyUsage";
|
|
1414
1351
|
const pathParams = {
|
|
@@ -1423,8 +1360,6 @@ class UsageapiClient {
|
|
|
1423
1360
|
};
|
|
1424
1361
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1425
1362
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestCleanEnergyUsageRequest.retryConfiguration, specRetryConfiguration);
|
|
1426
|
-
if (this.logger)
|
|
1427
|
-
retrier.logger = this.logger;
|
|
1428
1363
|
const request = yield oci_common_1.composeRequest({
|
|
1429
1364
|
baseEndpoint: this._endpoint,
|
|
1430
1365
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1469,12 +1404,11 @@ class UsageapiClient {
|
|
|
1469
1404
|
* @param RequestSummarizedConfigurationsRequest
|
|
1470
1405
|
* @return RequestSummarizedConfigurationsResponse
|
|
1471
1406
|
* @throws OciError when an error occurs
|
|
1472
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1407
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/RequestSummarizedConfigurations.ts.html |here} to see how to use RequestSummarizedConfigurations API.
|
|
1473
1408
|
*/
|
|
1474
1409
|
requestSummarizedConfigurations(requestSummarizedConfigurationsRequest) {
|
|
1475
1410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1476
|
-
|
|
1477
|
-
this.logger.debug("Calling operation UsageapiClient#requestSummarizedConfigurations.");
|
|
1411
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#requestSummarizedConfigurations.");
|
|
1478
1412
|
const operationName = "requestSummarizedConfigurations";
|
|
1479
1413
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Configuration/RequestSummarizedConfigurations";
|
|
1480
1414
|
const pathParams = {};
|
|
@@ -1487,8 +1421,6 @@ class UsageapiClient {
|
|
|
1487
1421
|
};
|
|
1488
1422
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1489
1423
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestSummarizedConfigurationsRequest.retryConfiguration, specRetryConfiguration);
|
|
1490
|
-
if (this.logger)
|
|
1491
|
-
retrier.logger = this.logger;
|
|
1492
1424
|
const request = yield oci_common_1.composeRequest({
|
|
1493
1425
|
baseEndpoint: this._endpoint,
|
|
1494
1426
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1528,12 +1460,11 @@ class UsageapiClient {
|
|
|
1528
1460
|
* @param RequestSummarizedUsagesRequest
|
|
1529
1461
|
* @return RequestSummarizedUsagesResponse
|
|
1530
1462
|
* @throws OciError when an error occurs
|
|
1531
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1463
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/RequestSummarizedUsages.ts.html |here} to see how to use RequestSummarizedUsages API.
|
|
1532
1464
|
*/
|
|
1533
1465
|
requestSummarizedUsages(requestSummarizedUsagesRequest) {
|
|
1534
1466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1535
|
-
|
|
1536
|
-
this.logger.debug("Calling operation UsageapiClient#requestSummarizedUsages.");
|
|
1467
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#requestSummarizedUsages.");
|
|
1537
1468
|
const operationName = "requestSummarizedUsages";
|
|
1538
1469
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageSummary/RequestSummarizedUsages";
|
|
1539
1470
|
const pathParams = {};
|
|
@@ -1547,8 +1478,6 @@ class UsageapiClient {
|
|
|
1547
1478
|
};
|
|
1548
1479
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1549
1480
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestSummarizedUsagesRequest.retryConfiguration, specRetryConfiguration);
|
|
1550
|
-
if (this.logger)
|
|
1551
|
-
retrier.logger = this.logger;
|
|
1552
1481
|
const request = yield oci_common_1.composeRequest({
|
|
1553
1482
|
baseEndpoint: this._endpoint,
|
|
1554
1483
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1594,12 +1523,11 @@ class UsageapiClient {
|
|
|
1594
1523
|
* @param RequestUsageCarbonEmissionConfigRequest
|
|
1595
1524
|
* @return RequestUsageCarbonEmissionConfigResponse
|
|
1596
1525
|
* @throws OciError when an error occurs
|
|
1597
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1526
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/RequestUsageCarbonEmissionConfig.ts.html |here} to see how to use RequestUsageCarbonEmissionConfig API.
|
|
1598
1527
|
*/
|
|
1599
1528
|
requestUsageCarbonEmissionConfig(requestUsageCarbonEmissionConfigRequest) {
|
|
1600
1529
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1601
|
-
|
|
1602
|
-
this.logger.debug("Calling operation UsageapiClient#requestUsageCarbonEmissionConfig.");
|
|
1530
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#requestUsageCarbonEmissionConfig.");
|
|
1603
1531
|
const operationName = "requestUsageCarbonEmissionConfig";
|
|
1604
1532
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Configuration/RequestUsageCarbonEmissionConfig";
|
|
1605
1533
|
const pathParams = {};
|
|
@@ -1612,8 +1540,6 @@ class UsageapiClient {
|
|
|
1612
1540
|
};
|
|
1613
1541
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1614
1542
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestUsageCarbonEmissionConfigRequest.retryConfiguration, specRetryConfiguration);
|
|
1615
|
-
if (this.logger)
|
|
1616
|
-
retrier.logger = this.logger;
|
|
1617
1543
|
const request = yield oci_common_1.composeRequest({
|
|
1618
1544
|
baseEndpoint: this._endpoint,
|
|
1619
1545
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1653,12 +1579,11 @@ class UsageapiClient {
|
|
|
1653
1579
|
* @param RequestUsageCarbonEmissionsRequest
|
|
1654
1580
|
* @return RequestUsageCarbonEmissionsResponse
|
|
1655
1581
|
* @throws OciError when an error occurs
|
|
1656
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1582
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/RequestUsageCarbonEmissions.ts.html |here} to see how to use RequestUsageCarbonEmissions API.
|
|
1657
1583
|
*/
|
|
1658
1584
|
requestUsageCarbonEmissions(requestUsageCarbonEmissionsRequest) {
|
|
1659
1585
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1660
|
-
|
|
1661
|
-
this.logger.debug("Calling operation UsageapiClient#requestUsageCarbonEmissions.");
|
|
1586
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#requestUsageCarbonEmissions.");
|
|
1662
1587
|
const operationName = "requestUsageCarbonEmissions";
|
|
1663
1588
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionSummary/RequestUsageCarbonEmissions";
|
|
1664
1589
|
const pathParams = {};
|
|
@@ -1672,8 +1597,6 @@ class UsageapiClient {
|
|
|
1672
1597
|
};
|
|
1673
1598
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1674
1599
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, requestUsageCarbonEmissionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1675
|
-
if (this.logger)
|
|
1676
|
-
retrier.logger = this.logger;
|
|
1677
1600
|
const request = yield oci_common_1.composeRequest({
|
|
1678
1601
|
baseEndpoint: this._endpoint,
|
|
1679
1602
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1719,12 +1642,11 @@ class UsageapiClient {
|
|
|
1719
1642
|
* @param UpdateCustomTableRequest
|
|
1720
1643
|
* @return UpdateCustomTableResponse
|
|
1721
1644
|
* @throws OciError when an error occurs
|
|
1722
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1645
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/UpdateCustomTable.ts.html |here} to see how to use UpdateCustomTable API.
|
|
1723
1646
|
*/
|
|
1724
1647
|
updateCustomTable(updateCustomTableRequest) {
|
|
1725
1648
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1726
|
-
|
|
1727
|
-
this.logger.debug("Calling operation UsageapiClient#updateCustomTable.");
|
|
1649
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#updateCustomTable.");
|
|
1728
1650
|
const operationName = "updateCustomTable";
|
|
1729
1651
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/UpdateCustomTable";
|
|
1730
1652
|
const pathParams = {
|
|
@@ -1738,8 +1660,6 @@ class UsageapiClient {
|
|
|
1738
1660
|
};
|
|
1739
1661
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1740
1662
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateCustomTableRequest.retryConfiguration, specRetryConfiguration);
|
|
1741
|
-
if (this.logger)
|
|
1742
|
-
retrier.logger = this.logger;
|
|
1743
1663
|
const request = yield oci_common_1.composeRequest({
|
|
1744
1664
|
baseEndpoint: this._endpoint,
|
|
1745
1665
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1785,12 +1705,11 @@ class UsageapiClient {
|
|
|
1785
1705
|
* @param UpdateQueryRequest
|
|
1786
1706
|
* @return UpdateQueryResponse
|
|
1787
1707
|
* @throws OciError when an error occurs
|
|
1788
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1708
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/UpdateQuery.ts.html |here} to see how to use UpdateQuery API.
|
|
1789
1709
|
*/
|
|
1790
1710
|
updateQuery(updateQueryRequest) {
|
|
1791
1711
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1792
|
-
|
|
1793
|
-
this.logger.debug("Calling operation UsageapiClient#updateQuery.");
|
|
1712
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#updateQuery.");
|
|
1794
1713
|
const operationName = "updateQuery";
|
|
1795
1714
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/UpdateQuery";
|
|
1796
1715
|
const pathParams = {
|
|
@@ -1804,8 +1723,6 @@ class UsageapiClient {
|
|
|
1804
1723
|
};
|
|
1805
1724
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1806
1725
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateQueryRequest.retryConfiguration, specRetryConfiguration);
|
|
1807
|
-
if (this.logger)
|
|
1808
|
-
retrier.logger = this.logger;
|
|
1809
1726
|
const request = yield oci_common_1.composeRequest({
|
|
1810
1727
|
baseEndpoint: this._endpoint,
|
|
1811
1728
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1851,12 +1768,11 @@ class UsageapiClient {
|
|
|
1851
1768
|
* @param UpdateScheduleRequest
|
|
1852
1769
|
* @return UpdateScheduleResponse
|
|
1853
1770
|
* @throws OciError when an error occurs
|
|
1854
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1771
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/UpdateSchedule.ts.html |here} to see how to use UpdateSchedule API.
|
|
1855
1772
|
*/
|
|
1856
1773
|
updateSchedule(updateScheduleRequest) {
|
|
1857
1774
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1858
|
-
|
|
1859
|
-
this.logger.debug("Calling operation UsageapiClient#updateSchedule.");
|
|
1775
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#updateSchedule.");
|
|
1860
1776
|
const operationName = "updateSchedule";
|
|
1861
1777
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/UpdateSchedule";
|
|
1862
1778
|
const pathParams = {
|
|
@@ -1870,8 +1786,6 @@ class UsageapiClient {
|
|
|
1870
1786
|
};
|
|
1871
1787
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1872
1788
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateScheduleRequest.retryConfiguration, specRetryConfiguration);
|
|
1873
|
-
if (this.logger)
|
|
1874
|
-
retrier.logger = this.logger;
|
|
1875
1789
|
const request = yield oci_common_1.composeRequest({
|
|
1876
1790
|
baseEndpoint: this._endpoint,
|
|
1877
1791
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1917,12 +1831,11 @@ class UsageapiClient {
|
|
|
1917
1831
|
* @param UpdateUsageCarbonEmissionsQueryRequest
|
|
1918
1832
|
* @return UpdateUsageCarbonEmissionsQueryResponse
|
|
1919
1833
|
* @throws OciError when an error occurs
|
|
1920
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.
|
|
1834
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.1/usageapi/UpdateUsageCarbonEmissionsQuery.ts.html |here} to see how to use UpdateUsageCarbonEmissionsQuery API.
|
|
1921
1835
|
*/
|
|
1922
1836
|
updateUsageCarbonEmissionsQuery(updateUsageCarbonEmissionsQueryRequest) {
|
|
1923
1837
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1924
|
-
|
|
1925
|
-
this.logger.debug("Calling operation UsageapiClient#updateUsageCarbonEmissionsQuery.");
|
|
1838
|
+
oci_common_1.logger.debug("Calling operation UsageapiClient#updateUsageCarbonEmissionsQuery.");
|
|
1926
1839
|
const operationName = "updateUsageCarbonEmissionsQuery";
|
|
1927
1840
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/UpdateUsageCarbonEmissionsQuery";
|
|
1928
1841
|
const pathParams = {
|
|
@@ -1936,8 +1849,6 @@ class UsageapiClient {
|
|
|
1936
1849
|
};
|
|
1937
1850
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1938
1851
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateUsageCarbonEmissionsQueryRequest.retryConfiguration, specRetryConfiguration);
|
|
1939
|
-
if (this.logger)
|
|
1940
|
-
retrier.logger = this.logger;
|
|
1941
1852
|
const request = yield oci_common_1.composeRequest({
|
|
1942
1853
|
baseEndpoint: this._endpoint,
|
|
1943
1854
|
defaultHeaders: this._defaultHeaders,
|