a Of@sddlmZddlmZddlmZddlmZmZddlm Z ddl m Z m Z ddl mZddlmZmZmZdd lmZmZd d lmZed ZGd ddeZdS))absolute_import)requests)six)retrycircuit_breaker) BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME),back_up_body_calculate_stream_content_length(is_content_length_calculable_by_req_util)object_storage_type_mappingMissingc@seZdZdZddZddZddZdd Zd d Zd d Z ddZ ddZ ddZ ddZ ddZddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Z dd?Z"d@dAZ#dBdCZ$dDdEZ%dFdGZ&dHdIZ'dJdKZ(dLdMZ)dNdOZ*dPdQZ+dRdSZ,dTdUZ-dVdWZ.dXdYZ/dZd[Z0d\d]Z1d^d_Z2d`daZ3dbdcZ4dddeZ5dfdgZ6dhS)iObjectStorageClientaA Common set of Object Storage and Archive Storage APIs for managing buckets, objects, and related resources. For more information, see [Overview of Object Storage](/Content/Object/Concepts/objectstorageoverview.htm) and [Overview of Archive Storage](/Content/Archive/Concepts/archivestorageoverview.htm). c Ks t||ddd|vr$|d}nDt|vr6t|}n2t|d|d|d|dt|d|dd }d |d d d |dd|dtjd}d|vr|d|d<|ddurtj|d<d|vr|d|d<t d||t fi||_ |d|_ |d|_ dS)a Creates a new service client :param dict config: Configuration keys and values as per `SDK and Tool Configuration `__. The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config the dict using :py:meth:`~oci.config.validate_config` :param str service_endpoint: (optional) The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit need to specify a service endpoint. :param timeout: (optional) The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. :type timeout: float or tuple(float, float) :param signer: (optional) The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values provided in the config parameter. One use case for this parameter is for `Instance Principals authentication `__ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument :type signer: :py:class:`~oci.signer.AbstractBaseSigner` :param obj retry_strategy: (optional) A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. Any value provided at the operation level will override whatever is specified at the client level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` is also available. The specifics of the default retry strategy are described `here `__. :param obj circuit_breaker_strategy: (optional) A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. The specifics of circuit breaker strategy are described `here `__. :param function circuit_breaker_callback: (optional) Callback function to receive any exceptions triggerred by the circuit breaker. :param allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not allow control characters to be in the response object. signer)rtenancyuser fingerprintkey_file pass_phrase key_content)rrrprivate_key_file_locationrprivate_key_contentTservice_endpoint/z2https://objectstorage.{region}.{secondLevelDomain}skip_deserializationFcircuit_breaker_strategy)regional_clientr base_pathservice_endpoint_templaterr timeoutNallow_control_charsobject_storageretry_strategycircuit_breaker_callback)r getr r r rrGLOBAL_CIRCUIT_BREAKER_STRATEGY DEFAULT_CIRCUIT_BREAKER_STRATEGYrr base_clientr'r()selfconfigkwargsrbase_client_init_kwargsr1/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/object_storage/object_storage_client.py__init__s:0       zObjectStorageClient.__init__c sd}d}d}d} gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qld|i}dd t|D}dd| dt d}dd t|D}|j j | d|j d}|d urtj}|rft|tjs@|j |||j|j|j j||| ||| d|| d S|j j||| ||| d|| dSd S)a Aborts an in-progress multipart upload and deletes all parts that have been uploaded. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param str upload_id: (required) The upload ID for a multipart upload. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use abort_multipart_upload API. 0/n/{namespaceName}/b/{bucketName}/u/{objectName}DELETEabort_multipart_uploadzahttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/AbortMultipartUploadr%r'opc_client_request_idcsg|]}|vr|qSr1r1.0_keyexpected_kwargsr1r2 z>ObjectStorageClient.abort_multipart_upload..z/abort_multipart_upload got unknown kwargs: {!r} namespaceName bucketName objectNamecSsi|]\}}|tur||qSr1missingr:kvr1r1r2 r?z>ObjectStorageClient.abort_multipart_upload..Nr7Parameter {} cannot be None, whitespace or empty stringuploadIdcSs&i|]\}}|tur|dur||qSNrDrFr1r1r2rIr?application/jsonr8accept content-typeopc-client-request-idcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'operation_retry_strategyclient_retry_strategyr% resource_pathmethod path_params query_params header_paramsr%operation_nameapi_reference_linkriterkeys ValueErrorformat iteritems isinstance string_typeslenstripr)rEr,get_preferred_retry_strategyr'rDEFAULT_RETRY_STRATEGYNoneRetryStrategyadd_opc_client_retries_headeradd_circuit_breaker_callbackr(make_retrying_callcall_apir-namespace_name bucket_name object_name upload_idr/rVrWr[r\ extra_kwargsrXrGrHrYrZr'r1r<r2r6nsr($     z*ObjectStorageClient.abort_multipart_uploadc sfd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qhdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rBt| tjs|j | | |j| j|j j|||| | d||dS|j j|||| | d||dSd S)a  Cancels a work request. :param str work_request_id: (required) The ID of the asynchronous request. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use cancel_work_request API. /workRequests/{workRequestId}r5cancel_work_requestzZhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequest/CancelWorkRequestr7csg|]}|vr|qSr1r1r9r<r1r2r>r?z;ObjectStorageClient.cancel_work_request..z,cancel_work_request got unknown kwargs: {!r} workRequestIdcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z;ObjectStorageClient.cancel_work_request..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rVrWrXrZr%r[r\r] r-work_request_idr/rVrWr[r\rrrXrGrHrZr'r1r<r2rtsd$    z'ObjectStorageClient.cancel_work_requestc sd}d}d} d} gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} }|d ust|tjrlt|d krltd| qld|i}dd t|D}dd| dt | dt | dt d}dd t|D}|j j | d|j d}|d ur(tj}|r|t|tjsT|j |||j|j|j j||| |||| d| | d S|j j||| |||| d| | d Sd S)a Commits a multipart upload, which involves checking part numbers and entity tags (ETags) of the parts, to create an aggregate object. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param str upload_id: (required) The upload ID for a multipart upload. :param oci.object_storage.models.CommitMultipartUploadDetails commit_multipart_upload_details: (required) The part numbers and entity tags (ETags) for the parts you want to commit. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the resource already exists. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use commit_multipart_upload API. r4POSTcommit_multipart_uploadzbhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/CommitMultipartUploadr%r'if_match if_none_matchr8csg|]}|vr|qSr1r1r9r<r1r2r>{r?z?ObjectStorageClient.commit_multipart_upload..z0commit_multipart_upload got unknown kwargs: {!r}r@cSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z?ObjectStorageClient.commit_multipart_upload..NrrJrKcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?rMr|r}r8rOrPif-match if-none-matchrQcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr% rVrWrXrYrZbodyr%r[r\r])r-rnrorprqcommit_multipart_upload_detailsr/rVrWr[r\rrrXrGrHrYrZr'r1r<r2rz:sz4$       z+ObjectStorageClient.commit_multipart_uploadc sd}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt | dt | dt | dt | dt | dt | dt | dt d } dd t| D} |j j | d|j d}|d ur`__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use copy_object API. z4/n/{namespaceName}/b/{bucketName}/actions/copyObjectry copy_objectzNhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/CopyObject) r%r'r8opc_sse_customer_algorithmopc_sse_customer_keyopc_sse_customer_key_sha256!opc_source_sse_customer_algorithmopc_source_sse_customer_key"opc_source_sse_customer_key_sha256opc_sse_kms_key_idcsg|]}|vr|qSr1r1r9r<r1r2r>'r?z3ObjectStorageClient.copy_object..z$copy_object got unknown kwargs: {!r}rArBcSsi|]\}}|tur||qSr1rDrFr1r1r2rI1r?z3ObjectStorageClient.copy_object..NrrJrMr8rrrrrrr) rOrPrQopc-sse-customer-algorithmopc-sse-customer-keyopc-sse-customer-key-sha256z!opc-source-sse-customer-algorithmzopc-source-sse-customer-keyz"opc-source-sse-customer-key-sha256opc-sse-kms-key-idcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rICr?r'rRr%rVrWrXrZrr%r[r\r])r-rnrocopy_object_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rsxY $             zObjectStorageClient.copy_objectc snd}d}d}d}gdfddt|D}|rBtd|d |i} d d t| D} t| D]:\} } | d ust| tjrht| d krhtd| qhdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rFt| tjs|j | | |j| j|j j||| | |d| d||d S|j j||| | |d| d||d Sd S)aM Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. Avoid entering confidential information in bucket names. :param str namespace_name: (required) The Object Storage namespace used for the request. :param oci.object_storage.models.CreateBucketDetails create_bucket_details: (required) Request object for creating a bucket. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.Bucket` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_bucket API. /n/{namespaceName}/bry create_bucketzPhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/CreateBucketr7csg|]}|vr|qSr1r1r9r<r1r2r>r?z5ObjectStorageClient.create_bucket..z&create_bucket got unknown kwargs: {!r}rAcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z5ObjectStorageClient.create_bucket..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRBucketr% rVrWrXrZr response_typer%r[r\r])r-rncreate_bucket_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2resl!$    z!ObjectStorageClient.create_bucketc sd}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt | dt | dt | dt | dt | dt | dt d } dd t| D} |j j | d|j d}|d ur2tj}|rt|tjs^|j | ||j|j|j j||| | |d| d||d S|j j||| | |d| d||d Sd S)aM Starts a new multipart upload to a specific object in the given bucket in the given namespace. See `Object Names`__ for object naming requirements. __ https://docs.cloud.oracle.com/Content/Object/Tasks/managingobjects.htm#namerequirements :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.CreateMultipartUploadDetails create_multipart_upload_details: (required) Request object for creating a multipart upload. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the resource already exists. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str opc_sse_customer_algorithm: (optional) The optional header that specifies "AES256" as the encryption algorithm. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key: (optional) The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key_sha256: (optional) The optional header that specifies the base64-encoded SHA256 hash of the encryption key. This value is used to check the integrity of the encryption key. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_kms_key_id: (optional) The `OCID`__ of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.MultipartUpload` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_multipart_upload API. #/n/{namespaceName}/b/{bucketName}/urycreate_multipart_uploadzbhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/CreateMultipartUpload) r%r'r|r}r8rrrrcsg|]}|vr|qSr1r1r9r<r1r2r>&r?z?ObjectStorageClient.create_multipart_upload..z0create_multipart_upload got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI0r?z?ObjectStorageClient.create_multipart_upload..NrrJrMr|r}r8rrrr) rOrPrrrQrrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIAr?r'rRMultipartUploadr%rr])r-rnrocreate_multipart_upload_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rszL $            z+ObjectStorageClient.create_multipart_uploadc spd}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d}|d urtj}|rHt|tjs |j | ||j|j|j j||| | |d| d||d S|j j||| | |d| d||d Sd S)a Creates a pre-authenticated request specific to the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.CreatePreauthenticatedRequestDetails create_preauthenticated_request_details: (required) Information needed to create the pre-authenticated request. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.PreauthenticatedRequest` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_preauthenticated_request API. #/n/{namespaceName}/b/{bucketName}/prycreate_preauthenticated_requestzrhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/CreatePreauthenticatedRequestr7csg|]}|vr|qSr1r1r9r<r1r2r>r?zGObjectStorageClient.create_preauthenticated_request..z8create_preauthenticated_request got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?zGObjectStorageClient.create_preauthenticated_request..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRPreauthenticatedRequestr%rr])r-rnro'create_preauthenticated_request_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2resn$$    z3ObjectStorageClient.create_preauthenticated_requestc spd}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d}|d urtj}|rHt|tjs |j | ||j|j|j j||| | |d| d||d S|j j||| | |d| d||d Sd S)a Creates a replication policy for the specified bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.CreateReplicationPolicyDetails create_replication_policy_details: (required) The replication policy. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.ReplicationPolicy` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_replication_policy API. 5/n/{namespaceName}/b/{bucketName}/replicationPoliciesrycreate_replication_policyz`https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/CreateReplicationPolicyr7csg|]}|vr|qSr1r1r9r<r1r2r>r?zAObjectStorageClient.create_replication_policy..z2create_replication_policy got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?zAObjectStorageClient.create_replication_policy..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRReplicationPolicyr%rr])r-rnro!create_replication_policy_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rsn$$    z-ObjectStorageClient.create_replication_policyc spd}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d}|d urtj}|rHt|tjs |j | ||j|j|j j||| | |d| d||d S|j j||| | |d| d||d Sd S)a. Creates a new retention rule in the specified bucket. The new rule will take effect typically within 30 seconds. Note that a maximum of 100 rules are supported on a bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.CreateRetentionRuleDetails create_retention_rule_details: (required) The retention rule to create for the bucket. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.RetentionRule` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_retention_rule API. 0/n/{namespaceName}/b/{bucketName}/retentionRulesrycreate_retention_rulez^https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/CreateRetentionRuler7csg|]}|vr|qSr1r1r9r<r1r2r>er?z=ObjectStorageClient.create_retention_rule..z.create_retention_rule got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIor?z=ObjectStorageClient.create_retention_rule..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIzr?r'rR RetentionRuler%rr])r-rnrocreate_retention_rule_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2r5sn%$    z)ObjectStorageClient.create_retention_rulec srd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rNt| tjs*|j | | |j| j|j j||| | | d||dS|j j||| | | d||dSd S)a Deletes a bucket if the bucket is already empty. If the bucket is not empty, use :func:`delete_object` first. In addition, you cannot delete a bucket that has a multipart upload in progress or a pre-authenticated request associated with that bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_bucket API. !/n/{namespaceName}/b/{bucketName}r5 delete_bucketzPhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/DeleteBucketr%r'r|r8csg|]}|vr|qSr1r1r9r<r1r2r>r?z5ObjectStorageClient.delete_bucket..z&delete_bucket got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z5ObjectStorageClient.delete_bucket..NrrJrMr|r8rOrPrrQcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rvr]r-rnror/rVrWr[r\rrrXrGrHrZr'r1r<r2rsh)$     z!ObjectStorageClient.delete_bucketc sd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qld| dt i} dd t| D} dd| dt | dt d}dd t|D}|j j | d|j d}|d ur&tj}|rxt|tjsR|j |||j|j|j j||| | || d||d S|j j||| | || d||dSd S)a Deletes an object. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str version_id: (optional) VersionId used to identify a particular version of the object :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_object API. 0/n/{namespaceName}/b/{bucketName}/o/{objectName}r5 delete_objectzPhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/DeleteObject)r%r'r|r8 version_idcsg|]}|vr|qSr1r1r9r<r1r2r>Cr?z5ObjectStorageClient.delete_object..z&delete_object got unknown kwargs: {!r}r@cSsi|]\}}|tur||qSr1rDrFr1r1r2rINr?z5ObjectStorageClient.delete_object..NrrJ versionIdrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIWr?rMr|r8rcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI_r?r'rRr%rUr]r-rnrorpr/rVrWr[r\rrrXrGrHrYrZr'r1r<r2r st-$       z!ObjectStorageClient.delete_objectc srd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rNt| tjs*|j | | |j| j|j j||| | | d||dS|j j||| | | d||dSd S)a! Deletes the object lifecycle policy for the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str opc_client_request_id: (optional) The client request ID for tracing. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_object_lifecycle_policy API. #/n/{namespaceName}/b/{bucketName}/lr5delete_object_lifecycle_policyznhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/DeleteObjectLifecyclePolicy)r%r'r8r|csg|]}|vr|qSr1r1r9r<r1r2r>r?zFObjectStorageClient.delete_object_lifecycle_policy..z7delete_object_lifecycle_policy got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?zFObjectStorageClient.delete_object_lifecycle_policy..NrrJrMr8r|)rOrPrQrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rvr]rr1r<r2rsh&$     z2ObjectStorageClient.delete_object_lifecycle_policyc sjd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qldd| dt d} dd t| D} |j j | d|j d}|d urtj}|rFt|tjs"|j | ||j|j|j j||| | | d||dS|j j||| | | d||dSd S)a Deletes the pre-authenticated request for the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str par_id: (required) The unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_preauthenticated_request API. +/n/{namespaceName}/b/{bucketName}/p/{parId}r5delete_preauthenticated_requestzrhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/DeletePreauthenticatedRequestr7csg|]}|vr|qSr1r1r9r<r1r2r>r?zGObjectStorageClient.delete_preauthenticated_request..z8delete_preauthenticated_request got unknown kwargs: {!r}rArBparIdcSsi|]\}}|tur||qSr1rDrFr1r1r2rI$r?zGObjectStorageClient.delete_preauthenticated_request..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI/r?r'rRr%rvr]r-rnropar_idr/rVrWr[r\rrrXrGrHrZr'r1r<r2rsh%$    z3ObjectStorageClient.delete_preauthenticated_requestc sjd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qldd| dt d} dd t| D} |j j | d|j d}|d urtj}|rFt|tjs"|j | ||j|j|j j||| | | d||dS|j j||| | | d||dSd S)aK Deletes the replication policy associated with the source bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str replication_id: (required) The ID of the replication policy. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_replication_policy API. E/n/{namespaceName}/b/{bucketName}/replicationPolicies/{replicationId}r5delete_replication_policyz`https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/DeleteReplicationPolicyr7csg|]}|vr|qSr1r1r9r<r1r2r>~r?zAObjectStorageClient.delete_replication_policy..z2delete_replication_policy got unknown kwargs: {!r}rArB replicationIdcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?zAObjectStorageClient.delete_replication_policy..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rvr]r-rnroreplication_idr/rVrWr[r\rrrXrGrHrZr'r1r<r2rOsh$$    z-ObjectStorageClient.delete_replication_policyc svd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qldd| dt | dt d} dd t| D} |j j | d|j d}|d urtj}|rRt|tjs.|j | ||j|j|j j||| | | d||dS|j j||| | | d||dSd S)a Deletes the specified rule. The deletion takes effect typically within 30 seconds. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str retention_rule_id: (required) The ID of the retention rule. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use delete_retention_rule API. B/n/{namespaceName}/b/{bucketName}/retentionRules/{retentionRuleId}r5delete_retention_rulez^https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/DeleteRetentionRulercsg|]}|vr|qSr1r1r9r<r1r2r>r?z=ObjectStorageClient.delete_retention_rule..z.delete_retention_rule got unknown kwargs: {!r}rArBretentionRuleIdcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z=ObjectStorageClient.delete_retention_rule..NrrJrMr|r8rcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rvr]r-rnroretention_rule_idr/rVrWr[r\rrrXrGrHrZr'r1r<r2rsj)$      z)ObjectStorageClient.delete_retention_rulec sd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjd|vrgd} |dD]} | | vrtd| qd|j | dt di}dd t|D}dd| dt | dt | dt d}dd t|D}|j j | d|jd}|d urltj}|rt|tjs|j |||j|j|j j||| ||d| d||d S|j j||| ||d| d||d Sd S)a Gets the current representation of the given bucket in the given Object Storage namespace. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the specified ETag does not match the ETag of the existing resource, the request returns the expected response. If the ETag matches the ETag of the existing resource, the request returns an HTTP 304 status without a response body. :param str opc_client_request_id: (optional) The client request ID for tracing. :param list[str] fields: (optional) Bucket summary includes the 'namespace', 'name', 'compartmentId', 'createdBy', 'timeCreated', and 'etag' fields. This parameter can also include 'approximateCount' (approximate number of objects), 'approximateSize' (total approximate size in bytes of all objects) and 'autoTiering' (state of auto tiering on the bucket). For example 'approximateCount,approximateSize,autoTiering'. Allowed values are: "approximateCount", "approximateSize", "autoTiering" :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.Bucket` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_bucket API. rGET get_bucketzMhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/GetBucket)r%r'r|r}r8fieldscsg|]}|vr|qSr1r1r9r<r1r2r>ar?z2ObjectStorageClient.get_bucket..z#get_bucket got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIkr?z2ObjectStorageClient.get_bucket..NrrJr)approximateCountapproximateSize autoTiering.Invalid value for `fields`, must be one of {0}csvcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI|r?rMr|r}r8r~cSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRrr% rVrWrXrYrZrr%r[r\)rr^r_r`rarbrcrdrer, generate_collection_format_paramr)rErfr'rrgrhrirjr(rkrl)r-rnror/rVrWr[r\rrrXrGrHfields_allowed_values fields_itemrYrZr'r1r<r2r s3$        zObjectStorageClient.get_bucketc s*d}d}d}d}gdfddt|D}|rBtd|d |d ti}d d t|D}d d |dtd}dd t|D}|jj|d|j d} | durt j } | rt | t j s|j|| |j| j|jj||||d|d||d S|jj||||d|d||dSdS)a Each Oracle Cloud Infrastructure tenant is assigned one unique and uneditable Object Storage namespace. The namespace is a system-generated string assigned during account creation. For some older tenancies, the namespace string may be the tenancy name in all lower-case letters. You cannot edit a namespace. GetNamespace returns the name of the Object Storage namespace for the user making the request. If an optional compartmentId query parameter is provided, GetNamespace returns the namespace name of the corresponding tenancy, provided the user has access to it. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str compartment_id: (optional) This is an optional field representing either the tenancy `OCID`__ or the compartment `OCID`__ within the tenancy whose Object Storage namespace is to be retrieved. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type str :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_namespace API. z/nr get_namespacezShttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Namespace/GetNamespace)r%r'r8compartment_idcsg|]}|vr|qSr1r1r9r<r1r2r>r?z5ObjectStorageClient.get_namespace..z&get_namespace got unknown kwargs: {!r} compartmentIdrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?z5ObjectStorageClient.get_namespace..rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRNstrr%rVrWrYrZrr%r[r\rr^r_r`r)rErar,rfr'rrgrbrhrirjr(rkrl) r-r/rVrWr[r\rrrYrZr'r1r<r2rsb'      z!ObjectStorageClient.get_namespacec sjd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qhdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rDt| tjs|j | | |j| j|j j|||| d| d||d S|j j|||| d| d||dSd S)aA Gets the metadata for the Object Storage namespace, which contains defaultS3CompartmentId and defaultSwiftCompartmentId. Any user with the OBJECTSTORAGE_NAMESPACE_READ permission will be able to see the current metadata. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm :param str namespace_name: (required) The Object Storage namespace used for the request. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.NamespaceMetadata` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_namespace_metadata API. /n/{namespaceName}rget_namespace_metadataz[https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Namespace/GetNamespaceMetadatar7csg|]}|vr|qSr1r1r9r<r1r2r>=r?z>ObjectStorageClient.get_namespace_metadata..z/get_namespace_metadata got unknown kwargs: {!r}rAcSsi|]\}}|tur||qSr1rDrFr1r1r2rIFr?z>ObjectStorageClient.get_namespace_metadata..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIQr?r'rRNamespaceMetadatar%rVrWrXrZrr%r[r\r]) r-rnr/rVrWr[r\rrrXrGrHrZr'r1r<r2r sh%$    z*ObjectStorageClient.get_namespace_metadatac sd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| ql| dt | dt | dt | dt | dt | dt | dt d} dd t| D} dd| dt | dt | dt | dt | dt | dt | dt d }d!d t|D}|j j | d"|j d#}|d urtj}|rt|tjs|j |||j|j|j j||| | |d$| d%||d& S|j j||| | |d$| d%||d& Sd S)'a Gets the metadata and body of an object. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param str version_id: (optional) VersionId used to identify a particular version of the object :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the specified ETag does not match the ETag of the existing resource, the request returns the expected response. If the ETag matches the ETag of the existing resource, the request returns an HTTP 304 status without a response body. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str range: (optional) Optional byte range to fetch, as described in `RFC 7233`__. Note that only a single range of bytes is supported. __ https://tools.ietf.org/html/rfc7233#section-2.1 :param str opc_sse_customer_algorithm: (optional) The optional header that specifies "AES256" as the encryption algorithm. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key: (optional) The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key_sha256: (optional) The optional header that specifies the base64-encoded SHA256 hash of the encryption key. This value is used to check the integrity of the encryption key. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str http_response_content_disposition: (optional) Specify this query parameter to override the value of the Content-Disposition response header in the GetObject response. :param str http_response_cache_control: (optional) Specify this query parameter to override the Cache-Control response header in the GetObject response. :param str http_response_content_type: (optional) Specify this query parameter to override the Content-Type response header in the GetObject response. :param str http_response_content_language: (optional) Specify this query parameter to override the Content-Language response header in the GetObject response. :param str http_response_content_encoding: (optional) Specify this query parameter to override the Content-Encoding response header in the GetObject response. :param str http_response_expires: (optional) Specify this query parameter to override the Expires response header in the GetObject response. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type stream :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_object API. rr get_objectzMhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/GetObject)r%r'rr|r}r8rangerrr!http_response_content_dispositionhttp_response_cache_controlhttp_response_content_typehttp_response_content_languagehttp_response_content_encodinghttp_response_expirescsg|]}|vr|qSr1r1r9r<r1r2r>r?z2ObjectStorageClient.get_object..z#get_object got unknown kwargs: {!r}r@cSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z2ObjectStorageClient.get_object..NrrJrrrrrrr)rhttpResponseContentDispositionhttpResponseCacheControlhttpResponseContentTypehttpResponseContentLanguagehttpResponseContentEncodinghttpResponseExpirescSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?rMr|r}r8rrrr) rOrPrrrQrrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?r'rRstreamr%rr]rr1r<r2rss^$                    zObjectStorageClient.get_objectc sld}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rFt| tjs |j | | |j| j|j j||| | d| d||d S|j j||| | d| d||dSd S)a Gets the object lifecycle policy for the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.ObjectLifecyclePolicy` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_object_lifecycle_policy API. rrget_object_lifecycle_policyzkhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/GetObjectLifecyclePolicyr7csg|]}|vr|qSr1r1r9r<r1r2r>` r?zCObjectStorageClient.get_object_lifecycle_policy..z4get_object_lifecycle_policy got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIj r?zCObjectStorageClient.get_object_lifecycle_policy..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIu r?r'rRObjectLifecyclePolicyr%rr]rr1r<r2r4 sj!$    z/ObjectStorageClient.get_object_lifecycle_policyc snd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qldd| dt d} dd t| D} |j j | d|j d}|d urtj}|rHt|tjs"|j | ||j|j|j j||| | d| d||d S|j j||| | d| d||dSd S)a Gets the pre-authenticated request for the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str par_id: (required) The unique identifier for the pre-authenticated request. This can be used to manage operations against the pre-authenticated request, such as GET or DELETE. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.PreauthenticatedRequestSummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_preauthenticated_request API. rrget_preauthenticated_requestzohttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/GetPreauthenticatedRequestr7csg|]}|vr|qSr1r1r9r<r1r2r> r?zDObjectStorageClient.get_preauthenticated_request..z5get_preauthenticated_request got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI r?zDObjectStorageClient.get_preauthenticated_request..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?r'rRPreauthenticatedRequestSummaryr%rr]rr1r<r2r sl%$    z0ObjectStorageClient.get_preauthenticated_requestc snd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qldd| dt d} dd t| D} |j j | d|j d}|d urtj}|rHt|tjs"|j | ||j|j|j j||| | d| d||d S|j j||| | d| d||dSd S)aP Get the replication policy. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str replication_id: (required) The ID of the replication policy. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.ReplicationPolicy` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_replication_policy API. rrget_replication_policyz]https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/GetReplicationPolicyr7csg|]}|vr|qSr1r1r9r<r1r2r>. r?z>ObjectStorageClient.get_replication_policy..z/get_replication_policy got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI9 r?z>ObjectStorageClient.get_replication_policy..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rID r?r'rRrr%rr]rr1r<r2r sl$$    z*ObjectStorageClient.get_replication_policyc snd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qldd| dt d} dd t| D} |j j | d|j d}|d urtj}|rHt|tjs"|j | ||j|j|j j||| | d| d||d S|j j||| | d| d||dSd S)aI Get the specified retention rule. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str retention_rule_id: (required) The ID of the retention rule. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.RetentionRule` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_retention_rule API. rrget_retention_rulez[https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/GetRetentionRuler7csg|]}|vr|qSr1r1r9r<r1r2r> r?z:ObjectStorageClient.get_retention_rule..z+get_retention_rule got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI r?z:ObjectStorageClient.get_retention_rule..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?r'rRrr%rr]rr1r<r2rf sl$$    z&ObjectStorageClient.get_retention_rulec sjd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qhdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rDt| tjs|j | | |j| j|j j|||| d| d||d S|j j|||| d| d||dSd S)aN Gets the status of the work request for the given ID. :param str work_request_id: (required) The ID of the asynchronous request. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.WorkRequest` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_work_request API. rsrget_work_requestzWhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequest/GetWorkRequestr7csg|]}|vr|qSr1r1r9r<r1r2r> r?z8ObjectStorageClient.get_work_request..z)get_work_request got unknown kwargs: {!r}rucSsi|]\}}|tur||qSr1rDrFr1r1r2rI r?z8ObjectStorageClient.get_work_request..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?r'rR WorkRequestr%rr]rwr1r<r2r sh$    z$ObjectStorageClient.get_work_requestc s~d}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt | dt | dt d} dd t| D} |j j | d|j d} | d ur tj} | rZt| tjs6|j | | |j| j|j j||| | | d||dS|j j||| | | d||dSd S)a Efficiently checks to see if a bucket exists and gets the current entity tag (ETag) for the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the specified ETag does not match the ETag of the existing resource, the request returns the expected response. If the ETag matches the ETag of the existing resource, the request returns an HTTP 304 status without a response body. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use head_bucket API. rHEAD head_bucketzNhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/HeadBucketr{csg|]}|vr|qSr1r1r9r<r1r2r>c r?z3ObjectStorageClient.head_bucket..z$head_bucket got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIm r?z3ObjectStorageClient.head_bucket..NrrJrMr|r}r8r~cSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIz r?r'rRr%rvr]rr1r<r2r+ sj+$       zObjectStorageClient.head_bucketc sd}d}d}d}gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qld| dt i} dd t| D} dd| dt | dt | dt | dt | dt | dt d}dd t|D}|j j | d|j d}|d urNtj}|rt|tjsz|j |||j|j|j j||| | || d||d S|j j||| | || d||dSd S)a Gets the user-defined metadata and entity tag (ETag) for an object. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param str version_id: (optional) VersionId used to identify a particular version of the object :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the specified ETag does not match the ETag of the existing resource, the request returns the expected response. If the ETag matches the ETag of the existing resource, the request returns an HTTP 304 status without a response body. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str opc_sse_customer_algorithm: (optional) The optional header that specifies "AES256" as the encryption algorithm. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key: (optional) The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key_sha256: (optional) The optional header that specifies the base64-encoded SHA256 hash of the encryption key. This value is used to check the integrity of the encryption key. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use head_object API. rr head_objectzNhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/HeadObject) r%r'rr|r}r8rrrcsg|]}|vr|qSr1r1r9r<r1r2r> r?z3ObjectStorageClient.head_object..z$head_object got unknown kwargs: {!r}r@cSsi|]\}}|tur||qSr1rDrFr1r1r2rI r?z3ObjectStorageClient.head_object..NrrJrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?rMr|r}r8rrr)rOrPrrrQrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?r'rRr%rUr]rr1r<r2r s|F $            zObjectStorageClient.head_objectc sd}d}d}d}gdfddt|D}|rBtd|d |i} d d t| D} t| D]:\} } | d ust| tjrht| d krhtd| qhd|vrdg} |dD]} | | vrtd| q|| dt | dt |j | dt dd}dd t|D}dd| dt d}dd t|D}|j j | d|jd}|d urjtj}|rt|tjs|j |||j|j|j j||| ||d| d||d S|j j||| ||d| d||d Sd S) a Gets a list of all BucketSummary items in a compartment. A BucketSummary contains only summary fields for the bucket and does not contain fields like the user-defined metadata. ListBuckets returns a BucketSummary containing at most 1000 buckets. To paginate through more buckets, use the returned `opc-next-page` value with the `page` request parameter. To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm :param str namespace_name: (required) The Object Storage namespace used for the request. :param str compartment_id: (required) The ID of the compartment in which to list buckets. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param list[str] fields: (optional) Bucket summary in list of buckets includes the 'namespace', 'name', 'compartmentId', 'createdBy', 'timeCreated', and 'etag' fields. This parameter can also include 'tags' (freeformTags and definedTags). The only supported value of this parameter is 'tags' for now. Example 'tags'. Allowed values are: "tags" :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.BucketSummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_buckets API. rr list_bucketszOhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/ListBuckets)r%r'limitpagerr8csg|]}|vr|qSr1r1r9r<r1r2r>~ r?z4ObjectStorageClient.list_buckets..z%list_buckets got unknown kwargs: {!r}rAcSsi|]\}}|tur||qSr1rDrFr1r1r2rI r?z4ObjectStorageClient.list_buckets..NrrJrtagsrrrr)rrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?r'rRzlist[BucketSummary]r%r)rr^r_r`rarbrcrdrer)rEr,rrfr'rrgrhrirjr(rkrl)r-rnrr/rVrWr[r\rrrXrGrHrrrYrZr'r1r<r2r3 s=$        z ObjectStorageClient.list_bucketsc sd}d}d}d} gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| ql|| dt | dt d}dd t|D}dd| dt d}dd t|D}|j j | d|j d}|d ur(tj}|r|t|tjsT|j |||j|j|j j||| ||d| d|| d S|j j||| ||d| d|| d Sd S)a Lists the parts of an in-progress multipart upload. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param str upload_id: (required) The upload ID for a multipart upload. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.MultipartUploadPartSummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_multipart_upload_parts API. r4rlist_multipart_upload_partszehttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/ListMultipartUploadPartsr%r'rrr8csg|]}|vr|qSr1r1r9r<r1r2r> r?zCObjectStorageClient.list_multipart_upload_parts..z4list_multipart_upload_parts got unknown kwargs: {!r}r@cSsi|]\}}|tur||qSr1rDrFr1r1r2rI r?zCObjectStorageClient.list_multipart_upload_parts..NrrJrr)rKrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI% r?r'rRz list[MultipartUploadPartSummary]r%rr]rmr1r<r2r sz5$       z/ObjectStorageClient.list_multipart_upload_partsc sd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qj| dt | dt d} dd t| D} dd| dt d} dd t| D} |j j | d|j d}|d ur$tj}|rxt|tjsP|j | ||j|j|j j||| | | d| d||d S|j j||| | | d| d||d Sd S)a Lists all of the in-progress multipart uploads for the given bucket in the given Object Storage namespace. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.MultipartUpload` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_multipart_uploads API. rrlist_multipart_uploadszahttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/ListMultipartUploadsrcsg|]}|vr|qSr1r1r9r<r1r2r> r?z>ObjectStorageClient.list_multipart_uploads..z/list_multipart_uploads got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI r?z>ObjectStorageClient.list_multipart_uploads..NrrJrr)rrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI r?r'rRzlist[MultipartUpload]r%rr]r-rnror/rVrWr[r\rrrXrGrHrYrZr'r1r<r2rI sv.$       z*ObjectStorageClient.list_multipart_uploadsc sd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qj| dt | dt | dt | dt | dt | dt | dt | dt d} dd t| D} dd| dt d} dd t| D} |j j | d|j d}|d ur`tj}|rt|tjs|j | ||j|j|j j||| | | d| d ||d! S|j j||| | | d| d ||d! Sd S)"a Lists the object versions in a bucket. ListObjectVersions returns an ObjectVersionCollection containing at most 1000 object versions. To paginate through more object versions, use the returned `opc-next-page` value with the `page` request parameter. To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str prefix: (optional) The string to use for matching against the start of object names in a list query. :param str start: (optional) Object names returned by a list query must be greater or equal to this parameter. :param str end: (optional) Object names returned by a list query must be strictly less than this parameter. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str delimiter: (optional) When this parameter is set, only objects whose names do not contain the delimiter character (after an optionally specified prefix) are returned in the objects key of the response body. Scanned objects whose names contain the delimiter have the part of their name up to the first occurrence of the delimiter (including the optional prefix) returned as a set of prefixes. Note that only '/' is a supported delimiter character at this time. :param str fields: (optional) Object summary by default includes only the 'name' field. Use this parameter to also include 'size' (object size in bytes), 'etag', 'md5', 'timeCreated' (object creation date and time), 'timeModified' (object modification date and time), 'storageTier' and 'archivalState' fields. Specify the value of this parameter as a comma-separated, case-insensitive list of those field names. For example 'name,etag,timeCreated,md5,timeModified,storageTier,archivalState'. Allowed values are: "name", "size", "etag", "timeCreated", "md5", "timeModified", "storageTier", "archivalState" :param str opc_client_request_id: (optional) The client request ID for tracing. :param str start_after: (optional) Object names returned by a list query must be greater than this parameter. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.ObjectVersionCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_object_versions API. z0/n/{namespaceName}/b/{bucketName}/objectversionsrlist_object_versionszVhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/ListObjectVersions) r%r'prefixstartendr delimiterrr8 start_afterrcsg|]}|vr|qSr1r1r9r<r1r2r>)r?z.z-list_object_versions got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI3r?z.NrrJrrrrrrrr)rrrrrr startAfterrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rICr?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIJr?r'rRObjectVersionCollectionr%rr]rr1r<r2r sS $              z(ObjectStorageClient.list_object_versionsc sd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qj| dt | dt | dt | dt | dt | dt | dt d} dd t| D} dd| dt d} dd t| D} |j j | d|j d}|d urVtj}|rt|tjs|j | ||j|j|j j||| | | d| d||d S|j j||| | | d| d||d Sd S)!a Lists the objects in a bucket. By default, ListObjects returns object names only. See the `fields` parameter for other fields that you can optionally include in ListObjects response. ListObjects returns at most 1000 objects. To paginate through more objects, use the returned 'nextStartWith' value with the 'start' parameter. To filter which objects ListObjects returns, use the 'start' and 'end' parameters. To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str prefix: (optional) The string to use for matching against the start of object names in a list query. :param str start: (optional) Object names returned by a list query must be greater or equal to this parameter. :param str end: (optional) Object names returned by a list query must be strictly less than this parameter. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str delimiter: (optional) When this parameter is set, only objects whose names do not contain the delimiter character (after an optionally specified prefix) are returned in the objects key of the response body. Scanned objects whose names contain the delimiter have the part of their name up to the first occurrence of the delimiter (including the optional prefix) returned as a set of prefixes. Note that only '/' is a supported delimiter character at this time. :param str fields: (optional) Object summary by default includes only the 'name' field. Use this parameter to also include 'size' (object size in bytes), 'etag', 'md5', 'timeCreated' (object creation date and time), 'timeModified' (object modification date and time), 'storageTier' and 'archivalState' fields. Specify the value of this parameter as a comma-separated, case-insensitive list of those field names. For example 'name,etag,timeCreated,md5,timeModified,storageTier,archivalState'. Allowed values are: "name", "size", "etag", "timeCreated", "md5", "timeModified", "storageTier", "archivalState" :param str opc_client_request_id: (optional) The client request ID for tracing. :param str start_after: (optional) Object names returned by a list query must be greater than this parameter. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.ListObjects` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_objects API. z#/n/{namespaceName}/b/{bucketName}/or list_objectszOhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/ListObjects) r%r'rrrrrrr8rcsg|]}|vr|qSr1r1r9r<r1r2r>r?z4ObjectStorageClient.list_objects..z%list_objects got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z4ObjectStorageClient.list_objects..NrrJrrrrrrr)rrrrrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rR ListObjectsr%rr]rr1r<r2rnsO $             z ObjectStorageClient.list_objectsc sd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qj| dt | dt | dt d} dd t| D} dd| dt d} dd t| D} |j j | d|j d}|d ur.tj}|rt|tjsZ|j | ||j|j|j j||| | | d| d||d S|j j||| | | d| d||d Sd S)ax Lists pre-authenticated requests for the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name_prefix: (optional) User-specified object name prefixes can be used to query and return a list of pre-authenticated requests. :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.PreauthenticatedRequestSummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_preauthenticated_requests API. rrlist_preauthenticated_requestszqhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/ListPreauthenticatedRequests)r%r'object_name_prefixrrr8csg|]}|vr|qSr1r1r9r<r1r2r>Rr?zFObjectStorageClient.list_preauthenticated_requests..z7list_preauthenticated_requests got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI\r?zFObjectStorageClient.list_preauthenticated_requests..NrrJr rr)objectNamePrefixrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIgr?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rInr?r'rRz$list[PreauthenticatedRequestSummary]r%rr]rr1r<r2r sx1$        z2ObjectStorageClient.list_preauthenticated_requestsc sd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qj| dt | dt d} dd t| D} dd| dt d} dd t| D} |j j | d|j d}|d ur$tj}|rxt|tjsP|j | ||j|j|j j||| | | d| d||d S|j j||| | | d| d||d Sd S)a List the replication policies associated with a bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str opc_client_request_id: (optional) The client request ID for tracing. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.ReplicationPolicySummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_replication_policies API. rrlist_replication_policiesz`https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/ListReplicationPoliciesr%r'r8rrcsg|]}|vr|qSr1r1r9r<r1r2r>r?zAObjectStorageClient.list_replication_policies..z2list_replication_policies got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?zAObjectStorageClient.list_replication_policies..NrrJrrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRzlist[ReplicationPolicySummary]r%rr]rr1r<r2r sv.$       z-ObjectStorageClient.list_replication_policiesc sd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qj| dt | dt d} dd t| D} dd| dt d} dd t| D} |j j | d|j d}|d ur$tj}|rxt|tjsP|j | ||j|j|j j||| | | d| d||d S|j j||| | | d| d||d Sd S)a List the replication sources of a destination bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str opc_client_request_id: (optional) The client request ID for tracing. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.ReplicationSource` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_replication_sources API. z4/n/{namespaceName}/b/{bucketName}/replicationSourcesrlist_replication_sourcesz_https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Replication/ListReplicationSourcesr csg|]}|vr|qSr1r1r9r<r1r2r>Gr?z@ObjectStorageClient.list_replication_sources..z1list_replication_sources got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIQr?z@ObjectStorageClient.list_replication_sources..NrrJrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI[r?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIbr?r'rRzlist[ReplicationSource]r%rr]rr1r<r2r sv.$       z,ObjectStorageClient.list_replication_sourcesc svd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjd| dt i} dd t| D} ddd} |j j | d|j d}|d urtj}|rNt|tjs&|j | ||j|j|j j||| | | d| d||d S|j j||| | | d| d||d Sd S)a_ List the retention rules for a bucket. The retention rules are sorted based on creation time, with the most recently created retention rule returned first. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.RetentionRuleCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_retention_rules API. rrlist_retention_rulesz]https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/ListRetentionRules)r%r'rcsg|]}|vr|qSr1r1r9r<r1r2r>r?z.z-list_retention_rules got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z.NrrJrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?rM)rOrPr'rRRetentionRuleCollectionr%rr]rr1r<r2rsp%$    z(ObjectStorageClient.list_retention_rulesc sd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qh| dt | dt d} dd t| D} dd| dt d} dd t| D} |j j | d|j d} | d ur"tj} | rvt| tjsN|j | | |j| j|j j|||| | d| d||d S|j j|||| | d| d||d Sd S)a Lists the errors of the work request with the given ID. :param str work_request_id: (required) The ID of the asynchronous request. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.WorkRequestError` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_request_errors API. z$/workRequests/{workRequestId}/errorsrlist_work_request_errorszchttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequestError/ListWorkRequestErrorsr%r'rrr8csg|]}|vr|qSr1r1r9r<r1r2r>)r?z@ObjectStorageClient.list_work_request_errors..z1list_work_request_errors got unknown kwargs: {!r}rucSsi|]\}}|tur||qSr1rDrFr1r1r2rI2r?z@ObjectStorageClient.list_work_request_errors..NrrJrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI<r?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rICr?r'rRzlist[WorkRequestError]r%rr]r-rxr/rVrWr[r\rrrXrGrHrYrZr'r1r<r2rst*$       z,ObjectStorageClient.list_work_request_errorsc sd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qh| dt | dt d} dd t| D} dd| dt d} dd t| D} |j j | d|j d} | d ur"tj} | rvt| tjsN|j | | |j| j|j j|||| | d| d||d S|j j|||| | d| d||d Sd S)a Lists the logs of the work request with the given ID. :param str work_request_id: (required) The ID of the asynchronous request. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.WorkRequestLogEntry` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_request_logs API. z"/workRequests/{workRequestId}/logsrlist_work_request_logszdhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequestLogEntry/ListWorkRequestLogsrcsg|]}|vr|qSr1r1r9r<r1r2r>r?z>ObjectStorageClient.list_work_request_logs..z/list_work_request_logs got unknown kwargs: {!r}rucSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z>ObjectStorageClient.list_work_request_logs..NrrJrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRzlist[WorkRequestLogEntry]r%rr]rr1r<r2rgst*$       z*ObjectStorageClient.list_work_request_logsc s6d}d}d}d}gdfddt|D}|rBtd|||d t|d td }d d t|D}dd|dtd} dd t| D} |jj|d|j d} | durt j } | rt | t j s|j| | |j| j|jj|||| d|d||d S|jj|||| d|d||dSdS)a Lists the work requests in a compartment. :param str compartment_id: (required) The ID of the compartment in which to list buckets. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str page: (optional) For list pagination. The value of the `opc-next-page` response header from the previous "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param int limit: (optional) For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see `List Pagination`__. __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.WorkRequestSummary` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_work_requests API. z /workRequestsrlist_work_requestszYhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/WorkRequest/ListWorkRequestsr csg|]}|vr|qSr1r1r9r<r1r2r>r?z:ObjectStorageClient.list_work_requests..z+list_work_requests got unknown kwargs: {!r}rr)rrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?z:ObjectStorageClient.list_work_requests..rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI$r?r'rRNzlist[WorkRequestSummary]r%rr) r-rr/rVrWr[r\rrrYrZr'r1r<r2rsf*       z&ObjectStorageClient.list_work_requestsc shd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rDt| tjs |j | | |j| j|j j||| | | d||dS|j j||| | | d||dSd S)a_ Stops replication to the destination bucket and removes the replication policy. When the replication policy was created, this destination bucket became read-only except for new and changed objects replicated automatically from the source bucket. MakeBucketWritable removes the replication policy. This bucket is no longer the target for replication and is now writable, allowing users to make changes to bucket contents. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use make_bucket_writable API. zur?z.z-make_bucket_writable got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z.NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rvr]rr1r<r2rFsf$$    z(ObjectStorageClient.make_bucket_writablec s0d}d}d}d} gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qld| dt | dt | dt | dt | dt | dt | dt | dt | dt | dt | dt | dt | dt | dt | dt | dt d }t| d!iD]\}}||d"|<qbd#d t|D}d$d|D}d|vrd%|d<z|Wn t y| d&t }Yn0|t ur|d urt|tj tjfst |d'std(t |d)rTt |d*rT|jd+krTtj|d krd,|d-<n8d-|vrt|st|| d.}|d|d-<|d/}|jj| d0|jd1}|d urtj}|rt|tjs|j|||j|j|jj||| ||d2| d3|| d4 S|jj||| ||d2| d3|| d4 Sd S)5a$ Creates a new object or overwrites an existing object with the same name. The maximum object size allowed by PutObject is 50 GiB. See `Object Names`__ for object naming requirements. See `Special Instructions for Object Storage PUT`__ for request signature requirements. __ https://docs.cloud.oracle.com/Content/Object/Tasks/managingobjects.htm#namerequirements __ https://docs.cloud.oracle.com/Content/API/Concepts/signingrequests.htm#ObjectStoragePut :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param stream put_object_body: (required) The object to upload to the object store. :param int content_length: (optional) The content length of the body. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the resource already exists. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str expect: (optional) A value of `100-continue` requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive). :param str content_md5: (optional) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message: "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)" :param str content_type: (optional) The optional Content-Type header that defines the standard MIME type format of the object. Content type defaults to 'application/octet-stream' if not specified in the PutObject call. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and perform special operations on text only objects. :param str content_language: (optional) The optional Content-Language header that defines the content language of the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify and differentiate objects based on a particular language. :param str content_encoding: (optional) The optional Content-Encoding header that defines the content encodings that were applied to the object to upload. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to determine what decoding mechanisms need to be applied to obtain the media-type specified by the Content-Type header of the object. :param str content_disposition: (optional) The optional Content-Disposition header that defines presentational information for the object to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to let users download objects with custom filenames in a browser. :param str cache_control: (optional) The optional Cache-Control header that defines the caching behavior value to be returned in GetObject and HeadObject responses. Specifying values for this header has no effect on Object Storage behavior. Programs that read the object determine what to do based on the value provided. For example, you could use this header to identify objects that require caching restrictions. :param str opc_sse_customer_algorithm: (optional) The optional header that specifies "AES256" as the encryption algorithm. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key: (optional) The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key_sha256: (optional) The optional header that specifies the base64-encoded SHA256 hash of the encryption key. This value is used to check the integrity of the encryption key. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_kms_key_id: (optional) The `OCID`__ of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str storage_tier: (optional) The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket. Allowed values are: "Standard", "InfrequentAccess", "Archive" :param dict(str, str) opc_meta: (optional) Optional user-defined metadata key and value. "opc-meta-" will be appended to each dict key before it is sent to the server. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :param int buffer_limit: (optional) A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit. If the stream size is greater than the buffer_limit, a BufferError exception will be thrown. The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length. If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB. Large streams can cause the process to freeze, consider passing in content-length for large streams instead. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use put_object API. rPUT put_objectzMhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/PutObject)r%r' buffer_limitcontent_lengthr|r}r8expect content_md5 content_typecontent_languagecontent_encodingcontent_disposition cache_controlrrrr storage_tieropc_metacsg|]}|vr|qSr1r1r9r<r1r2r>\r?z2ObjectStorageClient.put_object..z#put_object got unknown kwargs: {!r}r@cSsi|]\}}|tur||qSr1rDrFr1r1r2rIgr?z2ObjectStorageClient.put_object..NrrJrMr|r}r8rrrrrr r!r"rrrrr#)rOrrrQExpectContent-Length Content-MD5z Content-TypezContent-LanguagezContent-EncodingzContent-Dispositionz Cache-Controlrrrrz storage-tierr$z opc-meta-cSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?cSsg|] }|qSr1lowerr:rGr1r1r2r>r? 100-continueput_object_bodyread=The body must be a string, bytes, or provide a read() method.filenoname0r&r byte_contentr'rRFr%) rVrWrXrZrenforce_content_headersr%r[r\ rr^r_r`rarbrcrdrer)rE NameError binary_typehasattr TypeErrorr0rutils super_lenrrr,rfr'rrgrhrirjr(rkrl)r-rnrorpr,r/rVrWr[r\rrrXrGrHrZkeyvaluelowercase_header_params_keyscalculated_objr'r1r<r2rs$                 $      zObjectStorageClient.put_objectc sd}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt | dt | dt d} dd t| D} |j j | d|j d}|d ur tj}|r^t|tjs6|j | ||j|j|j j||| | |d| d||d S|j j||| | |d| d||d Sd S)a Creates or replaces the object lifecycle policy for the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.PutObjectLifecyclePolicyDetails put_object_lifecycle_policy_details: (required) The lifecycle policy to apply to the bucket. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the resource already exists. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.ObjectLifecyclePolicy` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use put_object_lifecycle_policy API. rrput_object_lifecycle_policyzkhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/ObjectLifecyclePolicy/PutObjectLifecyclePolicy)r%r'r8r|r}csg|]}|vr|qSr1r1r9r<r1r2r>r?zCObjectStorageClient.put_object_lifecycle_policy..z4put_object_lifecycle_policy got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?zCObjectStorageClient.put_object_lifecycle_policy..NrrJrMr8r|r})rOrPrQrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRrr%rr])r-rnro#put_object_lifecycle_policy_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2r@sr-$       z/ObjectStorageClient.put_object_lifecycle_policyc shd}d}d}d}gdfddt|D}|rBtd|||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rDt| tjs |j | | |j| j|j j||| | | d||dS|j j||| | | d||dSd S)a Re-encrypts the unique data encryption key that encrypts each object written to the bucket by using the most recent version of the master encryption key assigned to the bucket. (All data encryption keys are encrypted by a master encryption key. Master encryption keys are assigned to buckets and managed by Oracle by default, but you can assign a key that you created and control through the Oracle Cloud Infrastructure Key Management service.) The kmsKeyId property of the bucket determines which master encryption key is assigned to the bucket. If you assigned a different Key Management master encryption key to the bucket, you can call this API to re-encrypt all data encryption keys with the newly assigned key. Similarly, you might want to re-encrypt all data encryption keys if the assigned key has been rotated to a new key version since objects were last added to the bucket. If you call this API and there is no kmsKeyId associated with the bucket, the call will fail. Calling this API starts a work request task to re-encrypt the data encryption key of all objects in the bucket. Only objects created before the time of the API call will be re-encrypted. The call can take a long time, depending on how many objects are in the bucket and how big they are. This API returns a work request ID that you can use to retrieve the status of the work request task. All the versions of objects will be re-encrypted whether versioning is enabled or suspended at the bucket. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use reencrypt_bucket API. z3/n/{namespaceName}/b/{bucketName}/actions/reencryptryreencrypt_bucketzShttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/ReencryptBucketr7csg|]}|vr|qSr1r1r9r<r1r2r>or?z8ObjectStorageClient.reencrypt_bucket..z)reencrypt_bucket got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIyr?z8ObjectStorageClient.reencrypt_bucket..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rvr]rr1r<r2rB5sf/$    z$ObjectStorageClient.reencrypt_bucketc sd}d}d}d} gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qld| dt i}dd t|D}dd| dt d}dd t|D}|j j | d|j d}|d urtj}|rpt|tjsH|j |||j|j|j j||| |||| d|| d S|j j||| |||| d|| d Sd S)a" Re-encrypts the data encryption keys that encrypt the object and its chunks. By default, when you create a bucket, the Object Storage service manages the master encryption key used to encrypt each object's data encryption keys. The encryption mechanism that you specify for the bucket applies to the objects it contains. You can alternatively employ one of these encryption strategies for an object: - You can assign a key that you created and control through the Oracle Cloud Infrastructure Vault service. - You can encrypt an object using your own encryption key. The key you supply is known as a customer-provided encryption key (SSE-C). :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param oci.object_storage.models.ReencryptObjectDetails reencrypt_object_details: (required) Request object for re-encrypting the data encryption key associated with an object. :param str version_id: (optional) VersionId used to identify a particular version of the object :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use reencrypt_object API. z@/n/{namespaceName}/b/{bucketName}/actions/reencrypt/{objectName}ryreencrypt_objectzShttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/ReencryptObject)r%r'rr8csg|]}|vr|qSr1r1r9r<r1r2r>r?z8ObjectStorageClient.reencrypt_object..z)reencrypt_object got unknown kwargs: {!r}r@cSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z8ObjectStorageClient.reencrypt_object..NrrJrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?rMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rr])r-rnrorpreencrypt_object_detailsr/rVrWr[r\rrrXrGrHrYrZr'r1r<r2rCsv3$      z$ObjectStorageClient.reencrypt_objectc sld}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d}|d urtj}|rFt|tjs |j | ||j|j|j j||| | || d||d S|j j||| | || d||dSd S)a; Rename an object in the given Object Storage namespace. See `Object Names`__ for object naming requirements. __ https://docs.cloud.oracle.com/Content/Object/Tasks/managingobjects.htm#namerequirements :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.RenameObjectDetails rename_object_details: (required) The sourceName and newName of rename operation. Avoid entering confidential information. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use rename_object API. z6/n/{namespaceName}/b/{bucketName}/actions/renameObjectry rename_objectzPhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/RenameObjectr7csg|]}|vr|qSr1r1r9r<r1r2r>Vr?z5ObjectStorageClient.rename_object..z&rename_object got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI`r?z5ObjectStorageClient.rename_object..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIkr?r'rRr%rr])r-rnrorename_object_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rE"sj)$    z!ObjectStorageClient.rename_objectc sld}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d}|d urtj}|rFt|tjs |j | ||j|j|j j||| | || d||d S|j j||| | || d||dSd S)a Restores one or more objects specified by the objectName parameter. By default objects will be restored for 24 hours. Duration can be configured using the hours parameter. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.RestoreObjectsDetails restore_objects_details: (required) Request to restore objects. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use restore_objects API. z8/n/{namespaceName}/b/{bucketName}/actions/restoreObjectsryrestore_objectszRhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/RestoreObjectsr7csg|]}|vr|qSr1r1r9r<r1r2r>r?z7ObjectStorageClient.restore_objects..z(restore_objects got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?z7ObjectStorageClient.restore_objects..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rr])r-rnrorestore_objects_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rGsj%$    z#ObjectStorageClient.restore_objectsc szd}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt | dt d} dd t| D} |j j | d|j d}|d urtj}|rRt|tjs*|j | ||j|j|j j||| | |d| d||d S|j j||| | |d| d||d Sd S)am Performs a partial or full update of a bucket's user-defined metadata. Use UpdateBucket to move a bucket from one compartment to another within the same tenancy. Supply the compartmentID of the compartment that you want to move the bucket to. 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 :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.UpdateBucketDetails update_bucket_details: (required) Request object for updating a bucket. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.Bucket` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_bucket API. rry update_bucketzPhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Bucket/UpdateBucketrcsg|]}|vr|qSr1r1r9r<r1r2r>/r?z5ObjectStorageClient.update_bucket..z&update_bucket got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI9r?z5ObjectStorageClient.update_bucket..NrrJrMr|r8rcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIEr?r'rRrr%rr])r-rnroupdate_bucket_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rIsp/$     z!ObjectStorageClient.update_bucketc snd}d}d}d}gdfddt|D}|rBtd|d |i} d d t| D} t| D]:\} } | d ust| tjrht| d krhtd| qhdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rFt| tjs|j | | |j| j|j j||| | |d| d||d S|j j||| | |d| d||d Sd S)a By default, buckets created using the Amazon S3 Compatibility API or the Swift API are created in the root compartment of the Oracle Cloud Infrastructure tenancy. You can change the default Swift/Amazon S3 compartmentId designation to a different compartmentId. All subsequent bucket creations will use the new default compartment, but no previously created buckets will be modified. A user must have OBJECTSTORAGE_NAMESPACE_UPDATE permission to make changes to the default compartments for Amazon S3 and Swift. :param str namespace_name: (required) The Object Storage namespace used for the request. :param oci.object_storage.models.UpdateNamespaceMetadataDetails update_namespace_metadata_details: (required) Request object for update NamespaceMetadata. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.NamespaceMetadata` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_namespace_metadata API. rrupdate_namespace_metadataz^https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Namespace/UpdateNamespaceMetadatar7csg|]}|vr|qSr1r1r9r<r1r2r>r?zAObjectStorageClient.update_namespace_metadata..z2update_namespace_metadata got unknown kwargs: {!r}rAcSsi|]\}}|tur||qSr1rDrFr1r1r2rIr?zAObjectStorageClient.update_namespace_metadata..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRrr%rr])r-rn!update_namespace_metadata_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rKisl&$    z-ObjectStorageClient.update_namespace_metadatac sld}d}d}d}gdfddt|D} | rBtd| ||d } d d t| D} t| D]:\} } | d ust| tjrjt| d krjtd| qjdd| dt d} dd t| D} |j j | d|j d}|d urtj}|rFt|tjs |j | ||j|j|j j||| | || d||d S|j j||| | || d||dSd S)a Changes the storage tier of the object specified by the objectName parameter. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param oci.object_storage.models.UpdateObjectStorageTierDetails update_object_storage_tier_details: (required) The object name and the desired storage tier. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_object_storage_tier API. zA/n/{namespaceName}/b/{bucketName}/actions/updateObjectStorageTierryupdate_object_storage_tierz[https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/Object/UpdateObjectStorageTierr7csg|]}|vr|qSr1r1r9r<r1r2r>r?zBObjectStorageClient.update_object_storage_tier..z3update_object_storage_tier got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI r?zBObjectStorageClient.update_object_storage_tier..NrrJrMr8rNcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRr%rr])r-rnro"update_object_storage_tier_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rMsj$$    z.ObjectStorageClient.update_object_storage_tierc s~d}d}d}d} gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\} } | d ust| tjrlt| d krltd| qldd| dt | dt d}dd t|D}|j j | d|j d}|d urtj}|rVt|tjs.|j |||j|j|j j||| ||d| d|| d S|j j||| ||d| d|| d Sd S)ak Updates the specified retention rule. Rule changes take effect typically within 30 seconds. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str retention_rule_id: (required) The ID of the retention rule. :param oci.object_storage.models.UpdateRetentionRuleDetails update_retention_rule_details: (required) Request object for updating the retention rule. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str opc_client_request_id: (optional) The client request ID for tracing. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.RetentionRule` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_retention_rule API. rrupdate_retention_rulez^https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/RetentionRule/UpdateRetentionRulercsg|]}|vr|qSr1r1r9r<r1r2r>pr?z=ObjectStorageClient.update_retention_rule..z.update_retention_rule got unknown kwargs: {!r}rcSsi|]\}}|tur||qSr1rDrFr1r1r2rI{r?z=ObjectStorageClient.update_retention_rule..NrrJrMr|r8rcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rIr?r'rRrr%rr])r-rnrorupdate_retention_rule_detailsr/rVrWr[r\rrrXrGrHrZr'r1r<r2rO8sr,$      z)ObjectStorageClient.update_retention_rulec sd}d} d} d} gdfddt|D} | rBtd| |||d } d d t| D} t| D]:\}}|d ust|tjrlt|d krltd|ql||d}dd t|D}d| dt | dt | dt | dt | dt | dt | dt | dt | dt | dt d }dd t|D}dd|D}d|vrfd|d<z|Wn t y| d t }Yn0|t urD|d urDt|tj tjfst |d!std"t |d#r t |d$r |jd%kr tj|d krDd&|d'<n8d'|vrDt|sDt|| d(}|d|d'<|d)}|jj| d*|jd+}|d urltj}|rt|tjs|j|||j|j|jj|| | |||d,| d-| | d. S|jj|| | |||d,| d-| | d. Sd S)/a Uploads a single part of a multipart upload. :param str namespace_name: (required) The Object Storage namespace used for the request. :param str bucket_name: (required) The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` :param str object_name: (required) The name of the object. Avoid entering confidential information. Example: `test/object1.log` :param str upload_id: (required) The upload ID for a multipart upload. :param int upload_part_num: (required) The part number that identifies the object part currently being uploaded. :param stream upload_part_body: (required) The part being uploaded to the Object Storage service. :param int content_length: (optional) The content length of the body. :param str opc_client_request_id: (optional) The client request ID for tracing. :param str if_match: (optional) The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource. :param str if_none_match: (optional) The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the resource already exists. :param str expect: (optional) A value of `100-continue` requests preliminary verification of the request method, path, and headers before the request body is sent. If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. The only allowed value for this parameter is "100-Continue" (case-insensitive). :param str content_md5: (optional) The optional base-64 header that defines the encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message: "The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)" :param str opc_sse_customer_algorithm: (optional) The optional header that specifies "AES256" as the encryption algorithm. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key: (optional) The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_customer_key_sha256: (optional) The optional header that specifies the base64-encoded SHA256 hash of the encryption key. This value is used to check the integrity of the encryption key. For more information, see `Using Your Own Keys for Server-Side Encryption`__. __ https://docs.cloud.oracle.com/Content/Object/Tasks/usingyourencryptionkeys.htm :param str opc_sse_kms_key_id: (optional) The `OCID`__ of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. :param bool allow_control_chars: (optional) allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings :param int buffer_limit: (optional) A buffer limit for the stream to be buffered. buffer_limit is used to set the buffer size capacity. Streams will be read until the size of the buffer reaches the buffer_limit. If the stream size is greater than the buffer_limit, a BufferError exception will be thrown. The buffer_limit parameter is used when the stream object does not have a `seek`, `tell`, or `fileno` property for the Python Request library to calculate out the content length. If buffer_limit is not passed, then the buffer_limit will be defaulted to 100MB. Large streams can cause the process to freeze, consider passing in content-length for large streams instead. :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use upload_part API. r4r upload_partzWhttps://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/MultipartUpload/UploadPart) r%r'rrr8r|r}rrrrrrcsg|]}|vr|qSr1r1r9r<r1r2r>(r?z3ObjectStorageClient.upload_part..z$upload_part got unknown kwargs: {!r}r@cSsi|]\}}|tur||qSr1rDrFr1r1r2rI3r?z3ObjectStorageClient.upload_part..NrrJ)rK uploadPartNumcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rI=r?rMr8r|r}rrrrrrr) rOrQrrr%r&r'rrrrcSs&i|]\}}|tur|dur||qSrLrDrFr1r1r2rILr?cSsg|] }|qSr1r(r*r1r1r2r>Nr?r+upload_part_bodyr-r.r/r0r1r2r&rr3r'rRFr%) rVrWrXrYrZrr4r%r[r\r5)r-rnrorprqupload_part_numrSr/rVrWr[r\rrrXrGrHrYrZr>r?r'r1r<r2rQsh$            $      zObjectStorageClient.upload_partN)7__name__ __module__ __qualname____doc__r3r6rtrzrrrrrrrrrrrrrrrrrrrrrrrrrrrrr r rrrrrrrr@rBrCrErGrIrKrMrOrQr1r1r1r2rsSp\*dhhikxhfel dfBchgg^oz,&zzluujduo~kguifsrN) __future__r oci._vendorrrocirroci.base_clientr oci.configrr oci.signerr oci.utilr r r rrmodelsrrEobjectrr1r1r1r2s