
                             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 ddlmZ ddl	m
Z
 e
j                   G d	 d
e
j                               Zy)zList attestors command.    )absolute_import)division)unicode_literals)apis)	attestors)util)basec                   &    e Zd ZdZed        Zd Zy)Lista   List Attestors associated with the current project.

  ## EXAMPLES

  To list attestors:

     $ {command}

  To list attestors in a verbose format (including
  information about public keys associated with each attestor:

     $ {command} --format=yaml
  c                     |j                   j                  dj                  | j                         t        j                  j
                  k(  rdnd             y )Nz
        table[box](
            name.scope().segment(3):sort=1,
            {note_field}.noteReference:label=NOTE,
            {note_field}.publicKeys.len():label=NUM_PUBLIC_KEYS
        )
    userOwnedGrafeasNoteuserOwnedDrydockNote)
note_field)display_info	AddFormatformatReleaseTrackr	   GA)clsparsers     0lib/surface/container/binauthz/attestors/list.pyArgsz	List.Args+   sS    
!! # 	C4D4D4F  ##5$0)? 	 	AB    c                     t        j                  | j                               }t        j                  |      j                  t        j                         |j                  |j                        S )N)	page_sizelimit)
r   GetApiVersionr   r   Clientr   r   GetProjectRefr   r   )selfargsapi_versions      r   RunzList.Run6   sX    $$T%6%6%89KK(--djj . J Jr   N)__name__
__module____qualname____doc__classmethodr   r#    r   r   r   r      s#     B BJr   r   N)r'   
__future__r   r   r   )googlecloudsdk.api_lib.container.binauthzr   r   r   googlecloudsdk.callioper	   DefaultUniverseOnlyListCommandr   r)   r   r   <module>r/      sI     &  ' : ? : ( J4 J Jr   