Google_Service_Bigquery

Service definition for Bigquery (v2).

Defined (1)

The class is defined in the following location(s).

/lib/Google/Service/Bigquery.php  
  1. class Google_Service_Bigquery extends Google_Service 
  2. /** View and manage your data in Google BigQuery. */ 
  3. const BIGQUERY = "https://www.googleapis.com/auth/bigquery"; 
  4. /** New Service. */ 
  5. const BIGQUERY_INSERTDATA = "https://www.googleapis.com/auth/bigquery.insertdata"; 
  6. /** View and manage your data across Google Cloud Platform services. */ 
  7. const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; 
  8. /** Manage your data and permissions in Google Cloud Storage. */ 
  9. const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; 
  10. /** View your data in Google Cloud Storage. */ 
  11. const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; 
  12. /** Manage your data in Google Cloud Storage. */ 
  13. const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; 
  14.  
  15. public $datasets; 
  16. public $jobs; 
  17. public $projects; 
  18. public $tabledata; 
  19. public $tables; 
  20.  
  21.  
  22. /** 
  23. * Constructs the internal representation of the Bigquery service. 
  24. * @param Google_Client $client 
  25. */ 
  26. public function __construct(Google_Client $client) 
  27. parent::__construct($client); 
  28. $this->servicePath = 'bigquery/v2/'; 
  29. $this->version = 'v2'; 
  30. $this->serviceName = 'bigquery'; 
  31.  
  32. $this->datasets = new Google_Service_Bigquery_Datasets_Resource( 
  33. $this,  
  34. $this->serviceName,  
  35. 'datasets',  
  36. array( 
  37. 'methods' => array( 
  38. 'delete' => array( 
  39. 'path' => 'projects/{projectId}/datasets/{datasetId}',  
  40. 'httpMethod' => 'DELETE',  
  41. 'parameters' => array( 
  42. 'projectId' => array( 
  43. 'location' => 'path',  
  44. 'type' => 'string',  
  45. 'required' => true,  
  46. ),  
  47. 'datasetId' => array( 
  48. 'location' => 'path',  
  49. 'type' => 'string',  
  50. 'required' => true,  
  51. ),  
  52. 'deleteContents' => array( 
  53. 'location' => 'query',  
  54. 'type' => 'boolean',  
  55. ),  
  56. ),  
  57. ), 'get' => array( 
  58. 'path' => 'projects/{projectId}/datasets/{datasetId}',  
  59. 'httpMethod' => 'GET',  
  60. 'parameters' => array( 
  61. 'projectId' => array( 
  62. 'location' => 'path',  
  63. 'type' => 'string',  
  64. 'required' => true,  
  65. ),  
  66. 'datasetId' => array( 
  67. 'location' => 'path',  
  68. 'type' => 'string',  
  69. 'required' => true,  
  70. ),  
  71. ),  
  72. ), 'insert' => array( 
  73. 'path' => 'projects/{projectId}/datasets',  
  74. 'httpMethod' => 'POST',  
  75. 'parameters' => array( 
  76. 'projectId' => array( 
  77. 'location' => 'path',  
  78. 'type' => 'string',  
  79. 'required' => true,  
  80. ),  
  81. ),  
  82. ), 'list' => array( 
  83. 'path' => 'projects/{projectId}/datasets',  
  84. 'httpMethod' => 'GET',  
  85. 'parameters' => array( 
  86. 'projectId' => array( 
  87. 'location' => 'path',  
  88. 'type' => 'string',  
  89. 'required' => true,  
  90. ),  
  91. 'pageToken' => array( 
  92. 'location' => 'query',  
  93. 'type' => 'string',  
  94. ),  
  95. 'all' => array( 
  96. 'location' => 'query',  
  97. 'type' => 'boolean',  
  98. ),  
  99. 'maxResults' => array( 
  100. 'location' => 'query',  
  101. 'type' => 'integer',  
  102. ),  
  103. ),  
  104. ), 'patch' => array( 
  105. 'path' => 'projects/{projectId}/datasets/{datasetId}',  
  106. 'httpMethod' => 'PATCH',  
  107. 'parameters' => array( 
  108. 'projectId' => array( 
  109. 'location' => 'path',  
  110. 'type' => 'string',  
  111. 'required' => true,  
  112. ),  
  113. 'datasetId' => array( 
  114. 'location' => 'path',  
  115. 'type' => 'string',  
  116. 'required' => true,  
  117. ),  
  118. ),  
  119. ), 'update' => array( 
  120. 'path' => 'projects/{projectId}/datasets/{datasetId}',  
  121. 'httpMethod' => 'PUT',  
  122. 'parameters' => array( 
  123. 'projectId' => array( 
  124. 'location' => 'path',  
  125. 'type' => 'string',  
  126. 'required' => true,  
  127. ),  
  128. 'datasetId' => array( 
  129. 'location' => 'path',  
  130. 'type' => 'string',  
  131. 'required' => true,  
  132. ),  
  133. ),  
  134. ),  
  135. ); 
  136. $this->jobs = new Google_Service_Bigquery_Jobs_Resource( 
  137. $this,  
  138. $this->serviceName,  
  139. 'jobs',  
  140. array( 
  141. 'methods' => array( 
  142. 'get' => array( 
  143. 'path' => 'projects/{projectId}/jobs/{jobId}',  
  144. 'httpMethod' => 'GET',  
  145. 'parameters' => array( 
  146. 'projectId' => array( 
  147. 'location' => 'path',  
  148. 'type' => 'string',  
  149. 'required' => true,  
  150. ),  
  151. 'jobId' => array( 
  152. 'location' => 'path',  
  153. 'type' => 'string',  
  154. 'required' => true,  
  155. ),  
  156. ),  
  157. ), 'getQueryResults' => array( 
  158. 'path' => 'projects/{projectId}/queries/{jobId}',  
  159. 'httpMethod' => 'GET',  
  160. 'parameters' => array( 
  161. 'projectId' => array( 
  162. 'location' => 'path',  
  163. 'type' => 'string',  
  164. 'required' => true,  
  165. ),  
  166. 'jobId' => array( 
  167. 'location' => 'path',  
  168. 'type' => 'string',  
  169. 'required' => true,  
  170. ),  
  171. 'timeoutMs' => array( 
  172. 'location' => 'query',  
  173. 'type' => 'integer',  
  174. ),  
  175. 'maxResults' => array( 
  176. 'location' => 'query',  
  177. 'type' => 'integer',  
  178. ),  
  179. 'pageToken' => array( 
  180. 'location' => 'query',  
  181. 'type' => 'string',  
  182. ),  
  183. 'startIndex' => array( 
  184. 'location' => 'query',  
  185. 'type' => 'string',  
  186. ),  
  187. ),  
  188. ), 'insert' => array( 
  189. 'path' => 'projects/{projectId}/jobs',  
  190. 'httpMethod' => 'POST',  
  191. 'parameters' => array( 
  192. 'projectId' => array( 
  193. 'location' => 'path',  
  194. 'type' => 'string',  
  195. 'required' => true,  
  196. ),  
  197. ),  
  198. ), 'list' => array( 
  199. 'path' => 'projects/{projectId}/jobs',  
  200. 'httpMethod' => 'GET',  
  201. 'parameters' => array( 
  202. 'projectId' => array( 
  203. 'location' => 'path',  
  204. 'type' => 'string',  
  205. 'required' => true,  
  206. ),  
  207. 'projection' => array( 
  208. 'location' => 'query',  
  209. 'type' => 'string',  
  210. ),  
  211. 'stateFilter' => array( 
  212. 'location' => 'query',  
  213. 'type' => 'string',  
  214. 'repeated' => true,  
  215. ),  
  216. 'allUsers' => array( 
  217. 'location' => 'query',  
  218. 'type' => 'boolean',  
  219. ),  
  220. 'maxResults' => array( 
  221. 'location' => 'query',  
  222. 'type' => 'integer',  
  223. ),  
  224. 'pageToken' => array( 
  225. 'location' => 'query',  
  226. 'type' => 'string',  
  227. ),  
  228. ),  
  229. ), 'query' => array( 
  230. 'path' => 'projects/{projectId}/queries',  
  231. 'httpMethod' => 'POST',  
  232. 'parameters' => array( 
  233. 'projectId' => array( 
  234. 'location' => 'path',  
  235. 'type' => 'string',  
  236. 'required' => true,  
  237. ),  
  238. ),  
  239. ),  
  240. ); 
  241. $this->projects = new Google_Service_Bigquery_Projects_Resource( 
  242. $this,  
  243. $this->serviceName,  
  244. 'projects',  
  245. array( 
  246. 'methods' => array( 
  247. 'list' => array( 
  248. 'path' => 'projects',  
  249. 'httpMethod' => 'GET',  
  250. 'parameters' => array( 
  251. 'pageToken' => array( 
  252. 'location' => 'query',  
  253. 'type' => 'string',  
  254. ),  
  255. 'maxResults' => array( 
  256. 'location' => 'query',  
  257. 'type' => 'integer',  
  258. ),  
  259. ),  
  260. ),  
  261. ); 
  262. $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource( 
  263. $this,  
  264. $this->serviceName,  
  265. 'tabledata',  
  266. array( 
  267. 'methods' => array( 
  268. 'insertAll' => array( 
  269. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll',  
  270. 'httpMethod' => 'POST',  
  271. 'parameters' => array( 
  272. 'projectId' => array( 
  273. 'location' => 'path',  
  274. 'type' => 'string',  
  275. 'required' => true,  
  276. ),  
  277. 'datasetId' => array( 
  278. 'location' => 'path',  
  279. 'type' => 'string',  
  280. 'required' => true,  
  281. ),  
  282. 'tableId' => array( 
  283. 'location' => 'path',  
  284. 'type' => 'string',  
  285. 'required' => true,  
  286. ),  
  287. ),  
  288. ), 'list' => array( 
  289. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data',  
  290. 'httpMethod' => 'GET',  
  291. 'parameters' => array( 
  292. 'projectId' => array( 
  293. 'location' => 'path',  
  294. 'type' => 'string',  
  295. 'required' => true,  
  296. ),  
  297. 'datasetId' => array( 
  298. 'location' => 'path',  
  299. 'type' => 'string',  
  300. 'required' => true,  
  301. ),  
  302. 'tableId' => array( 
  303. 'location' => 'path',  
  304. 'type' => 'string',  
  305. 'required' => true,  
  306. ),  
  307. 'maxResults' => array( 
  308. 'location' => 'query',  
  309. 'type' => 'integer',  
  310. ),  
  311. 'pageToken' => array( 
  312. 'location' => 'query',  
  313. 'type' => 'string',  
  314. ),  
  315. 'startIndex' => array( 
  316. 'location' => 'query',  
  317. 'type' => 'string',  
  318. ),  
  319. ),  
  320. ),  
  321. ); 
  322. $this->tables = new Google_Service_Bigquery_Tables_Resource( 
  323. $this,  
  324. $this->serviceName,  
  325. 'tables',  
  326. array( 
  327. 'methods' => array( 
  328. 'delete' => array( 
  329. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',  
  330. 'httpMethod' => 'DELETE',  
  331. 'parameters' => array( 
  332. 'projectId' => array( 
  333. 'location' => 'path',  
  334. 'type' => 'string',  
  335. 'required' => true,  
  336. ),  
  337. 'datasetId' => array( 
  338. 'location' => 'path',  
  339. 'type' => 'string',  
  340. 'required' => true,  
  341. ),  
  342. 'tableId' => array( 
  343. 'location' => 'path',  
  344. 'type' => 'string',  
  345. 'required' => true,  
  346. ),  
  347. ),  
  348. ), 'get' => array( 
  349. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',  
  350. 'httpMethod' => 'GET',  
  351. 'parameters' => array( 
  352. 'projectId' => array( 
  353. 'location' => 'path',  
  354. 'type' => 'string',  
  355. 'required' => true,  
  356. ),  
  357. 'datasetId' => array( 
  358. 'location' => 'path',  
  359. 'type' => 'string',  
  360. 'required' => true,  
  361. ),  
  362. 'tableId' => array( 
  363. 'location' => 'path',  
  364. 'type' => 'string',  
  365. 'required' => true,  
  366. ),  
  367. ),  
  368. ), 'insert' => array( 
  369. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables',  
  370. 'httpMethod' => 'POST',  
  371. 'parameters' => array( 
  372. 'projectId' => array( 
  373. 'location' => 'path',  
  374. 'type' => 'string',  
  375. 'required' => true,  
  376. ),  
  377. 'datasetId' => array( 
  378. 'location' => 'path',  
  379. 'type' => 'string',  
  380. 'required' => true,  
  381. ),  
  382. ),  
  383. ), 'list' => array( 
  384. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables',  
  385. 'httpMethod' => 'GET',  
  386. 'parameters' => array( 
  387. 'projectId' => array( 
  388. 'location' => 'path',  
  389. 'type' => 'string',  
  390. 'required' => true,  
  391. ),  
  392. 'datasetId' => array( 
  393. 'location' => 'path',  
  394. 'type' => 'string',  
  395. 'required' => true,  
  396. ),  
  397. 'pageToken' => array( 
  398. 'location' => 'query',  
  399. 'type' => 'string',  
  400. ),  
  401. 'maxResults' => array( 
  402. 'location' => 'query',  
  403. 'type' => 'integer',  
  404. ),  
  405. ),  
  406. ), 'patch' => array( 
  407. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',  
  408. 'httpMethod' => 'PATCH',  
  409. 'parameters' => array( 
  410. 'projectId' => array( 
  411. 'location' => 'path',  
  412. 'type' => 'string',  
  413. 'required' => true,  
  414. ),  
  415. 'datasetId' => array( 
  416. 'location' => 'path',  
  417. 'type' => 'string',  
  418. 'required' => true,  
  419. ),  
  420. 'tableId' => array( 
  421. 'location' => 'path',  
  422. 'type' => 'string',  
  423. 'required' => true,  
  424. ),  
  425. ),  
  426. ), 'update' => array( 
  427. 'path' => 'projects/{projectId}/datasets/{datasetId}/tables/{tableId}',  
  428. 'httpMethod' => 'PUT',  
  429. 'parameters' => array( 
  430. 'projectId' => array( 
  431. 'location' => 'path',  
  432. 'type' => 'string',  
  433. 'required' => true,  
  434. ),  
  435. 'datasetId' => array( 
  436. 'location' => 'path',  
  437. 'type' => 'string',  
  438. 'required' => true,  
  439. ),  
  440. 'tableId' => array( 
  441. 'location' => 'path',  
  442. 'type' => 'string',  
  443. 'required' => true,  
  444. ),  
  445. ),  
  446. ),  
  447. );