https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/vpc/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/vpc/__pycache__/vpnconnection.cpython-310.pyc
o

ckF[*�@srddlZddlmZddlmZ	ddlmZGdd�de�ZGdd�de�ZGd	d
�d
e�Z	Gdd�de�Z
dS)
�N)�datetime)�	ResultSet)�TaggedEC2Objectc@�2eZdZdZddd�Zdd�Zdd�Zd	d
�ZdS)�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.

    NcCs
||_dS�N)�static_routes_only)�selfr�r
�8/usr/lib/python3/dist-packages/boto/vpc/vpnconnection.py�__init__(�
zVpnConnectionOptions.__init__cCsdS)Nrr
�r	r
r
r�__repr__+�zVpnConnectionOptions.__repr__cC�dSrr
�r	�name�attrs�
connectionr
r
r�startElement.rz!VpnConnectionOptions.startElementcCs4|dkr|dkr
d|_dSd|_dSt|||�dS)N�staticRoutesOnly�trueTF)r�setattr�r	r�valuerr
r
r�
endElement1szVpnConnectionOptions.endElementr��__name__�
__module__�__qualname__�__doc__rrrrr
r
r
rrs
rc@r)�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.
    NcCs||_||_||_dSr)�destination_cidr_block�source�	available)r	r#r$�stater
r
rr@s
zVpnStaticRoute.__init__cC�
d|jS)NzVpnStaticRoute: %s)r#rr
r
rrEr
zVpnStaticRoute.__repr__cCrrr
rr
r
rrHrzVpnStaticRoute.startElementcCsF|dkr	||_dS|dkr||_dS|dkr||_dSt|||�dS)N�destinationCidrBlockr$r&)r#r$r&rrr
r
rrKs


zVpnStaticRoute.endElement)NNNrr
r
r
rr"7s
r"c@s6eZdZdZ		ddd�Zdd�Zdd�Zd	d
�ZdS)�	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.
    NcCs"||_||_||_||_||_dSr)�outside_ip_address�status�last_status_change�status_message�accepted_route_count)r	r*r+r,r-r.r
r
rr`s

zVpnTunnel.__init__cCr')Nz
VpnTunnel: %s)r*rr
r
rrhr
zVpnTunnel.__repr__cCrrr
rr
r
rrkrzVpnTunnel.startElementcCs�|dkr	||_dS|dkr||_dS|dkrt�|d�|_dS|dkr(||_dS|dkrIzt|�}WntyCtj	�
d|�Ynw||_dSt|||�dS)N�outsideIpAddressr+�lastStatusChangez%Y-%m-%dT%H:%M:%S.%fZ�
statusMessage�acceptedRouteCountz!Error converting code (%s) to int)
r*r+r�strptimer,r-�int�
ValueError�boto�log�warningr.rrr
r
rrns$


�
�
zVpnTunnel.endElement)NNNNNrr
r
r
rr)Us

�r)csHeZdZdZd�fdd�	Zdd�Z�fdd�Zd	d
�Zddd
�Z�Z	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.

    NcsJtt|��|�d|_d|_d|_d|_d|_d|_g|_	d|_
g|_dSr)�superr9r�idr&�customer_gateway_configuration�type�customer_gateway_id�vpn_gateway_id�tunnels�options�
static_routes)r	r��	__class__r
rr�s
zVpnConnection.__init__cCr')NzVpnConnection:%s)r;rr
r
rr�r
zVpnConnection.__repr__csvtt|��|||�}|dur|S|dkrtdtfg�|_|jS|dkr.tdtfg�|_|jS|dkr9t�|_	|j	SdS)N�vgwTelemetry�item�routesrA)
r:r9rrr)r@r"rBrrA)r	rrr�retvalrCr
rr�szVpnConnection.startElementcCs||dkr	||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr-||_dS|dkr6||_dSt|||�dS)N�vpnConnectionIdr&�customerGatewayConfigurationr=�customerGatewayId�vpnGatewayId)r;r&r<r=r>r?rrr
r
rr�s





zVpnConnection.endElementFcCs|jj|j|d�S)N)�dry_run)r�delete_vpn_connectionr;)r	rMr
r
r�delete�s�zVpnConnection.deleter)F)
rrr r!rrrrrO�
__classcell__r
r
rCrr9�sr9)r6r�boto.resultsetr�boto.ec2.ec2objectr�objectrr"r)r9r
r
r
r�<module>s,

https://t.me/RX1948 - 2025