
    \                         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 dd	lmZ  ej                  ej                  j                          G d
 dej"                               Zy)zBCommand to list all lien IDs associated for the specified project.    )absolute_import)division)unicode_literals)
list_pager)error)liens)base)
propertiesc                   D    e Zd ZdZed        Zej                  d        Zy)ListzwList liens associated with the specified project.

  List all liens which are associated with the specified project.
  c                 :    | j                   j                  d       y )Nzi
          table(
            name.segment(),
            origin,
            reason
          )
        )display_info	AddFormat)parsers    *lib/surface/resource_manager/liens/list.pyArgsz	List.Args#   s    
!! #     c                 6   dt         j                  j                  j                  j	                  d      z   }t        j                  t        j                         t        j                         j                  |      |j                  d|j                  d      S )zRun the list command.z	projects/T)required)parentpageSizer   )limitbatch_size_attribute
batch_sizefield)r
   VALUEScoreprojectGetr   YieldFromListr   LiensServiceLiensMessages$CloudresourcemanagerLiensListRequestr   	page_size)selfargsr   s      r   RunzList.Run-   s     :,,1199==t=LLF##BB 	C 	jj'>> r   N)	__name__
__module____qualname____doc__staticmethodr   r   YieldErrorDetailsr'    r   r   r   r      s5    
   	
 
r   r   N)r+   
__future__r   r   r   apitools.base.pyr   'googlecloudsdk.api_lib.resource_managerr   r   googlecloudsdk.callioper	   googlecloudsdk.corer
   ReleaseTracksReleaseTrackALPHAListCommandr   r.   r   r   <module>r8      s]    I &  ' ' 9 9 ( * D%%++,4  -r   