| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/surface/logging/buckets/__pycache__/ |
Upload File : |
�
��� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ej G d� dej
� � � � Zd S )
z#'logging buckets undelete' command.� )�absolute_import)�division)�unicode_literals)�util)�basec �. � e Zd ZdZed� � � Zd� ZdS )�Undeletez�Undelete a bucket.
## EXAMPLES
To undelete bucket 'my-bucket' in location 'global', run:
$ {command} my-bucket --location=global
c � � | � dd�� � t j | dd� � t j | d� � dS )z Register flags for this command.� BUCKET_IDzID of the bucket to undelete.)�helpTzLocation of the bucket.zbucket to undeleteN)�add_argumentr �AddBucketLocationArg�
AddParentArgs)�parsers �'lib/surface/logging/buckets/undelete.py�Argsz
Undelete.Args% s^ � � ����9� � ;� ;� ;�����/�1� 1� 1���v�3�4�4�4�4�4� c �. � t j � � j � t j � � � t j t j t j |� � d|j � � d|j � � �� � � � dS )z�This is what gets called when the user runs this command.
Args:
args: an argparse namespace. All the arguments that were provided to this
command invocation.
� locations�buckets)�nameN)
r � GetClient�projects_locations_bucketsr �GetMessages�.LoggingProjectsLocationsBucketsUndeleteRequest�CreateResourceName�GetParentFromArgs�locationr )�self�argss r �RunzUndelete.Run. s� � � �N���/�8�8�����I�I��(��'��*�4�0�0�+�t�}�N� N��4�>�+� +� J� ,� ,�-� -� -� -� -r N)�__name__�
__module__�__qualname__�__doc__�staticmethodr r! � r r r r sH � � � � � �� � �5� 5� �<�5�-� -� -� -� -r r N)r% �
__future__r r r �googlecloudsdk.api_lib.loggingr �googlecloudsdk.callioper �UniverseCompatible�RestoreCommandr r'