
                            S r SSKJr  SSKJr  SSKJr  SSKJr	  SSK
Jr  S r\R                  " \R                  R                  5       " S S\R                   5      5       r\R                  " \R                  R$                  5       " S	 S
\5      5       r\R                  " \R                  R(                  5       " S S\5      5       rg)1List regions available to Google Cloud Functions.    )util)base)flags)commandc                     U R                   R                  S5        U R                   R                  [        R                  5        [        R
                  " U SS9  g )Nztable(name)F)operates_on_existing_function)display_info	AddFormat
AddUriFuncr   GetLocationsUriAddGen2Flagparsers    %lib/surface/functions/regions/list.py_CommonArgsr      s@    .  !6!67F%@    c                   L    \ rS rSrSr\S 5       r\R                  S 5       r	Sr
g)List    r   c                     [        U 5        g)z!Registers flags for this command.N)r   r   s    r   Args	List.Args$   s     r   c                     [         R                  " 5       (       a$  [        R                  " XR	                  5       5      $ [
        R                  " U5      $ )aM  This is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  List of cloudfunctions_v1.Location or cloudfunctions_v2.Location:
    List of GCF regions

Raises:
  FunctionsError: If the user doesn't confirm on prompt.
)r   ShouldUseGen2
command_v2RunReleaseTrack
command_v1)selfargss     r   r   List.Run)   s:     ^^D"3"3"566^^D!!r    N)__name__
__module____qualname____firstlineno____doc__staticmethodr   r    CatchHTTPErrorRaiseHTTPExceptionr   __static_attributes__r#   r   r   r   r       s1    9  ((" )"r   r   c                       \ rS rSrSrSrg)ListBeta>   r   r#   Nr$   r%   r&   r'   r(   r+   r#   r   r   r-   r-   >       9r   r-   c                       \ rS rSrSrSrg)	ListAlphaC   r   r#   Nr/   r#   r   r   r2   r2   C   r0   r   r2   N)r(   #googlecloudsdk.api_lib.functions.v1r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.functionsr   4googlecloudsdk.command_lib.functions.v1.regions.listr   r   4googlecloudsdk.command_lib.functions.v2.regions.listr   r   ReleaseTracksr   GAListCommandr   BETAr-   ALPHAr2   r#   r   r   <module>r>      s     8 5 ( 6 V VA D%%(()"4 " *": D%%**+:t : ,: D%%++,: : -:r   