
                             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  \R                  \R                  " \R                  R                  5       " S S\R                  5      5       5       rg	)
zHImplementation of gcloud Procurement consumer entitlements list command.    )absolute_import)division)unicode_literals)apis)basec                   .    \ rS rSrSr\S 5       rS rSrg)List   zDReturns the List of Entitlement objects resulting from the List API.c                    [         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--page-tokenz/Token that specifies the next page in the list.)helpN)r   FILTER_FLAGRemoveFromParser
LIMIT_FLAGSORT_BY_FLAGURI_FLAGadd_argument)parsers    >lib/surface/commerce_procurement/consumer/entitlements/list.pyArgs	List.Args   sj     	%%f-OO$$V,&&v.MM""6*
?  B    c                 j    [         R                  R                  UR                  UR                  5      $ )zRuns the command.

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

Returns:
  List of entitlements and next token if applicable.
)r   Entitlementsr	   	page_size
page_token)selfargss     r   RunList.Run-   s%     !!$..$//BBr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r    r   r   r	   r	      s"     MB B	Cr   r	   N)r%   
__future__r   r   r   +googlecloudsdk.api_lib.commerce_procurementr   googlecloudsdk.callioper   HiddenReleaseTracksReleaseTrackALPHAListCommandr	   r    r   r   <module>r0      sa    O &  ' < ( D%%++,C4 C - Cr   