403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/libexec/oracle-cloud-agent/plugins/osms/oci/blockchain/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/libexec/oracle-cloud-agent/plugins/osms/oci/blockchain/blockchain_platform_client.pyc
a

N��f�d�@s�ddlmZddlmZddlmZddlmZmZddlm	Z	ddl
mZmZddl
mZddlmZmZmZd	d
lmZed�ZGdd
�d
e�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�)�blockchain_type_mapping�Missingc@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�d�d|vr$|d}nDt|vr6t|�}n2t|d|d|d|�d�t|d�|�d�d	�}d
|�d�dd
|�dd�|�dtj�d�}d|vr�|�d�|d<|�d�dur�tj|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 allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
            allow control characters to be in the response object.
        �signer)r�tenancy�user�fingerprint�key_file�pass_phrase�key_content)rrr�private_key_file_locationr�private_key_contentT�service_endpointz	/20191010z3https://blockchain.{region}.oci.{secondLevelDomain}�skip_deserializationF�circuit_breaker_strategy)�regional_clientr�	base_path�service_endpoint_templaterr�timeoutN�allow_control_chars�blockchain_platform�retry_strategy�circuit_breaker_callback)r	�getr
rr
rr�GLOBAL_CIRCUIT_BREAKER_STRATEGY� DEFAULT_CIRCUIT_BREAKER_STRATEGYrr�base_clientr$r%)�self�config�kwargsr�base_client_init_kwargs�r.��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/blockchain/blockchain_platform_client.py�__init__s:0

�

�
z!BlockchainPlatformClient.__init__cs|d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rVt|
tj��s0|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	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/2.90.0/blockchain/change_blockchain_platform_compartment.py.html>`__ to see an example of how to use change_blockchain_platform_compartment API.
        zE/blockchainPlatforms/{blockchainPlatformId}/actions/changeCompartment�POST�&change_blockchain_platform_compartmentzphttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ChangeBlockchainPlatformCompartment�r"r$�if_match�opc_request_id�opc_retry_tokencsg|]}|�vr|�qSr.r.��.0�_key��expected_kwargsr.r/�
<listcomp>��zSBlockchainPlatformClient.change_blockchain_platform_compartment.<locals>.<listcomp>z?change_blockchain_platform_compartment got unknown kwargs: {!r}�blockchainPlatformIdcSsi|]\}}|tur||�qSr.��missing�r8�k�vr.r.r/�
<dictcomp>�r=zSBlockchainPlatformClient.change_blockchain_platform_compartment.<locals>.<dictcomp>Nr�7Parameter {} cannot be None, whitespace or empty string�application/jsonr4r5r6��accept�content-type�if-match�opc-request-id�opc-retry-tokencSs&i|]\}}|tur|dur||�qS�Nr?rAr.r.r/rD�r=r$��operation_retry_strategy�client_retry_strategyr"��
resource_path�method�path_params�
header_params�bodyr"�operation_name�api_reference_link�r�iterkeys�
ValueError�format�	iteritems�
isinstance�string_types�len�stripr&r@r)�get_preferred_retry_strategyr$r�NoneRetryStrategy�add_opc_retry_token_if_needed�add_opc_client_retries_header�add_circuit_breaker_callbackr%�make_retrying_call�call_api)r*�blockchain_platform_id�.change_blockchain_platform_compartment_detailsr,rRrSrWrX�extra_kwargsrTrBrCrUr$r.r:r/r2ksj.��$


����z?BlockchainPlatformClient.change_blockchain_platform_compartmentc

sd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	d	|�d
t�|�dt�d�}d
d�t�|�D�}|jj|�d�|j	d�}	|	r�t
|	tj�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/2.90.0/blockchain/create_blockchain_platform.py.html>`__ to see an example of how to use create_blockchain_platform API.
        �/blockchainPlatformsr1�create_blockchain_platformzehttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreateBlockchainPlatform)r"r$r6r5csg|]}|�vr|�qSr.r.r7r:r.r/r<
