
    F                         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0r	\R                  \R                  " \R                  R                  5       " S	 S
\R                  5      5       5       r\	\l        g)zGImplementation of gcloud Procurement consumer free trials list command.    )absolute_import)division)unicode_literals)apis)baseEXAMPLESa!  
        The filter is a query string that can match a selected set of attributes
        with string values. For example:

            $ {command} --filter "product_external_name=1234-5678-ABCD-EFG"

        Supported query attributes are the following:

            * `product_external_name`
            * `provider` (in the naming format of "provider/{provider-id}")

        If the query contains some special characters other than letters,
        underscore, or digits, the phrase must be quoted with double quotes. For
        example, where the product name needs to be quoted because it contains
        the special character colon:

            $ {command} --filter "product_external_name=\"foo:bar\""

        Queries can be combined with AND, OR, and NOT to form more complex
        queries. They can also be grouped to force a desired evaluation order.
        For example:

            $ {command} --filter "provider=providers/E-1234 OR provider=providers/5678 AND NOT (product_external_name=foo-product)"

        Connective AND can be omitted between two predicates. For example:

            $ {command} --filter "provider=providers/E-1234 product_external_name=foo"

        is equivalent to:

            $ {command} --filter "provider=providers/E-1234 AND product_external_name=foo"

        c                   .    \ rS rSrSr\S 5       rS rSrg)List>   zCReturns the List of Free Trial objects resulting from the List API.c                 n    U R                  S[        SS9  U R                  SSS9  U R                  SSS9  g	)
zfRegister flags for this command.

Args:
  parser: argparse.ArgumentParser to register arguments with.
z--page-sizez%Maximum number of resources per page.)typehelpz--page-tokenz/Token that specifies the next page in the list.)r   z--filterz$Filter that limits the list request.N)add_argumentint)parsers    =lib/surface/commerce_procurement/consumer/free_trials/list.pyArgs	List.ArgsC   sV     C'N  Q
?  B @  C    c                     [         R                  R                  UR                  UR                  UR
                  5      nSUl        U$ )zRuns the command.

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

Returns:
  List of free trials and next token if applicable.
 )r   
FreeTrialsr
   	page_size
page_tokenfilter)selfargsresults      r   RunList.RunR   s6     __!!$..$//4;;OF DKMr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r!   r   r   r
   r
   >   s!     LC Cr   r
   N)r&   
__future__r   r   r   +googlecloudsdk.api_lib.commerce_procurementr   googlecloudsdk.callioper   DETAILED_HELPHiddenReleaseTracksReleaseTrackALPHACommandr
   detailed_helpr!   r   r   <module>r3      sy    N &  ' < (  	#L D%%++, 4<<   -  F # r   