
                         J   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K	J
r
  SSK	Jr  \R                  " \R                  R                  \R                  R                  \R                  R                   5      \R"                   " S	 S
\R$                  5      5       5       rg)z2Command to list essential contacts for a resource.    )absolute_import)division)unicode_literals)contacts)base)flags)utilc                   .    \ rS rSrSr\S 5       rS rSrg)List   a  List essential contacts for a resource.

## EXAMPLES

To list the contacts set on the current project:

      $ {command} [--page_size=10] [--limit=20]

To list the contacts set on the folder with id ``456'', run:

    $ {command} --folder=456 [--page_size=10] [--limit=20]

To list the contacts set on the organization with id ``456'', run:

      $ {command} --organization=456 [--page_size=10] [--limit=20]
c                 n    [         R                  " U 5        [        R                  R	                  U 5        g)zAdds command-specific args.N)r   AddParentArgsr   URI_FLAGRemoveFromParser)parsers    &lib/surface/essential_contacts/list.pyArgs	List.Args0   s$     
MM""6*    c                     [         R                  " U5      n[        R                  " 5       nUR	                  X!R
                  UR                  S9$ )zRuns the list command.)limit	page_size)r	   	GetParentr   ContactsClientr   r   r   )selfargsparent_nameclients       r   RunList.Run6   s9    ..&K$$&F;;{**;OOr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r!   r   r   r   r      s!    " + +
Pr   r   N)r&   
__future__r   r   r   )googlecloudsdk.api_lib.essential_contactsr   googlecloudsdk.callioper   -googlecloudsdk.command_lib.essential_contactsr   r	   ReleaseTracksReleaseTrackALPHABETAGAUniverseCompatibleListCommandr   r!   r   r   <module>r4      s    9 &  ' > ( ? > D%%++T->->-C-C%%((*P4 P *Pr   