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/import/__pycache__/tde.cpython-312.pyc
�

�����:�dZddlZddlmZddlmZddlmZddlmZddl	m
Z
ejejejjejjejj �Gd�d	ej"���Zy)
z�Imports data into a Cloud SQL instance from a TDE file.

Imports data into a Cloud SQL instance from a TDE backup file in Google Cloud
Storage.
�N)�api_util)�base)�flags)�import_util)�
console_ioc�p�eZdZdZej
d�ej
d�d�Zed��Zd�Z	y)�Tdez@Import TDE certificate into a Cloud SQL for SQL Server instance.a/          {command} imports a TDE certificate into a Cloud SQL instance from a certificate file
          in Google Cloud Storage.

          For detailed help on importing data into Cloud SQL, refer to this
          guide: https://cloud.google.com/sql/docs/sqlserver/import-export/importing
          ah          To import a TDE certificate with the name `foo` and certificate path `my-bucket/my-cert.cert`
          and private key path `my-bucket/my-key.pvk` and pvk password `my-pvk-password` into
          the Cloud SQL instance `my-instance`,
          run:

            $ {command} my-instance --certificate=foo --cert-path=gs://my-bucket/my-cert.cert --pvk-path=gs://my-bucket/my-key.pvk --pvk-password=my-pvk-password

          To import a TDE certificate with the name `foo` and certificate path `my-bucket/my-cert.cert`
          and private key path `my-bucket/my-key.pvk` into
          the Cloud SQL instance `my-instance` and prompting for the
          private key password,
          run:

            $ {command} my-instance --certificate=foo --cert-path=gs://my-bucket/my-cert.cert --pvk-path=gs://my-bucket/my-key.pvk --prompt-for-pvk-password
          )�DESCRIPTION�EXAMPLESc��tjj|�tj|�tj
|�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.
    N)r�
ASYNC_FLAG�AddToParserr�AddInstanceArgument�AddTdeFlags)�parsers �lib/surface/sql/import/tde.py�ArgszTde.ArgsAs2��	�O�O����'�	���f�%�	���f��c��|jrtjd�|_t	j
tj�}tj||�S)z7Runs the command to import into the Cloud SQL instance.zPrivate Key Password: )	�prompt_for_pvk_passwordr�PromptPassword�pvk_passwordr�	SqlClient�API_VERSION_DEFAULTr�RunTdeImportCommand)�self�args�clients   r�RunzTde.RunMsH���#�#�$�3�3�4L�M�d��
�
�
�� <� <�
=�F��*�*�4��8�8rN)
�__name__�
__module__�__qualname__�__doc__�textwrap�dedent�
detailed_help�staticmethodrr�rrr	r	sR��I��(�/�/����(�/�/����-�8�	��	�9rr	)r#r$�googlecloudsdk.api_lib.sqlr�googlecloudsdk.callioper�googlecloudsdk.command_lib.sqlrr�googlecloudsdk.core.consoler�DefaultUniverseOnly�
ReleaseTracks�ReleaseTrack�GA�BETA�ALPHA�Commandr	r(rr�<module>r4s�����/�(�0�6�2��������D�%�%�(�(�$�*;�*;�*@�*@��%�%�+�+�-�19�$�,�,�19�-��19r