
                         p    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ZdZ	dZ
e	fdZe	fd	Ze	fd
Ze	fdZy)z2Shared utilities for accessing the Private CA API.    )absolute_import)division)unicode_literals)apisNv1c                 .    t        j                  d|       S N	privateca)r   GetClientClassapi_versions    ,lib/googlecloudsdk/api_lib/privateca/base.pyr   r      s    			[+	66    c                 .    t        j                  d|       S r	   )r   GetClientInstancer   s    r   r   r   !       			[	99r   c                 .    t        j                  d|       S r	   )r   GetMessagesModuler   s    r   r   r   %   r   r   c                     t        j                  d|       }t        j                  j                  j
                  j                  |      j                  S )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__
__future__r   r   r   googlecloudsdk.api_lib.utilr   six.moves.urllib.parser   DEFAULT_API_VERSIONV1_API_VERSIONr   r   r   r    r   r   <module>r&      sL    9 &  ' ,    3 7 #6 : #6 :  3 <r   