
    	                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej                   ej                  dd	      ej                   G d
 dej                                             Zy)zCThe command to restore a backup of a Google Cloud CLI installation.    )absolute_import)division)unicode_literals)base)utilFa  Starting with release 473.0.0, the Google Cloud CLI updates in place instead of making a backup copy of the installation directory when running `gcloud components update`, `install`, and `remove` commands (this reduces the time taken by those operations). Consequently, this command has no backup to restore in those cases. Instead, to restore your installation to a previous version, run `gcloud components update --version=<previous_version>`, or install the previous version directly from https://cloud.google.com/sdk/docs/install.)
is_removedwarningc                   &    e Zd ZdZed        Zd Zy)Restorea  Restore the Google Cloud CLI installation to its state before a reinstall.

  This is an undo operation, which restores the Google Cloud CLI installation on
  the local workstation to the state it was in just before the most recent
  `{parent_command} reinstall` command. A `restore` command does not undo a
  previous `restore` command.

  ## EXAMPLES
  To restore the Google Cloud CLI installation to its state before reinstalling,
  run:

    $ {command}
  c                      y )N )_s    !lib/surface/components/restore.pyArgszRestore.Args9   s        c                 N    t        j                  |      }|j                          y)zRuns the restore command.N)r   GetUpdateManagerr   )selfargsupdate_managers      r   RunzRestore.Run=   s    **40Nr   N)__name__
__module____qualname____doc__staticmethodr   r   r   r   r   r   r      s     " 	 	r   r   N)r   
__future__r   r   r   googlecloudsdk.callioper   %googlecloudsdk.command_lib.componentsr   Hidden	DeprecateUniverseCompatibleSilentCommandr   r   r   r   <module>r$      sj     J &  ' ( 6 	6 d      r   