r=zGBlockchainPlatformClient.create_blockchain_platform.<locals>.<listcomp>z3create_blockchain_platform got unknown kwargs: {!r}rFr6r5)rHrIrLrKcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=zGBlockchainPlatformClient.create_blockchain_platform.<locals>.<dictcomp>r$rNr")rRrSrUrVr"rWrXN)rrZr[r\r&r@r]r)rbr$r^rrcrdrerfr%rgrh)
r*�"create_blockchain_platform_detailsr,rRrSrWrXrkrUr$r.r:r/rm�sX$�

���
�z3BlockchainPlatformClient.create_blockchain_platformcs|d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rVt|
tj��s0|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	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/2.90.0/blockchain/create_osn.py.html>`__ to see an example of how to use create_osn API.
        �0/blockchainPlatforms/{blockchainPlatformId}/osnsr1�
create_osnzVhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreateOsnr3csg|]}|�vr|�qSr.r.r7r:r.r/r<rr=z7BlockchainPlatformClient.create_osn.<locals>.<listcomp>z#create_osn got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD{r=z7BlockchainPlatformClient.create_osn.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"rQrY)r*ri�create_osn_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/rp7sj.��$


����z#BlockchainPlatformClient.create_osncsrd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rLt|
tj��s&|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	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/2.90.0/blockchain/create_peer.py.html>`__ to see an example of how to use create_peer API.
        �1/blockchainPlatforms/{blockchainPlatformId}/peersr1�create_peerzWhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/CreatePeer)r"r$r5r6csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z8BlockchainPlatformClient.create_peer.<locals>.<listcomp>z$create_peer got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z8BlockchainPlatformClient.create_peer.<locals>.<dictcomp>NrrErFr5r6�rHrIrKrLcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"rQrY)r*ri�create_peer_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/rs�sh'��$

����z$BlockchainPlatformClient.create_peerc

sxd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|�rTt|tj��s0|j�|�|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	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/2.90.0/blockchain/delete_blockchain_platform.py.html>`__ to see an example of how to use delete_blockchain_platform API.
        �+/blockchainPlatforms/{blockchainPlatformId}�DELETE�delete_blockchain_platformzehttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeleteBlockchainPlatform�r"r$r5r4r6csg|]}|�vr|�qSr.r.r7r:r.r/r<Jr=zGBlockchainPlatformClient.delete_blockchain_platform.<locals>.<listcomp>z3delete_blockchain_platform got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDSr=zGBlockchainPlatformClient.delete_blockchain_platform.<locals>.<dictcomp>NrrErFr5r4r6�rHrIrKrJrLcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD`r=r$rNr"�rRrSrTrUr"rWrXrY�
r*rir,rRrSrWrXrkrTrBrCrUr$r.r:r/rxsf+��$


���
�z3BlockchainPlatformClient.delete_blockchain_platformc
sdd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���||d	�}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rjt|���d
krjtd�|
���qjdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�r@t|
tj��s|j�|�|
�|j�|
j|jj|||	||�	d�||d�S|jj|||	||�	d�||d�SdS)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/2.90.0/blockchain/delete_osn.py.html>`__ to see an example of how to use delete_osn API.
        �8/blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}rw�
delete_osnzVhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeleteOsn�r"r$r5r4csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z7BlockchainPlatformClient.delete_osn.<locals>.<listcomp>z#delete_osn got unknown kwargs: {!r}�r>�osnIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z7BlockchainPlatformClient.delete_osn.<locals>.<dictcomp>NrrErFr5r4�rHrIrKrJcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"r{�rrZr[r\r]r^r_r`rar&r@r)rbr$rrcrerfr%rgrh�r*ri�osn_idr,rRrSrWrXrkrTrBrCrUr$r.r:r/r~sd'��$

