
    	                     8   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                   \R                  R"                  \R                  R$                  5       " S
 S\R&                  5      5       rg)Cancels an AlloyDB operation.    )absolute_import)division)unicode_literals)api_util)base)flags)log)
propertiesc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
Cancel   r   z{description}zm        To cancel an operation, run:

          $ {command} operation-123456789 --region=us-central1
        )DESCRIPTIONEXAMPLESc                 \    [         R                  " U 5        [         R                  " U 5        g)zmSpecifies additional command flags.

Args:
  parser: argparse.Parser: Parser object for command line inputs.
N)r	   	AddRegionAddOperation)parsers    (lib/surface/alloydb/operations/cancel.pyArgsCancel.Args-   s     
OOF	v    c                    SUl         [        R                  " U R                  5       5      nUR                  R                  S[        R                  R                  R                  R                  UR                  UR                  S9nUR                  R                  UR                  5       S9nUR                   R"                  R%                  U5        [&        R(                  R+                  S5        g)zConstructs and sends request.

Args:
  args: argparse.Namespace, An object that contains the values for the
      arguments specified in the .Args() method.

Returns:
  ProcessHttpResponse of the request made.
defaultz%alloydb.projects.locations.operations)
projectsIdlocationsIdoperationsId)namezOperation cancelled.
N)formatr   AlloyDBClientReleaseTrackresource_parserCreater   VALUEScoreproject	GetOrFailregion	operationalloydb_messages/AlloydbProjectsLocationsOperationsCancelRequestRelativeNamealloydb_clientprojects_locations_operationsr   r
   statuswrite)selfargsclientoperation_refreqs        r   Run
Cancel.Run7   s     DK##D$5$5$78F**11/$$))11;;KK^^	 2 %M
 
!
!
Q
Q'') R +C
77>>sCJJ-.r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r6   __static_attributes__r8   r   r   r   r      s1     & 		-  /r   r   N)r=   
__future__r   r   r   googlecloudsdk.api_lib.alloydbr   googlecloudsdk.callioper   "googlecloudsdk.command_lib.alloydbr	   googlecloudsdk.corer
   r   ReleaseTracksr!   ALPHABETAGACommandr   r8   r   r   <module>rK      sy    $ '  ' 3 ( 4 # * D%%++T->->-C-C%%((*,/T\\ ,/*,/r   