
    	                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSS.r\R                   " S	 S
\R                  5      5       r\\l        g)z'logging views delete' command.    )util)arg_parsers)base)logz)
        Deletes a view on a bucket.
    zo
     To delete a view on a bucket, run:

        $ {command} my-view --bucket=my-bucket --location=global
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Delete'   zDelete a view.
  c                    U R                  SSS9  [        R                  " U SS5        [        R                  " U S5        U R                  SS[        R
                  " SS	5      S
S9  U R                  R                  S5        g)z Register flags for this command.VIEW_IDzID of the view to delete.)helpTzLocation of the bucket.zview to deletez--bucketz.+zmust be non-emptyzID of bucket)requiredtyper   N)add_argumentr   AddBucketLocationArgAddParentArgsr   RegexpValidatordisplay_infoAddCacheUpdater)parsers    #lib/surface/logging/views/delete.pyArgsDelete.Args,   s     3  5/1v/0
((0CD	  
 ''-    c                    [         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.
bucketsviews)nameN)r   	GetClient projects_locations_buckets_viewsr
   GetMessages1LoggingProjectsLocationsBucketsViewsDeleteRequestCreateResourceNameGetBucketLocationFromArgsbucketr   r   DeletedResource)selfargss     r   Run
Delete.Run;   s     	NN55<<LL((''2248)KK!")4<<9 	M 	:; %r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r*   __static_attributes__r,   r   r   r
   r
   '   s      . .&r   r
   N)r1   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   r   googlecloudsdk.corer   DETAILED_HELPUniverseCompatibleDeleteCommandr
   detailed_helpr,   r   r   <module>r;      s[     & 0 / ( #
		  &T  &  &F % r   