HEX
Server: Apache
System: Linux br1026.hostgator.com.br 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User: corre651 (6538)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/blockchain/__pycache__/blockchain_platform_client.cpython-39.pyc
a

���f���@s�ddlmZddlmZddlmZddlmZmZddlm	Z	ddl
mZmZddl
mZddlmZmZmZdd	lmZdd
lmZddlmZed
�ZGdd�de�ZdS)�)�absolute_import)�requests)�six)�retry�circuit_breaker)�
BaseClient)�get_config_value_or_default�validate_config)�Signer)�Sentinel�#get_signer_from_authentication_type�AUTHENTICATION_TYPE_FIELD_NAME)�InvalidAlloyConfig)�OCI_SDK_ENABLED_SERVICES_SET�)�blockchain_type_mappingZMissingc@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�Zd:S);�BlockchainPlatformClientz/
    Blockchain Platform Control Plane API
    c
Ks&t�d�std��t||�d�d�d|vr6|d}nDt|vrHt|�}n2t|d|d|d|�d�t|d	�|�d
�d�}d|�d
�ddi|�dd�|�dt	j
�|�d�d�}d|vr�|�d�|d<|�d�dur�t	j|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 <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
            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 <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
            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 <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

        :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 <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.

        :param function circuit_breaker_callback: (optional)
            Callback function to receive any exceptions triggerred by the circuit breaker.

        :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
            A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.

        :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.
        Z
blockchainaThe Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service�signer)r�tenancy�user�fingerprintZkey_file�pass_phraseZkey_content)rrrZprivate_key_file_locationrZprivate_key_contentT�service_endpointz	/20191010z3https://blockchain.{region}.oci.{secondLevelDomain}�skip_deserializationF�circuit_breaker_strategy�5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr�	base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmrrr�timeoutN�allow_control_charsZblockchain_platform�retry_strategy�circuit_breaker_callback)rZis_service_enabledrr	�getr
rr
rrZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYrr�base_clientrr )�selfZconfig�kwargsrZbase_client_init_kwargs�r%�M/usr/lib/python3.9/site-packages/oci/blockchain/blockchain_platform_client.py�__init__sB3


�

�

z!BlockchainPlatformClient.__init__cs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�r`t|t
j��s8|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�

        Change Blockchain Platform Compartment


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param oci.blockchain.models.ChangeBlockchainPlatformCompartmentDetails change_blockchain_platform_compartment_details: (required)
            Input payload to move the resource to a different compartment.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/change_blockchain_platform_compartment.py.html>`__ to see an example of how to use change_blockchain_platform_compartment API.
        �blockchainPlatformIdzE/blockchainPlatforms/{blockchainPlatformId}/actions/changeCompartment�POST�&change_blockchain_platform_compartmentzphttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ChangeBlockchainPlatformCompartment�rr�if_match�opc_request_id�opc_retry_tokencsg|]}|�vr|�qSr%r%��.0Z_key�Zexpected_kwargsr%r&�
<listcomp>��zSBlockchainPlatformClient.change_blockchain_platform_compartment.<locals>.<listcomp>z;change_blockchain_platform_compartment got unknown kwargs: cSsi|]\}}|tur||�qSr%��missing�r0�k�vr%r%r&�
<dictcomp>�r3zSBlockchainPlatformClient.change_blockchain_platform_compartment.<locals>.<dictcomp>Nr�
Parameter �+ cannot be None, whitespace or empty string�application/jsonr,r-r.��accept�content-type�if-match�opc-request-id�opc-retry-tokencSs&i|]\}}|tur|dur||�qS�Nr4r6r%r%r&r9�r3r�Zoperation_retry_strategyZclient_retry_strategyr�	�
resource_path�method�path_params�
header_params�bodyr�operation_name�api_reference_link�required_arguments�r�iterkeys�
ValueError�	iteritems�
isinstance�string_types�len�stripr!r5r"�get_preferred_retry_strategyrr�NoneRetryStrategy�add_opc_retry_token_if_needed�add_opc_client_retries_header�add_circuit_breaker_callbackr �make_retrying_call�call_api)r#�blockchain_platform_idZ.change_blockchain_platform_compartment_detailsr$rMrFrGrKrL�extra_kwargsrHr7r8rIrr%r1r&r*wsp/��$


