oci-rover 2.57.0 → 2.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/lib/client.d.ts +64 -24
  2. package/lib/client.js +116 -24
  3. package/lib/client.js.map +1 -1
  4. package/lib/request/change-rover-cluster-compartment-request.d.ts +1 -1
  5. package/lib/request/change-rover-entitlement-compartment-request.d.ts +1 -1
  6. package/lib/request/change-rover-node-compartment-request.d.ts +1 -1
  7. package/lib/request/create-rover-cluster-request.d.ts +1 -1
  8. package/lib/request/create-rover-entitlement-request.d.ts +1 -1
  9. package/lib/request/create-rover-node-request.d.ts +1 -1
  10. package/lib/request/delete-rover-cluster-request.d.ts +1 -1
  11. package/lib/request/delete-rover-entitlement-request.d.ts +1 -1
  12. package/lib/request/delete-rover-node-request.d.ts +1 -1
  13. package/lib/request/get-rover-cluster-certificate-request.d.ts +1 -1
  14. package/lib/request/get-rover-cluster-request.d.ts +1 -1
  15. package/lib/request/get-rover-entitlement-request.d.ts +1 -1
  16. package/lib/request/get-rover-node-certificate-request.d.ts +1 -1
  17. package/lib/request/get-rover-node-encryption-key-request.d.ts +1 -1
  18. package/lib/request/get-rover-node-get-rpt-request.d.ts +1 -1
  19. package/lib/request/get-rover-node-request.d.ts +1 -1
  20. package/lib/request/list-rover-clusters-request.d.ts +1 -1
  21. package/lib/request/list-rover-entitlements-request.d.ts +1 -1
  22. package/lib/request/list-rover-nodes-request.d.ts +1 -1
  23. package/lib/request/list-shapes-request.d.ts +1 -1
  24. package/lib/request/rover-node-action-set-key-request.d.ts +1 -1
  25. package/lib/request/update-rover-cluster-request.d.ts +1 -1
  26. package/lib/request/update-rover-entitlement-request.d.ts +1 -1
  27. package/lib/request/update-rover-node-request.d.ts +1 -1
  28. package/package.json +3 -3
package/lib/client.js CHANGED
@@ -58,11 +58,14 @@ var RoverClusterApiKeys;
58
58
  */
59
59
  class RoverClusterClient {
60
60
  constructor(params, clientConfiguration) {
61
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
61
62
  this["_endpoint"] = "";
62
63
  this["_defaultHeaders"] = {};
63
64
  this._circuitBreaker = null;
64
65
  this._httpOptions = undefined;
65
66
  this.targetService = "RoverCluster";
67
+ this._regionId = "";
68
+ this._lastSetRegionOrRegionId = "";
66
69
  const requestSigner = params.authenticationDetailsProvider
67
70
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
68
71
  : null;
@@ -112,13 +115,31 @@ class RoverClusterClient {
112
115
  get logger() {
113
116
  return common.LOG.logger;
114
117
  }
118
+ /**
119
+ * Determines whether realm specific endpoint should be used or not.
120
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
121
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
122
+ */
123
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
124
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
125
+ if (this.logger)
126
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
127
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
128
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverClusterClient.serviceEndpointTemplate, this._region, RoverClusterClient.endpointServiceName);
129
+ }
130
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
131
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverClusterClient.serviceEndpointTemplate, this._regionId, RoverClusterClient.endpointServiceName);
132
+ }
133
+ }
115
134
  /**
116
135
  * Sets the region to call (ex, Region.US_PHOENIX_1).
117
136
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
118
137
  * @param region The region of the service.
119
138
  */
120
139
  set region(region) {
140
+ this._region = region;
121
141
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverClusterClient.serviceEndpointTemplate, region, RoverClusterClient.endpointServiceName);
142
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
122
143
  }
123
144
  /**
124
145
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -129,7 +150,9 @@ class RoverClusterClient {
129
150
  * @param regionId The public region ID.
130
151
  */
131
152
  set regionId(regionId) {
153
+ this._regionId = regionId;
132
154
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverClusterClient.serviceEndpointTemplate, regionId, RoverClusterClient.endpointServiceName);
155
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
133
156
  }
