
                         F    S r SSKJr  SSKJr  SSKJr   " S S5      rS rg)	z"Utils for VPN Connection commands.    )absolute_import)division)unicode_literalsc                       \ rS rSrSrS rSrg)DescribeVPNTableView   z(View model for VPN connections describe.c                 \    Xl         X l        X0l        X@l        XPl        U(       a  X`l        g g )N)namecreate_timeclustervpcstateerror)selfr
   r   r   r   r   r   s          :lib/googlecloudsdk/command_lib/edge_cloud/container/vpn.py__init__DescribeVPNTableView.__init__   s)    I"LHJj     )r   r   r   r
   r   r   N)__name__
__module____qualname____firstlineno____doc__r   __static_attributes__ r   r   r   r      s
    0r   r   c                 `   AU R                   nU R                  nU R                  nU(       a  UR                  nUR                  nOSnSn0 nU R
                  R                  S5      n US   US'   US   US'   US   US	'   U R                  (       a  U R                  US
'   0 n	U R                  R                  S5      n US   U	S'   US   U	S	'   U(       a.  UR                  R                   US   S.U	S'   UR                  U	S'   [        X#XyXV5      $ ! [         a     Nf = f! [         a     N^f = f)zCreate DescribeVPNTableView from GetVpnConnection response.

Args:
  response: Response from GetVpnConnection
  args: Args from GetVpnConnection

Returns:
  DescribeVPNTableView
STATE_UNKNOWN /   project   location   IDzNAT Gateway IP)r
   regionzCloud Routerz
Cloud VPNs)r
   
createTimedetailsr   r   r   split
IndexErrornatGatewayIpr   cloudRouter	cloudVpnsr   )
responseargsr
   r   r(   r   r   r   itemsr   s
             r   &CreateDescribeVPNTableViewResponseHookr1   #   sQ    	$##+'MMEMMEEE'



 
 
%%	qGI(GJ!HGDM  ( 5 5G
#
,,

S
!%	1XC	NaCI ##(((C  ))C	du	LL' 
 		 
 		s$   (D >D  
DD 
D-,D-N)r   
__future__r   r   r   r   r1   r   r   r   <module>r3      s#     ) &  '
 
0Mr   