
    q
                        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
 ddlm
Z ddlmZ  ej                  ej                   j"                         G d	 d
ej$                               Z ej                  ej                   j(                         G d de             Z ej                  ej                   j,                         G d de             Zddde_        y)z"Command for cancelling operations.    )absolute_import)division)unicode_literals)filestore_client)base)flags)concept_parsersc                   >    e Zd ZdZej
                  Zed        Zd Z	y)CancelCancel a Filestore operation.c                     t        j                  t        j                  d      g      j	                  |        t        j                  |        | j                  j                  d       y )NzThe operation to cancel.default)	r	   ConceptParserr   GetOperationPresentationSpecAddToParserinstances_flagsAddLocationArgdisplay_info	AddFormat)parsers    *lib/surface/filestore/operations/cancel.pyArgszCancel.Args"   sP    !!**+EF# {6""6*
!!),    c                     |j                   j                  j                         }t        j                  | j
                        }|j                  |      S )zRun the cancel command.)version)CONCEPTS	operationParser   FilestoreClient_API_VERSIONCancelOperation)selfargsoperation_refclients       r   Runz
Cancel.Run*   sA    MM++113M--d6G6GHF!!-00r   N)
__name__
__module____qualname____doc__r   V1_API_VERSIONr    staticmethodr   r&    r   r   r   r      s'    %!00,- -1r   r   c                   (    e Zd ZdZej
                  Zy)
CancelBetar   N)r'   r(   r)   r*   r   BETA_API_VERSIONr    r-   r   r   r/   r/   1   s    %!22,r   r/   c                   (    e Zd ZdZej
                  Zy)CancelAlphar   N)r'   r(   r)   r*   r   ALPHA_API_VERSIONr    r-   r   r   r2   r2   8   s    %!33,r   r2   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   BETAr/   ALPHAr2   detailed_helpr-   r   r   <module>rC      s    ) &  ' = ( 6 S D D%%(()1T\\ 1 *1( D%%**+3 3 ,3 D%%++,4& 4 -4			 r   