
    X	                     *   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
S.r\R                  " \R                  R                   \R                  R"                  5      \R$                   " S S\R&                  5      5       5       rg)z2Command to delete the specified Google API source.    )absolute_import)division)unicode_literals)google_api_sources)base)flags)
console_ioz{description}z         To delete the Google API source `my-google-api-source` in location `us-central1`, run:

          $ {command} my-google-api-source --location=us-central1
        )DESCRIPTIONEXAMPLESc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)Delete$   z%Delete an Eventarc Google API source.c                 n    [         R                  " USSS9  [        R                  R	                  U5        g )NzGoogle API source to delete.T)required)r   AddGoogleApiSourceResourceArgr   
ASYNC_FLAGAddToParser)clsparsers     1lib/surface/eventarc/google_api_sources/delete.pyArgsDelete.Args+   s,    	''. 	OO'    c                 R   [         R                  " 5       nUR                  R                  R	                  5       n[
        R                  " SR                  UR                  UR                  S9SSS9  UR                  U5      nUR                  (       a  U$ UR                  USU5      $ )zRun the delete command.zRThe following Google API source will be deleted.
[{name}] in location [{location}])namelocationT)messagethrow_if_unattendedcancel_on_noDeleting)r   GoogleApiSourceClientV1CONCEPTSgoogle_api_sourceParser	   PromptContinueformatgoogleApiSourcesIdlocationsIdr   async_WaitFor)selfargsclientgoogle_api_source_ref	operations        r   Run
Delete.Run2   s    779F MM;;AAC006*==.:: 17 1
 !
 34I{{>>)Z1FGGr    N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpclassmethodr   r0   __static_attributes__r2   r   r   r   r   $   s$     . -( (Hr   r   N)r7   
__future__r   r   r   googlecloudsdk.api_lib.eventarcr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.eventarcr   googlecloudsdk.core.consoler	   r8   ReleaseTracksReleaseTrackBETAGADefaultUniverseOnlyDeleteCommandr   r2   r   r   <module>rG      s    9 &  ' > ( 5 2 # D%%**D,=,=,@,@A HT  H  B Hr   