
    ~                     P   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 ddlmZ  ej"                  ej$                  j&                  ej$                  j(                  ej$                  j*                         G d dej,                               Zy)z1`gcloud certificate-manager maps delete` command.    )absolute_import)division)unicode_literals)certificate_maps)base)flags)resource_args)util)log)
console_ioc                   &    e Zd ZdZed        Zd Zy)DeletezDelete a certificate map.

  Delete a certificate map resource.

  ## EXAMPLES

  To delete the certificate map with name simple-map, run:

    $ {command} simple-map
  c                 Z    t        j                  | d       t        j                  |        y )Nz	to delete)r	   AddCertificateMapResourceArgr   AddAsyncFlagToParser)parsers    .lib/surface/certificate_manager/maps/delete.pyArgszDelete.Args,   s     ..v{C	v&    c                    t        j                         }|j                  j                  j	                         }t        j                  dj                  |j                        dd       |j                  |      }t        j                  ||j                        }t        j                  |j                         d|j                         |S )Nz,You are about to delete certificate map '{}'T)throw_if_unattendedcancel_on_no)is_asyncmap)r   CertificateMapClientCONCEPTSr   Parser   PromptContinueformatcertificateMapsIdr   r
   WaitForOperationasync_r   DeletedResourceName)selfargsclientmap_refresponses        r   Runz
Delete.Run1   s    224Fmm%%'G8??%%	' 	 }}W%H$$XDHDOr   N)__name__
__module____qualname____doc__staticmethodr   r*    r   r   r   r      s     	 ' 'r   r   N)r.   
__future__r   r   r   *googlecloudsdk.api_lib.certificate_managerr   googlecloudsdk.callioper   .googlecloudsdk.command_lib.certificate_managerr   r	   r
   googlecloudsdk.corer   googlecloudsdk.core.consoler   ReleaseTracksReleaseTrackALPHABETAGADeleteCommandr   r0   r   r   <module>r=      s    8 &  ' G ( @ H ? # 2 D%%++T->->-C-C%%((*T *r   