
    	                         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
  SS	KJr   " S
 S\R                  5      rSSS.\l        g)z('error-reporting events delete' command.    )absolute_import)division)unicode_literals)base)log)
properties)	resources)
console_ioc                       \ rS rSrSrS rSrg)Delete   z(Deletes all error events of the project.c                 ,   U R                   S   n[        R                  R                  R                  R                  SS9nUR                  n[        R                  " SU-  SS9  [        R                  R                  SUS9nUR                  R                  UR                  UR                  5       S95        [         R"                  R%                  S	5        [         R"                  R%                  5         [         R"                  R%                  S
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.
"clouderrorreporting_client_v1beta1T)requiredz*Really delete all events for project '%s'?)cancel_on_nozclouderrorreporting.projects)	projectId)projectNamez-All error events in the project were deleted.zNIt may take several minutes until the deleted error events stop being visible.N)contextr   VALUEScoreprojectGetMESSAGES_MODULEr
   PromptContinuer	   REGISTRYCreateprojectsDeleteEvents.ClouderrorreportingProjectsDeleteEventsRequestRelativeNamer   statusPrint)selfargsclientr   messagesproject_refs         ,lib/surface/error_reporting/events/delete.pyRun
Delete.Run    s     \\>?F$$,,00$0?G%%H6@ $$++,J6= , ?K
OO  ??#002 	@ 	45 JJDEJJJJ D E     N)__name__
__module____qualname____firstlineno____doc__r)   __static_attributes__r,   r+   r(   r   r      s    0Er+   r   a7          {index}
       All error events which are stored for the given project are deleted and
       the error counters are reset to zero. If you're subscribed to error
       notifications for the project, then you receive notifications of the
       reoccurrence of errors that were previously resolved.
    z>        To delete all errors, run:

          $ {command}
    )DESCRIPTIONEXAMPLESN)r1   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.corer   r   r	   googlecloudsdk.core.consoler
   DeleteCommandr   detailed_helpr,   r+   r(   <module>r;      sJ     / &  ' ( # * ) 2ET E< r+   