oci-mysql 2.56.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 (59) hide show
  1. package/lib/client.d.ts +115 -55
  2. package/lib/client.js +193 -55
  3. package/lib/client.js.map +1 -1
  4. package/lib/request/add-analytics-cluster-request.d.ts +1 -1
  5. package/lib/request/add-heat-wave-cluster-request.d.ts +1 -1
  6. package/lib/request/change-backup-compartment-request.d.ts +1 -1
  7. package/lib/request/create-backup-request.d.ts +1 -1
  8. package/lib/request/create-channel-request.d.ts +1 -1
  9. package/lib/request/create-configuration-request.d.ts +1 -1
  10. package/lib/request/create-db-system-request.d.ts +1 -1
  11. package/lib/request/create-replica-request.d.ts +1 -1
  12. package/lib/request/delete-analytics-cluster-request.d.ts +1 -1
  13. package/lib/request/delete-backup-request.d.ts +1 -1
  14. package/lib/request/delete-channel-request.d.ts +1 -1
  15. package/lib/request/delete-configuration-request.d.ts +1 -1
  16. package/lib/request/delete-db-system-request.d.ts +1 -1
  17. package/lib/request/delete-heat-wave-cluster-request.d.ts +1 -1
  18. package/lib/request/delete-replica-request.d.ts +1 -1
  19. package/lib/request/generate-analytics-cluster-memory-estimate-request.d.ts +1 -1
  20. package/lib/request/generate-heat-wave-cluster-memory-estimate-request.d.ts +1 -1
  21. package/lib/request/get-analytics-cluster-memory-estimate-request.d.ts +1 -1
  22. package/lib/request/get-analytics-cluster-request.d.ts +1 -1
  23. package/lib/request/get-backup-request.d.ts +1 -1
  24. package/lib/request/get-channel-request.d.ts +1 -1
  25. package/lib/request/get-configuration-request.d.ts +1 -1
  26. package/lib/request/get-db-system-request.d.ts +1 -1
  27. package/lib/request/get-heat-wave-cluster-memory-estimate-request.d.ts +1 -1
  28. package/lib/request/get-heat-wave-cluster-request.d.ts +1 -1
  29. package/lib/request/get-replica-request.d.ts +1 -1
  30. package/lib/request/get-work-request-request.d.ts +1 -1
  31. package/lib/request/list-backups-request.d.ts +1 -1
  32. package/lib/request/list-channels-request.d.ts +1 -1
  33. package/lib/request/list-configurations-request.d.ts +1 -1
  34. package/lib/request/list-db-systems-request.d.ts +1 -1
  35. package/lib/request/list-replicas-request.d.ts +1 -1
  36. package/lib/request/list-shapes-request.d.ts +1 -1
  37. package/lib/request/list-versions-request.d.ts +1 -1
  38. package/lib/request/list-work-request-errors-request.d.ts +1 -1
  39. package/lib/request/list-work-request-logs-request.d.ts +1 -1
  40. package/lib/request/list-work-requests-request.d.ts +1 -1
  41. package/lib/request/reset-channel-request.d.ts +1 -1
  42. package/lib/request/restart-analytics-cluster-request.d.ts +1 -1
  43. package/lib/request/restart-db-system-request.d.ts +1 -1
  44. package/lib/request/restart-heat-wave-cluster-request.d.ts +1 -1
  45. package/lib/request/resume-channel-request.d.ts +1 -1
  46. package/lib/request/start-analytics-cluster-request.d.ts +1 -1
  47. package/lib/request/start-db-system-request.d.ts +1 -1
  48. package/lib/request/start-heat-wave-cluster-request.d.ts +1 -1
  49. package/lib/request/stop-analytics-cluster-request.d.ts +1 -1
  50. package/lib/request/stop-db-system-request.d.ts +1 -1
  51. package/lib/request/stop-heat-wave-cluster-request.d.ts +1 -1
  52. package/lib/request/update-analytics-cluster-request.d.ts +1 -1
  53. package/lib/request/update-backup-request.d.ts +1 -1
  54. package/lib/request/update-channel-request.d.ts +1 -1
  55. package/lib/request/update-configuration-request.d.ts +1 -1
  56. package/lib/request/update-db-system-request.d.ts +1 -1
  57. package/lib/request/update-heat-wave-cluster-request.d.ts +1 -1
  58. package/lib/request/update-replica-request.d.ts +1 -1
  59. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -62,11 +62,14 @@ var ChannelsApiKeys;
62
62
  */
