
    d                     b   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SK
Jr  SSKJr  S	S
S.rSr\R                   " \R"                  R$                  5       " S S\R&                  5      5       r\R                   " \R"                  R*                  5       " S S\R&                  5      5       rg)z`Command to list Discovered Services that can be added to an application in the Project/Location.    )absolute_import)division)unicode_literals)discovered_services)utils)base)flagsz{description}z          To list DiscoveredServices that could be added to an application in
         location `us-east1`, run:

          $ {command} --location=us-east1
        )DESCRIPTIONEXAMPLESzi
  table(
    name.scope("discoveredServices"):label=ID,
    serviceReference,
    serviceProperties
  )
c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)ListGA-    List Apphub discovered services.c                     [         R                  " U 5        U R                  R                  [        5        U R                  R                  [        R                  " S[        R                  R                  S95        g Nz,apphub.projects.locations.discoveredServicesrelease_track)r	   AddListDiscoveredServiceFlagsdisplay_info	AddFormat_FORMAT
AddUriFuncapi_lib_utilsMakeGetUriFuncr   ReleaseTrackGAparsers    .lib/surface/apphub/discovered_services/list.pyArgsListGA.Args3   sX    	''/
!!'*
""$$:++..	
    c                    [         R                  " [        R                  R                  S9nUR
                  R                  R                  5       nUR                  UR                  UR                  UR                  5       S9$ zRun the list command.r   )limit	page_sizeparent)apisDiscoveredServicesClientr   r   r   CONCEPTSlocationParseListr%   r&   RelativeNameselfargsclientlocation_refs       r   Run
ListGA.Run?   sf    **9J9J9M9MNF==))//1L;;jj..((*   r"    N__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr    r4   __static_attributes__r6   r"   r   r   r   -   s!    ( -	 	r"   r   c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)	ListAlphaJ   r   c                     [         R                  " U 5        U R                  R                  [        5        U R                  R                  [        R                  " S[        R                  R                  S95        g r   )r	   r   r   r   r   r   r   r   r   r   ALPHAr   s    r   r    ListAlpha.ArgsP   sX    	''/
!!'*
""$$:++11	
r"   c                    [         R                  " [        R                  R                  S9nUR
                  R                  R                  5       nUR                  UR                  UR                  UR                  5       S9$ r$   )r(   r)   r   r   rE   r*   r+   r,   r-   r%   r&   r.   r/   s       r   r4   ListAlpha.Run\   sk    **''--F ==))//1L;;jj..((*   r"   r6   Nr7   r6   r"   r   rB   rB   J   s!    ( -	 	
r"   rB   N)r<   
__future__r   r   r   googlecloudsdk.api_lib.apphubr   r(   r   r   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apphubr	   r=   r   ReleaseTracksr   r   ListCommandr   rE   rB   r6   r"   r   <module>rO      s    g &  ' E @ ( 3 # D%%(()T  *8 D%%++,    -r"   