����z?BlockchainPlatformClient.change_blockchain_platform_compartmentcsg}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	d	|�d
t�|�dt�d�}	d
d�t�|	�D�}	|jj|�d�|jd�}
|
r�t	|
t
j�s�|j�|	�|j�
|	�|
�|j�|
j|jj|||	||�d�|||d�	S|jj|||	||�d�|||d�SdS)a�
        Creates a new Blockchain Platform.


        :param oci.blockchain.models.CreateBlockchainPlatformDetails create_blockchain_platform_details: (required)
            Details for the new service.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :param str opc_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/create_blockchain_platform.py.html>`__ to see an example of how to use create_blockchain_platform API.
        �/blockchainPlatformsr)�create_blockchain_platformzehttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreateBlockchainPlatform)rrr.r-csg|]}|�vr|�qSr%r%r/r1r%r&r2r3zGBlockchainPlatformClient.create_blockchain_platform.<locals>.<listcomp>z/create_blockchain_platform got unknown kwargs: r<r.r-)r>r?rBrAcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9*r3zGBlockchainPlatformClient.create_blockchain_platform.<locals>.<dictcomp>rrDr)rFrGrIrJrrKrLrMN)rrOrPr!r5rQr"rVrrRrrWrXrYrZr r[r\)r#Z"create_blockchain_platform_detailsr$rMrFrGrKrLr^rIrr%r1r&r`�s^%�

����z3BlockchainPlatformClient.create_blockchain_platformcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�r`t|t
j��s8|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a`

        Create Blockchain Platform Osn


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param oci.blockchain.models.CreateOsnDetails create_osn_details: (required)
            Input payload to create blockchain platform OSN. The payload cannot be empty.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/create_osn.py.html>`__ to see an example of how to use create_osn API.
        r(�0/blockchainPlatforms/{blockchainPlatformId}/osnsr)�
create_osnzVhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreateOsnr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z7BlockchainPlatformClient.create_osn.<locals>.<listcomp>zcreate_osn got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z7BlockchainPlatformClient.create_osn.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrErN)r#r]Zcreate_osn_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rbKsp/��$


����z#BlockchainPlatformClient.create_osncs~dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�rVt|t
j��s.|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�
        Create Blockchain Platform Peer


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param oci.blockchain.models.CreatePeerDetails create_peer_details: (required)
            Input payload to create a blockchain platform peer. The payload cannot be empty.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/create_peer.py.html>`__ to see an example of how to use create_peer API.
        r(�1/blockchainPlatforms/{blockchainPlatformId}/peersr)�create_peerzWhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreatePeer)rrr-r.csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z8BlockchainPlatformClient.create_peer.<locals>.<listcomp>z create_peer got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z8BlockchainPlatformClient.create_peer.<locals>.<dictcomp>Nrr:r;r<r-r.�r>r?rArBcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3rrDrrErN)r#r]Zcreate_peer_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rd�sn(��$

����z$BlockchainPlatformClient.create_peercs�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
�r^t|
t
j��s8|j
�|�|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a�	
        Delete a particular of a Blockchain Platform


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/delete_blockchain_platform.py.html>`__ to see an example of how to use delete_blockchain_platform API.
        r(�+/blockchainPlatforms/{blockchainPlatformId}�DELETE�delete_blockchain_platformzehttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeleteBlockchainPlatform�rrr-r,r.csg|]}|�vr|�qSr%r%r/r1r%r&r2hr3zGBlockchainPlatformClient.delete_blockchain_platform.<locals>.<listcomp>z/delete_blockchain_platform got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9qr3zGBlockchainPlatformClient.delete_blockchain_platform.<locals>.<dictcomp>Nrr:r;r<r-r,r.�r>r?rAr@rBcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9~r3rrDr�rFrGrHrIrrKrLrMrN�r#r]r$rMrFrGrKrLr^rHr7r8rIrr%r1r&rh.sl,��$


����z3BlockchainPlatformClient.delete_blockchain_platformcsrddg}d}d}d}d}gd���fdd	�t�|�D�}	|	rJtd
|	����||d�}
dd
�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rrt|���dkrrtd|�d���qrdd|�dt	�|�dt	�d�}
dd
�t�|
�D�}
|j
j|�d�|jd�}|�rLt|t
j��s&|j
�|
�|�|j�|j|j
j|||
|
|�d�|||d�	S|j
j|||
|
|�d�|||d�SdS)a
        Delete a particular OSN of a Blockchain Platform


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str osn_id: (required)
            OSN identifier.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/delete_osn.py.html>`__ to see an example of how to use delete_osn API.
        r(�osnId�8/blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}rg�
