HEX
Server: Apache
System: Linux pdx1-shared-a1-29 6.18.39-grsec-noble+ #4 SMP Thu Jul 23 07:53:29 UTC 2026 x86_64
User: dh_bj99yp (22285841)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/boto/vpc/__pycache__/vpnconnection.cpython-312.pyc
�

ckF[*���ddlZddlmZddlmZ	ddlmZGd�de�ZGd�de�ZGd	�d
e�Z	Gd�de�Z
y)
�N)�datetime)�	ResultSet)�TaggedEC2Objectc�*�eZdZdZdd�Zd�Zd�Zd�Zy)�VpnConnectionOptionsz�
    Represents VPN connection options

    :ivar static_routes_only: Indicates whether the VPN connection uses static
        routes only.  Static routes must be used for devices that don't support
        BGP.

    Nc��||_y�N)�static_routes_only)�selfr
s  �8/usr/lib/python3/dist-packages/boto/vpc/vpnconnection.py�__init__zVpnConnectionOptions.__init__(s
��"4���c��y)Nr��rs r�__repr__zVpnConnectionOptions.__repr__+s��%rc��yr	r�r�name�attrs�
connections    r�startElementz!VpnConnectionOptions.startElement.���rc�R�|dk(r|dk(rd|_yd|_yt|||�y)N�staticRoutesOnly�trueTF)r
�setattr�rr�valuers    r�
endElementzVpnConnectionOptions.endElement1s,���%�%�.3�v�o�d�D�#�5�D�#��D�$��&rr	��__name__�
__module__�__qualname__�__doc__r
rrr rrrrrs���5�&�
�'rrc�*�eZdZdZdd�Zd�Zd�Zd�Zy)�VpnStaticRoutea#
    Represents a static route for a VPN connection.

    :ivar destination_cidr_block: The CIDR block associated with the local
        subnet of the customer data center.
    :ivar source: Indicates how the routes were provided.
    :ivar state: The current state of the static route.
    Nc�.�||_||_||_yr	)�destination_cidr_block�source�	available)rr)r*�states    rr
zVpnStaticRoute.__init__@s��&<��#������rc� �d|jzS)NzVpnStaticRoute: %s)r)rs rrzVpnStaticRoute.__repr__Es��#�d�&A�&A�A�Arc��yr	rrs    rrzVpnStaticRoute.startElementHrrc�l�|dk(r||_y|dk(r||_y|dk(r||_yt|||�y)N�destinationCidrBlockr*r,)r)r*r,rrs    rr zVpnStaticRoute.endElementKs<���)�)�*/�D�'�
�X�
��D�K�
�W�_��D�J��D�$��&r)NNNr!rrrr'r'7s����
B�
�'rr'c�.�eZdZdZ		dd�Zd�Zd�Zd�Zy)�	VpnTunnela�
    Represents telemetry for a VPN tunnel

    :ivar outside_ip_address: The Internet-routable IP address of the
        virtual private gateway's outside interface.
    :ivar status: The status of the VPN tunnel. Valid values: UP | DOWN
    :ivar last_status_change: The date and time of the last change in status.
    :ivar status_message: If an error occurs, a description of the error.
    :ivar accepted_route_count: The number of accepted routes.
    Nc�J�||_||_||_||_||_yr	)�outside_ip_address�status�last_status_change�status_message�accepted_route_count)rr4r5r6r7r8s      rr
