oci-operatoraccesscontrol 2.57.0 → 2.59.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.
Files changed (27) hide show
  1. package/lib/client.d.ts +63 -23
  2. package/lib/client.js +115 -23
  3. package/lib/client.js.map +1 -1
  4. package/lib/request/approve-access-request-request.d.ts +1 -1
  5. package/lib/request/change-operator-control-assignment-compartment-request.d.ts +1 -1
  6. package/lib/request/change-operator-control-compartment-request.d.ts +1 -1
  7. package/lib/request/create-operator-control-assignment-request.d.ts +1 -1
  8. package/lib/request/create-operator-control-request.d.ts +1 -1
  9. package/lib/request/delete-operator-control-assignment-request.d.ts +1 -1
  10. package/lib/request/delete-operator-control-request.d.ts +1 -1
  11. package/lib/request/get-access-request-request.d.ts +1 -1
  12. package/lib/request/get-operator-action-request.d.ts +1 -1
  13. package/lib/request/get-operator-control-assignment-request.d.ts +1 -1
  14. package/lib/request/get-operator-control-request.d.ts +1 -1
  15. package/lib/request/interaction-request-request.d.ts +1 -1
  16. package/lib/request/list-access-request-histories-request.d.ts +1 -1
  17. package/lib/request/list-access-requests-request.d.ts +1 -1
  18. package/lib/request/list-interactions-request.d.ts +1 -1
  19. package/lib/request/list-operator-actions-request.d.ts +1 -1
  20. package/lib/request/list-operator-control-assignments-request.d.ts +1 -1
  21. package/lib/request/list-operator-controls-request.d.ts +1 -1
  22. package/lib/request/reject-access-request-request.d.ts +1 -1
  23. package/lib/request/review-access-request-request.d.ts +1 -1
  24. package/lib/request/revoke-access-request-request.d.ts +1 -1
  25. package/lib/request/update-operator-control-assignment-request.d.ts +1 -1
  26. package/lib/request/update-operator-control-request.d.ts +1 -1
  27. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -62,11 +62,14 @@ var AccessRequestsApiKeys;
62
62
  */
63
63
  class AccessRequestsClient {
64
64
  constructor(params, clientConfiguration) {
65
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
65
66
  this["_endpoint"] = "";
66
67
  this["_defaultHeaders"] = {};
67
68
  this._circuitBreaker = null;
68
69
  this._httpOptions = undefined;
69
70
  this.targetService = "AccessRequests";
71
+ this._regionId = "";
72
+ this._lastSetRegionOrRegionId = "";
70
73
  const requestSigner = params.authenticationDetailsProvider
71
74
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
72
75
  : null;
@@ -116,13 +119,31 @@ class AccessRequestsClient {
116
119
  get logger() {
117
120
  return common.LOG.logger;
118
121
  }
122
+ /**
123
+ * Determines whether realm specific endpoint should be used or not.
124
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
125
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
126
+ */
127
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
128
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
129
+ if (this.logger)
130
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
131
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
132
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AccessRequestsClient.serviceEndpointTemplate, this._region, AccessRequestsClient.endpointServiceName);
133
+ }
134
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
135
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AccessRequestsClient.serviceEndpointTemplate, this._regionId, AccessRequestsClient.endpointServiceName);
136
+ }
137
+ }
119
138
  /**
120
139
  * Sets the region to call (ex, Region.US_PHOENIX_1).
121
140
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
122
141
  * @param region The region of the service.
123
142
  */
124
143
  set region(region) {
144
+ this._region = region;
125
145
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AccessRequestsClient.serviceEndpointTemplate, region, AccessRequestsClient.endpointServiceName);
146
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
126
147
  }
127
148
  /**
128
149
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -133,7 +154,9 @@ class AccessRequestsClient {
133
154
  * @param regionId The public region ID.
134
155
  */
135
156
  set regionId(regionId) {
157
+ this._regionId = regionId;
136
158
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AccessRequestsClient.serviceEndpointTemplate, regionId, AccessRequestsClient.endpointServiceName);
159
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
137
160
  }
