oci-objectstorage 2.92.0 → 2.93.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/lib/client.d.ts +94 -2
  2. package/lib/client.js +411 -2
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/access-target-details.d.ts +39 -0
  5. package/lib/model/access-target-details.js +32 -0
  6. package/lib/model/access-target-details.js.map +1 -0
  7. package/lib/model/create-private-endpoint-details.d.ts +96 -0
  8. package/lib/model/create-private-endpoint-details.js +64 -0
  9. package/lib/model/create-private-endpoint-details.js.map +1 -0
  10. package/lib/model/fqdns.d.ts +34 -0
  11. package/lib/model/fqdns.js +65 -0
  12. package/lib/model/fqdns.js.map +1 -0
  13. package/lib/model/index.d.ts +14 -0
  14. package/lib/model/index.js +16 -1
  15. package/lib/model/index.js.map +1 -1
  16. package/lib/model/prefix-fqdns.d.ts +40 -0
  17. package/lib/model/prefix-fqdns.js +32 -0
  18. package/lib/model/prefix-fqdns.js.map +1 -0
  19. package/lib/model/private-endpoint-summary.d.ts +70 -0
  20. package/lib/model/private-endpoint-summary.js +56 -0
  21. package/lib/model/private-endpoint-summary.js.map +1 -0
  22. package/lib/model/private-endpoint.d.ts +140 -0
  23. package/lib/model/private-endpoint.js +81 -0
  24. package/lib/model/private-endpoint.js.map +1 -0
  25. package/lib/model/update-private-endpoint-details.d.ts +62 -0
  26. package/lib/model/update-private-endpoint-details.js +64 -0
  27. package/lib/model/update-private-endpoint-details.js.map +1 -0
  28. package/lib/model/work-request-resource-metadata-key.d.ts +2 -1
  29. package/lib/model/work-request-resource-metadata-key.js +1 -0
  30. package/lib/model/work-request-resource-metadata-key.js.map +1 -1
  31. package/lib/model/work-request-summary.d.ts +3 -0
  32. package/lib/model/work-request-summary.js +3 -0
  33. package/lib/model/work-request-summary.js.map +1 -1
  34. package/lib/model/work-request.d.ts +3 -0
  35. package/lib/model/work-request.js +3 -0
  36. package/lib/model/work-request.js.map +1 -1
  37. package/lib/objectstorage-waiter.d.ts +9 -0
  38. package/lib/objectstorage-waiter.js +32 -0
  39. package/lib/objectstorage-waiter.js.map +1 -1
  40. package/lib/request/create-private-endpoint-request.d.ts +31 -0
  41. package/lib/request/create-private-endpoint-request.js +15 -0
  42. package/lib/request/create-private-endpoint-request.js.map +1 -0
  43. package/lib/request/delete-private-endpoint-request.d.ts +39 -0
  44. package/lib/request/delete-private-endpoint-request.js +15 -0
  45. package/lib/request/delete-private-endpoint-request.js.map +1 -0
  46. package/lib/request/get-private-endpoint-request.d.ts +46 -0
  47. package/lib/request/get-private-endpoint-request.js +15 -0
  48. package/lib/request/get-private-endpoint-request.js.map +1 -0
  49. package/lib/request/index.d.ts +10 -0
  50. package/lib/request/index.js +3 -1
  51. package/lib/request/index.js.map +1 -1
  52. package/lib/request/list-object-versions-request.d.ts +3 -3
  53. package/lib/request/list-objects-request.d.ts +3 -3
  54. package/lib/request/list-private-endpoints-request.d.ts +60 -0
  55. package/lib/request/list-private-endpoints-request.js +23 -0
  56. package/lib/request/list-private-endpoints-request.js.map +1 -0
  57. package/lib/request/list-work-requests-request.d.ts +4 -0
  58. package/lib/request/put-object-request.d.ts +1 -1
  59. package/lib/request/restore-objects-request.d.ts +1 -1
  60. package/lib/request/update-private-endpoint-request.d.ts +44 -0
  61. package/lib/request/update-private-endpoint-request.js +15 -0
  62. package/lib/request/update-private-endpoint-request.js.map +1 -0
  63. package/lib/request/upload-part-request.d.ts +1 -1
  64. package/lib/response/commit-multipart-upload-response.d.ts +1 -1
  65. package/lib/response/create-private-endpoint-response.d.ts +30 -0
  66. package/lib/response/create-private-endpoint-response.js +15 -0
  67. package/lib/response/create-private-endpoint-response.js.map +1 -0
  68. package/lib/response/delete-private-endpoint-response.d.ts +30 -0
  69. package/lib/response/delete-private-endpoint-response.js +15 -0
  70. package/lib/response/delete-private-endpoint-response.js.map +1 -0
  71. package/lib/response/get-private-endpoint-response.d.ts +40 -0
  72. package/lib/response/get-private-endpoint-response.js +15 -0
  73. package/lib/response/get-private-endpoint-response.js.map +1 -0
  74. package/lib/response/index.d.ts +10 -0
  75. package/lib/response/list-private-endpoints-response.d.ts +40 -0
  76. package/lib/response/list-private-endpoints-response.js +15 -0
  77. package/lib/response/list-private-endpoints-response.js.map +1 -0
  78. package/lib/response/put-object-response.d.ts +1 -1
  79. package/lib/response/update-private-endpoint-response.d.ts +30 -0
  80. package/lib/response/update-private-endpoint-response.js +15 -0
  81. package/lib/response/update-private-endpoint-response.js.map +1 -0
  82. package/package.json +3 -3
