
    q
                        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  \R                  " \R                   R"                  5       " S	 S
\R$                  5      5       r\R                  " \R                   R(                  5       " S S\5      5       r\R                  " \R                   R,                  5       " S S\5      5       rSSS.\l        g)z"Command for cancelling operations.    )absolute_import)division)unicode_literals)filestore_client)base)flags)concept_parsersc                   F    \ rS rSrSr\R                  r\S 5       r	S r
Srg)Cancel   Cancel a Filestore operation.c                     [         R                  " [        R                  " S5      /5      R	                  U 5        [
        R                  " U 5        U R                  R                  S5        g )NzThe operation to cancel.default)	r	   ConceptParserr   GetOperationPresentationSpecAddToParserinstances_flagsAddLocationArgdisplay_info	AddFormat)parsers    *lib/surface/filestore/operations/cancel.pyArgsCancel.Args"   sP    !!**+EF# {6""6*
!!),    c                     UR                   R                  R                  5       n[        R                  " U R
                  S9nUR                  U5      $ )zRun the cancel command.)version)CONCEPTS	operationParser   FilestoreClient_API_VERSIONCancelOperation)selfargsoperation_refclients       r   Run
Cancel.Run*   sA    MM++113M--d6G6GHF!!-00r    N)__name__
__module____qualname____firstlineno____doc__r   V1_API_VERSIONr"   staticmethodr   r(   __static_attributes__r*   r   r   r   r      s'    %!00,- -1r   r   c                   0    \ rS rSrSr\R                  rSrg)
CancelBeta1   r   r*   N)	r+   r,   r-   r.   r/   r   BETA_API_VERSIONr"   r2   r*   r   r   r4   r4   1   s    %!22,r   r4   c                   0    \ rS rSrSr\R                  rSrg)CancelAlpha8   r   r*   N)	r+   r,   r-   r.   r/   r   ALPHA_API_VERSIONr"   r2   r*   r   r   r8   r8   8   s    %!33,r   r8   a          Cancels a Filestore operation. The server makes a best effort to cancel
        the operation, but success is not guaranteed. Clients can use the
        `filestore operations describe` command to check whether the
        cancellation succeeded or not.
zTo cancel a Filestore operation named ``NAME" in the ``us-central1-c" zone, run:

  $ {command} NAME --zone=us-central1-c

To cancel a Filestore operation named ``NAME" in the ``us-central1" region, run:

  $ {command} NAME --location=us-central1

)DESCRIPTIONEXAMPLESN)r/   
__future__r   r   r    googlecloudsdk.api_lib.filestorer   googlecloudsdk.callioper   $googlecloudsdk.command_lib.filestorer   .googlecloudsdk.command_lib.filestore.instancesr   (googlecloudsdk.command_lib.util.conceptsr	   ReleaseTracksReleaseTrackGACommandr   BETAr4   ALPHAr8   detailed_helpr*   r   r   <module>rJ      s    ) &  ' = ( 6 S D D%%(()1T\\ 1 *1( D%%**+3 3 ,3 D%%++,4& 4 -4			 r   