���
�z#BlockchainPlatformClient.delete_osnc
szd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���||d	�}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rjt|���d
krjtd�|
���qjdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rVt|
tj��s2|j�|�|j�|�|
�|j�|
j|jj|||	||�	d�||d�S|jj|||	||�	d�||d�SdS)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/2.90.0/blockchain/delete_peer.py.html>`__ to see an example of how to use delete_peer API.
        �:/blockchainPlatforms/{blockchainPlatformId}/peers/{peerId}rw�delete_peerzWhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/DeletePeerrycsg|]}|�vr|�qSr.r.r7r:r.r/r<!r=z8BlockchainPlatformClient.delete_peer.<locals>.<listcomp>z$delete_peer got unknown kwargs: {!r}�r>�peerIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD+r=z8BlockchainPlatformClient.delete_peer.<locals>.<dictcomp>NrrErFr5r4r6rzcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD8r=r$rNr"r{rY�r*ri�peer_idr,rRrSrWrXrkrTrBrCrUr$r.r:r/r��sh.��$


���
�z$BlockchainPlatformClient.delete_peerc

sbd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|�r>t|tj��s|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	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/2.90.0/blockchain/delete_work_request.py.html>`__ to see an example of how to use delete_work_request API.
        �/workRequests/{workRequestId}rw�delete_work_requestzWhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/DeleteWorkRequestrcsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z@BlockchainPlatformClient.delete_work_request.<locals>.<listcomp>z,delete_work_request got unknown kwargs: {!r}�
workRequestIdcSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z@BlockchainPlatformClient.delete_work_request.<locals>.<dictcomp>NrrErFr5r4r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"r{r��
r*�work_request_idr,rRrSrWrXrkrTrBrCrUr$r.r:r/r�Wsb$��$

���
�z,BlockchainPlatformClient.delete_work_requestc
s\d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|�r6t|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||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/2.90.0/blockchain/get_blockchain_platform.py.html>`__ to see an example of how to use get_blockchain_platform API.
        rv�GET�get_blockchain_platformzbhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/GetBlockchainPlatform�r"r$r5csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zDBlockchainPlatformClient.get_blockchain_platform.<locals>.<listcomp>z0get_blockchain_platform got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zDBlockchainPlatformClient.get_blockchain_platform.<locals>.<dictcomp>NrrErFr5�rHrIrKcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�BlockchainPlatformr"�rRrSrTrU�
response_typer"rWrXr�r|r.r:r/r��sd��$
����z0BlockchainPlatformClient.get_blockchain_platformcs^d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���||d	�}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rjt|���d
krjtd�|
���qjdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�r8t|
tj��s|j�|�|
�|j�|
j|jj|||	|d|�	d�||d�	S|jj|||	|d|�	d�||d�SdS)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/2.90.0/blockchain/get_osn.py.html>`__ to see an example of how to use get_osn API.
        r}r��get_osnzDhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Osn/GetOsnr�csg|]}|�vr|�qSr.r.r7r:r.r/r<Ar=z4BlockchainPlatformClient.get_osn.<locals>.<listcomp>z get_osn got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDKr=z4BlockchainPlatformClient.get_osn.<locals>.<dictcomp>NrrErFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDVr=r$rN�Osnr"r�r�r�r.r:r/r�sf ��$
����z BlockchainPlatformClient.get_osncs^d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���||d	�}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rjt|���d
krjtd�|
���qjdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�r8t|
tj��s|j�|�|
�|j�|
j|jj|||	|d|�	d�||d�	S|jj|||	|d|�	d�||d�SdS)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/2.90.0/blockchain/get_peer.py.html>`__ to see an example of how to use get_peer API.
        r�r��get_peerzFhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Peer/GetPeerr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z5BlockchainPlatformClient.get_peer.<locals>.<listcomp>z!get_peer got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z5BlockchainPlatformClient.get_peer.<locals>.<dictcomp>NrrErFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�Peerr"r�r�r�r.r:r/r�vsf ��$
����z!BlockchainPlatformClient.get_peerc
s\d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|�r6t|tj��s|j�|�|�|j�|j|jj||||d|�	d�||d�	S|jj||||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/2.90.0/blockchain/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
        r�r��get_work_requestzThttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/GetWorkRequestr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z=BlockchainPlatformClient.get_work_request.<locals>.<listcomp>z)get_work_request got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=z=BlockchainPlatformClient.get_work_request.<locals>.<dictcomp>NrrErFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rN�WorkRequestr"r�r�r�r.r:r/r��sd��$
����z)BlockchainPlatformClient.get_work_requestcs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qh|�	dt
�|�	dt
�d�}dd�t�|�D�}dd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rft|
tj��s>|j�|�|
�|j�|
j|jj|||||d|�	d�||d�
S|jj|||||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/2.90.0/blockchain/list_blockchain_platform_patches.py.html>`__ to see an example of how to use list_blockchain_platform_patches API.
        z3/blockchainPlatforms/{blockchainPlatformId}/patchesr�� list_blockchain_platform_patcheszjhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ListBlockchainPlatformPatches)r"r$�page�limitr5csg|]}|�vr|�qSr.r.r7r:r.r/r<br=zMBlockchainPlatformClient.list_blockchain_platform_patches.<locals>.<listcomp>z9list_blockchain_platform_patches got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDkr=zMBlockchainPlatformClient.list_blockchain_platform_patches.<locals>.<dictcomp>NrrEr�r��r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDur=rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD|r=r$rN�!BlockchainPlatformPatchCollectionr"�	rRrSrT�query_paramsrUr�r"rWrXr�)r*rir,rRrSrWrXrkrTrBrCr�rUr$r.r:r/r�2sp#��$

