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: //lib/google-cloud-sdk/lib/surface/__pycache__/info.cpython-312.pyc
�

���
���dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddl	mZdd	lm
Z
dd
lmZd�Zej ej"j$�Gd�d
ej&��Zy)zDA command that prints out information about your gcloud environment.�)�absolute_import)�division)�unicode_literals)�base)�info_holder)�
exceptions)�log)�network_diagnostics)�property_diagnosticsc��tj�j�}tj|�j�}|xr|S)N)r
�NetworkDiagnostic�	RunChecksr�PropertyDiagnostic)� ignore_hidden_property_allowlist�passed_network�passed_propss   �lib/surface/info.py�_RunDiagnosticsrsA��&�8�8�:�D�D�F�.�%�8�8�&�(�(1�	���	�	(�L�(�c�L�eZdZdZddiZejZed��Z	d�Z
d�Zy)�Infoz9Display information about the current gcloud environment.�EXAMPLESa�
          To display information about the current gcloud environment including
          the Google Cloud account, project and directory paths for
          logs, run:

            $ {command}

          To check network connectivity and hidden properties, run:

            $ {command} --run-diagnostics

          To print the contents of the most recent log file, run:

            $ {command} --show-log
          c���|jd��}|jddd��|j�}|jddd��|jd	ddd
��|jddd
��y)NT)�mutexz
--show-log�
store_truez(Print the contents of the last log file.)�action�helpz--run-diagnosticsz=Run diagnostics on your installation of the Google Cloud CLI.z"--ignore-hidden-property-allowlistz%Ignore the hidden property allowlist.)r�hiddenrz--anonymizezWMinimize any personal identifiable information. Use it when sharing output with others.)�	add_group�add_argument)�parser�mode�diagnosticss   r�Argsz	Info.Args>s������$��'�D������
7��9��.�.�"�K������
L��N����,���
4�	�6�
�����7��8rc���|jr-t|j�}|rytjd��tj|jrtj���Sd��S)Nz)Some of the checks in diagnostics failed.)�
anonymizer)	�run_diagnosticsrrr�Errorr�
InfoHolder�	anonymize�
Anonymizer)�self�args�passeds   r�RunzInfo.RunUsi������t�D�D�E�f�	�����J�K�K��!�!�/3�~�~�;�)�)�+�I�I�CG�I�Irc��|sy|jstj|�y|jjrRtjdj|jj|jj
���yy)Nz]
Contents of log file: [{0}]
==========================================================
{1}

)�show_logr	�Print�logs�last_log�format�LastLogContents)r,r-�infos   r�DisplayzInfo.Display_sc�����=�=�	�i�i��o�	
���	�	�	�i�i�����	�	�*�*�D�I�I�,E�,E�,G�H�J�
rN)�__name__�
__module__�__qualname__�__doc__�
detailed_helpr�SDK_TOOLS_CATEGORY�category�staticmethodr$r/r8�rrrr&sA��A����-�$�
$�
$�(��8��8�,I�	JrrN)r<�
__future__rrr�googlecloudsdk.callioper�googlecloudsdk.command_libr�googlecloudsdk.corerr	�googlecloudsdk.core.diagnosticsr
rr�
ReleaseTracks�ReleaseTrack�GA�CommandrrArr�<module>rKsk�� K�&��'�)�2�*�#�?�@�)�����D�%�%�(�(�)�AJ�4�<�<�AJ�*�AJr