
    E                     >    S r SSKJr  SSKJr  SSKJr  S rS rS rg)	z+Simplify fully-qualified paths for compute.    )absolute_import)division)unicode_literalsc                 *    U R                  S5      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                     SU ;   a  U R                  S5      S   $ SU ;   a  U R                  S5      S   $ [        U 5      $ )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                 *    U R                  S5      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   