delete_osnzVhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeleteOsn�rrr-r,csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z7BlockchainPlatformClient.delete_osn.<locals>.<listcomp>zdelete_osn got unknown kwargs: �r(rmcSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z7BlockchainPlatformClient.delete_osn.<locals>.<dictcomp>Nrr:r;r<r-r,�r>r?rAr@cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrk�rrOrPrQrRrSrTrUr!r5r"rVrrrWrYrZr r[r\�r#r]�osn_idr$rMrFrGrKrLr^rHr7r8rIrr%r1r&ro�sj(��$

����z#BlockchainPlatformClient.delete_osncs�ddg}d}d}d}d}gd���fdd	�t�|�D�}	|	rJtd
|	����||d�}
dd
�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rrt|���dkrrtd|�d���qrdd|�dt	�|�dt	�|�dt	�d�}
dd
�t�|
�D�}
|j
j|�d�|jd�}|�rbt|t
j��s<|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
|�d�|||d�	S|j
j|||
|
|�d�|||d�SdS)a


        Delete a particular peer of a Blockchain Platform


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str peer_id: (required)
            Peer identifier.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/delete_peer.py.html>`__ to see an example of how to use delete_peer API.
        r(�peerId�:/blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}rg�delete_peerzWhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeletePeerricsg|]}|�vr|�qSr%r%r/r1r%r&r2Gr3z8BlockchainPlatformClient.delete_peer.<locals>.<listcomp>z delete_peer got unknown kwargs: �r(rvcSsi|]\}}|tur||�qSr%r4r6r%r%r&r9Qr3z8BlockchainPlatformClient.delete_peer.<locals>.<dictcomp>Nrr:r;r<r-r,r.rjcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9^r3rrDrrkrN�r#r]�peer_idr$rMrFrGrKrLr^rHr7r8rIrr%r1r&rx
sn/��$


����z$BlockchainPlatformClient.delete_peercsndg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
�rHt|
t
j��s"|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a�
        Attempts to cancel the work request with the given ID.


        :param str work_request_id: (required)
            The ID of the asynchronous request.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/delete_work_request.py.html>`__ to see an example of how to use delete_work_request API.
        �
workRequestId�/workRequests/{workRequestId}rg�delete_work_requestzWhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/DeleteWorkRequestrpcsg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z@BlockchainPlatformClient.delete_work_request.<locals>.<listcomp>z(delete_work_request got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z@BlockchainPlatformClient.delete_work_request.<locals>.<dictcomp>Nrr:r;r<r-r,rrcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrkrs�r#�work_request_idr$rMrFrGrKrLr^rHr7r8rIrr%r1r&r~sh%��$

����z,BlockchainPlatformClient.delete_work_requestcshdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
�r@t|
t
j��s|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)a�
        Gets information about a Blockchain Platform identified by the specific id


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str opc_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.BlockchainPlatform`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/get_blockchain_platform.py.html>`__ to see an example of how to use get_blockchain_platform API.
        r(rf�GET�get_blockchain_platformzbhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/GetBlockchainPlatform�rrr-csg|]}|�vr|�qSr%r%r/r1r%r&r2r3zDBlockchainPlatformClient.get_blockchain_platform.<locals>.<listcomp>z,get_blockchain_platform got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9r3zDBlockchainPlatformClient.get_blockchain_platform.<locals>.<dictcomp>Nrr:r;r<r-�r>r?rAcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9$r3rrDZBlockchainPlatformr�	rFrGrHrI�
response_typerrKrLrMrsrlr%r1r&r��sj��$
����z0BlockchainPlatformClient.get_blockchain_platformcslddg}d}d}d}d}gd���fdd	�t�|�D�}	|	rJtd
|	����||d�}
dd
�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rrt|���dkrrtd|�d���qrdd|�dt	�d�}
dd
�t�|
�D�}
|j
j|�d�|jd�}|�rDt|t
j��s|j
�|
�|�|j�|j|j
j|||
|
d|�d�|||d�
S|j
j|||
|
d|�d�|||d�	SdS)a�
        Gets information about an OSN identified by the specific id


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str osn_id: (required)
            OSN identifier.

        :param str opc_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.Osn`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/get_osn.py.html>`__ to see an example of how to use get_osn API.
        r(rmrnr��get_osnzDhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Osn/GetOsnr�csg|]}|�vr|�qSr%r%r/r1r%r&r2sr3z4BlockchainPlatformClient.get_osn.<locals>.<listcomp>zget_osn got unknown kwargs: rqcSsi|]\}}|tur||�qSr%r4r6r%r%r&r9}r3z4BlockchainPlatformClient.get_osn.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZOsnrr�rsrtr%r1r&r�Fsl!��$
