
    a                         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l
mZ ddlmZ d	d
dZdZ ej                   ej"                  j$                         G d dej&                               Zy)z>Command to list unregistered services in the Project/Location.    )absolute_import)division)unicode_literals)discovered_services)utils)base)flagsz{description}z         To list all unregistered DiscoveredServices in location `us-east1`, run:

          $ {command} --location=us-east1
        )DESCRIPTIONEXAMPLESzi
  table(
    name.scope("discoveredServices"):label=ID,
    serviceReference,
    serviceProperties
  )
c                   *    e Zd ZdZeZed        Zd Zy)FindUnregisteredz-List unregistered Apphub discovered services.c                     t        j                  |        | j                  j                  t               | j                  j                  t        j                  d             y )Nz,apphub.projects.locations.discoveredServices)r	   AddFindUnregisteredServiceFlagsdisplay_info	AddFormat_FORMAT
AddUriFuncapi_lib_utilsMakeGetUriFunc)parsers    ;lib/surface/apphub/discovered_services/find_unregistered.pyArgszFindUnregistered.Args2   sI    	))&1
!!'*
""$$:	
    c                     t        j                         }|j                  j                  j	                         }|j                  |j                  |j                  |j                               S )z*Run the find unregistered service command.)limit	page_sizeparent)	apisDiscoveredServicesClientCONCEPTSlocationParser   r   r   RelativeName)selfargsclientlocation_refs       r   RunzFindUnregistered.Run<   sZ    **,F==))//1L""jj..((* #  r   N)	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r(    r   r   r   r   ,   s!    5 - r   r   N)r,   
__future__r   r   r   googlecloudsdk.api_lib.apphubr   r   r   r   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apphubr	   r-   r   ReleaseTracksReleaseTrackALPHAListCommandr   r0   r   r   <module>r9      sr    E &  ' E @ ( 3 # D%%++,t''  -r   