package/lib/client.d.ts CHANGED
@@ -173,6 +173,16 @@ export declare class ObjectStorageClient {
173
173
  * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/CreatePreauthenticatedRequest.ts.html |here} to see how to use CreatePreauthenticatedRequest API.
174
174
  */
175
175
  createPreauthenticatedRequest(createPreauthenticatedRequestRequest: requests.CreatePreauthenticatedRequestRequest): Promise<responses.CreatePreauthenticatedRequestResponse>;
176
+ /**
177
+ * Create a PrivateEndpoint.
178
+ *
179
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
180
+ * @param CreatePrivateEndpointRequest
181
+ * @return CreatePrivateEndpointResponse
182
+ * @throws OciError when an error occurs
183
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/CreatePrivateEndpoint.ts.html |here} to see how to use CreatePrivateEndpoint API.
184
+ */
185
+ createPrivateEndpoint(createPrivateEndpointRequest: requests.CreatePrivateEndpointRequest): Promise<responses.CreatePrivateEndpointResponse>;
176
186
  /**
177
187
  * Creates a replication policy for the specified bucket.
178
188
  *
@@ -236,6 +246,16 @@ export declare class ObjectStorageClient {
236
246
  * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/DeletePreauthenticatedRequest.ts.html |here} to see how to use DeletePreauthenticatedRequest API.
237
247
  */
238
248
  deletePreauthenticatedRequest(deletePreauthenticatedRequestRequest: requests.DeletePreauthenticatedRequestRequest): Promise<responses.DeletePreauthenticatedRequestResponse>;
249
+ /**
250
+ * Deletes a Private Endpoint if it exists in the given namespace.
251
+ *
252
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
253
+ * @param DeletePrivateEndpointRequest
254
+ * @return DeletePrivateEndpointResponse
255
+ * @throws OciError when an error occurs
256
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/DeletePrivateEndpoint.ts.html |here} to see how to use DeletePrivateEndpoint API.
257
+ */
258
+ deletePrivateEndpoint(deletePrivateEndpointRequest: requests.DeletePrivateEndpointRequest): Promise<responses.DeletePrivateEndpointResponse>;
239
259
  /**
240
260
  * Deletes the replication policy associated with the source bucket.
241
261
  *
@@ -326,6 +346,16 @@ export declare class ObjectStorageClient {
326
346
  * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/GetPreauthenticatedRequest.ts.html |here} to see how to use GetPreauthenticatedRequest API.
327
347
  */
328
348
  getPreauthenticatedRequest(getPreauthenticatedRequestRequest: requests.GetPreauthenticatedRequestRequest): Promise<responses.GetPreauthenticatedRequestResponse>;
349
+ /**
350
+ * Gets the current representation of the given Private Endpoint in the given Object Storage namespace.
351
+ *
352
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
353
+ * @param GetPrivateEndpointRequest
354
+ * @return GetPrivateEndpointResponse
355
+ * @throws OciError when an error occurs
356
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/GetPrivateEndpoint.ts.html |here} to see how to use GetPrivateEndpoint API.
357
+ */
358
+ getPrivateEndpoint(getPrivateEndpointRequest: requests.GetPrivateEndpointRequest): Promise<responses.GetPrivateEndpointResponse>;
329
359
  /**
330
360
  * Get the replication policy.
331
361
  *
@@ -618,6 +648,51 @@ export declare class ObjectStorageClient {
618
648
  * @param request a request which can be sent to the service operation
619
649
  */