����z BlockchainPlatformClient.get_osncslddg}d}d}d}d}gd���fdd	�t�|�D�}	|	rJtd
|	����||d�}
dd
�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rrt|���dkrrtd|�d���qrdd|�dt	�d�}
dd
�t�|
�D�}
|j
j|�d�|jd�}|�rDt|t
j��s|j
�|
�|�|j�|j|j
j|||
|
d|�d�|||d�
S|j
j|||
|
d|�d�|||d�	SdS)a�
        Gets information about a peer identified by the specific id


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str peer_id: (required)
            Peer identifier.

        :param str opc_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.Peer`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/get_peer.py.html>`__ to see an example of how to use get_peer API.
        r(rvrwr��get_peerzFhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Peer/GetPeerr�csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z5BlockchainPlatformClient.get_peer.<locals>.<listcomp>zget_peer got unknown kwargs: rycSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z5BlockchainPlatformClient.get_peer.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZPeerrr�rsrzr%r1r&r��sl!��$
����z!BlockchainPlatformClient.get_peercshdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
�r@t|
t
j��s|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)az
        Gets the status of the work request with the given ID.


        :param str work_request_id: (required)
            The ID of the asynchronous request.

        :param str opc_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.WorkRequest`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        r|r}r��get_work_requestzThttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/GetWorkRequestr�csg|]}|�vr|�qSr%r%r/r1r%r&r28r3z=BlockchainPlatformClient.get_work_request.<locals>.<listcomp>z%get_work_request got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9Ar3z=BlockchainPlatformClient.get_work_request.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9Lr3rrDZWorkRequestrr�rsrr%r1r&r�sj��$
����z)BlockchainPlatformClient.get_work_requestc
s�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qn|�dt	�|�dt	�d�}dd�t�|�D�}dd|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�rpt|t
j��sF|j
�|
�|�|j�|j|j
j|||	||
d|�d�|||d�S|j
j|||	||
d|�d�|||d�
SdS)aQ
        List Blockchain Platform Patches


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str page: (optional)
            The page at which to start retrieving results.

        :param int limit: (optional)
            The maximum number of items to return.

        :param str opc_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.BlockchainPlatformPatchCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_blockchain_platform_patches.py.html>`__ to see an example of how to use list_blockchain_platform_patches API.
        r(z3/blockchainPlatforms/{blockchainPlatformId}/patchesr�� list_blockchain_platform_patcheszjhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ListBlockchainPlatformPatches)rr�page�limitr-csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3zMBlockchainPlatformClient.list_blockchain_platform_patches.<locals>.<listcomp>z5list_blockchain_platform_patches got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3zMBlockchainPlatformClient.list_blockchain_platform_patches.<locals>.<dictcomp>Nrr:r;r�r��r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZ!BlockchainPlatformPatchCollectionr�
rFrGrH�query_paramsrIr�rrKrLrMrs)r#r]r$rMrFrGrKrLr^rHr7r8r�rIrr%r1r&r�nsv$��$

