| 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/functions/__pycache__/ |
Upload File : |
�
��0 � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl
mZ ddl
mZ
ddlmZ dd lmZ ddlmZ dd
lmZ ddlmZ ddlmZ d
� Zd� Z ej ej j � � G d� dej ej � � � � Z ej ej j � � G d� de� � � � Z ej ej j! � � G d� de � � � � Z"dS )z,Displays details of a Google Cloud Function.� )�absolute_import)�division)�unicode_literals)�encoding)�util)�client)�base)�flags)� decorator)�log)�
propertiesc �� � t j d� � t j | � � D ]$}t j � d|z � � �%t j � d� � d S )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 ! sp � ��,�7�8�8�8�)�A��� � 2� 2�� �J���T�0�0�1�1�1�1��*���2������ c �H � | � d� � r�t j j j � � � r`| j r't j � � st j
d� � | j s-t j � � rt j
d� � dS dS dS dS dS )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�IsExplicitlySetr r
�
ShouldUseGen2r �warning)�argss r �
_ValidateArgsr$ * s� � � ���t���
�
�
�
%�
*�
:�
:�
<�
<�
� �w� �u�*�,�,� � �k�#�� � � �7� �u�*�,�,� � �k�#�� � � � �
�
�
�
�� � � r c �: � e Zd ZdZed� � � Zd� Zd� Zd� ZdS )�Describe�+Display details of a Google Cloud Function.c � � t j | d� � t j | dd�� � t j | � � dS )z Register flags for this command.zto describeT)�hidden�allow_v2N)r
�AddFunctionResourceArg�AddGen2Flag� AddV2Flag)�parsers r �Argsz
Describe.Args@ sE � �
� ���7�7�7� ��f�T�D�9�9�9�9� �O�F�����r c �� � t j � � }|j � |j � |j j � � � � � � �� � � � }| �
� � t j
j k r1| j
p| � |� � }t j ||� � S t# 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._RunV1G s� � �
�
-�
/�
/�F��2�6�6���Q�Q���#�)�)�+�+�8�8�:�:� R�
�
�� �H� �����d�/�5�5�5��%�:����T�):�):�k�
�
<�
�K�� � �
�!�(�+�+�+r c � � t j | � � � � � }| j pD|� |j j � � � � � � d�� � }|j rt |j � � |S )NT)�raise_if_not_found)� client_v2�FunctionsClientr; r= �GetFunctionr8 r1 r9 r: �
stateMessagesr )rA r# r rB s r r>