
    T                     `   d Z ddlmZ ddlmZ ddlmZ  ej                  ej                  j                        ej                   G d dej                                      Z ej                  ej                  j                        ej                   G d dej                                      Zy	)
zQuotaPreference list command.    )quota_preference)base)flagsc                   &    e Zd ZdZed        Zd Zy)	ListAlphaA  List QuotaPreferences in a given project, folder or organization.

  ## EXAMPLES

  To list the quota preferences for `projects/12321`, run:

    $ {command} --project=12321
    $ {command} --project=my-project-id


  To list first 10 quota preferences ordered by create time for `folder/123`,
  run:

    $ {command} --folder=123 --page-size=10 --sort-by=create_time


  To list all quota preferences in unresolved state in region `us-central1` for
  `organization/789`, run:

    $ {command} --organization=789 --filter=dimensions.region:us-central1
    --reconciling-only
  c                 v    t        j                  | d       t        j                         j                  |        y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quota preferences to listNr   AddResourceFlagsReconcilingOnlyAddToParserparsers    &lib/surface/quotas/preferences/list.pyArgszListAlpha.Args0   ,     
6#>?	''/    c                 `    t        j                  |t        j                  j                        S zRun command.

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

    Returns:
      List of quota preferences.
    )release_track)r   ListQuotaPreferencesr   ReleaseTrackGAselfargss     r   RunzListAlpha.Run;   s(     00D--00 r   N__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r      s     . 0 0r   r   c                   &    e Zd ZdZed        Zd Zy)ListBetar   c                 v    t        j                  | d       t        j                         j                  |        yr
   r   r   s    r   r   zListBeta.Argse   r   r   c                 `    t        j                  |t        j                  j                        S r   )r   r   r   r   BETAr   s     r   r   zListBeta.Runp   s(     00D--22 r   Nr   r%   r   r   r'   r'   K   s     . 0 0r   r'   N)r#   googlecloudsdk.api_lib.quotasr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.quotasr   ReleaseTracksr   ALPHAUniverseCompatibleListCommandr   r*   r'   r%   r   r   <module>r2      s    $ : ( 3 D%%++,0   0  -0f D%%**+/t /  ,/r   