1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18/** 19 * Service definition for Fusiontables (v2). 20 * 21 * <p> 22 * API for working with Fusion Tables data.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/fusiontables" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_Fusiontables extends Google_Service 32{ 33 /** Manage your Fusion Tables. */ 34 const FUSIONTABLES = 35 "https://www.googleapis.com/auth/fusiontables"; 36 /** View your Fusion Tables. */ 37 const FUSIONTABLES_READONLY = 38 "https://www.googleapis.com/auth/fusiontables.readonly"; 39 40 public $column; 41 public $query; 42 public $style; 43 public $table; 44 public $task; 45 public $template; 46 47 /** 48 * Constructs the internal representation of the Fusiontables service. 49 * 50 * @param Google_Client $client 51 */ 52 public function __construct(Google_Client $client) 53 { 54 parent::__construct($client); 55 $this->rootUrl = 'https://www.googleapis.com/'; 56 $this->servicePath = 'fusiontables/v2/'; 57 $this->batchPath = 'batch/fusiontables/v2'; 58 $this->version = 'v2'; 59 $this->serviceName = 'fusiontables'; 60 61 $this->column = new Google_Service_Fusiontables_Resource_Column( 62 $this, 63 $this->serviceName, 64 'column', 65 array( 66 'methods' => array( 67 'delete' => array( 68 'path' => 'tables/{tableId}/columns/{columnId}', 69 'httpMethod' => 'DELETE', 70 'parameters' => array( 71 'tableId' => array( 72 'location' => 'path', 73 'type' => 'string', 74 'required' => true, 75 ), 76 'columnId' => array( 77 'location' => 'path', 78 'type' => 'string', 79 'required' => true, 80 ), 81 ), 82 ),'get' => array( 83 'path' => 'tables/{tableId}/columns/{columnId}', 84 'httpMethod' => 'GET', 85 'parameters' => array( 86 'tableId' => array( 87 'location' => 'path', 88 'type' => 'string', 89 'required' => true, 90 ), 91 'columnId' => array( 92 'location' => 'path', 93 'type' => 'string', 94 'required' => true, 95 ), 96 ), 97 ),'insert' => array( 98 'path' => 'tables/{tableId}/columns', 99 'httpMethod' => 'POST', 100 'parameters' => array( 101 'tableId' => array( 102 'location' => 'path', 103 'type' => 'string', 104 'required' => true, 105 ), 106 ), 107 ),'list' => array( 108 'path' => 'tables/{tableId}/columns', 109 'httpMethod' => 'GET', 110 'parameters' => array( 111 'tableId' => array( 112 'location' => 'path', 113 'type' => 'string', 114 'required' => true, 115 ), 116 'maxResults' => array( 117 'location' => 'query', 118 'type' => 'integer', 119 ), 120 'pageToken' => array( 121 'location' => 'query', 122 'type' => 'string', 123 ), 124 ), 125 ),'patch' => array( 126 'path' => 'tables/{tableId}/columns/{columnId}', 127 'httpMethod' => 'PATCH', 128 'parameters' => array( 129 'tableId' => array( 130 'location' => 'path', 131 'type' => 'string', 132 'required' => true, 133 ), 134 'columnId' => array( 135 'location' => 'path', 136 'type' => 'string', 137 'required' => true, 138 ), 139 ), 140 ),'update' => array( 141 'path' => 'tables/{tableId}/columns/{columnId}', 142 'httpMethod' => 'PUT', 143 'parameters' => array( 144 'tableId' => array( 145 'location' => 'path', 146 'type' => 'string', 147 'required' => true, 148 ), 149 'columnId' => array( 150 'location' => 'path', 151 'type' => 'string', 152 'required' => true, 153 ), 154 ), 155 ), 156 ) 157 ) 158 ); 159 $this->query = new Google_Service_Fusiontables_Resource_Query( 160 $this, 161 $this->serviceName, 162 'query', 163 array( 164 'methods' => array( 165 'sql' => array( 166 'path' => 'query', 167 'httpMethod' => 'POST', 168 'parameters' => array( 169 'sql' => array( 170 'location' => 'query', 171 'type' => 'string', 172 'required' => true, 173 ), 174 'hdrs' => array( 175 'location' => 'query', 176 'type' => 'boolean', 177 ), 178 'typed' => array( 179 'location' => 'query', 180 'type' => 'boolean', 181 ), 182 ), 183 ),'sqlGet' => array( 184 'path' => 'query', 185 'httpMethod' => 'GET', 186 'parameters' => array( 187 'sql' => array( 188 'location' => 'query', 189 'type' => 'string', 190 'required' => true, 191 ), 192 'hdrs' => array( 193 'location' => 'query', 194 'type' => 'boolean', 195 ), 196 'typed' => array( 197 'location' => 'query', 198 'type' => 'boolean', 199 ), 200 ), 201 ), 202 ) 203 ) 204 ); 205 $this->style = new Google_Service_Fusiontables_Resource_Style( 206 $this, 207 $this->serviceName, 208 'style', 209 array( 210 'methods' => array( 211 'delete' => array( 212 'path' => 'tables/{tableId}/styles/{styleId}', 213 'httpMethod' => 'DELETE', 214 'parameters' => array( 215 'tableId' => array( 216 'location' => 'path', 217 'type' => 'string', 218 'required' => true, 219 ), 220 'styleId' => array( 221 'location' => 'path', 222 'type' => 'integer', 223 'required' => true, 224 ), 225 ), 226 ),'get' => array( 227 'path' => 'tables/{tableId}/styles/{styleId}', 228 'httpMethod' => 'GET', 229 'parameters' => array( 230 'tableId' => array( 231 'location' => 'path', 232 'type' => 'string', 233 'required' => true, 234 ), 235 'styleId' => array( 236 'location' => 'path', 237 'type' => 'integer', 238 'required' => true, 239 ), 240 ), 241 ),'insert' => array( 242 'path' => 'tables/{tableId}/styles', 243 'httpMethod' => 'POST', 244 'parameters' => array( 245 'tableId' => array( 246 'location' => 'path', 247 'type' => 'string', 248 'required' => true, 249 ), 250 ), 251 ),'list' => array( 252 'path' => 'tables/{tableId}/styles', 253 'httpMethod' => 'GET', 254 'parameters' => array( 255 'tableId' => array( 256 'location' => 'path', 257 'type' => 'string', 258 'required' => true, 259 ), 260 'maxResults' => array( 261 'location' => 'query', 262 'type' => 'integer', 263 ), 264 'pageToken' => array( 265 'location' => 'query', 266 'type' => 'string', 267 ), 268 ), 269 ),'patch' => array( 270 'path' => 'tables/{tableId}/styles/{styleId}', 271 'httpMethod' => 'PATCH', 272 'parameters' => array( 273 'tableId' => array( 274 'location' => 'path', 275 'type' => 'string', 276 'required' => true, 277 ), 278 'styleId' => array( 279 'location' => 'path', 280 'type' => 'integer', 281 'required' => true, 282 ), 283 ), 284 ),'update' => array( 285 'path' => 'tables/{tableId}/styles/{styleId}', 286 'httpMethod' => 'PUT', 287 'parameters' => array( 288 'tableId' => array( 289 'location' => 'path', 290 'type' => 'string', 291 'required' => true, 292 ), 293 'styleId' => array( 294 'location' => 'path', 295 'type' => 'integer', 296 'required' => true, 297 ), 298 ), 299 ), 300 ) 301 ) 302 ); 303 $this->table = new Google_Service_Fusiontables_Resource_Table( 304 $this, 305 $this->serviceName, 306 'table', 307 array( 308 'methods' => array( 309 'copy' => array( 310 'path' => 'tables/{tableId}/copy', 311 'httpMethod' => 'POST', 312 'parameters' => array( 313 'tableId' => array( 314 'location' => 'path', 315 'type' => 'string', 316 'required' => true, 317 ), 318 'copyPresentation' => array( 319 'location' => 'query', 320 'type' => 'boolean', 321 ), 322 ), 323 ),'delete' => array( 324 'path' => 'tables/{tableId}', 325 'httpMethod' => 'DELETE', 326 'parameters' => array( 327 'tableId' => array( 328 'location' => 'path', 329 'type' => 'string', 330 'required' => true, 331 ), 332 ), 333 ),'get' => array( 334 'path' => 'tables/{tableId}', 335 'httpMethod' => 'GET', 336 'parameters' => array( 337 'tableId' => array( 338 'location' => 'path', 339 'type' => 'string', 340 'required' => true, 341 ), 342 ), 343 ),'importRows' => array( 344 'path' => 'tables/{tableId}/import', 345 'httpMethod' => 'POST', 346 'parameters' => array( 347 'tableId' => array( 348 'location' => 'path', 349 'type' => 'string', 350 'required' => true, 351 ), 352 'delimiter' => array( 353 'location' => 'query', 354 'type' => 'string', 355 ), 356 'encoding' => array( 357 'location' => 'query', 358 'type' => 'string', 359 ), 360 'endLine' => array( 361 'location' => 'query', 362 'type' => 'integer', 363 ), 364 'isStrict' => array( 365 'location' => 'query', 366 'type' => 'boolean', 367 ), 368 'startLine' => array( 369 'location' => 'query', 370 'type' => 'integer', 371 ), 372 ), 373 ),'importTable' => array( 374 'path' => 'tables/import', 375 'httpMethod' => 'POST', 376 'parameters' => array( 377 'name' => array( 378 'location' => 'query', 379 'type' => 'string', 380 'required' => true, 381 ), 382 'delimiter' => array( 383 'location' => 'query', 384 'type' => 'string', 385 ), 386 'encoding' => array( 387 'location' => 'query', 388 'type' => 'string', 389 ), 390 ), 391 ),'insert' => array( 392 'path' => 'tables', 393 'httpMethod' => 'POST', 394 'parameters' => array(), 395 ),'list' => array( 396 'path' => 'tables', 397 'httpMethod' => 'GET', 398 'parameters' => array( 399 'maxResults' => array( 400 'location' => 'query', 401 'type' => 'integer', 402 ), 403 'pageToken' => array( 404 'location' => 'query', 405 'type' => 'string', 406 ), 407 ), 408 ),'patch' => array( 409 'path' => 'tables/{tableId}', 410 'httpMethod' => 'PATCH', 411 'parameters' => array( 412 'tableId' => array( 413 'location' => 'path', 414 'type' => 'string', 415 'required' => true, 416 ), 417 'replaceViewDefinition' => array( 418 'location' => 'query', 419 'type' => 'boolean', 420 ), 421 ), 422 ),'refetchSheet' => array( 423 'path' => 'tables/{tableId}/refetch', 424 'httpMethod' => 'POST', 425 'parameters' => array( 426 'tableId' => array( 427 'location' => 'path', 428 'type' => 'string', 429 'required' => true, 430 ), 431 ), 432 ),'replaceRows' => array( 433 'path' => 'tables/{tableId}/replace', 434 'httpMethod' => 'POST', 435 'parameters' => array( 436 'tableId' => array( 437 'location' => 'path', 438 'type' => 'string', 439 'required' => true, 440 ), 441 'delimiter' => array( 442 'location' => 'query', 443 'type' => 'string', 444 ), 445 'encoding' => array( 446 'location' => 'query', 447 'type' => 'string', 448 ), 449 'endLine' => array( 450 'location' => 'query', 451 'type' => 'integer', 452 ), 453 'isStrict' => array( 454 'location' => 'query', 455 'type' => 'boolean', 456 ), 457 'startLine' => array( 458 'location' => 'query', 459 'type' => 'integer', 460 ), 461 ), 462 ),'update' => array( 463 'path' => 'tables/{tableId}', 464 'httpMethod' => 'PUT', 465 'parameters' => array( 466 'tableId' => array( 467 'location' => 'path', 468 'type' => 'string', 469 'required' => true, 470 ), 471 'replaceViewDefinition' => array( 472 'location' => 'query', 473 'type' => 'boolean', 474 ), 475 ), 476 ), 477 ) 478 ) 479 ); 480 $this->task = new Google_Service_Fusiontables_Resource_Task( 481 $this, 482 $this->serviceName, 483 'task', 484 array( 485 'methods' => array( 486 'delete' => array( 487 'path' => 'tables/{tableId}/tasks/{taskId}', 488 'httpMethod' => 'DELETE', 489 'parameters' => array( 490 'tableId' => array( 491 'location' => 'path', 492 'type' => 'string', 493 'required' => true, 494 ), 495 'taskId' => array( 496 'location' => 'path', 497 'type' => 'string', 498 'required' => true, 499 ), 500 ), 501 ),'get' => array( 502 'path' => 'tables/{tableId}/tasks/{taskId}', 503 'httpMethod' => 'GET', 504 'parameters' => array( 505 'tableId' => array( 506 'location' => 'path', 507 'type' => 'string', 508 'required' => true, 509 ), 510 'taskId' => array( 511 'location' => 'path', 512 'type' => 'string', 513 'required' => true, 514 ), 515 ), 516 ),'list' => array( 517 'path' => 'tables/{tableId}/tasks', 518 'httpMethod' => 'GET', 519 'parameters' => array( 520 'tableId' => array( 521 'location' => 'path', 522 'type' => 'string', 523 'required' => true, 524 ), 525 'maxResults' => array( 526 'location' => 'query', 527 'type' => 'integer', 528 ), 529 'pageToken' => array( 530 'location' => 'query', 531 'type' => 'string', 532 ), 533 'startIndex' => array( 534 'location' => 'query', 535 'type' => 'integer', 536 ), 537 ), 538 ), 539 ) 540 ) 541 ); 542 $this->template = new Google_Service_Fusiontables_Resource_Template( 543 $this, 544 $this->serviceName, 545 'template', 546 array( 547 'methods' => array( 548 'delete' => array( 549 'path' => 'tables/{tableId}/templates/{templateId}', 550 'httpMethod' => 'DELETE', 551 'parameters' => array( 552 'tableId' => array( 553 'location' => 'path', 554 'type' => 'string', 555 'required' => true, 556 ), 557 'templateId' => array( 558 'location' => 'path', 559 'type' => 'integer', 560 'required' => true, 561 ), 562 ), 563 ),'get' => array( 564 'path' => 'tables/{tableId}/templates/{templateId}', 565 'httpMethod' => 'GET', 566 'parameters' => array( 567 'tableId' => array( 568 'location' => 'path', 569 'type' => 'string', 570 'required' => true, 571 ), 572 'templateId' => array( 573 'location' => 'path', 574 'type' => 'integer', 575 'required' => true, 576 ), 577 ), 578 ),'insert' => array( 579 'path' => 'tables/{tableId}/templates', 580 'httpMethod' => 'POST', 581 'parameters' => array( 582 'tableId' => array( 583 'location' => 'path', 584 'type' => 'string', 585 'required' => true, 586 ), 587 ), 588 ),'list' => array( 589 'path' => 'tables/{tableId}/templates', 590 'httpMethod' => 'GET', 591 'parameters' => array( 592 'tableId' => array( 593 'location' => 'path', 594 'type' => 'string', 595 'required' => true, 596 ), 597 'maxResults' => array( 598 'location' => 'query', 599 'type' => 'integer', 600 ), 601 'pageToken' => array( 602 'location' => 'query', 603 'type' => 'string', 604 ), 605 ), 606 ),'patch' => array( 607 'path' => 'tables/{tableId}/templates/{templateId}', 608 'httpMethod' => 'PATCH', 609 'parameters' => array( 610 'tableId' => array( 611 'location' => 'path', 612 'type' => 'string', 613 'required' => true, 614 ), 615 'templateId' => array( 616 'location' => 'path', 617 'type' => 'integer', 618 'required' => true, 619 ), 620 ), 621 ),'update' => array( 622 'path' => 'tables/{tableId}/templates/{templateId}', 623 'httpMethod' => 'PUT', 624 'parameters' => array( 625 'tableId' => array( 626 'location' => 'path', 627 'type' => 'string', 628 'required' => true, 629 ), 630 'templateId' => array( 631 'location' => 'path', 632 'type' => 'integer', 633 'required' => true, 634 ), 635 ), 636 ), 637 ) 638 ) 639 ); 640 } 641} 642