
    	                         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 ej                   G d	 d
ej                               Zy)z 'logging scopes delete' command.    )absolute_import)division)unicode_literals)util)base)log)
console_ioc                   &    e Zd ZdZed        Zd Zy)Deletez^Delete a log scope.

  ## EXAMPLES

  To delete a log scope, run:

    $ {command} my-scope
  c                     | j                  dd       t        j                  | dd       | j                  j	                  d       y)z Register flags for this command.LOG_SCOPE_IDzID of the log scope to delete.)helpzlog scope to deleteTexclude_billing_accountN)add_argumentr   AddParentArgsdisplay_infoAddCacheUpdater)parsers    $lib/surface/logging/scopes/delete.pyArgszDelete.Args'   sD     -MN%t ''-    c                    t        j                  d|j                  z  d       t        j                         j
                  j                  t        j                         j                  t        j                  t        j                  t        j                  |d      dd      d|j                                     t        j                  |j                         y	)
zThis is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.
    zEReally delete log scope [%s]? (You can not recover it after deletion)T)cancel_on_nor   	locationsglobal	logScopes)nameN)r	   PromptContinuer   r   	GetClientprojects_locations_logScopesr   GetMessages.LoggingProjectsLocationsLogScopesDeleteRequestCreateResourceNameGetParentFromArgsr   DeletedResource)selfargss     r   Runz
Delete.Run0   s     O


	 	NN1188II((''**4N
 !! 	J 
	
 ))*r   N)__name__
__module____qualname____doc__staticmethodr   r)    r   r   r   r      s      . .+r   r   N)r-   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   googlecloudsdk.corer   googlecloudsdk.core.consoler	   UniverseCompatibleDeleteCommandr   r/   r   r   <module>r7      sF     ' &  ' / ( # 2 -+T -+ -+r   