
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSS.r	\R                  \R                  " \R                  R                  \R                  R                  5       " S	 S
\R                  5      5       5       r\	\l        g)z''workbench instances rollback' command.    )	instances)util)base)flagsz.
        Rolls back a workbench instance.
    z
    To rollback an instance, run:

        $ {command} example-instance target-snapshot=projects/example-project/global/snapshots/aorlbjvpavvf --location=us-central1-a
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Rollback%   z Rolls back a workbench instance.c                 0    [         R                  " U 5        g)zUpgrade flags for this command.N)r   AddRollbackInstanceFlags)parsers    +lib/surface/workbench/instances/rollback.pyArgsRollback.Args*   s     
""6*    c                 <   U R                  5       n[        R                  " U5      n[        R                  " U5      nUR                  nUR                  [        R                  " X5      5      n[        R                  " UUUU[        R                  R                  S9$ )N)operation_type)ReleaseTrackr   	GetClientGetMessagesprojects_locations_instancesr
   instance_utilCreateInstanceRollbackRequest	HandleLROOperationTypeROLLBACK)selfargsrelease_trackclientmessagesinstance_service	operations          r   RunRollback.Run/   s    %%'M^^M*F.H:: ))33DCEI""$22;;= =r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r%   __static_attributes__r'   r   r   r
   r
   %   s     )+ +=r   r
   N)r,    googlecloudsdk.api_lib.workbenchr   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.workbenchr   DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   GABETACommandr
   detailed_helpr'   r   r   <module>r9      s    . H 1 ( 6		 D%%(($*;*;*@*@A=t|| = B =. ' r   