
                             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
  ej                  ej                  j                        ej                   G d d	ej                                      Zy
)z(Command to cancel an insights operation.    )absolute_import)division)unicode_literals)insights_api)base)logc                   0    e Zd ZdZdddZed        Zd Zy)CancelzCancel an insights operation.z      Cancel an insights operation. Since operations are asynchronous, this
      request is best effort and may fail in cases such as when the operation
      is already complete.
      z      To cancel the operation "12345" in "us-central1" for the project
      "my-project", run:

        $ {command} projects/my-project/locations/us-central1/operations/12345
      )DESCRIPTIONEXAMPLESc                 *    | j                  dd       y )Noperation_namez_The operation name in the format "projects/PROJECT/locations/LOCATION/operations/OPERATION_ID".)help)add_argument)parsers    1lib/surface/storage/insights/operations/cancel.pyArgszCancel.Args-   s    
N      c                     t        j                         j                  |j                         t        j
                  j                  dj                  |j                               y )NzSent cancel request for {})r   InsightsApicancel_operationr   r   statusPrintformat)selfargss     r   Runz
Cancel.Run7   sC    //0C0CDJJ1889L9LMNr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r
   r
      s2     &


-  Or   r
   N)r!   
__future__r   r   r   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   googlecloudsdk.corer   ReleaseTracksReleaseTrackALPHADefaultUniverseOnlyCommandr
   r$   r   r   <module>r.      se    / &  ' 7 ( # D%%++,OT\\ O  -Or   