
                             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  G d	 d
e	j                        Zddde_        y)z(Command for deleting target SSL proxies.    )absolute_import)division)unicode_literals)base_classes)utils)base)flagsc                   *    e Zd ZdZdZed        Zd Zy)DeletezDelete target SSL proxy.Nc                     t        j                  d      t        _        t        j                  j	                  | d       | j
                  j                  t         j                         y )NT)pluraldelete)operation_type)r	   TargetSslProxyArgumentr   TARGET_SSL_PROXY_ARGAddArgumentdisplay_infoAddCacheUpdaterTargetSslProxiesCompleter)parsers    0lib/surface/compute/target_ssl_proxies/delete.pyArgszDelete.Args    sH    "'">">d"KF
++F8+L
''(G(GH    c           
      $   t        j                  | j                               }| j                  j	                  ||j
                        }t        j                  |       |j                  j                  }|j                  j                  }g }|D ]I  }|j                  |j                  d|j                  |j                  |j                               f       K g }|j                  j!                  ||      }	|rt        j"                  |       |	S )Nr   )projecttargetSslProxy)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   PromptForDeletionclientapitools_clientmessagesappendtargetSslProxies$ComputeTargetSslProxiesDeleteRequestr   NameMakeRequestsRaiseToolException)
selfargsholderrefsr"   r$   requestsreferrorsr    s
             r   Runz
Delete.Run&   s    **4+<+<+>?F$$66tV=M=MND	D!]]**F}}%%HHoo""88{{388: 9 ?@A  F**8V<Iv&r   )__name__
__module____qualname____doc__r   staticmethodr   r2    r   r   r   r      s$     I I
r   r   zDelete target SSL proxieszD        *{command}* deletes one or more target SSL proxies.
        )briefDESCRIPTIONN)r6   
__future__r   r   r   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   5googlecloudsdk.command_lib.compute.target_ssl_proxiesr	   DeleteCommandr   detailed_helpr8   r   r   <module>rA      sF    / &  ' 7 0 ( G T  H ) r   