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/platform/bq/__pycache__/bq.cpython-312.pyc
�

������dZddlmZddlmZddlmZddlZddlZddlZddlZejjejje�d�Z
ejje
�r*e
ejvrejjde
�dej vr
ddlZ	ee�ddlmZdd	lmZddlZddlZddlZdd
lmZddlmZddlmZdd
lm Z ddlm!Z!ddlm"Z"ddlm#Z#ddlm$Z$ddlm%Z%ddlm&Z&ddlm'Z'ddlm(Z(ddlm)Z)ddlm*Z*ddlm+Z+ddlm,Z,ddlm-Z-ddlm.Z.ddlm/Z/ddlm0Z0ddlm1Z1ddlm2Z2dd lm3Z3dd!lm4Z4dd"lm5Z6ejne�ejpZ8d#�Z9d$�Z:e;d%k(rejx�yy#e$rddlZej$e�Y��wxYw)&z,Python script for interacting with BigQuery.�)�absolute_import)�division)�print_functionN�third_party�google)�flags)�appcommands)�bigquery_command)�bq_cached_client)�commands_iam)�command_cancel)�command_copy)�command_delete)�command_extract)�command_head)�command_info)�command_init)�command_insert)�command_list)�command_load)�command_make)�
command_mkdef)�command_partition)�
command_query)�command_repl)�command_show)�command_truncate)�command_undelete)�command_update)�command_version)�command_wait)�utilsc
�x�	tj�idtj�dtj
�dtj�dtj�dtj�dtj�dtj�dtj �d	t"j$�d
t&j(�dt*j,�dt.j0�d
t2j4�dt6j8�dt:j<�dtj>�dt@jB�tjDtFjHtJjLtNjPtRjTtVjXtZj\t^j`d��}|jc�D]2\}}|tejf�vs�tejh||��4y#tj$r*}tmd�tojpd�Yd}~yd}~wtr$r�}tmd|���ttjvsttjxr8t{j|�ttjxstj��tojpd�Yd}~yd}~wwxYw)Nzadd-iam-policy-binding�cancel�cp�extractzget-iam-policy�head�info�init�insert�load�ls�mk�mkdef�	partition�queryzremove-iam-policy-binding�rm)zset-iam-policy�shell�show�truncate�undelete�update�version�waitzControl-C pressed, exiting.�zError initializing bq client: )A�frontend_utils�ValidateGlobalFlagsr�AddIamPolicyBindingr
�Cancelr�Copyr�Extract�GetIamPolicyr�Headr�Infor�Initr�Insertr�Loadr�ListCmdr�Maker�MakeExternalTableDefinitionr�	Partitionr�Query�RemoveIamPolicyBindingr�Delete�SetIamPolicyr�Replr�Showr�Truncater�Undeleter�Updater �Versionr!�Wait�itemsr	�GetCommandList�AddCmd�KeyboardInterrupt�print�sys�exit�
BaseException�FLAGS�
debug_mode�headless�	traceback�	print_exc�pdb�post_mortem)�unused_argv�bq_commands�command�function�es     �platform/bq/bq.py�mainrjOsL��/��&�&�(�� �,�"B�"B��	�.�'�'��	
�l���	�
	�?�*�*��	�,�3�3�
�	��!�!��	��!�!��	��!�!��	�.�'�'��	��!�!��	
�l�"�"��	
�l����	��:�:��	�&�0�0�� 	��$�$�!�"	$�\�%H�%H�#�$	
�n�#�#�%�&'�3�3��"�"��!�!�$�-�-�$�-�-� �'�'�"�*�*��!�!�5�K�:)�.�.�0����	��2�2�4�	4����7�H�-�1��
��	�
'�(��H�H�Q�K�K��	��	��
3�4�
���5�>�>�����
�^�^������H�H�Q�K�K���s+�GG:�!G:�:	J9� H(�(J9�4A;J4�4J9c�V�tjd}tjdtj|<tj	�jtg�D][}tj||�tj�jtg�D]}tj||���]tjttjd<tj�tjj|�tjd<y)aEFunction to be used as setuptools script entry point.

  Appcommands assumes that it always runs as __main__, but launching
  via a setuptools-generated entry_point breaks this rule. We do some
  trickery here to make sure that appcommands and flags find their
  state where they expect to by faking ourselves as __main__.
  r�__main__N)
rZ�argv�modulesr]�flags_by_module_dict�get�__name__�register_flag_by_module�key_flags_by_module_dict�register_key_flag_for_moduler	�Run�pop)�new_name�flag�key_flags   ri�run_mainrz�s����X�X�a�[�(��+�+�j�1�#�+�+�h���(�(�*�.�.�x��<�d�	�!�!�(�D�1��2�2�4�8�8��2�F���(�(��8�<�G�=� �K�K��1�#�+�+�j��
�/�/���K�K�O�O�H�5�#�+�+�j��rl)=�__doc__�
__future__rrr�osrbrZr`�path�join�dirname�__file__�_THIRD_PARTY_DIR�isdirr*rnr�reload�	NameError�	importlib�abslr�pyglibr	�bq_flags�bq_utils�credential_loader�frontendr
rrr
rrrrrrrrrrrrrrrrrrr r!r"r:�adopt_module_key_flagsr]rjrzrqru�r{ri�<module>r�sR��3�&��%�	�
�
���7�7�<�<������� 9�=�I���7�7�=�=�!�"�'7�s�x�x�'G��(�(�/�/�!�%�&��s�{�{����
�6�N������%�%�!�#�!�#�$�!�!�!�#�!�!�!�"�&�"�!�!�%�%�#�$�!�,�����X�&�
����5�r6�2�z���+�/�/����I
����I���V���s�2F$�$G�G