
                             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                   " S	 S
\R                  5      5       rg)z!'logging buckets delete' command.    )absolute_import)division)unicode_literals)util)base)log)
console_ioc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   zDelete a bucket.

## EXAMPLES

To delete bucket 'my-bucket' in location 'global', run:

  $ {command} my-bucket --location=global
c                     U R                  SSS9  [        R                  " U SS5        [        R                  " U S5        U R                  R                  S5        g)z Register flags for this command.	BUCKET_IDzID of the bucket to delete.)helpTzLocation of the bucket.zbucket to deleteN)add_argumentr   AddBucketLocationArgAddParentArgsdisplay_infoAddCacheUpdater)parsers    %lib/surface/logging/buckets/delete.pyArgsDelete.Args'   sX     7  9/1v12
''-    c                    [         R                  " SUR                  -  SS9  [        R                  " 5       R
                  R                  [        R                  " 5       R                  [        R                  " [        R                  " [        R                  " U5      SUR                  5      SUR                  5      S95        [        R                  " UR                  5        g)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.
z\Really delete bucket [%s]? (You can undelete it within 7 days if you change your mind later)T)cancel_on_no	locationsbuckets)nameN)r	   PromptContinuer   r   	GetClientprojects_locations_bucketsr   GetMessages,LoggingProjectsLocationsBucketsDeleteRequestCreateResourceNameGetParentFromArgslocationr   DeletedResource)selfargss     r   Run
Delete.Run1   s     	"$(NN	3
 	NN//66GG((''**40+t}}N4>>+ 	H 	,- 'r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r*   __static_attributes__r,   r   r   r   r      s      . .(r   r   N)r1   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   googlecloudsdk.corer   googlecloudsdk.core.consoler	   UniverseCompatibleDeleteCommandr   r,   r   r   <module>r;      sF     ( &  ' / ( # 2 &(T &( &(r   