
    I                         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
  \R                  \R                  " \R                  R                  5       " S S	\R                  5      5       5       rg
)zDImplementation of gcloud Procurement consumer accounts list command.    )absolute_import)division)unicode_literals)apis)base)resource_argsc                   .    \ rS rSrSr\S 5       rS rSrg)List   z@Returns the List of Account objects resulting from the List API.c                 J   [         R                  " U S5        [        R                  R	                  U 5        [        R
                  R	                  U 5        [        R                  R	                  U 5        [        R                  R	                  U 5        U R                  SSS9  g)zfRegister flags for this command.

Args:
  parser: argparse.ArgumentParser to register arguments with.
z.Parent Cloud Billing account to list accounts.z--page-tokenz/Token that specifies the next page in the list.)helpN)	r   AddBillingAccountResourceArgr   FILTER_FLAGRemoveFromParser
LIMIT_FLAGSORT_BY_FLAGURI_FLAGadd_argument)parsers    :lib/surface/commerce_procurement/consumer/accounts/list.pyArgs	List.Args   s     ..@B%%f-OO$$V,&&v.MM""6*
?  B    c                     UR                   R                  R                  5       n[        R                  R                  UR                  5       UR                  UR                  5      $ )zRuns the command.

Args:
  args: The arguments that were provided to this command invocation.

Returns:
  List of accounts and next token if applicable.
)	CONCEPTSbilling_accountParser   Accountsr
   RelativeName	page_size
page_token)selfargsbilling_account_refs      r   RunList.Run0   sM     --77==?==1>>@"nndoo? ?r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r%   __static_attributes__r'   r   r   r
   r
      s!     IB B ?r   r
   N)r,   
__future__r   r   r   +googlecloudsdk.api_lib.commerce_procurementr   googlecloudsdk.callioper   /googlecloudsdk.command_lib.commerce_procurementr   HiddenReleaseTracksReleaseTrackALPHAListCommandr
   r'   r   r   <module>r8      sa    K &  ' < ( I D%%++,?4 ? - ?r   