
                             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
\
R                  5      rg)z!The configs waiters list command.    )absolute_import)division)unicode_literals)
list_pager)util)base)flagsc                   :    \ rS rSrSrSrSS0r\S 5       rS r	Sr
g	)
List   zyList waiter resources within a configuration.

This command lists the waiter resources within a specified configuration.
d   EXAMPLESa  
          To list all waiters within the configuration named "my-config", run:

            $ {command} --config-name=my-config

          The --filter parameter can be used to filter results based on content.
          For example, to list all waiters with names that begin with 'foo',
          run:

            $ {command} --config-name=my-config --filter='name=foo*'
          c                 f    [         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.
z>table(name, createTime.date(), waiter_status(), error.message)N)r	   AddRequiredConfigFlagdisplay_info	AddFormat)parsers    2lib/surface/runtime_config/configs/waiters/list.pyArgs	List.Args3   s*     
'
!!HJ    c           	   #     #    [         R                  " 5       n[         R                  " 5       n[         R                  " [         R                  " U5      5      nUR                  UR                  5       S9nUR                  =(       d    U R                  n[        R                  " X%SSUR                  US9nU H  n[         R                  " U5      v   M     g7f)a   Run 'runtime-configs waiters list'.

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

Yields:
  The list of waiters.

Raises:
  HttpException: An http error response was received while executing api
      request.
)parentwaiterspageSize)fieldbatch_size_attributelimit
batch_sizeN)r   WaiterClientMessagesParseConfigName
ConfigName.RuntimeconfigProjectsConfigsWaitersListRequestRelativeName	page_sizeDEFAULT_PAGE_SIZEr   YieldFromListr   FormatWaiter)	selfargswaiter_clientmessagesconfig_resourcerequestr&   resultsresults	            r   RunList.Run@   s      %%'M}}H**4??4+@AOEE++- F G 8$"8"8I&&i'tzzG f%% s   CC N)__name__
__module____qualname____firstlineno____doc__r'   detailed_helpstaticmethodr   r2   __static_attributes__r4   r   r   r   r      s;    
   
- 
J 
J &r   r   N)r9   
__future__r   r   r   apitools.base.pyr   %googlecloudsdk.api_lib.runtime_configr   googlecloudsdk.callioper   )googlecloudsdk.command_lib.runtime_configr	   ListCommandr   r4   r   r   <module>rC      s3     ( &  ' ' 6 ( ;C&4 C&r   