oci-apigateway 2.57.0 → 2.58.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.
Files changed (54) hide show
  1. package/lib/client.d.ts +110 -50
  2. package/lib/client.js +188 -50
  3. package/lib/client.js.map +1 -1
  4. package/lib/request/cancel-work-request-request.d.ts +1 -1
  5. package/lib/request/change-api-compartment-request.d.ts +1 -1
  6. package/lib/request/change-certificate-compartment-request.d.ts +1 -1
  7. package/lib/request/change-deployment-compartment-request.d.ts +1 -1
  8. package/lib/request/change-gateway-compartment-request.d.ts +1 -1
  9. package/lib/request/change-subscriber-compartment-request.d.ts +1 -1
  10. package/lib/request/change-usage-plan-compartment-request.d.ts +1 -1
  11. package/lib/request/create-api-request.d.ts +1 -1
  12. package/lib/request/create-certificate-request.d.ts +1 -1
  13. package/lib/request/create-deployment-request.d.ts +1 -1
  14. package/lib/request/create-gateway-request.d.ts +1 -1
  15. package/lib/request/create-sdk-request.d.ts +1 -1
  16. package/lib/request/create-subscriber-request.d.ts +1 -1
  17. package/lib/request/create-usage-plan-request.d.ts +1 -1
  18. package/lib/request/delete-api-request.d.ts +1 -1
  19. package/lib/request/delete-certificate-request.d.ts +1 -1
  20. package/lib/request/delete-deployment-request.d.ts +1 -1
  21. package/lib/request/delete-gateway-request.d.ts +1 -1
  22. package/lib/request/delete-sdk-request.d.ts +1 -1
  23. package/lib/request/delete-subscriber-request.d.ts +1 -1
  24. package/lib/request/delete-usage-plan-request.d.ts +1 -1
  25. package/lib/request/get-api-content-request.d.ts +1 -1
  26. package/lib/request/get-api-deployment-specification-request.d.ts +1 -1
  27. package/lib/request/get-api-request.d.ts +1 -1
  28. package/lib/request/get-api-validations-request.d.ts +1 -1
  29. package/lib/request/get-certificate-request.d.ts +1 -1
  30. package/lib/request/get-deployment-request.d.ts +1 -1
  31. package/lib/request/get-gateway-request.d.ts +1 -1
  32. package/lib/request/get-sdk-request.d.ts +1 -1
  33. package/lib/request/get-subscriber-request.d.ts +1 -1
  34. package/lib/request/get-usage-plan-request.d.ts +1 -1
  35. package/lib/request/get-work-request-request.d.ts +1 -1
  36. package/lib/request/list-apis-request.d.ts +1 -1
  37. package/lib/request/list-certificates-request.d.ts +1 -1
  38. package/lib/request/list-deployments-request.d.ts +1 -1
  39. package/lib/request/list-gateways-request.d.ts +1 -1
  40. package/lib/request/list-sdk-language-types-request.d.ts +1 -1
  41. package/lib/request/list-sdks-request.d.ts +1 -1
  42. package/lib/request/list-subscribers-request.d.ts +1 -1
  43. package/lib/request/list-usage-plans-request.d.ts +1 -1
  44. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  45. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  46. package/lib/request/list-work-requests-request.d.ts +1 -1
  47. package/lib/request/update-api-request.d.ts +1 -1
  48. package/lib/request/update-certificate-request.d.ts +1 -1
  49. package/lib/request/update-deployment-request.d.ts +1 -1
  50. package/lib/request/update-gateway-request.d.ts +1 -1
  51. package/lib/request/update-sdk-request.d.ts +1 -1
  52. package/lib/request/update-subscriber-request.d.ts +1 -1
  53. package/lib/request/update-usage-plan-request.d.ts +1 -1
  54. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -64,11 +64,14 @@ var ApiGatewayApiKeys;
64
64
  */
65
65
  class ApiGatewayClient {
66
66
  constructor(params, clientConfiguration) {
67
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
67
68
  this["_endpoint"] = "";
68
69
  this["_defaultHeaders"] = {};
69
70
  this._circuitBreaker = null;
70
71
  this._httpOptions = undefined;
71
72
  this.targetService = "ApiGateway";
73
+ this._regionId = "";
74
+ this._lastSetRegionOrRegionId = "";
72
75
  const requestSigner = params.authenticationDetailsProvider
73
76
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
74
77
  : null;
@@ -118,13 +121,31 @@ class ApiGatewayClient {
118
121
  get logger() {
119
122
  return common.LOG.logger;
120
123
  }
124
+ /**
125
+ * Determines whether realm specific endpoint should be used or not.
126
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
127
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
128
+ */
129
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
130
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
131
+ if (this.logger)
132
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
133
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
134
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ApiGatewayClient.serviceEndpointTemplate, this._region, ApiGatewayClient.endpointServiceName);
135
+ }
136
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
137
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ApiGatewayClient.serviceEndpointTemplate, this._regionId, ApiGatewayClient.endpointServiceName);
138
+ }
139
+ }
121
140
  /**
122
141
  * Sets the region to call (ex, Region.US_PHOENIX_1).
123
142
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
124
143
  * @param region The region of the service.
125
144
  */
126
145
  set region(region) {
146
+ this._region = region;
127
147
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ApiGatewayClient.serviceEndpointTemplate, region, ApiGatewayClient.endpointServiceName);
148
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
128
149
  }
129
150
  /**
130
151
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -135,7 +156,9 @@ class ApiGatewayClient {
135
156
  * @param regionId The public region ID.
136
157
  */
