o
    "hdš.  ã                   @   sT   d Z ddlZddlmZ G dd„ deƒZG dd„ deƒZdd	„ ZG d
d„ deƒZ	dS )zEClient and server classes corresponding to protobuf-defined services.é    N)Úfortanix_pb2c                   @   s   e Zd ZdZdd„ ZdS )ÚConsumerStubú8Missing associated documentation comment in .proto file.c                 C   sº   |j dtjjtjjd�| _|j dtjjtjjd�| _|j dtj	jtjjd�| _
|j dtjjtjjd�| _|j dtjjtjjd�| _|j dtjjtjjd�| _|j dtjjtjjd�| _d	S )
zIConstructor.

        Args:
            channel: A grpc.Channel.
        ú /fortanix.Consumer/CreateAccount)Úrequest_serializerÚresponse_deserializerú$/fortanix.Consumer/CreateAccountRoleú/fortanix.Consumer/CreateUserú/fortanix.Consumer/CreateGroupú"/fortanix.Consumer/CreateGroupRoleú/fortanix.Consumer/GetAppsú/fortanix.Consumer/DeleteAppN)Úunary_unaryÚprotobufs_dot_fortanix__pb2ÚAccountToCreateÚSerializeToStringÚResponseÚ
FromStringÚCreateAccountÚRoleToCreateÚCreateAccountRoleÚUserToCreateÚ
CreateUserÚGroupToCreateÚCreateGroupÚCreateGroupRoleÚAppsByGroupÚGetAppsÚAppÚ	DeleteApp)ÚselfÚchannel© r"   úN/home/gothic-suse/public_html/fortanix-consumer/protobufs/fortanix_pb2_grpc.pyÚ__init__   sF   ýýýýýýýzConsumerStub.__init__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r$   r"   r"   r"   r#   r      s    r   c                   @   sH   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Z	dd„ Z
dS )ÚConsumerServicerr   c                 C   ó    |  tjj¡ | d¡ tdƒ‚©r   zMethod not implemented!©Úset_codeÚgrpcÚ
StatusCodeÚUNIMPLEMENTEDÚset_detailsÚNotImplementedError©r    ÚrequestÚcontextr"   r"   r#   r   9   ó   
zConsumerServicer.CreateAccountc                 C   r*   r+   r,   r3   r"   r"   r#   r   ?   r6   z"ConsumerServicer.CreateAccountRolec                 C   r*   r+   r,   r3   r"   r"   r#   r   E   r6   zConsumerServicer.CreateUserc                 C   r*   r+   r,   r3   r"   r"   r#   r   K   r6   zConsumerServicer.CreateGroupc                 C   r*   r+   r,   r3   r"   r"   r#   r   Q   r6   z ConsumerServicer.CreateGroupRolec                 C   r*   r+   r,   r3   r"   r"   r#   r   W   r6   zConsumerServicer.GetAppsc                 C   r*   r+   r,   r3   r"   r"   r#   r   ]   r6   zConsumerServicer.DeleteAppN)r%   r&   r'   r(   r   r   r   r   r   r   r   r"   r"   r"   r#   r)   6   s    r)   c                 C   sÊ   t j| jtjjtjjd�t j| jtj	jtjjd�t j| j
tjjtjjd�t j| jtjjtjjd�t j| jtj	jtjjd�t j| jtjjtjjd�t j| jtjjtjjd�dœ}t  d|¡}| |f¡ d S )N)Úrequest_deserializerÚresponse_serializer)r   r   r   r   r   r   r   zfortanix.Consumer)r.   Úunary_unary_rpc_method_handlerr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Úmethod_handlers_generic_handlerÚadd_generic_rpc_handlers)ZservicerÚserverZrpc_method_handlersÚgeneric_handlerr"   r"   r#   Úadd_ConsumerServicer_to_serverd   sP   ýýýýýýýá%ÿr>   c                   @   sâ   e Zd ZdZe								ddd„ƒZe								ddd„ƒZe								dd	d
„ƒZe								ddd„ƒZe								ddd„ƒZ	e								ddd„ƒZ
e								ddd„ƒZdS )ÚConsumerr   r"   NFc
           
      C   ó,   t j | |dtjjtjj||||||||	¡S )Nr   )r.   Úexperimentalr   r   r   r   r   r   ©
r4   ÚtargetÚoptionsÚchannel_credentialsÚcall_credentialsZinsecureÚcompressionÚwait_for_readyÚtimeoutÚmetadatar"   r"   r#   r   “   ó   üzConsumer.CreateAccountc
           
      C   r@   )Nr   ©r.   rA   r   r   r   r   r   r   rB   r"   r"   r#   r   ¤   rK   zConsumer.CreateAccountRolec
           
      C   r@   )Nr	   )r.   rA   r   r   r   r   r   r   rB   r"   r"   r#   r   µ   rK   zConsumer.CreateUserc
           
      C   r@   )Nr
   )r.   rA   r   r   r   r   r   r   rB   r"   r"   r#   r   Æ   rK   zConsumer.CreateGroupc
           
      C   r@   )Nr   rL   rB   r"   r"   r#   r   ×   rK   zConsumer.CreateGroupRolec
           
      C   r@   )Nr   )r.   rA   r   r   r   r   r   r   rB   r"   r"   r#   r   è   rK   zConsumer.GetAppsc
           
      C   r@   )Nr   )r.   rA   r   r   r   r   r   r   rB   r"   r"   r#   r   ù   rK   zConsumer.DeleteApp)r"   NNFNNNN)r%   r&   r'   r(   Ústaticmethodr   r   r   r   r   r   r   r"   r"   r"   r#   r?   �   s�    ÷÷÷÷÷÷÷r?   )
r(   r.   Ú	protobufsr   r   Úobjectr   r)   r>   r?   r"   r"   r"   r#   Ú<module>   s   ..,