
    w                     T    S r SSKJr  SSKrSrSr\4S jr\4S jr\4S jr	\4S jr
g)	z2Shared utilities for accessing the Private CA API.    )apisNv1c                 0    [         R                  " SU 5      $ N	privateca)r   GetClientClassapi_versions    ,lib/googlecloudsdk/api_lib/privateca/base.pyr   r      s    			[+	66    c                 0    [         R                  " SU 5      $ r   )r   GetClientInstancer	   s    r   r   r          			[	99r   c                 0    [         R                  " SU 5      $ r   )r   GetMessagesModuler	   s    r   r   r   "   r   r   c                     [         R                  " SU 5      n[        R                  R                  R
                  R                  U5      R                  $ )z;Gets the service name based on the configured API endpoint.r   )r   GetEffectiveApiEndpointsixmovesurllibparseurlparsehostname)r
   endpoints     r   GetServiceNamer   &   s;    ))+{C(						(	(	2	;	;;r   )__doc__googlecloudsdk.api_lib.utilr   six.moves.urllib.parser   DEFAULT_API_VERSIONV1_API_VERSIONr   r   r   r    r   r   <module>r"      sE    9 -    3 7 #6 : #6 :  3 <r   