File: //usr/lib/google-cloud-sdk/lib/surface/projects/__pycache__/undelete.cpython-312.pyc
�
��` � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddl mZ dd l
mZ G d
� dej � Zy)
zCommand to undelete a project.� )�absolute_import)�division)�unicode_literals)�projects_api)�base)�flags)�util)�logc �B � e Zd ZdZdej
iZed� � Zd� Z y)�Undeletea� Undelete a project.
Undeletes the project with the given project ID.
This command can fail for the following reasons:
* There is no project with the given ID.
* The active account does not have Owner or Editor permissions for the
given project.
## EXAMPLES
The following command undeletes the project with the ID `example-foo-bar-1`:
$ {command} example-foo-bar-1
## SEE ALSO
{see_also}
�see_alsoc �L � t j d� j | � y )N�undelete)r �GetProjectIDNumberFlag�AddToParser)�parsers � lib/surface/projects/undelete.py�Argsz
Undelete.Args4 s � � � � ��,�8�8��@� c � � t j |j � }t j |� }t j |d�� |S )N�project)�kind)�command_lib_util�ParseProject�idr r r
�RestoredResource)�self�args�project_ref�results r �RunzUndelete.Run8 s; � �"�/�/����8�K�
�
"�
"�;�
/�F�����9�5��Mr N)
�__name__�
__module__�__qualname__�__doc__r �!CREATE_DELETE_IN_CONSOLE_SEE_ALSO�
detailed_help�staticmethodr r! � r r r r s2 � ��( �u�F�F�G�-��A� �A�r r N)r% �
__future__r r r �+googlecloudsdk.api_lib.cloudresourcemanagerr �googlecloudsdk.callioper �#googlecloudsdk.command_lib.projectsr r r �googlecloudsdk.corer
�
CreateCommandr r) r r �<module>r0 s4 �� %� &� � '� D� (� 5� H� #��t�!�!� r