�
����z9BlockchainPlatformClient.list_blockchain_platform_patchescs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrld
dg}|d	|vrltd�|���d
|vr�ddg}	|d
|	vr�td�|	���d|vr�gd�}
|d|
vr�td�|
���||�dt�|�dt�|�dt�|�d	t�|�d
t�|�dt�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d�|j	d�}
|
�r�t
|
tj��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/2.90.0/blockchain/list_blockchain_platforms.py.html>`__ to see an example of how to use list_blockchain_platforms API.
        rlr��list_blockchain_platformszdhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ListBlockchainPlatforms)	r"r$�display_namer�r��
sort_order�sort_byr5�lifecycle_statecsg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zFBlockchainPlatformClient.list_blockchain_platforms.<locals>.<listcomp>z2list_blockchain_platforms got unknown kwargs: {!r}r��ASC�DESC�2Invalid value for `sort_order`, must be one of {0}r��timeCreated�displayName�/Invalid value for `sort_by`, must be one of {0}r�)�CREATING�UPDATING�ACTIVE�DELETING�DELETED�SCALING�INACTIVE�FAILEDz7Invalid value for `lifecycle_state`, must be one of {0}r�r�r�)�
compartmentIdr�r�r��	sortOrder�sortBy�lifecycleStatecSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD	r=zFBlockchainPlatformClient.list_blockchain_platforms.<locals>.<dictcomp>rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rN�BlockchainPlatformCollectionr"�rRrSr�rUr�r"rWrXN�rrZr[r\r&r@r]r)rbr$r^rrcrerfr%rgrh)r*�compartment_idr,rRrSrWrXrk�sort_order_allowed_values�sort_by_allowed_values�lifecycle_state_allowed_valuesr�rUr$r.r:r/r��s�7����





�	
����z2BlockchainPlatformClient.list_blockchain_platformscsd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhd|vr�ddg}|d|vr�td�|���d|vr�ddg}|d|vr�td�|���|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	dt
�d�}
dd�t�|
�D�}
dd|�	dt
�|�	dt
�d�}d d�t�|�D�}|jj|�	d!�|j
d"�}|�r�t|tj��s�|j�|�|j�|�|�|j�|j|jj||||
|d#|�	d$�||d%�
S|jj||||
|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/2.90.0/blockchain/list_osns.py.html>`__ to see an example of how to use list_osns API.
        ror��	list_osnszFhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Osn/ListOsns�	r"r$r�r5r6r�r�r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<yr=z6BlockchainPlatformClient.list_osns.<locals>.<listcomp>z"list_osns got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z6BlockchainPlatformClient.list_osns.<locals>.<dictcomp>NrrEr�r�r�r�r�r�r�r�r�r�r��r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=rFr5r6rtcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�
OsnCollectionr"r�rY�r*rir,rRrSrWrXrkrTrBrCr�r�r�rUr$r.r:r/r�0s�8��$��




�

