
    #                        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  ej                  ej                   j"                         G d	 d
ej$                  e	j&                               Z ej                  ej                   j*                         G d de             Z ej                  ej                   j.                         G d de             Zy)z Deletes a Google Cloud Function.    )absolute_import)division)unicode_literals)base)flags)util)commandc                   ,    e Zd ZdZed        Zd Zd Zy)DeleteDelete a Google Cloud Function.c                     t        j                  | d       | j                  j                  d       t        j                  | d       y)z Register flags for this command.z	to deleteNT)hidden)r   AddFunctionResourceArgdisplay_infoAddCacheUpdaterAddGen2Flag)parsers    lib/surface/functions/delete.pyArgszDelete.Args!   s8     
  5
''-	fT*    c                 ,    t        j                  |      S N)
command_v1Runselfargss     r   _RunV1zDelete._RunV1)   s    >>$r   c                 J    t        j                  || j                               S r   )
command_v2r   ReleaseTrackr   s     r   _RunV2zDelete._RunV2,   s    >>$ 1 1 344r   N)__name__
__module____qualname____doc__staticmethodr   r   r"    r   r   r   r      s!    '+ + 5r   r   c                       e Zd ZdZy)
DeleteBetar   Nr#   r$   r%   r&   r(   r   r   r*   r*   0       'r   r*   c                       e Zd ZdZy)DeleteAlphar   Nr+   r(   r   r   r.   r.   5   r,   r   r.   N)r&   
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.functionsr   r   .googlecloudsdk.command_lib.functions.v1.deleter	   r   .googlecloudsdk.command_lib.functions.v2.deleter    ReleaseTracksr!   GADeleteCommandFunctionResourceCommandr   BETAr*   ALPHAr.   r(   r   r   <module>r:      s     ' &  ' ( 6 5 P P D%%(()5T!=!= 5 *5$ D%%**+( ( ,( D%%++,(* ( -(r   