�
���
�z9BlockchainPlatformClient.list_blockchain_platform_patchescs�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d
|vrrddg}	|d
|	vrrtd
|	����d|vr�ddg}
|d|
vr�td|
����d|vr�gd�}|d|vr�td|����||�dt�|�dt�|�dt�|�d
t�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}
dd�t�|
�D�}
|jj|�d�|jd �}|�r�t	|t
j��s�|j�|
�|�
|j�|j|jj||||
d!|�d"�|||d#�
S|jj||||
d!|�d"�|||d#�	Sd$S)%a
        Returns a list Blockchain Platform Instances in a compartment


        :param str compartment_id: (required)
            The ID of the compartment in which to list resources.

        :param str display_name: (optional)
            A user-friendly name. Does not have to be unique, and it's changeable.
            Example: `My new resource`

        :param str page: (optional)
            The page at which to start retrieving results.

        :param int limit: (optional)
            The maximum number of items to return.

        :param str sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.

            Allowed values are: "timeCreated", "displayName"

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str lifecycle_state: (optional)
            A filter to only return resources that match the given lifecycle state.
            The state value is case-insensitive.

            Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "SCALING", "INACTIVE", "FAILED"

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.BlockchainPlatformCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_blockchain_platforms.py.html>`__ to see an example of how to use list_blockchain_platforms API.
        �
compartmentIdr_r��list_blockchain_platformszdhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ListBlockchainPlatforms)	rr�display_namer�r��
sort_order�sort_byr-�lifecycle_statecsg|]}|�vr|�qSr%r%r/r1r%r&r2(r3zFBlockchainPlatformClient.list_blockchain_platforms.<locals>.<listcomp>z.list_blockchain_platforms got unknown kwargs: r��ASC�DESC�/Invalid value for `sort_order`, must be one of r��timeCreated�displayName�,Invalid value for `sort_by`, must be one of r�)ZCREATINGZUPDATINGZACTIVEZDELETINGZDELETEDZSCALINGZINACTIVEZFAILEDz4Invalid value for `lifecycle_state`, must be one of r�r�r�)r�r�r�r��	sortOrder�sortByZlifecycleStatecSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9Kr3zFBlockchainPlatformClient.list_blockchain_platforms.<locals>.<dictcomp>r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9Rr3rrDZBlockchainPlatformCollectionr�	rFrGr�rIr�rrKrLrMN�rrOrPr!r5rQr"rVrrRrrWrYrZr r[r\)r#�compartment_idr$rMrFrGrKrLr^�sort_order_allowed_values�sort_by_allowed_valuesZlifecycle_state_allowed_valuesr�rIrr%r1r&r��s�8����





�	
����z2BlockchainPlatformClient.list_blockchain_platformsc
s&dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qnd|vr�ddg}|d|vr�td|����d|v�rddg}
|d|
v�rtd|
����|�dt	�|�dt	�|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}dd|�dt	�|�dt	�d �}d!d�t�|�D�}|j
j|�d"�|jd#�}|�r�t|t
j��s�|j
�|�|j
�|�|�|j�|j|j
j|||	||d$|�d%�|||d&�S|j
j|||	||d$|�d%�|||d&�
SdS)'aq
        List Blockchain Platform OSNs


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str display_name: (optional)
            A user-friendly name. Does not have to be unique, and it's changeable.
            Example: `My new resource`

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :param str sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.

            Allowed values are: "timeCreated", "displayName"

        :param str page: (optional)
            The page at which to start retrieving results.

        :param int limit: (optional)
            The maximum number of items to return.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.OsnCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_osns.py.html>`__ to see an example of how to use list_osns API.
        r(rar��	list_osnszFhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Osn/ListOsns�	rrr�r-r.r�r�r�r�csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z6BlockchainPlatformClient.list_osns.<locals>.<listcomp>zlist_osns got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z6BlockchainPlatformClient.list_osns.<locals>.<dictcomp>Nrr:r;r�r�r�r�r�r�r�r�r�r�r��r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3r<r-r.recSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZ
OsnCollectionrr�rN�r#r]r$rMrFrGrKrLr^rHr7r8r�r�r�rIrr%r1r&r�ts�9��$�
�




�

���
�z"BlockchainPlatformClient.list_osnsc
s&dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qnd|vr�ddg}|d|vr�td|����d|v�rddg}
|d|
v�rtd|
����|�dt	�|�dt	�|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}dd|�dt	�|�dt	�d �}d!d�t�|�D�}|j
j|�d"�|jd#�}|�r�t|t
j��s�|j
�|�|j
�|�|�|j�|j|j
j|||	||d$|�d%�|||d&�S|j
j|||	||d$|�d%�|||d&�
SdS)'au
        List Blockchain Platform Peers


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str display_name: (optional)
            A user-friendly name. Does not have to be unique, and it's changeable.
            Example: `My new resource`

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :param str sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.

            Allowed values are: "timeCreated", "displayName"

        :param str page: (optional)
            The page at which to start retrieving results.

        :param int limit: (optional)
            The maximum number of items to return.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.PeerCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_peers.py.html>`__ to see an example of how to use list_peers API.
        r(rcr��
list_peerszHhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Peer/ListPeersr�csg|]}|�vr|�qSr%r%r/r1r%r&r2[r3z7BlockchainPlatformClient.list_peers.<locals>.<listcomp>zlist_peers got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9dr3z7BlockchainPlatformClient.list_peers.<locals>.<dictcomp>Nrr:r;r�r�r�r�r�r�r�r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3r<r-r.recSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZPeerCollectionrr�rNr�r%r1r&r�s�9��$�
�




�

���
�z#BlockchainPlatformClient.list_peersc
s�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qn|�dt	�|�dt	�d�}dd�t�|�D�}dd|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�rpt|t
j��sF|j
�|
�|�|j�|j|j
j|||	||
d|�d�|||d�S|j
j|||	||
d|�d�|||d�
SdS)aY
        Return a (paginated) list of errors for a given work request.


        :param str work_request_id: (required)
            The ID of the asynchronous request.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str page: (optional)
            The page at which to start retrieving results.

        :param int limit: (optional)
            The maximum number of items to return.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.WorkRequestErrorCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
        r|z$/workRequests/{workRequestId}/errorsr��list_work_request_errorsz`https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequestError/ListWorkRequestErrors�rrr-r�r�csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3zEBlockchainPlatformClient.list_work_request_errors.<locals>.<listcomp>z-list_work_request_errors got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3zEBlockchainPlatformClient.list_work_request_errors.<locals>.<dictcomp>Nrr:r;r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZWorkRequestErrorCollectionrr�rs�r#r�r$rMrFrGrKrLr^rHr7r8r�rIrr%r1r&r��sv$��$

