
                             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  SS	KJr   " S
 S\R                  5      rg)zList triggers command.    )absolute_import)division)unicode_literals)cloudbuild_util)base)flags)
properties)	resourcesc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g)	List   z(List Cloud Build triggers for a project.zC
        To list build triggers, run:

          $ {command}
      )DESCRIPTIONEXAMPLESc                 0    [         R                  " U 5        g )N)build_flagsAddRegionFlag)parsers    #lib/surface/builds/triggers/list.pyArgs	List.Args)   s    f%    c                    [         R                  " 5       n[        R                  R                  R
                  R                  SS9n[        R                  R                  R                  R                  5       nUR                  =(       d    U=(       d    [         R                  n[        R                  R                  SUUS9R                  5       nUR                  R                  UR                   R#                  US95      R$                  $ )zLists the build triggers in a project.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.

Returns:
  Some value that we want to have printed later.
T)requiredzcloudbuild.projects.locations)
collection
projectsIdlocationsId)parent)r   GetClientInstancer	   VALUEScoreprojectGetbuildsregionDEFAULT_REGIONr
   REGISTRYCreateRelativeNameprojects_locations_triggersr   MESSAGES_MODULE.CloudbuildProjectsLocationsTriggersListRequesttriggers)selfargsclientr!   
regionproplocationr   s          r   RunList.Run-   s     ..0F$$,,00$0?G""))00446J{{JjJO,J,JH&&2 '  +ln 
 --22MM 	N 	$H%r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r2   __static_attributes__r4   r   r   r   r      s/    0 5
- & &%r   r   N)r9   
__future__r   r   r   !googlecloudsdk.api_lib.cloudbuildr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.buildsr   r   googlecloudsdk.corer	   r
   ListCommandr   r4   r   r   <module>rC      s4     &  ' = ( B * ))%4 )%r   