oci-apigateway 2.20.0 → 2.24.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/lib/client.d.ts +42 -38
- package/lib/client.js +62 -42
- package/lib/client.js.map +1 -1
- package/lib/request/cancel-work-request-request.d.ts +1 -1
- package/lib/request/change-api-compartment-request.d.ts +1 -1
- package/lib/request/change-certificate-compartment-request.d.ts +1 -1
- package/lib/request/change-deployment-compartment-request.d.ts +1 -1
- package/lib/request/change-gateway-compartment-request.d.ts +1 -1
- package/lib/request/create-api-request.d.ts +1 -1
- package/lib/request/create-certificate-request.d.ts +1 -1
- package/lib/request/create-deployment-request.d.ts +1 -1
- package/lib/request/create-gateway-request.d.ts +1 -1
- package/lib/request/create-sdk-request.d.ts +1 -1
- package/lib/request/delete-api-request.d.ts +1 -1
- package/lib/request/delete-certificate-request.d.ts +1 -1
- package/lib/request/delete-deployment-request.d.ts +1 -1
- package/lib/request/delete-gateway-request.d.ts +1 -1
- package/lib/request/delete-sdk-request.d.ts +1 -1
- package/lib/request/get-api-content-request.d.ts +1 -1
- package/lib/request/get-api-deployment-specification-request.d.ts +1 -1
- package/lib/request/get-api-request.d.ts +1 -1
- package/lib/request/get-api-validations-request.d.ts +1 -1
- package/lib/request/get-certificate-request.d.ts +1 -1
- package/lib/request/get-deployment-request.d.ts +1 -1
- package/lib/request/get-gateway-request.d.ts +1 -1
- package/lib/request/get-sdk-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/list-apis-request.d.ts +1 -1
- package/lib/request/list-certificates-request.d.ts +1 -1
- package/lib/request/list-deployments-request.d.ts +1 -1
- package/lib/request/list-gateways-request.d.ts +1 -1
- package/lib/request/list-sdk-language-types-request.d.ts +1 -1
- package/lib/request/list-sdks-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/update-api-request.d.ts +1 -1
- package/lib/request/update-certificate-request.d.ts +1 -1
- package/lib/request/update-deployment-request.d.ts +1 -1
- package/lib/request/update-gateway-request.d.ts +1 -1
- package/lib/request/update-sdk-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -65,6 +65,7 @@ class ApiGatewayClient {
|
|
|
65
65
|
this["_endpoint"] = "";
|
|
66
66
|
this["_defaultHeaders"] = {};
|
|
67
67
|
this._circuitBreaker = null;
|
|
68
|
+
this._httpOptions = undefined;
|
|
68
69
|
const requestSigner = params.authenticationDetailsProvider
|
|
69
70
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
70
71
|
: null;
|
|
@@ -73,6 +74,9 @@ class ApiGatewayClient {
|
|
|
73
74
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
74
75
|
? clientConfiguration.circuitBreaker.circuit
|
|
75
76
|
: null;
|
|
77
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
78
|
+
? clientConfiguration.httpOptions
|
|
79
|
+
: undefined;
|
|
76
80
|
}
|
|
77
81
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
78
82
|
const specCircuitBreakerEnabled = true;
|
|
@@ -82,7 +86,8 @@ class ApiGatewayClient {
|
|
|
82
86
|
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
83
87
|
}
|
|
84
88
|
this._httpClient =
|
|
85
|
-
params.httpClient ||
|
|
89
|
+
params.httpClient ||
|
|
90
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
86
91
|
if (params.authenticationDetailsProvider &&
|
|
87
92
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
88
93
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -156,7 +161,7 @@ class ApiGatewayClient {
|
|
|
156
161
|
* @param ChangeApiCompartmentRequest
|
|
157
162
|
* @return ChangeApiCompartmentResponse
|
|
158
163
|
* @throws OciError when an error occurs
|
|
159
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
164
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ChangeApiCompartment.ts.html |here} to see how to use ChangeApiCompartment API.
|
|
160
165
|
*/
|
|
161
166
|
changeApiCompartment(changeApiCompartmentRequest) {
|
|
162
167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -216,7 +221,7 @@ class ApiGatewayClient {
|
|
|
216
221
|
* @param ChangeCertificateCompartmentRequest
|
|
217
222
|
* @return ChangeCertificateCompartmentResponse
|
|
218
223
|
* @throws OciError when an error occurs
|
|
219
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
224
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ChangeCertificateCompartment.ts.html |here} to see how to use ChangeCertificateCompartment API.
|
|
220
225
|
*/
|
|
221
226
|
changeCertificateCompartment(changeCertificateCompartmentRequest) {
|
|
222
227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -272,7 +277,7 @@ class ApiGatewayClient {
|
|
|
272
277
|
* @param CreateApiRequest
|
|
273
278
|
* @return CreateApiResponse
|
|
274
279
|
* @throws OciError when an error occurs
|
|
275
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
280
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/CreateApi.ts.html |here} to see how to use CreateApi API.
|
|
276
281
|
*/
|
|
277
282
|
createApi(createApiRequest) {
|
|
278
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -344,7 +349,7 @@ class ApiGatewayClient {
|
|
|
344
349
|
* @param CreateCertificateRequest
|
|
345
350
|
* @return CreateCertificateResponse
|
|
346
351
|
* @throws OciError when an error occurs
|
|
347
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
352
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/CreateCertificate.ts.html |here} to see how to use CreateCertificate API.
|
|
348
353
|
*/
|
|
349
354
|
createCertificate(createCertificateRequest) {
|
|
350
355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -415,7 +420,7 @@ class ApiGatewayClient {
|
|
|
415
420
|
* @param CreateSdkRequest
|
|
416
421
|
* @return CreateSdkResponse
|
|
417
422
|
* @throws OciError when an error occurs
|
|
418
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
423
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/CreateSdk.ts.html |here} to see how to use CreateSdk API.
|
|
419
424
|
*/
|
|
420
425
|
createSdk(createSdkRequest) {
|
|
421
426
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -486,7 +491,7 @@ class ApiGatewayClient {
|
|
|
486
491
|
* @param DeleteApiRequest
|
|
487
492
|
* @return DeleteApiResponse
|
|
488
493
|
* @throws OciError when an error occurs
|
|
489
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
494
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/DeleteApi.ts.html |here} to see how to use DeleteApi API.
|
|
490
495
|
*/
|
|
491
496
|
deleteApi(deleteApiRequest) {
|
|
492
497
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -544,7 +549,7 @@ class ApiGatewayClient {
|
|
|
544
549
|
* @param DeleteCertificateRequest
|
|
545
550
|
* @return DeleteCertificateResponse
|
|
546
551
|
* @throws OciError when an error occurs
|
|
547
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
552
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API.
|
|
548
553
|
*/
|
|
549
554
|
deleteCertificate(deleteCertificateRequest) {
|
|
550
555
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -602,7 +607,7 @@ class ApiGatewayClient {
|
|
|
602
607
|
* @param DeleteSdkRequest
|
|
603
608
|
* @return DeleteSdkResponse
|
|
604
609
|
* @throws OciError when an error occurs
|
|
605
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
610
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/DeleteSdk.ts.html |here} to see how to use DeleteSdk API.
|
|
606
611
|
*/
|
|
607
612
|
deleteSdk(deleteSdkRequest) {
|
|
608
613
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -660,7 +665,7 @@ class ApiGatewayClient {
|
|
|
660
665
|
* @param GetApiRequest
|
|
661
666
|
* @return GetApiResponse
|
|
662
667
|
* @throws OciError when an error occurs
|
|
663
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
668
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetApi.ts.html |here} to see how to use GetApi API.
|
|
664
669
|
*/
|
|
665
670
|
getApi(getApiRequest) {
|
|
666
671
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -721,7 +726,7 @@ class ApiGatewayClient {
|
|
|
721
726
|
* @param GetApiContentRequest
|
|
722
727
|
* @return GetApiContentResponse
|
|
723
728
|
* @throws OciError when an error occurs
|
|
724
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
729
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetApiContent.ts.html |here} to see how to use GetApiContent API.
|
|
725
730
|
*/
|
|
726
731
|
getApiContent(getApiContentRequest) {
|
|
727
732
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -788,7 +793,7 @@ class ApiGatewayClient {
|
|
|
788
793
|
* @param GetApiDeploymentSpecificationRequest
|
|
789
794
|
* @return GetApiDeploymentSpecificationResponse
|
|
790
795
|
* @throws OciError when an error occurs
|
|
791
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
796
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetApiDeploymentSpecification.ts.html |here} to see how to use GetApiDeploymentSpecification API.
|
|
792
797
|
*/
|
|
793
798
|
getApiDeploymentSpecification(getApiDeploymentSpecificationRequest) {
|
|
794
799
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -850,7 +855,7 @@ class ApiGatewayClient {
|
|
|
850
855
|
* @param GetApiValidationsRequest
|
|
851
856
|
* @return GetApiValidationsResponse
|
|
852
857
|
* @throws OciError when an error occurs
|
|
853
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
858
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetApiValidations.ts.html |here} to see how to use GetApiValidations API.
|
|
854
859
|
*/
|
|
855
860
|
getApiValidations(getApiValidationsRequest) {
|
|
856
861
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -912,7 +917,7 @@ class ApiGatewayClient {
|
|
|
912
917
|
* @param GetCertificateRequest
|
|
913
918
|
* @return GetCertificateResponse
|
|
914
919
|
* @throws OciError when an error occurs
|
|
915
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
920
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetCertificate.ts.html |here} to see how to use GetCertificate API.
|
|
916
921
|
*/
|
|
917
922
|
getCertificate(getCertificateRequest) {
|
|
918
923
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -973,7 +978,7 @@ class ApiGatewayClient {
|
|
|
973
978
|
* @param GetSdkRequest
|
|
974
979
|
* @return GetSdkResponse
|
|
975
980
|
* @throws OciError when an error occurs
|
|
976
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
981
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetSdk.ts.html |here} to see how to use GetSdk API.
|
|
977
982
|
*/
|
|
978
983
|
getSdk(getSdkRequest) {
|
|
979
984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1035,7 +1040,7 @@ class ApiGatewayClient {
|
|
|
1035
1040
|
* @param ListApisRequest
|
|
1036
1041
|
* @return ListApisResponse
|
|
1037
1042
|
* @throws OciError when an error occurs
|
|
1038
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1043
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListApis.ts.html |here} to see how to use ListApis API.
|
|
1039
1044
|
*/
|
|
1040
1045
|
listApis(listApisRequest) {
|
|
1041
1046
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1108,7 +1113,7 @@ class ApiGatewayClient {
|
|
|
1108
1113
|
* @param ListCertificatesRequest
|
|
1109
1114
|
* @return ListCertificatesResponse
|
|
1110
1115
|
* @throws OciError when an error occurs
|
|
1111
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1116
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListCertificates.ts.html |here} to see how to use ListCertificates API.
|
|
1112
1117
|
*/
|
|
1113
1118
|
listCertificates(listCertificatesRequest) {
|
|
1114
1119
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1180,7 +1185,7 @@ class ApiGatewayClient {
|
|
|
1180
1185
|
* @param ListSdkLanguageTypesRequest
|
|
1181
1186
|
* @return ListSdkLanguageTypesResponse
|
|
1182
1187
|
* @throws OciError when an error occurs
|
|
1183
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1188
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListSdkLanguageTypes.ts.html |here} to see how to use ListSdkLanguageTypes API.
|
|
1184
1189
|
*/
|
|
1185
1190
|
listSdkLanguageTypes(listSdkLanguageTypesRequest) {
|
|
1186
1191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1251,7 +1256,7 @@ class ApiGatewayClient {
|
|
|
1251
1256
|
* @param ListSdksRequest
|
|
1252
1257
|
* @return ListSdksResponse
|
|
1253
1258
|
* @throws OciError when an error occurs
|
|
1254
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1259
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListSdks.ts.html |here} to see how to use ListSdks API.
|
|
1255
1260
|
*/
|
|
1256
1261
|
listSdks(listSdksRequest) {
|
|
1257
1262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1324,7 +1329,7 @@ class ApiGatewayClient {
|
|
|
1324
1329
|
* @param UpdateApiRequest
|
|
1325
1330
|
* @return UpdateApiResponse
|
|
1326
1331
|
* @throws OciError when an error occurs
|
|
1327
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1332
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
|
|
1328
1333
|
*/
|
|
1329
1334
|
updateApi(updateApiRequest) {
|
|
1330
1335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1383,7 +1388,7 @@ class ApiGatewayClient {
|
|
|
1383
1388
|
* @param UpdateCertificateRequest
|
|
1384
1389
|
* @return UpdateCertificateResponse
|
|
1385
1390
|
* @throws OciError when an error occurs
|
|
1386
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1391
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
|
|
1387
1392
|
*/
|
|
1388
1393
|
updateCertificate(updateCertificateRequest) {
|
|
1389
1394
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1442,7 +1447,7 @@ class ApiGatewayClient {
|
|
|
1442
1447
|
* @param UpdateSdkRequest
|
|
1443
1448
|
* @return UpdateSdkResponse
|
|
1444
1449
|
* @throws OciError when an error occurs
|
|
1445
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1450
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
|
|
1446
1451
|
*/
|
|
1447
1452
|
updateSdk(updateSdkRequest) {
|
|
1448
1453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1505,6 +1510,7 @@ class DeploymentClient {
|
|
|
1505
1510
|
this["_endpoint"] = "";
|
|
1506
1511
|
this["_defaultHeaders"] = {};
|
|
1507
1512
|
this._circuitBreaker = null;
|
|
1513
|
+
this._httpOptions = undefined;
|
|
1508
1514
|
const requestSigner = params.authenticationDetailsProvider
|
|
1509
1515
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1510
1516
|
: null;
|
|
@@ -1513,6 +1519,9 @@ class DeploymentClient {
|
|
|
1513
1519
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1514
1520
|
? clientConfiguration.circuitBreaker.circuit
|
|
1515
1521
|
: null;
|
|
1522
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
1523
|
+
? clientConfiguration.httpOptions
|
|
1524
|
+
: undefined;
|
|
1516
1525
|
}
|
|
1517
1526
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1518
1527
|
const specCircuitBreakerEnabled = true;
|
|
@@ -1522,7 +1531,8 @@ class DeploymentClient {
|
|
|
1522
1531
|
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1523
1532
|
}
|
|
1524
1533
|
this._httpClient =
|
|
1525
|
-
params.httpClient ||
|
|
1534
|
+
params.httpClient ||
|
|
1535
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
1526
1536
|
if (params.authenticationDetailsProvider &&
|
|
1527
1537
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
1528
1538
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -1596,7 +1606,7 @@ class DeploymentClient {
|
|
|
1596
1606
|
* @param ChangeDeploymentCompartmentRequest
|
|
1597
1607
|
* @return ChangeDeploymentCompartmentResponse
|
|
1598
1608
|
* @throws OciError when an error occurs
|
|
1599
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1609
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ChangeDeploymentCompartment.ts.html |here} to see how to use ChangeDeploymentCompartment API.
|
|
1600
1610
|
*/
|
|
1601
1611
|
changeDeploymentCompartment(changeDeploymentCompartmentRequest) {
|
|
1602
1612
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1657,7 +1667,7 @@ class DeploymentClient {
|
|
|
1657
1667
|
* @param CreateDeploymentRequest
|
|
1658
1668
|
* @return CreateDeploymentResponse
|
|
1659
1669
|
* @throws OciError when an error occurs
|
|
1660
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1670
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/CreateDeployment.ts.html |here} to see how to use CreateDeployment API.
|
|
1661
1671
|
*/
|
|
1662
1672
|
createDeployment(createDeploymentRequest) {
|
|
1663
1673
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1728,7 +1738,7 @@ class DeploymentClient {
|
|
|
1728
1738
|
* @param DeleteDeploymentRequest
|
|
1729
1739
|
* @return DeleteDeploymentResponse
|
|
1730
1740
|
* @throws OciError when an error occurs
|
|
1731
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1741
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/DeleteDeployment.ts.html |here} to see how to use DeleteDeployment API.
|
|
1732
1742
|
*/
|
|
1733
1743
|
deleteDeployment(deleteDeploymentRequest) {
|
|
1734
1744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1786,7 +1796,7 @@ class DeploymentClient {
|
|
|
1786
1796
|
* @param GetDeploymentRequest
|
|
1787
1797
|
* @return GetDeploymentResponse
|
|
1788
1798
|
* @throws OciError when an error occurs
|
|
1789
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1799
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetDeployment.ts.html |here} to see how to use GetDeployment API.
|
|
1790
1800
|
*/
|
|
1791
1801
|
getDeployment(getDeploymentRequest) {
|
|
1792
1802
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1848,7 +1858,7 @@ class DeploymentClient {
|
|
|
1848
1858
|
* @param ListDeploymentsRequest
|
|
1849
1859
|
* @return ListDeploymentsResponse
|
|
1850
1860
|
* @throws OciError when an error occurs
|
|
1851
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1861
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListDeployments.ts.html |here} to see how to use ListDeployments API.
|
|
1852
1862
|
*/
|
|
1853
1863
|
listDeployments(listDeploymentsRequest) {
|
|
1854
1864
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1921,7 +1931,7 @@ class DeploymentClient {
|
|
|
1921
1931
|
* @param UpdateDeploymentRequest
|
|
1922
1932
|
* @return UpdateDeploymentResponse
|
|
1923
1933
|
* @throws OciError when an error occurs
|
|
1924
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1934
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/UpdateDeployment.ts.html |here} to see how to use UpdateDeployment API.
|
|
1925
1935
|
*/
|
|
1926
1936
|
updateDeployment(updateDeploymentRequest) {
|
|
1927
1937
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1989,6 +1999,7 @@ class GatewayClient {
|
|
|
1989
1999
|
this["_endpoint"] = "";
|
|
1990
2000
|
this["_defaultHeaders"] = {};
|
|
1991
2001
|
this._circuitBreaker = null;
|
|
2002
|
+
this._httpOptions = undefined;
|
|
1992
2003
|
const requestSigner = params.authenticationDetailsProvider
|
|
1993
2004
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
1994
2005
|
: null;
|
|
@@ -1997,6 +2008,9 @@ class GatewayClient {
|
|
|
1997
2008
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
1998
2009
|
? clientConfiguration.circuitBreaker.circuit
|
|
1999
2010
|
: null;
|
|
2011
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
2012
|
+
? clientConfiguration.httpOptions
|
|
2013
|
+
: undefined;
|
|
2000
2014
|
}
|
|
2001
2015
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2002
2016
|
const specCircuitBreakerEnabled = true;
|
|
@@ -2006,7 +2020,8 @@ class GatewayClient {
|
|
|
2006
2020
|
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2007
2021
|
}
|
|
2008
2022
|
this._httpClient =
|
|
2009
|
-
params.httpClient ||
|
|
2023
|
+
params.httpClient ||
|
|
2024
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
2010
2025
|
if (params.authenticationDetailsProvider &&
|
|
2011
2026
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2012
2027
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -2080,7 +2095,7 @@ class GatewayClient {
|
|
|
2080
2095
|
* @param ChangeGatewayCompartmentRequest
|
|
2081
2096
|
* @return ChangeGatewayCompartmentResponse
|
|
2082
2097
|
* @throws OciError when an error occurs
|
|
2083
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2098
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ChangeGatewayCompartment.ts.html |here} to see how to use ChangeGatewayCompartment API.
|
|
2084
2099
|
*/
|
|
2085
2100
|
changeGatewayCompartment(changeGatewayCompartmentRequest) {
|
|
2086
2101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2141,7 +2156,7 @@ class GatewayClient {
|
|
|
2141
2156
|
* @param CreateGatewayRequest
|
|
2142
2157
|
* @return CreateGatewayResponse
|
|
2143
2158
|
* @throws OciError when an error occurs
|
|
2144
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2159
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/CreateGateway.ts.html |here} to see how to use CreateGateway API.
|
|
2145
2160
|
*/
|
|
2146
2161
|
createGateway(createGatewayRequest) {
|
|
2147
2162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2212,7 +2227,7 @@ class GatewayClient {
|
|
|
2212
2227
|
* @param DeleteGatewayRequest
|
|
2213
2228
|
* @return DeleteGatewayResponse
|
|
2214
2229
|
* @throws OciError when an error occurs
|
|
2215
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2230
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/DeleteGateway.ts.html |here} to see how to use DeleteGateway API.
|
|
2216
2231
|
*/
|
|
2217
2232
|
deleteGateway(deleteGatewayRequest) {
|
|
2218
2233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2270,7 +2285,7 @@ class GatewayClient {
|
|
|
2270
2285
|
* @param GetGatewayRequest
|
|
2271
2286
|
* @return GetGatewayResponse
|
|
2272
2287
|
* @throws OciError when an error occurs
|
|
2273
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2288
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetGateway.ts.html |here} to see how to use GetGateway API.
|
|
2274
2289
|
*/
|
|
2275
2290
|
getGateway(getGatewayRequest) {
|
|
2276
2291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2332,7 +2347,7 @@ class GatewayClient {
|
|
|
2332
2347
|
* @param ListGatewaysRequest
|
|
2333
2348
|
* @return ListGatewaysResponse
|
|
2334
2349
|
* @throws OciError when an error occurs
|
|
2335
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2350
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListGateways.ts.html |here} to see how to use ListGateways API.
|
|
2336
2351
|
*/
|
|
2337
2352
|
listGateways(listGatewaysRequest) {
|
|
2338
2353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2405,7 +2420,7 @@ class GatewayClient {
|
|
|
2405
2420
|
* @param UpdateGatewayRequest
|
|
2406
2421
|
* @return UpdateGatewayResponse
|
|
2407
2422
|
* @throws OciError when an error occurs
|
|
2408
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2423
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/UpdateGateway.ts.html |here} to see how to use UpdateGateway API.
|
|
2409
2424
|
*/
|
|
2410
2425
|
updateGateway(updateGatewayRequest) {
|
|
2411
2426
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2473,6 +2488,7 @@ class WorkRequestsClient {
|
|
|
2473
2488
|
this["_endpoint"] = "";
|
|
2474
2489
|
this["_defaultHeaders"] = {};
|
|
2475
2490
|
this._circuitBreaker = null;
|
|
2491
|
+
this._httpOptions = undefined;
|
|
2476
2492
|
const requestSigner = params.authenticationDetailsProvider
|
|
2477
2493
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
2478
2494
|
: null;
|
|
@@ -2481,6 +2497,9 @@ class WorkRequestsClient {
|
|
|
2481
2497
|
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
2482
2498
|
? clientConfiguration.circuitBreaker.circuit
|
|
2483
2499
|
: null;
|
|
2500
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
2501
|
+
? clientConfiguration.httpOptions
|
|
2502
|
+
: undefined;
|
|
2484
2503
|
}
|
|
2485
2504
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2486
2505
|
const specCircuitBreakerEnabled = true;
|
|
@@ -2490,7 +2509,8 @@ class WorkRequestsClient {
|
|
|
2490
2509
|
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2491
2510
|
}
|
|
2492
2511
|
this._httpClient =
|
|
2493
|
-
params.httpClient ||
|
|
2512
|
+
params.httpClient ||
|
|
2513
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
2494
2514
|
if (params.authenticationDetailsProvider &&
|
|
2495
2515
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
2496
2516
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -2564,7 +2584,7 @@ class WorkRequestsClient {
|
|
|
2564
2584
|
* @param CancelWorkRequestRequest
|
|
2565
2585
|
* @return CancelWorkRequestResponse
|
|
2566
2586
|
* @throws OciError when an error occurs
|
|
2567
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2587
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
2568
2588
|
*/
|
|
2569
2589
|
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
2570
2590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2618,7 +2638,7 @@ class WorkRequestsClient {
|
|
|
2618
2638
|
* @param GetWorkRequestRequest
|
|
2619
2639
|
* @return GetWorkRequestResponse
|
|
2620
2640
|
* @throws OciError when an error occurs
|
|
2621
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2641
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
2622
2642
|
*/
|
|
2623
2643
|
getWorkRequest(getWorkRequestRequest) {
|
|
2624
2644
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2685,7 +2705,7 @@ class WorkRequestsClient {
|
|
|
2685
2705
|
* @param ListWorkRequestErrorsRequest
|
|
2686
2706
|
* @return ListWorkRequestErrorsResponse
|
|
2687
2707
|
* @throws OciError when an error occurs
|
|
2688
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2708
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2689
2709
|
*/
|
|
2690
2710
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2691
2711
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2757,7 +2777,7 @@ class WorkRequestsClient {
|
|
|
2757
2777
|
* @param ListWorkRequestLogsRequest
|
|
2758
2778
|
* @return ListWorkRequestLogsResponse
|
|
2759
2779
|
* @throws OciError when an error occurs
|
|
2760
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2780
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2761
2781
|
*/
|
|
2762
2782
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2763
2783
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2829,7 +2849,7 @@ class WorkRequestsClient {
|
|
|
2829
2849
|
* @param ListWorkRequestsRequest
|
|
2830
2850
|
* @return ListWorkRequestsResponse
|
|
2831
2851
|
* @throws OciError when an error occurs
|
|
2832
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2852
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.24.0/apigateway/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2833
2853
|
*/
|
|
2834
2854
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2835
2855
|
return __awaiter(this, void 0, void 0, function* () {
|