�
���
�z1BlockchainPlatformClient.list_work_request_errorsc
s�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qn|�dt	�|�dt	�d�}dd�t�|�D�}dd|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�rpt|t
j��sF|j
�|
�|�|j�|j|j
j|||	||
d|�d�|||d�S|j
j|||	||
d|�d�|||d�
SdS)aV
        Return a (paginated) list of logs for a given work request.


        :param str work_request_id: (required)
            The ID of the asynchronous request.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str page: (optional)
            The page at which to start retrieving results.

        :param int limit: (optional)
            The maximum number of items to return.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.WorkRequestLogEntryCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
        r|z"/workRequests/{workRequestId}/logsr��list_work_request_logszahttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequestLogEntry/ListWorkRequestLogsr�csg|]}|�vr|�qSr%r%r/r1r%r&r2Nr3zCBlockchainPlatformClient.list_work_request_logs.<locals>.<listcomp>z+list_work_request_logs got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9Wr3zCBlockchainPlatformClient.list_work_request_logs.<locals>.<dictcomp>Nrr:r;r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9ar3r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9hr3rrDZWorkRequestLogEntryCollectionrr�rsr�r%r1r&r�sv$��$

�
���
�z/BlockchainPlatformClient.list_work_request_logscs�ddg}d}d}d}d}gd���fdd	�t�|�D�}	|	rJtd
|	����d|vrtdd
g}
|d|
vrttd|
����d|vr�ddg}|d|vr�td|����|||�dt�|�dt�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}
dd�t�|
�D�}
|jj|�d�|jd�}|�rxt	|t
j��sP|j�|
�|�
|j�|j|jj||||
d|�d�|||d �
S|jj||||
d|�d�|||d �	Sd!S)"as	
        Lists the work requests in a compartment.


        :param str compartment_id: (required)
            The ID of the compartment in which to list resources.

        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str sort_order: (optional)
            The sort order to use, either 'asc' or 'desc'.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. Only one sort order may be provided. Default order for TIMESTARTED is descending. Default order for WORKREQUESTID is ascending. If no value is specified TIMESTARTED is default.

            Allowed values are: "timeStarted", "workRequestId"

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str page: (optional)
            The page at which to start retrieving results.

        :param int limit: (optional)
            The maximum number of items to return.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.WorkRequestCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        r�r(z
/workRequestsr��list_work_requestszVhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/ListWorkRequests)rrr�r�r-r�r�csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z?BlockchainPlatformClient.list_work_requests.<locals>.<listcomp>z'list_work_requests got unknown kwargs: r�r�r�r�r�ZtimeStartedr|r�r�r�)r�r(r�r�r�r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3z?BlockchainPlatformClient.list_work_requests.<locals>.<dictcomp>r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDZWorkRequestCollectionrr�Nr�)r#r�r]r$rMrFrGrKrLr^r�r�r�rIrr%r1r&r��s�1	���



