
                         d   d Z ddl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 ej                  d      d	Z ej                  ej                  j                  ej                  j                   ej                  j"                        ej$                   G d
 dej&                                      Zy)z3Exports a Gcloud Deploy delivery pipeline resource.    N)
exceptions)base)resource_args)target_utilz{description}zj
      To list the targets in region 'us-central1', run:

        $ {command} --region=us-central1

      )DESCRIPTIONEXAMPLESc                   h    e Zd ZdZeZed        Z ej                  e
j                        d        Zy)ListzList Cloud Deploy targets.c                 .    t        j                  |        y )N)r   AddLocationResourceArg)parsers    "lib/surface/deploy/targets/list.pyArgsz	List.Args/   s    ((0    c                     |j                   j                  j                         }t        j                  |j                               S )zEntry point of the export command.

    Args:
      args: argparse.Namespace, An object that contains the values for the
        arguments specified in the .Args() method.

    Returns:
       A list of target messages.
    )CONCEPTSregionParser   
ListTargetRelativeName)selfargsloc_refs      r   RunzList.Run3   s6     mm""((*G!!'"6"6"899r   N)__name__
__module____qualname____doc___DETAILED_HELPdetailed_helpstaticmethodr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptiondeploy_exceptionsHTTP_ERROR_FORMATr    r   r   r
   r
   (   sI     # -1 1 544))::r   r
   )r   textwrapgooglecloudsdk.api_lib.utilr   r"   googlecloudsdk.callioper   !googlecloudsdk.command_lib.deployr$   r   r   dedentr   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyListCommandr
   r&   r   r   <module>r3      s    :  F ( M ; 9 	 
 		 D%%++T->->-C-C%%((*:4 : *:r   