63
63
  class ChannelsClient {
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 = "Channels";
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 ChannelsClient {
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(ChannelsClient.serviceEndpointTemplate, this._region, ChannelsClient.endpointServiceName);
133
+ }
134
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
135
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ChannelsClient.serviceEndpointTemplate, this._regionId, ChannelsClient.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(ChannelsClient.serviceEndpointTemplate, region, ChannelsClient.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 ChannelsClient {
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(ChannelsClient.serviceEndpointTemplate, regionId, ChannelsClient.endpointServiceName);
159
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
137
160
  }
138
161
  /**
139
162
  * Creates a new ChannelsWaiter for resources for this service.
@@ -163,7 +186,7 @@ class ChannelsClient {
163
186
  * @param CreateChannelRequest
164
187
  * @return CreateChannelResponse
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.56.0/mysql/CreateChannel.ts.html |here} to see how to use CreateChannel API.
189
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/CreateChannel.ts.html |here} to see how to use CreateChannel API.
167
190
  */
168
191
  createChannel(createChannelRequest) {
169
192
  return __awaiter(this, void 0, void 0, function* () {
@@ -231,7 +254,7 @@ class ChannelsClient {
231
254
  * @param DeleteChannelRequest
232
255
  * @return DeleteChannelResponse
233
256
  * @throws OciError when an error occurs
234
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/DeleteChannel.ts.html |here} to see how to use DeleteChannel API.
257
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/DeleteChannel.ts.html |here} to see how to use DeleteChannel API.
235
258
  */
236
259
  deleteChannel(deleteChannelRequest) {
237
260
  return __awaiter(this, void 0, void 0, function* () {
@@ -294,7 +317,7 @@ class ChannelsClient {
294
317
  * @param GetChannelRequest
295
318
  * @return GetChannelResponse
296
319
  * @throws OciError when an error occurs
297
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetChannel.ts.html |here} to see how to use GetChannel API.
320
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetChannel.ts.html |here} to see how to use GetChannel API.
298
321
  */
299
322
  getChannel(getChannelRequest) {
300
323
  return __awaiter(this, void 0, void 0, function* () {
@@ -358,7 +381,7 @@ class ChannelsClient {
358
381
  * @param ListChannelsRequest
359
382
  * @return ListChannelsResponse
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.56.0/mysql/ListChannels.ts.html |here} to see how to use ListChannels API.
384
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListChannels.ts.html |here} to see how to use ListChannels API.
362
385
  */
363
386
  listChannels(listChannelsRequest) {
364
387
  return __awaiter(this, void 0, void 0, function* () {
@@ -472,7 +495,7 @@ class ChannelsClient {
472
495
  * @param ResetChannelRequest
473
496
  * @return ResetChannelResponse
474
497
  * @throws OciError when an error occurs
475
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ResetChannel.ts.html |here} to see how to use ResetChannel API.
498
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ResetChannel.ts.html |here} to see how to use ResetChannel API.
476
499
  */
477
500
  resetChannel(resetChannelRequest) {
478
501
  return __awaiter(this, void 0, void 0, function* () {
@@ -536,7 +559,7 @@ class ChannelsClient {
536
559
  * @param ResumeChannelRequest
537
560
  * @return ResumeChannelResponse
538
561
  * @throws OciError when an error occurs
539
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ResumeChannel.ts.html |here} to see how to use ResumeChannel API.
562
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ResumeChannel.ts.html |here} to see how to use ResumeChannel API.
540
563
  */
541
564
  resumeChannel(resumeChannelRequest) {
542
565
  return __awaiter(this, void 0, void 0, function* () {
@@ -601,7 +624,7 @@ class ChannelsClient {
601
624
  * @param UpdateChannelRequest
602
625
  * @return UpdateChannelResponse
603
626
  * @throws OciError when an error occurs
604
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/UpdateChannel.ts.html |here} to see how to use UpdateChannel API.
627
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/UpdateChannel.ts.html |here} to see how to use UpdateChannel API.
605
628
  */
606
629
  updateChannel(updateChannelRequest) {
607
630
  return __awaiter(this, void 0, void 0, function* () {
@@ -669,11 +692,14 @@ var DbBackupsApiKeys;
669
692
  */
670
693
  class DbBackupsClient {
671
694
  constructor(params, clientConfiguration) {
695
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
672
696
  this["_endpoint"] = "";
673
697
  this["_defaultHeaders"] = {};
674
698
  this._circuitBreaker = null;
675
699
  this._httpOptions = undefined;
676
700
  this.targetService = "DbBackups";
701
+ this._regionId = "";
702
+ this._lastSetRegionOrRegionId = "";
677
703
  const requestSigner = params.authenticationDetailsProvider
678
704
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
679
705
  : null;
@@ -723,13 +749,31 @@ class DbBackupsClient {
723
749
  get logger() {
724
750
  return common.LOG.logger;
725
751
  }
752
+ /**
753
+ * Determines whether realm specific endpoint should be used or not.
754
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
755
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
756
+ */
757
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
758
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
759
+ if (this.logger)
760
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
761
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
762
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DbBackupsClient.serviceEndpointTemplate, this._region, DbBackupsClient.endpointServiceName);
763
+ }
764
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
765
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DbBackupsClient.serviceEndpointTemplate, this._regionId, DbBackupsClient.endpointServiceName);
766
+ }
767
+ }
726
768
  /**
727
769
  * Sets the region to call (ex, Region.US_PHOENIX_1).
728
770
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
729
771
  * @param region The region of the service.
730
772
  */
731
773
  set region(region) {
774
+ this._region = region;
732
775
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DbBackupsClient.serviceEndpointTemplate, region, DbBackupsClient.endpointServiceName);
776
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
733
777
  }
734
778
  /**
735
779
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -740,7 +784,9 @@ class DbBackupsClient {
740
784
  * @param regionId The public region ID.
741
785
  */
742
786
  set regionId(regionId) {
787
+ this._regionId = regionId;
743
788
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DbBackupsClient.serviceEndpointTemplate, regionId, DbBackupsClient.endpointServiceName);
789
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
744
790
  }
745
791
  /**
746
792
  * Creates a new DbBackupsWaiter for resources for this service.
@@ -771,7 +817,7 @@ class DbBackupsClient {
771
817
  * @param ChangeBackupCompartmentRequest
772
818
  * @return ChangeBackupCompartmentResponse
773
819
  * @throws OciError when an error occurs
774
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ChangeBackupCompartment.ts.html |here} to see how to use ChangeBackupCompartment API.
820
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ChangeBackupCompartment.ts.html |here} to see how to use ChangeBackupCompartment API.
775
821
  */
776
822
  changeBackupCompartment(changeBackupCompartmentRequest) {
777
823
  return __awaiter(this, void 0, void 0, function* () {
@@ -834,7 +880,7 @@ class DbBackupsClient {
834
880
  * @param CreateBackupRequest
835
881
  * @return CreateBackupResponse
836
882
  * @throws OciError when an error occurs
837
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/CreateBackup.ts.html |here} to see how to use CreateBackup API.
883
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/CreateBackup.ts.html |here} to see how to use CreateBackup API.
838
884
  */
839
885
  createBackup(createBackupRequest) {
840
886
  return __awaiter(this, void 0, void 0, function* () {
@@ -903,7 +949,7 @@ class DbBackupsClient {
903
949
  * @param DeleteBackupRequest
904
950
  * @return DeleteBackupResponse
905
951
  * @throws OciError when an error occurs
906
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/DeleteBackup.ts.html |here} to see how to use DeleteBackup API.
952
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/DeleteBackup.ts.html |here} to see how to use DeleteBackup API.
907
953
  */
908
954
  deleteBackup(deleteBackupRequest) {
909
955
  return __awaiter(this, void 0, void 0, function* () {
@@ -963,7 +1009,7 @@ class DbBackupsClient {
963
1009
  * @param GetBackupRequest
964
1010
  * @return GetBackupResponse
965
1011
  * @throws OciError when an error occurs
966
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetBackup.ts.html |here} to see how to use GetBackup API.
1012
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetBackup.ts.html |here} to see how to use GetBackup API.
967
1013
  */
968
1014
  getBackup(getBackupRequest) {
969
1015
  return __awaiter(this, void 0, void 0, function* () {
@@ -1028,7 +1074,7 @@ class DbBackupsClient {
1028
1074
  * @param ListBackupsRequest
1029
1075
  * @return ListBackupsResponse
1030
1076
  * @throws OciError when an error occurs
1031
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListBackups.ts.html |here} to see how to use ListBackups API.
1077
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListBackups.ts.html |here} to see how to use ListBackups API.
1032
1078
  */
1033
1079
  listBackups(listBackupsRequest) {
1034
1080
  return __awaiter(this, void 0, void 0, function* () {
@@ -1140,7 +1186,7 @@ class DbBackupsClient {
1140
1186
  * @param UpdateBackupRequest
1141
1187
  * @return UpdateBackupResponse
1142
1188
  * @throws OciError when an error occurs
1143
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/UpdateBackup.ts.html |here} to see how to use UpdateBackup API.
1189
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/UpdateBackup.ts.html |here} to see how to use UpdateBackup API.
1144
1190
  */
1145
1191
  updateBackup(updateBackupRequest) {
1146
1192
  return __awaiter(this, void 0, void 0, function* () {
@@ -1211,11 +1257,14 @@ var DbSystemApiKeys;
1211
1257
  */
1212
1258
  class DbSystemClient {
1213
1259
  constructor(params, clientConfiguration) {
1260
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
1214
1261
  this["_endpoint"] = "";
1215
1262
  this["_defaultHeaders"] = {};
1216
1263
  this._circuitBreaker = null;
1217
1264
  this._httpOptions = undefined;
1218
1265
  this.targetService = "DbSystem";
1266
+ this._regionId = "";
1267
+ this._lastSetRegionOrRegionId = "";
1219
1268
  const requestSigner = params.authenticationDetailsProvider
1220
1269
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1221
1270
  : null;
@@ -1265,13 +1314,31 @@ class DbSystemClient {
1265
1314
  get logger() {
1266
1315
  return common.LOG.logger;
1267
1316
  }
1317
+ /**
1318
+ * Determines whether realm specific endpoint should be used or not.
1319
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1320
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1321
+ */
1322
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1323
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1324
+ if (this.logger)
1325
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1326
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1327
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DbSystemClient.serviceEndpointTemplate, this._region, DbSystemClient.endpointServiceName);
1328
+ }
1329
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1330
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DbSystemClient.serviceEndpointTemplate, this._regionId, DbSystemClient.endpointServiceName);
1331
+ }
1332
+ }
1268
1333
  /**
1269
1334
  * Sets the region to call (ex, Region.US_PHOENIX_1).
1270
1335
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1271
1336
  * @param region The region of the service.
1272
1337
  */
1273
1338
  set region(region) {
1339
+ this._region = region;
1274
1340
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DbSystemClient.serviceEndpointTemplate, region, DbSystemClient.endpointServiceName);
1341
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1275
1342
  }
1276
1343
  /**
1277
1344
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1282,7 +1349,9 @@ class DbSystemClient {
1282
1349
  * @param regionId The public region ID.
1283
1350
  */
1284
1351
  set regionId(regionId) {
1352
+ this._regionId = regionId;
1285
1353
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DbSystemClient.serviceEndpointTemplate, regionId, DbSystemClient.endpointServiceName);
1354
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1286
1355
  }
1287
1356
  /**
1288
1357
  * Creates a new DbSystemWaiter for resources for this service.
@@ -1313,7 +1382,7 @@ class DbSystemClient {
1313
1382
  * @param AddAnalyticsClusterRequest
1314
1383
  * @return AddAnalyticsClusterResponse
1315
1384
  * @throws OciError when an error occurs
1316
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/AddAnalyticsCluster.ts.html |here} to see how to use AddAnalyticsCluster API.
1385
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/AddAnalyticsCluster.ts.html |here} to see how to use AddAnalyticsCluster API.
1317
1386
  */
1318
1387
  addAnalyticsCluster(addAnalyticsClusterRequest) {
1319
1388
  return __awaiter(this, void 0, void 0, function* () {
@@ -1385,7 +1454,7 @@ class DbSystemClient {
1385
1454
  * @param AddHeatWaveClusterRequest
1386
1455
  * @return AddHeatWaveClusterResponse
1387
1456
  * @throws OciError when an error occurs
1388
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/AddHeatWaveCluster.ts.html |here} to see how to use AddHeatWaveCluster API.
1457
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/AddHeatWaveCluster.ts.html |here} to see how to use AddHeatWaveCluster API.
1389
1458
  */
1390
1459
  addHeatWaveCluster(addHeatWaveClusterRequest) {
1391
1460
  return __awaiter(this, void 0, void 0, function* () {
@@ -1457,7 +1526,7 @@ class DbSystemClient {
1457
1526
  * @param CreateDbSystemRequest
1458
1527
  * @return CreateDbSystemResponse
1459
1528
  * @throws OciError when an error occurs
1460
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/CreateDbSystem.ts.html |here} to see how to use CreateDbSystem API.
1529
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/CreateDbSystem.ts.html |here} to see how to use CreateDbSystem API.
1461
1530
  */
1462
1531
  createDbSystem(createDbSystemRequest) {
1463
1532
  return __awaiter(this, void 0, void 0, function* () {
@@ -1533,7 +1602,7 @@ class DbSystemClient {
1533
1602
  * @param DeleteAnalyticsClusterRequest
1534
1603
  * @return DeleteAnalyticsClusterResponse
1535
1604
  * @throws OciError when an error occurs
1536
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/DeleteAnalyticsCluster.ts.html |here} to see how to use DeleteAnalyticsCluster API.
1605
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/DeleteAnalyticsCluster.ts.html |here} to see how to use DeleteAnalyticsCluster API.
1537
1606
  */
1538
1607
  deleteAnalyticsCluster(deleteAnalyticsClusterRequest) {
1539
1608
  return __awaiter(this, void 0, void 0, function* () {
@@ -1595,7 +1664,7 @@ class DbSystemClient {
1595
1664
  * @param DeleteDbSystemRequest
1596
1665
  * @return DeleteDbSystemResponse
1597
1666
  * @throws OciError when an error occurs
1598
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/DeleteDbSystem.ts.html |here} to see how to use DeleteDbSystem API.
1667
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/DeleteDbSystem.ts.html |here} to see how to use DeleteDbSystem API.
1599
1668
  */
1600
1669
  deleteDbSystem(deleteDbSystemRequest) {
1601
1670
  return __awaiter(this, void 0, void 0, function* () {
@@ -1657,7 +1726,7 @@ class DbSystemClient {
1657
1726
  * @param DeleteHeatWaveClusterRequest
1658
1727
  * @return DeleteHeatWaveClusterResponse
1659
1728
  * @throws OciError when an error occurs
1660
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/DeleteHeatWaveCluster.ts.html |here} to see how to use DeleteHeatWaveCluster API.
1729
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/DeleteHeatWaveCluster.ts.html |here} to see how to use DeleteHeatWaveCluster API.
1661
1730
  */
1662
1731
  deleteHeatWaveCluster(deleteHeatWaveClusterRequest) {
1663
1732
  return __awaiter(this, void 0, void 0, function* () {
@@ -1719,7 +1788,7 @@ class DbSystemClient {
1719
1788
  * @param GenerateAnalyticsClusterMemoryEstimateRequest
1720
1789
  * @return GenerateAnalyticsClusterMemoryEstimateResponse
1721
1790
  * @throws OciError when an error occurs
1722
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GenerateAnalyticsClusterMemoryEstimate.ts.html |here} to see how to use GenerateAnalyticsClusterMemoryEstimate API.
1791
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GenerateAnalyticsClusterMemoryEstimate.ts.html |here} to see how to use GenerateAnalyticsClusterMemoryEstimate API.
1723
1792
  */
1724
1793
  generateAnalyticsClusterMemoryEstimate(generateAnalyticsClusterMemoryEstimateRequest) {
1725
1794
  return __awaiter(this, void 0, void 0, function* () {
@@ -1784,7 +1853,7 @@ class DbSystemClient {
1784
1853
  * @param GenerateHeatWaveClusterMemoryEstimateRequest
1785
1854
  * @return GenerateHeatWaveClusterMemoryEstimateResponse
1786
1855
  * @throws OciError when an error occurs
1787
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GenerateHeatWaveClusterMemoryEstimate.ts.html |here} to see how to use GenerateHeatWaveClusterMemoryEstimate API.
1856
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GenerateHeatWaveClusterMemoryEstimate.ts.html |here} to see how to use GenerateHeatWaveClusterMemoryEstimate API.
1788
1857
  */
1789
1858
  generateHeatWaveClusterMemoryEstimate(generateHeatWaveClusterMemoryEstimateRequest) {
1790
1859
  return __awaiter(this, void 0, void 0, function* () {
@@ -1850,7 +1919,7 @@ class DbSystemClient {
1850
1919
  * @param GetAnalyticsClusterRequest
1851
1920
  * @return GetAnalyticsClusterResponse
1852
1921
  * @throws OciError when an error occurs
1853
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetAnalyticsCluster.ts.html |here} to see how to use GetAnalyticsCluster API.
1922
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetAnalyticsCluster.ts.html |here} to see how to use GetAnalyticsCluster API.
1854
1923
  */
1855
1924
  getAnalyticsCluster(getAnalyticsClusterRequest) {
1856
1925
  return __awaiter(this, void 0, void 0, function* () {
@@ -1917,7 +1986,7 @@ class DbSystemClient {
1917
1986
  * @param GetAnalyticsClusterMemoryEstimateRequest
1918
1987
  * @return GetAnalyticsClusterMemoryEstimateResponse
1919
1988
  * @throws OciError when an error occurs
1920
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetAnalyticsClusterMemoryEstimate.ts.html |here} to see how to use GetAnalyticsClusterMemoryEstimate API.
1989
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetAnalyticsClusterMemoryEstimate.ts.html |here} to see how to use GetAnalyticsClusterMemoryEstimate API.
1921
1990
  */
1922
1991
  getAnalyticsClusterMemoryEstimate(getAnalyticsClusterMemoryEstimateRequest) {
1923
1992
  return __awaiter(this, void 0, void 0, function* () {
@@ -1975,7 +2044,7 @@ class DbSystemClient {
1975
2044
  * @param GetDbSystemRequest
1976
2045
  * @return GetDbSystemResponse
1977
2046
  * @throws OciError when an error occurs
1978
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetDbSystem.ts.html |here} to see how to use GetDbSystem API.
2047
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetDbSystem.ts.html |here} to see how to use GetDbSystem API.
1979
2048
  */
1980
2049
  getDbSystem(getDbSystemRequest) {
1981
2050
  return __awaiter(this, void 0, void 0, function* () {
@@ -2039,7 +2108,7 @@ class DbSystemClient {
2039
2108
  * @param GetHeatWaveClusterRequest
2040
2109
  * @return GetHeatWaveClusterResponse
2041
2110
  * @throws OciError when an error occurs
2042
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetHeatWaveCluster.ts.html |here} to see how to use GetHeatWaveCluster API.
2111
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetHeatWaveCluster.ts.html |here} to see how to use GetHeatWaveCluster API.
2043
2112
  */
2044
2113
  getHeatWaveCluster(getHeatWaveClusterRequest) {
2045
2114
  return __awaiter(this, void 0, void 0, function* () {
@@ -2105,7 +2174,7 @@ class DbSystemClient {
2105
2174
  * @param GetHeatWaveClusterMemoryEstimateRequest
2106
2175
  * @return GetHeatWaveClusterMemoryEstimateResponse
2107
2176
  * @throws OciError when an error occurs
2108
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetHeatWaveClusterMemoryEstimate.ts.html |here} to see how to use GetHeatWaveClusterMemoryEstimate API.
2177
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetHeatWaveClusterMemoryEstimate.ts.html |here} to see how to use GetHeatWaveClusterMemoryEstimate API.
2109
2178
  */
2110
2179
  getHeatWaveClusterMemoryEstimate(getHeatWaveClusterMemoryEstimateRequest) {
2111
2180
  return __awaiter(this, void 0, void 0, function* () {
@@ -2165,7 +2234,7 @@ class DbSystemClient {
2165
2234
  * @param ListDbSystemsRequest
2166
2235
  * @return ListDbSystemsResponse
2167
2236
  * @throws OciError when an error occurs
2168
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListDbSystems.ts.html |here} to see how to use ListDbSystems API.
2237
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListDbSystems.ts.html |here} to see how to use ListDbSystems API.
2169
2238
  */
2170
2239
  listDbSystems(listDbSystemsRequest) {
2171
2240
  return __awaiter(this, void 0, void 0, function* () {
@@ -2281,7 +2350,7 @@ class DbSystemClient {
2281
2350
  * @param RestartAnalyticsClusterRequest
2282
2351
  * @return RestartAnalyticsClusterResponse
2283
2352
  * @throws OciError when an error occurs
2284
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/RestartAnalyticsCluster.ts.html |here} to see how to use RestartAnalyticsCluster API.
2353
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/RestartAnalyticsCluster.ts.html |here} to see how to use RestartAnalyticsCluster API.
2285
2354
  */
2286
2355
  restartAnalyticsCluster(restartAnalyticsClusterRequest) {
2287
2356
  return __awaiter(this, void 0, void 0, function* () {
@@ -2342,7 +2411,7 @@ class DbSystemClient {
2342
2411
  * @param RestartDbSystemRequest
2343
2412
  * @return RestartDbSystemResponse
2344
2413
  * @throws OciError when an error occurs
2345
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/RestartDbSystem.ts.html |here} to see how to use RestartDbSystem API.
2414
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/RestartDbSystem.ts.html |here} to see how to use RestartDbSystem API.
2346
2415
  */
2347
2416
  restartDbSystem(restartDbSystemRequest) {
2348
2417
  return __awaiter(this, void 0, void 0, function* () {
@@ -2404,7 +2473,7 @@ class DbSystemClient {
2404
2473
  * @param RestartHeatWaveClusterRequest
2405
2474
  * @return RestartHeatWaveClusterResponse
2406
2475
  * @throws OciError when an error occurs
2407
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/RestartHeatWaveCluster.ts.html |here} to see how to use RestartHeatWaveCluster API.
2476
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/RestartHeatWaveCluster.ts.html |here} to see how to use RestartHeatWaveCluster API.
2408
2477
  */
2409
2478
  restartHeatWaveCluster(restartHeatWaveClusterRequest) {
2410
2479
  return __awaiter(this, void 0, void 0, function* () {
@@ -2467,7 +2536,7 @@ class DbSystemClient {
2467
2536
  * @param StartAnalyticsClusterRequest
2468
2537
  * @return StartAnalyticsClusterResponse
2469
2538
  * @throws OciError when an error occurs
2470
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/StartAnalyticsCluster.ts.html |here} to see how to use StartAnalyticsCluster API.
2539
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/StartAnalyticsCluster.ts.html |here} to see how to use StartAnalyticsCluster API.
2471
2540
  */
2472
2541
  startAnalyticsCluster(startAnalyticsClusterRequest) {
2473
2542
  return __awaiter(this, void 0, void 0, function* () {
@@ -2528,7 +2597,7 @@ class DbSystemClient {
2528
2597
  * @param StartDbSystemRequest
2529
2598
  * @return StartDbSystemResponse
2530
2599
  * @throws OciError when an error occurs
2531
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/StartDbSystem.ts.html |here} to see how to use StartDbSystem API.
2600
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/StartDbSystem.ts.html |here} to see how to use StartDbSystem API.
2532
2601
  */
2533
2602
  startDbSystem(startDbSystemRequest) {
2534
2603
  return __awaiter(this, void 0, void 0, function* () {
@@ -2589,7 +2658,7 @@ class DbSystemClient {
2589
2658
  * @param StartHeatWaveClusterRequest
2590
2659
  * @return StartHeatWaveClusterResponse
2591
2660
  * @throws OciError when an error occurs
2592
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/StartHeatWaveCluster.ts.html |here} to see how to use StartHeatWaveCluster API.
2661
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/StartHeatWaveCluster.ts.html |here} to see how to use StartHeatWaveCluster API.
2593
2662
  */
2594
2663
  startHeatWaveCluster(startHeatWaveClusterRequest) {
2595
2664
  return __awaiter(this, void 0, void 0, function* () {
@@ -2652,7 +2721,7 @@ class DbSystemClient {
2652
2721
  * @param StopAnalyticsClusterRequest
2653
2722
  * @return StopAnalyticsClusterResponse
2654
2723
  * @throws OciError when an error occurs
2655
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/StopAnalyticsCluster.ts.html |here} to see how to use StopAnalyticsCluster API.
2724
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/StopAnalyticsCluster.ts.html |here} to see how to use StopAnalyticsCluster API.
2656
2725
  */
2657
2726
  stopAnalyticsCluster(stopAnalyticsClusterRequest) {
2658
2727
  return __awaiter(this, void 0, void 0, function* () {
@@ -2716,7 +2785,7 @@ class DbSystemClient {
2716
2785
  * @param StopDbSystemRequest
2717
2786
  * @return StopDbSystemResponse
2718
2787
  * @throws OciError when an error occurs
2719
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/StopDbSystem.ts.html |here} to see how to use StopDbSystem API.
2788
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/StopDbSystem.ts.html |here} to see how to use StopDbSystem API.
2720
2789
  */
2721
2790
  stopDbSystem(stopDbSystemRequest) {
2722
2791
  return __awaiter(this, void 0, void 0, function* () {
@@ -2778,7 +2847,7 @@ class DbSystemClient {
2778
2847
  * @param StopHeatWaveClusterRequest
2779
2848
  * @return StopHeatWaveClusterResponse
2780
2849
  * @throws OciError when an error occurs
2781
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/StopHeatWaveCluster.ts.html |here} to see how to use StopHeatWaveCluster API.
2850
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/StopHeatWaveCluster.ts.html |here} to see how to use StopHeatWaveCluster API.
2782
2851
  */
2783
2852
  stopHeatWaveCluster(stopHeatWaveClusterRequest) {
2784
2853
  return __awaiter(this, void 0, void 0, function* () {
@@ -2841,7 +2910,7 @@ class DbSystemClient {
2841
2910
  * @param UpdateAnalyticsClusterRequest
2842
2911
  * @return UpdateAnalyticsClusterResponse
2843
2912
  * @throws OciError when an error occurs
2844
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/UpdateAnalyticsCluster.ts.html |here} to see how to use UpdateAnalyticsCluster API.
2913
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/UpdateAnalyticsCluster.ts.html |here} to see how to use UpdateAnalyticsCluster API.
2845
2914
  */
2846
2915
  updateAnalyticsCluster(updateAnalyticsClusterRequest) {
2847
2916
  return __awaiter(this, void 0, void 0, function* () {
@@ -2910,7 +2979,7 @@ class DbSystemClient {
2910
2979
  * @param UpdateDbSystemRequest
2911
2980
  * @return UpdateDbSystemResponse
2912
2981
  * @throws OciError when an error occurs
2913
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/UpdateDbSystem.ts.html |here} to see how to use UpdateDbSystem API.
2982
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/UpdateDbSystem.ts.html |here} to see how to use UpdateDbSystem API.
2914
2983
  */
2915
2984
  updateDbSystem(updateDbSystemRequest) {
2916
2985
  return __awaiter(this, void 0, void 0, function* () {
@@ -2972,7 +3041,7 @@ class DbSystemClient {
2972
3041
  * @param UpdateHeatWaveClusterRequest
2973
3042
  * @return UpdateHeatWaveClusterResponse
2974
3043
  * @throws OciError when an error occurs
2975
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/UpdateHeatWaveCluster.ts.html |here} to see how to use UpdateHeatWaveCluster API.
3044
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/UpdateHeatWaveCluster.ts.html |here} to see how to use UpdateHeatWaveCluster API.
2976
3045
  */
2977
3046
  updateHeatWaveCluster(updateHeatWaveClusterRequest) {
2978
3047
  return __awaiter(this, void 0, void 0, function* () {
@@ -3039,11 +3108,14 @@ var MysqlaasApiKeys;
3039
3108
  */
3040
3109
  class MysqlaasClient {
3041
3110
  constructor(params, clientConfiguration) {
3111
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
3042
3112
  this["_endpoint"] = "";
3043
3113
  this["_defaultHeaders"] = {};
3044
3114
  this._circuitBreaker = null;
3045
3115
  this._httpOptions = undefined;
3046
3116
  this.targetService = "Mysqlaas";
3117
+ this._regionId = "";
3118
+ this._lastSetRegionOrRegionId = "";
3047
3119
  const requestSigner = params.authenticationDetailsProvider
3048
3120
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
3049
3121
  : null;
@@ -3093,13 +3165,31 @@ class MysqlaasClient {
3093
3165
  get logger() {
3094
3166
  return common.LOG.logger;
3095
3167
  }
3168
+ /**
3169
+ * Determines whether realm specific endpoint should be used or not.
3170
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
3171
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
3172
+ */
3173
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
3174
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
3175
+ if (this.logger)
3176
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3177
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
3178
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MysqlaasClient.serviceEndpointTemplate, this._region, MysqlaasClient.endpointServiceName);
3179
+ }
3180
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
3181
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MysqlaasClient.serviceEndpointTemplate, this._regionId, MysqlaasClient.endpointServiceName);
3182
+ }
3183
+ }
3096
3184
  /**
3097
3185
  * Sets the region to call (ex, Region.US_PHOENIX_1).
3098
3186
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
3099
3187
  * @param region The region of the service.
3100
3188
  */
3101
3189
  set region(region) {
3190
+ this._region = region;
3102
3191
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MysqlaasClient.serviceEndpointTemplate, region, MysqlaasClient.endpointServiceName);
3192
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
3103
3193
  }
3104
3194
  /**
3105
3195
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -3110,7 +3200,9 @@ class MysqlaasClient {
3110
3200
  * @param regionId The public region ID.
3111
3201
  */
3112
3202
  set regionId(regionId) {
3203
+ this._regionId = regionId;
3113
3204
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(MysqlaasClient.serviceEndpointTemplate, regionId, MysqlaasClient.endpointServiceName);
3205
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
3114
3206
  }
3115
3207
  /**
3116
3208
  * Creates a new MysqlaasWaiter for resources for this service.
@@ -3139,7 +3231,7 @@ class MysqlaasClient {
3139
3231
  * @param CreateConfigurationRequest
3140
3232
  * @return CreateConfigurationResponse
3141
3233
  * @throws OciError when an error occurs
3142
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/CreateConfiguration.ts.html |here} to see how to use CreateConfiguration API.
3234
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/CreateConfiguration.ts.html |here} to see how to use CreateConfiguration API.
3143
3235
  */
3144
3236
  createConfiguration(createConfigurationRequest) {
3145
3237
  return __awaiter(this, void 0, void 0, function* () {
@@ -3214,7 +3306,7 @@ class MysqlaasClient {
3214
3306
  * @param DeleteConfigurationRequest
3215
3307
  * @return DeleteConfigurationResponse
3216
3308
  * @throws OciError when an error occurs
3217
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/DeleteConfiguration.ts.html |here} to see how to use DeleteConfiguration API.
3309
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/DeleteConfiguration.ts.html |here} to see how to use DeleteConfiguration API.
3218
3310
  */
3219
3311
  deleteConfiguration(deleteConfigurationRequest) {
3220
3312
  return __awaiter(this, void 0, void 0, function* () {
@@ -3270,7 +3362,7 @@ class MysqlaasClient {
3270
3362
  * @param GetConfigurationRequest
3271
3363
  * @return GetConfigurationResponse
3272
3364
  * @throws OciError when an error occurs
3273
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetConfiguration.ts.html |here} to see how to use GetConfiguration API.
3365
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetConfiguration.ts.html |here} to see how to use GetConfiguration API.
3274
3366
  */
3275
3367
  getConfiguration(getConfigurationRequest) {
3276
3368
  return __awaiter(this, void 0, void 0, function* () {
@@ -3342,7 +3434,7 @@ class MysqlaasClient {
3342
3434
  * @param ListConfigurationsRequest
3343
3435
  * @return ListConfigurationsResponse
3344
3436
  * @throws OciError when an error occurs
3345
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListConfigurations.ts.html |here} to see how to use ListConfigurations API.
3437
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListConfigurations.ts.html |here} to see how to use ListConfigurations API.
3346
3438
  */
3347
3439
  listConfigurations(listConfigurationsRequest) {
3348
3440
  return __awaiter(this, void 0, void 0, function* () {
@@ -3458,7 +3550,7 @@ class MysqlaasClient {
3458
3550
  * @param ListShapesRequest
3459
3551
  * @return ListShapesResponse
3460
3552
  * @throws OciError when an error occurs
3461
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListShapes.ts.html |here} to see how to use ListShapes API.
3553
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListShapes.ts.html |here} to see how to use ListShapes API.
3462
3554
  */
3463
3555
  listShapes(listShapesRequest) {
3464
3556
  return __awaiter(this, void 0, void 0, function* () {
@@ -3522,7 +3614,7 @@ class MysqlaasClient {
3522
3614
  * @param ListVersionsRequest
3523
3615
  * @return ListVersionsResponse
3524
3616
  * @throws OciError when an error occurs
3525
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListVersions.ts.html |here} to see how to use ListVersions API.
3617
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListVersions.ts.html |here} to see how to use ListVersions API.
3526
3618
  */
3527
3619
  listVersions(listVersionsRequest) {
3528
3620
  return __awaiter(this, void 0, void 0, function* () {
@@ -3580,7 +3672,7 @@ class MysqlaasClient {
3580
3672
  * @param UpdateConfigurationRequest
3581
3673
  * @return UpdateConfigurationResponse
3582
3674
  * @throws OciError when an error occurs
3583
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/UpdateConfiguration.ts.html |here} to see how to use UpdateConfiguration API.
3675
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/UpdateConfiguration.ts.html |here} to see how to use UpdateConfiguration API.
3584
3676
  */
3585
3677
  updateConfiguration(updateConfigurationRequest) {
3586
3678
  return __awaiter(this, void 0, void 0, function* () {
@@ -3651,11 +3743,14 @@ var ReplicasApiKeys;
3651
3743
  */
3652
3744
  class ReplicasClient {
3653
3745
  constructor(params, clientConfiguration) {
3746
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
3654
3747
  this["_endpoint"] = "";
3655
3748
  this["_defaultHeaders"] = {};
3656
3749
  this._circuitBreaker = null;
3657
3750
  this._httpOptions = undefined;
3658
3751
  this.targetService = "Replicas";
3752
+ this._regionId = "";
3753
+ this._lastSetRegionOrRegionId = "";
3659
3754
  const requestSigner = params.authenticationDetailsProvider
3660
3755
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
3661
3756
  : null;
@@ -3705,13 +3800,31 @@ class ReplicasClient {
3705
3800
  get logger() {
3706
3801
  return common.LOG.logger;
3707
3802
  }
3803
+ /**
3804
+ * Determines whether realm specific endpoint should be used or not.
3805
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
3806
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
3807
+ */
3808
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
3809
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
3810
+ if (this.logger)
3811
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
3812
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
3813
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ReplicasClient.serviceEndpointTemplate, this._region, ReplicasClient.endpointServiceName);
3814
+ }
3815
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
3816
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ReplicasClient.serviceEndpointTemplate, this._regionId, ReplicasClient.endpointServiceName);
3817
+ }
3818
+ }
3708
3819
  /**
3709
3820
  * Sets the region to call (ex, Region.US_PHOENIX_1).
3710
3821
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
3711
3822
  * @param region The region of the service.
3712
3823
  */
3713
3824
  set region(region) {
3825
+ this._region = region;
3714
3826
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ReplicasClient.serviceEndpointTemplate, region, ReplicasClient.endpointServiceName);
3827
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
3715
3828
  }
3716
3829
  /**
3717
3830
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -3722,7 +3835,9 @@ class ReplicasClient {
3722
3835
  * @param regionId The public region ID.
3723
3836
  */
3724
3837
  set regionId(regionId) {
3838
+ this._regionId = regionId;
3725
3839
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ReplicasClient.serviceEndpointTemplate, regionId, ReplicasClient.endpointServiceName);
3840
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
3726
3841
  }
3727
3842
  /**
3728
3843
  * Creates a new ReplicasWaiter for resources for this service.
@@ -3751,7 +3866,7 @@ class ReplicasClient {
3751
3866
  * @param CreateReplicaRequest
3752
3867
  * @return CreateReplicaResponse
3753
3868
  * @throws OciError when an error occurs
3754
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/CreateReplica.ts.html |here} to see how to use CreateReplica API.
3869
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/CreateReplica.ts.html |here} to see how to use CreateReplica API.
3755
3870
  */
3756
3871
  createReplica(createReplicaRequest) {
3757
3872
  return __awaiter(this, void 0, void 0, function* () {
@@ -3824,7 +3939,7 @@ class ReplicasClient {
3824
3939
  * @param DeleteReplicaRequest
3825
3940
  * @return DeleteReplicaResponse
3826
3941
  * @throws OciError when an error occurs
3827
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/DeleteReplica.ts.html |here} to see how to use DeleteReplica API.
3942
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/DeleteReplica.ts.html |here} to see how to use DeleteReplica API.
3828
3943
  */
3829
3944
  deleteReplica(deleteReplicaRequest) {
3830
3945
  return __awaiter(this, void 0, void 0, function* () {
@@ -3884,7 +3999,7 @@ class ReplicasClient {
3884
3999
  * @param GetReplicaRequest
3885
4000
  * @return GetReplicaResponse
3886
4001
  * @throws OciError when an error occurs
3887
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetReplica.ts.html |here} to see how to use GetReplica API.
4002
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetReplica.ts.html |here} to see how to use GetReplica API.
3888
4003
  */
3889
4004
  getReplica(getReplicaRequest) {
3890
4005
  return __awaiter(this, void 0, void 0, function* () {
@@ -3948,7 +4063,7 @@ class ReplicasClient {
3948
4063
  * @param ListReplicasRequest
3949
4064
  * @return ListReplicasResponse
3950
4065
  * @throws OciError when an error occurs
3951
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListReplicas.ts.html |here} to see how to use ListReplicas API.
4066
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListReplicas.ts.html |here} to see how to use ListReplicas API.
3952
4067
  */
3953
4068
  listReplicas(listReplicasRequest) {
3954
4069
  return __awaiter(this, void 0, void 0, function* () {
@@ -4059,7 +4174,7 @@ class ReplicasClient {
4059
4174
  * @param UpdateReplicaRequest
4060
4175
  * @return UpdateReplicaResponse
4061
4176
  * @throws OciError when an error occurs
4062
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/UpdateReplica.ts.html |here} to see how to use UpdateReplica API.
4177
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/UpdateReplica.ts.html |here} to see how to use UpdateReplica API.
4063
4178
  */
4064
4179
  updateReplica(updateReplicaRequest) {
4065
4180
  return __awaiter(this, void 0, void 0, function* () {
@@ -4126,11 +4241,14 @@ var WorkRequestsApiKeys;
4126
4241
  */
4127
4242
  class WorkRequestsClient {
4128
4243
  constructor(params, clientConfiguration) {
4244
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
4129
4245
  this["_endpoint"] = "";
4130
4246
  this["_defaultHeaders"] = {};
4131
4247
  this._circuitBreaker = null;
4132
4248
  this._httpOptions = undefined;
4133
4249
  this.targetService = "WorkRequests";
4250
+ this._regionId = "";
4251
+ this._lastSetRegionOrRegionId = "";
4134
4252
  const requestSigner = params.authenticationDetailsProvider
4135
4253
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
4136
4254
  : null;
@@ -4180,13 +4298,31 @@ class WorkRequestsClient {
4180
4298
  get logger() {
4181
4299
  return common.LOG.logger;
4182
4300
  }
4301
+ /**
4302
+ * Determines whether realm specific endpoint should be used or not.
4303
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
4304
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
4305
+ */
4306
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
4307
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
4308
+ if (this.logger)
4309
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
4310
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
4311
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, this._region, WorkRequestsClient.endpointServiceName);
4312
+ }
4313
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
4314
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestsClient.serviceEndpointTemplate, this._regionId, WorkRequestsClient.endpointServiceName);
4315
+ }
4316
+ }
4183
4317
  /**
4184
4318
  * Sets the region to call (ex, Region.US_PHOENIX_1).
4185
4319
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
4186
4320
  * @param region The region of the service.
4187
4321
  */
4188
4322
  set region(region) {
4323
+ this._region = region;
4189
4324
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, region, WorkRequestsClient.endpointServiceName);
4325
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
4190
4326
  }
4191
4327
  /**
4192
4328
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -4197,7 +4333,9 @@ class WorkRequestsClient {
4197
4333
  * @param regionId The public region ID.
4198
4334
  */
4199
4335
  set regionId(regionId) {
4336
+ this._regionId = regionId;
4200
4337
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(WorkRequestsClient.serviceEndpointTemplate, regionId, WorkRequestsClient.endpointServiceName);
4338
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
4201
4339
  }
4202
4340
  /**
4203
4341
  * Creates a new WorkRequestsWaiter for resources for this service.
@@ -4226,7 +4364,7 @@ class WorkRequestsClient {
4226
4364
  * @param GetWorkRequestRequest
4227
4365
  * @return GetWorkRequestResponse
4228
4366
  * @throws OciError when an error occurs
4229
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
4367
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
4230
4368
  */
4231
4369
  getWorkRequest(getWorkRequestRequest) {
4232
4370
  return __awaiter(this, void 0, void 0, function* () {
@@ -4296,7 +4434,7 @@ class WorkRequestsClient {
4296
4434
  * @param ListWorkRequestErrorsRequest
4297
4435
  * @return ListWorkRequestErrorsResponse
4298
4436
  * @throws OciError when an error occurs
4299
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
4437
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
4300
4438
  */
4301
4439
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
4302
4440
  return __awaiter(this, void 0, void 0, function* () {
@@ -4403,7 +4541,7 @@ class WorkRequestsClient {
4403
4541
  * @param ListWorkRequestLogsRequest
4404
4542
  * @return ListWorkRequestLogsResponse
4405
4543
  * @throws OciError when an error occurs
4406
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
4544
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
4407
4545
  */
4408
4546
  listWorkRequestLogs(listWorkRequestLogsRequest) {
4409
4547
  return __awaiter(this, void 0, void 0, function* () {
@@ -4510,7 +4648,7 @@ class WorkRequestsClient {
4510
4648
  * @param ListWorkRequestsRequest
4511
4649
  * @return ListWorkRequestsResponse
4512
4650
  * @throws OciError when an error occurs
4513
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.56.0/mysql/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
4651
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.58.1/mysql/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
4514
4652
  */
4515
4653
  listWorkRequests(listWorkRequestsRequest) {
4516
4654
  return __awaiter(this, void 0, void 0, function* () {