�
����z+BlockchainPlatformClient.list_work_requestsc
sldg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�rBt|t
j��s|j
�|
�|�|j�|j|j
j|||
|
|d|�d�|||d�S|j
j|||
|
|d|�d�|||d�
SdS)ad
        Preview Scale Blockchain Platform


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param oci.blockchain.models.ScaleBlockchainPlatformDetails scale_blockchain_platform_details: (required)
            Input payload to scaleout blockchain platform. The payload cannot be empty.

        :param str opc_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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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.blockchain.models.ScaledBlockchainPlatformPreview`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/preview_scale_blockchain_platform.py.html>`__ to see an example of how to use preview_scale_blockchain_platform API.
        r(zA/blockchainPlatforms/{blockchainPlatformId}/actions/scale/previewr)�!preview_scale_blockchain_platformzkhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/PreviewScaleBlockchainPlatformr�csg|]}|�vr|�qSr%r%r/r1r%r&r2>	r3zNBlockchainPlatformClient.preview_scale_blockchain_platform.<locals>.<listcomp>z6preview_scale_blockchain_platform got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9G	r3zNBlockchainPlatformClient.preview_scale_blockchain_platform.<locals>.<dictcomp>Nrr:r;r<r-r�cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9R	r3rrDZScaledBlockchainPlatformPreviewr)
rFrGrHrIrJr�rrKrLrMrs�r#r]Z!scale_blockchain_platform_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&r�	sn!��$
���
�z:BlockchainPlatformClient.preview_scale_blockchain_platformcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�r`t|t
j��s8|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�

        Scale Blockchain Platform


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param oci.blockchain.models.ScaleBlockchainPlatformDetails scale_blockchain_platform_details: (required)
            Input payload to scaleout blockchain platform. The payload cannot be empty.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/scale_blockchain_platform.py.html>`__ to see an example of how to use scale_blockchain_platform API.
        r(z9/blockchainPlatforms/{blockchainPlatformId}/actions/scaler)�scale_blockchain_platformzdhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ScaleBlockchainPlatformr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�	r3zFBlockchainPlatformClient.scale_blockchain_platform.<locals>.<listcomp>z.scale_blockchain_platform got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�	r3zFBlockchainPlatformClient.scale_blockchain_platform.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�	r3rrDrrErNr�r%r1r&r�v	sp/��$


����z2BlockchainPlatformClient.scale_blockchain_platformcs�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
�r^t|
t
j��s8|j
�|�|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a�	
        Start a Blockchain Platform


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/start_blockchain_platform.py.html>`__ to see an example of how to use start_blockchain_platform API.
        r(z9/blockchainPlatforms/{blockchainPlatformId}/actions/startr)�start_blockchain_platformzdhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/StartBlockchainPlatformr+csg|]}|�vr|�qSr%r%r/r1r%r&r2&
r3zFBlockchainPlatformClient.start_blockchain_platform.<locals>.<listcomp>z.start_blockchain_platform got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9/
r3zFBlockchainPlatformClient.start_blockchain_platform.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9<
r3rrDrrkrNrlr%r1r&r��	sl,��$


����z2BlockchainPlatformClient.start_blockchain_platformcs�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
�r^t|
t
j��s8|j
�|�|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a�	
        Stop a Blockchain Platform


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/stop_blockchain_platform.py.html>`__ to see an example of how to use stop_blockchain_platform API.
        r(z8/blockchainPlatforms/{blockchainPlatformId}/actions/stopr)�stop_blockchain_platformzchttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/StopBlockchainPlatformr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�
r3zEBlockchainPlatformClient.stop_blockchain_platform.<locals>.<listcomp>z-stop_blockchain_platform got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�
r3zEBlockchainPlatformClient.stop_blockchain_platform.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�
r3rrDrrkrNrlr%r1r&r�]
sl,��$


����z1BlockchainPlatformClient.stop_blockchain_platformcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�r`t|t
j��s8|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�

        Update a particular of a Blockchain Platform


        :param oci.blockchain.models.UpdateBlockchainPlatformDetails update_blockchain_platform_details: (required)
            The Blockchain Platform fields to update. Fields that are not provided will not be updated.

        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/update_blockchain_platform.py.html>`__ to see an example of how to use update_blockchain_platform API.
        r(rf�PUT�update_blockchain_platformzehttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdateBlockchainPlatformricsg|]}|�vr|�qSr%r%r/r1r%r&r2r3zGBlockchainPlatformClient.update_blockchain_platform.<locals>.<listcomp>z/update_blockchain_platform got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9r3zGBlockchainPlatformClient.update_blockchain_platform.<locals>.<dictcomp>Nrr:r;r<r-r,r.rjcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9!r3rrDrrErN)r#Z"update_blockchain_platform_detailsr]r$rMrFrGrKrLr^rHr7r8rIrr%r1r&r��
