
                         b   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 ej"                  ej$                  j,                         G d dej(                               Zy)z>Command to list a application service in the Project/Location.    )absolute_import)division)unicode_literals)utils)services)base)flagsz{description}z         To list all Services in the Application `my-app` in location
        `us-east1`, run:

          $ {command} --application=my-app --location=us-east1
        )DESCRIPTIONEXAMPLESz
  table(
    name.basename():label=ID,
    displayName,
    serviceReference,
    createTime.date(unit=1000, tz_default=UTC)
  )
c                   *    e Zd ZdZeZed        Zd Zy)ListGA!List Apphub application services.c                     t        j                  |        | j                  j                  t               | j                  j                  t        j                  dt        j                  j                               y Nz/apphub.projects.locations.applications.servicesrelease_track)r	   AddListApplicationServiceFlagsdisplay_info	AddFormat_FORMAT
AddUriFuncapi_lib_utilsMakeGetUriFuncr   ReleaseTrackGAparsers    0lib/surface/apphub/applications/services/list.pyArgszListGA.Args4   sX    	((0
!!'*
""$$=++..	
    c                    t        j                  t        j                  j                        }|j
                  j                  j                         }|j                  |j                  |j                  |j                               S zRun the list command.r   )limit	page_sizeparent)apisServicesClientr   r   r   CONCEPTSapplicationParseListr#   r$   RelativeNameselfargsclientapplication_refs       r   Runz
ListGA.Run?   sf      t/@/@/C/CDFmm//557O;;jj..++-   r    N	__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   r2    r    r   r   r   .   !    ) - r    r   c                   *    e Zd ZdZeZed        Zd Zy)	ListAlphar   c                     t        j                  |        | j                  j                  t               | j                  j                  t        j                  dt        j                  j                               y r   )r	   r   r   r   r   r   r   r   r   r   ALPHAr   s    r   r   zListAlpha.ArgsP   sX    	((0
!!'*
""$$=++11	
r    c                    t        j                  t        j                  j                        }|j
                  j                  j                         }|j                  |j                  |j                  |j                               S r"   )r&   r'   r   r   r@   r(   r)   r*   r+   r#   r$   r,   r-   s       r   r2   zListAlpha.Run[   sf      t/@/@/F/FGFmm//557O;;jj..++-   r    Nr3   r;   r    r   r>   r>   J   r<   r    r>   N)r7   
__future__r   r   r   googlecloudsdk.api_lib.apphubr   r   *googlecloudsdk.api_lib.apphub.applicationsr   r&   googlecloudsdk.callioper   !googlecloudsdk.command_lib.apphubr	   r8   r   ReleaseTracksr   r   ListCommandr   r@   r>   r;   r    r   <module>rI      s    E &  ' @ G ( 3 # D%%(()T  *6 D%%++,    -r    