
                         B   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r
  SSKJr  SSKJr  \R                  " \R                  R                  \R                  R                   \R                  R"                  5       " S S	\R$                  5      5       rS
SSS.\l        g)z&Command for deleting SSL certificates.    )base_classes)utils)base)flags)scope)ssl_certificates_utilsc                   2    \ rS rSrSrSr\S 5       rS rSr	g)Delete   zDelete Compute Engine SSL certificates.

*{command}* deletes one or more Compute Engine SSL certificate resources.
SSL certificate resources can only be deleted when no other resources (for
example, target HTTPS proxies) refer to them.
Nc                     [         R                  " SS9[        l        [        R                  R	                  U SS9  U R
                  R                  [         R                  5        g )NT)pluraldelete)operation_type)r   SslCertificateArgumentr
   SSL_CERTIFICATE_ARGAddArgumentdisplay_infoAddCacheUpdaterSslCertificatesCompleterBeta)parsers    .lib/surface/compute/ssl_certificates/delete.pyArgsDelete.Args'   sH    !&!=!=T!JF
**6(*K
''(J(JK    c                    [         R                  " U R                  5       5      nUR                  n[        R
                  R                  UUR                  [        R                  R                  [        R                  " U5      S9n[        R                  " U5        / nU H  n[        R                   " U5      (       aR  UR#                  UR$                  R&                  SUR(                  R*                  " S0 UR-                  5       D645        Mp  UR#                  UR$                  R.                  SUR(                  R0                  " S0 UR-                  5       D645        M     UR3                  U5      $ )N)default_scopescope_listerr
    )r   ComputeApiHolderReleaseTrackclientr
   r   ResolveAsResource	resourcescompute_scope	ScopeEnumGLOBALcompute_flagsGetDefaultScopeListerr   PromptForDeletionr   IsRegionalSslCertificatesRefappendapitools_clientregionSslCertificatesmessages)ComputeRegionSslCertificatesDeleteRequestAsDictsslCertificates#ComputeSslCertificatesDeleteRequestMakeRequests)selfargsholderr!   ssl_certificate_refsrequestsssl_certificate_refs          r   Run
Delete.Run-   s@   **4+<+<+>?F]]F!55GG#--44"88@	 H B 
01H3		<	<

 
##998__FF 1&--/12	3
 	//??LL =299;=> 	?  4 x((r   r   )
__name__
__module____qualname____firstlineno____doc__r   staticmethodr   r:   __static_attributes__r   r   r   r
   r
      s(     L L
)r   r
   z&Delete Compute Engine SSL certificatesz        *{command}* deletes one or more Compute Engine SSL certificate
        resources. SSL certificates can only be deleted when no other resources
        (for example, target HTTPS proxies) refer to them.
        z        To delete a certificate resource 'my-cert', run:

            $ {command} my-cert

        To delete certificate resources 'my-cert1', 'my-cert2' and 'my-cert3',
        run:

            $ {command} my-cert1 my-cert2 my-cert3
        )briefDESCRIPTIONEXAMPLESN)r@   googlecloudsdk.api_lib.computer   r   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r'   r   r$   3googlecloudsdk.command_lib.compute.ssl_certificatesr   ReleaseTracksr    ALPHABETAGADeleteCommandr
   detailed_helpr   r   r   <module>rP      s    - 8 0 ( E E E V D%%++T->->-C-C%%((*))T ))*))\ 	1			 r   