403Webshell
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/firestore/databases/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/google-cloud-sdk/lib/surface/firestore/databases/__pycache__/restore.cpython-311.pyc
�

��z
���dZddlmZddlmZddlmZddlZddlmZddlm	Z	ddl
mZdd	l
mZ
dd
lmZe	je	je	jje	jje	jj��Gd�de	j������ZdS)
z/The gcloud Firestore databases restore command.�)�absolute_import)�division)�unicode_literalsN)�	databases)�base)�flags)�util)�
propertiesc�4�eZdZdZed���Zd�Zd�ZdS)�RestoreBetaaSRestores a Cloud Firestore database from a backup.

  ## EXAMPLES

  To restore a database from a backup.

      $ {command}
      --source-backup=projects/PROJECT_ID/locations/LOCATION_ID/backups/BACKUP_ID
      --destination-database=DATABASE_ID

  To restore to a CMEK-enabled database.

      $ {command}
      --source-backup=projects/PROJECT_ID/locations/LOCATION_ID/backups/BACKUP_ID
      --destination-database=DATABASE_ID
      --encryption-type=customer-managed-encryption
      --kms-key-name=projects/PROJECT_ID/locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/CRYPTO_KEY_ID
  c	���|�ddtdtjd�����|�ddtdtjd�����t	j|d	��dS)
Nz--source-backup�
SOURCE_BACKUPTa            The source backup to restore from.

            For example, to restore from backup `cf9f748a-7980-4703-b1a1-d1ffff591db0` in us-east1:

            $ {command} --source-backup=projects/PROJECT_ID/locations/us-east1/backups/cf9f748a-7980-4703-b1a1-d1ffff591db0
            )�metavar�type�required�helpz--destination-database�DESTINATION_DATABASEa,            Destination database to restore to. Destination database will be created in the same location as the source backup.

            This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
            with first character a letter and the last a letter or a number. Must
            not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.

            Using "(default)" database ID is also allowed.

            For example, to restore to database `testdb`:

            $ {command} --destination-database=testdb
            �backup)�add_argument�str�textwrap�dedentr�AddEncryptionConfigGroup)�cls�parsers  �*lib/surface/firestore/databases/restore.py�ArgszRestoreBeta.Args6s���
�����
��
�_����������� �&�
��
�_��������&
�"�6�8�4�4�4�4�4�c��tjjj�d���}tj||j|j|�	|����S)NT)r)
r
�VALUES�core�project�Getr�RestoreDatabase�
source_backup�destination_database�EncryptionConfig)�self�argsr"s   r�RunzRestoreBeta.RunZsV����$�,�0�0�$�0�?�?�G��$�����!����d�#�#�	��rc�*�tj|��S)N)�utils�ExtractEncryptionConfig)r(r)s  rr'zRestoreBeta.EncryptionConfigcs���(��.�.�.rN)�__name__�
__module__�__qualname__�__doc__�classmethodrr*r'�rrrrsX��������&�!5�!5��;�!5�F���/�/�/�/�/rr)r1�
__future__rrrr� googlecloudsdk.api_lib.firestorer�googlecloudsdk.callioper�$googlecloudsdk.command_lib.firestorerr	r,�googlecloudsdk.corer
�DefaultUniverseOnly�
ReleaseTracks�ReleaseTrack�ALPHA�BETA�GA�Commandrr3rr�<module>r@s1��6�5�'�&�&�&�&�&�������'�'�'�'�'�'�����6�6�6�6�6�6�(�(�(�(�(�(�6�6�6�6�6�6�>�>�>�>�>�>�*�*�*�*�*�*���������T�.�3�T�5F�5I�K�K�B/�B/�B/�B/�B/�$�,�B/�B/�K�K���B/�B/�B/r

Youez - 2016 - github.com/yon3zu
LinuXploit