620
650
  listPreauthenticatedRequestsResponseIterator(request: requests.ListPreauthenticatedRequestsRequest): AsyncIterableIterator<responses.ListPreauthenticatedRequestsResponse>;
651
+ /**
652
+ * Gets a list of all PrivateEndpointSummary in a compartment associated with a namespace.
653
+ * To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized,
654
+ * talk to an administrator. If you are an administrator who needs to write policies to give users access, see
655
+ * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
656
+ *
657
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
658
+ * @param ListPrivateEndpointsRequest
659
+ * @return ListPrivateEndpointsResponse
660
+ * @throws OciError when an error occurs
661
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/ListPrivateEndpoints.ts.html |here} to see how to use ListPrivateEndpoints API.
662
+ */
663
+ listPrivateEndpoints(listPrivateEndpointsRequest: requests.ListPrivateEndpointsRequest): Promise<responses.ListPrivateEndpointsResponse>;
664
+ /**
665
+ * NOTE: This function is deprecated in favor of listPrivateEndpointsRecordIterator function.
666
+ * Creates a new async iterator which will iterate over the models.PrivateEndpointSummary objects
667
+ * contained in responses from the listPrivateEndpoints operation. This iterator will fetch more data from the
668
+ * server as needed.
669
+ *
670
+ * @param request a request which can be sent to the service operation
671
+ */
672
+ listAllPrivateEndpoints(request: requests.ListPrivateEndpointsRequest): AsyncIterableIterator<model.PrivateEndpointSummary>;
673
+ /**
674
+ * NOTE: This function is deprecated in favor of listPrivateEndpointsResponseIterator function.
675
+ * Creates a new async iterator which will iterate over the responses received from the listPrivateEndpoints operation. This iterator
676
+ * will fetch more data from the server as needed.
677
+ *
678
+ * @param request a request which can be sent to the service operation
679
+ */
680
+ listAllPrivateEndpointsResponses(request: requests.ListPrivateEndpointsRequest): AsyncIterableIterator<responses.ListPrivateEndpointsResponse>;
681
+ /**
682
+ * Creates a new async iterator which will iterate over the models.PrivateEndpointSummary objects
683
+ * contained in responses from the listPrivateEndpoints operation. This iterator will fetch more data from the
684
+ * server as needed.
685
+ *
686
+ * @param request a request which can be sent to the service operation
687
+ */
688
+ listPrivateEndpointsRecordIterator(request: requests.ListPrivateEndpointsRequest): AsyncIterableIterator<model.PrivateEndpointSummary>;
689
+ /**
690
+ * Creates a new async iterator which will iterate over the responses received from the listPrivateEndpoints operation. This iterator
691
+ * will fetch more data from the server as needed.
692
+ *
693
+ * @param request a request which can be sent to the service operation
694
+ */
695
+ listPrivateEndpointsResponseIterator(request: requests.ListPrivateEndpointsRequest): AsyncIterableIterator<responses.ListPrivateEndpointsResponse>;
621
696
  /**
622
697
  * List the replication policies associated with a bucket.
623
698
  *
@@ -933,8 +1008,8 @@ export declare class ObjectStorageClient {
933
1008
  */
934
1009
  renameObject(renameObjectRequest: requests.RenameObjectRequest): Promise<responses.RenameObjectResponse>;
935
1010
  /**
936
- * Restores one or more objects specified by the objectName parameter.
937
- * By default objects will be restored for 24 hours. Duration can be configured using the hours parameter.
1011
+ * Restores the object specified by the objectName parameter.
1012
+ * By default object will be restored for 24 hours. Duration can be configured using the hours parameter.
938
1013
  *
939
1014
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
940
1015
  * @param RestoreObjectsRequest
@@ -983,6 +1058,23 @@ export declare class ObjectStorageClient {
983
1058
  * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/UpdateObjectStorageTier.ts.html |here} to see how to use UpdateObjectStorageTier API.
984
1059
  */
985
1060
  updateObjectStorageTier(updateObjectStorageTierRequest: requests.UpdateObjectStorageTierRequest): Promise<responses.UpdateObjectStorageTierResponse>;