zVpnTunnel.__init__`s)��"4������"4���,���$8��!rc� �d|jzS)Nz
VpnTunnel: %s)r4rs rrzVpnTunnel.__repr__hs����!8�!8�8�8rc��yr	rrs    rrzVpnTunnel.startElementkrrc�P�|dk(r||_y|dk(r||_y|dk(rtj|d�|_y|dk(r||_y|dk(r	t
|�}||_yt|||�y#t$r,tjjd|z�Y||_ywxYw)N�outsideIpAddressr5�lastStatusChangez%Y-%m-%dT%H:%M:%S.%fZ�
statusMessage�acceptedRouteCountz!Error converting code (%s) to int)
r4r5r�strptimer6r7�int�
ValueError�boto�log�warningr8rrs    rr zVpnTunnel.endElementns����%�%�&+�D�#�
�X�
��D�K�
�'�
'�'/�'8�'8��(?�(A�D�#�
�_�
$�"'�D��
�)�
)�
N��E�
��).�D�%��D�$��&��	�
N���� � �!D�u�!L�M�(-�D�%�
N�s�A0�0+B%�$B%)NNNNNr!rrrr2r2Us%��	�QU�;?�9�9�
�'rr2c�B��eZdZdZd�fd�	Zd�Z�fd�Zd�Zdd�Z�xZ	S)	�
VpnConnectionaq
    Represents a VPN Connection

    :ivar id: The ID of the VPN connection.
    :ivar state: The current state of the VPN connection.
        Valid values: pending | available | deleting | deleted
    :ivar customer_gateway_configuration: The configuration information for the
        VPN connection's customer gateway (in the native XML format). This
        element is always present in the
        :class:`boto.vpc.VPCConnection.create_vpn_connection` response;
        however, it's present in the
        :class:`boto.vpc.VPCConnection.get_all_vpn_connections` response only
        if the VPN connection is in the pending or available state.
    :ivar type: The type of VPN connection (ipsec.1).
    :ivar customer_gateway_id: The ID of the customer gateway at your end of
        the VPN connection.
    :ivar vpn_gateway_id: The ID of the virtual private gateway
        at the AWS side of the VPN connection.
    :ivar tunnels: A list of the vpn tunnels (always 2)
    :ivar options: The option set describing the VPN connection.
    :ivar static_routes: A list of static routes associated with a VPN
        connection.

    c���tt|�|�d|_d|_d|_d|_d|_d|_g|_	d|_
g|_yr	)�superrGr
�idr,�customer_gateway_configuration�type�customer_gateway_id�vpn_gateway_id�tunnels�options�
static_routes)rr�	__class__s  �rr
zVpnConnection.__init__�sU���
�m�T�+�J�7������
�.2��+���	�#'�� �"�����������rc� �d|jzS)NzVpnConnection:%s)rJrs rrzVpnConnection.__repr__�s��!�D�G�G�+�+rc���tt|�|||�}|�|S|dk(r#tdtfg�|_|j
S|dk(r#tdtfg�|_|jS|dk(rt�|_	|jSy)N�vgwTelemetry�item�routesrP)
rIrGrrr2rOr'rQrrP)rrrr�retvalrRs     �rrzVpnConnection.startElement�s�����}�d�8��u�j�Q�����M��>�!�$�v�y�&9�%:�;�D�L��<�<��
�X�
�!*�V�^�,D�+E�!F�D���%�%�%�
�Y�
�/�1�D�L��<�<��rc��|dk(r||_y|dk(r||_y|dk(r||_y|dk(r||_y|dk(r||_y|dk(r||_yt
|||�y)N�vpnConnectionIdr,�customerGatewayConfigurationrL�customerGatewayId�vpnGatewayId)rJr,rKrLrMrNrrs    rr zVpnConnection.endElement�sl���$�$��D�G�
�W�_��D�J�
�3�
3�27�D�/�
�V�^��D�I�
�(�
(�',�D�$�
�^�
#�"'�D���D�$��&rc�P�|jj|j|��S)N)�dry_run)r�delete_vpn_connectionrJ)rr_s  r�deletezVpnConnection.delete�s(�����4�4��G�G��5�
�	
rr	)F)
r"r#r$r%r
rrr ra�
__classcell__)rRs@rrGrG�s!����0
 �,�
�'� 
rrG)rCr�boto.resultsetr�boto.ec2.ec2objectr�objectrr'r2rGrrr�<module>rfsM��*��$��/�'�6�'�0'�V�'�<*'��*'�XK
�O�K
r