oci-governancerulescontrolplane 2.79.1 → 2.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +24 -22
- package/lib/client.js +116 -46
- package/lib/client.js.map +1 -1
- package/lib/model/association.js +4 -2
- package/lib/model/association.js.map +1 -1
- package/lib/model/base-tag-definition-validator.js +4 -2
- package/lib/model/base-tag-definition-validator.js.map +1 -1
- package/lib/model/template.js +4 -2
- package/lib/model/template.js.map +1 -1
- package/lib/request/cancel-work-request-request.d.ts +1 -1
- package/lib/request/create-governance-rule-request.d.ts +1 -1
- package/lib/request/create-inclusion-criterion-request.d.ts +1 -1
- package/lib/request/delete-governance-rule-request.d.ts +1 -1
- package/lib/request/delete-inclusion-criterion-request.d.ts +1 -1
- package/lib/request/get-enforced-governance-rule-request.d.ts +1 -1
- package/lib/request/get-governance-rule-request.d.ts +1 -1
- package/lib/request/get-inclusion-criterion-request.d.ts +1 -1
- package/lib/request/get-tenancy-attachment-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/list-enforced-governance-rules-request.d.ts +1 -1
- package/lib/request/list-governance-rules-request.d.ts +1 -1
- package/lib/request/list-inclusion-criteria-request.d.ts +1 -1
- package/lib/request/list-tenancy-attachments-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/retry-governance-rule-request.d.ts +1 -1
- package/lib/request/retry-tenancy-attachment-request.d.ts +1 -1
- package/lib/request/update-governance-rule-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -58,7 +58,7 @@ var GovernanceRuleApiKeys;
|
|
|
58
58
|
*/
|
|
59
59
|
class GovernanceRuleClient {
|
|
60
60
|
constructor(params, clientConfiguration) {
|
|
61
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
61
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
62
62
|
this["_endpoint"] = "";
|
|
63
63
|
this["_defaultHeaders"] = {};
|
|
64
64
|
this._circuitBreaker = null;
|
|
@@ -117,7 +117,11 @@ class GovernanceRuleClient {
|
|
|
117
117
|
set endpoint(endpoint) {
|
|
118
118
|
this._endpoint = endpoint;
|
|
119
119
|
this._endpoint = this._endpoint + "/20220504";
|
|
120
|
-
|
|
120
|
+
if (this.logger)
|
|
121
|
+
this.logger.info(`GovernanceRuleClient endpoint set to ${this._endpoint}`);
|
|
122
|
+
}
|
|
123
|
+
get logger() {
|
|
124
|
+
return common.LOG.logger;
|
|
121
125
|
}
|
|
122
126
|
/**
|
|
123
127
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -126,7 +130,8 @@ class GovernanceRuleClient {
|
|
|
126
130
|
*/
|
|
127
131
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
128
132
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
129
|
-
|
|
133
|
+
if (this.logger)
|
|
134
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
130
135
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
131
136
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GovernanceRuleClient.serviceEndpointTemplate, this._region, GovernanceRuleClient.endpointServiceName);
|
|
132
137
|
}
|
|
@@ -193,11 +198,12 @@ class GovernanceRuleClient {
|
|
|
193
198
|
* @param CreateGovernanceRuleRequest
|
|
194
199
|
* @return CreateGovernanceRuleResponse
|
|
195
200
|
* @throws OciError when an error occurs
|
|
196
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
201
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/CreateGovernanceRule.ts.html |here} to see how to use CreateGovernanceRule API.
|
|
197
202
|
*/
|
|
198
203
|
createGovernanceRule(createGovernanceRuleRequest) {
|
|
199
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
-
|
|
205
|
+
if (this.logger)
|
|
206
|
+
this.logger.debug("Calling operation GovernanceRuleClient#createGovernanceRule.");
|
|
201
207
|
const operationName = "createGovernanceRule";
|
|
202
208
|
const apiReferenceLink = "";
|
|
203
209
|
const pathParams = {};
|
|
@@ -209,6 +215,8 @@ class GovernanceRuleClient {
|
|
|
209
215
|
};
|
|
210
216
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
211
217
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createGovernanceRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
218
|
+
if (this.logger)
|
|
219
|
+
retrier.logger = this.logger;
|
|
212
220
|
const request = yield oci_common_1.composeRequest({
|
|
213
221
|
baseEndpoint: this._endpoint,
|
|
214
222
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -264,11 +272,12 @@ class GovernanceRuleClient {
|
|
|
264
272
|
* @param CreateInclusionCriterionRequest
|
|
265
273
|
* @return CreateInclusionCriterionResponse
|
|
266
274
|
* @throws OciError when an error occurs
|
|
267
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
275
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/CreateInclusionCriterion.ts.html |here} to see how to use CreateInclusionCriterion API.
|
|
268
276
|
*/
|
|
269
277
|
createInclusionCriterion(createInclusionCriterionRequest) {
|
|
270
278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
-
|
|
279
|
+
if (this.logger)
|
|
280
|
+
this.logger.debug("Calling operation GovernanceRuleClient#createInclusionCriterion.");
|
|
272
281
|
const operationName = "createInclusionCriterion";
|
|
273
282
|
const apiReferenceLink = "";
|
|
274
283
|
const pathParams = {};
|
|
@@ -280,6 +289,8 @@ class GovernanceRuleClient {
|
|
|
280
289
|
};
|
|
281
290
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
282
291
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createInclusionCriterionRequest.retryConfiguration, specRetryConfiguration);
|
|
292
|
+
if (this.logger)
|
|
293
|
+
retrier.logger = this.logger;
|
|
283
294
|
const request = yield oci_common_1.composeRequest({
|
|
284
295
|
baseEndpoint: this._endpoint,
|
|
285
296
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -334,11 +345,12 @@ class GovernanceRuleClient {
|
|
|
334
345
|
* @param DeleteGovernanceRuleRequest
|
|
335
346
|
* @return DeleteGovernanceRuleResponse
|
|
336
347
|
* @throws OciError when an error occurs
|
|
337
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
348
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/DeleteGovernanceRule.ts.html |here} to see how to use DeleteGovernanceRule API.
|
|
338
349
|
*/
|
|
339
350
|
deleteGovernanceRule(deleteGovernanceRuleRequest) {
|
|
340
351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
-
|
|
352
|
+
if (this.logger)
|
|
353
|
+
this.logger.debug("Calling operation GovernanceRuleClient#deleteGovernanceRule.");
|
|
342
354
|
const operationName = "deleteGovernanceRule";
|
|
343
355
|
const apiReferenceLink = "";
|
|
344
356
|
const pathParams = {
|
|
@@ -352,6 +364,8 @@ class GovernanceRuleClient {
|
|
|
352
364
|
};
|
|
353
365
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
354
366
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteGovernanceRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
367
|
+
if (this.logger)
|
|
368
|
+
retrier.logger = this.logger;
|
|
355
369
|
const request = yield oci_common_1.composeRequest({
|
|
356
370
|
baseEndpoint: this._endpoint,
|
|
357
371
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -391,11 +405,12 @@ class GovernanceRuleClient {
|
|
|
391
405
|
* @param DeleteInclusionCriterionRequest
|
|
392
406
|
* @return DeleteInclusionCriterionResponse
|
|
393
407
|
* @throws OciError when an error occurs
|
|
394
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
408
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/DeleteInclusionCriterion.ts.html |here} to see how to use DeleteInclusionCriterion API.
|
|
395
409
|
*/
|
|
396
410
|
deleteInclusionCriterion(deleteInclusionCriterionRequest) {
|
|
397
411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
398
|
-
|
|
412
|
+
if (this.logger)
|
|
413
|
+
this.logger.debug("Calling operation GovernanceRuleClient#deleteInclusionCriterion.");
|
|
399
414
|
const operationName = "deleteInclusionCriterion";
|
|
400
415
|
const apiReferenceLink = "";
|
|
401
416
|
const pathParams = {
|
|
@@ -409,6 +424,8 @@ class GovernanceRuleClient {
|
|
|
409
424
|
};
|
|
410
425
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
411
426
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteInclusionCriterionRequest.retryConfiguration, specRetryConfiguration);
|
|
427
|
+
if (this.logger)
|
|
428
|
+
retrier.logger = this.logger;
|
|
412
429
|
const request = yield oci_common_1.composeRequest({
|
|
413
430
|
baseEndpoint: this._endpoint,
|
|
414
431
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -448,11 +465,12 @@ class GovernanceRuleClient {
|
|
|
448
465
|
* @param GetEnforcedGovernanceRuleRequest
|
|
449
466
|
* @return GetEnforcedGovernanceRuleResponse
|
|
450
467
|
* @throws OciError when an error occurs
|
|
451
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
468
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/GetEnforcedGovernanceRule.ts.html |here} to see how to use GetEnforcedGovernanceRule API.
|
|
452
469
|
*/
|
|
453
470
|
getEnforcedGovernanceRule(getEnforcedGovernanceRuleRequest) {
|
|
454
471
|
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
-
|
|
472
|
+
if (this.logger)
|
|
473
|
+
this.logger.debug("Calling operation GovernanceRuleClient#getEnforcedGovernanceRule.");
|
|
456
474
|
const operationName = "getEnforcedGovernanceRule";
|
|
457
475
|
const apiReferenceLink = "";
|
|
458
476
|
const pathParams = {
|
|
@@ -465,6 +483,8 @@ class GovernanceRuleClient {
|
|
|
465
483
|
};
|
|
466
484
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
467
485
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEnforcedGovernanceRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
486
|
+
if (this.logger)
|
|
487
|
+
retrier.logger = this.logger;
|
|
468
488
|
const request = yield oci_common_1.composeRequest({
|
|
469
489
|
baseEndpoint: this._endpoint,
|
|
470
490
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -508,11 +528,12 @@ class GovernanceRuleClient {
|
|
|
508
528
|
* @param GetGovernanceRuleRequest
|
|
509
529
|
* @return GetGovernanceRuleResponse
|
|
510
530
|
* @throws OciError when an error occurs
|
|
511
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
531
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/GetGovernanceRule.ts.html |here} to see how to use GetGovernanceRule API.
|
|
512
532
|
*/
|
|
513
533
|
getGovernanceRule(getGovernanceRuleRequest) {
|
|
514
534
|
return __awaiter(this, void 0, void 0, function* () {
|
|
515
|
-
|
|
535
|
+
if (this.logger)
|
|
536
|
+
this.logger.debug("Calling operation GovernanceRuleClient#getGovernanceRule.");
|
|
516
537
|
const operationName = "getGovernanceRule";
|
|
517
538
|
const apiReferenceLink = "";
|
|
518
539
|
const pathParams = {
|
|
@@ -525,6 +546,8 @@ class GovernanceRuleClient {
|
|
|
525
546
|
};
|
|
526
547
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
527
548
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getGovernanceRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
549
|
+
if (this.logger)
|
|
550
|
+
retrier.logger = this.logger;
|
|
528
551
|
const request = yield oci_common_1.composeRequest({
|
|
529
552
|
baseEndpoint: this._endpoint,
|
|
530
553
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -568,11 +591,12 @@ class GovernanceRuleClient {
|
|
|
568
591
|
* @param GetInclusionCriterionRequest
|
|
569
592
|
* @return GetInclusionCriterionResponse
|
|
570
593
|
* @throws OciError when an error occurs
|
|
571
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
594
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/GetInclusionCriterion.ts.html |here} to see how to use GetInclusionCriterion API.
|
|
572
595
|
*/
|
|
573
596
|
getInclusionCriterion(getInclusionCriterionRequest) {
|
|
574
597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
575
|
-
|
|
598
|
+
if (this.logger)
|
|
599
|
+
this.logger.debug("Calling operation GovernanceRuleClient#getInclusionCriterion.");
|
|
576
600
|
const operationName = "getInclusionCriterion";
|
|
577
601
|
const apiReferenceLink = "";
|
|
578
602
|
const pathParams = {
|
|
@@ -585,6 +609,8 @@ class GovernanceRuleClient {
|
|
|
585
609
|
};
|
|
586
610
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
587
611
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getInclusionCriterionRequest.retryConfiguration, specRetryConfiguration);
|
|
612
|
+
if (this.logger)
|
|
613
|
+
retrier.logger = this.logger;
|
|
588
614
|
const request = yield oci_common_1.composeRequest({
|
|
589
615
|
baseEndpoint: this._endpoint,
|
|
590
616
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -628,11 +654,12 @@ class GovernanceRuleClient {
|
|
|
628
654
|
* @param GetTenancyAttachmentRequest
|
|
629
655
|
* @return GetTenancyAttachmentResponse
|
|
630
656
|
* @throws OciError when an error occurs
|
|
631
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
657
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/GetTenancyAttachment.ts.html |here} to see how to use GetTenancyAttachment API.
|
|
632
658
|
*/
|
|
633
659
|
getTenancyAttachment(getTenancyAttachmentRequest) {
|
|
634
660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
635
|
-
|
|
661
|
+
if (this.logger)
|
|
662
|
+
this.logger.debug("Calling operation GovernanceRuleClient#getTenancyAttachment.");
|
|
636
663
|
const operationName = "getTenancyAttachment";
|
|
637
664
|
const apiReferenceLink = "";
|
|
638
665
|
const pathParams = {
|
|
@@ -645,6 +672,8 @@ class GovernanceRuleClient {
|
|
|
645
672
|
};
|
|
646
673
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
647
674
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getTenancyAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
675
|
+
if (this.logger)
|
|
676
|
+
retrier.logger = this.logger;
|
|
648
677
|
const request = yield oci_common_1.composeRequest({
|
|
649
678
|
baseEndpoint: this._endpoint,
|
|
650
679
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -690,11 +719,12 @@ class GovernanceRuleClient {
|
|
|
690
719
|
* @param ListEnforcedGovernanceRulesRequest
|
|
691
720
|
* @return ListEnforcedGovernanceRulesResponse
|
|
692
721
|
* @throws OciError when an error occurs
|
|
693
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
722
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/ListEnforcedGovernanceRules.ts.html |here} to see how to use ListEnforcedGovernanceRules API.
|
|
694
723
|
*/
|
|
695
724
|
listEnforcedGovernanceRules(listEnforcedGovernanceRulesRequest) {
|
|
696
725
|
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
-
|
|
726
|
+
if (this.logger)
|
|
727
|
+
this.logger.debug("Calling operation GovernanceRuleClient#listEnforcedGovernanceRules.");
|
|
698
728
|
const operationName = "listEnforcedGovernanceRules";
|
|
699
729
|
const apiReferenceLink = "";
|
|
700
730
|
const pathParams = {};
|
|
@@ -714,6 +744,8 @@ class GovernanceRuleClient {
|
|
|
714
744
|
};
|
|
715
745
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
716
746
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEnforcedGovernanceRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
747
|
+
if (this.logger)
|
|
748
|
+
retrier.logger = this.logger;
|
|
717
749
|
const request = yield oci_common_1.composeRequest({
|
|
718
750
|
baseEndpoint: this._endpoint,
|
|
719
751
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -759,11 +791,12 @@ class GovernanceRuleClient {
|
|
|
759
791
|
* @param ListGovernanceRulesRequest
|
|
760
792
|
* @return ListGovernanceRulesResponse
|
|
761
793
|
* @throws OciError when an error occurs
|
|
762
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
794
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/ListGovernanceRules.ts.html |here} to see how to use ListGovernanceRules API.
|
|
763
795
|
*/
|
|
764
796
|
listGovernanceRules(listGovernanceRulesRequest) {
|
|
765
797
|
return __awaiter(this, void 0, void 0, function* () {
|
|
766
|
-
|
|
798
|
+
if (this.logger)
|
|
799
|
+
this.logger.debug("Calling operation GovernanceRuleClient#listGovernanceRules.");
|
|
767
800
|
const operationName = "listGovernanceRules";
|
|
768
801
|
const apiReferenceLink = "";
|
|
769
802
|
const pathParams = {};
|
|
@@ -784,6 +817,8 @@ class GovernanceRuleClient {
|
|
|
784
817
|
};
|
|
785
818
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
786
819
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listGovernanceRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
820
|
+
if (this.logger)
|
|
821
|
+
retrier.logger = this.logger;
|
|
787
822
|
const request = yield oci_common_1.composeRequest({
|
|
788
823
|
baseEndpoint: this._endpoint,
|
|
789
824
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -829,11 +864,12 @@ class GovernanceRuleClient {
|
|
|
829
864
|
* @param ListInclusionCriteriaRequest
|
|
830
865
|
* @return ListInclusionCriteriaResponse
|
|
831
866
|
* @throws OciError when an error occurs
|
|
832
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
867
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/ListInclusionCriteria.ts.html |here} to see how to use ListInclusionCriteria API.
|
|
833
868
|
*/
|
|
834
869
|
listInclusionCriteria(listInclusionCriteriaRequest) {
|
|
835
870
|
return __awaiter(this, void 0, void 0, function* () {
|
|
836
|
-
|
|
871
|
+
if (this.logger)
|
|
872
|
+
this.logger.debug("Calling operation GovernanceRuleClient#listInclusionCriteria.");
|
|
837
873
|
const operationName = "listInclusionCriteria";
|
|
838
874
|
const apiReferenceLink = "";
|
|
839
875
|
const pathParams = {};
|
|
@@ -852,6 +888,8 @@ class GovernanceRuleClient {
|
|
|
852
888
|
};
|
|
853
889
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
854
890
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listInclusionCriteriaRequest.retryConfiguration, specRetryConfiguration);
|
|
891
|
+
if (this.logger)
|
|
892
|
+
retrier.logger = this.logger;
|
|
855
893
|
const request = yield oci_common_1.composeRequest({
|
|
856
894
|
baseEndpoint: this._endpoint,
|
|
857
895
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -897,11 +935,12 @@ class GovernanceRuleClient {
|
|
|
897
935
|
* @param ListTenancyAttachmentsRequest
|
|
898
936
|
* @return ListTenancyAttachmentsResponse
|
|
899
937
|
* @throws OciError when an error occurs
|
|
900
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
938
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/ListTenancyAttachments.ts.html |here} to see how to use ListTenancyAttachments API.
|
|
901
939
|
*/
|
|
902
940
|
listTenancyAttachments(listTenancyAttachmentsRequest) {
|
|
903
941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
904
|
-
|
|
942
|
+
if (this.logger)
|
|
943
|
+
this.logger.debug("Calling operation GovernanceRuleClient#listTenancyAttachments.");
|
|
905
944
|
const operationName = "listTenancyAttachments";
|
|
906
945
|
const apiReferenceLink = "";
|
|
907
946
|
const pathParams = {};
|
|
@@ -922,6 +961,8 @@ class GovernanceRuleClient {
|
|
|
922
961
|
};
|
|
923
962
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
924
963
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listTenancyAttachmentsRequest.retryConfiguration, specRetryConfiguration);
|
|
964
|
+
if (this.logger)
|
|
965
|
+
retrier.logger = this.logger;
|
|
925
966
|
const request = yield oci_common_1.composeRequest({
|
|
926
967
|
baseEndpoint: this._endpoint,
|
|
927
968
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -968,11 +1009,12 @@ class GovernanceRuleClient {
|
|
|
968
1009
|
* @param RetryGovernanceRuleRequest
|
|
969
1010
|
* @return RetryGovernanceRuleResponse
|
|
970
1011
|
* @throws OciError when an error occurs
|
|
971
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1012
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/RetryGovernanceRule.ts.html |here} to see how to use RetryGovernanceRule API.
|
|
972
1013
|
*/
|
|
973
1014
|
retryGovernanceRule(retryGovernanceRuleRequest) {
|
|
974
1015
|
return __awaiter(this, void 0, void 0, function* () {
|
|
975
|
-
|
|
1016
|
+
if (this.logger)
|
|
1017
|
+
this.logger.debug("Calling operation GovernanceRuleClient#retryGovernanceRule.");
|
|
976
1018
|
const operationName = "retryGovernanceRule";
|
|
977
1019
|
const apiReferenceLink = "";
|
|
978
1020
|
const pathParams = {
|
|
@@ -987,6 +1029,8 @@ class GovernanceRuleClient {
|
|
|
987
1029
|
};
|
|
988
1030
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
989
1031
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retryGovernanceRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1032
|
+
if (this.logger)
|
|
1033
|
+
retrier.logger = this.logger;
|
|
990
1034
|
const request = yield oci_common_1.composeRequest({
|
|
991
1035
|
baseEndpoint: this._endpoint,
|
|
992
1036
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1028,11 +1072,12 @@ class GovernanceRuleClient {
|
|
|
1028
1072
|
* @param RetryTenancyAttachmentRequest
|
|
1029
1073
|
* @return RetryTenancyAttachmentResponse
|
|
1030
1074
|
* @throws OciError when an error occurs
|
|
1031
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1075
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/RetryTenancyAttachment.ts.html |here} to see how to use RetryTenancyAttachment API.
|
|
1032
1076
|
*/
|
|
1033
1077
|
retryTenancyAttachment(retryTenancyAttachmentRequest) {
|
|
1034
1078
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1035
|
-
|
|
1079
|
+
if (this.logger)
|
|
1080
|
+
this.logger.debug("Calling operation GovernanceRuleClient#retryTenancyAttachment.");
|
|
1036
1081
|
const operationName = "retryTenancyAttachment";
|
|
1037
1082
|
const apiReferenceLink = "";
|
|
1038
1083
|
const pathParams = {
|
|
@@ -1047,6 +1092,8 @@ class GovernanceRuleClient {
|
|
|
1047
1092
|
};
|
|
1048
1093
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1049
1094
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retryTenancyAttachmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1095
|
+
if (this.logger)
|
|
1096
|
+
retrier.logger = this.logger;
|
|
1050
1097
|
const request = yield oci_common_1.composeRequest({
|
|
1051
1098
|
baseEndpoint: this._endpoint,
|
|
1052
1099
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1086,11 +1133,12 @@ class GovernanceRuleClient {
|
|
|
1086
1133
|
* @param UpdateGovernanceRuleRequest
|
|
1087
1134
|
* @return UpdateGovernanceRuleResponse
|
|
1088
1135
|
* @throws OciError when an error occurs
|
|
1089
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1136
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/UpdateGovernanceRule.ts.html |here} to see how to use UpdateGovernanceRule API.
|
|
1090
1137
|
*/
|
|
1091
1138
|
updateGovernanceRule(updateGovernanceRuleRequest) {
|
|
1092
1139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1093
|
-
|
|
1140
|
+
if (this.logger)
|
|
1141
|
+
this.logger.debug("Calling operation GovernanceRuleClient#updateGovernanceRule.");
|
|
1094
1142
|
const operationName = "updateGovernanceRule";
|
|
1095
1143
|
const apiReferenceLink = "";
|
|
1096
1144
|
const pathParams = {
|
|
@@ -1104,6 +1152,8 @@ class GovernanceRuleClient {
|
|
|
1104
1152
|
};
|
|
1105
1153
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1106
1154
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateGovernanceRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1155
|
+
if (this.logger)
|
|
1156
|
+
retrier.logger = this.logger;
|
|
1107
1157
|
const request = yield oci_common_1.composeRequest({
|
|
1108
1158
|
baseEndpoint: this._endpoint,
|
|
1109
1159
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1150,7 +1200,7 @@ var WorkRequestApiKeys;
|
|
|
1150
1200
|
*/
|
|
1151
1201
|
class WorkRequestClient {
|
|
1152
1202
|
constructor(params, clientConfiguration) {
|
|
1153
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
1203
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1154
1204
|
this["_endpoint"] = "";
|
|
1155
1205
|
this["_defaultHeaders"] = {};
|
|
1156
1206
|
this._circuitBreaker = null;
|
|
@@ -1209,7 +1259,11 @@ class WorkRequestClient {
|
|
|
1209
1259
|
set endpoint(endpoint) {
|
|
1210
1260
|
this._endpoint = endpoint;
|
|
1211
1261
|
this._endpoint = this._endpoint + "/20220504";
|
|
1212
|
-
|
|
1262
|
+
if (this.logger)
|
|
1263
|
+
this.logger.info(`WorkRequestClient endpoint set to ${this._endpoint}`);
|
|
1264
|
+
}
|
|
1265
|
+
get logger() {
|
|
1266
|
+
return common.LOG.logger;
|
|
1213
1267
|
}
|
|
1214
1268
|
/**
|
|
1215
1269
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -1218,7 +1272,8 @@ class WorkRequestClient {
|
|
|
1218
1272
|
*/
|
|
1219
1273
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1220
1274
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1221
|
-
|
|
1275
|
+
if (this.logger)
|
|
1276
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1222
1277
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1223
1278
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestClient.serviceEndpointTemplate, this._region, WorkRequestClient.endpointServiceName);
|
|
1224
1279
|
}
|
|
@@ -1284,11 +1339,12 @@ class WorkRequestClient {
|
|
|
1284
1339
|
* @param CancelWorkRequestRequest
|
|
1285
1340
|
* @return CancelWorkRequestResponse
|
|
1286
1341
|
* @throws OciError when an error occurs
|
|
1287
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1342
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
1288
1343
|
*/
|
|
1289
1344
|
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
1290
1345
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1291
|
-
|
|
1346
|
+
if (this.logger)
|
|
1347
|
+
this.logger.debug("Calling operation WorkRequestClient#cancelWorkRequest.");
|
|
1292
1348
|
const operationName = "cancelWorkRequest";
|
|
1293
1349
|
const apiReferenceLink = "";
|
|
1294
1350
|
const pathParams = {
|
|
@@ -1302,6 +1358,8 @@ class WorkRequestClient {
|
|
|
1302
1358
|
};
|
|
1303
1359
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1304
1360
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1361
|
+
if (this.logger)
|
|
1362
|
+
retrier.logger = this.logger;
|
|
1305
1363
|
const request = yield oci_common_1.composeRequest({
|
|
1306
1364
|
baseEndpoint: this._endpoint,
|
|
1307
1365
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1336,11 +1394,12 @@ class WorkRequestClient {
|
|
|
1336
1394
|
* @param GetWorkRequestRequest
|
|
1337
1395
|
* @return GetWorkRequestResponse
|
|
1338
1396
|
* @throws OciError when an error occurs
|
|
1339
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1397
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1340
1398
|
*/
|
|
1341
1399
|
getWorkRequest(getWorkRequestRequest) {
|
|
1342
1400
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1343
|
-
|
|
1401
|
+
if (this.logger)
|
|
1402
|
+
this.logger.debug("Calling operation WorkRequestClient#getWorkRequest.");
|
|
1344
1403
|
const operationName = "getWorkRequest";
|
|
1345
1404
|
const apiReferenceLink = "";
|
|
1346
1405
|
const pathParams = {
|
|
@@ -1353,6 +1412,8 @@ class WorkRequestClient {
|
|
|
1353
1412
|
};
|
|
1354
1413
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1355
1414
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1415
|
+
if (this.logger)
|
|
1416
|
+
retrier.logger = this.logger;
|
|
1356
1417
|
const request = yield oci_common_1.composeRequest({
|
|
1357
1418
|
baseEndpoint: this._endpoint,
|
|
1358
1419
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1402,11 +1463,12 @@ class WorkRequestClient {
|
|
|
1402
1463
|
* @param ListWorkRequestErrorsRequest
|
|
1403
1464
|
* @return ListWorkRequestErrorsResponse
|
|
1404
1465
|
* @throws OciError when an error occurs
|
|
1405
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1466
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1406
1467
|
*/
|
|
1407
1468
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1408
1469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1409
|
-
|
|
1470
|
+
if (this.logger)
|
|
1471
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequestErrors.");
|
|
1410
1472
|
const operationName = "listWorkRequestErrors";
|
|
1411
1473
|
const apiReferenceLink = "";
|
|
1412
1474
|
const pathParams = {
|
|
@@ -1424,6 +1486,8 @@ class WorkRequestClient {
|
|
|
1424
1486
|
};
|
|
1425
1487
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1426
1488
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1489
|
+
if (this.logger)
|
|
1490
|
+
retrier.logger = this.logger;
|
|
1427
1491
|
const request = yield oci_common_1.composeRequest({
|
|
1428
1492
|
baseEndpoint: this._endpoint,
|
|
1429
1493
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1468,11 +1532,12 @@ class WorkRequestClient {
|
|
|
1468
1532
|
* @param ListWorkRequestLogsRequest
|
|
1469
1533
|
* @return ListWorkRequestLogsResponse
|
|
1470
1534
|
* @throws OciError when an error occurs
|
|
1471
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1535
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1472
1536
|
*/
|
|
1473
1537
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1474
1538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1475
|
-
|
|
1539
|
+
if (this.logger)
|
|
1540
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequestLogs.");
|
|
1476
1541
|
const operationName = "listWorkRequestLogs";
|
|
1477
1542
|
const apiReferenceLink = "";
|
|
1478
1543
|
const pathParams = {
|
|
@@ -1490,6 +1555,8 @@ class WorkRequestClient {
|
|
|
1490
1555
|
};
|
|
1491
1556
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1492
1557
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1558
|
+
if (this.logger)
|
|
1559
|
+
retrier.logger = this.logger;
|
|
1493
1560
|
const request = yield oci_common_1.composeRequest({
|
|
1494
1561
|
baseEndpoint: this._endpoint,
|
|
1495
1562
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1534,11 +1601,12 @@ class WorkRequestClient {
|
|
|
1534
1601
|
* @param ListWorkRequestsRequest
|
|
1535
1602
|
* @return ListWorkRequestsResponse
|
|
1536
1603
|
* @throws OciError when an error occurs
|
|
1537
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1604
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.80.0/governancerulescontrolplane/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1538
1605
|
*/
|
|
1539
1606
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1540
1607
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1541
|
-
|
|
1608
|
+
if (this.logger)
|
|
1609
|
+
this.logger.debug("Calling operation WorkRequestClient#listWorkRequests.");
|
|
1542
1610
|
const operationName = "listWorkRequests";
|
|
1543
1611
|
const apiReferenceLink = "";
|
|
1544
1612
|
const pathParams = {};
|
|
@@ -1558,6 +1626,8 @@ class WorkRequestClient {
|
|
|
1558
1626
|
};
|
|
1559
1627
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1560
1628
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1629
|
+
if (this.logger)
|
|
1630
|
+
retrier.logger = this.logger;
|
|
1561
1631
|
const request = yield oci_common_1.composeRequest({
|
|
1562
1632
|
baseEndpoint: this._endpoint,
|
|
1563
1633
|
defaultHeaders: this._defaultHeaders,
|