| 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/instances/__pycache__/ |
Upload File : |
�
��� � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ej
ej j ej j ej j � � G d � d
ej � � � � ZdS )zDescribes an AlloyDB instance.� )�absolute_import)�division)�unicode_literals)�api_util)�base)�flags)�
propertiesc �8 � e Zd ZdZddd�Zed� � � Zd� ZdS )�Describez5Describes an AlloyDB instance within a given cluster.z
{description}z� To describe an instance, run:
$ {command} my-instance --cluster=my-cluster --region=us-central1
--view=BASIC/FULL
)�DESCRIPTION�EXAMPLESc � � t j | � � � � � }t j |d� � t j |� � t j |� � t j ||� � dS )zxSpecifies additional command flags.
Args:
parser: argparse.Parser: Parser object for command line inputs
FN)r �GetMessagesModule�ReleaseTrackr �
AddCluster�AddInstance� AddRegion�AddView)�cls�parser�alloydb_messagess �)lib/surface/alloydb/instances/describe.py�Argsz
Describe.Args. sn � � �1�#�2B�2B�2D�2D�E�E�� ��V�U�#�#�#� ��f���� �O�F���� �M�&�*�+�+�+�+�+� c �6 � t j | � � � � � }|j }|j }|j � dt j j j
j |j |j
|j �� � }|j rT|� |� � � t% j |� � � |j � � �� � }n(|� |� � � �� � }|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.clusters.instances)�
projectsId�locationsId�
clustersId�instancesId)�name�view)r )r �
AlloyDBClientr �alloydb_clientr �resource_parser�Creater �VALUES�core�project� GetOrFail�region�cluster�instancer! �3AlloydbProjectsLocationsClustersInstancesGetRequest�RelativeNamer �GetInstanceViewFlagMapper�GetEnumForChoice�%projects_locations_clusters_instances�Get)�self�args�clientr# r �instance_ref�req�ops r �RunzDescribe.Run; s � � �
#�D�$5�$5�$7�$7�
8�
8�F��*�N��.���)�0�0�7��$�)�1�;��K��<��M� 1� #� #�L� �y� ,��P�P��(�(�*�*��.�� � � 0� 0��� ;� ;�
Q�
=�
=�c�c�
�P�P��(�(�*�*�
Q�
,�
,�c� � =� A� A�#� F� F�B�
�Ir N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�classmethodr r9 � r r r r s\ � � � � � � >�=� ��
�
�-� �
,�
,� �;�
,�� � � � r r N)r= �
__future__r r r �googlecloudsdk.api_lib.alloydbr �googlecloudsdk.callioper �"googlecloudsdk.command_lib.alloydbr �googlecloudsdk.corer �
ReleaseTracksr �ALPHA�BETA�GA�DescribeCommandr r@ r r �<module>rK s� �� %� $� '� &� &� &� &� &� � � � � � � '� '� '� '� '� '� 4� 3� 3� 3� 3� 3� (� (� (� (� (� (� 4� 4� 4� 4� 4� 4� *� *� *� *� *� *� ���D�%�+�T�->�-C��%�(�*� *�9� 9� 9� 9� 9�t�#� 9� 9�*� *�9� 9� 9r