
                         n    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
 Zy)zHThis file provides the implementation of the `functions delete` command.    )absolute_import)division)unicode_literals)
exceptions)
operations)util)log)
console_ioc                    t        j                         }|j                  }| j                  j                  j                         }|j                         }dj                  |      }t        j                  |      st        j                  d      |j                  j                  |j                  |            }t        j                   |||       t#        j$                  |       y)zDelete a Google Cloud Function.z'1st gen function [{0}] will be deleted.)messagezDeletion aborted by user.)nameN)r   GetApiClientInstanceMESSAGES_MODULECONCEPTSr   ParseRelativeNameformatr
   PromptContinuer   FunctionsErrorprojects_locations_functionsDelete5CloudfunctionsProjectsLocationsFunctionsDeleteRequestr   Waitr	   DeletedResource)argsclientmessagesfunction_reffunction_urlprompt_messageops          =lib/googlecloudsdk/command_lib/functions/v1/delete/command.pyRunr#      s    $$&&##(##))+,**,,<CC. 
	"	">	:

#
#$?
@@**11DD E "
 //"h'l#    N)__doc__
__future__r   r   r   #googlecloudsdk.api_lib.functions.v1r   r   r   googlecloudsdk.corer	   googlecloudsdk.core.consoler
   r#    r$   r"   <module>r+      s(    O &  ' : : 4 # 2$r$   