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/grpc/aio/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/libexec/oracle-cloud-agent/plugins/osms/grpc/aio/_channel.pyc
a

K��fSU�@s�dZddlZddlZddlmZmZmZmZmZddl	Z	ddl	m
Z
ddl	mZddl	mZddl
mZdd	lmZdd
lmZddlmZddlmZdd
lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlm Z ddl!m"Z"ddl#m$Z$ddl#m%Z%ddl#m&Z&ddl#m'Z'ddl#m(Z(ddl#m)Z)ddl#m*Z*dd l+m,Z,d!�-ej.�Z/ej0dd"k�r�eej1d#�d$d%�Z2neej1d#�d&d%�Z2e$ee	j3d'�d(d)�Z4Gd*d+�d+�Z5Gd,d-�d-e5ej6�Z6Gd.d/�d/e5ej7�Z7Gd0d1�d1e5ej8�Z8Gd2d3�d3e5ej9�Z9Gd4d5�d5ej:�Z:d<e;ee$ee	j3eeed6�d7d8�Z<d=e;e	j=ee$ee	j3eeed9�d:d;�Z>dS)>z6Invocation-side implementation of gRPC Asyncio Python.�N)�Any�Iterable�List�Optional�Sequence)�_common)�_compression)�_grpcio_metadata)�cygrpc�)�
_base_call)�
_base_channel)�StreamStreamCall)�StreamUnaryCall)�UnaryStreamCall)�UnaryUnaryCall)�ClientInterceptor)�InterceptedStreamStreamCall)�InterceptedStreamUnaryCall)�InterceptedUnaryStreamCall)�InterceptedUnaryUnaryCall)�StreamStreamClientInterceptor)�StreamUnaryClientInterceptor)�UnaryStreamClientInterceptor)�UnaryUnaryClientInterceptor)�Metadata)�ChannelArgumentType)�DeserializingFunction)�MetadataType)�RequestIterableType)�RequestType)�ResponseType)�SerializingFunction)�_timeout_to_deadlinezgrpc-python-asyncio/{}���returncCs
tj��S�N)�asyncio�Task�	all_tasks�r+r+�u/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/grpc/aio/_channel.py�
_all_tasks7sr-cCst��Sr')r(r*r+r+r+r,r-<s)�base_options�compressioncCs(t�|�}tjjtff}t|�||Sr')r�create_channel_optionr
�
ChannelArgKey�primary_user_agent_string�_USER_AGENT�tuple)r.r/�compression_channel_argument�user_agent_channel_argumentr+r+r,�_augment_channel_arguments@s������r7c	@s�eZdZUdZejed<ejed<e	ed<e
ed<eed<ee
eed<eeed<ejed<eje	e
eee
eeeejd	d
�dd�Zedeeeejed
�dd��Zd	S)�_BaseMultiCallablezrBase class of all multi callable objects.

    Handles the initialization logic and stores common attributes.
    �_loop�_channel�_method�_request_serializer�_response_deserializer�
_interceptors�_referencesN)�channel�method�request_serializer�response_deserializer�interceptors�
references�loopr&cCs.||_||_||_||_||_||_||_dSr')r9r:r;r<r=r>r?)�selfr@rArBrCrDrErFr+r+r,�__init__cs
z_BaseMultiCallable.__init__)�metadatar/r&cCs@|pt�}t|t�s(t|t�r(t�|�}|r<tt�||��}|S)z�Based on the provided values for <metadata> or <compression> initialise the final
        metadata, as it should be used for the current call.
        )r�
isinstancer4�
from_tupler�augment_metadata)rIr/r+r+r,�_init_metadataus


