
    E	                     z    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	\
R                  5      rg
)z service-management list command.    )absolute_import)division)unicode_literals)
list_pager)services_util)basec                   2    \ rS rSrSrSr\S 5       rS rSr	g)List   zList services for a project.

This command lists the services that are produced by a project.

## EXAMPLES

To list the services the current project produces, run:

  $ {command}
i  c                 x    [         R                  R                  U 5        U R                  R	                  S5        g)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. Positional arguments are
      allowed.
zj
          table(
            serviceName:label=NAME,
            serviceConfig.title
          )
        N)r   URI_FLAGRemoveFromParserdisplay_info	AddFormat)parsers    &lib/surface/endpoints/services/list.pyArgs	List.Args*   s/     	MM""6*
!! #     c           	      ,   [         R                  " 5       n[         R                  " UR                  5      n[         R                  " U5      n[
        R                  " UR                  UUR                  SUR                  =(       d    U R                  SS9$ )zRun 'endpoints list'.

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

Returns:
  The list of managed services for this project.
pageSizeservices)limitbatch_size_attribute
batch_sizefield)r   GetClientInstanceGetValidatedProjectprojectGetProducedListRequestr   YieldFromListr   r   	page_size_DEFAULT_PAGE_SIZE)selfargsclientvalidated_projectrequests        r   RunList.Run=   st     ,,.F%99$,,G223DEG##jj'>><T%<%< r    N)
__name__
__module____qualname____firstlineno____doc__r#   staticmethodr   r)   __static_attributes__r+   r   r   r
   r
      s&    	  $r   r
   N)r0   
__future__r   r   r   apitools.base.pyr    googlecloudsdk.api_lib.endpointsr   googlecloudsdk.callioper   ListCommandr
   r+   r   r   <module>r8      s.     ' &  ' ' : (74 7r   