
    	                         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(Command for deleting HTTP health checks.    )absolute_import)division)unicode_literals)base_classes)utils)base)
completers)flagsc                   *    e Zd ZdZdZed        Zd Zy)DeletezeDelete HTTP health checks.

  *{command}* deletes one or more Compute Engine
  HTTP health checks.
  Nc                     t        j                  d      t        _        t        j                  j	                  | d       | j
                  j                  t        j                         y )NT)pluraldelete)operation_type)	r
   HttpHealthCheckArgumentr   HTTP_HEALTH_CHECK_ARGAddArgumentdisplay_infoAddCacheUpdaterr	   HealthChecksCompleter)parsers    0lib/surface/compute/http_health_checks/delete.pyArgszDelete.Args&   sH    #(#@#@#MF 
  ,,VH,M
''
(H(HI    c                    t        j                  | j                               }|j                  }t        j
                  j                  ||j                  t        j                  |            }t        j                  |       g }|D ]R  }|j                  |j                  j                  d |j                  j                   di |j#                         f       T |j%                  |      S )z7Issues requests necessary to delete HTTP Health Checks.)scope_listerr    )r   ComputeApiHolderReleaseTrackclientr   r   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListerr   PromptForDeletionappendapitools_clienthttpHealthChecksmessages$ComputeHttpHealthChecksDeleteRequestAsDictMakeRequests)selfargsholderr    http_health_check_refsrequestshttp_health_check_refs          r   Runz
Delete.Run,   s    **4+<+<+>?F]]F#99KK"88@ L B
 
23H!7oov-->>KvKK =299;=> ? "8
 x((r   )__name__
__module____qualname____doc__r   staticmethodr   r3   r   r   r   r   r      s(     J J
)r   r   N)r7   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer	   r
   r#   5googlecloudsdk.command_lib.compute.http_health_checksDeleteCommandr   r   r   r   <module>r?      s7    / &  ' 7 0 ( 9 E G!)T !)r   