�z!_BaseMultiCallable._init_metadata)NN)�__name__�
__module__�__qualname__�__doc__r(�AbstractEventLoop�__annotations__r
�
AioChannel�bytesr"rrrrrrrH�staticmethodr�grpc�CompressionrrMr+r+r+r,r8Ss4




���r8c
@sVeZdZdddddd�eeeeeeejee	eej
ejee
fd�dd�ZdS)�UnaryUnaryMultiCallableN��timeoutrI�credentials�wait_for_readyr/��requestr[rIr\r]r/r&cCsh|�||�}|js<t|t|�||||j|j|j|j|j�
}n(t	|j||||||j|j|j|j|j�}|Sr')
rMr>rr#r:r;r<r=r9r�rGr_r[rIr\r]r/�callr+r+r,�__call__�s8
�
�z UnaryUnaryMultiCallable.__call__)rNrOrPr r�floatrrW�CallCredentials�boolrXrrr!rbr+r+r+r,rY�s��rYc
@sVeZdZdddddd�eeeeeeejee	eej
ejee
fd�dd�ZdS)�UnaryStreamMultiCallableNrZr^cCsh|�||�}|js<t|t|�||||j|j|j|j|j�
}n(t	|j||||||j|j|j|j|j�}|Sr')
rMr>rr#r:r;r<r=r9rr`r+r+r,rb�s8
�
�z!UnaryStreamMultiCallable.__call__)rNrOrPr rrcrrWrdrerXrrr!rbr+r+r+r,rf�s��rfc	@sFeZdZdeeeeeeeejee	eej
ejd�dd�Z
dS)�StreamUnaryMultiCallableN��request_iteratorr[rIr\r]r/r&cCsh|�||�}|js<t|t|�||||j|j|j|j|j�
}n(t	|j||||||j|j|j|j|j�}|Sr')
rMr>rr#r:r;r<r=r9r�rGrir[rIr\r]r/rar+r+r,rb�s8	�
�z!StreamUnaryMultiCallable.__call__)NNNNNN)rNrOrPrrrcrrWrdrerXrrrbr+r+r+r,rg�s��rgc	@sFeZdZdeeeeeeeejee	eej
ejd�dd�Z
dS)�StreamStreamMultiCallableNrhcCsh|�||�}|js<t|t|�||||j|j|j|j|j�
}n(t	|j||||||j|j|j|j|j�}|Sr')
rMr>rr#r:r;r<r=r9rrjr+r+r,rbs8	�
�z"StreamStreamMultiCallable.__call__)NNNNNN)rNrOrPrrrcrrWrdrerXrrrbr+r+r+r,rks��rkc@s�eZdZUejed<ejed<ee	ed<ee
ed<eeed<eeed<e
eeejeejeeed�dd	�Zd
d�Zdd
�Zdd�Zd,eed�dd�Zdd�Zd-eejd�dd�Zejdd�dd�Zdd�dd�Z e
e!d �d!d"�Z"d.e
ee#ee$eee%d#�d$d%�Z&d/e
ee#ee$eee'd#�d&d'�Z(d0e
ee#ee$eee)d#�d(d)�Z*d1e
ee#ee$eee+d#�d*d+�Z,dS)2�Channelr9r:�_unary_unary_interceptors�_unary_stream_interceptors�_stream_unary_interceptors�_stream_stream_interceptors)�target�optionsr\r/rDcCs�g|_g|_g|_g|_|dur�|D]�}t|t�r@|j�|�q$t|t�rX|j�|�q$t|t�rp|j�|�q$t|t	�r�|j�|�q$t
d�|�d�tj�d�tj�d�tj�d�t	j���q$t
��|_t
�t�|�t||�||j�|_dS)a�Constructor.

        Args:
          target: The target to which to connect.
          options: Configuration options for the channel.
          credentials: A cygrpc.ChannelCredentials or None.
          compression: An optional value indicating the compression method to be
            used over the lifetime of the channel.
          interceptors: An optional list of interceptors that would be used for
            intercepting any RPC executed with that channel.
        NzInterceptor {} must be z{} or z{}. )rmrnrorprJr�appendrrr�
ValueError�formatrNr
�get_working_loopr9rTr�encoder7r:)rGrqrrr\r/rD�interceptorr+r+r,rHDs@




�
�
�
��
�zChannel.__init__c�s|Sr'r+�rGr+r+r,�
__aenter__wszChannel.__aenter__c�s|�d�IdHdSr'��_close)rG�exc_type�exc_val�exc_tbr+r+r,�	__aexit__zszChannel.__aexit__c�sH|j��rdS|j��t�}g}g}|D]�}z|jdd�}Wn@ty~}z(dt|�vrhWYd}~q*n�WYd}~n
d}~00|s�q*|d}|j�d�}	|	r*t	|	t
j�r*t|	d�r�|	j|jur�q*n,t|	d�r�|	j
j|jur�q*nt�d|	����|�|	�|�|�q*|�r&|�r&tj||d	�IdH|D]}
|
���q*|j��dS)
Nr)�limit�framerrGr:�_cython_callzUnrecognized call object: )r[)r:�closed�closingr-�	get_stack�AttributeError�str�f_locals�getrJr�Call�hasattrr�r
�
InternalErrorrsr(�wait�cancel�close)rG�grace�tasks�calls�
call_tasks�task�stack�attribute_errorr��	candidaterar+r+r,r|}sF