134
157
  /**
135
158
  * Creates a new RoverClusterWaiter for resources for this service.
@@ -158,7 +181,7 @@ class RoverClusterClient {
158
181
  * @param ChangeRoverClusterCompartmentRequest
159
182
  * @return ChangeRoverClusterCompartmentResponse
160
183
  * @throws OciError when an error occurs
161
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/ChangeRoverClusterCompartment.ts.html |here} to see how to use ChangeRoverClusterCompartment API.
184
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/ChangeRoverClusterCompartment.ts.html |here} to see how to use ChangeRoverClusterCompartment API.
162
185
  */
163
186
  changeRoverClusterCompartment(changeRoverClusterCompartmentRequest) {
164
187
  return __awaiter(this, void 0, void 0, function* () {
@@ -216,7 +239,7 @@ class RoverClusterClient {
216
239
  * @param CreateRoverClusterRequest
217
240
  * @return CreateRoverClusterResponse
218
241
  * @throws OciError when an error occurs
219
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/CreateRoverCluster.ts.html |here} to see how to use CreateRoverCluster API.
242
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/CreateRoverCluster.ts.html |here} to see how to use CreateRoverCluster API.
220
243
  */
221
244
  createRoverCluster(createRoverClusterRequest) {
222
245
  return __awaiter(this, void 0, void 0, function* () {
@@ -279,7 +302,7 @@ class RoverClusterClient {
279
302
  * @param DeleteRoverClusterRequest
280
303
  * @return DeleteRoverClusterResponse
281
304
  * @throws OciError when an error occurs
282
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/DeleteRoverCluster.ts.html |here} to see how to use DeleteRoverCluster API.
305
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/DeleteRoverCluster.ts.html |here} to see how to use DeleteRoverCluster API.
283
306
  */
284
307
  deleteRoverCluster(deleteRoverClusterRequest) {
285
308
  return __awaiter(this, void 0, void 0, function* () {
@@ -335,7 +358,7 @@ class RoverClusterClient {
335
358
  * @param GetRoverClusterRequest
336
359
  * @return GetRoverClusterResponse
337
360
  * @throws OciError when an error occurs
338
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/GetRoverCluster.ts.html |here} to see how to use GetRoverCluster API.
361
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/GetRoverCluster.ts.html |here} to see how to use GetRoverCluster API.
339
362
  */
340
363
  getRoverCluster(getRoverClusterRequest) {
341
364
  return __awaiter(this, void 0, void 0, function* () {
@@ -398,7 +421,7 @@ class RoverClusterClient {
398
421
  * @param GetRoverClusterCertificateRequest
399
422
  * @return GetRoverClusterCertificateResponse
400
423
  * @throws OciError when an error occurs
401
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/GetRoverClusterCertificate.ts.html |here} to see how to use GetRoverClusterCertificate API.
424
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/GetRoverClusterCertificate.ts.html |here} to see how to use GetRoverClusterCertificate API.
402
425
  */
403
426
  getRoverClusterCertificate(getRoverClusterCertificateRequest) {
404
427
  return __awaiter(this, void 0, void 0, function* () {
@@ -462,7 +485,7 @@ class RoverClusterClient {
462
485
  * @param ListRoverClustersRequest
463
486
  * @return ListRoverClustersResponse
464
487
  * @throws OciError when an error occurs
465
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/ListRoverClusters.ts.html |here} to see how to use ListRoverClusters API.
488
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/ListRoverClusters.ts.html |here} to see how to use ListRoverClusters API.
466
489
  */
467
490
  listRoverClusters(listRoverClustersRequest) {
468
491
  return __awaiter(this, void 0, void 0, function* () {
@@ -537,7 +560,7 @@ class RoverClusterClient {
537
560
  * @param UpdateRoverClusterRequest
538
561
  * @return UpdateRoverClusterResponse
539
562
  * @throws OciError when an error occurs
540
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/UpdateRoverCluster.ts.html |here} to see how to use UpdateRoverCluster API.
563
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/UpdateRoverCluster.ts.html |here} to see how to use UpdateRoverCluster API.
541
564
  */
542
565
  updateRoverCluster(updateRoverClusterRequest) {
543
566
  return __awaiter(this, void 0, void 0, function* () {
@@ -608,11 +631,14 @@ var RoverEntitlementApiKeys;
608
631
  */
609
632
  class RoverEntitlementClient {
610
633
  constructor(params, clientConfiguration) {
634
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
611
635
  this["_endpoint"] = "";
612
636
  this["_defaultHeaders"] = {};
613
637
  this._circuitBreaker = null;
614
638
  this._httpOptions = undefined;
615
639
  this.targetService = "RoverEntitlement";
640
+ this._regionId = "";
641
+ this._lastSetRegionOrRegionId = "";
616
642
  const requestSigner = params.authenticationDetailsProvider
617
643
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
618
644
  : null;
@@ -662,13 +688,31 @@ class RoverEntitlementClient {
662
688
  get logger() {
663
689
  return common.LOG.logger;
664
690
  }
691
+ /**
692
+ * Determines whether realm specific endpoint should be used or not.
693
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
694
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
695
+ */
696
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
697
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
698
+ if (this.logger)
699
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
700
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
701
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverEntitlementClient.serviceEndpointTemplate, this._region, RoverEntitlementClient.endpointServiceName);
702
+ }
703
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
704
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverEntitlementClient.serviceEndpointTemplate, this._regionId, RoverEntitlementClient.endpointServiceName);
705
+ }
706
+ }
665
707
  /**
666
708
  * Sets the region to call (ex, Region.US_PHOENIX_1).
667
709
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
668
710
  * @param region The region of the service.
669
711
  */
670
712
  set region(region) {
713
+ this._region = region;
671
714
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverEntitlementClient.serviceEndpointTemplate, region, RoverEntitlementClient.endpointServiceName);
715
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
672
716
  }
673
717
  /**
674
718
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -679,7 +723,9 @@ class RoverEntitlementClient {
679
723
  * @param regionId The public region ID.
680
724
  */
681
725
  set regionId(regionId) {
726
+ this._regionId = regionId;
682
727
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverEntitlementClient.serviceEndpointTemplate, regionId, RoverEntitlementClient.endpointServiceName);
728
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
683
729
  }
684
730
  /**
685
731
  * Creates a new RoverEntitlementWaiter for resources for this service.
@@ -708,7 +754,7 @@ class RoverEntitlementClient {
708
754
  * @param ChangeRoverEntitlementCompartmentRequest
709
755
  * @return ChangeRoverEntitlementCompartmentResponse
710
756
  * @throws OciError when an error occurs
711
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/ChangeRoverEntitlementCompartment.ts.html |here} to see how to use ChangeRoverEntitlementCompartment API.
757
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/ChangeRoverEntitlementCompartment.ts.html |here} to see how to use ChangeRoverEntitlementCompartment API.
712
758
  */
713
759
  changeRoverEntitlementCompartment(changeRoverEntitlementCompartmentRequest) {
714
760
  return __awaiter(this, void 0, void 0, function* () {
@@ -765,7 +811,7 @@ class RoverEntitlementClient {
765
811
  * @param CreateRoverEntitlementRequest
766
812
  * @return CreateRoverEntitlementResponse
767
813
  * @throws OciError when an error occurs
768
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/CreateRoverEntitlement.ts.html |here} to see how to use CreateRoverEntitlement API.
814
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/CreateRoverEntitlement.ts.html |here} to see how to use CreateRoverEntitlement API.
769
815
  */
770
816
  createRoverEntitlement(createRoverEntitlementRequest) {
771
817
  return __awaiter(this, void 0, void 0, function* () {
@@ -828,7 +874,7 @@ class RoverEntitlementClient {
828
874
  * @param DeleteRoverEntitlementRequest
829
875
  * @return DeleteRoverEntitlementResponse
830
876
  * @throws OciError when an error occurs
831
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/DeleteRoverEntitlement.ts.html |here} to see how to use DeleteRoverEntitlement API.
877
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/DeleteRoverEntitlement.ts.html |here} to see how to use DeleteRoverEntitlement API.
832
878
  */
833
879
  deleteRoverEntitlement(deleteRoverEntitlementRequest) {
834
880
  return __awaiter(this, void 0, void 0, function* () {
@@ -884,7 +930,7 @@ class RoverEntitlementClient {
884
930
  * @param GetRoverEntitlementRequest
885
931
  * @return GetRoverEntitlementResponse
886
932
  * @throws OciError when an error occurs
887
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/GetRoverEntitlement.ts.html |here} to see how to use GetRoverEntitlement API.
933
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/GetRoverEntitlement.ts.html |here} to see how to use GetRoverEntitlement API.
888
934
  */
889
935
  getRoverEntitlement(getRoverEntitlementRequest) {
890
936
  return __awaiter(this, void 0, void 0, function* () {
@@ -950,7 +996,7 @@ class RoverEntitlementClient {
950
996
  * @param ListRoverEntitlementsRequest
951
997
  * @return ListRoverEntitlementsResponse
952
998
  * @throws OciError when an error occurs
953
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/ListRoverEntitlements.ts.html |here} to see how to use ListRoverEntitlements API.
999
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/ListRoverEntitlements.ts.html |here} to see how to use ListRoverEntitlements API.
954
1000
  */
955
1001
  listRoverEntitlements(listRoverEntitlementsRequest) {
956
1002
  return __awaiter(this, void 0, void 0, function* () {
@@ -1025,7 +1071,7 @@ class RoverEntitlementClient {
1025
1071
  * @param UpdateRoverEntitlementRequest
1026
1072
  * @return UpdateRoverEntitlementResponse
1027
1073
  * @throws OciError when an error occurs
1028
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/UpdateRoverEntitlement.ts.html |here} to see how to use UpdateRoverEntitlement API.
1074
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/UpdateRoverEntitlement.ts.html |here} to see how to use UpdateRoverEntitlement API.
1029
1075
  */
1030
1076
  updateRoverEntitlement(updateRoverEntitlementRequest) {
1031
1077
  return __awaiter(this, void 0, void 0, function* () {
@@ -1096,11 +1142,14 @@ var RoverNodeApiKeys;
1096
1142
  */
1097
1143
  class RoverNodeClient {
1098
1144
  constructor(params, clientConfiguration) {
1145
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
1099
1146
  this["_endpoint"] = "";
1100
1147
  this["_defaultHeaders"] = {};
1101
1148
  this._circuitBreaker = null;
1102
1149
  this._httpOptions = undefined;
1103
1150
  this.targetService = "RoverNode";
1151
+ this._regionId = "";
1152
+ this._lastSetRegionOrRegionId = "";
1104
1153
  const requestSigner = params.authenticationDetailsProvider
1105
1154
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1106
1155
  : null;
@@ -1150,13 +1199,31 @@ class RoverNodeClient {
1150
1199
  get logger() {
1151
1200
  return common.LOG.logger;
1152
1201
  }
1202
+ /**
1203
+ * Determines whether realm specific endpoint should be used or not.
1204
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1205
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1206
+ */
1207
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1208
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1209
+ if (this.logger)
1210
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1211
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1212
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverNodeClient.serviceEndpointTemplate, this._region, RoverNodeClient.endpointServiceName);
1213
+ }
1214
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1215
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverNodeClient.serviceEndpointTemplate, this._regionId, RoverNodeClient.endpointServiceName);
1216
+ }
1217
+ }
1153
1218
  /**
1154
1219
  * Sets the region to call (ex, Region.US_PHOENIX_1).
1155
1220
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1156
1221
  * @param region The region of the service.
1157
1222
  */
1158
1223
  set region(region) {
1224
+ this._region = region;
1159
1225
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(RoverNodeClient.serviceEndpointTemplate, region, RoverNodeClient.endpointServiceName);
1226
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1160
1227
  }
1161
1228
  /**
1162
1229
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1167,7 +1234,9 @@ class RoverNodeClient {
1167
1234
  * @param regionId The public region ID.
1168
1235
  */
1169
1236
  set regionId(regionId) {
1237
+ this._regionId = regionId;
1170
1238
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(RoverNodeClient.serviceEndpointTemplate, regionId, RoverNodeClient.endpointServiceName);
1239
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1171
1240
  }
1172
1241
  /**
1173
1242
  * Creates a new RoverNodeWaiter for resources for this service.
@@ -1196,7 +1265,7 @@ class RoverNodeClient {
1196
1265
  * @param ChangeRoverNodeCompartmentRequest
1197
1266
  * @return ChangeRoverNodeCompartmentResponse
1198
1267
  * @throws OciError when an error occurs
1199
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/ChangeRoverNodeCompartment.ts.html |here} to see how to use ChangeRoverNodeCompartment API.
1268
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/ChangeRoverNodeCompartment.ts.html |here} to see how to use ChangeRoverNodeCompartment API.
1200
1269
  */
1201
1270
  changeRoverNodeCompartment(changeRoverNodeCompartmentRequest) {
1202
1271
  return __awaiter(this, void 0, void 0, function* () {
@@ -1254,7 +1323,7 @@ class RoverNodeClient {
1254
1323
  * @param CreateRoverNodeRequest
1255
1324
  * @return CreateRoverNodeResponse
1256
1325
  * @throws OciError when an error occurs
1257
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/CreateRoverNode.ts.html |here} to see how to use CreateRoverNode API.
1326
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/CreateRoverNode.ts.html |here} to see how to use CreateRoverNode API.
1258
1327
  */
1259
1328
  createRoverNode(createRoverNodeRequest) {
1260
1329
  return __awaiter(this, void 0, void 0, function* () {
@@ -1317,7 +1386,7 @@ class RoverNodeClient {
1317
1386
  * @param DeleteRoverNodeRequest
1318
1387
  * @return DeleteRoverNodeResponse
1319
1388
  * @throws OciError when an error occurs
1320
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/DeleteRoverNode.ts.html |here} to see how to use DeleteRoverNode API.
1389
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/DeleteRoverNode.ts.html |here} to see how to use DeleteRoverNode API.
1321
1390
  */
1322
1391
  deleteRoverNode(deleteRoverNodeRequest) {
1323
1392
  return __awaiter(this, void 0, void 0, function* () {
@@ -1373,7 +1442,7 @@ class RoverNodeClient {
1373
1442
  * @param GetRoverNodeRequest
1374
1443
  * @return GetRoverNodeResponse
1375
1444
  * @throws OciError when an error occurs
1376
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/GetRoverNode.ts.html |here} to see how to use GetRoverNode API.
1445
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/GetRoverNode.ts.html |here} to see how to use GetRoverNode API.
1377
1446
  */
1378
1447
  getRoverNode(getRoverNodeRequest) {
1379
1448
  return __awaiter(this, void 0, void 0, function* () {
@@ -1436,7 +1505,7 @@ class RoverNodeClient {
1436
1505
  * @param GetRoverNodeCertificateRequest
1437
1506
  * @return GetRoverNodeCertificateResponse
1438
1507
  * @throws OciError when an error occurs
1439
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/GetRoverNodeCertificate.ts.html |here} to see how to use GetRoverNodeCertificate API.
1508
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/GetRoverNodeCertificate.ts.html |here} to see how to use GetRoverNodeCertificate API.
1440
1509
  */
1441
1510
  getRoverNodeCertificate(getRoverNodeCertificateRequest) {
1442
1511
  return __awaiter(this, void 0, void 0, function* () {
@@ -1499,7 +1568,7 @@ class RoverNodeClient {
1499
1568
  * @param GetRoverNodeEncryptionKeyRequest
1500
1569
  * @return GetRoverNodeEncryptionKeyResponse
1501
1570
  * @throws OciError when an error occurs
1502
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/GetRoverNodeEncryptionKey.ts.html |here} to see how to use GetRoverNodeEncryptionKey API.
1571
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/GetRoverNodeEncryptionKey.ts.html |here} to see how to use GetRoverNodeEncryptionKey API.
1503
1572
  */
1504
1573
  getRoverNodeEncryptionKey(getRoverNodeEncryptionKeyRequest) {
1505
1574
  return __awaiter(this, void 0, void 0, function* () {
@@ -1562,7 +1631,7 @@ class RoverNodeClient {
1562
1631
  * @param GetRoverNodeGetRptRequest
1563
1632
  * @return GetRoverNodeGetRptResponse
1564
1633
  * @throws OciError when an error occurs
1565
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/GetRoverNodeGetRpt.ts.html |here} to see how to use GetRoverNodeGetRpt API.
1634
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/GetRoverNodeGetRpt.ts.html |here} to see how to use GetRoverNodeGetRpt API.
1566
1635
  */
1567
1636
  getRoverNodeGetRpt(getRoverNodeGetRptRequest) {
1568
1637
  return __awaiter(this, void 0, void 0, function* () {
@@ -1627,7 +1696,7 @@ class RoverNodeClient {
1627
1696
  * @param ListRoverNodesRequest
1628
1697
  * @return ListRoverNodesResponse
1629
1698
  * @throws OciError when an error occurs
1630
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/ListRoverNodes.ts.html |here} to see how to use ListRoverNodes API.
1699
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/ListRoverNodes.ts.html |here} to see how to use ListRoverNodes API.
1631
1700
  */
1632
1701
  listRoverNodes(listRoverNodesRequest) {
1633
1702
  return __awaiter(this, void 0, void 0, function* () {
@@ -1703,7 +1772,7 @@ class RoverNodeClient {
1703
1772
  * @param RoverNodeActionSetKeyRequest
1704
1773
  * @return RoverNodeActionSetKeyResponse
1705
1774
  * @throws OciError when an error occurs
1706
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/RoverNodeActionSetKey.ts.html |here} to see how to use RoverNodeActionSetKey API.
1775
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/RoverNodeActionSetKey.ts.html |here} to see how to use RoverNodeActionSetKey API.
1707
1776
  */
1708
1777
  roverNodeActionSetKey(roverNodeActionSetKeyRequest) {
1709
1778
  return __awaiter(this, void 0, void 0, function* () {
@@ -1770,7 +1839,7 @@ class RoverNodeClient {
1770
1839
  * @param UpdateRoverNodeRequest
1771
1840
  * @return UpdateRoverNodeResponse
1772
1841
  * @throws OciError when an error occurs
1773
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/UpdateRoverNode.ts.html |here} to see how to use UpdateRoverNode API.
1842
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/UpdateRoverNode.ts.html |here} to see how to use UpdateRoverNode API.
1774
1843
  */
1775
1844
  updateRoverNode(updateRoverNodeRequest) {
1776
1845
  return __awaiter(this, void 0, void 0, function* () {
@@ -1841,11 +1910,14 @@ var ShapeApiKeys;
1841
1910
  */
1842
1911
  class ShapeClient {
1843
1912
  constructor(params, clientConfiguration) {
1913
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
1844
1914
  this["_endpoint"] = "";
1845
1915
  this["_defaultHeaders"] = {};
1846
1916
  this._circuitBreaker = null;
1847
1917
  this._httpOptions = undefined;
1848
1918
  this.targetService = "Shape";
1919
+ this._regionId = "";
1920
+ this._lastSetRegionOrRegionId = "";
1849
1921
  const requestSigner = params.authenticationDetailsProvider
1850
1922
  ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
1851
1923
  : null;
@@ -1895,13 +1967,31 @@ class ShapeClient {
1895
1967
  get logger() {
1896
1968
  return common.LOG.logger;
1897
1969
  }
1970
+ /**
1971
+ * Determines whether realm specific endpoint should be used or not.
1972
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
1973
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
1974
+ */
1975
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
1976
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
1977
+ if (this.logger)
1978
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
1979
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
1980
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShapeClient.serviceEndpointTemplate, this._region, ShapeClient.endpointServiceName);
1981
+ }
1982
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
1983
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShapeClient.serviceEndpointTemplate, this._regionId, ShapeClient.endpointServiceName);
1984
+ }
1985
+ }
1898
1986
  /**
1899
1987
  * Sets the region to call (ex, Region.US_PHOENIX_1).
1900
1988
  * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
1901
1989
  * @param region The region of the service.
1902
1990
  */
1903
1991
  set region(region) {
1992
+ this._region = region;
1904
1993
  this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShapeClient.serviceEndpointTemplate, region, ShapeClient.endpointServiceName);
1994
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
1905
1995
  }
1906
1996
  /**
1907
1997
  * Sets the regionId to call (ex, 'us-phoenix-1').
@@ -1912,7 +2002,9 @@ class ShapeClient {
1912
2002
  * @param regionId The public region ID.
1913
2003
  */
1914
2004
  set regionId(regionId) {
2005
+ this._regionId = regionId;
1915
2006
  this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShapeClient.serviceEndpointTemplate, regionId, ShapeClient.endpointServiceName);
2007
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
1916
2008
  }
1917
2009
  /**
1918
2010
  * Returns a list of Shapes.
@@ -1921,7 +2013,7 @@ class ShapeClient {
1921
2013
  * @param ListShapesRequest
1922
2014
  * @return ListShapesResponse
1923
2015
  * @throws OciError when an error occurs
1924
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.57.0/rover/ListShapes.ts.html |here} to see how to use ListShapes API.
2016
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.59.0/rover/ListShapes.ts.html |here} to see how to use ListShapes API.
1925
2017
  */
1926
2018
  listShapes(listShapesRequest) {
1927
2019
  return __awaiter(this, void 0, void 0, function* () {