### OBS Bucket Listing by Pages Source: https://github.com/huaweicloud/huaweicloud-sdk-nodejs-obs/blob/master/README.md This snippet indicates that the `listBucket` API now supports pagination, allowing users to retrieve bucket lists in smaller, manageable chunks. ```APIDOC ObsClient.listBucket(options: ListBucketOptions): - Supports listing buckets by pages. - Parameters: - options: Includes parameters for pagination (e.g., 'marker', 'max-keys'). ``` -------------------------------- ### OBS Client Initialization with Connection and Agent Configuration Source: https://github.com/huaweicloud/huaweicloud-sdk-nodejs-obs/blob/master/README.md This snippet describes how to configure the ObsClient during initialization to control maximum HTTP connections, customize HTTP/HTTPS agents, and set the user agent. It also notes that all APIs now return an internal OBS error code (Indicator) and that socket connection time is logged. ```APIDOC ObsClient initialization parameters: max_connections: Configures the maximum HTTP connections. http_agent: Custom HTTP agent for requests. https_agent: Custom HTTPS agent for requests. user_agent: Configures the user agent string. API Behavior: All APIs now return 'Indicator', the internal error code of OBS. Log printing of the time required for setting up a socket connection has been added. ``` -------------------------------- ### OBS File Upload and Download Progress Callbacks Source: https://github.com/huaweicloud/huaweicloud-sdk-nodejs-obs/blob/master/README.md This snippet describes the integration of ProgressCallback into various file operation APIs, allowing users to monitor the progress of uploads and downloads. It covers `getObject`, `uploadFile`, `downloadFile`, `putObject`, `uploadPart`, and `appendObject`. ```APIDOC ProgressCallback parameter: - Supported in ObsClient.getObject, ObsClient.uploadFile, and ObsClient.downloadFile for monitoring progress. - Added to ObsClient.putObject, ObsClient.uploadPart, and ObsClient.appendObject to obtain upload progress. - Usage: A function that receives progress updates during the operation. ``` -------------------------------- ### OBS Object Tagging APIs Source: https://github.com/huaweicloud/huaweicloud-sdk-nodejs-obs/blob/master/README.md This snippet documents the APIs for managing object tags within Huawei Cloud OBS. It includes methods for setting, retrieving, and deleting tags associated with objects. ```APIDOC ObsClient.setObjectTagging(bucketName: string, objectKey: string, tags: ObjectTagging): - Sets tags for a specified object. - Parameters: - bucketName: The name of the bucket. - objectKey: The key of the object. - tags: An object containing tag key-value pairs. ObsClient.getObjectTagging(bucketName: string, objectKey: string): - Retrieves tags for a specified object. - Parameters: - bucketName: The name of the bucket. - objectKey: The key of the object. - Returns: An object containing tag key-value pairs. ObsClient.deleteObjectTagging(bucketName: string, objectKey: string): - Deletes all tags from a specified object. - Parameters: - bucketName: The name of the bucket. - objectKey: The key of the object. ``` -------------------------------- ### OBS Bucket Notification APIs with FunctionGraph Support Source: https://github.com/huaweicloud/huaweicloud-sdk-nodejs-obs/blob/master/README.md This snippet describes the `setBucketNotification` and `getBucketNotification` APIs, highlighting their enhanced support for configuring and querying FunctionGraph in bucket event notifications. ```APIDOC ObsClient.setBucketNotification(bucketName: string, notificationConfiguration: NotificationConfiguration): - Configures event notifications for a bucket. - Supports FunctionGraph configuration as a notification target. - Parameters: - bucketName: The name of the bucket. - notificationConfiguration: The configuration for bucket events, including FunctionGraph details. ObsClient.getBucketNotification(bucketName: string): - Retrieves the event notification configuration for a bucket. - Supports querying FunctionGraph configurations. - Parameters: - bucketName: The name of the bucket. - Returns: The current notification configuration for the bucket. ``` -------------------------------- ### OBS Object Upload and Metadata Modification APIs Source: https://github.com/huaweicloud/huaweicloud-sdk-nodejs-obs/blob/master/README.md This snippet details enhancements to the `uploadFile` API, including support for specifying object expiration time, and the addition of `setObjectMetadata` for modifying existing object metadata. ```APIDOC ObsClient.uploadFile(options: UploadFileOptions): - Supports specifying the 'Expires' parameter to set the expiration time of the uploaded object. - Added the ability to abort an upload operation. ObsClient.setObjectMetadata(bucketName: string, objectKey: string, metadata: ObjectMetadata): - Modifies the metadata of an existing object. - Parameters: - bucketName: The name of the bucket. - objectKey: The key of the object. - metadata: An object containing metadata key-value pairs to set or update. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.