oci-objectstorage 2.139.0 → 2.139.2
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 +3 -0
- package/lib/client.js +119 -58
- package/lib/client.js.map +1 -1
- package/lib/model/bucket-summary.d.ts +7 -7
- package/lib/model/bucket.d.ts +7 -7
- package/lib/model/create-bucket-details.d.ts +7 -7
- package/lib/model/update-bucket-details.d.ts +11 -10
- package/lib/model/update-bucket-details.js.map +1 -1
- package/lib/request/put-object-request.d.ts +4 -3
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -70,6 +70,8 @@ class ObjectStorageClient {
|
|
|
70
70
|
this.targetService = "ObjectStorage";
|
|
71
71
|
this._regionId = "";
|
|
72
72
|
this._lastSetRegionOrRegionId = "";
|
|
73
|
+
this._enableDualstackEndpoint = undefined;
|
|
74
|
+
this._serviceUsesDualStackByDefault = false;
|
|
73
75
|
const requestSigner = params.authenticationDetailsProvider
|
|
74
76
|
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
75
77
|
: null;
|
|
@@ -165,6 +167,9 @@ class ObjectStorageClient {
|
|
|
165
167
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ObjectStorageClient.serviceEndpointTemplate, regionId, ObjectStorageClient.endpointServiceName, ObjectStorageClient.serviceEndpointTemplatePerRealm, this._realmSpecificEndpointTemplateEnabled);
|
|
166
168
|
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
167
169
|
}
|
|
170
|
+
set enableDualstackEndpoint(enableDualstackEndpoint) {
|
|
171
|
+
this._enableDualstackEndpoint = enableDualstackEndpoint;
|
|
172
|
+
}
|
|
168
173
|
/**
|
|
169
174
|
* Creates a new ObjectStorageWaiter for resources for this service.
|
|
170
175
|
*
|
|
@@ -237,13 +242,14 @@ class ObjectStorageClient {
|
|
|
237
242
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
238
243
|
"opc-client-request-id": abortMultipartUploadRequest.opcClientRequestId
|
|
239
244
|
};
|
|
245
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
240
246
|
const requiredParams = new Set([
|
|
241
247
|
"namespaceName",
|
|
242
248
|
"bucketName",
|
|
243
249
|
"objectName",
|
|
244
250
|
"uploadId"
|
|
245
251
|
]);
|
|
246
|
-
|
|
252
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
247
253
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
248
254
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, abortMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
249
255
|
if (this.logger)
|
|
@@ -304,8 +310,9 @@ class ObjectStorageClient {
|
|
|
304
310
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
305
311
|
"opc-client-request-id": batchDeleteObjectsRequest.opcClientRequestId
|
|
306
312
|
};
|
|
313
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
307
314
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
308
|
-
|
|
315
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
309
316
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
310
317
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, batchDeleteObjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
311
318
|
if (this.logger)
|
|
@@ -371,8 +378,9 @@ class ObjectStorageClient {
|
|
|
371
378
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
372
379
|
"opc-client-request-id": cancelWorkRequestRequest.opcClientRequestId
|
|
373
380
|
};
|
|
381
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
374
382
|
const requiredParams = new Set(["workRequestId"]);
|
|
375
|
-
|
|
383
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
376
384
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
377
385
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
378
386
|
if (this.logger)
|
|
@@ -439,13 +447,14 @@ class ObjectStorageClient {
|
|
|
439
447
|
"if-none-match": commitMultipartUploadRequest.ifNoneMatch,
|
|
440
448
|
"opc-client-request-id": commitMultipartUploadRequest.opcClientRequestId
|
|
441
449
|
};
|
|
450
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
442
451
|
const requiredParams = new Set([
|
|
443
452
|
"namespaceName",
|
|
444
453
|
"bucketName",
|
|
445
454
|
"objectName",
|
|
446
455
|
"uploadId"
|
|
447
456
|
]);
|
|
448
|
-
|
|
457
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
449
458
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
450
459
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, commitMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
451
460
|
if (this.logger)
|
|
@@ -553,8 +562,9 @@ class ObjectStorageClient {
|
|
|
553
562
|
"opc-source-sse-customer-key-sha256": copyObjectRequest.opcSourceSseCustomerKeySha256,
|
|
554
563
|
"opc-sse-kms-key-id": copyObjectRequest.opcSseKmsKeyId
|
|
555
564
|
};
|
|
565
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
556
566
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
557
|
-
|
|
567
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
558
568
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
559
569
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, copyObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
560
570
|
if (this.logger)
|
|
@@ -622,8 +632,9 @@ class ObjectStorageClient {
|
|
|
622
632
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
623
633
|
"opc-client-request-id": createBucketRequest.opcClientRequestId
|
|
624
634
|
};
|
|
635
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
625
636
|
const requiredParams = new Set(["namespaceName"]);
|
|
626
|
-
|
|
637
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
627
638
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
628
639
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
629
640
|
if (this.logger)
|
|
@@ -710,8 +721,9 @@ class ObjectStorageClient {
|
|
|
710
721
|
"opc-sse-kms-key-id": createMultipartUploadRequest.opcSseKmsKeyId,
|
|
711
722
|
"opc-checksum-algorithm": createMultipartUploadRequest.opcChecksumAlgorithm
|
|
712
723
|
};
|
|
724
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
713
725
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
714
|
-
|
|
726
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
715
727
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
716
728
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
717
729
|
if (this.logger)
|
|
@@ -783,8 +795,9 @@ class ObjectStorageClient {
|
|
|
783
795
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
784
796
|
"opc-client-request-id": createPreauthenticatedRequestRequest.opcClientRequestId
|
|
785
797
|
};
|
|
798
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
786
799
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
787
|
-
|
|
800
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
788
801
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
789
802
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
790
803
|
if (this.logger)
|
|
@@ -850,8 +863,9 @@ class ObjectStorageClient {
|
|
|
850
863
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
851
864
|
"opc-client-request-id": createPrivateEndpointRequest.opcClientRequestId
|
|
852
865
|
};
|
|
866
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
853
867
|
const requiredParams = new Set(["namespaceName"]);
|
|
854
|
-
|
|
868
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
855
869
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
856
870
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
857
871
|
if (this.logger)
|
|
@@ -919,8 +933,9 @@ class ObjectStorageClient {
|
|
|
919
933
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
920
934
|
"opc-client-request-id": createReplicationPolicyRequest.opcClientRequestId
|
|
921
935
|
};
|
|
936
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
922
937
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
923
|
-
|
|
938
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
924
939
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
925
940
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
926
941
|
if (this.logger)
|
|
@@ -988,8 +1003,9 @@ class ObjectStorageClient {
|
|
|
988
1003
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
989
1004
|
"opc-client-request-id": createRetentionRuleRequest.opcClientRequestId
|
|
990
1005
|
};
|
|
1006
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
991
1007
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
992
|
-
|
|
1008
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
993
1009
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
994
1010
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
995
1011
|
if (this.logger)
|
|
@@ -1065,8 +1081,9 @@ class ObjectStorageClient {
|
|
|
1065
1081
|
"if-match": deleteBucketRequest.ifMatch,
|
|
1066
1082
|
"opc-client-request-id": deleteBucketRequest.opcClientRequestId
|
|
1067
1083
|
};
|
|
1084
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1068
1085
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
1069
|
-
|
|
1086
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1070
1087
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1071
1088
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
1072
1089
|
if (this.logger)
|
|
@@ -1132,8 +1149,9 @@ class ObjectStorageClient {
|
|
|
1132
1149
|
"if-match": deleteObjectRequest.ifMatch,
|
|
1133
1150
|
"opc-client-request-id": deleteObjectRequest.opcClientRequestId
|
|
1134
1151
|
};
|
|
1152
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1135
1153
|
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
1136
|
-
|
|
1154
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1137
1155
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1138
1156
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1139
1157
|
if (this.logger)
|
|
@@ -1211,8 +1229,9 @@ class ObjectStorageClient {
|
|
|
1211
1229
|
"opc-client-request-id": deleteObjectLifecyclePolicyRequest.opcClientRequestId,
|
|
1212
1230
|
"if-match": deleteObjectLifecyclePolicyRequest.ifMatch
|
|
1213
1231
|
};
|
|
1232
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1214
1233
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
1215
|
-
|
|
1234
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1216
1235
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1217
1236
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1218
1237
|
if (this.logger)
|
|
@@ -1274,8 +1293,9 @@ class ObjectStorageClient {
|
|
|
1274
1293
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1275
1294
|
"opc-client-request-id": deletePreauthenticatedRequestRequest.opcClientRequestId
|
|
1276
1295
|
};
|
|
1296
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1277
1297
|
const requiredParams = new Set(["namespaceName", "bucketName", "parId"]);
|
|
1278
|
-
|
|
1298
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1279
1299
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1280
1300
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1281
1301
|
if (this.logger)
|
|
@@ -1338,8 +1358,9 @@ class ObjectStorageClient {
|
|
|
1338
1358
|
"if-match": deletePrivateEndpointRequest.ifMatch,
|
|
1339
1359
|
"opc-client-request-id": deletePrivateEndpointRequest.opcClientRequestId
|
|
1340
1360
|
};
|
|
1361
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1341
1362
|
const requiredParams = new Set(["namespaceName", "peName"]);
|
|
1342
|
-
|
|
1363
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1343
1364
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1344
1365
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
1345
1366
|
if (this.logger)
|
|
@@ -1407,8 +1428,9 @@ class ObjectStorageClient {
|
|
|
1407
1428
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1408
1429
|
"opc-client-request-id": deleteReplicationPolicyRequest.opcClientRequestId
|
|
1409
1430
|
};
|
|
1431
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1410
1432
|
const requiredParams = new Set(["namespaceName", "bucketName", "replicationId"]);
|
|
1411
|
-
|
|
1433
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1412
1434
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1413
1435
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1414
1436
|
if (this.logger)
|
|
@@ -1471,8 +1493,9 @@ class ObjectStorageClient {
|
|
|
1471
1493
|
"if-match": deleteRetentionRuleRequest.ifMatch,
|
|
1472
1494
|
"opc-client-request-id": deleteRetentionRuleRequest.opcClientRequestId
|
|
1473
1495
|
};
|
|
1496
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1474
1497
|
const requiredParams = new Set(["namespaceName", "bucketName", "retentionRuleId"]);
|
|
1475
|
-
|
|
1498
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1476
1499
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1477
1500
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1478
1501
|
if (this.logger)
|
|
@@ -1538,8 +1561,9 @@ class ObjectStorageClient {
|
|
|
1538
1561
|
"if-none-match": getBucketRequest.ifNoneMatch,
|
|
1539
1562
|
"opc-client-request-id": getBucketRequest.opcClientRequestId
|
|
1540
1563
|
};
|
|
1564
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1541
1565
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
1542
|
-
|
|
1566
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1543
1567
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1544
1568
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
1545
1569
|
if (this.logger)
|
|
@@ -1615,8 +1639,9 @@ class ObjectStorageClient {
|
|
|
1615
1639
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1616
1640
|
"opc-client-request-id": getNamespaceRequest.opcClientRequestId
|
|
1617
1641
|
};
|
|
1642
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1618
1643
|
const requiredParams = new Set([]);
|
|
1619
|
-
|
|
1644
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1620
1645
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1621
1646
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamespaceRequest.retryConfiguration, specRetryConfiguration);
|
|
1622
1647
|
if (this.logger)
|
|
@@ -1676,8 +1701,9 @@ class ObjectStorageClient {
|
|
|
1676
1701
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1677
1702
|
"opc-client-request-id": getNamespaceMetadataRequest.opcClientRequestId
|
|
1678
1703
|
};
|
|
1704
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1679
1705
|
const requiredParams = new Set(["namespaceName"]);
|
|
1680
|
-
|
|
1706
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1681
1707
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1682
1708
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamespaceMetadataRequest.retryConfiguration, specRetryConfiguration);
|
|
1683
1709
|
if (this.logger)
|
|
@@ -1758,8 +1784,9 @@ class ObjectStorageClient {
|
|
|
1758
1784
|
"opc-sse-customer-key": getObjectRequest.opcSseCustomerKey,
|
|
1759
1785
|
"opc-sse-customer-key-sha256": getObjectRequest.opcSseCustomerKeySha256
|
|
1760
1786
|
};
|
|
1787
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1761
1788
|
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
1762
|
-
|
|
1789
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1763
1790
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1764
1791
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1765
1792
|
if (this.logger)
|
|
@@ -1942,8 +1969,9 @@ class ObjectStorageClient {
|
|
|
1942
1969
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1943
1970
|
"opc-client-request-id": getObjectLifecyclePolicyRequest.opcClientRequestId
|
|
1944
1971
|
};
|
|
1972
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
1945
1973
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
1946
|
-
|
|
1974
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
1947
1975
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1948
1976
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1949
1977
|
if (this.logger)
|
|
@@ -2014,8 +2042,9 @@ class ObjectStorageClient {
|
|
|
2014
2042
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2015
2043
|
"opc-client-request-id": getPreauthenticatedRequestRequest.opcClientRequestId
|
|
2016
2044
|
};
|
|
2045
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2017
2046
|
const requiredParams = new Set(["namespaceName", "bucketName", "parId"]);
|
|
2018
|
-
|
|
2047
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2019
2048
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2020
2049
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2021
2050
|
if (this.logger)
|
|
@@ -2083,8 +2112,9 @@ class ObjectStorageClient {
|
|
|
2083
2112
|
"if-none-match": getPrivateEndpointRequest.ifNoneMatch,
|
|
2084
2113
|
"opc-client-request-id": getPrivateEndpointRequest.opcClientRequestId
|
|
2085
2114
|
};
|
|
2115
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2086
2116
|
const requiredParams = new Set(["namespaceName", "peName"]);
|
|
2087
|
-
|
|
2117
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2088
2118
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2089
2119
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
2090
2120
|
if (this.logger)
|
|
@@ -2156,8 +2186,9 @@ class ObjectStorageClient {
|
|
|
2156
2186
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2157
2187
|
"opc-client-request-id": getReplicationPolicyRequest.opcClientRequestId
|
|
2158
2188
|
};
|
|
2189
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2159
2190
|
const requiredParams = new Set(["namespaceName", "bucketName", "replicationId"]);
|
|
2160
|
-
|
|
2191
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2161
2192
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2162
2193
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
2163
2194
|
if (this.logger)
|
|
@@ -2223,8 +2254,9 @@ class ObjectStorageClient {
|
|
|
2223
2254
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2224
2255
|
"opc-client-request-id": getRetentionRuleRequest.opcClientRequestId
|
|
2225
2256
|
};
|
|
2257
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2226
2258
|
const requiredParams = new Set(["namespaceName", "bucketName", "retentionRuleId"]);
|
|
2227
|
-
|
|
2259
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2228
2260
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2229
2261
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
2230
2262
|
if (this.logger)
|
|
@@ -2298,8 +2330,9 @@ class ObjectStorageClient {
|
|
|
2298
2330
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2299
2331
|
"opc-client-request-id": getWorkRequestRequest.opcClientRequestId
|
|
2300
2332
|
};
|
|
2333
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2301
2334
|
const requiredParams = new Set(["workRequestId"]);
|
|
2302
|
-
|
|
2335
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2303
2336
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2304
2337
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
2305
2338
|
if (this.logger)
|
|
@@ -2372,8 +2405,9 @@ class ObjectStorageClient {
|
|
|
2372
2405
|
"if-none-match": headBucketRequest.ifNoneMatch,
|
|
2373
2406
|
"opc-client-request-id": headBucketRequest.opcClientRequestId
|
|
2374
2407
|
};
|
|
2408
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2375
2409
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
2376
|
-
|
|
2410
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2377
2411
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2378
2412
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
2379
2413
|
if (this.logger)
|
|
@@ -2448,8 +2482,9 @@ class ObjectStorageClient {
|
|
|
2448
2482
|
"opc-sse-customer-key": headObjectRequest.opcSseCustomerKey,
|
|
2449
2483
|
"opc-sse-customer-key-sha256": headObjectRequest.opcSseCustomerKeySha256
|
|
2450
2484
|
};
|
|
2485
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2451
2486
|
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
2452
|
-
|
|
2487
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2453
2488
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2454
2489
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
2455
2490
|
if (this.logger)
|
|
@@ -2631,8 +2666,9 @@ class ObjectStorageClient {
|
|
|
2631
2666
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2632
2667
|
"opc-client-request-id": listBucketsRequest.opcClientRequestId
|
|
2633
2668
|
};
|
|
2669
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2634
2670
|
const requiredParams = new Set(["namespaceName", "compartmentId"]);
|
|
2635
|
-
|
|
2671
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2636
2672
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2637
2673
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBucketsRequest.retryConfiguration, specRetryConfiguration);
|
|
2638
2674
|
if (this.logger)
|
|
@@ -2748,13 +2784,14 @@ class ObjectStorageClient {
|
|
|
2748
2784
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2749
2785
|
"opc-client-request-id": listMultipartUploadPartsRequest.opcClientRequestId
|
|
2750
2786
|
};
|
|
2787
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2751
2788
|
const requiredParams = new Set([
|
|
2752
2789
|
"namespaceName",
|
|
2753
2790
|
"bucketName",
|
|
2754
2791
|
"objectName",
|
|
2755
2792
|
"uploadId"
|
|
2756
2793
|
]);
|
|
2757
|
-
|
|
2794
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2758
2795
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2759
2796
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultipartUploadPartsRequest.retryConfiguration, specRetryConfiguration);
|
|
2760
2797
|
if (this.logger)
|
|
@@ -2868,8 +2905,9 @@ class ObjectStorageClient {
|
|
|
2868
2905
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2869
2906
|
"opc-client-request-id": listMultipartUploadsRequest.opcClientRequestId
|
|
2870
2907
|
};
|
|
2908
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2871
2909
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
2872
|
-
|
|
2910
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
2873
2911
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2874
2912
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultipartUploadsRequest.retryConfiguration, specRetryConfiguration);
|
|
2875
2913
|
if (this.logger)
|
|
@@ -2996,8 +3034,9 @@ class ObjectStorageClient {
|
|
|
2996
3034
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2997
3035
|
"opc-client-request-id": listObjectVersionsRequest.opcClientRequestId
|
|
2998
3036
|
};
|
|
3037
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
2999
3038
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3000
|
-
|
|
3039
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3001
3040
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3002
3041
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
3003
3042
|
if (this.logger)
|
|
@@ -3085,8 +3124,9 @@ class ObjectStorageClient {
|
|
|
3085
3124
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3086
3125
|
"opc-client-request-id": listObjectsRequest.opcClientRequestId
|
|
3087
3126
|
};
|
|
3127
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3088
3128
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3089
|
-
|
|
3129
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3090
3130
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3091
3131
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
3092
3132
|
if (this.logger)
|
|
@@ -3196,8 +3236,9 @@ class ObjectStorageClient {
|
|
|
3196
3236
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3197
3237
|
"opc-client-request-id": listPreauthenticatedRequestsRequest.opcClientRequestId
|
|
3198
3238
|
};
|
|
3239
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3199
3240
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3200
|
-
|
|
3241
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3201
3242
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3202
3243
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPreauthenticatedRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
3203
3244
|
if (this.logger)
|
|
@@ -3316,8 +3357,9 @@ class ObjectStorageClient {
|
|
|
3316
3357
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3317
3358
|
"opc-client-request-id": listPrivateEndpointsRequest.opcClientRequestId
|
|
3318
3359
|
};
|
|
3360
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3319
3361
|
const requiredParams = new Set(["namespaceName", "compartmentId"]);
|
|
3320
|
-
|
|
3362
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3321
3363
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3322
3364
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPrivateEndpointsRequest.retryConfiguration, specRetryConfiguration);
|
|
3323
3365
|
if (this.logger)
|
|
@@ -3431,8 +3473,9 @@ class ObjectStorageClient {
|
|
|
3431
3473
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3432
3474
|
"opc-client-request-id": listReplicationPoliciesRequest.opcClientRequestId
|
|
3433
3475
|
};
|
|
3476
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3434
3477
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3435
|
-
|
|
3478
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3436
3479
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3437
3480
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationPoliciesRequest.retryConfiguration, specRetryConfiguration);
|
|
3438
3481
|
if (this.logger)
|
|
@@ -3546,8 +3589,9 @@ class ObjectStorageClient {
|
|
|
3546
3589
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3547
3590
|
"opc-client-request-id": listReplicationSourcesRequest.opcClientRequestId
|
|
3548
3591
|
};
|
|
3592
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3549
3593
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3550
|
-
|
|
3594
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3551
3595
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3552
3596
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationSourcesRequest.retryConfiguration, specRetryConfiguration);
|
|
3553
3597
|
if (this.logger)
|
|
@@ -3660,8 +3704,9 @@ class ObjectStorageClient {
|
|
|
3660
3704
|
let headerParams = {
|
|
3661
3705
|
"Content-Type": common.Constants.APPLICATION_JSON
|
|
3662
3706
|
};
|
|
3707
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3663
3708
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3664
|
-
|
|
3709
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3665
3710
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3666
3711
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRetentionRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
3667
3712
|
if (this.logger)
|
|
@@ -3733,8 +3778,9 @@ class ObjectStorageClient {
|
|
|
3733
3778
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3734
3779
|
"opc-client-request-id": listWorkRequestErrorsRequest.opcClientRequestId
|
|
3735
3780
|
};
|
|
3781
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3736
3782
|
const requiredParams = new Set(["workRequestId"]);
|
|
3737
|
-
|
|
3783
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3738
3784
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3739
3785
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
3740
3786
|
if (this.logger)
|
|
@@ -3846,8 +3892,9 @@ class ObjectStorageClient {
|
|
|
3846
3892
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3847
3893
|
"opc-client-request-id": listWorkRequestLogsRequest.opcClientRequestId
|
|
3848
3894
|
};
|
|
3895
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3849
3896
|
const requiredParams = new Set(["workRequestId"]);
|
|
3850
|
-
|
|
3897
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3851
3898
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3852
3899
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
3853
3900
|
if (this.logger)
|
|
@@ -3960,8 +4007,9 @@ class ObjectStorageClient {
|
|
|
3960
4007
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3961
4008
|
"opc-client-request-id": listWorkRequestsRequest.opcClientRequestId
|
|
3962
4009
|
};
|
|
4010
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
3963
4011
|
const requiredParams = new Set(["compartmentId"]);
|
|
3964
|
-
|
|
4012
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
3965
4013
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3966
4014
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
3967
4015
|
if (this.logger)
|
|
@@ -4075,8 +4123,9 @@ class ObjectStorageClient {
|
|
|
4075
4123
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4076
4124
|
"opc-client-request-id": makeBucketWritableRequest.opcClientRequestId
|
|
4077
4125
|
};
|
|
4126
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4078
4127
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4079
|
-
|
|
4128
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4080
4129
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4081
4130
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, makeBucketWritableRequest.retryConfiguration, specRetryConfiguration);
|
|
4082
4131
|
if (this.logger)
|
|
@@ -4169,8 +4218,9 @@ class ObjectStorageClient {
|
|
|
4169
4218
|
Object.assign(headerParams, { ["opc-meta-" + key]: value });
|
|
4170
4219
|
});
|
|
4171
4220
|
}
|
|
4221
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4172
4222
|
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
4173
|
-
|
|
4223
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4174
4224
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4175
4225
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
4176
4226
|
if (this.logger)
|
|
@@ -4271,8 +4321,9 @@ class ObjectStorageClient {
|
|
|
4271
4321
|
"if-match": putObjectLifecyclePolicyRequest.ifMatch,
|
|
4272
4322
|
"if-none-match": putObjectLifecyclePolicyRequest.ifNoneMatch
|
|
4273
4323
|
};
|
|
4324
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4274
4325
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4275
|
-
|
|
4326
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4276
4327
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4277
4328
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
4278
4329
|
if (this.logger)
|
|
@@ -4362,8 +4413,9 @@ class ObjectStorageClient {
|
|
|
4362
4413
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4363
4414
|
"opc-client-request-id": reencryptBucketRequest.opcClientRequestId
|
|
4364
4415
|
};
|
|
4416
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4365
4417
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4366
|
-
|
|
4418
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4367
4419
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4368
4420
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reencryptBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
4369
4421
|
if (this.logger)
|
|
@@ -4441,8 +4493,9 @@ class ObjectStorageClient {
|
|
|
4441
4493
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4442
4494
|
"opc-client-request-id": reencryptObjectRequest.opcClientRequestId
|
|
4443
4495
|
};
|
|
4496
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4444
4497
|
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
4445
|
-
|
|
4498
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4446
4499
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4447
4500
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reencryptObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
4448
4501
|
if (this.logger)
|
|
@@ -4508,8 +4561,9 @@ class ObjectStorageClient {
|
|
|
4508
4561
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4509
4562
|
"opc-client-request-id": renameObjectRequest.opcClientRequestId
|
|
4510
4563
|
};
|
|
4564
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4511
4565
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4512
|
-
|
|
4566
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4513
4567
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4514
4568
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, renameObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
4515
4569
|
if (this.logger)
|
|
@@ -4588,8 +4642,9 @@ class ObjectStorageClient {
|
|
|
4588
4642
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4589
4643
|
"opc-client-request-id": restoreObjectsRequest.opcClientRequestId
|
|
4590
4644
|
};
|
|
4645
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4591
4646
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4592
|
-
|
|
4647
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4593
4648
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4594
4649
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreObjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
4595
4650
|
if (this.logger)
|
|
@@ -4657,8 +4712,9 @@ class ObjectStorageClient {
|
|
|
4657
4712
|
"if-match": updateBucketRequest.ifMatch,
|
|
4658
4713
|
"opc-client-request-id": updateBucketRequest.opcClientRequestId
|
|
4659
4714
|
};
|
|
4715
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4660
4716
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4661
|
-
|
|
4717
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4662
4718
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4663
4719
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
4664
4720
|
if (this.logger)
|
|
@@ -4735,8 +4791,9 @@ class ObjectStorageClient {
|
|
|
4735
4791
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4736
4792
|
"opc-client-request-id": updateNamespaceMetadataRequest.opcClientRequestId
|
|
4737
4793
|
};
|
|
4794
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4738
4795
|
const requiredParams = new Set(["namespaceName"]);
|
|
4739
|
-
|
|
4796
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4740
4797
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4741
4798
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateNamespaceMetadataRequest.retryConfiguration, specRetryConfiguration);
|
|
4742
4799
|
if (this.logger)
|
|
@@ -4803,8 +4860,9 @@ class ObjectStorageClient {
|
|
|
4803
4860
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4804
4861
|
"opc-client-request-id": updateObjectStorageTierRequest.opcClientRequestId
|
|
4805
4862
|
};
|
|
4863
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4806
4864
|
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4807
|
-
|
|
4865
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4808
4866
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4809
4867
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateObjectStorageTierRequest.retryConfiguration, specRetryConfiguration);
|
|
4810
4868
|
if (this.logger)
|
|
@@ -4875,8 +4933,9 @@ class ObjectStorageClient {
|
|
|
4875
4933
|
"opc-client-request-id": updatePrivateEndpointRequest.opcClientRequestId,
|
|
4876
4934
|
"if-match": updatePrivateEndpointRequest.ifMatch
|
|
4877
4935
|
};
|
|
4936
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4878
4937
|
const requiredParams = new Set(["namespaceName", "peName"]);
|
|
4879
|
-
|
|
4938
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4880
4939
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4881
4940
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updatePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
4882
4941
|
if (this.logger)
|
|
@@ -4946,8 +5005,9 @@ class ObjectStorageClient {
|
|
|
4946
5005
|
"if-match": updateRetentionRuleRequest.ifMatch,
|
|
4947
5006
|
"opc-client-request-id": updateRetentionRuleRequest.opcClientRequestId
|
|
4948
5007
|
};
|
|
5008
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
4949
5009
|
const requiredParams = new Set(["namespaceName", "bucketName", "retentionRuleId"]);
|
|
4950
|
-
|
|
5010
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
4951
5011
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4952
5012
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
4953
5013
|
if (this.logger)
|
|
@@ -5035,6 +5095,7 @@ class ObjectStorageClient {
|
|
|
5035
5095
|
"opc-sse-customer-key-sha256": uploadPartRequest.opcSseCustomerKeySha256,
|
|
5036
5096
|
"opc-sse-kms-key-id": uploadPartRequest.opcSseKmsKeyId
|
|
5037
5097
|
};
|
|
5098
|
+
let endpoint = common.EndpointBuilder.updateEndpointTemplateForOptions(this.endpoint, this._enableDualstackEndpoint, this._serviceUsesDualStackByDefault);
|
|
5038
5099
|
const requiredParams = new Set([
|
|
5039
5100
|
"namespaceName",
|
|
5040
5101
|
"bucketName",
|
|
@@ -5042,7 +5103,7 @@ class ObjectStorageClient {
|
|
|
5042
5103
|
"uploadId",
|
|
5043
5104
|
"uploadPartNum"
|
|
5044
5105
|
]);
|
|
5045
|
-
|
|
5106
|
+
endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(endpoint, pathParams, queryParams, requiredParams);
|
|
5046
5107
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5047
5108
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadPartRequest.retryConfiguration, specRetryConfiguration);
|
|
5048
5109
|
if (this.logger)
|
|
@@ -5109,9 +5170,9 @@ class ObjectStorageClient {
|
|
|
5109
5170
|
}
|
|
5110
5171
|
}
|
|
5111
5172
|
exports.ObjectStorageClient = ObjectStorageClient;
|
|
5112
|
-
ObjectStorageClient.serviceEndpointTemplate = "https://objectstorage.{region}.{secondLevelDomain}";
|
|
5173
|
+
ObjectStorageClient.serviceEndpointTemplate = "https://objectstorage.{region}.{dualStack?ds.oci.:}{secondLevelDomain}";
|
|
5113
5174
|
ObjectStorageClient.endpointServiceName = "objectstorage";
|
|
5114
5175
|
ObjectStorageClient.serviceEndpointTemplatePerRealm = {
|
|
5115
|
-
"oc1": "https://{namespaceName+Dot}objectstorage.{region}.oci.customer-oci.com"
|
|
5176
|
+
"oc1": "https://{namespaceName+Dot}objectstorage.{region}.{dualStack?ds.:}oci.customer-oci.com"
|
|
5116
5177
|
};
|
|
5117
5178
|
//# sourceMappingURL=client.js.map
|