ó
    €Ïä  ã                   ó<   • S r SSKJr  SSKrSSKrSrSrSrS rS r	g)z0Common utility functions for network operations.é    )ÚtimesNé   é   c                 óÒ   •  [         R                  " [        R                  " U 5      5      R                  nU[
        [        4;  a  [        S5      eU$ ! [         a	    [        s $ f = f)zÆGiven an ip address, determine IP version.

Args:
  ip_address: string, IP address to test IP version of

Returns:
  int, the IP version if it could be determined or IP_VERSION_UNKNOWN
  otherwise.
z#Reported IP version not recognized.)	Ú	ipaddressÚ
ip_addressÚsixÚ	text_typeÚversionÚIP_VERSION_4ÚIP_VERSION_6Ú
ValueErrorÚIP_VERSION_UNKNOWN)r   r   s     Ú)lib/googlecloudsdk/api_lib/sql/network.pyÚGetIpVersionr      sY   € ðä×"Ò"¤3§=¢=°Ó#<Ó=×EÑE€GØ”|¤\Ð2Ó2ÜÐ<Ó=Ð=Ø€NøÜ	ó ÜÒðús   ‚AA ÁA&Á%A&c                  óF   • [         R                  " [         R                  S9$ )z!Returns the current UTC datetime.)Útzinfo)r   ÚNowÚUTC© ó    r   ÚGetCurrentTimer   /   s   € ä	Šœ%Ÿ)™)Ñ	$Ð$r   )
Ú__doc__Úgooglecloudsdk.core.utilr   r   r	   r   r   r   r   r   r   r   r   Ú<module>r      s/   ðñ 7õ +Û Û 
à€Ø€ØÐ òó(%r   