1061
+ /**
1062
+ * Performs a partial or full update of a user-defined data associated with the Private Endpoint.
1063
+ * <p>
1064
+ Use UpdatePrivateEndpoint to move a Private Endpoint from one compartment to another within the same tenancy. Supply the compartmentID
1065
+ * of the compartment that you want to move the Private Endpoint to. Or use it to update the name, subnetId, endpointFqdn or privateEndpointIp or accessTargets of the Private Endpoint.
1066
+ * For more information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
1067
+ * <p>
1068
+ This API follows replace semantics (rather than merge semantics). That means if the body provides values for
1069
+ * parameters and the resource has exisiting ones, this operation will replace those existing values.
1070
+ *
1071
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1072
+ * @param UpdatePrivateEndpointRequest
1073
+ * @return UpdatePrivateEndpointResponse
1074
+ * @throws OciError when an error occurs
1075
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/UpdatePrivateEndpoint.ts.html |here} to see how to use UpdatePrivateEndpoint API.
1076
+ */
1077
+ updatePrivateEndpoint(updatePrivateEndpointRequest: requests.UpdatePrivateEndpointRequest): Promise<responses.UpdatePrivateEndpointResponse>;
986
1078
  /**
987
1079
  * Updates the specified retention rule. Rule changes take effect typically within 30 seconds.
988
1080
  *
package/lib/client.js CHANGED
@@ -733,6 +733,74 @@ class ObjectStorageClient {
733
733
  }
734
734
  });
735
735
  }
736
+ /**
737
+ * Create a PrivateEndpoint.
738
+ *
739
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
740
+ * @param CreatePrivateEndpointRequest
741
+ * @return CreatePrivateEndpointResponse
742
+ * @throws OciError when an error occurs
743
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/CreatePrivateEndpoint.ts.html |here} to see how to use CreatePrivateEndpoint API.
744
+ */
745
+ createPrivateEndpoint(createPrivateEndpointRequest) {
746
+ return __awaiter(this, void 0, void 0, function* () {
747
+ if (this.logger)
748
+ this.logger.debug("Calling operation ObjectStorageClient#createPrivateEndpoint.");
749
+ const operationName = "createPrivateEndpoint";
750
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/CreatePrivateEndpoint";
751
+ const pathParams = {
752
+ "{namespaceName}": createPrivateEndpointRequest.namespaceName
753
+ };
754
+ const queryParams = {};
755
+ let headerParams = {
756
+ "Content-Type": common.Constants.APPLICATION_JSON,
757
+ "opc-client-request-id": createPrivateEndpointRequest.opcClientRequestId
758
+ };
759
+ const requiredParams = new Set(["namespaceName"]);
760
+ let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
761
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
762
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
763
+ if (this.logger)
764
+ retrier.logger = this.logger;
765
+ const request = yield oci_common_2.composeRequest({
766
+ baseEndpoint: endpoint,
767
+ defaultHeaders: this._defaultHeaders,
768
+ path: "/n/{namespaceName}/pe",
769
+ method: "POST",
770
+ bodyContent: common.ObjectSerializer.serialize(createPrivateEndpointRequest.createPrivateEndpointDetails, "CreatePrivateEndpointDetails", model.CreatePrivateEndpointDetails.getJsonObj),
771
+ pathParams: pathParams,
772
+ headerParams: headerParams,
773
+ queryParams: queryParams
774
+ });
775
+ try {
776
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
777
+ const sdkResponse = oci_common_2.composeResponse({
778
+ responseObject: {},
779
+ responseHeaders: [
780
+ {
781
+ value: response.headers.get("opc-work-request-id"),
782
+ key: "opcWorkRequestId",
783
+ dataType: "string"
784
+ },
785
+ {
786
+ value: response.headers.get("opc-request-id"),
787
+ key: "opcRequestId",
788
+ dataType: "string"
789
+ },
790
+ {
791
+ value: response.headers.get("opc-client-request-id"),
792
+ key: "opcClientRequestId",
793
+ dataType: "string"
794
+ }
795
+ ]
796
+ });
797
+ return sdkResponse;
798
+ }
799
+ catch (err) {
800
+ throw err;
801
+ }
802
+ });
803
+ }
736
804
  /**
737
805
  * Creates a replication policy for the specified bucket.
738
806
  *
@@ -1151,6 +1219,75 @@ class ObjectStorageClient {
1151
1219
  }
1152
1220
  });
1153
1221
  }
1222
+ /**
1223
+ * Deletes a Private Endpoint if it exists in the given namespace.
1224
+ *
1225
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1226
+ * @param DeletePrivateEndpointRequest
1227
+ * @return DeletePrivateEndpointResponse
1228
+ * @throws OciError when an error occurs
1229
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/DeletePrivateEndpoint.ts.html |here} to see how to use DeletePrivateEndpoint API.
1230
+ */
1231
+ deletePrivateEndpoint(deletePrivateEndpointRequest) {
1232
+ return __awaiter(this, void 0, void 0, function* () {
1233
+ if (this.logger)
1234
+ this.logger.debug("Calling operation ObjectStorageClient#deletePrivateEndpoint.");
1235
+ const operationName = "deletePrivateEndpoint";
1236
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/DeletePrivateEndpoint";
1237
+ const pathParams = {
1238
+ "{namespaceName}": deletePrivateEndpointRequest.namespaceName,
1239
+ "{peName}": deletePrivateEndpointRequest.peName
1240
+ };
1241
+ const queryParams = {};
1242
+ let headerParams = {
1243
+ "Content-Type": common.Constants.APPLICATION_JSON,
1244
+ "if-match": deletePrivateEndpointRequest.ifMatch,
1245
+ "opc-client-request-id": deletePrivateEndpointRequest.opcClientRequestId
1246
+ };
1247
+ const requiredParams = new Set(["namespaceName", "peName"]);
1248
+ let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1249
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1250
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
1251
+ if (this.logger)
1252
+ retrier.logger = this.logger;
1253
+ const request = yield oci_common_2.composeRequest({
1254
+ baseEndpoint: endpoint,
1255
+ defaultHeaders: this._defaultHeaders,
1256
+ path: "/n/{namespaceName}/pe/{peName}",
1257
+ method: "DELETE",
1258
+ pathParams: pathParams,
1259
+ headerParams: headerParams,
1260
+ queryParams: queryParams
1261
+ });
1262
+ try {
1263
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1264
+ const sdkResponse = oci_common_2.composeResponse({
1265
+ responseObject: {},
1266
+ responseHeaders: [
1267
+ {
1268
+ value: response.headers.get("opc-work-request-id"),
1269
+ key: "opcWorkRequestId",
1270
+ dataType: "string"
1271
+ },
1272
+ {
1273
+ value: response.headers.get("opc-client-request-id"),
1274
+ key: "opcClientRequestId",
1275
+ dataType: "string"
1276
+ },
1277
+ {
1278
+ value: response.headers.get("opc-request-id"),
1279
+ key: "opcRequestId",
1280
+ dataType: "string"
1281
+ }
1282
+ ]
1283
+ });
1284
+ return sdkResponse;
1285
+ }
1286
+ catch (err) {
1287
+ throw err;
1288
+ }
1289
+ });
1290
+ }
1154
1291
  /**
1155
1292
  * Deletes the replication policy associated with the source bucket.
1156
1293
  *
@@ -1796,6 +1933,80 @@ class ObjectStorageClient {
1796
1933
  }
1797
1934
  });
1798
1935
  }
1936
+ /**
1937
+ * Gets the current representation of the given Private Endpoint in the given Object Storage namespace.
1938
+ *
1939
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1940
+ * @param GetPrivateEndpointRequest
1941
+ * @return GetPrivateEndpointResponse
1942
+ * @throws OciError when an error occurs
1943
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/GetPrivateEndpoint.ts.html |here} to see how to use GetPrivateEndpoint API.
1944
+ */
1945
+ getPrivateEndpoint(getPrivateEndpointRequest) {
1946
+ return __awaiter(this, void 0, void 0, function* () {
1947
+ if (this.logger)
1948
+ this.logger.debug("Calling operation ObjectStorageClient#getPrivateEndpoint.");
1949
+ const operationName = "getPrivateEndpoint";
1950
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/GetPrivateEndpoint";
1951
+ const pathParams = {
1952
+ "{namespaceName}": getPrivateEndpointRequest.namespaceName,
1953
+ "{peName}": getPrivateEndpointRequest.peName
1954
+ };
1955
+ const queryParams = {};
1956
+ let headerParams = {
1957
+ "Content-Type": common.Constants.APPLICATION_JSON,
1958
+ "if-match": getPrivateEndpointRequest.ifMatch,
1959
+ "if-none-match": getPrivateEndpointRequest.ifNoneMatch,
1960
+ "opc-client-request-id": getPrivateEndpointRequest.opcClientRequestId
1961
+ };
1962
+ const requiredParams = new Set(["namespaceName", "peName"]);
1963
+ let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
1964
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1965
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getPrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
1966
+ if (this.logger)
1967
+ retrier.logger = this.logger;
1968
+ const request = yield oci_common_2.composeRequest({
1969
+ baseEndpoint: endpoint,
1970
+ defaultHeaders: this._defaultHeaders,
1971
+ path: "/n/{namespaceName}/pe/{peName}",
1972
+ method: "GET",
1973
+ pathParams: pathParams,
1974
+ headerParams: headerParams,
1975
+ queryParams: queryParams
1976
+ });
1977
+ try {
1978
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1979
+ const sdkResponse = oci_common_2.composeResponse({
1980
+ responseObject: {},
1981
+ body: yield response.json(),
1982
+ bodyKey: "privateEndpoint",
1983
+ bodyModel: model.PrivateEndpoint,
1984
+ type: "model.PrivateEndpoint",
1985
+ responseHeaders: [
1986
+ {
1987
+ value: response.headers.get("opc-client-request-id"),
1988
+ key: "opcClientRequestId",
1989
+ dataType: "string"
1990
+ },
1991
+ {
1992
+ value: response.headers.get("opc-request-id"),
1993
+ key: "opcRequestId",
1994
+ dataType: "string"
1995
+ },
1996
+ {
1997
+ value: response.headers.get("eTag"),
1998
+ key: "eTag",
1999
+ dataType: "string"
2000
+ }
2001
+ ]
2002
+ });
2003
+ return sdkResponse;
2004
+ }
2005
+ catch (err) {
2006
+ throw err;
2007
+ }
2008
+ });
2009
+ }
1799
2010
  /**
1800
2011
  * Get the replication policy.
1801
2012
  *
@@ -2919,6 +3130,126 @@ class ObjectStorageClient {
2919
3130
  listPreauthenticatedRequestsResponseIterator(request) {
2920
3131
  return oci_common_1.paginateResponses(request, req => this.listPreauthenticatedRequests(req));
2921
3132
  }
3133
+ /**
3134
+ * Gets a list of all PrivateEndpointSummary in a compartment associated with a namespace.
3135
+ * To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized,
3136
+ * talk to an administrator. If you are an administrator who needs to write policies to give users access, see
3137
+ * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
3138
+ *
3139
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
3140
+ * @param ListPrivateEndpointsRequest
3141
+ * @return ListPrivateEndpointsResponse
3142
+ * @throws OciError when an error occurs
3143
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/ListPrivateEndpoints.ts.html |here} to see how to use ListPrivateEndpoints API.
3144
+ */
3145
+ listPrivateEndpoints(listPrivateEndpointsRequest) {
3146
+ return __awaiter(this, void 0, void 0, function* () {
3147
+ if (this.logger)
3148
+ this.logger.debug("Calling operation ObjectStorageClient#listPrivateEndpoints.");
3149
+ const operationName = "listPrivateEndpoints";
3150
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpointSummary/ListPrivateEndpoints";
3151
+ const pathParams = {
3152
+ "{namespaceName}": listPrivateEndpointsRequest.namespaceName
3153
+ };
3154
+ const queryParams = {
3155
+ "compartmentId": listPrivateEndpointsRequest.compartmentId,
3156
+ "limit": listPrivateEndpointsRequest.limit,
3157
+ "page": listPrivateEndpointsRequest.page,
3158
+ "fields": listPrivateEndpointsRequest.fields,
3159
+ "lifecycleState": listPrivateEndpointsRequest.lifecycleState
3160
+ };
3161
+ let headerParams = {
3162
+ "Content-Type": common.Constants.APPLICATION_JSON,
3163
+ "opc-client-request-id": listPrivateEndpointsRequest.opcClientRequestId
3164
+ };
3165
+ const requiredParams = new Set(["namespaceName", "compartmentId"]);
3166
+ let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
3167
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
3168
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listPrivateEndpointsRequest.retryConfiguration, specRetryConfiguration);
3169
+ if (this.logger)
3170
+ retrier.logger = this.logger;
3171
+ const request = yield oci_common_2.composeRequest({
3172
+ baseEndpoint: endpoint,
3173
+ defaultHeaders: this._defaultHeaders,
3174
+ path: "/n/{namespaceName}/pe",
3175
+ method: "GET",
3176
+ pathParams: pathParams,
3177
+ headerParams: headerParams,
3178
+ queryParams: queryParams
3179
+ });
3180
+ try {
3181
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
3182
+ const sdkResponse = oci_common_2.composeResponse({
3183
+ responseObject: {},
3184
+ body: yield response.json(),
3185
+ bodyKey: "items",
3186
+ bodyModel: model.PrivateEndpointSummary,
3187
+ type: "Array<model.PrivateEndpointSummary>",
3188
+ responseHeaders: [
3189
+ {
3190
+ value: response.headers.get("opc-client-request-id"),
3191
+ key: "opcClientRequestId",
3192
+ dataType: "string"
3193
+ },
3194
+ {
3195
+ value: response.headers.get("opc-request-id"),
3196
+ key: "opcRequestId",
3197
+ dataType: "string"
3198
+ },
3199
+ {
3200
+ value: response.headers.get("opc-next-page"),
3201
+ key: "opcNextPage",
3202
+ dataType: "string"
3203
+ }
3204
+ ]
3205
+ });
3206
+ return sdkResponse;
3207
+ }
3208
+ catch (err) {
3209
+ throw err;
3210
+ }
3211
+ });
3212
+ }
3213
+ /**
3214
+ * NOTE: This function is deprecated in favor of listPrivateEndpointsRecordIterator function.
3215
+ * Creates a new async iterator which will iterate over the models.PrivateEndpointSummary objects
3216
+ * contained in responses from the listPrivateEndpoints operation. This iterator will fetch more data from the
3217
+ * server as needed.
3218
+ *
3219
+ * @param request a request which can be sent to the service operation
3220
+ */
3221
+ listAllPrivateEndpoints(request) {
3222
+ return oci_common_1.paginateRecords(request, req => this.listPrivateEndpoints(req));
3223
+ }
3224
+ /**
3225
+ * NOTE: This function is deprecated in favor of listPrivateEndpointsResponseIterator function.
3226
+ * Creates a new async iterator which will iterate over the responses received from the listPrivateEndpoints operation. This iterator
3227
+ * will fetch more data from the server as needed.
3228
+ *
3229
+ * @param request a request which can be sent to the service operation
3230
+ */
3231
+ listAllPrivateEndpointsResponses(request) {
3232
+ return oci_common_1.paginateResponses(request, req => this.listPrivateEndpoints(req));
3233
+ }
3234
+ /**
3235
+ * Creates a new async iterator which will iterate over the models.PrivateEndpointSummary objects
3236
+ * contained in responses from the listPrivateEndpoints operation. This iterator will fetch more data from the
3237
+ * server as needed.
3238
+ *
3239
+ * @param request a request which can be sent to the service operation
3240
+ */
3241
+ listPrivateEndpointsRecordIterator(request) {
3242
+ return oci_common_1.paginateRecords(request, req => this.listPrivateEndpoints(req));
3243
+ }
3244
+ /**
3245
+ * Creates a new async iterator which will iterate over the responses received from the listPrivateEndpoints operation. This iterator
3246
+ * will fetch more data from the server as needed.
3247
+ *
3248
+ * @param request a request which can be sent to the service operation
3249
+ */
3250
+ listPrivateEndpointsResponseIterator(request) {
3251
+ return oci_common_1.paginateResponses(request, req => this.listPrivateEndpoints(req));
3252
+ }
2922
3253
  /**
2923
3254
  * List the replication policies associated with a bucket.
2924
3255
  *
@@ -3467,6 +3798,7 @@ class ObjectStorageClient {
3467
3798
  const pathParams = {};
3468
3799
  const queryParams = {
3469
3800
  "compartmentId": listWorkRequestsRequest.compartmentId,
3801
+ "privateEndpointName": listWorkRequestsRequest.privateEndpointName,
3470
3802
  "page": listWorkRequestsRequest.page,
3471
3803
  "limit": listWorkRequestsRequest.limit
3472
3804
  };
@@ -4055,8 +4387,8 @@ class ObjectStorageClient {
4055
4387
  });
4056
4388
  }
4057
4389
  /**
4058
- * Restores one or more objects specified by the objectName parameter.
4059
- * By default objects will be restored for 24 hours. Duration can be configured using the hours parameter.
4390
+ * Restores the object specified by the objectName parameter.
4391
+ * By default object will be restored for 24 hours. Duration can be configured using the hours parameter.
4060
4392
  *
4061
4393
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
4062
4394
  * @param RestoreObjectsRequest
@@ -4334,6 +4666,83 @@ class ObjectStorageClient {
4334
4666
  }
4335
4667
  });
4336
4668
  }
4669
+ /**
4670
+ * Performs a partial or full update of a user-defined data associated with the Private Endpoint.
4671
+ * <p>
4672
+ Use UpdatePrivateEndpoint to move a Private Endpoint from one compartment to another within the same tenancy. Supply the compartmentID
4673
+ * of the compartment that you want to move the Private Endpoint to. Or use it to update the name, subnetId, endpointFqdn or privateEndpointIp or accessTargets of the Private Endpoint.
4674
+ * For more information about moving resources between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
4675
+ * <p>
4676
+ This API follows replace semantics (rather than merge semantics). That means if the body provides values for
4677
+ * parameters and the resource has exisiting ones, this operation will replace those existing values.
4678
+ *
4679
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
4680
+ * @param UpdatePrivateEndpointRequest
4681
+ * @return UpdatePrivateEndpointResponse
4682
+ * @throws OciError when an error occurs
4683
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/objectstorage/UpdatePrivateEndpoint.ts.html |here} to see how to use UpdatePrivateEndpoint API.
4684
+ */
4685
+ updatePrivateEndpoint(updatePrivateEndpointRequest) {
4686
+ return __awaiter(this, void 0, void 0, function* () {
4687
+ if (this.logger)
4688
+ this.logger.debug("Calling operation ObjectStorageClient#updatePrivateEndpoint.");
4689
+ const operationName = "updatePrivateEndpoint";
4690
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/UpdatePrivateEndpoint";
4691
+ const pathParams = {
4692
+ "{namespaceName}": updatePrivateEndpointRequest.namespaceName,
4693
+ "{peName}": updatePrivateEndpointRequest.peName
4694
+ };
4695
+ const queryParams = {};
4696
+ let headerParams = {
4697
+ "Content-Type": common.Constants.APPLICATION_JSON,
4698
+ "opc-client-request-id": updatePrivateEndpointRequest.opcClientRequestId,
4699
+ "if-match": updatePrivateEndpointRequest.ifMatch
4700
+ };
4701
+ const requiredParams = new Set(["namespaceName", "peName"]);
4702
+ let endpoint = common.EndpointBuilder.populateServiceParamsInEndpoint(this.endpoint, pathParams, queryParams, requiredParams);
4703
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
4704
+ const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updatePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
4705
+ if (this.logger)
4706
+ retrier.logger = this.logger;
4707
+ const request = yield oci_common_2.composeRequest({
4708
+ baseEndpoint: endpoint,
4709
+ defaultHeaders: this._defaultHeaders,
4710
+ path: "/n/{namespaceName}/pe/{peName}",
4711
+ method: "POST",
4712
+ bodyContent: common.ObjectSerializer.serialize(updatePrivateEndpointRequest.updatePrivateEndpointDetails, "UpdatePrivateEndpointDetails", model.UpdatePrivateEndpointDetails.getJsonObj),
4713
+ pathParams: pathParams,
4714
+ headerParams: headerParams,
4715
+ queryParams: queryParams
4716
+ });
4717
+ try {
4718
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
4719
+ const sdkResponse = oci_common_2.composeResponse({
4720
+ responseObject: {},
4721
+ responseHeaders: [
4722
+ {
4723
+ value: response.headers.get("opc-work-request-id"),
4724
+ key: "opcWorkRequestId",
4725
+ dataType: "string"
4726
+ },
4727
+ {
4728
+ value: response.headers.get("opc-client-request-id"),
4729
+ key: "opcClientRequestId",
4730
+ dataType: "string"
4731
+ },
4732
+ {
4733
+ value: response.headers.get("opc-request-id"),
4734
+ key: "opcRequestId",
4735
+ dataType: "string"
4736
+ }
4737
+ ]
4738
+ });
4739
+ return sdkResponse;
4740
+ }
4741
+ catch (err) {
4742
+ throw err;
4743
+ }
4744
+ });
4745
+ }
4337
4746
  /**
4338
4747
  * Updates the specified retention rule. Rule changes take effect typically within 30 seconds.
4339
4748
  *