
    >Tf4                         d dl mZ d dlmZmZ d dlmZ d dlT d dlm	Z	m
Z
mZmZmZ dZ G d de          Z G d	 d
e          Z G d de          Z G d de          Z G d de          ZdS )    )serializers)ChoiceFieldSerializedPKRelatedField)NetBoxModelSerializer)*)	IKEPolicyIKEProposalIPSecPolicyIPSecProfileIPSecProposal)IKEPolicySerializerIKEProposalSerializerIPSecPolicySerializerIPSecProfileSerializerIPSecProposalSerializerc                       e Zd Z ee          Z ee          Z eed          Z	 ee
          Z G d d          ZdS )r   choicesFr   requiredc                       e Zd ZeZdZdZdS )IKEProposalSerializer.Meta)idurldisplay_urldisplaynamedescriptionauthentication_methodencryption_algorithmauthentication_algorithmgroupsa_lifetimecommentstagscustom_fieldscreatedlast_updatedr   r   r   r   r   N)__name__
__module____qualname__r	   modelfieldsbrief_fields     @/var/www/html/netbox-4.1.3/netbox/vpn/api/serializers_/crypto.pyMetar       s"        

 Gr1   r3   N)r*   r+   r,   r   AuthenticationMethodChoicesr   EncryptionAlgorithmChoicesr    AuthenticationAlgorithmChoicesr!   DHGroupChoicesr"   r3   r0   r1   r2   r   r      s        'K+   ';*    +{.      K  EG G G G G G G G G Gr1   r   c                       e Zd Z ee          Z eed          Z ee	j
                                        eddd          Z G d d          ZdS )	r   r   Fr   Tqueryset
serializernestedr   manyc                       e Zd ZeZdZdZdS )IKEPolicySerializer.Meta)r   r   r   r   r   r   versionmode	proposalspreshared_keyr$   r%   r&   r'   r(   r)   N)r*   r+   r,   r   r-   r.   r/   r0   r1   r2   r3   r?   :   s"        
 Gr1   r3   N)r*   r+   r,   r   IKEVersionChoicesr@   IKEModeChoicesrA   r   r	   objectsallr   rB   r3   r0   r1   r2   r   r   *   s        k!  G ;  D )($((**(  IG G G G G G G G G Gr1   r   c                   X    e Zd Z ee          Z ee          Z G d d          ZdS )r   r   c                       e Zd ZeZdZdZdS )IPSecProposalSerializer.Meta)r   r   r   r   r   r   r    r!   sa_lifetime_secondssa_lifetime_datar$   r%   r&   r'   r(   r)   N)r*   r+   r,   r   r-   r.   r/   r0   r1   r2   r3   rJ   K   s"        
 Gr1   r3   N)	r*   r+   r,   r   r5   r    r6   r!   r3   r0   r1   r2   r   r   C   s|        &;*    +{.     G G G G G G G G G Gr1   r   c                       e Zd Z eej                                        eddd          Z e	e
d          Z G d d          ZdS )r   TFr9   r   c                       e Zd ZeZdZdZdS )IPSecPolicySerializer.Meta)r   r   r   r   r   r   rB   	pfs_groupr$   r%   r&   r'   r(   r)   N)r*   r+   r,   r
   r-   r.   r/   r0   r1   r2   r3   rO   a   s"        
 Gr1   r3   N)r*   r+   r,   r   r   rF   rG   r   rB   r   r7   rP   r3   r0   r1   r2   r   r   T   s        ((&**,,*  I   I
G G G G G G G G G Gr1   r   c                   p    e Zd Z ee          Z ed          Z ed          Z	 G d d          Z
dS )r   r   T)r<   c                       e Zd ZeZdZdZdS )IPSecProfileSerializer.Meta)r   r   r   r   r   r   rA   
ike_policyipsec_policyr$   r%   r&   r'   r(   r)   N)r*   r+   r,   r   r-   r.   r/   r0   r1   r2   r3   rS   u   s"        
 Gr1   r3   N)r*   r+   r,   r   IPSecModeChoicesrA   r   rT   r   rU   r3   r0   r1   r2   r   r   j   s        ;   D %$  J )(  LG G G G G G G G G Gr1   r   N)rest_frameworkr   netbox.api.fieldsr   r   netbox.api.serializersr   vpn.choices
vpn.modelsr   r	   r
   r   r   __all__r   r   r   r   r   r0   r1   r2   <module>r]      s   & & & & & & C C C C C C C C 8 8 8 8 8 8     W W W W W W W W W W W W W WG G G G G1 G G G2G G G G G/ G G G2G G G G G3 G G G"G G G G G1 G G G,G G G G G2 G G G G Gr1   