sp/��$


����z3BlockchainPlatformClient.update_blockchain_platformcs�ddg}d}d}d}d}	gd���fdd	�t�|�D�}
|
rJtd
|
����||d�}dd
�t�|�D�}t�|�D]<\}}
|
dus�t|
tj�rrt|
���dkrrtd|�d���qrdd|�dt	�|�dt	�|�dt	�d�}dd
�t�|�D�}|j
j|�d�|jd�}|�rdt|t
j��s<|j
�|�|j
�|�|�|j�|j|j
j||||||�d�||	|d�
S|j
j||||||�d�||	|d�	SdS)a�

        Update Blockchain Platform OSN


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str osn_id: (required)
            OSN identifier.

        :param oci.blockchain.models.UpdateOsnDetails update_osn_details: (required)
            Input payload to update a blockchain platform OSN. The payload cannot be empty.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/update_osn.py.html>`__ to see an example of how to use update_osn API.
        r(rmrnr��
update_osnzVhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdateOsnr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z7BlockchainPlatformClient.update_osn.<locals>.<listcomp>zupdate_osn got unknown kwargs: rqcSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z7BlockchainPlatformClient.update_osn.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrErN)r#r]ruZupdate_osn_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&r�Dsr2��$


����z#BlockchainPlatformClient.update_osncs�ddg}d}d}d}d}	gd���fdd	�t�|�D�}
|
rJtd
|
����||d�}dd
�t�|�D�}t�|�D]<\}}
|
dus�t|
tj�rrt|
���dkrrtd|�d���qrdd|�dt	�|�dt	�|�dt	�d�}dd
�t�|�D�}|j
j|�d�|jd�}|�rdt|t
j��s<|j
�|�|j
�|�|�|j�|j|j
j||||||�d�||	|d�
S|j
j||||||�d�||	|d�	SdS)a�

        Update Blockchain Platform Peer


        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str peer_id: (required)
            Peer identifier.

        :param oci.blockchain.models.UpdatePeerDetails update_peer_details: (required)
            Input payload to update a blockchain platform peer. The payload cannot be empty.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/update_peer.py.html>`__ to see an example of how to use update_peer API.
        r(rvrwr��update_peerzWhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdatePeerr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z8BlockchainPlatformClient.update_peer.<locals>.<listcomp>z update_peer got unknown kwargs: rycSsi|]\}}|tur||�qSr%r4r6r%r%r&r9r3z8BlockchainPlatformClient.update_peer.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3rrDrrErN)r#r]r{Zupdate_peer_detailsr$rMrFrGrKrLr^rHr7r8rIrr%r1r&r��sr2��$


����z$BlockchainPlatformClient.update_peercs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|�r`t|t
j��s8|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�

        Upgrade a Blockchain Platform version


        :param oci.blockchain.models.UpgradeBlockchainPlatformDetails upgrade_blockchain_platform_details: (required)
            Details for the new version to which it needs to be upgraded.

        :param str blockchain_platform_id: (required)
            Unique service identifier.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations. For example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            might be rejected.

        :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            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 <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/blockchain/upgrade_blockchain_platform.py.html>`__ to see an example of how to use upgrade_blockchain_platform API.
        r(z;/blockchainPlatforms/{blockchainPlatformId}/actions/upgrader)�upgrade_blockchain_platformzfhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpgradeBlockchainPlatformr+csg|]}|�vr|�qSr%r%r/r1r%r&r2ur3zHBlockchainPlatformClient.upgrade_blockchain_platform.<locals>.<listcomp>z0upgrade_blockchain_platform got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9~r3zHBlockchainPlatformClient.upgrade_blockchain_platform.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrErN)r#Z#upgrade_blockchain_platform_detailsr]r$rMrFrGrKrLr^rHr7r8rIrr%r1r&r�8sp/��$


����z4BlockchainPlatformClient.upgrade_blockchain_platformN) �__name__�
__module__�__qualname__�__doc__r'r*r`rbrdrhrorxr~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r%r%r%r&rsB[v^vmqkug`dd`pppevqqvzzrN)Z
__future__rZoci._vendorrrZocirrZoci.base_clientrZ
oci.configrr	Z
oci.signerr
Zoci.utilrrr
Zoci.exceptionsrZ	oci.alloyrZmodelsrr5�objectrr%r%r%r&�<module>s