
                         L    S r SSKJr  SSKJr  SSKJr  SrSrSrSr	S	r
S
 rS rg)z:Common utility functions for all Cloud Filestore commands.    )base)
exceptions)
propertiesv1
v1p1alpha1v1beta1zprojects/{}/locations/{}-c                 L   A [         R                  R                  R                  R	                  SS9n[        US5      (       a-  UR                  =(       d    UR                  =(       d    [        nOUR                  =(       d    [        n[        R                  X45      Ul        U$ )zFPython hook for yaml commands to wildcard the region in list requests.T)requiredzone)r   VALUEScoreprojectGethasattrregionr   LOCATION_WILDCARDPARENT_TEMPLATEformatparent)refargsreqr   locations        0lib/googlecloudsdk/command_lib/filestore/util.pyAddDefaultLocationToListRequestr      su    	""**...='T6{{<dii<+<H{{//H%%g8#*	*    c                 :   U R                   R                  5       nU[        R                  R                  :X  a  [        $ U[        R                  R
                  :X  a  [        $ U[        R                  R                  :X  a  [        $ [        R                  " U5      e)z!Return API version based on args.)calliope_commandReleaseTrackr   ALPHAALPHA_API_VERSIONBETABETA_API_VERSIONGAV1_API_VERSIONr   UnsupportedReleaseTrackError)r   release_tracks     r   GetApiVersionFromArgsr)   ,   su    ''446-d''---d'',,,d''***//>>r   N)__doc__googlecloudsdk.callioper   googlecloudsdk.corer   r   r&   r"   r$   r   r   r   r)    r   r   <module>r.      s<     A ) * *   , 
	?r   