138
161
  /**
139
162
  * Creates a new AccessRequestsWaiter for resources for this service.
@@ -163,7 +186,7 @@ class AccessRequestsClient {
163
186
  * @param ApproveAccessRequestRequest
164
187
  * @return ApproveAccessRequestResponse
165
188
  * @throws OciError when an error occurs
166
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ApproveAccessRequest.ts.html |here} to see how to use ApproveAccessRequest API.
189
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ApproveAccessRequest.ts.html |here} to see how to use ApproveAccessRequest API.
167
190
  */
168
191
  approveAccessRequest(approveAccessRequestRequest) {
169
192
  return __awaiter(this, void 0, void 0, function* () {
@@ -225,7 +248,7 @@ class AccessRequestsClient {
225
248
  * @param GetAccessRequestRequest
226
249
  * @return GetAccessRequestResponse
227
250
  * @throws OciError when an error occurs
228
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/GetAccessRequest.ts.html |here} to see how to use GetAccessRequest API.
251
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/GetAccessRequest.ts.html |here} to see how to use GetAccessRequest API.
229
252
  */
230
253
  getAccessRequest(getAccessRequestRequest) {
231
254
  return __awaiter(this, void 0, void 0, function* () {
@@ -284,7 +307,7 @@ class AccessRequestsClient {
284
307
  * @param InteractionRequestRequest
285
308
  * @return InteractionRequestResponse
286
309
  * @throws OciError when an error occurs
287
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/InteractionRequest.ts.html |here} to see how to use InteractionRequest API.
310
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/InteractionRequest.ts.html |here} to see how to use InteractionRequest API.
288
311
  */
289
312
  interactionRequest(interactionRequestRequest) {
290
313
  return __awaiter(this, void 0, void 0, function* () {
@@ -351,7 +374,7 @@ class AccessRequestsClient {
351
374
  * @param ListAccessRequestHistoriesRequest
352
375
  * @return ListAccessRequestHistoriesResponse
353
376
  * @throws OciError when an error occurs
354
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ListAccessRequestHistories.ts.html |here} to see how to use ListAccessRequestHistories API.
377
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ListAccessRequestHistories.ts.html |here} to see how to use ListAccessRequestHistories API.
355
378
  */
356
379
  listAccessRequestHistories(listAccessRequestHistoriesRequest) {
357
380
  return __awaiter(this, void 0, void 0, function* () {
@@ -418,7 +441,7 @@ class AccessRequestsClient {
418
441
  * @param ListAccessRequestsRequest
419
442
  * @return ListAccessRequestsResponse
420
443
  * @throws OciError when an error occurs
421
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ListAccessRequests.ts.html |here} to see how to use ListAccessRequests API.
444
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ListAccessRequests.ts.html |here} to see how to use ListAccessRequests API.
422
445
  */
423
446
  listAccessRequests(listAccessRequestsRequest) {
424
447
  return __awaiter(this, void 0, void 0, function* () {
@@ -491,7 +514,7 @@ class AccessRequestsClient {
491
514
  * @param ListInteractionsRequest
492
515
  * @return ListInteractionsResponse
493
516
  * @throws OciError when an error occurs
494
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ListInteractions.ts.html |here} to see how to use ListInteractions API.
517
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ListInteractions.ts.html |here} to see how to use ListInteractions API.
495
518
  */
496
519
  listInteractions(listInteractionsRequest) {
497
520
  return __awaiter(this, void 0, void 0, function* () {
@@ -558,7 +581,7 @@ class AccessRequestsClient {
558
581
  * @param RejectAccessRequestRequest
559
582
  * @return RejectAccessRequestResponse
560
583
  * @throws OciError when an error occurs
561
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/RejectAccessRequest.ts.html |here} to see how to use RejectAccessRequest API.
584
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/RejectAccessRequest.ts.html |here} to see how to use RejectAccessRequest API.
562
585
  */
563
586
  rejectAccessRequest(rejectAccessRequestRequest) {
564
587
  return __awaiter(this, void 0, void 0, function* () {
@@ -621,7 +644,7 @@ class AccessRequestsClient {
621
644
  * @param ReviewAccessRequestRequest
622
645
  * @return ReviewAccessRequestResponse
623
646
  * @throws OciError when an error occurs
624
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ReviewAccessRequest.ts.html |here} to see how to use ReviewAccessRequest API.
647
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ReviewAccessRequest.ts.html |here} to see how to use ReviewAccessRequest API.
625
648
  */
626
649
  reviewAccessRequest(reviewAccessRequestRequest) {
627
650
  return __awaiter(this, void 0, void 0, function* () {
@@ -688,7 +711,7 @@ class AccessRequestsClient {
688
711
  * @param RevokeAccessRequestRequest
689
712
  * @return RevokeAccessRequestResponse
690
713
  * @throws OciError when an error occurs
691
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/RevokeAccessRequest.ts.html |here} to see how to use RevokeAccessRequest API.
714
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/RevokeAccessRequest.ts.html |here} to see how to use RevokeAccessRequest API.
692
715
  */
693
716
  revokeAccessRequest(revokeAccessRequestRequest) {
694
717
  return __awaiter(this, void 0, void 0, function* () {
@@ -756,11 +779,14 @@ var OperatorActionsApiKeys;
756
779
  */
757
780
  class OperatorActionsClient {
758
781
  constructor(params, clientConfiguration) {
782
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
759
783
  this["_endpoint"] = "";
760
784
  this["_defaultHeaders"] = {};
761
785
  this._circuitBreaker = null;
762
786
  this._httpOptions = undefined;
763
787
  this.targetService = "OperatorActions";
788
+ this._regionId = "";
789
+ this._lastSetRegionOrRegionId = "";
764
790
  const requestSigner = params.authenticationDetailsProvider
765
791
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
766
792
  : null;
@@ -810,13 +836,31 @@ class OperatorActionsClient {
810
836
  get logger() {
811
837
  return common.LOG.logger;
812
838
  }
839
+ /**
840
+ * Determines whether realm specific endpoint should be used or not.
841
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
842
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
843
+ */
844
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
845
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
846
+ if (this.logger)
847
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
848
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
849
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorActionsClient.serviceEndpointTemplate, this._region, OperatorActionsClient.endpointServiceName);
850
+ }
851
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
852
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OperatorActionsClient.serviceEndpointTemplate, this._regionId, OperatorActionsClient.endpointServiceName);
853
+ }
854
+ }
813
855
  /**
814
856
  * Sets the region to call (ex, Region.US_PHOENIX_1).
815
857
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
816
858
  * @param region The region of the service.
817
859
  */
818
860
  set region(region) {
861
+ this._region = region;
819
862
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorActionsClient.serviceEndpointTemplate, region, OperatorActionsClient.endpointServiceName);
863
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
820
864
  }
821
865
  /**
822
866
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -827,7 +871,9 @@ class OperatorActionsClient {
827
871
  * @param regionId The public region ID.
828
872
  */
829
873
  set regionId(regionId) {
874
+ this._regionId = regionId;
830
875
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OperatorActionsClient.serviceEndpointTemplate, regionId, OperatorActionsClient.endpointServiceName);
876
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
831
877
  }
832
878
  /**
833
879
  * Gets the operator action associated with the specified operator action ID.
@@ -835,7 +881,7 @@ class OperatorActionsClient {
835
881
  * @param GetOperatorActionRequest
836
882
  * @return GetOperatorActionResponse
837
883
  * @throws OciError when an error occurs
838
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/GetOperatorAction.ts.html |here} to see how to use GetOperatorAction API.
884
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/GetOperatorAction.ts.html |here} to see how to use GetOperatorAction API.
839
885
  */
840
886
  getOperatorAction(getOperatorActionRequest) {
841
887
  return __awaiter(this, void 0, void 0, function* () {
@@ -894,7 +940,7 @@ class OperatorActionsClient {
894
940
  * @param ListOperatorActionsRequest
895
941
  * @return ListOperatorActionsResponse
896
942
  * @throws OciError when an error occurs
897
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ListOperatorActions.ts.html |here} to see how to use ListOperatorActions API.
943
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ListOperatorActions.ts.html |here} to see how to use ListOperatorActions API.
898
944
  */
899
945
  listOperatorActions(listOperatorActionsRequest) {
900
946
  return __awaiter(this, void 0, void 0, function* () {
@@ -970,11 +1016,14 @@ var OperatorControlApiKeys;
970
1016
  */
971
1017
  class OperatorControlClient {
972
1018
  constructor(params, clientConfiguration) {
1019
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
973
1020
  this["_endpoint"] = "";
974
1021
  this["_defaultHeaders"] = {};
975
1022
  this._circuitBreaker = null;
976
1023
  this._httpOptions = undefined;
977
1024
  this.targetService = "OperatorControl";
1025
+ this._regionId = "";
1026
+ this._lastSetRegionOrRegionId = "";
978
1027
  const requestSigner = params.authenticationDetailsProvider
979
1028
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
980
1029
  : null;
@@ -1024,13 +1073,31 @@ class OperatorControlClient {
1024
1073
  get logger() {
1025
1074
  return common.LOG.logger;
1026
1075
  }
1076
+ /**
1077
+ * Determines whether realm specific endpoint should be used or not.
1078
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1079
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1080
+ */
1081
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1082
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1083
+ if (this.logger)
1084
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1085
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1086
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorControlClient.serviceEndpointTemplate, this._region, OperatorControlClient.endpointServiceName);
1087
+ }
1088
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1089
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OperatorControlClient.serviceEndpointTemplate, this._regionId, OperatorControlClient.endpointServiceName);
1090
+ }
1091
+ }
1027
1092
  /**
1028
1093
  * Sets the region to call (ex, Region.US_PHOENIX_1).
1029
1094
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1030
1095
  * @param region The region of the service.
1031
1096
  */
1032
1097
  set region(region) {
1098
+ this._region = region;
1033
1099
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorControlClient.serviceEndpointTemplate, region, OperatorControlClient.endpointServiceName);
1100
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1034
1101
  }
1035
1102
  /**
1036
1103
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1041,7 +1108,9 @@ class OperatorControlClient {
1041
1108
  * @param regionId The public region ID.
1042
1109
  */
1043
1110
  set regionId(regionId) {
1111
+ this._regionId = regionId;
1044
1112
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OperatorControlClient.serviceEndpointTemplate, regionId, OperatorControlClient.endpointServiceName);
1113
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1045
1114
  }
1046
1115
  /**
1047
1116
  * Creates a new OperatorControlWaiter for resources for this service.
@@ -1071,7 +1140,7 @@ class OperatorControlClient {
1071
1140
  * @param ChangeOperatorControlCompartmentRequest
1072
1141
  * @return ChangeOperatorControlCompartmentResponse
1073
1142
  * @throws OciError when an error occurs
1074
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ChangeOperatorControlCompartment.ts.html |here} to see how to use ChangeOperatorControlCompartment API.
1143
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ChangeOperatorControlCompartment.ts.html |here} to see how to use ChangeOperatorControlCompartment API.
1075
1144
  */
1076
1145
  changeOperatorControlCompartment(changeOperatorControlCompartmentRequest) {
1077
1146
  return __awaiter(this, void 0, void 0, function* () {
@@ -1129,7 +1198,7 @@ class OperatorControlClient {
1129
1198
  * @param CreateOperatorControlRequest
1130
1199
  * @return CreateOperatorControlResponse
1131
1200
  * @throws OciError when an error occurs
1132
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/CreateOperatorControl.ts.html |here} to see how to use CreateOperatorControl API.
1201
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/CreateOperatorControl.ts.html |here} to see how to use CreateOperatorControl API.
1133
1202
  */
1134
1203
  createOperatorControl(createOperatorControlRequest) {
1135
1204
  return __awaiter(this, void 0, void 0, function* () {
@@ -1197,7 +1266,7 @@ class OperatorControlClient {
1197
1266
  * @param DeleteOperatorControlRequest
1198
1267
  * @return DeleteOperatorControlResponse
1199
1268
  * @throws OciError when an error occurs
1200
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/DeleteOperatorControl.ts.html |here} to see how to use DeleteOperatorControl API.
1269
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/DeleteOperatorControl.ts.html |here} to see how to use DeleteOperatorControl API.
1201
1270
  */
1202
1271
  deleteOperatorControl(deleteOperatorControlRequest) {
1203
1272
  return __awaiter(this, void 0, void 0, function* () {
@@ -1254,7 +1323,7 @@ class OperatorControlClient {
1254
1323
  * @param GetOperatorControlRequest
1255
1324
  * @return GetOperatorControlResponse
1256
1325
  * @throws OciError when an error occurs
1257
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/GetOperatorControl.ts.html |here} to see how to use GetOperatorControl API.
1326
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/GetOperatorControl.ts.html |here} to see how to use GetOperatorControl API.
1258
1327
  */
1259
1328
  getOperatorControl(getOperatorControlRequest) {
1260
1329
  return __awaiter(this, void 0, void 0, function* () {
@@ -1318,7 +1387,7 @@ class OperatorControlClient {
1318
1387
  * @param ListOperatorControlsRequest
1319
1388
  * @return ListOperatorControlsResponse
1320
1389
  * @throws OciError when an error occurs
1321
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ListOperatorControls.ts.html |here} to see how to use ListOperatorControls API.
1390
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ListOperatorControls.ts.html |here} to see how to use ListOperatorControls API.
1322
1391
  */
1323
1392
  listOperatorControls(listOperatorControlsRequest) {
1324
1393
  return __awaiter(this, void 0, void 0, function* () {
@@ -1389,7 +1458,7 @@ class OperatorControlClient {
1389
1458
  * @param UpdateOperatorControlRequest
1390
1459
  * @return UpdateOperatorControlResponse
1391
1460
  * @throws OciError when an error occurs
1392
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/UpdateOperatorControl.ts.html |here} to see how to use UpdateOperatorControl API.
1461
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/UpdateOperatorControl.ts.html |here} to see how to use UpdateOperatorControl API.
1393
1462
  */
1394
1463
  updateOperatorControl(updateOperatorControlRequest) {
1395
1464
  return __awaiter(this, void 0, void 0, function* () {
@@ -1460,11 +1529,14 @@ var OperatorControlAssignmentApiKeys;
1460
1529
  */
1461
1530
  class OperatorControlAssignmentClient {
1462
1531
  constructor(params, clientConfiguration) {
1532
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
1463
1533
  this["_endpoint"] = "";
1464
1534
  this["_defaultHeaders"] = {};
1465
1535
  this._circuitBreaker = null;
1466
1536
  this._httpOptions = undefined;
1467
1537
  this.targetService = "OperatorControlAssignment";
1538
+ this._regionId = "";
1539
+ this._lastSetRegionOrRegionId = "";
1468
1540
  const requestSigner = params.authenticationDetailsProvider
1469
1541
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1470
1542
  : null;
@@ -1514,13 +1586,31 @@ class OperatorControlAssignmentClient {
1514
1586
  get logger() {
1515
1587
  return common.LOG.logger;
1516
1588
  }
1589
+ /**
1590
+ * Determines whether realm specific endpoint should be used or not.
1591
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1592
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1593
+ */
1594
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1595
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1596
+ if (this.logger)
1597
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1598
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1599
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorControlAssignmentClient.serviceEndpointTemplate, this._region, OperatorControlAssignmentClient.endpointServiceName);
1600
+ }
1601
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1602
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OperatorControlAssignmentClient.serviceEndpointTemplate, this._regionId, OperatorControlAssignmentClient.endpointServiceName);
1603
+ }
1604
+ }
1517
1605
  /**
1518
1606
  * Sets the region to call (ex, Region.US_PHOENIX_1).
1519
1607
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1520
1608
  * @param region The region of the service.
1521
1609
  */
1522
1610
  set region(region) {
1611
+ this._region = region;
1523
1612
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(OperatorControlAssignmentClient.serviceEndpointTemplate, region, OperatorControlAssignmentClient.endpointServiceName);
1613
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1524
1614
  }
1525
1615
  /**
1526
1616
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1531,7 +1621,9 @@ class OperatorControlAssignmentClient {
1531
1621
  * @param regionId The public region ID.
1532
1622
  */
1533
1623
  set regionId(regionId) {
1624
+ this._regionId = regionId;
1534
1625
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(OperatorControlAssignmentClient.serviceEndpointTemplate, regionId, OperatorControlAssignmentClient.endpointServiceName);
1626
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1535
1627
  }
1536
1628
  /**
1537
1629
  * Creates a new OperatorControlAssignmentWaiter for resources for this service.
@@ -1561,7 +1653,7 @@ class OperatorControlAssignmentClient {
1561
1653
  * @param ChangeOperatorControlAssignmentCompartmentRequest
1562
1654
  * @return ChangeOperatorControlAssignmentCompartmentResponse
1563
1655
  * @throws OciError when an error occurs
1564
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ChangeOperatorControlAssignmentCompartment.ts.html |here} to see how to use ChangeOperatorControlAssignmentCompartment API.
1656
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ChangeOperatorControlAssignmentCompartment.ts.html |here} to see how to use ChangeOperatorControlAssignmentCompartment API.
1565
1657
  */
1566
1658
  changeOperatorControlAssignmentCompartment(changeOperatorControlAssignmentCompartmentRequest) {
1567
1659
  return __awaiter(this, void 0, void 0, function* () {
@@ -1618,7 +1710,7 @@ class OperatorControlAssignmentClient {
1618
1710
  * @param CreateOperatorControlAssignmentRequest
1619
1711
  * @return CreateOperatorControlAssignmentResponse
1620
1712
  * @throws OciError when an error occurs
1621
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/CreateOperatorControlAssignment.ts.html |here} to see how to use CreateOperatorControlAssignment API.
1713
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/CreateOperatorControlAssignment.ts.html |here} to see how to use CreateOperatorControlAssignment API.
1622
1714
  */
1623
1715
  createOperatorControlAssignment(createOperatorControlAssignmentRequest) {
1624
1716
  return __awaiter(this, void 0, void 0, function* () {
@@ -1686,7 +1778,7 @@ class OperatorControlAssignmentClient {
1686
1778
  * @param DeleteOperatorControlAssignmentRequest
1687
1779
  * @return DeleteOperatorControlAssignmentResponse
1688
1780
  * @throws OciError when an error occurs
1689
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/DeleteOperatorControlAssignment.ts.html |here} to see how to use DeleteOperatorControlAssignment API.
1781
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/DeleteOperatorControlAssignment.ts.html |here} to see how to use DeleteOperatorControlAssignment API.
1690
1782
  */
1691
1783
  deleteOperatorControlAssignment(deleteOperatorControlAssignmentRequest) {
1692
1784
  return __awaiter(this, void 0, void 0, function* () {
@@ -1743,7 +1835,7 @@ class OperatorControlAssignmentClient {
1743
1835
  * @param GetOperatorControlAssignmentRequest
1744
1836
  * @return GetOperatorControlAssignmentResponse
1745
1837
  * @throws OciError when an error occurs
1746
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/GetOperatorControlAssignment.ts.html |here} to see how to use GetOperatorControlAssignment API.
1838
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/GetOperatorControlAssignment.ts.html |here} to see how to use GetOperatorControlAssignment API.
1747
1839
  */
1748
1840
  getOperatorControlAssignment(getOperatorControlAssignmentRequest) {
1749
1841
  return __awaiter(this, void 0, void 0, function* () {
@@ -1806,7 +1898,7 @@ class OperatorControlAssignmentClient {
1806
1898
  * @param ListOperatorControlAssignmentsRequest
1807
1899
  * @return ListOperatorControlAssignmentsResponse
1808
1900
  * @throws OciError when an error occurs
1809
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/ListOperatorControlAssignments.ts.html |here} to see how to use ListOperatorControlAssignments API.
1901
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/ListOperatorControlAssignments.ts.html |here} to see how to use ListOperatorControlAssignments API.
1810
1902
  */
1811
1903
  listOperatorControlAssignments(listOperatorControlAssignmentsRequest) {
1812
1904
  return __awaiter(this, void 0, void 0, function* () {
@@ -1878,7 +1970,7 @@ class OperatorControlAssignmentClient {
1878
1970
  * @param UpdateOperatorControlAssignmentRequest
1879
1971
  * @return UpdateOperatorControlAssignmentResponse
1880
1972
  * @throws OciError when an error occurs
1881
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/operatoraccesscontrol/UpdateOperatorControlAssignment.ts.html |here} to see how to use UpdateOperatorControlAssignment API.
1973
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/operatoraccesscontrol/UpdateOperatorControlAssignment.ts.html |here} to see how to use UpdateOperatorControlAssignment API.
1882
1974
  */
1883
1975
  updateOperatorControlAssignment(updateOperatorControlAssignmentRequest) {
1884
1976
  return __awaiter(this, void 0, void 0, function* () {