
    E                     >    d Z ddlmZ ddlmZ ddlmZ d Zd Zd Zy)	z+Simplify fully-qualified paths for compute.    )absolute_import)division)unicode_literalsc                 *    | j                  d      d   S )z2Get just the name of the object the uri refers to./splituris    5lib/googlecloudsdk/api_lib/compute/path_simplifier.pyNamer      s     
3	    c                 x    d| v r| j                  d      d   S d| v r| j                  d      d   S t        |       S )z9Get just the scoped part of the object the uri refers to.z/zones/r   z	/regions/)r
   r   r   s    r   ScopedSuffixr      sH     #99Y##c99[!"%% 9r   c                 *    | j                  d      d   S )z=Get the entire relative path of the object the uri refers to.z
/projects/r   r	   r   s    r   ProjectSuffixr   -   s     
<	 	$$r   N)__doc__
__future__r   r   r   r   r   r    r   r   <module>r      s$    2 '  '%r   