
                         `    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	Z
dZd	Zd
 Zd Zy)z&Common utilities for the Eventarc API.    )absolute_import)division)unicode_literals)apis)baseNeventarcv1c                 J    | t         j                  j                  k(  rt        S y )N)r   ReleaseTrackGAAPI_VERSION_1)release_tracks    -lib/googlecloudsdk/api_lib/eventarc/common.pyGetApiVersionr      s    d''***    c                     t        j                  t        |       }t        j                  j
                  j                  j                  |      j                  S )z;Gets the service name based on the configured API endpoint.)	r   GetEffectiveApiEndpointAPI_NAMEsixmovesurllibparseurlparsehostname)api_versionendpoints     r   GetApiServiceNamer   %   s;    ))(K@(						(	(	2	;	;;r   )__doc__
__future__r   r   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   six.moves.urllib.parser   r   r   r   r    r   r   <module>r$      s0    - &  ' , ( <r   