
                             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  \R                   " S S\R                  5      5       rg	)
z#'logging buckets undelete' command.    )absolute_import)division)unicode_literals)util)basec                   .    \ rS rSrSr\S 5       rS rSrg)Undelete   zUndelete a bucket.

## EXAMPLES

To undelete 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        g)z Register flags for this command.	BUCKET_IDzID of the bucket to undelete.)helpTzLocation of the bucket.zbucket to undeleteN)add_argumentr   AddBucketLocationArgAddParentArgs)parsers    'lib/surface/logging/buckets/undelete.pyArgsUndelete.Args%   sD     9  ;/1v34    c                 H   [         R                  " 5       R                  R                  [         R                  " 5       R                  [         R                  " [         R                  " [         R                  " U5      SUR                  5      SUR                  5      S9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.
	locationsbuckets)nameN)
r   	GetClientprojects_locations_bucketsr	   GetMessages.LoggingProjectsLocationsBucketsUndeleteRequestCreateResourceNameGetParentFromArgslocationr   )selfargss     r   RunUndelete.Run.   sx     	NN//88II((''**40+t}}N4>>+ 	J 	,-r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r#   __static_attributes__r%   r   r   r	   r	      s      5 5-r   r	   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   UniverseCompatibleRestoreCommandr	   r%   r   r   <module>r2      s@     * &  ' / ( -t"" - -r   