����z"BlockchainPlatformClient.list_osnscsd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhd|vr�ddg}|d|vr�td�|���d|vr�ddg}|d|vr�td�|���|�	dt
�|�	dt
�|�	dt
�|�	dt
�|�	dt
�d�}
dd�t�|
�D�}
dd|�	dt
�|�	dt
�d�}d d�t�|�D�}|jj|�	d!�|j
d"�}|�r�t|tj��s�|j�|�|j�|�|�|j�|j|jj||||
|d#|�	d$�||d%�
S|jj||||
|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/2.90.0/blockchain/list_peers.py.html>`__ to see an example of how to use list_peers API.
        rrr��
list_peerszHhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/Peer/ListPeersr�csg|]}|�vr|�qSr.r.r7r:r.r/r<r=z7BlockchainPlatformClient.list_peers.<locals>.<listcomp>z#list_peers got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=z7BlockchainPlatformClient.list_peers.<locals>.<dictcomp>NrrEr�r�r�r�r�r�r�r�r�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD5r=rFr5r6rtcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD=r=r$rN�PeerCollectionr"r�rYr�r.r:r/r��s�8��$��




�

����z#BlockchainPlatformClient.list_peerscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qh|�	dt
�|�	dt
�d�}dd�t�|�D�}dd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rft|
tj��s>|j�|�|
�|j�|
j|jj|||||d|�	d�||d�
S|jj|||||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/2.90.0/blockchain/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
        z$/workRequests/{workRequestId}/errorsr��list_work_request_errorsz`https://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequestError/ListWorkRequestErrors�r"r$r5r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zEBlockchainPlatformClient.list_work_request_errors.<locals>.<listcomp>z1list_work_request_errors got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zEBlockchainPlatformClient.list_work_request_errors.<locals>.<dictcomp>NrrEr�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�WorkRequestErrorCollectionr"r�r��r*r�r,rRrSrWrXrkrTrBrCr�rUr$r.r:r/r�`sp#��$

�
����z1BlockchainPlatformClient.list_work_request_errorscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qh|�	dt
�|�	dt
�d�}dd�t�|�D�}dd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rft|
tj��s>|j�|�|
�|j�|
j|jj|||||d|�	d�||d�
S|jj|||||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/2.90.0/blockchain/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
        z"/workRequests/{workRequestId}/logsr��list_work_request_logszahttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequestLogEntry/ListWorkRequestLogsr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zCBlockchainPlatformClient.list_work_request_logs.<locals>.<listcomp>z/list_work_request_logs got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=zCBlockchainPlatformClient.list_work_request_logs.<locals>.<dictcomp>NrrEr�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rN�WorkRequestLogEntryCollectionr"r�r�r�r.r:r/r��sp#��$

�
����z/BlockchainPlatformClient.list_work_request_logscs�d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|vrld
dg}	|d	|	vrltd�|	���d
|vr�ddg}
|d
|
vr�td�|
���|||�d	t�|�d
t�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}dd�t�|�D�}|jj|�d�|j	d�}
|
�rnt
|
tj��sH|j�
|�|
�|j�|
j|jj||||d|�d�||d�	S|jj||||d|�d�||d�SdS) 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/2.90.0/blockchain/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
        z
/workRequestsr��list_work_requestszVhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/WorkRequest/ListWorkRequests)r"r$r�r�r5r�r�csg|]}|�vr|�qSr.r.r7r:r.r/r<wr=z?BlockchainPlatformClient.list_work_requests.<locals>.<listcomp>z+list_work_requests got unknown kwargs: {!r}r�r�r�r�r��timeStartedr�r�r�r�)r�r>r�r�r�r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=z?BlockchainPlatformClient.list_work_requests.<locals>.<dictcomp>rFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�WorkRequestCollectionr"r�Nr�)r*r�rir,rRrSrWrXrkr�r�r�rUr$r.r:r/r�8s�0	���



