
                             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 ej                   ej                  ej                  j                         G d dej                                      Zy	)
zHImplementation of gcloud Procurement consumer entitlements list command.    )absolute_import)division)unicode_literals)apis)basec                   &    e Zd ZdZed        Zd Zy)ListzDReturns the List of Entitlement objects resulting from the List API.c                 "   t         j                  j                  |        t         j                  j                  |        t         j                  j                  |        t         j
                  j                  |        | j                  dd       y)zrRegister 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Argsz	List.Args   sj     	%%f-OO$$V,&&v.MM""6*
?  B    c                 j    t         j                  j                  |j                  |j                        S )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   RunzList.Run-   s%     !!$..$//BBr   N)__name__
__module____qualname____doc__staticmethodr   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>r+      sc    O &  ' < ( D%%++,C4 C - Cr   