
                         x   S r SSKJr  SSKJr  SSKJr  SSK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*                  R0                  5       " S S\	R2                  5      5       rSSS.\l        g)z3Command for Managed Microsoft AD operations cancel.    )absolute_import)division)unicode_literalsN)
exceptions)base)display)flags)util)log)
console_io)resource_printerc                   .    \ rS rSrSr\S 5       rS rSrg)Cancel    (Cancel a Managed Microsoft AD operation.c                 2    [         R                  " U S5        g)z Register flags for this command.z	to cancelN)r	   AddOperationResourceArg)parsers    1lib/surface/active_directory/operations/cancel.pyArgsCancel.Args&   s     
!!&+6    c                 0   UR                   R                  R                  5       n[        R                  " U5      n[        R
                  " U5      nUR                  UR                  5       S9nUR                  R                  U5      n[        R                  " 5       n[        R                  " X5      R                  5       n[        R                   " XhUS9  ["        R$                  " SR'                  UR)                  5       5      S9(       d  [*        R,                  " S5      eUR/                  UR                  5       S9n	UR                  R1                  U	5        [2        R4                  R7                  SR'                  UR                  5       5      5        g )N)name)outz"{}
This operation will be canceled)messagezCancel aborted by user.zCanceled [{0}].
)CONCEPTSr   Parser
   GetClientForResourceGetMessagesForResource<ManagedidentitiesProjectsLocationsGlobalOperationsGetRequestRelativeName$projects_locations_global_operationsGetioStringIOr   	Displayer	GetFormatr   Printr   PromptContinueformatgetvaluer   ActiveDirectoryError?ManagedidentitiesProjectsLocationsGlobalOperationsCancelRequestr   r   statuswrite)
selfargsresourceclientmessagesget_reqopoperation_stringprint_format
cancel_reqs
             r   Run
Cancel.Run+   sK   }}!!'')H&&x0F**84HMM&&( 	N 	*  
	4	4	8	8	AB{{}$$T0::<L21AB$$5<<%%')* ++,EFFPP&&( 	Q 	*  //66zBJJ(//0E0E0GHIr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r;   __static_attributes__r=   r   r   r   r       s     17 7Jr   r   r   z
        The following command cancels an operation called
        `operation-1484002552235-425b144f8c3f8-81aa4b49-0830d1e9`:

          $ {command} operation-1484002552235-425b144f8c3f8-81aa4b49-0830d1e9
        )briefEXAMPLES)rB   
__future__r   r   r   r%   'googlecloudsdk.api_lib.active_directoryr   googlecloudsdk.callioper   r   +googlecloudsdk.command_lib.active_directoryr	   r
   googlecloudsdk.corer   googlecloudsdk.core.consoler   googlecloudsdk.core.resourcer   ReleaseTracksReleaseTrackALPHABETAGACommandr   detailed_helpr=   r   r   <module>rU      s    : &  ' 	 > ( + = < # 2 9 D%%++%%**%%((*JT\\ J*JD 	3		
 r   