�
����z+BlockchainPlatformClient.list_work_requestscs`d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�r8t|
tj��s|j�|�|
�|j�|
j|jj|||	||d|�	d�||d�
S|jj|||	||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/2.90.0/blockchain/preview_scale_blockchain_platform.py.html>`__ to see an example of how to use preview_scale_blockchain_platform API.
        zA/blockchainPlatforms/{blockchainPlatformId}/actions/scale/previewr1�!preview_scale_blockchain_platformzkhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/PreviewScaleBlockchainPlatformr�csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zNBlockchainPlatformClient.preview_scale_blockchain_platform.<locals>.<listcomp>z:preview_scale_blockchain_platform got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=zNBlockchainPlatformClient.preview_scale_blockchain_platform.<locals>.<dictcomp>NrrErFr5r�cSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rN�ScaledBlockchainPlatformPreviewr")	rRrSrTrUrVr�r"rWrXr��r*ri�!scale_blockchain_platform_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/r��sh ��$
����z:BlockchainPlatformClient.preview_scale_blockchain_platformcs|d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rVt|
tj��s0|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	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/2.90.0/blockchain/scale_blockchain_platform.py.html>`__ to see an example of how to use scale_blockchain_platform API.
        z9/blockchainPlatforms/{blockchainPlatformId}/actions/scaler1�scale_blockchain_platformzdhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/ScaleBlockchainPlatformr3csg|]}|�vr|�qSr.r.r7r:r.r/r<U	r=zFBlockchainPlatformClient.scale_blockchain_platform.<locals>.<listcomp>z2scale_blockchain_platform got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD^	r=zFBlockchainPlatformClient.scale_blockchain_platform.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDk	r=r$rNr"rQrYr�r.r:r/r�	sj.��$


����z2BlockchainPlatformClient.scale_blockchain_platformc

sxd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|�rTt|tj��s0|j�|�|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	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/2.90.0/blockchain/start_blockchain_platform.py.html>`__ to see an example of how to use start_blockchain_platform API.
        z9/blockchainPlatforms/{blockchainPlatformId}/actions/startr1�start_blockchain_platformzdhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/StartBlockchainPlatformr3csg|]}|�vr|�qSr.r.r7r:r.r/r<�	r=zFBlockchainPlatformClient.start_blockchain_platform.<locals>.<listcomp>z2start_blockchain_platform got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�	r=zFBlockchainPlatformClient.start_blockchain_platform.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�	r=r$rNr"r{rYr|r.r:r/r��	sf+��$


���
�z2BlockchainPlatformClient.start_blockchain_platformc

sxd}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}d
d�t�|�D�}t�|�D]:\}	}
|
dus�t|
tj�rht|
���d
krhtd�|	���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}|�rTt|tj��s0|j�|�|j�|�|�|j�|j|jj|||||�	d�||d�S|jj|||||�	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/2.90.0/blockchain/stop_blockchain_platform.py.html>`__ to see an example of how to use stop_blockchain_platform API.
        z8/blockchainPlatforms/{blockchainPlatformId}/actions/stopr1�stop_blockchain_platformzchttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/StopBlockchainPlatformr3csg|]}|�vr|�qSr.r.r7r:r.r/r<1
r=zEBlockchainPlatformClient.stop_blockchain_platform.<locals>.<listcomp>z1stop_blockchain_platform got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD:
r=zEBlockchainPlatformClient.stop_blockchain_platform.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDG
r=r$rNr"r{rYr|r.r:r/r��	sf+��$


���
�z1BlockchainPlatformClient.stop_blockchain_platformcs|d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rVt|
tj��s0|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	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/2.90.0/blockchain/update_blockchain_platform.py.html>`__ to see an example of how to use update_blockchain_platform API.
        rv�PUT�update_blockchain_platformzehttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdateBlockchainPlatformrycsg|]}|�vr|�qSr.r.r7r:r.r/r<�
r=zGBlockchainPlatformClient.update_blockchain_platform.<locals>.<listcomp>z3update_blockchain_platform got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�
r=zGBlockchainPlatformClient.update_blockchain_platform.<locals>.<dictcomp>NrrErFr5r4r6rzcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�
r=r$rNr"rQrY)r*�"update_blockchain_platform_detailsrir,rRrSrWrXrkrTrBrCrUr$r.r:r/r�f
sj.��$


