| 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/__pycache__/ |
Upload File : |
�
��� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ dd l
mZ d
Zd� Zd� Z G d
� dej � � ZdS )z;Serves the survey and logs the response to clearcut tables.� )�absolute_import)�division)�unicode_literals)�concord_util)�base)�survey)�log)�
console_io�
GeneralSurveyc �L � | j } t j |� � }|t j j j j k rt j j j S |t j j j j k rt j j j S | � |� � r|S | j
}��)z,Prompts user for the answer to the question.)�instructionr
�PromptResponser �Survey�ControlOperation�
SKIP_QUESTION�value�EXIT_SURVEY�AcceptAnswer�instruction_on_rejection)�question�
prompt_msg�answers �lib/surface/survey.py�_GetAnswerToQuestionr s� � ��#�*� 5�
�
&�z�
2�
2�F�
���/�=�C�C�C�
�]�
+�
9�9� �6�=�1�=�C� C� C�
�]�
+�
7�7� � � �v� &� &� 5�
�m��4�j� 5� c � � t j d�� � }|rt j | � � dS t j � d� � dS )z,Sends response to concord's clearcut tables.z#Do you want to submit your response)�
prompt_stringzYour response is not recorded.N)r
�PromptContinuer �LogSurveyAnswersr �err�Print)�survey_instance�sends r �LogResponser$ / sV � � � "�9�
;�
;�
;�$� � 4��!�/�2�2�2�2�2��G�M�M�2�3�3�3�3�3r c �. � e Zd ZdZed� � � Zd� ZdS )r z�Invoke a customer satisfaction survey for Google Cloud CLI.
To permanently disable the survey prompt, run:
$ gcloud config set survey/disable_prompts True
## EXAMPLES
To launch the survey, run:
$ {command}
c � � d S )N� )�parsers r �ArgszSurvey.ArgsG s � ��Dr c �. � t j � � }|� � � t t |� � � � }t |d� � D �]0\ }}d� ||� � }t j � |� � |�
� � t j � d� � |� � � t |� � }|t j j j k r"t j � d� � d S |t j j j k r4t j � d� |� � � � ��|� |� � ��2t'