Passing explicit Null/None values

The SDK does not send fields with a value of None back to the service. In order to send a None explicitly back to the service - for example if you are trying to clear metadata on a bucket - you can set a field’s value to oci.util.NONE_SENTINEL:

import oci

update_bucket_details = oci.object_storage.models.UpdateBucketDetails()
update_bucket_details.metadata = oci.util.NONE_SENTINEL

object_storage.update_bucket('my_namespace', 'my_bucket', update_bucket_details)