
                            S r SSKJr  SSKJr  SSKJr  SSKrSSKrSSKrSSKr\R                  R                  \R                  R                  \5      S5      r\R                  R                  \5      (       a,  \\R                  ;  a  \R                  R                  S\5        S\R                   ;   a  SSKr \" \5        SSKJr  SS	KJr  SSKrSSKrSSKrSS
KJr  SSKJr  SSKJr  SSKJ r   SSKJ!r!  SSKJ"r"  SSKJ#r#  SSKJ$r$  SSKJ%r%  SSKJ&r&  SSKJ'r'  SSKJ(r(  SSKJ)r)  SSKJ*r*  SSKJ+r+  SSKJ,r,  SSKJ-r-  SSKJ.r.  SSKJ/r/  SSKJ0r0  SSKJ1r1  SSKJ2r2  SS KJ3r3  SS!KJ4r4  SS"KJ5r6  \Rn                  " \5        \Rp                  r8S# r9S$ r:\;S%:X  a  \Rx                  " 5         gg! \ a    SSKr\R$                  " \5         GN
f = f)&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           
          [         R                  " 5         0 S[        R                  _S[        R
                  _S[        R                  _S[        R                  _S[        R                  _S[        R                  _S[        R                  _S[        R                   _S	["        R$                  _S
[&        R(                  _S[*        R,                  _S[.        R0                  _S[2        R4                  _S[6        R8                  _S[:        R<                  _S[        R>                  _S[@        RB                  _[        RD                  [F        RH                  [J        RL                  [N        RP                  [R        RT                  [V        RX                  [Z        R\                  [^        R`                  S.EnURc                  5        H6  u  p#U[d        Rf                  " 5       ;  d  M   [d        Rh                  " X#5        M8     g ! [j         a+  n[m        S5        [n        Rp                  " S5         S nAg S nAf[r         a  n[m        SU< 35        [t        Rv                  (       d  [t        Rx                  (       a?  [z        R|                  " 5         [t        Rx                  (       d  [~        R                  " 5         [n        Rp                  " S5         S nAg S nAff = f)Nzadd-iam-policy-bindingcancelcpextractzget-iam-policyheadinfoinitinsertloadlsmkmkdef	partitionqueryzremove-iam-policy-bindingrm)zset-iam-policyshellshowtruncateundeleteupdateversionwaitzControl-C pressed, exiting.   zError 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mainrj   O   sH   /&&( ,"B"B 	.'' 	l	
 	?** 	,33 	!! 	!! 	!! 	.'' 	!! 	l"" 	l 	:: 	&00  	$$!" 	$\%H%H#$ 	n##%& '33""!!$--$-- ''"**!!5K: )..0	224	47- 1 
 	
'(HHQKK	 	
34 5>>^^HHQKKs+   GH  %H   
K
!H00K=BKKc                  \   [         R                  S   n [         R                  S   [         R                  U '   [        R	                  5       R                  [        / 5       H\  n[        R                  X5        [        R                  5       R                  [        / 5       H  n[        R                  X5        M     M^     [         R                  [           [         R                  S'   [        R                  " 5         [         R                  R                  U 5      [         R                  S'   g)a;  Function 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     XXa[(++j1#++h((*..x<d	!!(1224882F((< G =  KK1#++j//KKOOH5#++j    rl   )=__doc__
__future__r   r   r   osrb   rZ   r`   pathjoindirname__file___THIRD_PARTY_DIRisdirr*   rn   r   reload	NameError	importlibabslr   pyglibr	   bq_flagsbq_utilscredential_loaderfrontendr
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r:   adopt_module_key_flagsr]   rj   rz   rq   ru    r{   ri   <module>r      sO   3 &  % 	 
 
  77<< 9=I 77==!""'7sxx'G((//!%& s{{
6N      % % ! # ! # $ ! ! ! # ! ! ! " & " ! ! % % # $ ! ,   X &5r62 z// I 
 Vs   ;F. .GG