137
158
  set regionId(regionId) {
159
+ this._regionId = regionId;
138
160
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ApiGatewayClient.serviceEndpointTemplate, regionId, ApiGatewayClient.endpointServiceName);
161
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
139
162
  }
140
163
  /**
141
164
  * Creates a new ApiGatewayWaiter for resources for this service.
@@ -164,7 +187,7 @@ class ApiGatewayClient {
164
187
  * @param ChangeApiCompartmentRequest
165
188
  * @return ChangeApiCompartmentResponse
166
189
  * @throws OciError when an error occurs
167
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ChangeApiCompartment.ts.html |here} to see how to use ChangeApiCompartment API.
190
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ChangeApiCompartment.ts.html |here} to see how to use ChangeApiCompartment API.
168
191
  */
169
192
  changeApiCompartment(changeApiCompartmentRequest) {
170
193
  return __awaiter(this, void 0, void 0, function* () {
@@ -226,7 +249,7 @@ class ApiGatewayClient {
226
249
  * @param ChangeCertificateCompartmentRequest
227
250
  * @return ChangeCertificateCompartmentResponse
228
251
  * @throws OciError when an error occurs
229
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ChangeCertificateCompartment.ts.html |here} to see how to use ChangeCertificateCompartment API.
252
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ChangeCertificateCompartment.ts.html |here} to see how to use ChangeCertificateCompartment API.
230
253
  */
231
254
  changeCertificateCompartment(changeCertificateCompartmentRequest) {
232
255
  return __awaiter(this, void 0, void 0, function* () {
@@ -284,7 +307,7 @@ class ApiGatewayClient {
284
307
  * @param CreateApiRequest
285
308
  * @return CreateApiResponse
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/apigateway/CreateApi.ts.html |here} to see how to use CreateApi API.
310
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/CreateApi.ts.html |here} to see how to use CreateApi API.
288
311
  */
289
312
  createApi(createApiRequest) {
290
313
  return __awaiter(this, void 0, void 0, function* () {
@@ -358,7 +381,7 @@ class ApiGatewayClient {
358
381
  * @param CreateCertificateRequest
359
382
  * @return CreateCertificateResponse
360
383
  * @throws OciError when an error occurs
361
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/CreateCertificate.ts.html |here} to see how to use CreateCertificate API.
384
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/CreateCertificate.ts.html |here} to see how to use CreateCertificate API.
362
385
  */
363
386
  createCertificate(createCertificateRequest) {
364
387
  return __awaiter(this, void 0, void 0, function* () {
@@ -431,7 +454,7 @@ class ApiGatewayClient {
431
454
  * @param CreateSdkRequest
432
455
  * @return CreateSdkResponse
433
456
  * @throws OciError when an error occurs
434
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/CreateSdk.ts.html |here} to see how to use CreateSdk API.
457
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/CreateSdk.ts.html |here} to see how to use CreateSdk API.
435
458
  */
436
459
  createSdk(createSdkRequest) {
437
460
  return __awaiter(this, void 0, void 0, function* () {
@@ -504,7 +527,7 @@ class ApiGatewayClient {
504
527
  * @param DeleteApiRequest
505
528
  * @return DeleteApiResponse
506
529
  * @throws OciError when an error occurs
507
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/DeleteApi.ts.html |here} to see how to use DeleteApi API.
530
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/DeleteApi.ts.html |here} to see how to use DeleteApi API.
508
531
  */
509
532
  deleteApi(deleteApiRequest) {
510
533
  return __awaiter(this, void 0, void 0, function* () {
@@ -564,7 +587,7 @@ class ApiGatewayClient {
564
587
  * @param DeleteCertificateRequest
565
588
  * @return DeleteCertificateResponse
566
589
  * @throws OciError when an error occurs
567
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API.
590
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API.
568
591
  */
569
592
  deleteCertificate(deleteCertificateRequest) {
570
593
  return __awaiter(this, void 0, void 0, function* () {
@@ -624,7 +647,7 @@ class ApiGatewayClient {
624
647
  * @param DeleteSdkRequest
625
648
  * @return DeleteSdkResponse
626
649
  * @throws OciError when an error occurs
627
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/DeleteSdk.ts.html |here} to see how to use DeleteSdk API.
650
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/DeleteSdk.ts.html |here} to see how to use DeleteSdk API.
628
651
  */
629
652
  deleteSdk(deleteSdkRequest) {
630
653
  return __awaiter(this, void 0, void 0, function* () {
@@ -684,7 +707,7 @@ class ApiGatewayClient {
684
707
  * @param GetApiRequest
685
708
  * @return GetApiResponse
686
709
  * @throws OciError when an error occurs
687
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetApi.ts.html |here} to see how to use GetApi API.
710
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetApi.ts.html |here} to see how to use GetApi API.
688
711
  */
689
712
  getApi(getApiRequest) {
690
713
  return __awaiter(this, void 0, void 0, function* () {
@@ -747,7 +770,7 @@ class ApiGatewayClient {
747
770
  * @param GetApiContentRequest
748
771
  * @return GetApiContentResponse
749
772
  * @throws OciError when an error occurs
750
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetApiContent.ts.html |here} to see how to use GetApiContent API.
773
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetApiContent.ts.html |here} to see how to use GetApiContent API.
751
774
  */
752
775
  getApiContent(getApiContentRequest) {
753
776
  return __awaiter(this, void 0, void 0, function* () {
@@ -816,7 +839,7 @@ class ApiGatewayClient {
816
839
  * @param GetApiDeploymentSpecificationRequest
817
840
  * @return GetApiDeploymentSpecificationResponse
818
841
  * @throws OciError when an error occurs
819
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetApiDeploymentSpecification.ts.html |here} to see how to use GetApiDeploymentSpecification API.
842
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetApiDeploymentSpecification.ts.html |here} to see how to use GetApiDeploymentSpecification API.
820
843
  */
821
844
  getApiDeploymentSpecification(getApiDeploymentSpecificationRequest) {
822
845
  return __awaiter(this, void 0, void 0, function* () {
@@ -880,7 +903,7 @@ class ApiGatewayClient {
880
903
  * @param GetApiValidationsRequest
881
904
  * @return GetApiValidationsResponse
882
905
  * @throws OciError when an error occurs
883
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetApiValidations.ts.html |here} to see how to use GetApiValidations API.
906
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetApiValidations.ts.html |here} to see how to use GetApiValidations API.
884
907
  */
885
908
  getApiValidations(getApiValidationsRequest) {
886
909
  return __awaiter(this, void 0, void 0, function* () {
@@ -944,7 +967,7 @@ class ApiGatewayClient {
944
967
  * @param GetCertificateRequest
945
968
  * @return GetCertificateResponse
946
969
  * @throws OciError when an error occurs
947
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetCertificate.ts.html |here} to see how to use GetCertificate API.
970
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetCertificate.ts.html |here} to see how to use GetCertificate API.
948
971
  */
949
972
  getCertificate(getCertificateRequest) {
950
973
  return __awaiter(this, void 0, void 0, function* () {
@@ -1007,7 +1030,7 @@ class ApiGatewayClient {
1007
1030
  * @param GetSdkRequest
1008
1031
  * @return GetSdkResponse
1009
1032
  * @throws OciError when an error occurs
1010
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetSdk.ts.html |here} to see how to use GetSdk API.
1033
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetSdk.ts.html |here} to see how to use GetSdk API.
1011
1034
  */
1012
1035
  getSdk(getSdkRequest) {
1013
1036
  return __awaiter(this, void 0, void 0, function* () {
@@ -1071,7 +1094,7 @@ class ApiGatewayClient {
1071
1094
  * @param ListApisRequest
1072
1095
  * @return ListApisResponse
1073
1096
  * @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/apigateway/ListApis.ts.html |here} to see how to use ListApis API.
1097
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListApis.ts.html |here} to see how to use ListApis API.
1075
1098
  */
1076
1099
  listApis(listApisRequest) {
1077
1100
  return __awaiter(this, void 0, void 0, function* () {
@@ -1146,7 +1169,7 @@ class ApiGatewayClient {
1146
1169
  * @param ListCertificatesRequest
1147
1170
  * @return ListCertificatesResponse
1148
1171
  * @throws OciError when an error occurs
1149
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListCertificates.ts.html |here} to see how to use ListCertificates API.
1172
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListCertificates.ts.html |here} to see how to use ListCertificates API.
1150
1173
  */
1151
1174
  listCertificates(listCertificatesRequest) {
1152
1175
  return __awaiter(this, void 0, void 0, function* () {
@@ -1220,7 +1243,7 @@ class ApiGatewayClient {
1220
1243
  * @param ListSdkLanguageTypesRequest
1221
1244
  * @return ListSdkLanguageTypesResponse
1222
1245
  * @throws OciError when an error occurs
1223
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListSdkLanguageTypes.ts.html |here} to see how to use ListSdkLanguageTypes API.
1246
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListSdkLanguageTypes.ts.html |here} to see how to use ListSdkLanguageTypes API.
1224
1247
  */
1225
1248
  listSdkLanguageTypes(listSdkLanguageTypesRequest) {
1226
1249
  return __awaiter(this, void 0, void 0, function* () {
@@ -1293,7 +1316,7 @@ class ApiGatewayClient {
1293
1316
  * @param ListSdksRequest
1294
1317
  * @return ListSdksResponse
1295
1318
  * @throws OciError when an error occurs
1296
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListSdks.ts.html |here} to see how to use ListSdks API.
1319
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListSdks.ts.html |here} to see how to use ListSdks API.
1297
1320
  */
1298
1321
  listSdks(listSdksRequest) {
1299
1322
  return __awaiter(this, void 0, void 0, function* () {
@@ -1368,7 +1391,7 @@ class ApiGatewayClient {
1368
1391
  * @param UpdateApiRequest
1369
1392
  * @return UpdateApiResponse
1370
1393
  * @throws OciError when an error occurs
1371
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
1394
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
1372
1395
  */
1373
1396
  updateApi(updateApiRequest) {
1374
1397
  return __awaiter(this, void 0, void 0, function* () {
@@ -1429,7 +1452,7 @@ class ApiGatewayClient {
1429
1452
  * @param UpdateCertificateRequest
1430
1453
  * @return UpdateCertificateResponse
1431
1454
  * @throws OciError when an error occurs
1432
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
1455
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
1433
1456
  */
1434
1457
  updateCertificate(updateCertificateRequest) {
1435
1458
  return __awaiter(this, void 0, void 0, function* () {
@@ -1490,7 +1513,7 @@ class ApiGatewayClient {
1490
1513
  * @param UpdateSdkRequest
1491
1514
  * @return UpdateSdkResponse
1492
1515
  * @throws OciError when an error occurs
1493
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
1516
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
1494
1517
  */
1495
1518
  updateSdk(updateSdkRequest) {
1496
1519
  return __awaiter(this, void 0, void 0, function* () {
@@ -1552,11 +1575,14 @@ var DeploymentApiKeys;
1552
1575
  */
1553
1576
  class DeploymentClient {
1554
1577
  constructor(params, clientConfiguration) {
1578
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
1555
1579
  this["_endpoint"] = "";
1556
1580
  this["_defaultHeaders"] = {};
1557
1581
  this._circuitBreaker = null;
1558
1582
  this._httpOptions = undefined;
1559
1583
  this.targetService = "Deployment";
1584
+ this._regionId = "";
1585
+ this._lastSetRegionOrRegionId = "";
1560
1586
  const requestSigner = params.authenticationDetailsProvider
1561
1587
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1562
1588
  : null;
@@ -1606,13 +1632,31 @@ class DeploymentClient {
1606
1632
  get logger() {
1607
1633
  return common.LOG.logger;
1608
1634
  }
1635
+ /**
1636
+ * Determines whether realm specific endpoint should be used or not.
1637
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1638
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1639
+ */
1640
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1641
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1642
+ if (this.logger)
1643
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1644
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1645
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DeploymentClient.serviceEndpointTemplate, this._region, DeploymentClient.endpointServiceName);
1646
+ }
1647
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1648
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DeploymentClient.serviceEndpointTemplate, this._regionId, DeploymentClient.endpointServiceName);
1649
+ }
1650
+ }
1609
1651
  /**
1610
1652
  * Sets the region to call (ex, Region.US_PHOENIX_1).
1611
1653
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1612
1654
  * @param region The region of the service.
1613
1655
  */
1614
1656
  set region(region) {
1657
+ this._region = region;
1615
1658
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DeploymentClient.serviceEndpointTemplate, region, DeploymentClient.endpointServiceName);
1659
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1616
1660
  }
1617
1661
  /**
1618
1662
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1623,7 +1667,9 @@ class DeploymentClient {
1623
1667
  * @param regionId The public region ID.
1624
1668
  */
1625
1669
  set regionId(regionId) {
1670
+ this._regionId = regionId;
1626
1671
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DeploymentClient.serviceEndpointTemplate, regionId, DeploymentClient.endpointServiceName);
1672
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1627
1673
  }
1628
1674
  /**
1629
1675
  * Creates a new DeploymentWaiter for resources for this service.
@@ -1652,7 +1698,7 @@ class DeploymentClient {
1652
1698
  * @param ChangeDeploymentCompartmentRequest
1653
1699
  * @return ChangeDeploymentCompartmentResponse
1654
1700
  * @throws OciError when an error occurs
1655
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ChangeDeploymentCompartment.ts.html |here} to see how to use ChangeDeploymentCompartment API.
1701
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ChangeDeploymentCompartment.ts.html |here} to see how to use ChangeDeploymentCompartment API.
1656
1702
  */
1657
1703
  changeDeploymentCompartment(changeDeploymentCompartmentRequest) {
1658
1704
  return __awaiter(this, void 0, void 0, function* () {
@@ -1715,7 +1761,7 @@ class DeploymentClient {
1715
1761
  * @param CreateDeploymentRequest
1716
1762
  * @return CreateDeploymentResponse
1717
1763
  * @throws OciError when an error occurs
1718
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/CreateDeployment.ts.html |here} to see how to use CreateDeployment API.
1764
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/CreateDeployment.ts.html |here} to see how to use CreateDeployment API.
1719
1765
  */
1720
1766
  createDeployment(createDeploymentRequest) {
1721
1767
  return __awaiter(this, void 0, void 0, function* () {
@@ -1788,7 +1834,7 @@ class DeploymentClient {
1788
1834
  * @param DeleteDeploymentRequest
1789
1835
  * @return DeleteDeploymentResponse
1790
1836
  * @throws OciError when an error occurs
1791
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/DeleteDeployment.ts.html |here} to see how to use DeleteDeployment API.
1837
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/DeleteDeployment.ts.html |here} to see how to use DeleteDeployment API.
1792
1838
  */
1793
1839
  deleteDeployment(deleteDeploymentRequest) {
1794
1840
  return __awaiter(this, void 0, void 0, function* () {
@@ -1848,7 +1894,7 @@ class DeploymentClient {
1848
1894
  * @param GetDeploymentRequest
1849
1895
  * @return GetDeploymentResponse
1850
1896
  * @throws OciError when an error occurs
1851
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetDeployment.ts.html |here} to see how to use GetDeployment API.
1897
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetDeployment.ts.html |here} to see how to use GetDeployment API.
1852
1898
  */
1853
1899
  getDeployment(getDeploymentRequest) {
1854
1900
  return __awaiter(this, void 0, void 0, function* () {
@@ -1912,7 +1958,7 @@ class DeploymentClient {
1912
1958
  * @param ListDeploymentsRequest
1913
1959
  * @return ListDeploymentsResponse
1914
1960
  * @throws OciError when an error occurs
1915
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListDeployments.ts.html |here} to see how to use ListDeployments API.
1961
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListDeployments.ts.html |here} to see how to use ListDeployments API.
1916
1962
  */
1917
1963
  listDeployments(listDeploymentsRequest) {
1918
1964
  return __awaiter(this, void 0, void 0, function* () {
@@ -1987,7 +2033,7 @@ class DeploymentClient {
1987
2033
  * @param UpdateDeploymentRequest
1988
2034
  * @return UpdateDeploymentResponse
1989
2035
  * @throws OciError when an error occurs
1990
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/UpdateDeployment.ts.html |here} to see how to use UpdateDeployment API.
2036
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/UpdateDeployment.ts.html |here} to see how to use UpdateDeployment API.
1991
2037
  */
1992
2038
  updateDeployment(updateDeploymentRequest) {
1993
2039
  return __awaiter(this, void 0, void 0, function* () {
@@ -2054,11 +2100,14 @@ var GatewayApiKeys;
2054
2100
  */
2055
2101
  class GatewayClient {
2056
2102
  constructor(params, clientConfiguration) {
2103
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
2057
2104
  this["_endpoint"] = "";
2058
2105
  this["_defaultHeaders"] = {};
2059
2106
  this._circuitBreaker = null;
2060
2107
  this._httpOptions = undefined;
2061
2108
  this.targetService = "Gateway";
2109
+ this._regionId = "";
2110
+ this._lastSetRegionOrRegionId = "";
2062
2111
  const requestSigner = params.authenticationDetailsProvider
2063
2112
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2064
2113
  : null;
@@ -2108,13 +2157,31 @@ class GatewayClient {
2108
2157
  get logger() {
2109
2158
  return common.LOG.logger;
2110
2159
  }
2160
+ /**
2161
+ * Determines whether realm specific endpoint should be used or not.
2162
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
2163
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
2164
+ */
2165
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
2166
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
2167
+ if (this.logger)
2168
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2169
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
2170
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GatewayClient.serviceEndpointTemplate, this._region, GatewayClient.endpointServiceName);
2171
+ }
2172
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
2173
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(GatewayClient.serviceEndpointTemplate, this._regionId, GatewayClient.endpointServiceName);
2174
+ }
2175
+ }
2111
2176
  /**
2112
2177
  * Sets the region to call (ex, Region.US_PHOENIX_1).
2113
2178
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2114
2179
  * @param region The region of the service.
2115
2180
  */
2116
2181
  set region(region) {
2182
+ this._region = region;
2117
2183
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(GatewayClient.serviceEndpointTemplate, region, GatewayClient.endpointServiceName);
2184
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
2118
2185
  }
2119
2186
  /**
2120
2187
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -2125,7 +2192,9 @@ class GatewayClient {
2125
2192
  * @param regionId The public region ID.
2126
2193
  */
2127
2194
  set regionId(regionId) {
2195
+ this._regionId = regionId;
2128
2196
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(GatewayClient.serviceEndpointTemplate, regionId, GatewayClient.endpointServiceName);
2197
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
2129
2198
  }
2130
2199
  /**
2131
2200
  * Creates a new GatewayWaiter for resources for this service.
@@ -2154,7 +2223,7 @@ class GatewayClient {
2154
2223
  * @param ChangeGatewayCompartmentRequest
2155
2224
  * @return ChangeGatewayCompartmentResponse
2156
2225
  * @throws OciError when an error occurs
2157
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ChangeGatewayCompartment.ts.html |here} to see how to use ChangeGatewayCompartment API.
2226
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ChangeGatewayCompartment.ts.html |here} to see how to use ChangeGatewayCompartment API.
2158
2227
  */
2159
2228
  changeGatewayCompartment(changeGatewayCompartmentRequest) {
2160
2229
  return __awaiter(this, void 0, void 0, function* () {
@@ -2217,7 +2286,7 @@ class GatewayClient {
2217
2286
  * @param CreateGatewayRequest
2218
2287
  * @return CreateGatewayResponse
2219
2288
  * @throws OciError when an error occurs
2220
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/CreateGateway.ts.html |here} to see how to use CreateGateway API.
2289
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/CreateGateway.ts.html |here} to see how to use CreateGateway API.
2221
2290
  */
2222
2291
  createGateway(createGatewayRequest) {
2223
2292
  return __awaiter(this, void 0, void 0, function* () {
@@ -2290,7 +2359,7 @@ class GatewayClient {
2290
2359
  * @param DeleteGatewayRequest
2291
2360
  * @return DeleteGatewayResponse
2292
2361
  * @throws OciError when an error occurs
2293
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/DeleteGateway.ts.html |here} to see how to use DeleteGateway API.
2362
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/DeleteGateway.ts.html |here} to see how to use DeleteGateway API.
2294
2363
  */
2295
2364
  deleteGateway(deleteGatewayRequest) {
2296
2365
  return __awaiter(this, void 0, void 0, function* () {
@@ -2350,7 +2419,7 @@ class GatewayClient {
2350
2419
  * @param GetGatewayRequest
2351
2420
  * @return GetGatewayResponse
2352
2421
  * @throws OciError when an error occurs
2353
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetGateway.ts.html |here} to see how to use GetGateway API.
2422
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetGateway.ts.html |here} to see how to use GetGateway API.
2354
2423
  */
2355
2424
  getGateway(getGatewayRequest) {
2356
2425
  return __awaiter(this, void 0, void 0, function* () {
@@ -2414,7 +2483,7 @@ class GatewayClient {
2414
2483
  * @param ListGatewaysRequest
2415
2484
  * @return ListGatewaysResponse
2416
2485
  * @throws OciError when an error occurs
2417
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListGateways.ts.html |here} to see how to use ListGateways API.
2486
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListGateways.ts.html |here} to see how to use ListGateways API.
2418
2487
  */
2419
2488
  listGateways(listGatewaysRequest) {
2420
2489
  return __awaiter(this, void 0, void 0, function* () {
@@ -2489,7 +2558,7 @@ class GatewayClient {
2489
2558
  * @param UpdateGatewayRequest
2490
2559
  * @return UpdateGatewayResponse
2491
2560
  * @throws OciError when an error occurs
2492
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/UpdateGateway.ts.html |here} to see how to use UpdateGateway API.
2561
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/UpdateGateway.ts.html |here} to see how to use UpdateGateway API.
2493
2562
  */
2494
2563
  updateGateway(updateGatewayRequest) {
2495
2564
  return __awaiter(this, void 0, void 0, function* () {
@@ -2556,11 +2625,14 @@ var SubscribersApiKeys;
2556
2625
  */
2557
2626
  class SubscribersClient {
2558
2627
  constructor(params, clientConfiguration) {
2628
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
2559
2629
  this["_endpoint"] = "";
2560
2630
  this["_defaultHeaders"] = {};
2561
2631
  this._circuitBreaker = null;
2562
2632
  this._httpOptions = undefined;
2563
2633
  this.targetService = "Subscribers";
2634
+ this._regionId = "";
2635
+ this._lastSetRegionOrRegionId = "";
2564
2636
  const requestSigner = params.authenticationDetailsProvider
2565
2637
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
2566
2638
  : null;
@@ -2610,13 +2682,31 @@ class SubscribersClient {
2610
2682
  get logger() {
2611
2683
  return common.LOG.logger;
2612
2684
  }
2685
+ /**
2686
+ * Determines whether realm specific endpoint should be used or not.
2687
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
2688
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
2689
+ */
2690
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
2691
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
2692
+ if (this.logger)
2693
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
2694
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
2695
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscribersClient.serviceEndpointTemplate, this._region, SubscribersClient.endpointServiceName);
2696
+ }
2697
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
2698
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SubscribersClient.serviceEndpointTemplate, this._regionId, SubscribersClient.endpointServiceName);
2699
+ }
2700
+ }
2613
2701
  /**
2614
2702
  * Sets the region to call (ex, Region.US_PHOENIX_1).
2615
2703
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
2616
2704
  * @param region The region of the service.
2617
2705
  */
2618
2706
  set region(region) {
2707
+ this._region = region;
2619
2708
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(SubscribersClient.serviceEndpointTemplate, region, SubscribersClient.endpointServiceName);
2709
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
2620
2710
  }
2621
2711
  /**
2622
2712
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -2627,7 +2717,9 @@ class SubscribersClient {
2627
2717
  * @param regionId The public region ID.
2628
2718
  */
2629
2719
  set regionId(regionId) {
2720
+ this._regionId = regionId;
2630
2721
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(SubscribersClient.serviceEndpointTemplate, regionId, SubscribersClient.endpointServiceName);
2722
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
2631
2723
  }
2632
2724
  /**
2633
2725
  * Creates a new SubscribersWaiter for resources for this service.
@@ -2656,7 +2748,7 @@ class SubscribersClient {
2656
2748
  * @param ChangeSubscriberCompartmentRequest
2657
2749
  * @return ChangeSubscriberCompartmentResponse
2658
2750
  * @throws OciError when an error occurs
2659
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ChangeSubscriberCompartment.ts.html |here} to see how to use ChangeSubscriberCompartment API.
2751
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ChangeSubscriberCompartment.ts.html |here} to see how to use ChangeSubscriberCompartment API.
2660
2752
  */
2661
2753
  changeSubscriberCompartment(changeSubscriberCompartmentRequest) {
2662
2754
  return __awaiter(this, void 0, void 0, function* () {
@@ -2718,7 +2810,7 @@ class SubscribersClient {
2718
2810
  * @param CreateSubscriberRequest
2719
2811
  * @return CreateSubscriberResponse
2720
2812
  * @throws OciError when an error occurs
2721
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/CreateSubscriber.ts.html |here} to see how to use CreateSubscriber API.
2813
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/CreateSubscriber.ts.html |here} to see how to use CreateSubscriber API.
2722
2814
  */
2723
2815
  createSubscriber(createSubscriberRequest) {
2724
2816
  return __awaiter(this, void 0, void 0, function* () {
@@ -2791,7 +2883,7 @@ class SubscribersClient {
2791
2883
  * @param DeleteSubscriberRequest
2792
2884
  * @return DeleteSubscriberResponse
2793
2885
  * @throws OciError when an error occurs
2794
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/DeleteSubscriber.ts.html |here} to see how to use DeleteSubscriber API.
2886
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/DeleteSubscriber.ts.html |here} to see how to use DeleteSubscriber API.
2795
2887
  */
2796
2888
  deleteSubscriber(deleteSubscriberRequest) {
2797
2889
  return __awaiter(this, void 0, void 0, function* () {
@@ -2851,7 +2943,7 @@ class SubscribersClient {
2851
2943
  * @param GetSubscriberRequest
2852
2944
  * @return GetSubscriberResponse
2853
2945
  * @throws OciError when an error occurs
2854
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetSubscriber.ts.html |here} to see how to use GetSubscriber API.
2946
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetSubscriber.ts.html |here} to see how to use GetSubscriber API.
2855
2947
  */
2856
2948
  getSubscriber(getSubscriberRequest) {
2857
2949
  return __awaiter(this, void 0, void 0, function* () {
@@ -2914,7 +3006,7 @@ class SubscribersClient {
2914
3006
  * @param ListSubscribersRequest
2915
3007
  * @return ListSubscribersResponse
2916
3008
  * @throws OciError when an error occurs
2917
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListSubscribers.ts.html |here} to see how to use ListSubscribers API.
3009
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListSubscribers.ts.html |here} to see how to use ListSubscribers API.
2918
3010
  */
2919
3011
  listSubscribers(listSubscribersRequest) {
2920
3012
  return __awaiter(this, void 0, void 0, function* () {
@@ -2988,7 +3080,7 @@ class SubscribersClient {
2988
3080
  * @param UpdateSubscriberRequest
2989
3081
  * @return UpdateSubscriberResponse
2990
3082
  * @throws OciError when an error occurs
2991
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/UpdateSubscriber.ts.html |here} to see how to use UpdateSubscriber API.
3083
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/UpdateSubscriber.ts.html |here} to see how to use UpdateSubscriber API.
2992
3084
  */
2993
3085
  updateSubscriber(updateSubscriberRequest) {
2994
3086
  return __awaiter(this, void 0, void 0, function* () {
@@ -3055,11 +3147,14 @@ var UsagePlansApiKeys;
3055
3147
  */
3056
3148
  class UsagePlansClient {
3057
3149
  constructor(params, clientConfiguration) {
3150
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
3058
3151
  this["_endpoint"] = "";
3059
3152
  this["_defaultHeaders"] = {};
3060
3153
  this._circuitBreaker = null;
3061
3154
  this._httpOptions = undefined;
3062
3155
  this.targetService = "UsagePlans";
3156
+ this._regionId = "";
3157
+ this._lastSetRegionOrRegionId = "";
3063
3158
  const requestSigner = params.authenticationDetailsProvider
3064
3159
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
3065
3160
  : null;
@@ -3109,13 +3204,31 @@ class UsagePlansClient {
3109
3204
  get logger() {
3110
3205
  return common.LOG.logger;
3111
3206
  }
3207
+ /**
3208
+ * Determines whether realm specific endpoint should be used or not.
3209
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
3210
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
3211
+ */
3212
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
3213
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
3214
+ if (this.logger)
3215
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3216
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
3217
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(UsagePlansClient.serviceEndpointTemplate, this._region, UsagePlansClient.endpointServiceName);
3218
+ }
3219
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
3220
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(UsagePlansClient.serviceEndpointTemplate, this._regionId, UsagePlansClient.endpointServiceName);
3221
+ }
3222
+ }
3112
3223
  /**
3113
3224
  * Sets the region to call (ex, Region.US_PHOENIX_1).
3114
3225
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
3115
3226
  * @param region The region of the service.
3116
3227
  */
3117
3228
  set region(region) {
3229
+ this._region = region;
3118
3230
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(UsagePlansClient.serviceEndpointTemplate, region, UsagePlansClient.endpointServiceName);
3231
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
3119
3232
  }
3120
3233
  /**
3121
3234
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -3126,7 +3239,9 @@ class UsagePlansClient {
3126
3239
  * @param regionId The public region ID.
3127
3240
  */
3128
3241
  set regionId(regionId) {
3242
+ this._regionId = regionId;
3129
3243
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(UsagePlansClient.serviceEndpointTemplate, regionId, UsagePlansClient.endpointServiceName);
3244
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
3130
3245
  }
3131
3246
  /**
3132
3247
  * Creates a new UsagePlansWaiter for resources for this service.
@@ -3155,7 +3270,7 @@ class UsagePlansClient {
3155
3270
  * @param ChangeUsagePlanCompartmentRequest
3156
3271
  * @return ChangeUsagePlanCompartmentResponse
3157
3272
  * @throws OciError when an error occurs
3158
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ChangeUsagePlanCompartment.ts.html |here} to see how to use ChangeUsagePlanCompartment API.
3273
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ChangeUsagePlanCompartment.ts.html |here} to see how to use ChangeUsagePlanCompartment API.
3159
3274
  */
3160
3275
  changeUsagePlanCompartment(changeUsagePlanCompartmentRequest) {
3161
3276
  return __awaiter(this, void 0, void 0, function* () {
@@ -3217,7 +3332,7 @@ class UsagePlansClient {
3217
3332
  * @param CreateUsagePlanRequest
3218
3333
  * @return CreateUsagePlanResponse
3219
3334
  * @throws OciError when an error occurs
3220
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/CreateUsagePlan.ts.html |here} to see how to use CreateUsagePlan API.
3335
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/CreateUsagePlan.ts.html |here} to see how to use CreateUsagePlan API.
3221
3336
  */
3222
3337
  createUsagePlan(createUsagePlanRequest) {
3223
3338
  return __awaiter(this, void 0, void 0, function* () {
@@ -3290,7 +3405,7 @@ class UsagePlansClient {
3290
3405
  * @param DeleteUsagePlanRequest
3291
3406
  * @return DeleteUsagePlanResponse
3292
3407
  * @throws OciError when an error occurs
3293
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/DeleteUsagePlan.ts.html |here} to see how to use DeleteUsagePlan API.
3408
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/DeleteUsagePlan.ts.html |here} to see how to use DeleteUsagePlan API.
3294
3409
  */
3295
3410
  deleteUsagePlan(deleteUsagePlanRequest) {
3296
3411
  return __awaiter(this, void 0, void 0, function* () {
@@ -3350,7 +3465,7 @@ class UsagePlansClient {
3350
3465
  * @param GetUsagePlanRequest
3351
3466
  * @return GetUsagePlanResponse
3352
3467
  * @throws OciError when an error occurs
3353
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetUsagePlan.ts.html |here} to see how to use GetUsagePlan API.
3468
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetUsagePlan.ts.html |here} to see how to use GetUsagePlan API.
3354
3469
  */
3355
3470
  getUsagePlan(getUsagePlanRequest) {
3356
3471
  return __awaiter(this, void 0, void 0, function* () {
@@ -3413,7 +3528,7 @@ class UsagePlansClient {
3413
3528
  * @param ListUsagePlansRequest
3414
3529
  * @return ListUsagePlansResponse
3415
3530
  * @throws OciError when an error occurs
3416
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListUsagePlans.ts.html |here} to see how to use ListUsagePlans API.
3531
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListUsagePlans.ts.html |here} to see how to use ListUsagePlans API.
3417
3532
  */
3418
3533
  listUsagePlans(listUsagePlansRequest) {
3419
3534
  return __awaiter(this, void 0, void 0, function* () {
@@ -3487,7 +3602,7 @@ class UsagePlansClient {
3487
3602
  * @param UpdateUsagePlanRequest
3488
3603
  * @return UpdateUsagePlanResponse
3489
3604
  * @throws OciError when an error occurs
3490
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/UpdateUsagePlan.ts.html |here} to see how to use UpdateUsagePlan API.
3605
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/UpdateUsagePlan.ts.html |here} to see how to use UpdateUsagePlan API.
3491
3606
  */
3492
3607
  updateUsagePlan(updateUsagePlanRequest) {
3493
3608
  return __awaiter(this, void 0, void 0, function* () {
@@ -3554,11 +3669,14 @@ var WorkRequestsApiKeys;
3554
3669
  */
3555
3670
  class WorkRequestsClient {
3556
3671
  constructor(params, clientConfiguration) {
3672
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
3557
3673
  this["_endpoint"] = "";
3558
3674
  this["_defaultHeaders"] = {};
3559
3675
  this._circuitBreaker = null;
3560
3676
  this._httpOptions = undefined;
3561
3677
  this.targetService = "WorkRequests";
3678
+ this._regionId = "";
3679
+ this._lastSetRegionOrRegionId = "";
3562
3680
  const requestSigner = params.authenticationDetailsProvider
3563
3681
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
3564
3682
  : null;
@@ -3608,13 +3726,31 @@ class WorkRequestsClient {
3608
3726
  get logger() {
3609
3727
  return common.LOG.logger;
3610
3728
  }
3729
+ /**
3730
+ * Determines whether realm specific endpoint should be used or not.
3731
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
3732
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
3733
+ */
3734
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
3735
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
3736
+ if (this.logger)
3737
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3738
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
3739
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, this._region, WorkRequestsClient.endpointServiceName);
3740
+ }
3741
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
3742
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestsClient.serviceEndpointTemplate, this._regionId, WorkRequestsClient.endpointServiceName);
3743
+ }
3744
+ }
3611
3745
  /**
3612
3746
  * Sets the region to call (ex, Region.US_PHOENIX_1).
3613
3747
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
3614
3748
  * @param region The region of the service.
3615
3749
  */
3616
3750
  set region(region) {
3751
+ this._region = region;
3617
3752
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, region, WorkRequestsClient.endpointServiceName);
3753
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
3618
3754
  }
3619
3755
  /**
3620
3756
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -3625,7 +3761,9 @@ class WorkRequestsClient {
3625
3761
  * @param regionId The public region ID.
3626
3762
  */
3627
3763
  set regionId(regionId) {
3764
+ this._regionId = regionId;
3628
3765
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestsClient.serviceEndpointTemplate, regionId, WorkRequestsClient.endpointServiceName);
3766
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
3629
3767
  }
3630
3768
  /**
3631
3769
  * Creates a new WorkRequestsWaiter for resources for this service.
@@ -3654,7 +3792,7 @@ class WorkRequestsClient {
3654
3792
  * @param CancelWorkRequestRequest
3655
3793
  * @return CancelWorkRequestResponse
3656
3794
  * @throws OciError when an error occurs
3657
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
3795
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
3658
3796
  */
3659
3797
  cancelWorkRequest(cancelWorkRequestRequest) {
3660
3798
  return __awaiter(this, void 0, void 0, function* () {
@@ -3710,7 +3848,7 @@ class WorkRequestsClient {
3710
3848
  * @param GetWorkRequestRequest
3711
3849
  * @return GetWorkRequestResponse
3712
3850
  * @throws OciError when an error occurs
3713
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
3851
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
3714
3852
  */
3715
3853
  getWorkRequest(getWorkRequestRequest) {
3716
3854
  return __awaiter(this, void 0, void 0, function* () {
@@ -3779,7 +3917,7 @@ class WorkRequestsClient {
3779
3917
  * @param ListWorkRequestErrorsRequest
3780
3918
  * @return ListWorkRequestErrorsResponse
3781
3919
  * @throws OciError when an error occurs
3782
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3920
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
3783
3921
  */
3784
3922
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
3785
3923
  return __awaiter(this, void 0, void 0, function* () {
@@ -3853,7 +3991,7 @@ class WorkRequestsClient {
3853
3991
  * @param ListWorkRequestLogsRequest
3854
3992
  * @return ListWorkRequestLogsResponse
3855
3993
  * @throws OciError when an error occurs
3856
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3994
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
3857
3995
  */
3858
3996
  listWorkRequestLogs(listWorkRequestLogsRequest) {
3859
3997
  return __awaiter(this, void 0, void 0, function* () {
@@ -3927,7 +4065,7 @@ class WorkRequestsClient {
3927
4065
  * @param ListWorkRequestsRequest
3928
4066
  * @return ListWorkRequestsResponse
3929
4067
  * @throws OciError when an error occurs
3930
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/apigateway/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
4068
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/apigateway/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
3931
4069
  */
3932
4070
  listWorkRequests(listWorkRequestsRequest) {
3933
4071
  return __awaiter(this, void 0, void 0, function* () {