
    
                        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	  \R                  " \R                  R                  \R                  R                  5      \R                   " S S\R                  5      5       5       rg	)
zCancel rollout command.    )base_classes)base)concepts)concept_parsers)presentation_specsc                   :    \ rS rSrSrSSSS.r\S 5       rS rSr	g	)
Cancel   z&Cancel Google Compute Engine rollouts.z'Cancel a Google Compute Engine rollout.zT
    To cancel a rollout named 'my-rollout', run:

      $ {command} my-rollout
    )briefDESCRIPTIONEXAMPLESc           	         [         R                  " SS[         R                  " SSS9[         R                  SS9n[        R
                  " SUSS	S
9n[        R                  " U/5      R                  U 5        U R                  SSSSS9  g )Nzcompute.rolloutsrolloutnamezName of rollout to cancel.)r   	help_textbeta)resource_namer   projectapi_versionzName of the rollout to cancel.T)requiredz
--rollback
store_trueFz
        If true, then the ongoing rollout must be rolled back. Else, just cancel
        the rollout without taking any further actions.
        )actiondefaulthelp)
r   ResourceSpec ResourceParameterAttributeConfig DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   ResourcePresentationSpecr   ConceptParserAddToParseradd_argument)parserrollout_resource_specpresentation_specs      &lib/surface/compute/rollouts/cancel.pyArgsCancel.Args*   s    $1199#?
 99 +CC(	 !!#4"56BB6J
	      c                    [         R                  " U R                  5       5      nUR                  nUR                  R
                  nUR                  R                  nUR                  R                  R                  5       nUR                  UR                  UR                  5       UR                  S9nUR                  U5      $ )N)r   r   rollback)r   ComputeApiHolderReleaseTrackclientapitools_clientrolloutsmessagesCONCEPTSr   ParseComputeRolloutsCancelRequestr   Namer*   r	   )selfargsholderr-   servicer0   rollout_refrequests           r%   Run
Cancel.RunF   s    **4+<+<+>?F]]F$$--G}}%%H--$$**,K33##  " 4 G >>'""r(    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr&   r;   __static_attributes__r=   r(   r%   r	   r	      s4     / 9>	
-  6#r(   r	   N)rB   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper    googlecloudsdk.calliope.conceptsr   (googlecloudsdk.command_lib.util.conceptsr   r   ReleaseTracksr,   ALPHABETAUniverseCompatibleCommandr	   r=   r(   r%   <module>rO      sn     8 ( 5 D G D%%++T->->-C-CD8#T\\ 8#  E8#r(   