scenarios When Using OCI SDK for Node.js to Update Object Storage Lifecycle Policy
I'm writing unit tests and I've searched everywhere and can't find a clear answer... I'm relatively new to this, so bear with me. I'm currently working with an scenario when trying to update the lifecycle policy for an OCI Object Storage bucket using the OCI SDK for Node.js (version 2.16.0). After successfully retrieving the existing policy, I attempt to update it, but I receive a '400 Bad Request' behavior with the message 'Invalid lifecycle policy'. Here's the code snippet I'm using: ```javascript const oci = require('oci-sdk'); const provider = new oci.ConfigFileAuthenticationDetailsProvider(); const objectStorageClient = new oci.objectstorage.ObjectStorageClient({ authenticationDetailsProvider: provider }); const bucketName = 'my-bucket'; const namespaceName = 'my-namespace'; async function updateLifecyclePolicy() { try { const lifecyclePolicy = { "rules": [ { "name": "ExpireAfter30Days", "action": "DELETE", "daysToExpire": 30 } ] }; const updateRequest = { "lifecyclePolicy": lifecyclePolicy }; const response = await objectStorageClient.updateLifecyclePolicy(namespaceName, bucketName, updateRequest); console.log('Lifecycle policy updated:', response); } catch (behavior) { console.behavior('behavior updating lifecycle policy:', behavior); } } updateLifecyclePolicy(); ``` I have validated the structure of the lifecycle policy based on the [official OCI documentation](https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/lifecyclepolicies.htm). The question seems to arise when submitting the update request. I've tried modifying the action types and simplifying the rules, but the behavior continues. Any insights on what might be going wrong with my request? Thanks in advance! How would you solve this? This is part of a larger REST API I'm building. I'd be grateful for any help.