
                         `   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QuotaInfo list command.    )
quota_info)base)flagsc                   &    e Zd ZdZed        Zd Zy)	ListAlphaa*  List QuotaInfos of all quotas for a given project, folder or organization.

  ## EXAMPLES

  To list all quota info for service `example.$$UNIVERSE_DOMAIN$$` and
  `projects/12321`, run:

    $ {command} --service=example.$$UNIVERSE_DOMAIN$$ --project=12321
    $ {command} --service=example.$$UNIVERSE_DOMAIN$$ --project=my-project-id

   To list first 100 quota info ordered alphabetically for service
   `example.$$UNIVERSE_DOMAIN$$` and `folders/123`,
   run:

    $ {command} --service=example.$$UNIVERSE_DOMAIN$$ --folder=123
    --page-size=100
  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 info to listNr   AddResourceFlagsServiceAddToParserparsers    lib/surface/quotas/info/list.pyArgszListAlpha.Args+   )     
6#78	MMO'    c                 `    t        j                  |t        j                  j                        S zRun command.

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

    Returns:
      List of QuotaInfo for specified container and service.
    )release_track)r   ListQuotaInfor   ReleaseTrackGAselfargss     r   RunzListAlpha.Run6   s#     ##D8I8I8L8LMMr   N__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r      s!    $ ( (Nr   r   c                   &    e Zd ZdZed        Zd Zy)ListBetaa+  List QuotaInfos of all quotas for a given project, folder or organization.

  ## EXAMPLES

  To list all quota info for service `example.$$UNIVERSE_DOMAIN$$` and
  `projects/12321`, run:

    $ {command} --service=example.$$UNIVERSE_DOMAIN$$ --project=12321
    $ {command} --service=example.$$UNIVERSE_DOMAIN$$m --project=my-project-id

   To list first 100 quota info ordered alphabetically for service
   `example.$$UNIVERSE_DOMAIN$$` and `folders/123`,
   run:

    $ {command} --service=example.$$UNIVERSE_DOMAIN$$ --folder=123
    --page-size=100
  c                 v    t        j                  | d       t        j                         j                  |        yr	   r
   r   s    r   r   zListBeta.ArgsY   r   r   c                 `    t        j                  |t        j                  j                        S r   )r   r   r   r   BETAr   s     r   r   zListBeta.Rund   s#     ##D8I8I8N8NOOr   Nr   r$   r   r   r&   r&   D   s!    $ ( (
Pr   r&   N)r"   googlecloudsdk.api_lib.quotasr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.quotasr   ReleaseTracksr   ALPHAUniverseCompatibleListCommandr   r)   r&   r$   r   r   <module>r1      s     4 ( 3 D%%++,)N   )N  -)NX D%%**+(Pt (P  ,(Pr   