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/functions/__pycache__/describe.cpython-312.pyc
�

��0���dZddlmZddlmZddlmZddlmZddlmZ	ddl
mZddl
mZ
ddlmZdd	lmZddlmZdd
lmZddlmZddlmZd
�Zd�Zej2ej4j6�Gd�dej8ej:��Zej2ej4j>�Gd�de��Z ej2ej4jB�Gd�de ��Z"y)z,Displays details of a Google Cloud Function.�)�absolute_import)�division)�unicode_literals)�encoding)�util)�client)�base)�flags)�	decorator)�log)�
propertiesc���tjd�tj|�D]$}tjjd|z��&tjjd�y)Nz&Function has the following conditions:z  �)r�critical�api_util_v2�GetStateMessagesStrings�status�Print)�state_messages�state_message_strings  �!lib/surface/functions/describe.py�_PrintV2StateMessagesr!sV���,�,�7�8�)�A�A�����J�J���T�0�0�1���*�*���2��c�f�|jd�r�tjjjj�rm|jr)tj�stjd�|js+tj�rtjd�yyyyy)zValidate arguments.�v2zYConflicting flags "--v2" and "--no-gen2" specified, Cloud Functions v2 APIs will be used.zYConflicting flags "--no-v2" and "--gen2" specified, Cloud Functions v2 APIs will be used.N)�IsSpecifiedr
�VALUES�	functions�gen2�IsExplicitlySetrr
�
ShouldUseGen2r�warning)�argss r�
_ValidateArgsr$*s������t��
�
�
�
%�
%�
*�
*�
:�
:�
<��w�w�u�*�*�,�	�k�k�#���7�7�u�*�*�,�	�k�k�#��-�7�=�rc�2�eZdZdZed��Zd�Zd�Zd�Zy)�Describe�+Display details of a Google Cloud Function.c��tj|d�tj|dd��tj|�y)z Register flags for this command.zto describeT)�hidden�allow_v2N)r
�AddFunctionResourceArg�AddGen2Flag�	AddV2Flag)�parsers r�Argsz
Describe.Args@s2��
� � ���7�	���f�T�D�9�	�O�O�F�rc���tj�}|jj|jj|jjj�j����}|j�tjjk(r5|jxs|j|�}tj ||�St#j$|�S)N)�name)�api_util_v1�GetApiClientInstance�projects_locations_functions�Get�MESSAGES_MODULE�2CloudfunctionsProjectsLocationsFunctionsGetRequest�CONCEPTSr1�Parse�RelativeName�ReleaseTrackr	�ALPHA�_v2_function�_RunV2r�%decorate_v1_function_with_v2_api_infor�
MessageToDict)�selfr#r�function�v2_functions     r�_RunV1zDescribe._RunV1Gs���
�
-�
-�
/�F��2�2�6�6����Q�Q����#�#�)�)�+�8�8�:�	R�	
��H�����d�/�/�5�5�5��%�%�:����T�):�k�
�
<�
<�
�K���
�!�!�(�+�+rc�0�tj|j��}|jxsC|j	|j
jj�j�d��}|jrt|j�|S)NT)�raise_if_not_found)�	client_v2�FunctionsClientr;r=�GetFunctionr8r1r9r:�
stateMessagesr)rAr#rrBs    rr>zDescribe._RunV2Xs|��
�
&�
&�t�'8�'8�':�
;�F�� � ��F�$6�$6��
�
��� � �"�/�/�1�d�%7�%�H�����H�2�2�3��Orc��t|�|jr|j|�Stjj||�S)N)r$rr>r�FunctionResourceCommand�Run)rAr#s  rrMzDescribe.Runas9���$���w�w�
�[�[��
���'�'�+�+�D�$�7�7rN)	�__name__�
__module__�__qualname__�__doc__�staticmethodr/rDr>rM�rrr&r&<s&��3�����,�"�8rr&c��eZdZdZy)�DescribeBetar'N�rNrOrPrQrSrrrUrUj���3rrUc��eZdZdZy)�
DescribeAlphar'NrVrSrrrYrYorWrrYN)#rQ�
__future__rrr�apitools.base.pyr�#googlecloudsdk.api_lib.functions.v1rr2�#googlecloudsdk.api_lib.functions.v2rrGr�googlecloudsdk.callioper	�$googlecloudsdk.command_lib.functionsr
�'googlecloudsdk.command_lib.functions.v1r�googlecloudsdk.corerr
rr$�
ReleaseTracksr;�GArL�DescribeCommandr&�BETArUr<rYrSrr�<module>rfs���3�&��'�%�C�C�C�(�6�5�=�#�*���$����D�%�%�(�(�)�*8�t�+�+�T�-A�-A�*8�*�*8�Z����D�%�%�*�*�+�4�8�4�,�4�����D�%�%�+�+�,�4�L�4�-�4r