oci-objectstorage 2.62.0 → 2.62.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/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/client.d.ts +54 -51
- package/lib/client.js +230 -106
- package/lib/client.js.map +1 -1
- package/lib/model/archival-state.d.ts +1 -1
- package/lib/model/archival-state.js +1 -1
- package/lib/model/bucket-summary.d.ts +1 -1
- package/lib/model/bucket-summary.js +1 -1
- package/lib/model/bucket.d.ts +1 -1
- package/lib/model/bucket.js +1 -1
- package/lib/model/commit-multipart-upload-details.d.ts +1 -1
- package/lib/model/commit-multipart-upload-details.js +1 -1
- package/lib/model/commit-multipart-upload-part-details.d.ts +1 -1
- package/lib/model/commit-multipart-upload-part-details.js +1 -1
- package/lib/model/copy-object-details.d.ts +1 -1
- package/lib/model/copy-object-details.js +1 -1
- package/lib/model/create-bucket-details.d.ts +1 -1
- package/lib/model/create-bucket-details.js +1 -1
- package/lib/model/create-multipart-upload-details.d.ts +1 -1
- package/lib/model/create-multipart-upload-details.js +1 -1
- package/lib/model/create-preauthenticated-request-details.d.ts +1 -1
- package/lib/model/create-preauthenticated-request-details.js +1 -1
- package/lib/model/create-replication-policy-details.d.ts +1 -1
- package/lib/model/create-replication-policy-details.js +1 -1
- package/lib/model/create-retention-rule-details.d.ts +1 -1
- package/lib/model/create-retention-rule-details.js +1 -1
- package/lib/model/duration.d.ts +1 -1
- package/lib/model/duration.js +1 -1
- package/lib/model/index.d.ts +1 -1
- package/lib/model/index.js +1 -1
- package/lib/model/list-objects.d.ts +1 -1
- package/lib/model/list-objects.js +1 -1
- package/lib/model/multipart-upload-part-summary.d.ts +1 -1
- package/lib/model/multipart-upload-part-summary.js +1 -1
- package/lib/model/multipart-upload.d.ts +1 -1
- package/lib/model/multipart-upload.js +1 -1
- package/lib/model/namespace-metadata.d.ts +1 -1
- package/lib/model/namespace-metadata.js +1 -1
- package/lib/model/object-lifecycle-policy.d.ts +1 -1
- package/lib/model/object-lifecycle-policy.js +1 -1
- package/lib/model/object-lifecycle-rule.d.ts +1 -1
- package/lib/model/object-lifecycle-rule.js +1 -1
- package/lib/model/object-name-filter.d.ts +1 -1
- package/lib/model/object-name-filter.js +1 -1
- package/lib/model/object-summary.d.ts +1 -1
- package/lib/model/object-summary.js +1 -1
- package/lib/model/object-version-collection.d.ts +1 -1
- package/lib/model/object-version-collection.js +1 -1
- package/lib/model/object-version-summary.d.ts +1 -1
- package/lib/model/object-version-summary.js +1 -1
- package/lib/model/pattern-details.d.ts +1 -1
- package/lib/model/pattern-details.js +1 -1
- package/lib/model/preauthenticated-request-summary.d.ts +1 -1
- package/lib/model/preauthenticated-request-summary.js +1 -1
- package/lib/model/preauthenticated-request.d.ts +6 -1
- package/lib/model/preauthenticated-request.js +1 -1
- package/lib/model/preauthenticated-request.js.map +1 -1
- package/lib/model/put-object-lifecycle-policy-details.d.ts +1 -1
- package/lib/model/put-object-lifecycle-policy-details.js +1 -1
- package/lib/model/reencrypt-object-details.d.ts +1 -1
- package/lib/model/reencrypt-object-details.js +1 -1
- package/lib/model/rename-object-details.d.ts +1 -1
- package/lib/model/rename-object-details.js +1 -1
- package/lib/model/replication-policy-summary.d.ts +1 -1
- package/lib/model/replication-policy-summary.js +1 -1
- package/lib/model/replication-policy.d.ts +1 -1
- package/lib/model/replication-policy.js +1 -1
- package/lib/model/replication-source.d.ts +1 -1
- package/lib/model/replication-source.js +1 -1
- package/lib/model/restore-objects-details.d.ts +1 -1
- package/lib/model/restore-objects-details.js +1 -1
- package/lib/model/retention-rule-collection.d.ts +1 -1
- package/lib/model/retention-rule-collection.js +1 -1
- package/lib/model/retention-rule-details.d.ts +1 -1
- package/lib/model/retention-rule-details.js +1 -1
- package/lib/model/retention-rule-summary.d.ts +1 -1
- package/lib/model/retention-rule-summary.js +1 -1
- package/lib/model/retention-rule.d.ts +1 -1
- package/lib/model/retention-rule.js +1 -1
- package/lib/model/s-se-customer-key-details.d.ts +1 -1
- package/lib/model/s-se-customer-key-details.js +1 -1
- package/lib/model/storage-tier.d.ts +1 -1
- package/lib/model/storage-tier.js +1 -1
- package/lib/model/update-bucket-details.d.ts +1 -1
- package/lib/model/update-bucket-details.js +1 -1
- package/lib/model/update-namespace-metadata-details.d.ts +1 -1
- package/lib/model/update-namespace-metadata-details.js +1 -1
- package/lib/model/update-object-storage-tier-details.d.ts +1 -1
- package/lib/model/update-object-storage-tier-details.js +1 -1
- package/lib/model/update-retention-rule-details.d.ts +1 -1
- package/lib/model/update-retention-rule-details.js +1 -1
- package/lib/model/work-request-error.d.ts +1 -1
- package/lib/model/work-request-error.js +1 -1
- package/lib/model/work-request-log-entry.d.ts +1 -1
- package/lib/model/work-request-log-entry.js +1 -1
- package/lib/model/work-request-resource-metadata-key.d.ts +1 -1
- package/lib/model/work-request-resource-metadata-key.js +1 -1
- package/lib/model/work-request-resource.d.ts +1 -1
- package/lib/model/work-request-resource.js +1 -1
- package/lib/model/work-request-summary.d.ts +1 -1
- package/lib/model/work-request-summary.js +1 -1
- package/lib/model/work-request.d.ts +1 -1
- package/lib/model/work-request.js +1 -1
- package/lib/objectstorage-waiter.d.ts +1 -1
- package/lib/objectstorage-waiter.js +1 -1
- package/lib/request/abort-multipart-upload-request.d.ts +1 -1
- package/lib/request/cancel-work-request-request.d.ts +1 -1
- package/lib/request/commit-multipart-upload-request.d.ts +1 -1
- package/lib/request/copy-object-request.d.ts +1 -1
- package/lib/request/create-bucket-request.d.ts +1 -1
- package/lib/request/create-multipart-upload-request.d.ts +1 -1
- package/lib/request/create-preauthenticated-request-request.d.ts +1 -1
- package/lib/request/create-replication-policy-request.d.ts +1 -1
- package/lib/request/create-retention-rule-request.d.ts +1 -1
- package/lib/request/delete-bucket-request.d.ts +1 -1
- package/lib/request/delete-object-lifecycle-policy-request.d.ts +1 -1
- package/lib/request/delete-object-request.d.ts +1 -1
- package/lib/request/delete-preauthenticated-request-request.d.ts +1 -1
- package/lib/request/delete-replication-policy-request.d.ts +1 -1
- package/lib/request/delete-retention-rule-request.d.ts +1 -1
- package/lib/request/get-bucket-request.d.ts +1 -1
- package/lib/request/get-namespace-metadata-request.d.ts +1 -1
- package/lib/request/get-namespace-request.d.ts +1 -1
- package/lib/request/get-object-lifecycle-policy-request.d.ts +1 -1
- package/lib/request/get-object-request.d.ts +1 -1
- package/lib/request/get-preauthenticated-request-request.d.ts +1 -1
- package/lib/request/get-replication-policy-request.d.ts +1 -1
- package/lib/request/get-retention-rule-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/head-bucket-request.d.ts +1 -1
- package/lib/request/head-object-request.d.ts +1 -1
- package/lib/request/index.d.ts +1 -1
- package/lib/request/index.js +1 -1
- package/lib/request/list-buckets-request.d.ts +1 -1
- package/lib/request/list-multipart-upload-parts-request.d.ts +1 -1
- package/lib/request/list-multipart-uploads-request.d.ts +1 -1
- package/lib/request/list-object-versions-request.d.ts +1 -1
- package/lib/request/list-objects-request.d.ts +1 -1
- package/lib/request/list-preauthenticated-requests-request.d.ts +1 -1
- package/lib/request/list-replication-policies-request.d.ts +1 -1
- package/lib/request/list-replication-sources-request.d.ts +1 -1
- package/lib/request/list-retention-rules-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/make-bucket-writable-request.d.ts +1 -1
- package/lib/request/put-object-lifecycle-policy-request.d.ts +1 -1
- package/lib/request/put-object-request.d.ts +1 -1
- package/lib/request/reencrypt-bucket-request.d.ts +1 -1
- package/lib/request/reencrypt-object-request.d.ts +1 -1
- package/lib/request/rename-object-request.d.ts +1 -1
- package/lib/request/restore-objects-request.d.ts +1 -1
- package/lib/request/update-bucket-request.d.ts +1 -1
- package/lib/request/update-namespace-metadata-request.d.ts +1 -1
- package/lib/request/update-object-storage-tier-request.d.ts +1 -1
- package/lib/request/update-retention-rule-request.d.ts +1 -1
- package/lib/request/upload-part-request.d.ts +1 -1
- package/lib/response/get-object-response.d.ts +1 -1
- package/lib/response/index.d.ts +1 -1
- package/lib/response/index.js +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Object Storage Service API
|
|
4
|
-
*
|
|
4
|
+
* Use Object Storage and Archive Storage APIs to manage buckets, objects, and related resources.
|
|
5
5
|
For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and
|
|
6
6
|
[Overview of Archive Storage](/Content/Archive/Concepts/archivestorageoverview.htm).
|
|
7
7
|
|
|
@@ -126,10 +126,10 @@ class ObjectStorageClient {
|
|
|
126
126
|
if (this.logger)
|
|
127
127
|
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
128
128
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
129
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ObjectStorageClient.serviceEndpointTemplate, this._region, ObjectStorageClient.endpointServiceName);
|
|
129
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ObjectStorageClient.serviceEndpointTemplate, this._region, ObjectStorageClient.endpointServiceName, ObjectStorageClient.serviceEndpointTemplatePerRealm, this._realmSpecificEndpointTemplateEnabled);
|
|
130
130
|
}
|
|
131
131
|
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
132
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ObjectStorageClient.serviceEndpointTemplate, this._regionId, ObjectStorageClient.endpointServiceName);
|
|
132
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ObjectStorageClient.serviceEndpointTemplate, this._regionId, ObjectStorageClient.endpointServiceName, ObjectStorageClient.serviceEndpointTemplatePerRealm, this._realmSpecificEndpointTemplateEnabled);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
@@ -139,7 +139,7 @@ class ObjectStorageClient {
|
|
|
139
139
|
*/
|
|
140
140
|
set region(region) {
|
|
141
141
|
this._region = region;
|
|
142
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ObjectStorageClient.serviceEndpointTemplate, region, ObjectStorageClient.endpointServiceName);
|
|
142
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ObjectStorageClient.serviceEndpointTemplate, region, ObjectStorageClient.endpointServiceName, ObjectStorageClient.serviceEndpointTemplatePerRealm, this._realmSpecificEndpointTemplateEnabled);
|
|
143
143
|
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
@@ -152,7 +152,7 @@ class ObjectStorageClient {
|
|
|
152
152
|
*/
|
|
153
153
|
set regionId(regionId) {
|
|
154
154
|
this._regionId = regionId;
|
|
155
|
-
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ObjectStorageClient.serviceEndpointTemplate, regionId, ObjectStorageClient.endpointServiceName);
|
|
155
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ObjectStorageClient.serviceEndpointTemplate, regionId, ObjectStorageClient.endpointServiceName, ObjectStorageClient.serviceEndpointTemplatePerRealm, this._realmSpecificEndpointTemplateEnabled);
|
|
156
156
|
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
@@ -183,7 +183,7 @@ class ObjectStorageClient {
|
|
|
183
183
|
* @param AbortMultipartUploadRequest
|
|
184
184
|
* @return AbortMultipartUploadResponse
|
|
185
185
|
* @throws OciError when an error occurs
|
|
186
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/AbortMultipartUpload.ts.html |here} to see how to use AbortMultipartUpload API.
|
|
187
187
|
*/
|
|
188
188
|
abortMultipartUpload(abortMultipartUploadRequest) {
|
|
189
189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -203,12 +203,19 @@ class ObjectStorageClient {
|
|
|
203
203
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
204
204
|
"opc-client-request-id": abortMultipartUploadRequest.opcClientRequestId
|
|
205
205
|
};
|
|
206
|
+
const requiredParams = new Set([
|
|
207
|
+
"namespaceName",
|
|
208
|
+
"bucketName",
|
|
209
|
+
"objectName",
|
|
210
|
+
"uploadId"
|
|
211
|
+
]);
|
|
212
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
206
213
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
207
214
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, abortMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
208
215
|
if (this.logger)
|
|
209
216
|
retrier.logger = this.logger;
|
|
210
217
|
const request = yield oci_common_2.composeRequest({
|
|
211
|
-
baseEndpoint:
|
|
218
|
+
baseEndpoint: endpoint,
|
|
212
219
|
defaultHeaders: this._defaultHeaders,
|
|
213
220
|
path: "/n/{namespaceName}/b/{bucketName}/u/{objectName}",
|
|
214
221
|
method: "DELETE",
|
|
@@ -247,7 +254,7 @@ class ObjectStorageClient {
|
|
|
247
254
|
* @param CancelWorkRequestRequest
|
|
248
255
|
* @return CancelWorkRequestResponse
|
|
249
256
|
* @throws OciError when an error occurs
|
|
250
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
257
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
251
258
|
*/
|
|
252
259
|
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
253
260
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -263,12 +270,14 @@ class ObjectStorageClient {
|
|
|
263
270
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
264
271
|
"opc-client-request-id": cancelWorkRequestRequest.opcClientRequestId
|
|
265
272
|
};
|
|
273
|
+
const requiredParams = new Set(["workRequestId"]);
|
|
274
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
266
275
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
267
276
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
268
277
|
if (this.logger)
|
|
269
278
|
retrier.logger = this.logger;
|
|
270
279
|
const request = yield oci_common_2.composeRequest({
|
|
271
|
-
baseEndpoint:
|
|
280
|
+
baseEndpoint: endpoint,
|
|
272
281
|
defaultHeaders: this._defaultHeaders,
|
|
273
282
|
path: "/workRequests/{workRequestId}",
|
|
274
283
|
method: "DELETE",
|
|
@@ -307,7 +316,7 @@ class ObjectStorageClient {
|
|
|
307
316
|
* @param CommitMultipartUploadRequest
|
|
308
317
|
* @return CommitMultipartUploadResponse
|
|
309
318
|
* @throws OciError when an error occurs
|
|
310
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
319
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/CommitMultipartUpload.ts.html |here} to see how to use CommitMultipartUpload API.
|
|
311
320
|
*/
|
|
312
321
|
commitMultipartUpload(commitMultipartUploadRequest) {
|
|
313
322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -329,12 +338,19 @@ class ObjectStorageClient {
|
|
|
329
338
|
"if-none-match": commitMultipartUploadRequest.ifNoneMatch,
|
|
330
339
|
"opc-client-request-id": commitMultipartUploadRequest.opcClientRequestId
|
|
331
340
|
};
|
|
341
|
+
const requiredParams = new Set([
|
|
342
|
+
"namespaceName",
|
|
343
|
+
"bucketName",
|
|
344
|
+
"objectName",
|
|
345
|
+
"uploadId"
|
|
346
|
+
]);
|
|
347
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
332
348
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
333
349
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, commitMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
334
350
|
if (this.logger)
|
|
335
351
|
retrier.logger = this.logger;
|
|
336
352
|
const request = yield oci_common_2.composeRequest({
|
|
337
|
-
baseEndpoint:
|
|
353
|
+
baseEndpoint: endpoint,
|
|
338
354
|
defaultHeaders: this._defaultHeaders,
|
|
339
355
|
path: "/n/{namespaceName}/b/{bucketName}/u/{objectName}",
|
|
340
356
|
method: "POST",
|
|
@@ -397,7 +413,7 @@ class ObjectStorageClient {
|
|
|
397
413
|
* @param CopyObjectRequest
|
|
398
414
|
* @return CopyObjectResponse
|
|
399
415
|
* @throws OciError when an error occurs
|
|
400
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
416
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/CopyObject.ts.html |here} to see how to use CopyObject API.
|
|
401
417
|
*/
|
|
402
418
|
copyObject(copyObjectRequest) {
|
|
403
419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -421,12 +437,14 @@ class ObjectStorageClient {
|
|
|
421
437
|
"opc-source-sse-customer-key-sha256": copyObjectRequest.opcSourceSseCustomerKeySha256,
|
|
422
438
|
"opc-sse-kms-key-id": copyObjectRequest.opcSseKmsKeyId
|
|
423
439
|
};
|
|
440
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
441
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
424
442
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
425
443
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, copyObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
426
444
|
if (this.logger)
|
|
427
445
|
retrier.logger = this.logger;
|
|
428
446
|
const request = yield oci_common_2.composeRequest({
|
|
429
|
-
baseEndpoint:
|
|
447
|
+
baseEndpoint: endpoint,
|
|
430
448
|
defaultHeaders: this._defaultHeaders,
|
|
431
449
|
path: "/n/{namespaceName}/b/{bucketName}/actions/copyObject",
|
|
432
450
|
method: "POST",
|
|
@@ -472,7 +490,7 @@ class ObjectStorageClient {
|
|
|
472
490
|
* @param CreateBucketRequest
|
|
473
491
|
* @return CreateBucketResponse
|
|
474
492
|
* @throws OciError when an error occurs
|
|
475
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
493
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/CreateBucket.ts.html |here} to see how to use CreateBucket API.
|
|
476
494
|
*/
|
|
477
495
|
createBucket(createBucketRequest) {
|
|
478
496
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -488,12 +506,14 @@ class ObjectStorageClient {
|
|
|
488
506
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
489
507
|
"opc-client-request-id": createBucketRequest.opcClientRequestId
|
|
490
508
|
};
|
|
509
|
+
const requiredParams = new Set(["namespaceName"]);
|
|
510
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
491
511
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
492
512
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
493
513
|
if (this.logger)
|
|
494
514
|
retrier.logger = this.logger;
|
|
495
515
|
const request = yield oci_common_2.composeRequest({
|
|
496
|
-
baseEndpoint:
|
|
516
|
+
baseEndpoint: endpoint,
|
|
497
517
|
defaultHeaders: this._defaultHeaders,
|
|
498
518
|
path: "/n/{namespaceName}/b",
|
|
499
519
|
method: "POST",
|
|
@@ -550,7 +570,7 @@ class ObjectStorageClient {
|
|
|
550
570
|
* @param CreateMultipartUploadRequest
|
|
551
571
|
* @return CreateMultipartUploadResponse
|
|
552
572
|
* @throws OciError when an error occurs
|
|
553
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
573
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/CreateMultipartUpload.ts.html |here} to see how to use CreateMultipartUpload API.
|
|
554
574
|
*/
|
|
555
575
|
createMultipartUpload(createMultipartUploadRequest) {
|
|
556
576
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -573,12 +593,14 @@ class ObjectStorageClient {
|
|
|
573
593
|
"opc-sse-customer-key-sha256": createMultipartUploadRequest.opcSseCustomerKeySha256,
|
|
574
594
|
"opc-sse-kms-key-id": createMultipartUploadRequest.opcSseKmsKeyId
|
|
575
595
|
};
|
|
596
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
597
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
576
598
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
577
599
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createMultipartUploadRequest.retryConfiguration, specRetryConfiguration);
|
|
578
600
|
if (this.logger)
|
|
579
601
|
retrier.logger = this.logger;
|
|
580
602
|
const request = yield oci_common_2.composeRequest({
|
|
581
|
-
baseEndpoint:
|
|
603
|
+
baseEndpoint: endpoint,
|
|
582
604
|
defaultHeaders: this._defaultHeaders,
|
|
583
605
|
path: "/n/{namespaceName}/b/{bucketName}/u",
|
|
584
606
|
method: "POST",
|
|
@@ -627,7 +649,7 @@ class ObjectStorageClient {
|
|
|
627
649
|
* @param CreatePreauthenticatedRequestRequest
|
|
628
650
|
* @return CreatePreauthenticatedRequestResponse
|
|
629
651
|
* @throws OciError when an error occurs
|
|
630
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
652
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/CreatePreauthenticatedRequest.ts.html |here} to see how to use CreatePreauthenticatedRequest API.
|
|
631
653
|
*/
|
|
632
654
|
createPreauthenticatedRequest(createPreauthenticatedRequestRequest) {
|
|
633
655
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -644,12 +666,14 @@ class ObjectStorageClient {
|
|
|
644
666
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
645
667
|
"opc-client-request-id": createPreauthenticatedRequestRequest.opcClientRequestId
|
|
646
668
|
};
|
|
669
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
670
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
647
671
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
648
672
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
649
673
|
if (this.logger)
|
|
650
674
|
retrier.logger = this.logger;
|
|
651
675
|
const request = yield oci_common_2.composeRequest({
|
|
652
|
-
baseEndpoint:
|
|
676
|
+
baseEndpoint: endpoint,
|
|
653
677
|
defaultHeaders: this._defaultHeaders,
|
|
654
678
|
path: "/n/{namespaceName}/b/{bucketName}/p",
|
|
655
679
|
method: "POST",
|
|
@@ -693,7 +717,7 @@ class ObjectStorageClient {
|
|
|
693
717
|
* @param CreateReplicationPolicyRequest
|
|
694
718
|
* @return CreateReplicationPolicyResponse
|
|
695
719
|
* @throws OciError when an error occurs
|
|
696
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
720
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/CreateReplicationPolicy.ts.html |here} to see how to use CreateReplicationPolicy API.
|
|
697
721
|
*/
|
|
698
722
|
createReplicationPolicy(createReplicationPolicyRequest) {
|
|
699
723
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -710,12 +734,14 @@ class ObjectStorageClient {
|
|
|
710
734
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
711
735
|
"opc-client-request-id": createReplicationPolicyRequest.opcClientRequestId
|
|
712
736
|
};
|
|
737
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
738
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
713
739
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
714
740
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
715
741
|
if (this.logger)
|
|
716
742
|
retrier.logger = this.logger;
|
|
717
743
|
const request = yield oci_common_2.composeRequest({
|
|
718
|
-
baseEndpoint:
|
|
744
|
+
baseEndpoint: endpoint,
|
|
719
745
|
defaultHeaders: this._defaultHeaders,
|
|
720
746
|
path: "/n/{namespaceName}/b/{bucketName}/replicationPolicies",
|
|
721
747
|
method: "POST",
|
|
@@ -760,7 +786,7 @@ class ObjectStorageClient {
|
|
|
760
786
|
* @param CreateRetentionRuleRequest
|
|
761
787
|
* @return CreateRetentionRuleResponse
|
|
762
788
|
* @throws OciError when an error occurs
|
|
763
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
789
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/CreateRetentionRule.ts.html |here} to see how to use CreateRetentionRule API.
|
|
764
790
|
*/
|
|
765
791
|
createRetentionRule(createRetentionRuleRequest) {
|
|
766
792
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -777,12 +803,14 @@ class ObjectStorageClient {
|
|
|
777
803
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
778
804
|
"opc-client-request-id": createRetentionRuleRequest.opcClientRequestId
|
|
779
805
|
};
|
|
806
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
807
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
780
808
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
781
809
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
782
810
|
if (this.logger)
|
|
783
811
|
retrier.logger = this.logger;
|
|
784
812
|
const request = yield oci_common_2.composeRequest({
|
|
785
|
-
baseEndpoint:
|
|
813
|
+
baseEndpoint: endpoint,
|
|
786
814
|
defaultHeaders: this._defaultHeaders,
|
|
787
815
|
path: "/n/{namespaceName}/b/{bucketName}/retentionRules",
|
|
788
816
|
method: "POST",
|
|
@@ -834,7 +862,7 @@ class ObjectStorageClient {
|
|
|
834
862
|
* @param DeleteBucketRequest
|
|
835
863
|
* @return DeleteBucketResponse
|
|
836
864
|
* @throws OciError when an error occurs
|
|
837
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
865
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/DeleteBucket.ts.html |here} to see how to use DeleteBucket API.
|
|
838
866
|
*/
|
|
839
867
|
deleteBucket(deleteBucketRequest) {
|
|
840
868
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -852,12 +880,14 @@ class ObjectStorageClient {
|
|
|
852
880
|
"if-match": deleteBucketRequest.ifMatch,
|
|
853
881
|
"opc-client-request-id": deleteBucketRequest.opcClientRequestId
|
|
854
882
|
};
|
|
883
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
884
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
855
885
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
856
886
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
857
887
|
if (this.logger)
|
|
858
888
|
retrier.logger = this.logger;
|
|
859
889
|
const request = yield oci_common_2.composeRequest({
|
|
860
|
-
baseEndpoint:
|
|
890
|
+
baseEndpoint: endpoint,
|
|
861
891
|
defaultHeaders: this._defaultHeaders,
|
|
862
892
|
path: "/n/{namespaceName}/b/{bucketName}",
|
|
863
893
|
method: "DELETE",
|
|
@@ -896,7 +926,7 @@ class ObjectStorageClient {
|
|
|
896
926
|
* @param DeleteObjectRequest
|
|
897
927
|
* @return DeleteObjectResponse
|
|
898
928
|
* @throws OciError when an error occurs
|
|
899
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
929
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/DeleteObject.ts.html |here} to see how to use DeleteObject API.
|
|
900
930
|
*/
|
|
901
931
|
deleteObject(deleteObjectRequest) {
|
|
902
932
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -917,12 +947,14 @@ class ObjectStorageClient {
|
|
|
917
947
|
"if-match": deleteObjectRequest.ifMatch,
|
|
918
948
|
"opc-client-request-id": deleteObjectRequest.opcClientRequestId
|
|
919
949
|
};
|
|
950
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
951
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
920
952
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
921
953
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
922
954
|
if (this.logger)
|
|
923
955
|
retrier.logger = this.logger;
|
|
924
956
|
const request = yield oci_common_2.composeRequest({
|
|
925
|
-
baseEndpoint:
|
|
957
|
+
baseEndpoint: endpoint,
|
|
926
958
|
defaultHeaders: this._defaultHeaders,
|
|
927
959
|
path: "/n/{namespaceName}/b/{bucketName}/o/{objectName}",
|
|
928
960
|
method: "DELETE",
|
|
@@ -976,7 +1008,7 @@ class ObjectStorageClient {
|
|
|
976
1008
|
* @param DeleteObjectLifecyclePolicyRequest
|
|
977
1009
|
* @return DeleteObjectLifecyclePolicyResponse
|
|
978
1010
|
* @throws OciError when an error occurs
|
|
979
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1011
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/DeleteObjectLifecyclePolicy.ts.html |here} to see how to use DeleteObjectLifecyclePolicy API.
|
|
980
1012
|
*/
|
|
981
1013
|
deleteObjectLifecyclePolicy(deleteObjectLifecyclePolicyRequest) {
|
|
982
1014
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -994,12 +1026,14 @@ class ObjectStorageClient {
|
|
|
994
1026
|
"opc-client-request-id": deleteObjectLifecyclePolicyRequest.opcClientRequestId,
|
|
995
1027
|
"if-match": deleteObjectLifecyclePolicyRequest.ifMatch
|
|
996
1028
|
};
|
|
1029
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
1030
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
997
1031
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
998
1032
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
999
1033
|
if (this.logger)
|
|
1000
1034
|
retrier.logger = this.logger;
|
|
1001
1035
|
const request = yield oci_common_2.composeRequest({
|
|
1002
|
-
baseEndpoint:
|
|
1036
|
+
baseEndpoint: endpoint,
|
|
1003
1037
|
defaultHeaders: this._defaultHeaders,
|
|
1004
1038
|
path: "/n/{namespaceName}/b/{bucketName}/l",
|
|
1005
1039
|
method: "DELETE",
|
|
@@ -1037,7 +1071,7 @@ class ObjectStorageClient {
|
|
|
1037
1071
|
* @param DeletePreauthenticatedRequestRequest
|
|
1038
1072
|
* @return DeletePreauthenticatedRequestResponse
|
|
1039
1073
|
* @throws OciError when an error occurs
|
|
1040
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1074
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/DeletePreauthenticatedRequest.ts.html |here} to see how to use DeletePreauthenticatedRequest API.
|
|
1041
1075
|
*/
|
|
1042
1076
|
deletePreauthenticatedRequest(deletePreauthenticatedRequestRequest) {
|
|
1043
1077
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1055,12 +1089,14 @@ class ObjectStorageClient {
|
|
|
1055
1089
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1056
1090
|
"opc-client-request-id": deletePreauthenticatedRequestRequest.opcClientRequestId
|
|
1057
1091
|
};
|
|
1092
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "parId"]);
|
|
1093
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1058
1094
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1059
1095
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1060
1096
|
if (this.logger)
|
|
1061
1097
|
retrier.logger = this.logger;
|
|
1062
1098
|
const request = yield oci_common_2.composeRequest({
|
|
1063
|
-
baseEndpoint:
|
|
1099
|
+
baseEndpoint: endpoint,
|
|
1064
1100
|
defaultHeaders: this._defaultHeaders,
|
|
1065
1101
|
path: "/n/{namespaceName}/b/{bucketName}/p/{parId}",
|
|
1066
1102
|
method: "DELETE",
|
|
@@ -1099,7 +1135,7 @@ class ObjectStorageClient {
|
|
|
1099
1135
|
* @param DeleteReplicationPolicyRequest
|
|
1100
1136
|
* @return DeleteReplicationPolicyResponse
|
|
1101
1137
|
* @throws OciError when an error occurs
|
|
1102
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1138
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/DeleteReplicationPolicy.ts.html |here} to see how to use DeleteReplicationPolicy API.
|
|
1103
1139
|
*/
|
|
1104
1140
|
deleteReplicationPolicy(deleteReplicationPolicyRequest) {
|
|
1105
1141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1117,12 +1153,14 @@ class ObjectStorageClient {
|
|
|
1117
1153
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1118
1154
|
"opc-client-request-id": deleteReplicationPolicyRequest.opcClientRequestId
|
|
1119
1155
|
};
|
|
1156
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "replicationId"]);
|
|
1157
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1120
1158
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1121
1159
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1122
1160
|
if (this.logger)
|
|
1123
1161
|
retrier.logger = this.logger;
|
|
1124
1162
|
const request = yield oci_common_2.composeRequest({
|
|
1125
|
-
baseEndpoint:
|
|
1163
|
+
baseEndpoint: endpoint,
|
|
1126
1164
|
defaultHeaders: this._defaultHeaders,
|
|
1127
1165
|
path: "/n/{namespaceName}/b/{bucketName}/replicationPolicies/{replicationId}",
|
|
1128
1166
|
method: "DELETE",
|
|
@@ -1160,7 +1198,7 @@ class ObjectStorageClient {
|
|
|
1160
1198
|
* @param DeleteRetentionRuleRequest
|
|
1161
1199
|
* @return DeleteRetentionRuleResponse
|
|
1162
1200
|
* @throws OciError when an error occurs
|
|
1163
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1201
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/DeleteRetentionRule.ts.html |here} to see how to use DeleteRetentionRule API.
|
|
1164
1202
|
*/
|
|
1165
1203
|
deleteRetentionRule(deleteRetentionRuleRequest) {
|
|
1166
1204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1179,12 +1217,14 @@ class ObjectStorageClient {
|
|
|
1179
1217
|
"if-match": deleteRetentionRuleRequest.ifMatch,
|
|
1180
1218
|
"opc-client-request-id": deleteRetentionRuleRequest.opcClientRequestId
|
|
1181
1219
|
};
|
|
1220
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "retentionRuleId"]);
|
|
1221
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1182
1222
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1183
1223
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1184
1224
|
if (this.logger)
|
|
1185
1225
|
retrier.logger = this.logger;
|
|
1186
1226
|
const request = yield oci_common_2.composeRequest({
|
|
1187
|
-
baseEndpoint:
|
|
1227
|
+
baseEndpoint: endpoint,
|
|
1188
1228
|
defaultHeaders: this._defaultHeaders,
|
|
1189
1229
|
path: "/n/{namespaceName}/b/{bucketName}/retentionRules/{retentionRuleId}",
|
|
1190
1230
|
method: "DELETE",
|
|
@@ -1223,7 +1263,7 @@ class ObjectStorageClient {
|
|
|
1223
1263
|
* @param GetBucketRequest
|
|
1224
1264
|
* @return GetBucketResponse
|
|
1225
1265
|
* @throws OciError when an error occurs
|
|
1226
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1266
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetBucket.ts.html |here} to see how to use GetBucket API.
|
|
1227
1267
|
*/
|
|
1228
1268
|
getBucket(getBucketRequest) {
|
|
1229
1269
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1244,12 +1284,14 @@ class ObjectStorageClient {
|
|
|
1244
1284
|
"if-none-match": getBucketRequest.ifNoneMatch,
|
|
1245
1285
|
"opc-client-request-id": getBucketRequest.opcClientRequestId
|
|
1246
1286
|
};
|
|
1287
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
1288
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1247
1289
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1248
1290
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
1249
1291
|
if (this.logger)
|
|
1250
1292
|
retrier.logger = this.logger;
|
|
1251
1293
|
const request = yield oci_common_2.composeRequest({
|
|
1252
|
-
baseEndpoint:
|
|
1294
|
+
baseEndpoint: endpoint,
|
|
1253
1295
|
defaultHeaders: this._defaultHeaders,
|
|
1254
1296
|
path: "/n/{namespaceName}/b/{bucketName}",
|
|
1255
1297
|
method: "GET",
|
|
@@ -1303,7 +1345,7 @@ class ObjectStorageClient {
|
|
|
1303
1345
|
* @param GetNamespaceRequest
|
|
1304
1346
|
* @return GetNamespaceResponse
|
|
1305
1347
|
* @throws OciError when an error occurs
|
|
1306
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1348
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetNamespace.ts.html |here} to see how to use GetNamespace API.
|
|
1307
1349
|
*/
|
|
1308
1350
|
getNamespace(getNamespaceRequest) {
|
|
1309
1351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1319,12 +1361,14 @@ class ObjectStorageClient {
|
|
|
1319
1361
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1320
1362
|
"opc-client-request-id": getNamespaceRequest.opcClientRequestId
|
|
1321
1363
|
};
|
|
1364
|
+
const requiredParams = new Set([]);
|
|
1365
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1322
1366
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1323
1367
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamespaceRequest.retryConfiguration, specRetryConfiguration);
|
|
1324
1368
|
if (this.logger)
|
|
1325
1369
|
retrier.logger = this.logger;
|
|
1326
1370
|
const request = yield oci_common_2.composeRequest({
|
|
1327
|
-
baseEndpoint:
|
|
1371
|
+
baseEndpoint: endpoint,
|
|
1328
1372
|
defaultHeaders: this._defaultHeaders,
|
|
1329
1373
|
path: "/n",
|
|
1330
1374
|
method: "GET",
|
|
@@ -1362,7 +1406,7 @@ class ObjectStorageClient {
|
|
|
1362
1406
|
* @param GetNamespaceMetadataRequest
|
|
1363
1407
|
* @return GetNamespaceMetadataResponse
|
|
1364
1408
|
* @throws OciError when an error occurs
|
|
1365
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1409
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetNamespaceMetadata.ts.html |here} to see how to use GetNamespaceMetadata API.
|
|
1366
1410
|
*/
|
|
1367
1411
|
getNamespaceMetadata(getNamespaceMetadataRequest) {
|
|
1368
1412
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1378,12 +1422,14 @@ class ObjectStorageClient {
|
|
|
1378
1422
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1379
1423
|
"opc-client-request-id": getNamespaceMetadataRequest.opcClientRequestId
|
|
1380
1424
|
};
|
|
1425
|
+
const requiredParams = new Set(["namespaceName"]);
|
|
1426
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1381
1427
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1382
1428
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getNamespaceMetadataRequest.retryConfiguration, specRetryConfiguration);
|
|
1383
1429
|
if (this.logger)
|
|
1384
1430
|
retrier.logger = this.logger;
|
|
1385
1431
|
const request = yield oci_common_2.composeRequest({
|
|
1386
|
-
baseEndpoint:
|
|
1432
|
+
baseEndpoint: endpoint,
|
|
1387
1433
|
defaultHeaders: this._defaultHeaders,
|
|
1388
1434
|
path: "/n/{namespaceName}",
|
|
1389
1435
|
method: "GET",
|
|
@@ -1426,7 +1472,7 @@ class ObjectStorageClient {
|
|
|
1426
1472
|
* @param GetObjectRequest
|
|
1427
1473
|
* @return GetObjectResponse
|
|
1428
1474
|
* @throws OciError when an error occurs
|
|
1429
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1475
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetObject.ts.html |here} to see how to use GetObject API.
|
|
1430
1476
|
*/
|
|
1431
1477
|
getObject(getObjectRequest) {
|
|
1432
1478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1458,12 +1504,14 @@ class ObjectStorageClient {
|
|
|
1458
1504
|
"opc-sse-customer-key": getObjectRequest.opcSseCustomerKey,
|
|
1459
1505
|
"opc-sse-customer-key-sha256": getObjectRequest.opcSseCustomerKeySha256
|
|
1460
1506
|
};
|
|
1507
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
1508
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1461
1509
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1462
1510
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
1463
1511
|
if (this.logger)
|
|
1464
1512
|
retrier.logger = this.logger;
|
|
1465
1513
|
const request = yield oci_common_2.composeRequest({
|
|
1466
|
-
baseEndpoint:
|
|
1514
|
+
baseEndpoint: endpoint,
|
|
1467
1515
|
defaultHeaders: this._defaultHeaders,
|
|
1468
1516
|
path: "/n/{namespaceName}/b/{bucketName}/o/{objectName}",
|
|
1469
1517
|
method: "GET",
|
|
@@ -1593,7 +1641,7 @@ class ObjectStorageClient {
|
|
|
1593
1641
|
* @param GetObjectLifecyclePolicyRequest
|
|
1594
1642
|
* @return GetObjectLifecyclePolicyResponse
|
|
1595
1643
|
* @throws OciError when an error occurs
|
|
1596
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1644
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetObjectLifecyclePolicy.ts.html |here} to see how to use GetObjectLifecyclePolicy API.
|
|
1597
1645
|
*/
|
|
1598
1646
|
getObjectLifecyclePolicy(getObjectLifecyclePolicyRequest) {
|
|
1599
1647
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1610,12 +1658,14 @@ class ObjectStorageClient {
|
|
|
1610
1658
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1611
1659
|
"opc-client-request-id": getObjectLifecyclePolicyRequest.opcClientRequestId
|
|
1612
1660
|
};
|
|
1661
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
1662
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1613
1663
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1614
1664
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1615
1665
|
if (this.logger)
|
|
1616
1666
|
retrier.logger = this.logger;
|
|
1617
1667
|
const request = yield oci_common_2.composeRequest({
|
|
1618
|
-
baseEndpoint:
|
|
1668
|
+
baseEndpoint: endpoint,
|
|
1619
1669
|
defaultHeaders: this._defaultHeaders,
|
|
1620
1670
|
path: "/n/{namespaceName}/b/{bucketName}/l",
|
|
1621
1671
|
method: "GET",
|
|
@@ -1662,7 +1712,7 @@ class ObjectStorageClient {
|
|
|
1662
1712
|
* @param GetPreauthenticatedRequestRequest
|
|
1663
1713
|
* @return GetPreauthenticatedRequestResponse
|
|
1664
1714
|
* @throws OciError when an error occurs
|
|
1665
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1715
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetPreauthenticatedRequest.ts.html |here} to see how to use GetPreauthenticatedRequest API.
|
|
1666
1716
|
*/
|
|
1667
1717
|
getPreauthenticatedRequest(getPreauthenticatedRequestRequest) {
|
|
1668
1718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1680,12 +1730,14 @@ class ObjectStorageClient {
|
|
|
1680
1730
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1681
1731
|
"opc-client-request-id": getPreauthenticatedRequestRequest.opcClientRequestId
|
|
1682
1732
|
};
|
|
1733
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "parId"]);
|
|
1734
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1683
1735
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1684
1736
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPreauthenticatedRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1685
1737
|
if (this.logger)
|
|
1686
1738
|
retrier.logger = this.logger;
|
|
1687
1739
|
const request = yield oci_common_2.composeRequest({
|
|
1688
|
-
baseEndpoint:
|
|
1740
|
+
baseEndpoint: endpoint,
|
|
1689
1741
|
defaultHeaders: this._defaultHeaders,
|
|
1690
1742
|
path: "/n/{namespaceName}/b/{bucketName}/p/{parId}",
|
|
1691
1743
|
method: "GET",
|
|
@@ -1728,7 +1780,7 @@ class ObjectStorageClient {
|
|
|
1728
1780
|
* @param GetReplicationPolicyRequest
|
|
1729
1781
|
* @return GetReplicationPolicyResponse
|
|
1730
1782
|
* @throws OciError when an error occurs
|
|
1731
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1783
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetReplicationPolicy.ts.html |here} to see how to use GetReplicationPolicy API.
|
|
1732
1784
|
*/
|
|
1733
1785
|
getReplicationPolicy(getReplicationPolicyRequest) {
|
|
1734
1786
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1746,12 +1798,14 @@ class ObjectStorageClient {
|
|
|
1746
1798
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1747
1799
|
"opc-client-request-id": getReplicationPolicyRequest.opcClientRequestId
|
|
1748
1800
|
};
|
|
1801
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "replicationId"]);
|
|
1802
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1749
1803
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1750
1804
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicationPolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
1751
1805
|
if (this.logger)
|
|
1752
1806
|
retrier.logger = this.logger;
|
|
1753
1807
|
const request = yield oci_common_2.composeRequest({
|
|
1754
|
-
baseEndpoint:
|
|
1808
|
+
baseEndpoint: endpoint,
|
|
1755
1809
|
defaultHeaders: this._defaultHeaders,
|
|
1756
1810
|
path: "/n/{namespaceName}/b/{bucketName}/replicationPolicies/{replicationId}",
|
|
1757
1811
|
method: "GET",
|
|
@@ -1793,7 +1847,7 @@ class ObjectStorageClient {
|
|
|
1793
1847
|
* @param GetRetentionRuleRequest
|
|
1794
1848
|
* @return GetRetentionRuleResponse
|
|
1795
1849
|
* @throws OciError when an error occurs
|
|
1796
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1850
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetRetentionRule.ts.html |here} to see how to use GetRetentionRule API.
|
|
1797
1851
|
*/
|
|
1798
1852
|
getRetentionRule(getRetentionRuleRequest) {
|
|
1799
1853
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1811,12 +1865,14 @@ class ObjectStorageClient {
|
|
|
1811
1865
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1812
1866
|
"opc-client-request-id": getRetentionRuleRequest.opcClientRequestId
|
|
1813
1867
|
};
|
|
1868
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "retentionRuleId"]);
|
|
1869
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1814
1870
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1815
1871
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
1816
1872
|
if (this.logger)
|
|
1817
1873
|
retrier.logger = this.logger;
|
|
1818
1874
|
const request = yield oci_common_2.composeRequest({
|
|
1819
|
-
baseEndpoint:
|
|
1875
|
+
baseEndpoint: endpoint,
|
|
1820
1876
|
defaultHeaders: this._defaultHeaders,
|
|
1821
1877
|
path: "/n/{namespaceName}/b/{bucketName}/retentionRules/{retentionRuleId}",
|
|
1822
1878
|
method: "GET",
|
|
@@ -1868,7 +1924,7 @@ class ObjectStorageClient {
|
|
|
1868
1924
|
* @param GetWorkRequestRequest
|
|
1869
1925
|
* @return GetWorkRequestResponse
|
|
1870
1926
|
* @throws OciError when an error occurs
|
|
1871
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1927
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1872
1928
|
*/
|
|
1873
1929
|
getWorkRequest(getWorkRequestRequest) {
|
|
1874
1930
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1884,12 +1940,14 @@ class ObjectStorageClient {
|
|
|
1884
1940
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1885
1941
|
"opc-client-request-id": getWorkRequestRequest.opcClientRequestId
|
|
1886
1942
|
};
|
|
1943
|
+
const requiredParams = new Set(["workRequestId"]);
|
|
1944
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1887
1945
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1888
1946
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1889
1947
|
if (this.logger)
|
|
1890
1948
|
retrier.logger = this.logger;
|
|
1891
1949
|
const request = yield oci_common_2.composeRequest({
|
|
1892
|
-
baseEndpoint:
|
|
1950
|
+
baseEndpoint: endpoint,
|
|
1893
1951
|
defaultHeaders: this._defaultHeaders,
|
|
1894
1952
|
path: "/workRequests/{workRequestId}",
|
|
1895
1953
|
method: "GET",
|
|
@@ -1937,7 +1995,7 @@ class ObjectStorageClient {
|
|
|
1937
1995
|
* @param HeadBucketRequest
|
|
1938
1996
|
* @return HeadBucketResponse
|
|
1939
1997
|
* @throws OciError when an error occurs
|
|
1940
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
1998
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/HeadBucket.ts.html |here} to see how to use HeadBucket API.
|
|
1941
1999
|
*/
|
|
1942
2000
|
headBucket(headBucketRequest) {
|
|
1943
2001
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1956,12 +2014,14 @@ class ObjectStorageClient {
|
|
|
1956
2014
|
"if-none-match": headBucketRequest.ifNoneMatch,
|
|
1957
2015
|
"opc-client-request-id": headBucketRequest.opcClientRequestId
|
|
1958
2016
|
};
|
|
2017
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
2018
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
1959
2019
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1960
2020
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
1961
2021
|
if (this.logger)
|
|
1962
2022
|
retrier.logger = this.logger;
|
|
1963
2023
|
const request = yield oci_common_2.composeRequest({
|
|
1964
|
-
baseEndpoint:
|
|
2024
|
+
baseEndpoint: endpoint,
|
|
1965
2025
|
defaultHeaders: this._defaultHeaders,
|
|
1966
2026
|
path: "/n/{namespaceName}/b/{bucketName}",
|
|
1967
2027
|
method: "HEAD",
|
|
@@ -2005,7 +2065,7 @@ class ObjectStorageClient {
|
|
|
2005
2065
|
* @param HeadObjectRequest
|
|
2006
2066
|
* @return HeadObjectResponse
|
|
2007
2067
|
* @throws OciError when an error occurs
|
|
2008
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
2068
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/HeadObject.ts.html |here} to see how to use HeadObject API.
|
|
2009
2069
|
*/
|
|
2010
2070
|
headObject(headObjectRequest) {
|
|
2011
2071
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2030,12 +2090,14 @@ class ObjectStorageClient {
|
|
|
2030
2090
|
"opc-sse-customer-key": headObjectRequest.opcSseCustomerKey,
|
|
2031
2091
|
"opc-sse-customer-key-sha256": headObjectRequest.opcSseCustomerKeySha256
|
|
2032
2092
|
};
|
|
2093
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
2094
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2033
2095
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2034
2096
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, headObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
2035
2097
|
if (this.logger)
|
|
2036
2098
|
retrier.logger = this.logger;
|
|
2037
2099
|
const request = yield oci_common_2.composeRequest({
|
|
2038
|
-
baseEndpoint:
|
|
2100
|
+
baseEndpoint: endpoint,
|
|
2039
2101
|
defaultHeaders: this._defaultHeaders,
|
|
2040
2102
|
path: "/n/{namespaceName}/b/{bucketName}/o/{objectName}",
|
|
2041
2103
|
method: "HEAD",
|
|
@@ -2160,7 +2222,7 @@ class ObjectStorageClient {
|
|
|
2160
2222
|
* @param ListBucketsRequest
|
|
2161
2223
|
* @return ListBucketsResponse
|
|
2162
2224
|
* @throws OciError when an error occurs
|
|
2163
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
2225
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListBuckets.ts.html |here} to see how to use ListBuckets API.
|
|
2164
2226
|
*/
|
|
2165
2227
|
listBuckets(listBucketsRequest) {
|
|
2166
2228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2181,12 +2243,14 @@ class ObjectStorageClient {
|
|
|
2181
2243
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2182
2244
|
"opc-client-request-id": listBucketsRequest.opcClientRequestId
|
|
2183
2245
|
};
|
|
2246
|
+
const requiredParams = new Set(["namespaceName", "compartmentId"]);
|
|
2247
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2184
2248
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2185
2249
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBucketsRequest.retryConfiguration, specRetryConfiguration);
|
|
2186
2250
|
if (this.logger)
|
|
2187
2251
|
retrier.logger = this.logger;
|
|
2188
2252
|
const request = yield oci_common_2.composeRequest({
|
|
2189
|
-
baseEndpoint:
|
|
2253
|
+
baseEndpoint: endpoint,
|
|
2190
2254
|
defaultHeaders: this._defaultHeaders,
|
|
2191
2255
|
path: "/n/{namespaceName}/b",
|
|
2192
2256
|
method: "GET",
|
|
@@ -2274,7 +2338,7 @@ class ObjectStorageClient {
|
|
|
2274
2338
|
* @param ListMultipartUploadPartsRequest
|
|
2275
2339
|
* @return ListMultipartUploadPartsResponse
|
|
2276
2340
|
* @throws OciError when an error occurs
|
|
2277
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
2341
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListMultipartUploadParts.ts.html |here} to see how to use ListMultipartUploadParts API.
|
|
2278
2342
|
*/
|
|
2279
2343
|
listMultipartUploadParts(listMultipartUploadPartsRequest) {
|
|
2280
2344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2296,12 +2360,19 @@ class ObjectStorageClient {
|
|
|
2296
2360
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2297
2361
|
"opc-client-request-id": listMultipartUploadPartsRequest.opcClientRequestId
|
|
2298
2362
|
};
|
|
2363
|
+
const requiredParams = new Set([
|
|
2364
|
+
"namespaceName",
|
|
2365
|
+
"bucketName",
|
|
2366
|
+
"objectName",
|
|
2367
|
+
"uploadId"
|
|
2368
|
+
]);
|
|
2369
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2299
2370
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2300
2371
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultipartUploadPartsRequest.retryConfiguration, specRetryConfiguration);
|
|
2301
2372
|
if (this.logger)
|
|
2302
2373
|
retrier.logger = this.logger;
|
|
2303
2374
|
const request = yield oci_common_2.composeRequest({
|
|
2304
|
-
baseEndpoint:
|
|
2375
|
+
baseEndpoint: endpoint,
|
|
2305
2376
|
defaultHeaders: this._defaultHeaders,
|
|
2306
2377
|
path: "/n/{namespaceName}/b/{bucketName}/u/{objectName}",
|
|
2307
2378
|
method: "GET",
|
|
@@ -2389,7 +2460,7 @@ class ObjectStorageClient {
|
|
|
2389
2460
|
* @param ListMultipartUploadsRequest
|
|
2390
2461
|
* @return ListMultipartUploadsResponse
|
|
2391
2462
|
* @throws OciError when an error occurs
|
|
2392
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
2463
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListMultipartUploads.ts.html |here} to see how to use ListMultipartUploads API.
|
|
2393
2464
|
*/
|
|
2394
2465
|
listMultipartUploads(listMultipartUploadsRequest) {
|
|
2395
2466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2409,12 +2480,14 @@ class ObjectStorageClient {
|
|
|
2409
2480
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2410
2481
|
"opc-client-request-id": listMultipartUploadsRequest.opcClientRequestId
|
|
2411
2482
|
};
|
|
2483
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
2484
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2412
2485
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2413
2486
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMultipartUploadsRequest.retryConfiguration, specRetryConfiguration);
|
|
2414
2487
|
if (this.logger)
|
|
2415
2488
|
retrier.logger = this.logger;
|
|
2416
2489
|
const request = yield oci_common_2.composeRequest({
|
|
2417
|
-
baseEndpoint:
|
|
2490
|
+
baseEndpoint: endpoint,
|
|
2418
2491
|
defaultHeaders: this._defaultHeaders,
|
|
2419
2492
|
path: "/n/{namespaceName}/b/{bucketName}/u",
|
|
2420
2493
|
method: "GET",
|
|
@@ -2509,7 +2582,7 @@ class ObjectStorageClient {
|
|
|
2509
2582
|
* @param ListObjectVersionsRequest
|
|
2510
2583
|
* @return ListObjectVersionsResponse
|
|
2511
2584
|
* @throws OciError when an error occurs
|
|
2512
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
2585
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListObjectVersions.ts.html |here} to see how to use ListObjectVersions API.
|
|
2513
2586
|
*/
|
|
2514
2587
|
listObjectVersions(listObjectVersionsRequest) {
|
|
2515
2588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2535,12 +2608,14 @@ class ObjectStorageClient {
|
|
|
2535
2608
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2536
2609
|
"opc-client-request-id": listObjectVersionsRequest.opcClientRequestId
|
|
2537
2610
|
};
|
|
2611
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
2612
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2538
2613
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2539
2614
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
2540
2615
|
if (this.logger)
|
|
2541
2616
|
retrier.logger = this.logger;
|
|
2542
2617
|
const request = yield oci_common_2.composeRequest({
|
|
2543
|
-
baseEndpoint:
|
|
2618
|
+
baseEndpoint: endpoint,
|
|
2544
2619
|
defaultHeaders: this._defaultHeaders,
|
|
2545
2620
|
path: "/n/{namespaceName}/b/{bucketName}/objectversions",
|
|
2546
2621
|
method: "GET",
|
|
@@ -2597,7 +2672,7 @@ class ObjectStorageClient {
|
|
|
2597
2672
|
* @param ListObjectsRequest
|
|
2598
2673
|
* @return ListObjectsResponse
|
|
2599
2674
|
* @throws OciError when an error occurs
|
|
2600
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
2675
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListObjects.ts.html |here} to see how to use ListObjects API.
|
|
2601
2676
|
*/
|
|
2602
2677
|
listObjects(listObjectsRequest) {
|
|
2603
2678
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2622,12 +2697,14 @@ class ObjectStorageClient {
|
|
|
2622
2697
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2623
2698
|
"opc-client-request-id": listObjectsRequest.opcClientRequestId
|
|
2624
2699
|
};
|
|
2700
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
2701
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2625
2702
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2626
2703
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listObjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
2627
2704
|
if (this.logger)
|
|
2628
2705
|
retrier.logger = this.logger;
|
|
2629
2706
|
const request = yield oci_common_2.composeRequest({
|
|
2630
|
-
baseEndpoint:
|
|
2707
|
+
baseEndpoint: endpoint,
|
|
2631
2708
|
defaultHeaders: this._defaultHeaders,
|
|
2632
2709
|
path: "/n/{namespaceName}/b/{bucketName}/o",
|
|
2633
2710
|
method: "GET",
|
|
@@ -2710,7 +2787,7 @@ class ObjectStorageClient {
|
|
|
2710
2787
|
* @param ListPreauthenticatedRequestsRequest
|
|
2711
2788
|
* @return ListPreauthenticatedRequestsResponse
|
|
2712
2789
|
* @throws OciError when an error occurs
|
|
2713
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
2790
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListPreauthenticatedRequests.ts.html |here} to see how to use ListPreauthenticatedRequests API.
|
|
2714
2791
|
*/
|
|
2715
2792
|
listPreauthenticatedRequests(listPreauthenticatedRequestsRequest) {
|
|
2716
2793
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2731,12 +2808,14 @@ class ObjectStorageClient {
|
|
|
2731
2808
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2732
2809
|
"opc-client-request-id": listPreauthenticatedRequestsRequest.opcClientRequestId
|
|
2733
2810
|
};
|
|
2811
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
2812
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2734
2813
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2735
2814
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPreauthenticatedRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
2736
2815
|
if (this.logger)
|
|
2737
2816
|
retrier.logger = this.logger;
|
|
2738
2817
|
const request = yield oci_common_2.composeRequest({
|
|
2739
|
-
baseEndpoint:
|
|
2818
|
+
baseEndpoint: endpoint,
|
|
2740
2819
|
defaultHeaders: this._defaultHeaders,
|
|
2741
2820
|
path: "/n/{namespaceName}/b/{bucketName}/p",
|
|
2742
2821
|
method: "GET",
|
|
@@ -2824,7 +2903,7 @@ class ObjectStorageClient {
|
|
|
2824
2903
|
* @param ListReplicationPoliciesRequest
|
|
2825
2904
|
* @return ListReplicationPoliciesResponse
|
|
2826
2905
|
* @throws OciError when an error occurs
|
|
2827
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
2906
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListReplicationPolicies.ts.html |here} to see how to use ListReplicationPolicies API.
|
|
2828
2907
|
*/
|
|
2829
2908
|
listReplicationPolicies(listReplicationPoliciesRequest) {
|
|
2830
2909
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2844,12 +2923,14 @@ class ObjectStorageClient {
|
|
|
2844
2923
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2845
2924
|
"opc-client-request-id": listReplicationPoliciesRequest.opcClientRequestId
|
|
2846
2925
|
};
|
|
2926
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
2927
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2847
2928
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2848
2929
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationPoliciesRequest.retryConfiguration, specRetryConfiguration);
|
|
2849
2930
|
if (this.logger)
|
|
2850
2931
|
retrier.logger = this.logger;
|
|
2851
2932
|
const request = yield oci_common_2.composeRequest({
|
|
2852
|
-
baseEndpoint:
|
|
2933
|
+
baseEndpoint: endpoint,
|
|
2853
2934
|
defaultHeaders: this._defaultHeaders,
|
|
2854
2935
|
path: "/n/{namespaceName}/b/{bucketName}/replicationPolicies",
|
|
2855
2936
|
method: "GET",
|
|
@@ -2937,7 +3018,7 @@ class ObjectStorageClient {
|
|
|
2937
3018
|
* @param ListReplicationSourcesRequest
|
|
2938
3019
|
* @return ListReplicationSourcesResponse
|
|
2939
3020
|
* @throws OciError when an error occurs
|
|
2940
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3021
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListReplicationSources.ts.html |here} to see how to use ListReplicationSources API.
|
|
2941
3022
|
*/
|
|
2942
3023
|
listReplicationSources(listReplicationSourcesRequest) {
|
|
2943
3024
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2957,12 +3038,14 @@ class ObjectStorageClient {
|
|
|
2957
3038
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2958
3039
|
"opc-client-request-id": listReplicationSourcesRequest.opcClientRequestId
|
|
2959
3040
|
};
|
|
3041
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3042
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
2960
3043
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2961
3044
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicationSourcesRequest.retryConfiguration, specRetryConfiguration);
|
|
2962
3045
|
if (this.logger)
|
|
2963
3046
|
retrier.logger = this.logger;
|
|
2964
3047
|
const request = yield oci_common_2.composeRequest({
|
|
2965
|
-
baseEndpoint:
|
|
3048
|
+
baseEndpoint: endpoint,
|
|
2966
3049
|
defaultHeaders: this._defaultHeaders,
|
|
2967
3050
|
path: "/n/{namespaceName}/b/{bucketName}/replicationSources",
|
|
2968
3051
|
method: "GET",
|
|
@@ -3051,7 +3134,7 @@ class ObjectStorageClient {
|
|
|
3051
3134
|
* @param ListRetentionRulesRequest
|
|
3052
3135
|
* @return ListRetentionRulesResponse
|
|
3053
3136
|
* @throws OciError when an error occurs
|
|
3054
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3137
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListRetentionRules.ts.html |here} to see how to use ListRetentionRules API.
|
|
3055
3138
|
*/
|
|
3056
3139
|
listRetentionRules(listRetentionRulesRequest) {
|
|
3057
3140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3069,12 +3152,14 @@ class ObjectStorageClient {
|
|
|
3069
3152
|
let headerParams = {
|
|
3070
3153
|
"Content-Type": common.Constants.APPLICATION_JSON
|
|
3071
3154
|
};
|
|
3155
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3156
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3072
3157
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3073
3158
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRetentionRulesRequest.retryConfiguration, specRetryConfiguration);
|
|
3074
3159
|
if (this.logger)
|
|
3075
3160
|
retrier.logger = this.logger;
|
|
3076
3161
|
const request = yield oci_common_2.composeRequest({
|
|
3077
|
-
baseEndpoint:
|
|
3162
|
+
baseEndpoint: endpoint,
|
|
3078
3163
|
defaultHeaders: this._defaultHeaders,
|
|
3079
3164
|
path: "/n/{namespaceName}/b/{bucketName}/retentionRules",
|
|
3080
3165
|
method: "GET",
|
|
@@ -3121,7 +3206,7 @@ class ObjectStorageClient {
|
|
|
3121
3206
|
* @param ListWorkRequestErrorsRequest
|
|
3122
3207
|
* @return ListWorkRequestErrorsResponse
|
|
3123
3208
|
* @throws OciError when an error occurs
|
|
3124
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3209
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
3125
3210
|
*/
|
|
3126
3211
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
3127
3212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3140,12 +3225,14 @@ class ObjectStorageClient {
|
|
|
3140
3225
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3141
3226
|
"opc-client-request-id": listWorkRequestErrorsRequest.opcClientRequestId
|
|
3142
3227
|
};
|
|
3228
|
+
const requiredParams = new Set(["workRequestId"]);
|
|
3229
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3143
3230
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3144
3231
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
3145
3232
|
if (this.logger)
|
|
3146
3233
|
retrier.logger = this.logger;
|
|
3147
3234
|
const request = yield oci_common_2.composeRequest({
|
|
3148
|
-
baseEndpoint:
|
|
3235
|
+
baseEndpoint: endpoint,
|
|
3149
3236
|
defaultHeaders: this._defaultHeaders,
|
|
3150
3237
|
path: "/workRequests/{workRequestId}/errors",
|
|
3151
3238
|
method: "GET",
|
|
@@ -3232,7 +3319,7 @@ class ObjectStorageClient {
|
|
|
3232
3319
|
* @param ListWorkRequestLogsRequest
|
|
3233
3320
|
* @return ListWorkRequestLogsResponse
|
|
3234
3321
|
* @throws OciError when an error occurs
|
|
3235
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3322
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
3236
3323
|
*/
|
|
3237
3324
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
3238
3325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3251,12 +3338,14 @@ class ObjectStorageClient {
|
|
|
3251
3338
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3252
3339
|
"opc-client-request-id": listWorkRequestLogsRequest.opcClientRequestId
|
|
3253
3340
|
};
|
|
3341
|
+
const requiredParams = new Set(["workRequestId"]);
|
|
3342
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3254
3343
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3255
3344
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
3256
3345
|
if (this.logger)
|
|
3257
3346
|
retrier.logger = this.logger;
|
|
3258
3347
|
const request = yield oci_common_2.composeRequest({
|
|
3259
|
-
baseEndpoint:
|
|
3348
|
+
baseEndpoint: endpoint,
|
|
3260
3349
|
defaultHeaders: this._defaultHeaders,
|
|
3261
3350
|
path: "/workRequests/{workRequestId}/logs",
|
|
3262
3351
|
method: "GET",
|
|
@@ -3344,7 +3433,7 @@ class ObjectStorageClient {
|
|
|
3344
3433
|
* @param ListWorkRequestsRequest
|
|
3345
3434
|
* @return ListWorkRequestsResponse
|
|
3346
3435
|
* @throws OciError when an error occurs
|
|
3347
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3436
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
3348
3437
|
*/
|
|
3349
3438
|
listWorkRequests(listWorkRequestsRequest) {
|
|
3350
3439
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3362,12 +3451,14 @@ class ObjectStorageClient {
|
|
|
3362
3451
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3363
3452
|
"opc-client-request-id": listWorkRequestsRequest.opcClientRequestId
|
|
3364
3453
|
};
|
|
3454
|
+
const requiredParams = new Set(["compartmentId"]);
|
|
3455
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3365
3456
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3366
3457
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
3367
3458
|
if (this.logger)
|
|
3368
3459
|
retrier.logger = this.logger;
|
|
3369
3460
|
const request = yield oci_common_2.composeRequest({
|
|
3370
|
-
baseEndpoint:
|
|
3461
|
+
baseEndpoint: endpoint,
|
|
3371
3462
|
defaultHeaders: this._defaultHeaders,
|
|
3372
3463
|
path: "/workRequests",
|
|
3373
3464
|
method: "GET",
|
|
@@ -3458,7 +3549,7 @@ class ObjectStorageClient {
|
|
|
3458
3549
|
* @param MakeBucketWritableRequest
|
|
3459
3550
|
* @return MakeBucketWritableResponse
|
|
3460
3551
|
* @throws OciError when an error occurs
|
|
3461
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3552
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/MakeBucketWritable.ts.html |here} to see how to use MakeBucketWritable API.
|
|
3462
3553
|
*/
|
|
3463
3554
|
makeBucketWritable(makeBucketWritableRequest) {
|
|
3464
3555
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3475,12 +3566,14 @@ class ObjectStorageClient {
|
|
|
3475
3566
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3476
3567
|
"opc-client-request-id": makeBucketWritableRequest.opcClientRequestId
|
|
3477
3568
|
};
|
|
3569
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3570
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3478
3571
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3479
3572
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, makeBucketWritableRequest.retryConfiguration, specRetryConfiguration);
|
|
3480
3573
|
if (this.logger)
|
|
3481
3574
|
retrier.logger = this.logger;
|
|
3482
3575
|
const request = yield oci_common_2.composeRequest({
|
|
3483
|
-
baseEndpoint:
|
|
3576
|
+
baseEndpoint: endpoint,
|
|
3484
3577
|
defaultHeaders: this._defaultHeaders,
|
|
3485
3578
|
path: "/n/{namespaceName}/b/{bucketName}/actions/makeBucketWritable",
|
|
3486
3579
|
method: "POST",
|
|
@@ -3526,7 +3619,7 @@ class ObjectStorageClient {
|
|
|
3526
3619
|
* @param PutObjectRequest
|
|
3527
3620
|
* @return PutObjectResponse
|
|
3528
3621
|
* @throws OciError when an error occurs
|
|
3529
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3622
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/PutObject.ts.html |here} to see how to use PutObject API.
|
|
3530
3623
|
*/
|
|
3531
3624
|
putObject(putObjectRequest) {
|
|
3532
3625
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3563,12 +3656,14 @@ class ObjectStorageClient {
|
|
|
3563
3656
|
Object.assign(headerParams, { ["opc-meta-" + key]: value });
|
|
3564
3657
|
});
|
|
3565
3658
|
}
|
|
3659
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
3660
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3566
3661
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3567
3662
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
3568
3663
|
if (this.logger)
|
|
3569
3664
|
retrier.logger = this.logger;
|
|
3570
3665
|
const request = yield oci_common_2.composeRequest({
|
|
3571
|
-
baseEndpoint:
|
|
3666
|
+
baseEndpoint: endpoint,
|
|
3572
3667
|
defaultHeaders: this._defaultHeaders,
|
|
3573
3668
|
path: "/n/{namespaceName}/b/{bucketName}/o/{objectName}",
|
|
3574
3669
|
method: "PUT",
|
|
@@ -3629,7 +3724,7 @@ class ObjectStorageClient {
|
|
|
3629
3724
|
* @param PutObjectLifecyclePolicyRequest
|
|
3630
3725
|
* @return PutObjectLifecyclePolicyResponse
|
|
3631
3726
|
* @throws OciError when an error occurs
|
|
3632
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3727
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/PutObjectLifecyclePolicy.ts.html |here} to see how to use PutObjectLifecyclePolicy API.
|
|
3633
3728
|
*/
|
|
3634
3729
|
putObjectLifecyclePolicy(putObjectLifecyclePolicyRequest) {
|
|
3635
3730
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3648,12 +3743,14 @@ class ObjectStorageClient {
|
|
|
3648
3743
|
"if-match": putObjectLifecyclePolicyRequest.ifMatch,
|
|
3649
3744
|
"if-none-match": putObjectLifecyclePolicyRequest.ifNoneMatch
|
|
3650
3745
|
};
|
|
3746
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3747
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3651
3748
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3652
3749
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putObjectLifecyclePolicyRequest.retryConfiguration, specRetryConfiguration);
|
|
3653
3750
|
if (this.logger)
|
|
3654
3751
|
retrier.logger = this.logger;
|
|
3655
3752
|
const request = yield oci_common_2.composeRequest({
|
|
3656
|
-
baseEndpoint:
|
|
3753
|
+
baseEndpoint: endpoint,
|
|
3657
3754
|
defaultHeaders: this._defaultHeaders,
|
|
3658
3755
|
path: "/n/{namespaceName}/b/{bucketName}/l",
|
|
3659
3756
|
method: "PUT",
|
|
@@ -3716,7 +3813,7 @@ class ObjectStorageClient {
|
|
|
3716
3813
|
* @param ReencryptBucketRequest
|
|
3717
3814
|
* @return ReencryptBucketResponse
|
|
3718
3815
|
* @throws OciError when an error occurs
|
|
3719
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3816
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ReencryptBucket.ts.html |here} to see how to use ReencryptBucket API.
|
|
3720
3817
|
*/
|
|
3721
3818
|
reencryptBucket(reencryptBucketRequest) {
|
|
3722
3819
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3733,12 +3830,14 @@ class ObjectStorageClient {
|
|
|
3733
3830
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3734
3831
|
"opc-client-request-id": reencryptBucketRequest.opcClientRequestId
|
|
3735
3832
|
};
|
|
3833
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3834
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3736
3835
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3737
3836
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reencryptBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
3738
3837
|
if (this.logger)
|
|
3739
3838
|
retrier.logger = this.logger;
|
|
3740
3839
|
const request = yield oci_common_2.composeRequest({
|
|
3741
|
-
baseEndpoint:
|
|
3840
|
+
baseEndpoint: endpoint,
|
|
3742
3841
|
defaultHeaders: this._defaultHeaders,
|
|
3743
3842
|
path: "/n/{namespaceName}/b/{bucketName}/actions/reencrypt",
|
|
3744
3843
|
method: "POST",
|
|
@@ -3790,7 +3889,7 @@ class ObjectStorageClient {
|
|
|
3790
3889
|
* @param ReencryptObjectRequest
|
|
3791
3890
|
* @return ReencryptObjectResponse
|
|
3792
3891
|
* @throws OciError when an error occurs
|
|
3793
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3892
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/ReencryptObject.ts.html |here} to see how to use ReencryptObject API.
|
|
3794
3893
|
*/
|
|
3795
3894
|
reencryptObject(reencryptObjectRequest) {
|
|
3796
3895
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3810,12 +3909,14 @@ class ObjectStorageClient {
|
|
|
3810
3909
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3811
3910
|
"opc-client-request-id": reencryptObjectRequest.opcClientRequestId
|
|
3812
3911
|
};
|
|
3912
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "objectName"]);
|
|
3913
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3813
3914
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3814
3915
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, reencryptObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
3815
3916
|
if (this.logger)
|
|
3816
3917
|
retrier.logger = this.logger;
|
|
3817
3918
|
const request = yield oci_common_2.composeRequest({
|
|
3818
|
-
baseEndpoint:
|
|
3919
|
+
baseEndpoint: endpoint,
|
|
3819
3920
|
defaultHeaders: this._defaultHeaders,
|
|
3820
3921
|
path: "/n/{namespaceName}/b/{bucketName}/actions/reencrypt/{objectName}",
|
|
3821
3922
|
method: "POST",
|
|
@@ -3858,7 +3959,7 @@ class ObjectStorageClient {
|
|
|
3858
3959
|
* @param RenameObjectRequest
|
|
3859
3960
|
* @return RenameObjectResponse
|
|
3860
3961
|
* @throws OciError when an error occurs
|
|
3861
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
3962
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/RenameObject.ts.html |here} to see how to use RenameObject API.
|
|
3862
3963
|
*/
|
|
3863
3964
|
renameObject(renameObjectRequest) {
|
|
3864
3965
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3875,12 +3976,14 @@ class ObjectStorageClient {
|
|
|
3875
3976
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3876
3977
|
"opc-client-request-id": renameObjectRequest.opcClientRequestId
|
|
3877
3978
|
};
|
|
3979
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
3980
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3878
3981
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3879
3982
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, renameObjectRequest.retryConfiguration, specRetryConfiguration);
|
|
3880
3983
|
if (this.logger)
|
|
3881
3984
|
retrier.logger = this.logger;
|
|
3882
3985
|
const request = yield oci_common_2.composeRequest({
|
|
3883
|
-
baseEndpoint:
|
|
3986
|
+
baseEndpoint: endpoint,
|
|
3884
3987
|
defaultHeaders: this._defaultHeaders,
|
|
3885
3988
|
path: "/n/{namespaceName}/b/{bucketName}/actions/renameObject",
|
|
3886
3989
|
method: "POST",
|
|
@@ -3936,7 +4039,7 @@ class ObjectStorageClient {
|
|
|
3936
4039
|
* @param RestoreObjectsRequest
|
|
3937
4040
|
* @return RestoreObjectsResponse
|
|
3938
4041
|
* @throws OciError when an error occurs
|
|
3939
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
4042
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/RestoreObjects.ts.html |here} to see how to use RestoreObjects API.
|
|
3940
4043
|
*/
|
|
3941
4044
|
restoreObjects(restoreObjectsRequest) {
|
|
3942
4045
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3953,12 +4056,14 @@ class ObjectStorageClient {
|
|
|
3953
4056
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3954
4057
|
"opc-client-request-id": restoreObjectsRequest.opcClientRequestId
|
|
3955
4058
|
};
|
|
4059
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4060
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
3956
4061
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3957
4062
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restoreObjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
3958
4063
|
if (this.logger)
|
|
3959
4064
|
retrier.logger = this.logger;
|
|
3960
4065
|
const request = yield oci_common_2.composeRequest({
|
|
3961
|
-
baseEndpoint:
|
|
4066
|
+
baseEndpoint: endpoint,
|
|
3962
4067
|
defaultHeaders: this._defaultHeaders,
|
|
3963
4068
|
path: "/n/{namespaceName}/b/{bucketName}/actions/restoreObjects",
|
|
3964
4069
|
method: "POST",
|
|
@@ -4002,7 +4107,7 @@ class ObjectStorageClient {
|
|
|
4002
4107
|
* @param UpdateBucketRequest
|
|
4003
4108
|
* @return UpdateBucketResponse
|
|
4004
4109
|
* @throws OciError when an error occurs
|
|
4005
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
4110
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/UpdateBucket.ts.html |here} to see how to use UpdateBucket API.
|
|
4006
4111
|
*/
|
|
4007
4112
|
updateBucket(updateBucketRequest) {
|
|
4008
4113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4020,12 +4125,14 @@ class ObjectStorageClient {
|
|
|
4020
4125
|
"if-match": updateBucketRequest.ifMatch,
|
|
4021
4126
|
"opc-client-request-id": updateBucketRequest.opcClientRequestId
|
|
4022
4127
|
};
|
|
4128
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4129
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
4023
4130
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4024
4131
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBucketRequest.retryConfiguration, specRetryConfiguration);
|
|
4025
4132
|
if (this.logger)
|
|
4026
4133
|
retrier.logger = this.logger;
|
|
4027
4134
|
const request = yield oci_common_2.composeRequest({
|
|
4028
|
-
baseEndpoint:
|
|
4135
|
+
baseEndpoint: endpoint,
|
|
4029
4136
|
defaultHeaders: this._defaultHeaders,
|
|
4030
4137
|
path: "/n/{namespaceName}/b/{bucketName}",
|
|
4031
4138
|
method: "POST",
|
|
@@ -4080,7 +4187,7 @@ class ObjectStorageClient {
|
|
|
4080
4187
|
* @param UpdateNamespaceMetadataRequest
|
|
4081
4188
|
* @return UpdateNamespaceMetadataResponse
|
|
4082
4189
|
* @throws OciError when an error occurs
|
|
4083
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
4190
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/UpdateNamespaceMetadata.ts.html |here} to see how to use UpdateNamespaceMetadata API.
|
|
4084
4191
|
*/
|
|
4085
4192
|
updateNamespaceMetadata(updateNamespaceMetadataRequest) {
|
|
4086
4193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4096,12 +4203,14 @@ class ObjectStorageClient {
|
|
|
4096
4203
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4097
4204
|
"opc-client-request-id": updateNamespaceMetadataRequest.opcClientRequestId
|
|
4098
4205
|
};
|
|
4206
|
+
const requiredParams = new Set(["namespaceName"]);
|
|
4207
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
4099
4208
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4100
4209
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateNamespaceMetadataRequest.retryConfiguration, specRetryConfiguration);
|
|
4101
4210
|
if (this.logger)
|
|
4102
4211
|
retrier.logger = this.logger;
|
|
4103
4212
|
const request = yield oci_common_2.composeRequest({
|
|
4104
|
-
baseEndpoint:
|
|
4213
|
+
baseEndpoint: endpoint,
|
|
4105
4214
|
defaultHeaders: this._defaultHeaders,
|
|
4106
4215
|
path: "/n/{namespaceName}",
|
|
4107
4216
|
method: "PUT",
|
|
@@ -4145,7 +4254,7 @@ class ObjectStorageClient {
|
|
|
4145
4254
|
* @param UpdateObjectStorageTierRequest
|
|
4146
4255
|
* @return UpdateObjectStorageTierResponse
|
|
4147
4256
|
* @throws OciError when an error occurs
|
|
4148
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
4257
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/UpdateObjectStorageTier.ts.html |here} to see how to use UpdateObjectStorageTier API.
|
|
4149
4258
|
*/
|
|
4150
4259
|
updateObjectStorageTier(updateObjectStorageTierRequest) {
|
|
4151
4260
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4162,12 +4271,14 @@ class ObjectStorageClient {
|
|
|
4162
4271
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4163
4272
|
"opc-client-request-id": updateObjectStorageTierRequest.opcClientRequestId
|
|
4164
4273
|
};
|
|
4274
|
+
const requiredParams = new Set(["namespaceName", "bucketName"]);
|
|
4275
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
4165
4276
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4166
4277
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateObjectStorageTierRequest.retryConfiguration, specRetryConfiguration);
|
|
4167
4278
|
if (this.logger)
|
|
4168
4279
|
retrier.logger = this.logger;
|
|
4169
4280
|
const request = yield oci_common_2.composeRequest({
|
|
4170
|
-
baseEndpoint:
|
|
4281
|
+
baseEndpoint: endpoint,
|
|
4171
4282
|
defaultHeaders: this._defaultHeaders,
|
|
4172
4283
|
path: "/n/{namespaceName}/b/{bucketName}/actions/updateObjectStorageTier",
|
|
4173
4284
|
method: "POST",
|
|
@@ -4207,7 +4318,7 @@ class ObjectStorageClient {
|
|
|
4207
4318
|
* @param UpdateRetentionRuleRequest
|
|
4208
4319
|
* @return UpdateRetentionRuleResponse
|
|
4209
4320
|
* @throws OciError when an error occurs
|
|
4210
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
4321
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/UpdateRetentionRule.ts.html |here} to see how to use UpdateRetentionRule API.
|
|
4211
4322
|
*/
|
|
4212
4323
|
updateRetentionRule(updateRetentionRuleRequest) {
|
|
4213
4324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4226,12 +4337,14 @@ class ObjectStorageClient {
|
|
|
4226
4337
|
"if-match": updateRetentionRuleRequest.ifMatch,
|
|
4227
4338
|
"opc-client-request-id": updateRetentionRuleRequest.opcClientRequestId
|
|
4228
4339
|
};
|
|
4340
|
+
const requiredParams = new Set(["namespaceName", "bucketName", "retentionRuleId"]);
|
|
4341
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
4229
4342
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4230
4343
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRetentionRuleRequest.retryConfiguration, specRetryConfiguration);
|
|
4231
4344
|
if (this.logger)
|
|
4232
4345
|
retrier.logger = this.logger;
|
|
4233
4346
|
const request = yield oci_common_2.composeRequest({
|
|
4234
|
-
baseEndpoint:
|
|
4347
|
+
baseEndpoint: endpoint,
|
|
4235
4348
|
defaultHeaders: this._defaultHeaders,
|
|
4236
4349
|
path: "/n/{namespaceName}/b/{bucketName}/retentionRules/{retentionRuleId}",
|
|
4237
4350
|
method: "PUT",
|
|
@@ -4280,7 +4393,7 @@ class ObjectStorageClient {
|
|
|
4280
4393
|
* @param UploadPartRequest
|
|
4281
4394
|
* @return UploadPartResponse
|
|
4282
4395
|
* @throws OciError when an error occurs
|
|
4283
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.
|
|
4396
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.62.2/objectstorage/UploadPart.ts.html |here} to see how to use UploadPart API.
|
|
4284
4397
|
*/
|
|
4285
4398
|
uploadPart(uploadPartRequest) {
|
|
4286
4399
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -4309,12 +4422,20 @@ class ObjectStorageClient {
|
|
|
4309
4422
|
"opc-sse-customer-key-sha256": uploadPartRequest.opcSseCustomerKeySha256,
|
|
4310
4423
|
"opc-sse-kms-key-id": uploadPartRequest.opcSseKmsKeyId
|
|
4311
4424
|
};
|
|
4425
|
+
const requiredParams = new Set([
|
|
4426
|
+
"namespaceName",
|
|
4427
|
+
"bucketName",
|
|
4428
|
+
"objectName",
|
|
4429
|
+
"uploadId",
|
|
4430
|
+
"uploadPartNum"
|
|
4431
|
+
]);
|
|
4432
|
+
let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
|
|
4312
4433
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4313
4434
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadPartRequest.retryConfiguration, specRetryConfiguration);
|
|
4314
4435
|
if (this.logger)
|
|
4315
4436
|
retrier.logger = this.logger;
|
|
4316
4437
|
const request = yield oci_common_2.composeRequest({
|
|
4317
|
-
baseEndpoint:
|
|
4438
|
+
baseEndpoint: endpoint,
|
|
4318
4439
|
defaultHeaders: this._defaultHeaders,
|
|
4319
4440
|
path: "/n/{namespaceName}/b/{bucketName}/u/{objectName}",
|
|
4320
4441
|
method: "PUT",
|
|
@@ -4361,5 +4482,8 @@ class ObjectStorageClient {
|
|
|
4361
4482
|
}
|
|
4362
4483
|
exports.ObjectStorageClient = ObjectStorageClient;
|
|
4363
4484
|
ObjectStorageClient.serviceEndpointTemplate = "https://objectstorage.{region}.{secondLevelDomain}";
|
|
4364
|
-
ObjectStorageClient.endpointServiceName = "";
|
|
4485
|
+
ObjectStorageClient.endpointServiceName = "objectstorage";
|
|
4486
|
+
ObjectStorageClient.serviceEndpointTemplatePerRealm = {
|
|
4487
|
+
"oc1": "https://{namespaceName+Dot}objectstorage.{region}.oci.customer-oci.com"
|
|
4488
|
+
};
|
|
4365
4489
|
//# sourceMappingURL=client.js.map
|