����z3BlockchainPlatformClient.update_blockchain_platformcs~d}d}d}d}gd���fdd�t�|�D�}	|	rBtd�|	���||d	�}
d
d�t�|
�D�}
t�|
�D]:\}}|dus�t|tj�rjt|���d
krjtd�|���qjdd|�	dt
�|�	dt
�|�	dt
�d�}
dd�t�|
�D�}
|jj|�	d�|j
d�}|�rXt|tj��s2|j�|
�|j�|
�|�|j�|j|jj|||
|
||�	d�||d�	S|jj|||
|
||�	d�||d�SdS)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/2.90.0/blockchain/update_osn.py.html>`__ to see an example of how to use update_osn API.
        r}r��
update_osnzVhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdateOsnr3csg|]}|�vr|�qSr.r.r7r:r.r/r<r=z7BlockchainPlatformClient.update_osn.<locals>.<listcomp>z#update_osn got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD r=z7BlockchainPlatformClient.update_osn.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD-r=r$rNr"rQrY)r*rir��update_osn_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/r��
sl1��$


����z#BlockchainPlatformClient.update_osncs~d}d}d}d}gd���fdd�t�|�D�}	|	rBtd�|	���||d	�}
d
d�t�|
�D�}
t�|
�D]:\}}|dus�t|tj�rjt|���d
krjtd�|���qjdd|�	dt
�|�	dt
�|�	dt
�d�}
dd�t�|
�D�}
|jj|�	d�|j
d�}|�rXt|tj��s2|j�|
�|j�|
�|�|j�|j|jj|||
|
||�	d�||d�	S|jj|||
|
||�	d�||d�SdS)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/2.90.0/blockchain/update_peer.py.html>`__ to see an example of how to use update_peer API.
        r�r��update_peerzWhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpdatePeerr3csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=z8BlockchainPlatformClient.update_peer.<locals>.<listcomp>z$update_peer got unknown kwargs: {!r}r�cSsi|]\}}|tur||�qSr.r?rAr.r.r/rD�r=z8BlockchainPlatformClient.update_peer.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rD�r=r$rNr"rQrY)r*rir��update_peer_detailsr,rRrSrWrXrkrTrBrCrUr$r.r:r/r�Nsl1��$


����z$BlockchainPlatformClient.update_peercs|d}d}d}d}gd���fdd�t�|�D�}|rBtd�|���d	|i}	d
d�t�|	�D�}	t�|	�D]:\}
}|dus�t|tj�rht|���d
krhtd�|
���qhdd|�	dt
�|�	dt
�|�	dt
�d�}dd�t�|�D�}|jj|�	d�|j
d�}
|
�rVt|
tj��s0|j�|�|j�|�|
�|j�|
j|jj|||	|||�	d�||d�	S|jj|||	|||�	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/2.90.0/blockchain/upgrade_blockchain_platform.py.html>`__ to see an example of how to use upgrade_blockchain_platform API.
        z;/blockchainPlatforms/{blockchainPlatformId}/actions/upgrader1�upgrade_blockchain_platformzfhttps://docs.oracle.com/iaas/api/#/en/blockchain/20191010/BlockchainPlatform/UpgradeBlockchainPlatformr3csg|]}|�vr|�qSr.r.r7r:r.r/r<�r=zHBlockchainPlatformClient.upgrade_blockchain_platform.<locals>.<listcomp>z4upgrade_blockchain_platform got unknown kwargs: {!r}r>cSsi|]\}}|tur||�qSr.r?rAr.r.r/rDr=zHBlockchainPlatformClient.upgrade_blockchain_platform.<locals>.<dictcomp>NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||�qSrMr?rAr.r.r/rDr=r$rNr"rQrY)r*�#upgrade_blockchain_platform_detailsrir,rRrSrWrXrkrTrBrCrUr$r.r:r/r��sj.��$


����z4BlockchainPlatformClient.upgrade_blockchain_platformN) �__name__�
__module__�__qualname__�__doc__r0r2rmrprsrxr~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r.r.r.r/rsBSrZrimgqc\``\lllarmmrvvrN)�
__future__r�oci._vendorrr�ocirr�oci.base_clientr�
oci.configrr	�
oci.signerr
�oci.utilrrr
�modelsrr@�objectrr.r.r.r/�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit