oci-artifacts 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 +63 -30
- package/lib/client.js +130 -60
- package/lib/client.js.map +1 -1
- package/lib/request/change-container-repository-compartment-request.d.ts +1 -1
- package/lib/request/change-repository-compartment-request.d.ts +1 -1
- package/lib/request/create-container-image-signature-request.d.ts +1 -1
- package/lib/request/create-container-repository-request.d.ts +1 -1
- package/lib/request/create-repository-request.d.ts +1 -1
- package/lib/request/delete-container-image-request.d.ts +1 -1
- package/lib/request/delete-container-image-signature-request.d.ts +1 -1
- package/lib/request/delete-container-repository-request.d.ts +1 -1
- package/lib/request/delete-generic-artifact-by-path-request.d.ts +1 -1
- package/lib/request/delete-generic-artifact-request.d.ts +1 -1
- package/lib/request/delete-repository-request.d.ts +1 -1
- package/lib/request/get-container-configuration-request.d.ts +1 -1
- package/lib/request/get-container-image-request.d.ts +1 -1
- package/lib/request/get-container-image-signature-request.d.ts +1 -1
- package/lib/request/get-container-repository-request.d.ts +1 -1
- package/lib/request/get-generic-artifact-by-path-request.d.ts +1 -1
- package/lib/request/get-generic-artifact-request.d.ts +1 -1
- package/lib/request/get-repository-request.d.ts +1 -1
- package/lib/request/list-container-image-signatures-request.d.ts +1 -1
- package/lib/request/list-container-images-request.d.ts +1 -1
- package/lib/request/list-container-repositories-request.d.ts +1 -1
- package/lib/request/list-generic-artifacts-request.d.ts +1 -1
- package/lib/request/list-repositories-request.d.ts +1 -1
- package/lib/request/remove-container-version-request.d.ts +1 -1
- package/lib/request/restore-container-image-request.d.ts +1 -1
- package/lib/request/update-container-configuration-request.d.ts +1 -1
- package/lib/request/update-container-repository-request.d.ts +1 -1
- package/lib/request/update-generic-artifact-by-path-request.d.ts +1 -1
- package/lib/request/update-generic-artifact-request.d.ts +1 -1
- package/lib/request/update-repository-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -53,6 +53,9 @@ const oci_common_1 = require("oci-common");
|
|
|
53
53
|
var ArtifactsApiKeys;
|
|
54
54
|
(function (ArtifactsApiKeys) {
|
|
55
55
|
})(ArtifactsApiKeys = exports.ArtifactsApiKeys || (exports.ArtifactsApiKeys = {}));
|
|
56
|
+
/**
|
|
57
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
58
|
+
*/
|
|
56
59
|
class ArtifactsClient {
|
|
57
60
|
constructor(params, clientConfiguration) {
|
|
58
61
|
this["_endpoint"] = "";
|
|
@@ -67,6 +70,13 @@ class ArtifactsClient {
|
|
|
67
70
|
? clientConfiguration.circuitBreaker.circuit
|
|
68
71
|
: null;
|
|
69
72
|
}
|
|
73
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
74
|
+
const specCircuitBreakerEnabled = true;
|
|
75
|
+
if (!this._circuitBreaker &&
|
|
76
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
77
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
78
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
79
|
+
}
|
|
70
80
|
this._httpClient =
|
|
71
81
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
72
82
|
if (params.authenticationDetailsProvider &&
|
|
@@ -141,10 +151,11 @@ class ArtifactsClient {
|
|
|
141
151
|
* resources between compartments, see
|
|
142
152
|
* [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
143
153
|
*
|
|
154
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
144
155
|
* @param ChangeContainerRepositoryCompartmentRequest
|
|
145
156
|
* @return ChangeContainerRepositoryCompartmentResponse
|
|
146
157
|
* @throws OciError when an error occurs
|
|
147
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
158
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/ChangeContainerRepositoryCompartment.ts.html |here} to see how to use ChangeContainerRepositoryCompartment API.
|
|
148
159
|
*/
|
|
149
160
|
changeContainerRepositoryCompartment(changeContainerRepositoryCompartmentRequest) {
|
|
150
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -160,7 +171,8 @@ class ArtifactsClient {
|
|
|
160
171
|
"opc-request-id": changeContainerRepositoryCompartmentRequest.opcRequestId,
|
|
161
172
|
"opc-retry-token": changeContainerRepositoryCompartmentRequest.opcRetryToken
|
|
162
173
|
};
|
|
163
|
-
const
|
|
174
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
175
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeContainerRepositoryCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
164
176
|
if (this.logger)
|
|
165
177
|
retrier.logger = this.logger;
|
|
166
178
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -197,10 +209,11 @@ class ArtifactsClient {
|
|
|
197
209
|
* resources between compartments, see
|
|
198
210
|
* [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
199
211
|
*
|
|
212
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
200
213
|
* @param ChangeRepositoryCompartmentRequest
|
|
201
214
|
* @return ChangeRepositoryCompartmentResponse
|
|
202
215
|
* @throws OciError when an error occurs
|
|
203
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
216
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/ChangeRepositoryCompartment.ts.html |here} to see how to use ChangeRepositoryCompartment API.
|
|
204
217
|
*/
|
|
205
218
|
changeRepositoryCompartment(changeRepositoryCompartmentRequest) {
|
|
206
219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -216,7 +229,8 @@ class ArtifactsClient {
|
|
|
216
229
|
"opc-request-id": changeRepositoryCompartmentRequest.opcRequestId,
|
|
217
230
|
"opc-retry-token": changeRepositoryCompartmentRequest.opcRetryToken
|
|
218
231
|
};
|
|
219
|
-
const
|
|
232
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
233
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeRepositoryCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
220
234
|
if (this.logger)
|
|
221
235
|
retrier.logger = this.logger;
|
|
222
236
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -250,10 +264,11 @@ class ArtifactsClient {
|
|
|
250
264
|
}
|
|
251
265
|
/**
|
|
252
266
|
* Upload a signature to an image.
|
|
267
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
253
268
|
* @param CreateContainerImageSignatureRequest
|
|
254
269
|
* @return CreateContainerImageSignatureResponse
|
|
255
270
|
* @throws OciError when an error occurs
|
|
256
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
271
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/CreateContainerImageSignature.ts.html |here} to see how to use CreateContainerImageSignature API.
|
|
257
272
|
*/
|
|
258
273
|
createContainerImageSignature(createContainerImageSignatureRequest) {
|
|
259
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -267,7 +282,8 @@ class ArtifactsClient {
|
|
|
267
282
|
"opc-retry-token": createContainerImageSignatureRequest.opcRetryToken,
|
|
268
283
|
"if-match": createContainerImageSignatureRequest.ifMatch
|
|
269
284
|
};
|
|
270
|
-
const
|
|
285
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
286
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createContainerImageSignatureRequest.retryConfiguration, specRetryConfiguration);
|
|
271
287
|
if (this.logger)
|
|
272
288
|
retrier.logger = this.logger;
|
|
273
289
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -310,10 +326,11 @@ class ArtifactsClient {
|
|
|
310
326
|
}
|
|
311
327
|
/**
|
|
312
328
|
* Create a new empty container repository. Avoid entering confidential information.
|
|
329
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
313
330
|
* @param CreateContainerRepositoryRequest
|
|
314
331
|
* @return CreateContainerRepositoryResponse
|
|
315
332
|
* @throws OciError when an error occurs
|
|
316
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
333
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/CreateContainerRepository.ts.html |here} to see how to use CreateContainerRepository API.
|
|
317
334
|
*/
|
|
318
335
|
createContainerRepository(createContainerRepositoryRequest) {
|
|
319
336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -326,7 +343,8 @@ class ArtifactsClient {
|
|
|
326
343
|
"opc-request-id": createContainerRepositoryRequest.opcRequestId,
|
|
327
344
|
"opc-retry-token": createContainerRepositoryRequest.opcRetryToken
|
|
328
345
|
};
|
|
329
|
-
const
|
|
346
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
347
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createContainerRepositoryRequest.retryConfiguration, specRetryConfiguration);
|
|
330
348
|
if (this.logger)
|
|
331
349
|
retrier.logger = this.logger;
|
|
332
350
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -369,10 +387,11 @@ class ArtifactsClient {
|
|
|
369
387
|
}
|
|
370
388
|
/**
|
|
371
389
|
* Creates a new repository for storing artifacts.
|
|
390
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
372
391
|
* @param CreateRepositoryRequest
|
|
373
392
|
* @return CreateRepositoryResponse
|
|
374
393
|
* @throws OciError when an error occurs
|
|
375
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
394
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/CreateRepository.ts.html |here} to see how to use CreateRepository API.
|
|
376
395
|
*/
|
|
377
396
|
createRepository(createRepositoryRequest) {
|
|
378
397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -385,7 +404,8 @@ class ArtifactsClient {
|
|
|
385
404
|
"opc-request-id": createRepositoryRequest.opcRequestId,
|
|
386
405
|
"opc-retry-token": createRepositoryRequest.opcRetryToken
|
|
387
406
|
};
|
|
388
|
-
const
|
|
407
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
408
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRepositoryRequest.retryConfiguration, specRetryConfiguration);
|
|
389
409
|
if (this.logger)
|
|
390
410
|
retrier.logger = this.logger;
|
|
391
411
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -428,10 +448,11 @@ class ArtifactsClient {
|
|
|
428
448
|
}
|
|
429
449
|
/**
|
|
430
450
|
* Delete a container image.
|
|
451
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
431
452
|
* @param DeleteContainerImageRequest
|
|
432
453
|
* @return DeleteContainerImageResponse
|
|
433
454
|
* @throws OciError when an error occurs
|
|
434
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
455
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/DeleteContainerImage.ts.html |here} to see how to use DeleteContainerImage API.
|
|
435
456
|
*/
|
|
436
457
|
deleteContainerImage(deleteContainerImageRequest) {
|
|
437
458
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -446,7 +467,8 @@ class ArtifactsClient {
|
|
|
446
467
|
"if-match": deleteContainerImageRequest.ifMatch,
|
|
447
468
|
"opc-request-id": deleteContainerImageRequest.opcRequestId
|
|
448
469
|
};
|
|
449
|
-
const
|
|
470
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
471
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteContainerImageRequest.retryConfiguration, specRetryConfiguration);
|
|
450
472
|
if (this.logger)
|
|
451
473
|
retrier.logger = this.logger;
|
|
452
474
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -479,10 +501,11 @@ class ArtifactsClient {
|
|
|
479
501
|
}
|
|
480
502
|
/**
|
|
481
503
|
* Delete a container image signature.
|
|
504
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
482
505
|
* @param DeleteContainerImageSignatureRequest
|
|
483
506
|
* @return DeleteContainerImageSignatureResponse
|
|
484
507
|
* @throws OciError when an error occurs
|
|
485
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
508
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/DeleteContainerImageSignature.ts.html |here} to see how to use DeleteContainerImageSignature API.
|
|
486
509
|
*/
|
|
487
510
|
deleteContainerImageSignature(deleteContainerImageSignatureRequest) {
|
|
488
511
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -497,7 +520,8 @@ class ArtifactsClient {
|
|
|
497
520
|
"opc-request-id": deleteContainerImageSignatureRequest.opcRequestId,
|
|
498
521
|
"if-match": deleteContainerImageSignatureRequest.ifMatch
|
|
499
522
|
};
|
|
500
|
-
const
|
|
523
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
524
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteContainerImageSignatureRequest.retryConfiguration, specRetryConfiguration);
|
|
501
525
|
if (this.logger)
|
|
502
526
|
retrier.logger = this.logger;
|
|
503
527
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -530,10 +554,11 @@ class ArtifactsClient {
|
|
|
530
554
|
}
|
|
531
555
|
/**
|
|
532
556
|
* Delete container repository.
|
|
557
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
533
558
|
* @param DeleteContainerRepositoryRequest
|
|
534
559
|
* @return DeleteContainerRepositoryResponse
|
|
535
560
|
* @throws OciError when an error occurs
|
|
536
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
561
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/DeleteContainerRepository.ts.html |here} to see how to use DeleteContainerRepository API.
|
|
537
562
|
*/
|
|
538
563
|
deleteContainerRepository(deleteContainerRepositoryRequest) {
|
|
539
564
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -548,7 +573,8 @@ class ArtifactsClient {
|
|
|
548
573
|
"if-match": deleteContainerRepositoryRequest.ifMatch,
|
|
549
574
|
"opc-request-id": deleteContainerRepositoryRequest.opcRequestId
|
|
550
575
|
};
|
|
551
|
-
const
|
|
576
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
577
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteContainerRepositoryRequest.retryConfiguration, specRetryConfiguration);
|
|
552
578
|
if (this.logger)
|
|
553
579
|
retrier.logger = this.logger;
|
|
554
580
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -581,10 +607,11 @@ class ArtifactsClient {
|
|
|
581
607
|
}
|
|
582
608
|
/**
|
|
583
609
|
* Deletes an artifact with a specified [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
610
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
584
611
|
* @param DeleteGenericArtifactRequest
|
|
585
612
|
* @return DeleteGenericArtifactResponse
|
|
586
613
|
* @throws OciError when an error occurs
|
|
587
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
614
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/DeleteGenericArtifact.ts.html |here} to see how to use DeleteGenericArtifact API.
|
|
588
615
|
*/
|
|
589
616
|
deleteGenericArtifact(deleteGenericArtifactRequest) {
|
|
590
617
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -599,7 +626,8 @@ class ArtifactsClient {
|
|
|
599
626
|
"if-match": deleteGenericArtifactRequest.ifMatch,
|
|
600
627
|
"opc-request-id": deleteGenericArtifactRequest.opcRequestId
|
|
601
628
|
};
|
|
602
|
-
const
|
|
629
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
630
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteGenericArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
603
631
|
if (this.logger)
|
|
604
632
|
retrier.logger = this.logger;
|
|
605
633
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -632,10 +660,11 @@ class ArtifactsClient {
|
|
|
632
660
|
}
|
|
633
661
|
/**
|
|
634
662
|
* Deletes an artifact with a specified `artifactPath` and `version`.
|
|
663
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
635
664
|
* @param DeleteGenericArtifactByPathRequest
|
|
636
665
|
* @return DeleteGenericArtifactByPathResponse
|
|
637
666
|
* @throws OciError when an error occurs
|
|
638
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
667
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/DeleteGenericArtifactByPath.ts.html |here} to see how to use DeleteGenericArtifactByPath API.
|
|
639
668
|
*/
|
|
640
669
|
deleteGenericArtifactByPath(deleteGenericArtifactByPathRequest) {
|
|
641
670
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -652,7 +681,8 @@ class ArtifactsClient {
|
|
|
652
681
|
"if-match": deleteGenericArtifactByPathRequest.ifMatch,
|
|
653
682
|
"opc-request-id": deleteGenericArtifactByPathRequest.opcRequestId
|
|
654
683
|
};
|
|
655
|
-
const
|
|
684
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
685
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteGenericArtifactByPathRequest.retryConfiguration, specRetryConfiguration);
|
|
656
686
|
if (this.logger)
|
|
657
687
|
retrier.logger = this.logger;
|
|
658
688
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -685,10 +715,11 @@ class ArtifactsClient {
|
|
|
685
715
|
}
|
|
686
716
|
/**
|
|
687
717
|
* Deletes the specified repository. This operation fails unless all associated artifacts are in a DELETED state. You must delete all associated artifacts before deleting a repository.
|
|
718
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
688
719
|
* @param DeleteRepositoryRequest
|
|
689
720
|
* @return DeleteRepositoryResponse
|
|
690
721
|
* @throws OciError when an error occurs
|
|
691
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
722
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/DeleteRepository.ts.html |here} to see how to use DeleteRepository API.
|
|
692
723
|
*/
|
|
693
724
|
deleteRepository(deleteRepositoryRequest) {
|
|
694
725
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -703,7 +734,8 @@ class ArtifactsClient {
|
|
|
703
734
|
"if-match": deleteRepositoryRequest.ifMatch,
|
|
704
735
|
"opc-request-id": deleteRepositoryRequest.opcRequestId
|
|
705
736
|
};
|
|
706
|
-
const
|
|
737
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
738
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRepositoryRequest.retryConfiguration, specRetryConfiguration);
|
|
707
739
|
if (this.logger)
|
|
708
740
|
retrier.logger = this.logger;
|
|
709
741
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -736,10 +768,11 @@ class ArtifactsClient {
|
|
|
736
768
|
}
|
|
737
769
|
/**
|
|
738
770
|
* Get container configuration.
|
|
771
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
739
772
|
* @param GetContainerConfigurationRequest
|
|
740
773
|
* @return GetContainerConfigurationResponse
|
|
741
774
|
* @throws OciError when an error occurs
|
|
742
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
775
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/GetContainerConfiguration.ts.html |here} to see how to use GetContainerConfiguration API.
|
|
743
776
|
*/
|
|
744
777
|
getContainerConfiguration(getContainerConfigurationRequest) {
|
|
745
778
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -753,7 +786,8 @@ class ArtifactsClient {
|
|
|
753
786
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
754
787
|
"opc-request-id": getContainerConfigurationRequest.opcRequestId
|
|
755
788
|
};
|
|
756
|
-
const
|
|
789
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
790
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getContainerConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
757
791
|
if (this.logger)
|
|
758
792
|
retrier.logger = this.logger;
|
|
759
793
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -795,10 +829,11 @@ class ArtifactsClient {
|
|
|
795
829
|
}
|
|
796
830
|
/**
|
|
797
831
|
* Get container image metadata.
|
|
832
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
798
833
|
* @param GetContainerImageRequest
|
|
799
834
|
* @return GetContainerImageResponse
|
|
800
835
|
* @throws OciError when an error occurs
|
|
801
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
836
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/GetContainerImage.ts.html |here} to see how to use GetContainerImage API.
|
|
802
837
|
*/
|
|
803
838
|
getContainerImage(getContainerImageRequest) {
|
|
804
839
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -812,7 +847,8 @@ class ArtifactsClient {
|
|
|
812
847
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
813
848
|
"opc-request-id": getContainerImageRequest.opcRequestId
|
|
814
849
|
};
|
|
815
|
-
const
|
|
850
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
851
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getContainerImageRequest.retryConfiguration, specRetryConfiguration);
|
|
816
852
|
if (this.logger)
|
|
817
853
|
retrier.logger = this.logger;
|
|
818
854
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -854,10 +890,11 @@ class ArtifactsClient {
|
|
|
854
890
|
}
|
|
855
891
|
/**
|
|
856
892
|
* Get container image signature metadata.
|
|
893
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
857
894
|
* @param GetContainerImageSignatureRequest
|
|
858
895
|
* @return GetContainerImageSignatureResponse
|
|
859
896
|
* @throws OciError when an error occurs
|
|
860
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
897
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/GetContainerImageSignature.ts.html |here} to see how to use GetContainerImageSignature API.
|
|
861
898
|
*/
|
|
862
899
|
getContainerImageSignature(getContainerImageSignatureRequest) {
|
|
863
900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -871,7 +908,8 @@ class ArtifactsClient {
|
|
|
871
908
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
872
909
|
"opc-request-id": getContainerImageSignatureRequest.opcRequestId
|
|
873
910
|
};
|
|
874
|
-
const
|
|
911
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
912
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getContainerImageSignatureRequest.retryConfiguration, specRetryConfiguration);
|
|
875
913
|
if (this.logger)
|
|
876
914
|
retrier.logger = this.logger;
|
|
877
915
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -913,10 +951,11 @@ class ArtifactsClient {
|
|
|
913
951
|
}
|
|
914
952
|
/**
|
|
915
953
|
* Get container repository.
|
|
954
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
916
955
|
* @param GetContainerRepositoryRequest
|
|
917
956
|
* @return GetContainerRepositoryResponse
|
|
918
957
|
* @throws OciError when an error occurs
|
|
919
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
958
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/GetContainerRepository.ts.html |here} to see how to use GetContainerRepository API.
|
|
920
959
|
*/
|
|
921
960
|
getContainerRepository(getContainerRepositoryRequest) {
|
|
922
961
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -930,7 +969,8 @@ class ArtifactsClient {
|
|
|
930
969
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
931
970
|
"opc-request-id": getContainerRepositoryRequest.opcRequestId
|
|
932
971
|
};
|
|
933
|
-
const
|
|
972
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
973
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getContainerRepositoryRequest.retryConfiguration, specRetryConfiguration);
|
|
934
974
|
if (this.logger)
|
|
935
975
|
retrier.logger = this.logger;
|
|
936
976
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -972,10 +1012,11 @@ class ArtifactsClient {
|
|
|
972
1012
|
}
|
|
973
1013
|
/**
|
|
974
1014
|
* Gets information about an artifact with a specified [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
|
1015
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
975
1016
|
* @param GetGenericArtifactRequest
|
|
976
1017
|
* @return GetGenericArtifactResponse
|
|
977
1018
|
* @throws OciError when an error occurs
|
|
978
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1019
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/GetGenericArtifact.ts.html |here} to see how to use GetGenericArtifact API.
|
|
979
1020
|
*/
|
|
980
1021
|
getGenericArtifact(getGenericArtifactRequest) {
|
|
981
1022
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -989,7 +1030,8 @@ class ArtifactsClient {
|
|
|
989
1030
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
990
1031
|
"opc-request-id": getGenericArtifactRequest.opcRequestId
|
|
991
1032
|
};
|
|
992
|
-
const
|
|
1033
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1034
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getGenericArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
993
1035
|
if (this.logger)
|
|
994
1036
|
retrier.logger = this.logger;
|
|
995
1037
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1031,10 +1073,11 @@ class ArtifactsClient {
|
|
|
1031
1073
|
}
|
|
1032
1074
|
/**
|
|
1033
1075
|
* Gets information about an artifact with a specified `artifactPath` and `version`.
|
|
1076
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1034
1077
|
* @param GetGenericArtifactByPathRequest
|
|
1035
1078
|
* @return GetGenericArtifactByPathResponse
|
|
1036
1079
|
* @throws OciError when an error occurs
|
|
1037
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1080
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/GetGenericArtifactByPath.ts.html |here} to see how to use GetGenericArtifactByPath API.
|
|
1038
1081
|
*/
|
|
1039
1082
|
getGenericArtifactByPath(getGenericArtifactByPathRequest) {
|
|
1040
1083
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1050,7 +1093,8 @@ class ArtifactsClient {
|
|
|
1050
1093
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1051
1094
|
"opc-request-id": getGenericArtifactByPathRequest.opcRequestId
|
|
1052
1095
|
};
|
|
1053
|
-
const
|
|
1096
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1097
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getGenericArtifactByPathRequest.retryConfiguration, specRetryConfiguration);
|
|
1054
1098
|
if (this.logger)
|
|
1055
1099
|
retrier.logger = this.logger;
|
|
1056
1100
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1092,10 +1136,11 @@ class ArtifactsClient {
|
|
|
1092
1136
|
}
|
|
1093
1137
|
/**
|
|
1094
1138
|
* Gets the specified repository's information.
|
|
1139
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1095
1140
|
* @param GetRepositoryRequest
|
|
1096
1141
|
* @return GetRepositoryResponse
|
|
1097
1142
|
* @throws OciError when an error occurs
|
|
1098
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1143
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/GetRepository.ts.html |here} to see how to use GetRepository API.
|
|
1099
1144
|
*/
|
|
1100
1145
|
getRepository(getRepositoryRequest) {
|
|
1101
1146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1109,7 +1154,8 @@ class ArtifactsClient {
|
|
|
1109
1154
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1110
1155
|
"opc-request-id": getRepositoryRequest.opcRequestId
|
|
1111
1156
|
};
|
|
1112
|
-
const
|
|
1157
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1158
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRepositoryRequest.retryConfiguration, specRetryConfiguration);
|
|
1113
1159
|
if (this.logger)
|
|
1114
1160
|
retrier.logger = this.logger;
|
|
1115
1161
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1151,10 +1197,11 @@ class ArtifactsClient {
|
|
|
1151
1197
|
}
|
|
1152
1198
|
/**
|
|
1153
1199
|
* List container image signatures in an image.
|
|
1200
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1154
1201
|
* @param ListContainerImageSignaturesRequest
|
|
1155
1202
|
* @return ListContainerImageSignaturesResponse
|
|
1156
1203
|
* @throws OciError when an error occurs
|
|
1157
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1204
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/ListContainerImageSignatures.ts.html |here} to see how to use ListContainerImageSignatures API.
|
|
1158
1205
|
*/
|
|
1159
1206
|
listContainerImageSignatures(listContainerImageSignaturesRequest) {
|
|
1160
1207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1181,7 +1228,8 @@ class ArtifactsClient {
|
|
|
1181
1228
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1182
1229
|
"opc-request-id": listContainerImageSignaturesRequest.opcRequestId
|
|
1183
1230
|
};
|
|
1184
|
-
const
|
|
1231
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1232
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listContainerImageSignaturesRequest.retryConfiguration, specRetryConfiguration);
|
|
1185
1233
|
if (this.logger)
|
|
1186
1234
|
retrier.logger = this.logger;
|
|
1187
1235
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1223,10 +1271,11 @@ class ArtifactsClient {
|
|
|
1223
1271
|
}
|
|
1224
1272
|
/**
|
|
1225
1273
|
* List container images in a compartment.
|
|
1274
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1226
1275
|
* @param ListContainerImagesRequest
|
|
1227
1276
|
* @return ListContainerImagesResponse
|
|
1228
1277
|
* @throws OciError when an error occurs
|
|
1229
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1278
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/ListContainerImages.ts.html |here} to see how to use ListContainerImages API.
|
|
1230
1279
|
*/
|
|
1231
1280
|
listContainerImages(listContainerImagesRequest) {
|
|
1232
1281
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1252,7 +1301,8 @@ class ArtifactsClient {
|
|
|
1252
1301
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1253
1302
|
"opc-request-id": listContainerImagesRequest.opcRequestId
|
|
1254
1303
|
};
|
|
1255
|
-
const
|
|
1304
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1305
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listContainerImagesRequest.retryConfiguration, specRetryConfiguration);
|
|
1256
1306
|
if (this.logger)
|
|
1257
1307
|
retrier.logger = this.logger;
|
|
1258
1308
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1294,10 +1344,11 @@ class ArtifactsClient {
|
|
|
1294
1344
|
}
|
|
1295
1345
|
/**
|
|
1296
1346
|
* List container repositories in a compartment.
|
|
1347
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1297
1348
|
* @param ListContainerRepositoriesRequest
|
|
1298
1349
|
* @return ListContainerRepositoriesResponse
|
|
1299
1350
|
* @throws OciError when an error occurs
|
|
1300
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1351
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/ListContainerRepositories.ts.html |here} to see how to use ListContainerRepositories API.
|
|
1301
1352
|
*/
|
|
1302
1353
|
listContainerRepositories(listContainerRepositoriesRequest) {
|
|
1303
1354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1320,7 +1371,8 @@ class ArtifactsClient {
|
|
|
1320
1371
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1321
1372
|
"opc-request-id": listContainerRepositoriesRequest.opcRequestId
|
|
1322
1373
|
};
|
|
1323
|
-
const
|
|
1374
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1375
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listContainerRepositoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
1324
1376
|
if (this.logger)
|
|
1325
1377
|
retrier.logger = this.logger;
|
|
1326
1378
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1362,10 +1414,11 @@ class ArtifactsClient {
|
|
|
1362
1414
|
}
|
|
1363
1415
|
/**
|
|
1364
1416
|
* Lists artifacts in the specified repository.
|
|
1417
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1365
1418
|
* @param ListGenericArtifactsRequest
|
|
1366
1419
|
* @return ListGenericArtifactsResponse
|
|
1367
1420
|
* @throws OciError when an error occurs
|
|
1368
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1421
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/ListGenericArtifacts.ts.html |here} to see how to use ListGenericArtifacts API.
|
|
1369
1422
|
*/
|
|
1370
1423
|
listGenericArtifacts(listGenericArtifactsRequest) {
|
|
1371
1424
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1390,7 +1443,8 @@ class ArtifactsClient {
|
|
|
1390
1443
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1391
1444
|
"opc-request-id": listGenericArtifactsRequest.opcRequestId
|
|
1392
1445
|
};
|
|
1393
|
-
const
|
|
1446
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1447
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listGenericArtifactsRequest.retryConfiguration, specRetryConfiguration);
|
|
1394
1448
|
if (this.logger)
|
|
1395
1449
|
retrier.logger = this.logger;
|
|
1396
1450
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1432,10 +1486,11 @@ class ArtifactsClient {
|
|
|
1432
1486
|
}
|
|
1433
1487
|
/**
|
|
1434
1488
|
* Lists repositories in the specified compartment.
|
|
1489
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1435
1490
|
* @param ListRepositoriesRequest
|
|
1436
1491
|
* @return ListRepositoriesResponse
|
|
1437
1492
|
* @throws OciError when an error occurs
|
|
1438
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1493
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/ListRepositories.ts.html |here} to see how to use ListRepositories API.
|
|
1439
1494
|
*/
|
|
1440
1495
|
listRepositories(listRepositoriesRequest) {
|
|
1441
1496
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1457,7 +1512,8 @@ class ArtifactsClient {
|
|
|
1457
1512
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1458
1513
|
"opc-request-id": listRepositoriesRequest.opcRequestId
|
|
1459
1514
|
};
|
|
1460
|
-
const
|
|
1515
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1516
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRepositoriesRequest.retryConfiguration, specRetryConfiguration);
|
|
1461
1517
|
if (this.logger)
|
|
1462
1518
|
retrier.logger = this.logger;
|
|
1463
1519
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1499,10 +1555,11 @@ class ArtifactsClient {
|
|
|
1499
1555
|
}
|
|
1500
1556
|
/**
|
|
1501
1557
|
* Remove version from container image.
|
|
1558
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1502
1559
|
* @param RemoveContainerVersionRequest
|
|
1503
1560
|
* @return RemoveContainerVersionResponse
|
|
1504
1561
|
* @throws OciError when an error occurs
|
|
1505
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1562
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/RemoveContainerVersion.ts.html |here} to see how to use RemoveContainerVersion API.
|
|
1506
1563
|
*/
|
|
1507
1564
|
removeContainerVersion(removeContainerVersionRequest) {
|
|
1508
1565
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1518,7 +1575,8 @@ class ArtifactsClient {
|
|
|
1518
1575
|
"opc-request-id": removeContainerVersionRequest.opcRequestId,
|
|
1519
1576
|
"opc-retry-token": removeContainerVersionRequest.opcRetryToken
|
|
1520
1577
|
};
|
|
1521
|
-
const
|
|
1578
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1579
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, removeContainerVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
1522
1580
|
if (this.logger)
|
|
1523
1581
|
retrier.logger = this.logger;
|
|
1524
1582
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1561,10 +1619,11 @@ class ArtifactsClient {
|
|
|
1561
1619
|
}
|
|
1562
1620
|
/**
|
|
1563
1621
|
* Restore a container image.
|
|
1622
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1564
1623
|
* @param RestoreContainerImageRequest
|
|
1565
1624
|
* @return RestoreContainerImageResponse
|
|
1566
1625
|
* @throws OciError when an error occurs
|
|
1567
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1626
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/RestoreContainerImage.ts.html |here} to see how to use RestoreContainerImage API.
|
|
1568
1627
|
*/
|
|
1569
1628
|
restoreContainerImage(restoreContainerImageRequest) {
|
|
1570
1629
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1580,7 +1639,8 @@ class ArtifactsClient {
|
|
|
1580
1639
|
"opc-request-id": restoreContainerImageRequest.opcRequestId,
|
|
1581
1640
|
"opc-retry-token": restoreContainerImageRequest.opcRetryToken
|
|
1582
1641
|
};
|
|
1583
|
-
const
|
|
1642
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1643
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreContainerImageRequest.retryConfiguration, specRetryConfiguration);
|
|
1584
1644
|
if (this.logger)
|
|
1585
1645
|
retrier.logger = this.logger;
|
|
1586
1646
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1623,10 +1683,11 @@ class ArtifactsClient {
|
|
|
1623
1683
|
}
|
|
1624
1684
|
/**
|
|
1625
1685
|
* Update container configuration.
|
|
1686
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1626
1687
|
* @param UpdateContainerConfigurationRequest
|
|
1627
1688
|
* @return UpdateContainerConfigurationResponse
|
|
1628
1689
|
* @throws OciError when an error occurs
|
|
1629
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1690
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/UpdateContainerConfiguration.ts.html |here} to see how to use UpdateContainerConfiguration API.
|
|
1630
1691
|
*/
|
|
1631
1692
|
updateContainerConfiguration(updateContainerConfigurationRequest) {
|
|
1632
1693
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1641,7 +1702,8 @@ class ArtifactsClient {
|
|
|
1641
1702
|
"if-match": updateContainerConfigurationRequest.ifMatch,
|
|
1642
1703
|
"opc-request-id": updateContainerConfigurationRequest.opcRequestId
|
|
1643
1704
|
};
|
|
1644
|
-
const
|
|
1705
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1706
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateContainerConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
1645
1707
|
if (this.logger)
|
|
1646
1708
|
retrier.logger = this.logger;
|
|
1647
1709
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1684,10 +1746,11 @@ class ArtifactsClient {
|
|
|
1684
1746
|
}
|
|
1685
1747
|
/**
|
|
1686
1748
|
* Modify the properties of a container repository. Avoid entering confidential information.
|
|
1749
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1687
1750
|
* @param UpdateContainerRepositoryRequest
|
|
1688
1751
|
* @return UpdateContainerRepositoryResponse
|
|
1689
1752
|
* @throws OciError when an error occurs
|
|
1690
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1753
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/UpdateContainerRepository.ts.html |here} to see how to use UpdateContainerRepository API.
|
|
1691
1754
|
*/
|
|
1692
1755
|
updateContainerRepository(updateContainerRepositoryRequest) {
|
|
1693
1756
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1702,7 +1765,8 @@ class ArtifactsClient {
|
|
|
1702
1765
|
"if-match": updateContainerRepositoryRequest.ifMatch,
|
|
1703
1766
|
"opc-request-id": updateContainerRepositoryRequest.opcRequestId
|
|
1704
1767
|
};
|
|
1705
|
-
const
|
|
1768
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1769
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateContainerRepositoryRequest.retryConfiguration, specRetryConfiguration);
|
|
1706
1770
|
if (this.logger)
|
|
1707
1771
|
retrier.logger = this.logger;
|
|
1708
1772
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1745,10 +1809,11 @@ class ArtifactsClient {
|
|
|
1745
1809
|
}
|
|
1746
1810
|
/**
|
|
1747
1811
|
* Updates the artifact with the specified [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). You can only update the tags of an artifact.
|
|
1812
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1748
1813
|
* @param UpdateGenericArtifactRequest
|
|
1749
1814
|
* @return UpdateGenericArtifactResponse
|
|
1750
1815
|
* @throws OciError when an error occurs
|
|
1751
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1816
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/UpdateGenericArtifact.ts.html |here} to see how to use UpdateGenericArtifact API.
|
|
1752
1817
|
*/
|
|
1753
1818
|
updateGenericArtifact(updateGenericArtifactRequest) {
|
|
1754
1819
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1763,7 +1828,8 @@ class ArtifactsClient {
|
|
|
1763
1828
|
"if-match": updateGenericArtifactRequest.ifMatch,
|
|
1764
1829
|
"opc-request-id": updateGenericArtifactRequest.opcRequestId
|
|
1765
1830
|
};
|
|
1766
|
-
const
|
|
1831
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1832
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateGenericArtifactRequest.retryConfiguration, specRetryConfiguration);
|
|
1767
1833
|
if (this.logger)
|
|
1768
1834
|
retrier.logger = this.logger;
|
|
1769
1835
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1806,10 +1872,11 @@ class ArtifactsClient {
|
|
|
1806
1872
|
}
|
|
1807
1873
|
/**
|
|
1808
1874
|
* Updates an artifact with a specified `artifactPath` and `version`. You can only update the tags of an artifact.
|
|
1875
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1809
1876
|
* @param UpdateGenericArtifactByPathRequest
|
|
1810
1877
|
* @return UpdateGenericArtifactByPathResponse
|
|
1811
1878
|
* @throws OciError when an error occurs
|
|
1812
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1879
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/UpdateGenericArtifactByPath.ts.html |here} to see how to use UpdateGenericArtifactByPath API.
|
|
1813
1880
|
*/
|
|
1814
1881
|
updateGenericArtifactByPath(updateGenericArtifactByPathRequest) {
|
|
1815
1882
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1826,7 +1893,8 @@ class ArtifactsClient {
|
|
|
1826
1893
|
"if-match": updateGenericArtifactByPathRequest.ifMatch,
|
|
1827
1894
|
"opc-request-id": updateGenericArtifactByPathRequest.opcRequestId
|
|
1828
1895
|
};
|
|
1829
|
-
const
|
|
1896
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1897
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateGenericArtifactByPathRequest.retryConfiguration, specRetryConfiguration);
|
|
1830
1898
|
if (this.logger)
|
|
1831
1899
|
retrier.logger = this.logger;
|
|
1832
1900
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1869,10 +1937,11 @@ class ArtifactsClient {
|
|
|
1869
1937
|
}
|
|
1870
1938
|
/**
|
|
1871
1939
|
* Updates the properties of a repository. You can update the `displayName` and `description` properties.
|
|
1940
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1872
1941
|
* @param UpdateRepositoryRequest
|
|
1873
1942
|
* @return UpdateRepositoryResponse
|
|
1874
1943
|
* @throws OciError when an error occurs
|
|
1875
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1944
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/artifacts/UpdateRepository.ts.html |here} to see how to use UpdateRepository API.
|
|
1876
1945
|
*/
|
|
1877
1946
|
updateRepository(updateRepositoryRequest) {
|
|
1878
1947
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1887,7 +1956,8 @@ class ArtifactsClient {
|
|
|
1887
1956
|
"if-match": updateRepositoryRequest.ifMatch,
|
|
1888
1957
|
"opc-request-id": updateRepositoryRequest.opcRequestId
|
|
1889
1958
|
};
|
|
1890
|
-
const
|
|
1959
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1960
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRepositoryRequest.retryConfiguration, specRetryConfiguration);
|
|
1891
1961
|
if (this.logger)
|
|
1892
1962
|
retrier.logger = this.logger;
|
|
1893
1963
|
const request = yield oci_common_1.composeRequest({
|