�
zChannel._closeN)r�c�s|�|�IdHdSr'r{)rGr�r+r+r,r��sz
Channel.closecCs"t|d�r|j��s|j��dS)Nr:)r�r:r�r�ryr+r+r,�__del__�s

zChannel.__del__F)�try_to_connectr&cCs|j�|�}tj|Sr')r:�check_connectivity_stater�1CYGRPC_CONNECTIVITY_STATE_TO_CHANNEL_CONNECTIVITY)rGr��resultr+r+r,�	get_state�szChannel.get_state)�last_observed_stater&c�s"|j�|jdd�IdHsJ�dS)Nr)r:�watch_connectivity_state�value)rGr�r+r+r,�wait_for_state_change�s
�zChannel.wait_for_state_changer%c�s:|jdd�}|tjjkr6|�|�IdH|jdd�}qdS)NT)r�)r�rW�ChannelConnectivity�READYr�)rG�stater+r+r,�
channel_ready�szChannel.channel_ready)rAr&cCsdSr'r+)rGrAr+r+r,�_get_registered_call_handle�sz#Channel._get_registered_call_handle)rArBrC�_registered_methodr&cCs"t|jt�|�|||j|g|j�Sr')rYr:rrwrmr9�rGrArBrCr�r+r+r,�unary_unary�s�zChannel.unary_unarycCs"t|jt�|�|||j|g|j�Sr')rfr:rrwrnr9r�r+r+r,�unary_stream�s�zChannel.unary_streamcCs"t|jt�|�|||j|g|j�Sr')rgr:rrwror9r�r+r+r,�stream_unarys�zChannel.stream_unarycCs"t|jt�|�|||j|g|j�Sr')rkr:rrwrpr9r�r+r+r,�
stream_stream%s�zChannel.stream_stream)N)F)NNF)NNF)NNF)NNF)-rNrOrPr(rRrSr
rTrrrrrr�rrrW�ChannelCredentialsrXrrrHrzr�r|rcr�r�rer�r�r�r��intr�r"rrYr�rfr�rgr�rkr�r+r+r+r,rl<s�



�3H���	��������rl�rqrrr/rDcCst||durdn|d||�S)aCreates an insecure asynchronous Channel to a server.

    Args:
      target: The server address
      options: An optional list of key-value pairs (:term:`channel_arguments`
        in gRPC Core runtime) to configure the channel.
      compression: An optional value indicating the compression method to be
        used over the lifetime of the channel.
      interceptors: An optional sequence of interceptors that will be executed for
        any call executed with this channel.

    Returns:
      A Channel.
    Nr+)rlr�r+r+r,�insecure_channel7s�r��rqr\rrr/rDcCst||durdn||j||�S)a<Creates a secure asynchronous Channel to a server.

    Args:
      target: The server address.
      credentials: A ChannelCredentials instance.
      options: An optional list of key-value pairs (:term:`channel_arguments`
        in gRPC Core runtime) to configure the channel.
      compression: An optional value indicating the compression method to be
        used over the lifetime of the channel.
      interceptors: An optional sequence of interceptors that will be executed for
        any call executed with this channel.

    Returns:
      An aio.Channel.
    Nr+)rl�_credentialsr�r+r+r,�secure_channelTs�r�)NNN)NNN)?rQr(�sys�typingrrrrrrWrrr	�grpc._cythonr
�rr
�_callrrrr�_interceptorrrrrrrrrr�	_metadatar�_typingrrrrr r!r"�_utilsr#ru�__version__r3�version_infor)r-rXr7r8rYrfrgrkrlr�r�r�r�r+r+r+r,�<module>s�
�4
�-
�.
�-
�-~�
� �
�

Youez - 2016 - github.com/yon3zu
LinuXploit