oci-apigateway 2.5.2 → 2.8.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 +88 -38
- package/lib/client.js +192 -76
- 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
|
@@ -57,6 +57,9 @@ const oci_common_1 = require("oci-common");
|
|
|
57
57
|
var ApiGatewayApiKeys;
|
|
58
58
|
(function (ApiGatewayApiKeys) {
|
|
59
59
|
})(ApiGatewayApiKeys = exports.ApiGatewayApiKeys || (exports.ApiGatewayApiKeys = {}));
|
|
60
|
+
/**
|
|
61
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
62
|
+
*/
|
|
60
63
|
class ApiGatewayClient {
|
|
61
64
|
constructor(params, clientConfiguration) {
|
|
62
65
|
this["_endpoint"] = "";
|
|
@@ -71,6 +74,13 @@ class ApiGatewayClient {
|
|
|
71
74
|
? clientConfiguration.circuitBreaker.circuit
|
|
72
75
|
: null;
|
|
73
76
|
}
|
|
77
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
78
|
+
const specCircuitBreakerEnabled = true;
|
|
79
|
+
if (!this._circuitBreaker &&
|
|
80
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
81
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
82
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
83
|
+
}
|
|
74
84
|
this._httpClient =
|
|
75
85
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
76
86
|
if (params.authenticationDetailsProvider &&
|
|
@@ -142,10 +152,11 @@ class ApiGatewayClient {
|
|
|
142
152
|
}
|
|
143
153
|
/**
|
|
144
154
|
* Changes the API compartment.
|
|
155
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
145
156
|
* @param ChangeApiCompartmentRequest
|
|
146
157
|
* @return ChangeApiCompartmentResponse
|
|
147
158
|
* @throws OciError when an error occurs
|
|
148
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
159
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ChangeApiCompartment.ts.html |here} to see how to use ChangeApiCompartment API.
|
|
149
160
|
*/
|
|
150
161
|
changeApiCompartment(changeApiCompartmentRequest) {
|
|
151
162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -161,7 +172,8 @@ class ApiGatewayClient {
|
|
|
161
172
|
"if-match": changeApiCompartmentRequest.ifMatch,
|
|
162
173
|
"opc-request-id": changeApiCompartmentRequest.opcRequestId
|
|
163
174
|
};
|
|
164
|
-
const
|
|
175
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
176
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeApiCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
165
177
|
if (this.logger)
|
|
166
178
|
retrier.logger = this.logger;
|
|
167
179
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -200,10 +212,11 @@ class ApiGatewayClient {
|
|
|
200
212
|
}
|
|
201
213
|
/**
|
|
202
214
|
* Changes the certificate compartment.
|
|
215
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
203
216
|
* @param ChangeCertificateCompartmentRequest
|
|
204
217
|
* @return ChangeCertificateCompartmentResponse
|
|
205
218
|
* @throws OciError when an error occurs
|
|
206
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
219
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ChangeCertificateCompartment.ts.html |here} to see how to use ChangeCertificateCompartment API.
|
|
207
220
|
*/
|
|
208
221
|
changeCertificateCompartment(changeCertificateCompartmentRequest) {
|
|
209
222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -219,7 +232,8 @@ class ApiGatewayClient {
|
|
|
219
232
|
"if-match": changeCertificateCompartmentRequest.ifMatch,
|
|
220
233
|
"opc-request-id": changeCertificateCompartmentRequest.opcRequestId
|
|
221
234
|
};
|
|
222
|
-
const
|
|
235
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
236
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeCertificateCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
223
237
|
if (this.logger)
|
|
224
238
|
retrier.logger = this.logger;
|
|
225
239
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -254,10 +268,11 @@ class ApiGatewayClient {
|
|
|
254
268
|
/**
|
|
255
269
|
* Creates a new API.
|
|
256
270
|
*
|
|
271
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
257
272
|
* @param CreateApiRequest
|
|
258
273
|
* @return CreateApiResponse
|
|
259
274
|
* @throws OciError when an error occurs
|
|
260
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
275
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/CreateApi.ts.html |here} to see how to use CreateApi API.
|
|
261
276
|
*/
|
|
262
277
|
createApi(createApiRequest) {
|
|
263
278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -270,7 +285,8 @@ class ApiGatewayClient {
|
|
|
270
285
|
"opc-retry-token": createApiRequest.opcRetryToken,
|
|
271
286
|
"opc-request-id": createApiRequest.opcRequestId
|
|
272
287
|
};
|
|
273
|
-
const
|
|
288
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
289
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createApiRequest.retryConfiguration, specRetryConfiguration);
|
|
274
290
|
if (this.logger)
|
|
275
291
|
retrier.logger = this.logger;
|
|
276
292
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -324,10 +340,11 @@ class ApiGatewayClient {
|
|
|
324
340
|
/**
|
|
325
341
|
* Creates a new Certificate.
|
|
326
342
|
*
|
|
343
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
327
344
|
* @param CreateCertificateRequest
|
|
328
345
|
* @return CreateCertificateResponse
|
|
329
346
|
* @throws OciError when an error occurs
|
|
330
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
347
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/CreateCertificate.ts.html |here} to see how to use CreateCertificate API.
|
|
331
348
|
*/
|
|
332
349
|
createCertificate(createCertificateRequest) {
|
|
333
350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -340,7 +357,8 @@ class ApiGatewayClient {
|
|
|
340
357
|
"opc-retry-token": createCertificateRequest.opcRetryToken,
|
|
341
358
|
"opc-request-id": createCertificateRequest.opcRequestId
|
|
342
359
|
};
|
|
343
|
-
const
|
|
360
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
361
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
344
362
|
if (this.logger)
|
|
345
363
|
retrier.logger = this.logger;
|
|
346
364
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -393,10 +411,11 @@ class ApiGatewayClient {
|
|
|
393
411
|
}
|
|
394
412
|
/**
|
|
395
413
|
* Creates a new SDK.
|
|
414
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
396
415
|
* @param CreateSdkRequest
|
|
397
416
|
* @return CreateSdkResponse
|
|
398
417
|
* @throws OciError when an error occurs
|
|
399
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
418
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/CreateSdk.ts.html |here} to see how to use CreateSdk API.
|
|
400
419
|
*/
|
|
401
420
|
createSdk(createSdkRequest) {
|
|
402
421
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -409,7 +428,8 @@ class ApiGatewayClient {
|
|
|
409
428
|
"opc-retry-token": createSdkRequest.opcRetryToken,
|
|
410
429
|
"opc-request-id": createSdkRequest.opcRequestId
|
|
411
430
|
};
|
|
412
|
-
const
|
|
431
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
432
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSdkRequest.retryConfiguration, specRetryConfiguration);
|
|
413
433
|
if (this.logger)
|
|
414
434
|
retrier.logger = this.logger;
|
|
415
435
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -462,10 +482,11 @@ class ApiGatewayClient {
|
|
|
462
482
|
}
|
|
463
483
|
/**
|
|
464
484
|
* Deletes the API with the given identifier.
|
|
485
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
465
486
|
* @param DeleteApiRequest
|
|
466
487
|
* @return DeleteApiResponse
|
|
467
488
|
* @throws OciError when an error occurs
|
|
468
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
489
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/DeleteApi.ts.html |here} to see how to use DeleteApi API.
|
|
469
490
|
*/
|
|
470
491
|
deleteApi(deleteApiRequest) {
|
|
471
492
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -480,7 +501,8 @@ class ApiGatewayClient {
|
|
|
480
501
|
"if-match": deleteApiRequest.ifMatch,
|
|
481
502
|
"opc-request-id": deleteApiRequest.opcRequestId
|
|
482
503
|
};
|
|
483
|
-
const
|
|
504
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
505
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteApiRequest.retryConfiguration, specRetryConfiguration);
|
|
484
506
|
if (this.logger)
|
|
485
507
|
retrier.logger = this.logger;
|
|
486
508
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -518,10 +540,11 @@ class ApiGatewayClient {
|
|
|
518
540
|
}
|
|
519
541
|
/**
|
|
520
542
|
* Deletes the certificate with the given identifier.
|
|
543
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
521
544
|
* @param DeleteCertificateRequest
|
|
522
545
|
* @return DeleteCertificateResponse
|
|
523
546
|
* @throws OciError when an error occurs
|
|
524
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
547
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API.
|
|
525
548
|
*/
|
|
526
549
|
deleteCertificate(deleteCertificateRequest) {
|
|
527
550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -536,7 +559,8 @@ class ApiGatewayClient {
|
|
|
536
559
|
"if-match": deleteCertificateRequest.ifMatch,
|
|
537
560
|
"opc-request-id": deleteCertificateRequest.opcRequestId
|
|
538
561
|
};
|
|
539
|
-
const
|
|
562
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
563
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
540
564
|
if (this.logger)
|
|
541
565
|
retrier.logger = this.logger;
|
|
542
566
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -574,10 +598,11 @@ class ApiGatewayClient {
|
|
|
574
598
|
}
|
|
575
599
|
/**
|
|
576
600
|
* Deletes provided SDK.
|
|
601
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
577
602
|
* @param DeleteSdkRequest
|
|
578
603
|
* @return DeleteSdkResponse
|
|
579
604
|
* @throws OciError when an error occurs
|
|
580
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
605
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/DeleteSdk.ts.html |here} to see how to use DeleteSdk API.
|
|
581
606
|
*/
|
|
582
607
|
deleteSdk(deleteSdkRequest) {
|
|
583
608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -592,7 +617,8 @@ class ApiGatewayClient {
|
|
|
592
617
|
"opc-request-id": deleteSdkRequest.opcRequestId,
|
|
593
618
|
"if-match": deleteSdkRequest.ifMatch
|
|
594
619
|
};
|
|
595
|
-
const
|
|
620
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
621
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSdkRequest.retryConfiguration, specRetryConfiguration);
|
|
596
622
|
if (this.logger)
|
|
597
623
|
retrier.logger = this.logger;
|
|
598
624
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -630,10 +656,11 @@ class ApiGatewayClient {
|
|
|
630
656
|
}
|
|
631
657
|
/**
|
|
632
658
|
* Gets an API by identifier.
|
|
659
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
633
660
|
* @param GetApiRequest
|
|
634
661
|
* @return GetApiResponse
|
|
635
662
|
* @throws OciError when an error occurs
|
|
636
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
663
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetApi.ts.html |here} to see how to use GetApi API.
|
|
637
664
|
*/
|
|
638
665
|
getApi(getApiRequest) {
|
|
639
666
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -647,7 +674,8 @@ class ApiGatewayClient {
|
|
|
647
674
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
648
675
|
"opc-request-id": getApiRequest.opcRequestId
|
|
649
676
|
};
|
|
650
|
-
const
|
|
677
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
678
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiRequest.retryConfiguration, specRetryConfiguration);
|
|
651
679
|
if (this.logger)
|
|
652
680
|
retrier.logger = this.logger;
|
|
653
681
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -689,10 +717,11 @@ class ApiGatewayClient {
|
|
|
689
717
|
}
|
|
690
718
|
/**
|
|
691
719
|
* Get the raw API content.
|
|
720
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
692
721
|
* @param GetApiContentRequest
|
|
693
722
|
* @return GetApiContentResponse
|
|
694
723
|
* @throws OciError when an error occurs
|
|
695
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
724
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetApiContent.ts.html |here} to see how to use GetApiContent API.
|
|
696
725
|
*/
|
|
697
726
|
getApiContent(getApiContentRequest) {
|
|
698
727
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -708,7 +737,8 @@ class ApiGatewayClient {
|
|
|
708
737
|
"if-match": getApiContentRequest.ifMatch,
|
|
709
738
|
"range": getApiContentRequest.range
|
|
710
739
|
};
|
|
711
|
-
const
|
|
740
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
741
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiContentRequest.retryConfiguration, specRetryConfiguration);
|
|
712
742
|
if (this.logger)
|
|
713
743
|
retrier.logger = this.logger;
|
|
714
744
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -754,10 +784,11 @@ class ApiGatewayClient {
|
|
|
754
784
|
}
|
|
755
785
|
/**
|
|
756
786
|
* Gets an API Deployment specification by identifier.
|
|
787
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
757
788
|
* @param GetApiDeploymentSpecificationRequest
|
|
758
789
|
* @return GetApiDeploymentSpecificationResponse
|
|
759
790
|
* @throws OciError when an error occurs
|
|
760
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
791
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetApiDeploymentSpecification.ts.html |here} to see how to use GetApiDeploymentSpecification API.
|
|
761
792
|
*/
|
|
762
793
|
getApiDeploymentSpecification(getApiDeploymentSpecificationRequest) {
|
|
763
794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -772,7 +803,8 @@ class ApiGatewayClient {
|
|
|
772
803
|
"opc-request-id": getApiDeploymentSpecificationRequest.opcRequestId,
|
|
773
804
|
"if-match": getApiDeploymentSpecificationRequest.ifMatch
|
|
774
805
|
};
|
|
775
|
-
const
|
|
806
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
807
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiDeploymentSpecificationRequest.retryConfiguration, specRetryConfiguration);
|
|
776
808
|
if (this.logger)
|
|
777
809
|
retrier.logger = this.logger;
|
|
778
810
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -814,10 +846,11 @@ class ApiGatewayClient {
|
|
|
814
846
|
}
|
|
815
847
|
/**
|
|
816
848
|
* Gets the API validation results.
|
|
849
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
817
850
|
* @param GetApiValidationsRequest
|
|
818
851
|
* @return GetApiValidationsResponse
|
|
819
852
|
* @throws OciError when an error occurs
|
|
820
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
853
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetApiValidations.ts.html |here} to see how to use GetApiValidations API.
|
|
821
854
|
*/
|
|
822
855
|
getApiValidations(getApiValidationsRequest) {
|
|
823
856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -832,7 +865,8 @@ class ApiGatewayClient {
|
|
|
832
865
|
"opc-request-id": getApiValidationsRequest.opcRequestId,
|
|
833
866
|
"if-match": getApiValidationsRequest.ifMatch
|
|
834
867
|
};
|
|
835
|
-
const
|
|
868
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
869
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApiValidationsRequest.retryConfiguration, specRetryConfiguration);
|
|
836
870
|
if (this.logger)
|
|
837
871
|
retrier.logger = this.logger;
|
|
838
872
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -874,10 +908,11 @@ class ApiGatewayClient {
|
|
|
874
908
|
}
|
|
875
909
|
/**
|
|
876
910
|
* Gets a certificate by identifier.
|
|
911
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
877
912
|
* @param GetCertificateRequest
|
|
878
913
|
* @return GetCertificateResponse
|
|
879
914
|
* @throws OciError when an error occurs
|
|
880
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
915
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetCertificate.ts.html |here} to see how to use GetCertificate API.
|
|
881
916
|
*/
|
|
882
917
|
getCertificate(getCertificateRequest) {
|
|
883
918
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -891,7 +926,8 @@ class ApiGatewayClient {
|
|
|
891
926
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
892
927
|
"opc-request-id": getCertificateRequest.opcRequestId
|
|
893
928
|
};
|
|
894
|
-
const
|
|
929
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
930
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
895
931
|
if (this.logger)
|
|
896
932
|
retrier.logger = this.logger;
|
|
897
933
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -933,10 +969,11 @@ class ApiGatewayClient {
|
|
|
933
969
|
}
|
|
934
970
|
/**
|
|
935
971
|
* Return object store downloadable URL and metadata.
|
|
972
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
936
973
|
* @param GetSdkRequest
|
|
937
974
|
* @return GetSdkResponse
|
|
938
975
|
* @throws OciError when an error occurs
|
|
939
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
976
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetSdk.ts.html |here} to see how to use GetSdk API.
|
|
940
977
|
*/
|
|
941
978
|
getSdk(getSdkRequest) {
|
|
942
979
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -950,7 +987,8 @@ class ApiGatewayClient {
|
|
|
950
987
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
951
988
|
"opc-request-id": getSdkRequest.opcRequestId
|
|
952
989
|
};
|
|
953
|
-
const
|
|
990
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
991
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSdkRequest.retryConfiguration, specRetryConfiguration);
|
|
954
992
|
if (this.logger)
|
|
955
993
|
retrier.logger = this.logger;
|
|
956
994
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -993,10 +1031,11 @@ class ApiGatewayClient {
|
|
|
993
1031
|
/**
|
|
994
1032
|
* Returns a list of APIs.
|
|
995
1033
|
*
|
|
1034
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
996
1035
|
* @param ListApisRequest
|
|
997
1036
|
* @return ListApisResponse
|
|
998
1037
|
* @throws OciError when an error occurs
|
|
999
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1038
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListApis.ts.html |here} to see how to use ListApis API.
|
|
1000
1039
|
*/
|
|
1001
1040
|
listApis(listApisRequest) {
|
|
1002
1041
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1016,7 +1055,8 @@ class ApiGatewayClient {
|
|
|
1016
1055
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1017
1056
|
"opc-request-id": listApisRequest.opcRequestId
|
|
1018
1057
|
};
|
|
1019
|
-
const
|
|
1058
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1059
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listApisRequest.retryConfiguration, specRetryConfiguration);
|
|
1020
1060
|
if (this.logger)
|
|
1021
1061
|
retrier.logger = this.logger;
|
|
1022
1062
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1064,10 +1104,11 @@ class ApiGatewayClient {
|
|
|
1064
1104
|
/**
|
|
1065
1105
|
* Returns a list of certificates.
|
|
1066
1106
|
*
|
|
1107
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1067
1108
|
* @param ListCertificatesRequest
|
|
1068
1109
|
* @return ListCertificatesResponse
|
|
1069
1110
|
* @throws OciError when an error occurs
|
|
1070
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1111
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListCertificates.ts.html |here} to see how to use ListCertificates API.
|
|
1071
1112
|
*/
|
|
1072
1113
|
listCertificates(listCertificatesRequest) {
|
|
1073
1114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1087,7 +1128,8 @@ class ApiGatewayClient {
|
|
|
1087
1128
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1088
1129
|
"opc-request-id": listCertificatesRequest.opcRequestId
|
|
1089
1130
|
};
|
|
1090
|
-
const
|
|
1131
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1132
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCertificatesRequest.retryConfiguration, specRetryConfiguration);
|
|
1091
1133
|
if (this.logger)
|
|
1092
1134
|
retrier.logger = this.logger;
|
|
1093
1135
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1134,10 +1176,11 @@ class ApiGatewayClient {
|
|
|
1134
1176
|
}
|
|
1135
1177
|
/**
|
|
1136
1178
|
* Lists programming languages in which SDK can be generated.
|
|
1179
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1137
1180
|
* @param ListSdkLanguageTypesRequest
|
|
1138
1181
|
* @return ListSdkLanguageTypesResponse
|
|
1139
1182
|
* @throws OciError when an error occurs
|
|
1140
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1183
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListSdkLanguageTypes.ts.html |here} to see how to use ListSdkLanguageTypes API.
|
|
1141
1184
|
*/
|
|
1142
1185
|
listSdkLanguageTypes(listSdkLanguageTypesRequest) {
|
|
1143
1186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1156,7 +1199,8 @@ class ApiGatewayClient {
|
|
|
1156
1199
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1157
1200
|
"opc-request-id": listSdkLanguageTypesRequest.opcRequestId
|
|
1158
1201
|
};
|
|
1159
|
-
const
|
|
1202
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1203
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSdkLanguageTypesRequest.retryConfiguration, specRetryConfiguration);
|
|
1160
1204
|
if (this.logger)
|
|
1161
1205
|
retrier.logger = this.logger;
|
|
1162
1206
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1203,10 +1247,11 @@ class ApiGatewayClient {
|
|
|
1203
1247
|
}
|
|
1204
1248
|
/**
|
|
1205
1249
|
* Returns list of generated SDKs.
|
|
1250
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1206
1251
|
* @param ListSdksRequest
|
|
1207
1252
|
* @return ListSdksResponse
|
|
1208
1253
|
* @throws OciError when an error occurs
|
|
1209
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1254
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListSdks.ts.html |here} to see how to use ListSdks API.
|
|
1210
1255
|
*/
|
|
1211
1256
|
listSdks(listSdksRequest) {
|
|
1212
1257
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1227,7 +1272,8 @@ class ApiGatewayClient {
|
|
|
1227
1272
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1228
1273
|
"opc-request-id": listSdksRequest.opcRequestId
|
|
1229
1274
|
};
|
|
1230
|
-
const
|
|
1275
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1276
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSdksRequest.retryConfiguration, specRetryConfiguration);
|
|
1231
1277
|
if (this.logger)
|
|
1232
1278
|
retrier.logger = this.logger;
|
|
1233
1279
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1274,10 +1320,11 @@ class ApiGatewayClient {
|
|
|
1274
1320
|
}
|
|
1275
1321
|
/**
|
|
1276
1322
|
* Updates the API with the given identifier.
|
|
1323
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1277
1324
|
* @param UpdateApiRequest
|
|
1278
1325
|
* @return UpdateApiResponse
|
|
1279
1326
|
* @throws OciError when an error occurs
|
|
1280
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1327
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/UpdateApi.ts.html |here} to see how to use UpdateApi API.
|
|
1281
1328
|
*/
|
|
1282
1329
|
updateApi(updateApiRequest) {
|
|
1283
1330
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1292,7 +1339,8 @@ class ApiGatewayClient {
|
|
|
1292
1339
|
"if-match": updateApiRequest.ifMatch,
|
|
1293
1340
|
"opc-request-id": updateApiRequest.opcRequestId
|
|
1294
1341
|
};
|
|
1295
|
-
const
|
|
1342
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1343
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateApiRequest.retryConfiguration, specRetryConfiguration);
|
|
1296
1344
|
if (this.logger)
|
|
1297
1345
|
retrier.logger = this.logger;
|
|
1298
1346
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1331,10 +1379,11 @@ class ApiGatewayClient {
|
|
|
1331
1379
|
}
|
|
1332
1380
|
/**
|
|
1333
1381
|
* Updates a certificate with the given identifier
|
|
1382
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1334
1383
|
* @param UpdateCertificateRequest
|
|
1335
1384
|
* @return UpdateCertificateResponse
|
|
1336
1385
|
* @throws OciError when an error occurs
|
|
1337
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1386
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/UpdateCertificate.ts.html |here} to see how to use UpdateCertificate API.
|
|
1338
1387
|
*/
|
|
1339
1388
|
updateCertificate(updateCertificateRequest) {
|
|
1340
1389
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1349,7 +1398,8 @@ class ApiGatewayClient {
|
|
|
1349
1398
|
"if-match": updateCertificateRequest.ifMatch,
|
|
1350
1399
|
"opc-request-id": updateCertificateRequest.opcRequestId
|
|
1351
1400
|
};
|
|
1352
|
-
const
|
|
1401
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1402
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateCertificateRequest.retryConfiguration, specRetryConfiguration);
|
|
1353
1403
|
if (this.logger)
|
|
1354
1404
|
retrier.logger = this.logger;
|
|
1355
1405
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1388,10 +1438,11 @@ class ApiGatewayClient {
|
|
|
1388
1438
|
}
|
|
1389
1439
|
/**
|
|
1390
1440
|
* Updates the SDK with the given identifier.
|
|
1441
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1391
1442
|
* @param UpdateSdkRequest
|
|
1392
1443
|
* @return UpdateSdkResponse
|
|
1393
1444
|
* @throws OciError when an error occurs
|
|
1394
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1445
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/UpdateSdk.ts.html |here} to see how to use UpdateSdk API.
|
|
1395
1446
|
*/
|
|
1396
1447
|
updateSdk(updateSdkRequest) {
|
|
1397
1448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1406,7 +1457,8 @@ class ApiGatewayClient {
|
|
|
1406
1457
|
"if-match": updateSdkRequest.ifMatch,
|
|
1407
1458
|
"opc-request-id": updateSdkRequest.opcRequestId
|
|
1408
1459
|
};
|
|
1409
|
-
const
|
|
1460
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1461
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSdkRequest.retryConfiguration, specRetryConfiguration);
|
|
1410
1462
|
if (this.logger)
|
|
1411
1463
|
retrier.logger = this.logger;
|
|
1412
1464
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1444,6 +1496,9 @@ ApiGatewayClient.serviceEndpointTemplate = "https://apigateway.{region}.oci.{sec
|
|
|
1444
1496
|
var DeploymentApiKeys;
|
|
1445
1497
|
(function (DeploymentApiKeys) {
|
|
1446
1498
|
})(DeploymentApiKeys = exports.DeploymentApiKeys || (exports.DeploymentApiKeys = {}));
|
|
1499
|
+
/**
|
|
1500
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1501
|
+
*/
|
|
1447
1502
|
class DeploymentClient {
|
|
1448
1503
|
constructor(params, clientConfiguration) {
|
|
1449
1504
|
this["_endpoint"] = "";
|
|
@@ -1458,6 +1513,13 @@ class DeploymentClient {
|
|
|
1458
1513
|
? clientConfiguration.circuitBreaker.circuit
|
|
1459
1514
|
: null;
|
|
1460
1515
|
}
|
|
1516
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1517
|
+
const specCircuitBreakerEnabled = true;
|
|
1518
|
+
if (!this._circuitBreaker &&
|
|
1519
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1520
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1521
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1522
|
+
}
|
|
1461
1523
|
this._httpClient =
|
|
1462
1524
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
1463
1525
|
if (params.authenticationDetailsProvider &&
|
|
@@ -1529,10 +1591,11 @@ class DeploymentClient {
|
|
|
1529
1591
|
}
|
|
1530
1592
|
/**
|
|
1531
1593
|
* Changes the deployment compartment.
|
|
1594
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1532
1595
|
* @param ChangeDeploymentCompartmentRequest
|
|
1533
1596
|
* @return ChangeDeploymentCompartmentResponse
|
|
1534
1597
|
* @throws OciError when an error occurs
|
|
1535
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1598
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ChangeDeploymentCompartment.ts.html |here} to see how to use ChangeDeploymentCompartment API.
|
|
1536
1599
|
*/
|
|
1537
1600
|
changeDeploymentCompartment(changeDeploymentCompartmentRequest) {
|
|
1538
1601
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1548,7 +1611,8 @@ class DeploymentClient {
|
|
|
1548
1611
|
"if-match": changeDeploymentCompartmentRequest.ifMatch,
|
|
1549
1612
|
"opc-request-id": changeDeploymentCompartmentRequest.opcRequestId
|
|
1550
1613
|
};
|
|
1551
|
-
const
|
|
1614
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1615
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeDeploymentCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1552
1616
|
if (this.logger)
|
|
1553
1617
|
retrier.logger = this.logger;
|
|
1554
1618
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1588,10 +1652,11 @@ class DeploymentClient {
|
|
|
1588
1652
|
/**
|
|
1589
1653
|
* Creates a new deployment.
|
|
1590
1654
|
*
|
|
1655
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1591
1656
|
* @param CreateDeploymentRequest
|
|
1592
1657
|
* @return CreateDeploymentResponse
|
|
1593
1658
|
* @throws OciError when an error occurs
|
|
1594
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1659
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/CreateDeployment.ts.html |here} to see how to use CreateDeployment API.
|
|
1595
1660
|
*/
|
|
1596
1661
|
createDeployment(createDeploymentRequest) {
|
|
1597
1662
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1604,7 +1669,8 @@ class DeploymentClient {
|
|
|
1604
1669
|
"opc-retry-token": createDeploymentRequest.opcRetryToken,
|
|
1605
1670
|
"opc-request-id": createDeploymentRequest.opcRequestId
|
|
1606
1671
|
};
|
|
1607
|
-
const
|
|
1672
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1673
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDeploymentRequest.retryConfiguration, specRetryConfiguration);
|
|
1608
1674
|
if (this.logger)
|
|
1609
1675
|
retrier.logger = this.logger;
|
|
1610
1676
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1657,10 +1723,11 @@ class DeploymentClient {
|
|
|
1657
1723
|
}
|
|
1658
1724
|
/**
|
|
1659
1725
|
* Deletes the deployment with the given identifier.
|
|
1726
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1660
1727
|
* @param DeleteDeploymentRequest
|
|
1661
1728
|
* @return DeleteDeploymentResponse
|
|
1662
1729
|
* @throws OciError when an error occurs
|
|
1663
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1730
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/DeleteDeployment.ts.html |here} to see how to use DeleteDeployment API.
|
|
1664
1731
|
*/
|
|
1665
1732
|
deleteDeployment(deleteDeploymentRequest) {
|
|
1666
1733
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1675,7 +1742,8 @@ class DeploymentClient {
|
|
|
1675
1742
|
"if-match": deleteDeploymentRequest.ifMatch,
|
|
1676
1743
|
"opc-request-id": deleteDeploymentRequest.opcRequestId
|
|
1677
1744
|
};
|
|
1678
|
-
const
|
|
1745
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1746
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDeploymentRequest.retryConfiguration, specRetryConfiguration);
|
|
1679
1747
|
if (this.logger)
|
|
1680
1748
|
retrier.logger = this.logger;
|
|
1681
1749
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1713,10 +1781,11 @@ class DeploymentClient {
|
|
|
1713
1781
|
}
|
|
1714
1782
|
/**
|
|
1715
1783
|
* Gets a deployment by identifier.
|
|
1784
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1716
1785
|
* @param GetDeploymentRequest
|
|
1717
1786
|
* @return GetDeploymentResponse
|
|
1718
1787
|
* @throws OciError when an error occurs
|
|
1719
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1788
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetDeployment.ts.html |here} to see how to use GetDeployment API.
|
|
1720
1789
|
*/
|
|
1721
1790
|
getDeployment(getDeploymentRequest) {
|
|
1722
1791
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1730,7 +1799,8 @@ class DeploymentClient {
|
|
|
1730
1799
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1731
1800
|
"opc-request-id": getDeploymentRequest.opcRequestId
|
|
1732
1801
|
};
|
|
1733
|
-
const
|
|
1802
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1803
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDeploymentRequest.retryConfiguration, specRetryConfiguration);
|
|
1734
1804
|
if (this.logger)
|
|
1735
1805
|
retrier.logger = this.logger;
|
|
1736
1806
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1773,10 +1843,11 @@ class DeploymentClient {
|
|
|
1773
1843
|
/**
|
|
1774
1844
|
* Returns a list of deployments.
|
|
1775
1845
|
*
|
|
1846
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1776
1847
|
* @param ListDeploymentsRequest
|
|
1777
1848
|
* @return ListDeploymentsResponse
|
|
1778
1849
|
* @throws OciError when an error occurs
|
|
1779
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1850
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListDeployments.ts.html |here} to see how to use ListDeployments API.
|
|
1780
1851
|
*/
|
|
1781
1852
|
listDeployments(listDeploymentsRequest) {
|
|
1782
1853
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1797,7 +1868,8 @@ class DeploymentClient {
|
|
|
1797
1868
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1798
1869
|
"opc-request-id": listDeploymentsRequest.opcRequestId
|
|
1799
1870
|
};
|
|
1800
|
-
const
|
|
1871
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1872
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDeploymentsRequest.retryConfiguration, specRetryConfiguration);
|
|
1801
1873
|
if (this.logger)
|
|
1802
1874
|
retrier.logger = this.logger;
|
|
1803
1875
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1844,10 +1916,11 @@ class DeploymentClient {
|
|
|
1844
1916
|
}
|
|
1845
1917
|
/**
|
|
1846
1918
|
* Updates the deployment with the given identifier.
|
|
1919
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1847
1920
|
* @param UpdateDeploymentRequest
|
|
1848
1921
|
* @return UpdateDeploymentResponse
|
|
1849
1922
|
* @throws OciError when an error occurs
|
|
1850
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1923
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/UpdateDeployment.ts.html |here} to see how to use UpdateDeployment API.
|
|
1851
1924
|
*/
|
|
1852
1925
|
updateDeployment(updateDeploymentRequest) {
|
|
1853
1926
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1862,7 +1935,8 @@ class DeploymentClient {
|
|
|
1862
1935
|
"if-match": updateDeploymentRequest.ifMatch,
|
|
1863
1936
|
"opc-request-id": updateDeploymentRequest.opcRequestId
|
|
1864
1937
|
};
|
|
1865
|
-
const
|
|
1938
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1939
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDeploymentRequest.retryConfiguration, specRetryConfiguration);
|
|
1866
1940
|
if (this.logger)
|
|
1867
1941
|
retrier.logger = this.logger;
|
|
1868
1942
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1905,6 +1979,9 @@ DeploymentClient.serviceEndpointTemplate = "https://apigateway.{region}.oci.{sec
|
|
|
1905
1979
|
var GatewayApiKeys;
|
|
1906
1980
|
(function (GatewayApiKeys) {
|
|
1907
1981
|
})(GatewayApiKeys = exports.GatewayApiKeys || (exports.GatewayApiKeys = {}));
|
|
1982
|
+
/**
|
|
1983
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1984
|
+
*/
|
|
1908
1985
|
class GatewayClient {
|
|
1909
1986
|
constructor(params, clientConfiguration) {
|
|
1910
1987
|
this["_endpoint"] = "";
|
|
@@ -1919,6 +1996,13 @@ class GatewayClient {
|
|
|
1919
1996
|
? clientConfiguration.circuitBreaker.circuit
|
|
1920
1997
|
: null;
|
|
1921
1998
|
}
|
|
1999
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2000
|
+
const specCircuitBreakerEnabled = true;
|
|
2001
|
+
if (!this._circuitBreaker &&
|
|
2002
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2003
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2004
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2005
|
+
}
|
|
1922
2006
|
this._httpClient =
|
|
1923
2007
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
1924
2008
|
if (params.authenticationDetailsProvider &&
|
|
@@ -1990,10 +2074,11 @@ class GatewayClient {
|
|
|
1990
2074
|
}
|
|
1991
2075
|
/**
|
|
1992
2076
|
* Changes the gateway compartment.
|
|
2077
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1993
2078
|
* @param ChangeGatewayCompartmentRequest
|
|
1994
2079
|
* @return ChangeGatewayCompartmentResponse
|
|
1995
2080
|
* @throws OciError when an error occurs
|
|
1996
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2081
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ChangeGatewayCompartment.ts.html |here} to see how to use ChangeGatewayCompartment API.
|
|
1997
2082
|
*/
|
|
1998
2083
|
changeGatewayCompartment(changeGatewayCompartmentRequest) {
|
|
1999
2084
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2009,7 +2094,8 @@ class GatewayClient {
|
|
|
2009
2094
|
"if-match": changeGatewayCompartmentRequest.ifMatch,
|
|
2010
2095
|
"opc-request-id": changeGatewayCompartmentRequest.opcRequestId
|
|
2011
2096
|
};
|
|
2012
|
-
const
|
|
2097
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2098
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeGatewayCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
2013
2099
|
if (this.logger)
|
|
2014
2100
|
retrier.logger = this.logger;
|
|
2015
2101
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2049,10 +2135,11 @@ class GatewayClient {
|
|
|
2049
2135
|
/**
|
|
2050
2136
|
* Creates a new gateway.
|
|
2051
2137
|
*
|
|
2138
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2052
2139
|
* @param CreateGatewayRequest
|
|
2053
2140
|
* @return CreateGatewayResponse
|
|
2054
2141
|
* @throws OciError when an error occurs
|
|
2055
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2142
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/CreateGateway.ts.html |here} to see how to use CreateGateway API.
|
|
2056
2143
|
*/
|
|
2057
2144
|
createGateway(createGatewayRequest) {
|
|
2058
2145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2065,7 +2152,8 @@ class GatewayClient {
|
|
|
2065
2152
|
"opc-retry-token": createGatewayRequest.opcRetryToken,
|
|
2066
2153
|
"opc-request-id": createGatewayRequest.opcRequestId
|
|
2067
2154
|
};
|
|
2068
|
-
const
|
|
2155
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2156
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createGatewayRequest.retryConfiguration, specRetryConfiguration);
|
|
2069
2157
|
if (this.logger)
|
|
2070
2158
|
retrier.logger = this.logger;
|
|
2071
2159
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2118,10 +2206,11 @@ class GatewayClient {
|
|
|
2118
2206
|
}
|
|
2119
2207
|
/**
|
|
2120
2208
|
* Deletes the gateway with the given identifier.
|
|
2209
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2121
2210
|
* @param DeleteGatewayRequest
|
|
2122
2211
|
* @return DeleteGatewayResponse
|
|
2123
2212
|
* @throws OciError when an error occurs
|
|
2124
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2213
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/DeleteGateway.ts.html |here} to see how to use DeleteGateway API.
|
|
2125
2214
|
*/
|
|
2126
2215
|
deleteGateway(deleteGatewayRequest) {
|
|
2127
2216
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2136,7 +2225,8 @@ class GatewayClient {
|
|
|
2136
2225
|
"if-match": deleteGatewayRequest.ifMatch,
|
|
2137
2226
|
"opc-request-id": deleteGatewayRequest.opcRequestId
|
|
2138
2227
|
};
|
|
2139
|
-
const
|
|
2228
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2229
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteGatewayRequest.retryConfiguration, specRetryConfiguration);
|
|
2140
2230
|
if (this.logger)
|
|
2141
2231
|
retrier.logger = this.logger;
|
|
2142
2232
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2174,10 +2264,11 @@ class GatewayClient {
|
|
|
2174
2264
|
}
|
|
2175
2265
|
/**
|
|
2176
2266
|
* Gets a gateway by identifier.
|
|
2267
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2177
2268
|
* @param GetGatewayRequest
|
|
2178
2269
|
* @return GetGatewayResponse
|
|
2179
2270
|
* @throws OciError when an error occurs
|
|
2180
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2271
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetGateway.ts.html |here} to see how to use GetGateway API.
|
|
2181
2272
|
*/
|
|
2182
2273
|
getGateway(getGatewayRequest) {
|
|
2183
2274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2191,7 +2282,8 @@ class GatewayClient {
|
|
|
2191
2282
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2192
2283
|
"opc-request-id": getGatewayRequest.opcRequestId
|
|
2193
2284
|
};
|
|
2194
|
-
const
|
|
2285
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2286
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getGatewayRequest.retryConfiguration, specRetryConfiguration);
|
|
2195
2287
|
if (this.logger)
|
|
2196
2288
|
retrier.logger = this.logger;
|
|
2197
2289
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2234,10 +2326,11 @@ class GatewayClient {
|
|
|
2234
2326
|
/**
|
|
2235
2327
|
* Returns a list of gateways.
|
|
2236
2328
|
*
|
|
2329
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2237
2330
|
* @param ListGatewaysRequest
|
|
2238
2331
|
* @return ListGatewaysResponse
|
|
2239
2332
|
* @throws OciError when an error occurs
|
|
2240
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2333
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListGateways.ts.html |here} to see how to use ListGateways API.
|
|
2241
2334
|
*/
|
|
2242
2335
|
listGateways(listGatewaysRequest) {
|
|
2243
2336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2258,7 +2351,8 @@ class GatewayClient {
|
|
|
2258
2351
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2259
2352
|
"opc-request-id": listGatewaysRequest.opcRequestId
|
|
2260
2353
|
};
|
|
2261
|
-
const
|
|
2354
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2355
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listGatewaysRequest.retryConfiguration, specRetryConfiguration);
|
|
2262
2356
|
if (this.logger)
|
|
2263
2357
|
retrier.logger = this.logger;
|
|
2264
2358
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2305,10 +2399,11 @@ class GatewayClient {
|
|
|
2305
2399
|
}
|
|
2306
2400
|
/**
|
|
2307
2401
|
* Updates the gateway with the given identifier.
|
|
2402
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2308
2403
|
* @param UpdateGatewayRequest
|
|
2309
2404
|
* @return UpdateGatewayResponse
|
|
2310
2405
|
* @throws OciError when an error occurs
|
|
2311
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2406
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/UpdateGateway.ts.html |here} to see how to use UpdateGateway API.
|
|
2312
2407
|
*/
|
|
2313
2408
|
updateGateway(updateGatewayRequest) {
|
|
2314
2409
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2323,7 +2418,8 @@ class GatewayClient {
|
|
|
2323
2418
|
"if-match": updateGatewayRequest.ifMatch,
|
|
2324
2419
|
"opc-request-id": updateGatewayRequest.opcRequestId
|
|
2325
2420
|
};
|
|
2326
|
-
const
|
|
2421
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2422
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateGatewayRequest.retryConfiguration, specRetryConfiguration);
|
|
2327
2423
|
if (this.logger)
|
|
2328
2424
|
retrier.logger = this.logger;
|
|
2329
2425
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2366,6 +2462,9 @@ GatewayClient.serviceEndpointTemplate = "https://apigateway.{region}.oci.{second
|
|
|
2366
2462
|
var WorkRequestsApiKeys;
|
|
2367
2463
|
(function (WorkRequestsApiKeys) {
|
|
2368
2464
|
})(WorkRequestsApiKeys = exports.WorkRequestsApiKeys || (exports.WorkRequestsApiKeys = {}));
|
|
2465
|
+
/**
|
|
2466
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
2467
|
+
*/
|
|
2369
2468
|
class WorkRequestsClient {
|
|
2370
2469
|
constructor(params, clientConfiguration) {
|
|
2371
2470
|
this["_endpoint"] = "";
|
|
@@ -2380,6 +2479,13 @@ class WorkRequestsClient {
|
|
|
2380
2479
|
? clientConfiguration.circuitBreaker.circuit
|
|
2381
2480
|
: null;
|
|
2382
2481
|
}
|
|
2482
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
2483
|
+
const specCircuitBreakerEnabled = true;
|
|
2484
|
+
if (!this._circuitBreaker &&
|
|
2485
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
2486
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
2487
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
2488
|
+
}
|
|
2383
2489
|
this._httpClient =
|
|
2384
2490
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
2385
2491
|
if (params.authenticationDetailsProvider &&
|
|
@@ -2451,10 +2557,11 @@ class WorkRequestsClient {
|
|
|
2451
2557
|
}
|
|
2452
2558
|
/**
|
|
2453
2559
|
* Cancels the work request.
|
|
2560
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2454
2561
|
* @param CancelWorkRequestRequest
|
|
2455
2562
|
* @return CancelWorkRequestResponse
|
|
2456
2563
|
* @throws OciError when an error occurs
|
|
2457
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2564
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
2458
2565
|
*/
|
|
2459
2566
|
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
2460
2567
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2470,7 +2577,8 @@ class WorkRequestsClient {
|
|
|
2470
2577
|
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
2471
2578
|
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
2472
2579
|
};
|
|
2473
|
-
const
|
|
2580
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2581
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2474
2582
|
if (this.logger)
|
|
2475
2583
|
retrier.logger = this.logger;
|
|
2476
2584
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2503,10 +2611,11 @@ class WorkRequestsClient {
|
|
|
2503
2611
|
}
|
|
2504
2612
|
/**
|
|
2505
2613
|
* Gets the status of the work request with the given identifier.
|
|
2614
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2506
2615
|
* @param GetWorkRequestRequest
|
|
2507
2616
|
* @return GetWorkRequestResponse
|
|
2508
2617
|
* @throws OciError when an error occurs
|
|
2509
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2618
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
2510
2619
|
*/
|
|
2511
2620
|
getWorkRequest(getWorkRequestRequest) {
|
|
2512
2621
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2520,7 +2629,8 @@ class WorkRequestsClient {
|
|
|
2520
2629
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2521
2630
|
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
2522
2631
|
};
|
|
2523
|
-
const
|
|
2632
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2633
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2524
2634
|
if (this.logger)
|
|
2525
2635
|
retrier.logger = this.logger;
|
|
2526
2636
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2568,10 +2678,11 @@ class WorkRequestsClient {
|
|
|
2568
2678
|
/**
|
|
2569
2679
|
* Returns a (paginated) list of errors for a given work request.
|
|
2570
2680
|
*
|
|
2681
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2571
2682
|
* @param ListWorkRequestErrorsRequest
|
|
2572
2683
|
* @return ListWorkRequestErrorsResponse
|
|
2573
2684
|
* @throws OciError when an error occurs
|
|
2574
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2685
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2575
2686
|
*/
|
|
2576
2687
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2577
2688
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2590,7 +2701,8 @@ class WorkRequestsClient {
|
|
|
2590
2701
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2591
2702
|
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
2592
2703
|
};
|
|
2593
|
-
const
|
|
2704
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2705
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
2594
2706
|
if (this.logger)
|
|
2595
2707
|
retrier.logger = this.logger;
|
|
2596
2708
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2638,10 +2750,11 @@ class WorkRequestsClient {
|
|
|
2638
2750
|
/**
|
|
2639
2751
|
* Returns a (paginated) list of logs for a given work request.
|
|
2640
2752
|
*
|
|
2753
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2641
2754
|
* @param ListWorkRequestLogsRequest
|
|
2642
2755
|
* @return ListWorkRequestLogsResponse
|
|
2643
2756
|
* @throws OciError when an error occurs
|
|
2644
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2757
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2645
2758
|
*/
|
|
2646
2759
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2647
2760
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2660,7 +2773,8 @@ class WorkRequestsClient {
|
|
|
2660
2773
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2661
2774
|
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
2662
2775
|
};
|
|
2663
|
-
const
|
|
2776
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2777
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
2664
2778
|
if (this.logger)
|
|
2665
2779
|
retrier.logger = this.logger;
|
|
2666
2780
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -2708,10 +2822,11 @@ class WorkRequestsClient {
|
|
|
2708
2822
|
/**
|
|
2709
2823
|
* Lists the work requests in a compartment.
|
|
2710
2824
|
*
|
|
2825
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2711
2826
|
* @param ListWorkRequestsRequest
|
|
2712
2827
|
* @return ListWorkRequestsResponse
|
|
2713
2828
|
* @throws OciError when an error occurs
|
|
2714
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2829
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/apigateway/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2715
2830
|
*/
|
|
2716
2831
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2717
2832
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2730,7 +2845,8 @@ class WorkRequestsClient {
|
|
|
2730
2845
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2731
2846
|
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
2732
2847
|
};
|
|
2733
|
-
const
|
|
2848
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2849
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2734
2850
|
if (this.logger)
|
|
2735
2851
|
retrier.logger = this.logger;
|
|
2736
2852
|
const request = yield oci_common_1.composeRequest({
|