
                         ,   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  SSK	J
r
  SSKJr  \R                  " \R                  R                  \R                  R                   \R                  R"                  5       " S	 S
\R$                  5      5       rg)zCommand to undelete a folder.    )absolute_import)division)unicode_literals)folders)base)flags)logc                   .    \ rS rSrSr\S 5       rS rSrg)Undelete   a  Undelete a folder.

Undeletes the folder with the given folder ID.

This command can fail for the following reasons:
* There is no folder with the given ID.
* The active account does not have Owner or Editor permissions for the
  given folder.
* When the folder to be undeleted has the same display name as an active
  folder under this folder's parent.

## EXAMPLES

The following command undeletes the folder with the ID `3589215982`:

  $ {command} 3589215982
c                 N    [         R                  " S5      R                  U 5        g )Nzyou want to undelete.)r   FolderIdArgAddToParser)parsers    0lib/surface/resource_manager/folders/undelete.pyArgsUndelete.Args0   s    	-.::6B    c                     [         R                  " 5       n[         R                  " 5       nUR                  UR	                  UR
                  S95      n[        R                  " U5        g )N)	foldersId)r   FoldersServiceFoldersMessagesr   *CloudresourcemanagerFoldersUndeleteRequestidr	   RestoredResource)selfargsservicemessagesrestoreds        r   RunUndelete.Run4   sX    $$&G&&(H;;gg 	< 	 H "r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r!   __static_attributes__r#   r   r   r   r      s"    $ C C#r   r   N)r(   
__future__r   r   r   'googlecloudsdk.api_lib.resource_managerr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.resource_managerr   googlecloudsdk.corer	   ReleaseTracksReleaseTrackALPHABETAGACreateCommandr   r#   r   r   <module>r6      sv    $ &  ' ; ( = # D%%++T->->-C-C%%((*#t!! #*#r   