HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/google-cloud-sdk/lib/surface/sql/export/__pycache__/sql.cpython-312.pyc
�

��i��V�dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	l
mZe	je	jje	jj e	jj"�e	j$Gd
�de	j&���Zy)
z�Exports data from a Cloud SQL instance to a SQL file.

Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as
a SQL dump file.
�)�absolute_import)�division)�unicode_literals)�api_util)�arg_parsers)�base)�export_util)�flagsc�&�eZdZdZed��Zd�Zy)�Sqla�Exports data from a Cloud SQL instance to a SQL file.

  Exports data from a Cloud SQL instance to a Google Cloud Storage
  bucket as a SQL dump file.

  NOTE: Certain roles and permissions are required to export data to Google
  Cloud Storage. For more information on exporting data from Google Cloud SQL
  see [Export from Cloud SQL to a SQL dump file](https://cloud.google.com/sql/docs/mysql/import-export/import-export-sql#gcloud).
  c�^�tj|�tj|�tj|d��tj
|d��tj|�tj|�|jddtjd��ddd	�
�y)z�Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    �export)�	operationz--tablez-t�)�
min_length�TABLEFz�Tables to export from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, only one table can be exported at a time.)�type�metavar�required�helpN)r	�AddBaseExportFlagsr
�AddOffloadArgument�AddParallelArgument�AddThreadsArgument�AddCleanExportArgument�AddIfExistsExportsArgument�add_argumentr�ArgList)�parsers �lib/surface/sql/export/sql.py�ArgszSql.Args/s����"�"�6�*�	���V�$�	���f��9�	���V�x�8�	� � ��(�	�$�$�V�,�
�����
�
 �
 �A�
.���4�
�5�c�t�tjtj�}tj||�S)z2Runs the command to export the Cloud SQL instance.)r�	SqlClient�API_VERSION_DEFAULTr	�RunSqlExportCommand)�self�args�clients   r �RunzSql.RunHs+��
�
�
�� <� <�
=�F��*�*�4��8�8r"N)�__name__�
__module__�__qualname__�__doc__�staticmethodr!r*�r"r rr s ��
��5��5�09r"rN)r.�
__future__rrr�googlecloudsdk.api_lib.sqlr�googlecloudsdk.callioperr�googlecloudsdk.command_lib.sqlr	r
�
ReleaseTracks�ReleaseTrack�GA�BETA�ALPHA�DefaultUniverseOnly�Commandrr0r"r �<module>r<s����'��'�/�/�(�6�0�����D�%�%�(�(�$�*;�*;�*@�*@��%�%�+�+�-����(9�$�,�,�(9��-�(9r"