| 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/alloydb/backups/__pycache__/ |
Upload File : |
�
��s � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ej
ej j ej j ej j � � G d � d
ej � � � � ZdS )zCreates a new AlloyDB backup.� )�absolute_import)�division)�unicode_literals)�api_util)�base)�flags)�
propertiesc �8 � e Zd ZdZddd�Zed� � � Zd� ZdS )�Describez:Describes an AlloyDB backup in a given project and region.z
{description}za To describe a backup, run:
$ {command} my-backup --region=us-central1
)�DESCRIPTION�EXAMPLESc �V � t j | � � t j | � � dS )zySpecifies additional command flags.
Args:
parser: argparse.Parser: Parser object for command line inputs.
N)r � AddRegion� AddBackup)�parsers �'lib/surface/alloydb/backups/describe.py�Argsz
Describe.Args, s* � �
�O�F���� �O�F������ c �p � t j | � � � � � }|j }|j }|j � dt j j j
j |j |j
�� � }|� |� � � �� � }|j � |� � S )z�Constructs and sends request.
Args:
args: argparse.Namespace, An object that contains the values for the
arguments specified in the .Args() method.
Returns:
ProcessHttpResponse of the request made.
z"alloydb.projects.locations.backups)�
projectsId�locationsId� backupsId)�name)r �
AlloyDBClient�ReleaseTrack�alloydb_client�alloydb_messages�resource_parser�Creater �VALUES�core�project� GetOrFail�region�backup�)AlloydbProjectsLocationsBackupsGetRequest�RelativeName�projects_locations_backups�Get)�self�args�clientr r �
backup_ref�reqs r �RunzDescribe.Run6 s� � � �
#�D�$5�$5�$7�$7�
8�
8�F��*�N��.���'�.�.�,��$�)�1�;��K��+� /� � �J� �
D�
D�
�
$�
$�
&�
&� E� (� (�C��4�8�8��=�=�=r N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodr r/ � r r r r s] � � � � � � C�B� �� � �-� �� � �<��>� >� >� >� >r r N)r3 �
__future__r r r �googlecloudsdk.api_lib.alloydbr �googlecloudsdk.callioper �"googlecloudsdk.command_lib.alloydbr �googlecloudsdk.corer �
ReleaseTracksr �ALPHA�BETA�GA�DescribeCommandr r6 r r �<module>rA s� �� $� #� '� &� &� &� &� &� � � � � � � '� '� '� '� '� '� 3� 3� 3� 3� 3� 3� (� (� (� (� (� (� 4� 4� 4� 4� 4� 4� *� *� *� *� *� *� ���D�%�+�T�->�-C��%�(�*� *�->� ->� ->� ->� ->�t�#� ->� ->�*� *�->� ->� ->r