
    	                        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mZ ddiZ	 ej                  ej                  j                  ej                  j                        ej                   G d	 d
ej                                      Zy)z'recommender API locations list command.    )absolute_import)division)unicode_literals)	locations)baseEXAMPLESz=
          Lists locations.

            $ {command}
        c                   *    e Zd ZdZeZed        Zd Zy)ListzLList locations operations.

  This command lists all available locations.
  c                     | j                  ddd       | j                  ddd       | j                  dd	d
       | j                  ddd       | j                  j                  d       y)zArgs is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go on
        the command line after this command.
    z--organizationORGANIZATIONzOrganization ID)metavarhelpz--folderFOLDERz	Folder IDz--billing-accountBILLING_ACCOUNTzBilling Account IDz	--projectPROJECTz
Project IDzI
        table(
          name.basename(): label=LOCATIONS
        )
    N)add_argumentdisplay_info	AddFormat)parsers    )lib/surface/recommender/locations/list.pyArgsz	List.Args+   s     ( .5F  H

H;G
+ 18L  N
Y\J
!! # 	    c                     t        j                  | j                               }|j                  |j                  |j
                  |j                  |j                  |j                        S )zRun 'gcloud recommender recommenders list'.

    Args:
      args: argparse.Namespace, The arguments that this command was invoked
        with.

    Returns:
      The list of recommender types for this project.
    )projectorganizationfolderbilling_account)	r   CreateClientReleaseTrackr
   	page_sizer   r   r   r   )selfargsclients      r   RunzList.Run?   sZ     ##D$5$5$78F;;&&{{,,   r   N)	__name__
__module____qualname____doc__DETAILED_HELPdetailed_helpstaticmethodr   r$    r   r   r
   r
   !   s%    
  -	 	&r   r
   N)r(   
__future__r   r   r   "googlecloudsdk.api_lib.recommenderr   googlecloudsdk.callioper   r)   ReleaseTracksr   ALPHABETAHiddenListCommandr
   r,   r   r   <module>r5      s    . &  ' 8 (   D%%++T->->-C-CD-4 -  E-r   