
                             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
  G d d	ej                        Zy
)z5Command for removing health checks from target pools.    )absolute_import)division)unicode_literals)base_classes)base)flagsc                   .    e Zd ZdZdZdZed        Zd Zy)RemoveHealthChecksac  Remove an HTTP health check from a target pool.

  *{command}* is used to remove an HTTP health check
  from a target pool. Health checks are used to determine
  the health status of instances in the target pool. For more
  information on health checks and load balancing, see
  [](https://cloud.google.com/compute/docs/load-balancing-and-autoscaling/)
  Nc                     t        j                  d      | _        | j                  j                  |       t	        j
                  d      | _        | j                  j                  |d       y )Nzremove fromz' from which to remove the health check.)help_suffixzremove health checks from)operation_type)http_health_check_flags$HttpHealthCheckArgumentForTargetPoolHEALTH_CHECK_ARGAddArgumentr   TargetPoolArgumentTARGET_POOL_ARG)clsparsers     8lib/surface/compute/target_pools/remove_health_checks.pyArgszRemoveHealthChecks.Args+   sh     	 DD	  $$V,22=?C##: $ <    c                 |   t        j                  | j                               }|j                  }| j                  j                  ||j                        }| j                  j                  ||j                  t        j                  |            }|j                  j                  |j                  |j                  |j                         |j                  j                  |j                  j!                  |j#                               g            }|j%                  |j&                  j(                  d|fg      S )N)scope_lister)healthCheck)healthChecks)regionproject
targetPool#targetPoolsRemoveHealthCheckRequestRemoveHealthCheck)r   ComputeApiHolderReleaseTrackclientr   ResolveAsResource	resourcesr   compute_flagsGetDefaultScopeListermessages*ComputeTargetPoolsRemoveHealthCheckRequestr   r   Name#TargetPoolsRemoveHealthCheckRequestHealthCheckReferenceSelfLinkMakeRequestsapitools_clienttargetPools)selfargsholderr$   http_health_check_reftarget_pool_refrequests          r   RunzRemoveHealthChecks.Run6   s2   **4+<+<+>?F]]F 11CCf  **<<"88@ = BO
 ooHH%%''"'')OO??$ooBB 5 > > @ C B C @ D I FG !7!7!C!C!4g!?  @ A Ar   )	__name__
__module____qualname____doc__r   r   classmethodr   r8    r   r   r
   r
      s,     /< <Ar   r
   N)r<   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r'   5googlecloudsdk.command_lib.compute.http_health_checksr   /googlecloudsdk.command_lib.compute.target_poolsSilentCommandr
   r>   r   r   <module>rF      s8     < &  ' 7 ( E& A.A++ .Ar   