
    
                         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 dd
lmZ  G d dej                         Zy)zDescribe trigger command.    )absolute_import)division)unicode_literals)cloudbuild_util)base)resource_args)concept_parsers)
properties)	resourcesc                   0    e Zd ZdZdddZed        Zd Zy)Describez+Get information about a particular trigger.z2Get information about the specified build trigger.zU
         To describe a build trigger, run:

           $ {command} MY-TRIGGER
      )DESCRIPTIONEXAMPLESc                     t         j                  j                  dt        j                         dd      j                  |        y )NTRIGGERzBuild Trigger.Trequired)r	   ConceptParserForResourcer   GetTriggerResourceSpecAddToParser)parsers    'lib/surface/builds/triggers/describe.pyArgszDescribe.Args*   s<    !!--,,.	 .  #{6*    c                 &   t        j                         }t        j                  j                  j
                  j                  d      }t        j                  j                  j                  j                         }|j                  xs |xs t         j                  }|j                  }t        j                  j                  ||||dd      j                         }|j                  j                  |j                   j#                  ||            S )zDescribes a build trigger..

    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.
    Tr   )
projectsIdlocationsId
triggersIdz&cloudbuild.projects.locations.triggers)params
collection)name	triggerId)r   GetClientInstancer
   VALUEScoreprojectGetbuildsregionDEFAULT_REGIONr   r   REGISTRYParseRelativeNameprojects_locations_triggersMESSAGES_MODULE-CloudbuildProjectsLocationsTriggersGetRequest)selfargsclientr'   
regionproplocationtriggerr"   s           r   RunzDescribe.Run2   s     ..0F$$,,00$0?G""))00446J{{JjJO,J,JHllG##!#!

 < $ = >J\^ 	 --11LL 	M 	*+ +r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r8    r   r   r   r      s/    3 ?
- + ++r   r   N)r<   
__future__r   r   r   !googlecloudsdk.api_lib.cloudbuildr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.cloudbuildr   (googlecloudsdk.command_lib.util.conceptsr	   googlecloudsdk.corer
   r   DescribeCommandr   r?   r   r   <module>rG      s7      &  ' = ( ? D * )2+t## 2+r   