
                            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 get-config' command.    )	instances)util)base)flagszB
        Restores the workbench instance to a snapshot state.
    z
    For valid configurations, run:

        $ {command} example-instance --snapshot-project=example-project --snapshot=example-snapshot --location=us-west1-a
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Restore%   z4Restores the workbench instance to a snapshot state.c                 0    [         R                  " U 5        g)z Register flags for this command.N)r   AddRestoreInstanceFlags)parsers    *lib/surface/workbench/instances/restore.pyArgsRestore.Args*   s     
!!&)    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CreateInstanceRestoreRequest	HandleLROOperationTypeRESTORE)selfargsrelease_trackclientmessagesinstance_service	operations          r   RunRestore.Run/   s    %%'M^^M*F.H:: ((224BD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RestoreCommandr
   detailed_helpr'   r   r   <module>r9      s    0 H 1 ( 6		 D%%(($*;*;*@*@A<d!! < B <. & r   