oci-rover 2.22.0 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/lib/client.d.ts +77 -23
- package/lib/client.js +198 -27
- package/lib/client.js.map +1 -1
- package/lib/model/create-rover-cluster-details.d.ts +4 -0
- package/lib/model/create-rover-cluster-details.js.map +1 -1
- package/lib/model/create-rover-node-details.d.ts +11 -0
- package/lib/model/create-rover-node-details.js.map +1 -1
- package/lib/model/index.d.ts +4 -0
- package/lib/model/index.js +5 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/rover-cluster.d.ts +4 -0
- package/lib/model/rover-cluster.js.map +1 -1
- package/lib/model/rover-node-summary.d.ts +4 -0
- package/lib/model/rover-node-summary.js.map +1 -1
- package/lib/model/rover-node.d.ts +8 -0
- package/lib/model/rover-node.js.map +1 -1
- package/lib/model/shape-collection.d.ts +26 -0
- package/lib/model/shape-collection.js +61 -0
- package/lib/model/shape-collection.js.map +1 -0
- package/lib/model/shape-summary.d.ts +93 -0
- package/lib/model/shape-summary.js +29 -0
- package/lib/model/shape-summary.js.map +1 -0
- package/lib/model/update-rover-node-details.d.ts +4 -0
- package/lib/model/update-rover-node-details.js.map +1 -1
- package/lib/request/change-rover-cluster-compartment-request.d.ts +1 -1
- package/lib/request/change-rover-entitlement-compartment-request.d.ts +1 -1
- package/lib/request/change-rover-node-compartment-request.d.ts +1 -1
- package/lib/request/create-rover-cluster-request.d.ts +1 -1
- package/lib/request/create-rover-entitlement-request.d.ts +1 -1
- package/lib/request/create-rover-node-request.d.ts +1 -1
- package/lib/request/delete-rover-cluster-request.d.ts +1 -1
- package/lib/request/delete-rover-entitlement-request.d.ts +1 -1
- package/lib/request/delete-rover-node-request.d.ts +1 -1
- package/lib/request/get-rover-cluster-certificate-request.d.ts +1 -1
- package/lib/request/get-rover-cluster-request.d.ts +1 -1
- package/lib/request/get-rover-entitlement-request.d.ts +1 -1
- package/lib/request/get-rover-node-certificate-request.d.ts +1 -1
- package/lib/request/get-rover-node-encryption-key-request.d.ts +1 -1
- package/lib/request/get-rover-node-get-rpt-request.d.ts +1 -1
- package/lib/request/get-rover-node-request.d.ts +1 -1
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-rover-clusters-request.d.ts +1 -1
- package/lib/request/list-rover-entitlements-request.d.ts +1 -1
- package/lib/request/list-rover-nodes-request.d.ts +5 -1
- package/lib/request/list-rover-nodes-request.js.map +1 -1
- package/lib/request/list-shapes-request.d.ts +50 -0
- package/lib/request/list-shapes-request.js +24 -0
- package/lib/request/list-shapes-request.js.map +1 -0
- package/lib/request/rover-node-action-set-key-request.d.ts +1 -1
- package/lib/request/update-rover-cluster-request.d.ts +1 -1
- package/lib/request/update-rover-entitlement-request.d.ts +1 -1
- package/lib/request/update-rover-node-request.d.ts +1 -1
- package/lib/response/index.d.ts +2 -0
- package/lib/response/list-shapes-response.d.ts +39 -0
- package/lib/response/list-shapes-response.js +15 -0
- package/lib/response/list-shapes-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -40,7 +40,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
exports.RoverNodeClient = exports.RoverNodeApiKeys = exports.RoverEntitlementClient = exports.RoverEntitlementApiKeys = exports.RoverClusterClient = exports.RoverClusterApiKeys = void 0;
|
|
43
|
+
exports.ShapeClient = exports.ShapeApiKeys = exports.RoverNodeClient = exports.RoverNodeApiKeys = exports.RoverEntitlementClient = exports.RoverEntitlementApiKeys = exports.RoverClusterClient = exports.RoverClusterApiKeys = void 0;
|
|
44
44
|
const common = require("oci-common");
|
|
45
45
|
const model = __importStar(require("./model"));
|
|
46
46
|
const rovercluster_waiter_1 = require("./rovercluster-waiter");
|
|
@@ -61,6 +61,7 @@ class RoverClusterClient {
|
|
|
61
61
|
this["_endpoint"] = "";
|
|
62
62
|
this["_defaultHeaders"] = {};
|
|
63
63
|
this._circuitBreaker = null;
|
|
64
|
+
this._httpOptions = undefined;
|
|
64
65
|
const requestSigner = params.authenticationDetailsProvider
|
|
65
66
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
66
67
|
: null;
|
|
@@ -69,6 +70,9 @@ class RoverClusterClient {
|
|
|
69
70
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
70
71
|
? clientConfiguration.circuitBreaker.circuit
|
|
71
72
|
: null;
|
|
73
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
74
|
+
? clientConfiguration.httpOptions
|
|
75
|
+
: undefined;
|
|
72
76
|
}
|
|
73
77
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
74
78
|
const specCircuitBreakerEnabled = true;
|
|
@@ -78,7 +82,8 @@ class RoverClusterClient {
|
|
|
78
82
|
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
79
83
|
}
|
|
80
84
|
this._httpClient =
|
|
81
|
-
params.httpClient ||
|
|
85
|
+
params.httpClient ||
|
|
86
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
82
87
|
if (params.authenticationDetailsProvider &&
|
|
83
88
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
84
89
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -152,7 +157,7 @@ class RoverClusterClient {
|
|
|
152
157
|
* @param ChangeRoverClusterCompartmentRequest
|
|
153
158
|
* @return ChangeRoverClusterCompartmentResponse
|
|
154
159
|
* @throws OciError when an error occurs
|
|
155
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
160
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/ChangeRoverClusterCompartment.ts.html |here} to see how to use ChangeRoverClusterCompartment API.
|
|
156
161
|
*/
|
|
157
162
|
changeRoverClusterCompartment(changeRoverClusterCompartmentRequest) {
|
|
158
163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -208,7 +213,7 @@ class RoverClusterClient {
|
|
|
208
213
|
* @param CreateRoverClusterRequest
|
|
209
214
|
* @return CreateRoverClusterResponse
|
|
210
215
|
* @throws OciError when an error occurs
|
|
211
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
216
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/CreateRoverCluster.ts.html |here} to see how to use CreateRoverCluster API.
|
|
212
217
|
*/
|
|
213
218
|
createRoverCluster(createRoverClusterRequest) {
|
|
214
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -269,7 +274,7 @@ class RoverClusterClient {
|
|
|
269
274
|
* @param DeleteRoverClusterRequest
|
|
270
275
|
* @return DeleteRoverClusterResponse
|
|
271
276
|
* @throws OciError when an error occurs
|
|
272
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
277
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/DeleteRoverCluster.ts.html |here} to see how to use DeleteRoverCluster API.
|
|
273
278
|
*/
|
|
274
279
|
deleteRoverCluster(deleteRoverClusterRequest) {
|
|
275
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -323,7 +328,7 @@ class RoverClusterClient {
|
|
|
323
328
|
* @param GetRoverClusterRequest
|
|
324
329
|
* @return GetRoverClusterResponse
|
|
325
330
|
* @throws OciError when an error occurs
|
|
326
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
331
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/GetRoverCluster.ts.html |here} to see how to use GetRoverCluster API.
|
|
327
332
|
*/
|
|
328
333
|
getRoverCluster(getRoverClusterRequest) {
|
|
329
334
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -384,7 +389,7 @@ class RoverClusterClient {
|
|
|
384
389
|
* @param GetRoverClusterCertificateRequest
|
|
385
390
|
* @return GetRoverClusterCertificateResponse
|
|
386
391
|
* @throws OciError when an error occurs
|
|
387
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
392
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/GetRoverClusterCertificate.ts.html |here} to see how to use GetRoverClusterCertificate API.
|
|
388
393
|
*/
|
|
389
394
|
getRoverClusterCertificate(getRoverClusterCertificateRequest) {
|
|
390
395
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -446,7 +451,7 @@ class RoverClusterClient {
|
|
|
446
451
|
* @param ListRoverClustersRequest
|
|
447
452
|
* @return ListRoverClustersResponse
|
|
448
453
|
* @throws OciError when an error occurs
|
|
449
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
454
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/ListRoverClusters.ts.html |here} to see how to use ListRoverClusters API.
|
|
450
455
|
*/
|
|
451
456
|
listRoverClusters(listRoverClustersRequest) {
|
|
452
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -519,7 +524,7 @@ class RoverClusterClient {
|
|
|
519
524
|
* @param UpdateRoverClusterRequest
|
|
520
525
|
* @return UpdateRoverClusterResponse
|
|
521
526
|
* @throws OciError when an error occurs
|
|
522
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
527
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/UpdateRoverCluster.ts.html |here} to see how to use UpdateRoverCluster API.
|
|
523
528
|
*/
|
|
524
529
|
updateRoverCluster(updateRoverClusterRequest) {
|
|
525
530
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -591,6 +596,7 @@ class RoverEntitlementClient {
|
|
|
591
596
|
this["_endpoint"] = "";
|
|
592
597
|
this["_defaultHeaders"] = {};
|
|
593
598
|
this._circuitBreaker = null;
|
|
599
|
+
this._httpOptions = undefined;
|
|
594
600
|
const requestSigner = params.authenticationDetailsProvider
|
|
595
601
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
596
602
|
: null;
|
|
@@ -599,6 +605,9 @@ class RoverEntitlementClient {
|
|
|
599
605
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
600
606
|
? clientConfiguration.circuitBreaker.circuit
|
|
601
607
|
: null;
|
|
608
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
609
|
+
? clientConfiguration.httpOptions
|
|
610
|
+
: undefined;
|
|
602
611
|
}
|
|
603
612
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
604
613
|
const specCircuitBreakerEnabled = true;
|
|
@@ -608,7 +617,8 @@ class RoverEntitlementClient {
|
|
|
608
617
|
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
609
618
|
}
|
|
610
619
|
this._httpClient =
|
|
611
|
-
params.httpClient ||
|
|
620
|
+
params.httpClient ||
|
|
621
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
612
622
|
if (params.authenticationDetailsProvider &&
|
|
613
623
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
614
624
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -682,7 +692,7 @@ class RoverEntitlementClient {
|
|
|
682
692
|
* @param ChangeRoverEntitlementCompartmentRequest
|
|
683
693
|
* @return ChangeRoverEntitlementCompartmentResponse
|
|
684
694
|
* @throws OciError when an error occurs
|
|
685
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
695
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/ChangeRoverEntitlementCompartment.ts.html |here} to see how to use ChangeRoverEntitlementCompartment API.
|
|
686
696
|
*/
|
|
687
697
|
changeRoverEntitlementCompartment(changeRoverEntitlementCompartmentRequest) {
|
|
688
698
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -737,7 +747,7 @@ class RoverEntitlementClient {
|
|
|
737
747
|
* @param CreateRoverEntitlementRequest
|
|
738
748
|
* @return CreateRoverEntitlementResponse
|
|
739
749
|
* @throws OciError when an error occurs
|
|
740
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
750
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/CreateRoverEntitlement.ts.html |here} to see how to use CreateRoverEntitlement API.
|
|
741
751
|
*/
|
|
742
752
|
createRoverEntitlement(createRoverEntitlementRequest) {
|
|
743
753
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -798,7 +808,7 @@ class RoverEntitlementClient {
|
|
|
798
808
|
* @param DeleteRoverEntitlementRequest
|
|
799
809
|
* @return DeleteRoverEntitlementResponse
|
|
800
810
|
* @throws OciError when an error occurs
|
|
801
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
811
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/DeleteRoverEntitlement.ts.html |here} to see how to use DeleteRoverEntitlement API.
|
|
802
812
|
*/
|
|
803
813
|
deleteRoverEntitlement(deleteRoverEntitlementRequest) {
|
|
804
814
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -852,7 +862,7 @@ class RoverEntitlementClient {
|
|
|
852
862
|
* @param GetRoverEntitlementRequest
|
|
853
863
|
* @return GetRoverEntitlementResponse
|
|
854
864
|
* @throws OciError when an error occurs
|
|
855
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
865
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/GetRoverEntitlement.ts.html |here} to see how to use GetRoverEntitlement API.
|
|
856
866
|
*/
|
|
857
867
|
getRoverEntitlement(getRoverEntitlementRequest) {
|
|
858
868
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -916,7 +926,7 @@ class RoverEntitlementClient {
|
|
|
916
926
|
* @param ListRoverEntitlementsRequest
|
|
917
927
|
* @return ListRoverEntitlementsResponse
|
|
918
928
|
* @throws OciError when an error occurs
|
|
919
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
929
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/ListRoverEntitlements.ts.html |here} to see how to use ListRoverEntitlements API.
|
|
920
930
|
*/
|
|
921
931
|
listRoverEntitlements(listRoverEntitlementsRequest) {
|
|
922
932
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -989,7 +999,7 @@ class RoverEntitlementClient {
|
|
|
989
999
|
* @param UpdateRoverEntitlementRequest
|
|
990
1000
|
* @return UpdateRoverEntitlementResponse
|
|
991
1001
|
* @throws OciError when an error occurs
|
|
992
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1002
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/UpdateRoverEntitlement.ts.html |here} to see how to use UpdateRoverEntitlement API.
|
|
993
1003
|
*/
|
|
994
1004
|
updateRoverEntitlement(updateRoverEntitlementRequest) {
|
|
995
1005
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1061,6 +1071,7 @@ class RoverNodeClient {
|
|
|
1061
1071
|
this["_endpoint"] = "";
|
|
1062
1072
|
this["_defaultHeaders"] = {};
|
|
1063
1073
|
this._circuitBreaker = null;
|
|
1074
|
+
this._httpOptions = undefined;
|
|
1064
1075
|
const requestSigner = params.authenticationDetailsProvider
|
|
1065
1076
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1066
1077
|
: null;
|
|
@@ -1069,6 +1080,9 @@ class RoverNodeClient {
|
|
|
1069
1080
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1070
1081
|
? clientConfiguration.circuitBreaker.circuit
|
|
1071
1082
|
: null;
|
|
1083
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1084
|
+
? clientConfiguration.httpOptions
|
|
1085
|
+
: undefined;
|
|
1072
1086
|
}
|
|
1073
1087
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1074
1088
|
const specCircuitBreakerEnabled = true;
|
|
@@ -1078,7 +1092,8 @@ class RoverNodeClient {
|
|
|
1078
1092
|
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1079
1093
|
}
|
|
1080
1094
|
this._httpClient =
|
|
1081
|
-
params.httpClient ||
|
|
1095
|
+
params.httpClient ||
|
|
1096
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
1082
1097
|
if (params.authenticationDetailsProvider &&
|
|
1083
1098
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1084
1099
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -1152,7 +1167,7 @@ class RoverNodeClient {
|
|
|
1152
1167
|
* @param ChangeRoverNodeCompartmentRequest
|
|
1153
1168
|
* @return ChangeRoverNodeCompartmentResponse
|
|
1154
1169
|
* @throws OciError when an error occurs
|
|
1155
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1170
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/ChangeRoverNodeCompartment.ts.html |here} to see how to use ChangeRoverNodeCompartment API.
|
|
1156
1171
|
*/
|
|
1157
1172
|
changeRoverNodeCompartment(changeRoverNodeCompartmentRequest) {
|
|
1158
1173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1208,7 +1223,7 @@ class RoverNodeClient {
|
|
|
1208
1223
|
* @param CreateRoverNodeRequest
|
|
1209
1224
|
* @return CreateRoverNodeResponse
|
|
1210
1225
|
* @throws OciError when an error occurs
|
|
1211
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1226
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/CreateRoverNode.ts.html |here} to see how to use CreateRoverNode API.
|
|
1212
1227
|
*/
|
|
1213
1228
|
createRoverNode(createRoverNodeRequest) {
|
|
1214
1229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1269,7 +1284,7 @@ class RoverNodeClient {
|
|
|
1269
1284
|
* @param DeleteRoverNodeRequest
|
|
1270
1285
|
* @return DeleteRoverNodeResponse
|
|
1271
1286
|
* @throws OciError when an error occurs
|
|
1272
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1287
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/DeleteRoverNode.ts.html |here} to see how to use DeleteRoverNode API.
|
|
1273
1288
|
*/
|
|
1274
1289
|
deleteRoverNode(deleteRoverNodeRequest) {
|
|
1275
1290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1323,7 +1338,7 @@ class RoverNodeClient {
|
|
|
1323
1338
|
* @param GetRoverNodeRequest
|
|
1324
1339
|
* @return GetRoverNodeResponse
|
|
1325
1340
|
* @throws OciError when an error occurs
|
|
1326
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1341
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/GetRoverNode.ts.html |here} to see how to use GetRoverNode API.
|
|
1327
1342
|
*/
|
|
1328
1343
|
getRoverNode(getRoverNodeRequest) {
|
|
1329
1344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1384,7 +1399,7 @@ class RoverNodeClient {
|
|
|
1384
1399
|
* @param GetRoverNodeCertificateRequest
|
|
1385
1400
|
* @return GetRoverNodeCertificateResponse
|
|
1386
1401
|
* @throws OciError when an error occurs
|
|
1387
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1402
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/GetRoverNodeCertificate.ts.html |here} to see how to use GetRoverNodeCertificate API.
|
|
1388
1403
|
*/
|
|
1389
1404
|
getRoverNodeCertificate(getRoverNodeCertificateRequest) {
|
|
1390
1405
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1445,7 +1460,7 @@ class RoverNodeClient {
|
|
|
1445
1460
|
* @param GetRoverNodeEncryptionKeyRequest
|
|
1446
1461
|
* @return GetRoverNodeEncryptionKeyResponse
|
|
1447
1462
|
* @throws OciError when an error occurs
|
|
1448
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1463
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/GetRoverNodeEncryptionKey.ts.html |here} to see how to use GetRoverNodeEncryptionKey API.
|
|
1449
1464
|
*/
|
|
1450
1465
|
getRoverNodeEncryptionKey(getRoverNodeEncryptionKeyRequest) {
|
|
1451
1466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1506,7 +1521,7 @@ class RoverNodeClient {
|
|
|
1506
1521
|
* @param GetRoverNodeGetRptRequest
|
|
1507
1522
|
* @return GetRoverNodeGetRptResponse
|
|
1508
1523
|
* @throws OciError when an error occurs
|
|
1509
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1524
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/GetRoverNodeGetRpt.ts.html |here} to see how to use GetRoverNodeGetRpt API.
|
|
1510
1525
|
*/
|
|
1511
1526
|
getRoverNodeGetRpt(getRoverNodeGetRptRequest) {
|
|
1512
1527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1569,7 +1584,7 @@ class RoverNodeClient {
|
|
|
1569
1584
|
* @param ListRoverNodesRequest
|
|
1570
1585
|
* @return ListRoverNodesResponse
|
|
1571
1586
|
* @throws OciError when an error occurs
|
|
1572
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1587
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/ListRoverNodes.ts.html |here} to see how to use ListRoverNodes API.
|
|
1573
1588
|
*/
|
|
1574
1589
|
listRoverNodes(listRoverNodesRequest) {
|
|
1575
1590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1580,6 +1595,7 @@ class RoverNodeClient {
|
|
|
1580
1595
|
"compartmentId": listRoverNodesRequest.compartmentId,
|
|
1581
1596
|
"displayName": listRoverNodesRequest.displayName,
|
|
1582
1597
|
"nodeType": listRoverNodesRequest.nodeType,
|
|
1598
|
+
"shape": listRoverNodesRequest.shape,
|
|
1583
1599
|
"limit": listRoverNodesRequest.limit,
|
|
1584
1600
|
"page": listRoverNodesRequest.page,
|
|
1585
1601
|
"lifecycleState": listRoverNodesRequest.lifecycleState,
|
|
@@ -1642,7 +1658,7 @@ class RoverNodeClient {
|
|
|
1642
1658
|
* @param RoverNodeActionSetKeyRequest
|
|
1643
1659
|
* @return RoverNodeActionSetKeyResponse
|
|
1644
1660
|
* @throws OciError when an error occurs
|
|
1645
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1661
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/RoverNodeActionSetKey.ts.html |here} to see how to use RoverNodeActionSetKey API.
|
|
1646
1662
|
*/
|
|
1647
1663
|
roverNodeActionSetKey(roverNodeActionSetKeyRequest) {
|
|
1648
1664
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1707,7 +1723,7 @@ class RoverNodeClient {
|
|
|
1707
1723
|
* @param UpdateRoverNodeRequest
|
|
1708
1724
|
* @return UpdateRoverNodeResponse
|
|
1709
1725
|
* @throws OciError when an error occurs
|
|
1710
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1726
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/UpdateRoverNode.ts.html |here} to see how to use UpdateRoverNode API.
|
|
1711
1727
|
*/
|
|
1712
1728
|
updateRoverNode(updateRoverNodeRequest) {
|
|
1713
1729
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1768,4 +1784,159 @@ class RoverNodeClient {
|
|
|
1768
1784
|
exports.RoverNodeClient = RoverNodeClient;
|
|
1769
1785
|
RoverNodeClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
1770
1786
|
RoverNodeClient.endpointServiceName = "";
|
|
1787
|
+
var ShapeApiKeys;
|
|
1788
|
+
(function (ShapeApiKeys) {
|
|
1789
|
+
})(ShapeApiKeys = exports.ShapeApiKeys || (exports.ShapeApiKeys = {}));
|
|
1790
|
+
/**
|
|
1791
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1792
|
+
*/
|
|
1793
|
+
class ShapeClient {
|
|
1794
|
+
constructor(params, clientConfiguration) {
|
|
1795
|
+
this["_endpoint"] = "";
|
|
1796
|
+
this["_defaultHeaders"] = {};
|
|
1797
|
+
this._circuitBreaker = null;
|
|
1798
|
+
this._httpOptions = undefined;
|
|
1799
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
1800
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1801
|
+
: null;
|
|
1802
|
+
if (clientConfiguration) {
|
|
1803
|
+
this._clientConfiguration = clientConfiguration;
|
|
1804
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1805
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
1806
|
+
: null;
|
|
1807
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1808
|
+
? clientConfiguration.httpOptions
|
|
1809
|
+
: undefined;
|
|
1810
|
+
}
|
|
1811
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1812
|
+
const specCircuitBreakerEnabled = true;
|
|
1813
|
+
if (!this._circuitBreaker &&
|
|
1814
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1815
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1816
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1817
|
+
}
|
|
1818
|
+
this._httpClient =
|
|
1819
|
+
params.httpClient ||
|
|
1820
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
1821
|
+
if (params.authenticationDetailsProvider &&
|
|
1822
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1823
|
+
const provider = params.authenticationDetailsProvider;
|
|
1824
|
+
if (provider.getRegion()) {
|
|
1825
|
+
this.region = provider.getRegion();
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
1831
|
+
*/
|
|
1832
|
+
get endpoint() {
|
|
1833
|
+
return this._endpoint;
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
1837
|
+
* @param endpoint The endpoint of the service.
|
|
1838
|
+
*/
|
|
1839
|
+
set endpoint(endpoint) {
|
|
1840
|
+
this._endpoint = endpoint;
|
|
1841
|
+
this._endpoint = this._endpoint + "/20201210";
|
|
1842
|
+
if (this.logger)
|
|
1843
|
+
this.logger.info(`ShapeClient endpoint set to ${this._endpoint}`);
|
|
1844
|
+
}
|
|
1845
|
+
get logger() {
|
|
1846
|
+
return common.LOG.logger;
|
|
1847
|
+
}
|
|
1848
|
+
/**
|
|
1849
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
1850
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
1851
|
+
* @param region The region of the service.
|
|
1852
|
+
*/
|
|
1853
|
+
set region(region) {
|
|
1854
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ShapeClient.serviceEndpointTemplate, region, ShapeClient.endpointServiceName);
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
1858
|
+
*
|
|
1859
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
1860
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
1861
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
1862
|
+
* @param regionId The public region ID.
|
|
1863
|
+
*/
|
|
1864
|
+
set regionId(regionId) {
|
|
1865
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ShapeClient.serviceEndpointTemplate, regionId, ShapeClient.endpointServiceName);
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Returns a list of Shapes.
|
|
1869
|
+
*
|
|
1870
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1871
|
+
* @param ListShapesRequest
|
|
1872
|
+
* @return ListShapesResponse
|
|
1873
|
+
* @throws OciError when an error occurs
|
|
1874
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.26.0/rover/ListShapes.ts.html |here} to see how to use ListShapes API.
|
|
1875
|
+
*/
|
|
1876
|
+
listShapes(listShapesRequest) {
|
|
1877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1878
|
+
if (this.logger)
|
|
1879
|
+
this.logger.debug("Calling operation ShapeClient#listShapes.");
|
|
1880
|
+
const pathParams = {};
|
|
1881
|
+
const queryParams = {
|
|
1882
|
+
"compartmentId": listShapesRequest.compartmentId,
|
|
1883
|
+
"limit": listShapesRequest.limit,
|
|
1884
|
+
"page": listShapesRequest.page,
|
|
1885
|
+
"sortOrder": listShapesRequest.sortOrder,
|
|
1886
|
+
"sortBy": listShapesRequest.sortBy
|
|
1887
|
+
};
|
|
1888
|
+
let headerParams = {
|
|
1889
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1890
|
+
"opc-request-id": listShapesRequest.opcRequestId
|
|
1891
|
+
};
|
|
1892
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1893
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listShapesRequest.retryConfiguration, specRetryConfiguration);
|
|
1894
|
+
if (this.logger)
|
|
1895
|
+
retrier.logger = this.logger;
|
|
1896
|
+
const request = yield oci_common_1.composeRequest({
|
|
1897
|
+
baseEndpoint: this._endpoint,
|
|
1898
|
+
defaultHeaders: this._defaultHeaders,
|
|
1899
|
+
path: "/shapes",
|
|
1900
|
+
method: "GET",
|
|
1901
|
+
pathParams: pathParams,
|
|
1902
|
+
headerParams: headerParams,
|
|
1903
|
+
queryParams: queryParams
|
|
1904
|
+
});
|
|
1905
|
+
try {
|
|
1906
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1907
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1908
|
+
responseObject: {},
|
|
1909
|
+
body: yield response.json(),
|
|
1910
|
+
bodyKey: "shapeCollection",
|
|
1911
|
+
bodyModel: model.ShapeCollection,
|
|
1912
|
+
type: "model.ShapeCollection",
|
|
1913
|
+
responseHeaders: [
|
|
1914
|
+
{
|
|
1915
|
+
value: response.headers.get("opc-request-id"),
|
|
1916
|
+
key: "opcRequestId",
|
|
1917
|
+
dataType: "string"
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
value: response.headers.get("opc-next-page"),
|
|
1921
|
+
key: "opcNextPage",
|
|
1922
|
+
dataType: "string"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
value: response.headers.get("opc-prev-page"),
|
|
1926
|
+
key: "opcPrevPage",
|
|
1927
|
+
dataType: "string"
|
|
1928
|
+
}
|
|
1929
|
+
]
|
|
1930
|
+
});
|
|
1931
|
+
return sdkResponse;
|
|
1932
|
+
}
|
|
1933
|
+
catch (err) {
|
|
1934
|
+
throw err;
|
|
1935
|
+
}
|
|
1936
|
+
});
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
exports.ShapeClient = ShapeClient;
|
|
1940
|
+
ShapeClient.serviceEndpointTemplate = "https://rover.{region}.oci.{secondLevelDomain}";
|
|
1941
|
+
ShapeClient.endpointServiceName = "";
|
|
1771
1942
|
//# sourceMappingURL=client.js.map
|