OLD | NEW |
(Empty) | |
| 1 { |
| 2 "auth": { |
| 3 "oauth2": { |
| 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/bigquery": { |
| 6 "description": "View and manage your data in Google BigQuery
" |
| 7 }, |
| 8 "https://www.googleapis.com/auth/bigquery.insertdata": { |
| 9 "description": "Insert data into Google BigQuery" |
| 10 }, |
| 11 "https://www.googleapis.com/auth/cloud-platform": { |
| 12 "description": "View and manage your data across Google Clou
d Platform services" |
| 13 }, |
| 14 "https://www.googleapis.com/auth/devstorage.full_control": { |
| 15 "description": "Manage your data and permissions in Google C
loud Storage" |
| 16 }, |
| 17 "https://www.googleapis.com/auth/devstorage.read_only": { |
| 18 "description": "View your data in Google Cloud Storage" |
| 19 }, |
| 20 "https://www.googleapis.com/auth/devstorage.read_write": { |
| 21 "description": "Manage your data in Google Cloud Storage" |
| 22 } |
| 23 } |
| 24 } |
| 25 }, |
| 26 "basePath": "/bigquery/v2/", |
| 27 "baseUrl": "https://www.googleapis.com/bigquery/v2/", |
| 28 "batchPath": "batch", |
| 29 "description": "A data platform for customers to create, manage, share and q
uery data.", |
| 30 "discoveryVersion": "v1", |
| 31 "documentationLink": "https://developers.google.com/bigquery/docs/overview", |
| 32 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/HuoHzxwZuMSucTevJLq_0v1_DM0\"", |
| 33 "icons": { |
| 34 "x16": "https://www.google.com/images/icons/product/search-16.gif", |
| 35 "x32": "https://www.google.com/images/icons/product/search-32.gif" |
| 36 }, |
| 37 "id": "bigquery:v2", |
| 38 "kind": "discovery#restDescription", |
| 39 "name": "bigquery", |
| 40 "ownerDomain": "google.com", |
| 41 "ownerName": "Google", |
| 42 "parameters": { |
| 43 "alt": { |
| 44 "default": "json", |
| 45 "description": "Data format for the response.", |
| 46 "enum": [ |
| 47 "csv", |
| 48 "json" |
| 49 ], |
| 50 "enumDescriptions": [ |
| 51 "Responses with Content-Type of text/csv", |
| 52 "Responses with Content-Type of application/json" |
| 53 ], |
| 54 "location": "query", |
| 55 "type": "string" |
| 56 }, |
| 57 "fields": { |
| 58 "description": "Selector specifying which fields to include in a par
tial response.", |
| 59 "location": "query", |
| 60 "type": "string" |
| 61 }, |
| 62 "key": { |
| 63 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 64 "location": "query", |
| 65 "type": "string" |
| 66 }, |
| 67 "oauth_token": { |
| 68 "description": "OAuth 2.0 token for the current user.", |
| 69 "location": "query", |
| 70 "type": "string" |
| 71 }, |
| 72 "prettyPrint": { |
| 73 "default": "true", |
| 74 "description": "Returns response with indentations and line breaks."
, |
| 75 "location": "query", |
| 76 "type": "boolean" |
| 77 }, |
| 78 "quotaUser": { |
| 79 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters. Overrides userIp if both are provided.", |
| 80 "location": "query", |
| 81 "type": "string" |
| 82 }, |
| 83 "userIp": { |
| 84 "description": "IP address of the site where the request originates.
Use this if you want to enforce per-user limits.", |
| 85 "location": "query", |
| 86 "type": "string" |
| 87 } |
| 88 }, |
| 89 "protocol": "rest", |
| 90 "resources": { |
| 91 "datasets": { |
| 92 "methods": { |
| 93 "delete": { |
| 94 "description": "Deletes the dataset specified by the dataset
Id value. Before you can delete a dataset, you must delete all its tables, eithe
r manually or by specifying deleteContents. Immediately after deletion, you can
create another dataset with the same name.", |
| 95 "httpMethod": "DELETE", |
| 96 "id": "bigquery.datasets.delete", |
| 97 "parameterOrder": [ |
| 98 "projectId", |
| 99 "datasetId" |
| 100 ], |
| 101 "parameters": { |
| 102 "datasetId": { |
| 103 "description": "Dataset ID of dataset being deleted"
, |
| 104 "location": "path", |
| 105 "required": true, |
| 106 "type": "string" |
| 107 }, |
| 108 "deleteContents": { |
| 109 "description": "If True, delete all the tables in th
e dataset. If False and the dataset contains tables, the request will fail. Defa
ult is False", |
| 110 "location": "query", |
| 111 "type": "boolean" |
| 112 }, |
| 113 "projectId": { |
| 114 "description": "Project ID of the dataset being dele
ted", |
| 115 "location": "path", |
| 116 "required": true, |
| 117 "type": "string" |
| 118 } |
| 119 }, |
| 120 "path": "projects/{projectId}/datasets/{datasetId}", |
| 121 "scopes": [ |
| 122 "https://www.googleapis.com/auth/bigquery", |
| 123 "https://www.googleapis.com/auth/cloud-platform" |
| 124 ] |
| 125 }, |
| 126 "get": { |
| 127 "description": "Returns the dataset specified by datasetID."
, |
| 128 "httpMethod": "GET", |
| 129 "id": "bigquery.datasets.get", |
| 130 "parameterOrder": [ |
| 131 "projectId", |
| 132 "datasetId" |
| 133 ], |
| 134 "parameters": { |
| 135 "datasetId": { |
| 136 "description": "Dataset ID of the requested dataset"
, |
| 137 "location": "path", |
| 138 "required": true, |
| 139 "type": "string" |
| 140 }, |
| 141 "projectId": { |
| 142 "description": "Project ID of the requested dataset"
, |
| 143 "location": "path", |
| 144 "required": true, |
| 145 "type": "string" |
| 146 } |
| 147 }, |
| 148 "path": "projects/{projectId}/datasets/{datasetId}", |
| 149 "response": { |
| 150 "$ref": "Dataset" |
| 151 }, |
| 152 "scopes": [ |
| 153 "https://www.googleapis.com/auth/bigquery", |
| 154 "https://www.googleapis.com/auth/cloud-platform" |
| 155 ] |
| 156 }, |
| 157 "insert": { |
| 158 "description": "Creates a new empty dataset.", |
| 159 "httpMethod": "POST", |
| 160 "id": "bigquery.datasets.insert", |
| 161 "parameterOrder": [ |
| 162 "projectId" |
| 163 ], |
| 164 "parameters": { |
| 165 "projectId": { |
| 166 "description": "Project ID of the new dataset", |
| 167 "location": "path", |
| 168 "required": true, |
| 169 "type": "string" |
| 170 } |
| 171 }, |
| 172 "path": "projects/{projectId}/datasets", |
| 173 "request": { |
| 174 "$ref": "Dataset" |
| 175 }, |
| 176 "response": { |
| 177 "$ref": "Dataset" |
| 178 }, |
| 179 "scopes": [ |
| 180 "https://www.googleapis.com/auth/bigquery", |
| 181 "https://www.googleapis.com/auth/cloud-platform" |
| 182 ] |
| 183 }, |
| 184 "list": { |
| 185 "description": "Lists all the datasets in the specified proj
ect to which the caller has read access; however, a project owner can list (but
not necessarily get) all datasets in his project.", |
| 186 "httpMethod": "GET", |
| 187 "id": "bigquery.datasets.list", |
| 188 "parameterOrder": [ |
| 189 "projectId" |
| 190 ], |
| 191 "parameters": { |
| 192 "all": { |
| 193 "description": "Whether to list all datasets, includ
ing hidden ones", |
| 194 "location": "query", |
| 195 "type": "boolean" |
| 196 }, |
| 197 "maxResults": { |
| 198 "description": "The maximum number of results to ret
urn", |
| 199 "format": "uint32", |
| 200 "location": "query", |
| 201 "type": "integer" |
| 202 }, |
| 203 "pageToken": { |
| 204 "description": "Page token, returned by a previous c
all, to request the next page of results", |
| 205 "location": "query", |
| 206 "type": "string" |
| 207 }, |
| 208 "projectId": { |
| 209 "description": "Project ID of the datasets to be lis
ted", |
| 210 "location": "path", |
| 211 "required": true, |
| 212 "type": "string" |
| 213 } |
| 214 }, |
| 215 "path": "projects/{projectId}/datasets", |
| 216 "response": { |
| 217 "$ref": "DatasetList" |
| 218 }, |
| 219 "scopes": [ |
| 220 "https://www.googleapis.com/auth/bigquery", |
| 221 "https://www.googleapis.com/auth/cloud-platform" |
| 222 ] |
| 223 }, |
| 224 "patch": { |
| 225 "description": "Updates information in an existing dataset.
The update method replaces the entire dataset resource, whereas the patch method
only replaces fields that are provided in the submitted dataset resource. This
method supports patch semantics.", |
| 226 "httpMethod": "PATCH", |
| 227 "id": "bigquery.datasets.patch", |
| 228 "parameterOrder": [ |
| 229 "projectId", |
| 230 "datasetId" |
| 231 ], |
| 232 "parameters": { |
| 233 "datasetId": { |
| 234 "description": "Dataset ID of the dataset being upda
ted", |
| 235 "location": "path", |
| 236 "required": true, |
| 237 "type": "string" |
| 238 }, |
| 239 "projectId": { |
| 240 "description": "Project ID of the dataset being upda
ted", |
| 241 "location": "path", |
| 242 "required": true, |
| 243 "type": "string" |
| 244 } |
| 245 }, |
| 246 "path": "projects/{projectId}/datasets/{datasetId}", |
| 247 "request": { |
| 248 "$ref": "Dataset" |
| 249 }, |
| 250 "response": { |
| 251 "$ref": "Dataset" |
| 252 }, |
| 253 "scopes": [ |
| 254 "https://www.googleapis.com/auth/bigquery", |
| 255 "https://www.googleapis.com/auth/cloud-platform" |
| 256 ] |
| 257 }, |
| 258 "update": { |
| 259 "description": "Updates information in an existing dataset.
The update method replaces the entire dataset resource, whereas the patch method
only replaces fields that are provided in the submitted dataset resource.", |
| 260 "httpMethod": "PUT", |
| 261 "id": "bigquery.datasets.update", |
| 262 "parameterOrder": [ |
| 263 "projectId", |
| 264 "datasetId" |
| 265 ], |
| 266 "parameters": { |
| 267 "datasetId": { |
| 268 "description": "Dataset ID of the dataset being upda
ted", |
| 269 "location": "path", |
| 270 "required": true, |
| 271 "type": "string" |
| 272 }, |
| 273 "projectId": { |
| 274 "description": "Project ID of the dataset being upda
ted", |
| 275 "location": "path", |
| 276 "required": true, |
| 277 "type": "string" |
| 278 } |
| 279 }, |
| 280 "path": "projects/{projectId}/datasets/{datasetId}", |
| 281 "request": { |
| 282 "$ref": "Dataset" |
| 283 }, |
| 284 "response": { |
| 285 "$ref": "Dataset" |
| 286 }, |
| 287 "scopes": [ |
| 288 "https://www.googleapis.com/auth/bigquery", |
| 289 "https://www.googleapis.com/auth/cloud-platform" |
| 290 ] |
| 291 } |
| 292 } |
| 293 }, |
| 294 "jobs": { |
| 295 "methods": { |
| 296 "get": { |
| 297 "description": "Retrieves the specified job by ID.", |
| 298 "httpMethod": "GET", |
| 299 "id": "bigquery.jobs.get", |
| 300 "parameterOrder": [ |
| 301 "projectId", |
| 302 "jobId" |
| 303 ], |
| 304 "parameters": { |
| 305 "jobId": { |
| 306 "description": "Job ID of the requested job", |
| 307 "location": "path", |
| 308 "required": true, |
| 309 "type": "string" |
| 310 }, |
| 311 "projectId": { |
| 312 "description": "Project ID of the requested job", |
| 313 "location": "path", |
| 314 "required": true, |
| 315 "type": "string" |
| 316 } |
| 317 }, |
| 318 "path": "projects/{projectId}/jobs/{jobId}", |
| 319 "response": { |
| 320 "$ref": "Job" |
| 321 }, |
| 322 "scopes": [ |
| 323 "https://www.googleapis.com/auth/bigquery", |
| 324 "https://www.googleapis.com/auth/cloud-platform" |
| 325 ] |
| 326 }, |
| 327 "getQueryResults": { |
| 328 "description": "Retrieves the results of a query job.", |
| 329 "httpMethod": "GET", |
| 330 "id": "bigquery.jobs.getQueryResults", |
| 331 "parameterOrder": [ |
| 332 "projectId", |
| 333 "jobId" |
| 334 ], |
| 335 "parameters": { |
| 336 "jobId": { |
| 337 "description": "Job ID of the query job", |
| 338 "location": "path", |
| 339 "required": true, |
| 340 "type": "string" |
| 341 }, |
| 342 "maxResults": { |
| 343 "description": "Maximum number of results to read", |
| 344 "format": "uint32", |
| 345 "location": "query", |
| 346 "type": "integer" |
| 347 }, |
| 348 "pageToken": { |
| 349 "description": "Page token, returned by a previous c
all, to request the next page of results", |
| 350 "location": "query", |
| 351 "type": "string" |
| 352 }, |
| 353 "projectId": { |
| 354 "description": "Project ID of the query job", |
| 355 "location": "path", |
| 356 "required": true, |
| 357 "type": "string" |
| 358 }, |
| 359 "startIndex": { |
| 360 "description": "Zero-based index of the starting row
", |
| 361 "format": "uint64", |
| 362 "location": "query", |
| 363 "type": "string" |
| 364 }, |
| 365 "timeoutMs": { |
| 366 "description": "How long to wait for the query to co
mplete, in milliseconds, before returning. Default is to return immediately. If
the timeout passes before the job completes, the request will fail with a TIMEOU
T error", |
| 367 "format": "uint32", |
| 368 "location": "query", |
| 369 "type": "integer" |
| 370 } |
| 371 }, |
| 372 "path": "projects/{projectId}/queries/{jobId}", |
| 373 "response": { |
| 374 "$ref": "GetQueryResultsResponse" |
| 375 }, |
| 376 "scopes": [ |
| 377 "https://www.googleapis.com/auth/bigquery", |
| 378 "https://www.googleapis.com/auth/cloud-platform" |
| 379 ] |
| 380 }, |
| 381 "insert": { |
| 382 "description": "Starts a new asynchronous job.", |
| 383 "httpMethod": "POST", |
| 384 "id": "bigquery.jobs.insert", |
| 385 "mediaUpload": { |
| 386 "accept": [ |
| 387 "*/*" |
| 388 ], |
| 389 "protocols": { |
| 390 "resumable": { |
| 391 "multipart": true, |
| 392 "path": "/resumable/upload/bigquery/v2/projects/
{projectId}/jobs" |
| 393 }, |
| 394 "simple": { |
| 395 "multipart": true, |
| 396 "path": "/upload/bigquery/v2/projects/{projectId
}/jobs" |
| 397 } |
| 398 } |
| 399 }, |
| 400 "parameterOrder": [ |
| 401 "projectId" |
| 402 ], |
| 403 "parameters": { |
| 404 "projectId": { |
| 405 "description": "Project ID of the project that will
be billed for the job", |
| 406 "location": "path", |
| 407 "required": true, |
| 408 "type": "string" |
| 409 } |
| 410 }, |
| 411 "path": "projects/{projectId}/jobs", |
| 412 "request": { |
| 413 "$ref": "Job" |
| 414 }, |
| 415 "response": { |
| 416 "$ref": "Job" |
| 417 }, |
| 418 "scopes": [ |
| 419 "https://www.googleapis.com/auth/bigquery", |
| 420 "https://www.googleapis.com/auth/cloud-platform", |
| 421 "https://www.googleapis.com/auth/devstorage.full_control
", |
| 422 "https://www.googleapis.com/auth/devstorage.read_only", |
| 423 "https://www.googleapis.com/auth/devstorage.read_write" |
| 424 ], |
| 425 "supportsMediaUpload": true |
| 426 }, |
| 427 "list": { |
| 428 "description": "Lists all the Jobs in the specified project
that were started by the user. The job list returns in reverse chronological ord
er of when the jobs were created, starting with the most recent job created.", |
| 429 "httpMethod": "GET", |
| 430 "id": "bigquery.jobs.list", |
| 431 "parameterOrder": [ |
| 432 "projectId" |
| 433 ], |
| 434 "parameters": { |
| 435 "allUsers": { |
| 436 "description": "Whether to display jobs owned by all
users in the project. Default false", |
| 437 "location": "query", |
| 438 "type": "boolean" |
| 439 }, |
| 440 "maxResults": { |
| 441 "description": "Maximum number of results to return"
, |
| 442 "format": "uint32", |
| 443 "location": "query", |
| 444 "type": "integer" |
| 445 }, |
| 446 "pageToken": { |
| 447 "description": "Page token, returned by a previous c
all, to request the next page of results", |
| 448 "location": "query", |
| 449 "type": "string" |
| 450 }, |
| 451 "projectId": { |
| 452 "description": "Project ID of the jobs to list", |
| 453 "location": "path", |
| 454 "required": true, |
| 455 "type": "string" |
| 456 }, |
| 457 "projection": { |
| 458 "description": "Restrict information returned to a s
et of selected fields", |
| 459 "enum": [ |
| 460 "full", |
| 461 "minimal" |
| 462 ], |
| 463 "enumDescriptions": [ |
| 464 "Includes all job data", |
| 465 "Does not include the job configuration" |
| 466 ], |
| 467 "location": "query", |
| 468 "type": "string" |
| 469 }, |
| 470 "stateFilter": { |
| 471 "description": "Filter for job state", |
| 472 "enum": [ |
| 473 "done", |
| 474 "pending", |
| 475 "running" |
| 476 ], |
| 477 "enumDescriptions": [ |
| 478 "Finished jobs", |
| 479 "Pending jobs", |
| 480 "Running jobs" |
| 481 ], |
| 482 "location": "query", |
| 483 "repeated": true, |
| 484 "type": "string" |
| 485 } |
| 486 }, |
| 487 "path": "projects/{projectId}/jobs", |
| 488 "response": { |
| 489 "$ref": "JobList" |
| 490 }, |
| 491 "scopes": [ |
| 492 "https://www.googleapis.com/auth/bigquery", |
| 493 "https://www.googleapis.com/auth/cloud-platform" |
| 494 ] |
| 495 }, |
| 496 "query": { |
| 497 "description": "Runs a BigQuery SQL query synchronously and
returns query results if the query completes within a specified timeout.", |
| 498 "httpMethod": "POST", |
| 499 "id": "bigquery.jobs.query", |
| 500 "parameterOrder": [ |
| 501 "projectId" |
| 502 ], |
| 503 "parameters": { |
| 504 "projectId": { |
| 505 "description": "Project ID of the project billed for
the query", |
| 506 "location": "path", |
| 507 "required": true, |
| 508 "type": "string" |
| 509 } |
| 510 }, |
| 511 "path": "projects/{projectId}/queries", |
| 512 "request": { |
| 513 "$ref": "QueryRequest" |
| 514 }, |
| 515 "response": { |
| 516 "$ref": "QueryResponse" |
| 517 }, |
| 518 "scopes": [ |
| 519 "https://www.googleapis.com/auth/bigquery", |
| 520 "https://www.googleapis.com/auth/cloud-platform" |
| 521 ] |
| 522 } |
| 523 } |
| 524 }, |
| 525 "projects": { |
| 526 "methods": { |
| 527 "list": { |
| 528 "description": "Lists the projects to which you have at leas
t read access.", |
| 529 "httpMethod": "GET", |
| 530 "id": "bigquery.projects.list", |
| 531 "parameters": { |
| 532 "maxResults": { |
| 533 "description": "Maximum number of results to return"
, |
| 534 "format": "uint32", |
| 535 "location": "query", |
| 536 "type": "integer" |
| 537 }, |
| 538 "pageToken": { |
| 539 "description": "Page token, returned by a previous c
all, to request the next page of results", |
| 540 "location": "query", |
| 541 "type": "string" |
| 542 } |
| 543 }, |
| 544 "path": "projects", |
| 545 "response": { |
| 546 "$ref": "ProjectList" |
| 547 }, |
| 548 "scopes": [ |
| 549 "https://www.googleapis.com/auth/bigquery", |
| 550 "https://www.googleapis.com/auth/cloud-platform" |
| 551 ] |
| 552 } |
| 553 } |
| 554 }, |
| 555 "tabledata": { |
| 556 "methods": { |
| 557 "insertAll": { |
| 558 "description": "Streams data into BigQuery one record at a t
ime without needing to run a load job.", |
| 559 "httpMethod": "POST", |
| 560 "id": "bigquery.tabledata.insertAll", |
| 561 "parameterOrder": [ |
| 562 "projectId", |
| 563 "datasetId", |
| 564 "tableId" |
| 565 ], |
| 566 "parameters": { |
| 567 "datasetId": { |
| 568 "description": "Dataset ID of the destination table.
", |
| 569 "location": "path", |
| 570 "required": true, |
| 571 "type": "string" |
| 572 }, |
| 573 "projectId": { |
| 574 "description": "Project ID of the destination table.
", |
| 575 "location": "path", |
| 576 "required": true, |
| 577 "type": "string" |
| 578 }, |
| 579 "tableId": { |
| 580 "description": "Table ID of the destination table.", |
| 581 "location": "path", |
| 582 "required": true, |
| 583 "type": "string" |
| 584 } |
| 585 }, |
| 586 "path": "projects/{projectId}/datasets/{datasetId}/tables/{t
ableId}/insertAll", |
| 587 "request": { |
| 588 "$ref": "TableDataInsertAllRequest" |
| 589 }, |
| 590 "response": { |
| 591 "$ref": "TableDataInsertAllResponse" |
| 592 }, |
| 593 "scopes": [ |
| 594 "https://www.googleapis.com/auth/bigquery", |
| 595 "https://www.googleapis.com/auth/bigquery.insertdata", |
| 596 "https://www.googleapis.com/auth/cloud-platform" |
| 597 ] |
| 598 }, |
| 599 "list": { |
| 600 "description": "Retrieves table data from a specified set of
rows.", |
| 601 "httpMethod": "GET", |
| 602 "id": "bigquery.tabledata.list", |
| 603 "parameterOrder": [ |
| 604 "projectId", |
| 605 "datasetId", |
| 606 "tableId" |
| 607 ], |
| 608 "parameters": { |
| 609 "datasetId": { |
| 610 "description": "Dataset ID of the table to read", |
| 611 "location": "path", |
| 612 "required": true, |
| 613 "type": "string" |
| 614 }, |
| 615 "maxResults": { |
| 616 "description": "Maximum number of results to return"
, |
| 617 "format": "uint32", |
| 618 "location": "query", |
| 619 "type": "integer" |
| 620 }, |
| 621 "pageToken": { |
| 622 "description": "Page token, returned by a previous c
all, identifying the result set", |
| 623 "location": "query", |
| 624 "type": "string" |
| 625 }, |
| 626 "projectId": { |
| 627 "description": "Project ID of the table to read", |
| 628 "location": "path", |
| 629 "required": true, |
| 630 "type": "string" |
| 631 }, |
| 632 "startIndex": { |
| 633 "description": "Zero-based index of the starting row
to read", |
| 634 "format": "uint64", |
| 635 "location": "query", |
| 636 "type": "string" |
| 637 }, |
| 638 "tableId": { |
| 639 "description": "Table ID of the table to read", |
| 640 "location": "path", |
| 641 "required": true, |
| 642 "type": "string" |
| 643 } |
| 644 }, |
| 645 "path": "projects/{projectId}/datasets/{datasetId}/tables/{t
ableId}/data", |
| 646 "response": { |
| 647 "$ref": "TableDataList" |
| 648 }, |
| 649 "scopes": [ |
| 650 "https://www.googleapis.com/auth/bigquery", |
| 651 "https://www.googleapis.com/auth/cloud-platform" |
| 652 ] |
| 653 } |
| 654 } |
| 655 }, |
| 656 "tables": { |
| 657 "methods": { |
| 658 "delete": { |
| 659 "description": "Deletes the table specified by tableId from
the dataset. If the table contains data, all the data will be deleted.", |
| 660 "httpMethod": "DELETE", |
| 661 "id": "bigquery.tables.delete", |
| 662 "parameterOrder": [ |
| 663 "projectId", |
| 664 "datasetId", |
| 665 "tableId" |
| 666 ], |
| 667 "parameters": { |
| 668 "datasetId": { |
| 669 "description": "Dataset ID of the table to delete", |
| 670 "location": "path", |
| 671 "required": true, |
| 672 "type": "string" |
| 673 }, |
| 674 "projectId": { |
| 675 "description": "Project ID of the table to delete", |
| 676 "location": "path", |
| 677 "required": true, |
| 678 "type": "string" |
| 679 }, |
| 680 "tableId": { |
| 681 "description": "Table ID of the table to delete", |
| 682 "location": "path", |
| 683 "required": true, |
| 684 "type": "string" |
| 685 } |
| 686 }, |
| 687 "path": "projects/{projectId}/datasets/{datasetId}/tables/{t
ableId}", |
| 688 "scopes": [ |
| 689 "https://www.googleapis.com/auth/bigquery", |
| 690 "https://www.googleapis.com/auth/cloud-platform" |
| 691 ] |
| 692 }, |
| 693 "get": { |
| 694 "description": "Gets the specified table resource by table I
D. This method does not return the data in the table, it only returns the table
resource, which describes the structure of this table.", |
| 695 "httpMethod": "GET", |
| 696 "id": "bigquery.tables.get", |
| 697 "parameterOrder": [ |
| 698 "projectId", |
| 699 "datasetId", |
| 700 "tableId" |
| 701 ], |
| 702 "parameters": { |
| 703 "datasetId": { |
| 704 "description": "Dataset ID of the requested table", |
| 705 "location": "path", |
| 706 "required": true, |
| 707 "type": "string" |
| 708 }, |
| 709 "projectId": { |
| 710 "description": "Project ID of the requested table", |
| 711 "location": "path", |
| 712 "required": true, |
| 713 "type": "string" |
| 714 }, |
| 715 "tableId": { |
| 716 "description": "Table ID of the requested table", |
| 717 "location": "path", |
| 718 "required": true, |
| 719 "type": "string" |
| 720 } |
| 721 }, |
| 722 "path": "projects/{projectId}/datasets/{datasetId}/tables/{t
ableId}", |
| 723 "response": { |
| 724 "$ref": "Table" |
| 725 }, |
| 726 "scopes": [ |
| 727 "https://www.googleapis.com/auth/bigquery", |
| 728 "https://www.googleapis.com/auth/cloud-platform" |
| 729 ] |
| 730 }, |
| 731 "insert": { |
| 732 "description": "Creates a new, empty table in the dataset.", |
| 733 "httpMethod": "POST", |
| 734 "id": "bigquery.tables.insert", |
| 735 "parameterOrder": [ |
| 736 "projectId", |
| 737 "datasetId" |
| 738 ], |
| 739 "parameters": { |
| 740 "datasetId": { |
| 741 "description": "Dataset ID of the new table", |
| 742 "location": "path", |
| 743 "required": true, |
| 744 "type": "string" |
| 745 }, |
| 746 "projectId": { |
| 747 "description": "Project ID of the new table", |
| 748 "location": "path", |
| 749 "required": true, |
| 750 "type": "string" |
| 751 } |
| 752 }, |
| 753 "path": "projects/{projectId}/datasets/{datasetId}/tables", |
| 754 "request": { |
| 755 "$ref": "Table" |
| 756 }, |
| 757 "response": { |
| 758 "$ref": "Table" |
| 759 }, |
| 760 "scopes": [ |
| 761 "https://www.googleapis.com/auth/bigquery", |
| 762 "https://www.googleapis.com/auth/cloud-platform" |
| 763 ] |
| 764 }, |
| 765 "list": { |
| 766 "description": "Lists all tables in the specified dataset.", |
| 767 "httpMethod": "GET", |
| 768 "id": "bigquery.tables.list", |
| 769 "parameterOrder": [ |
| 770 "projectId", |
| 771 "datasetId" |
| 772 ], |
| 773 "parameters": { |
| 774 "datasetId": { |
| 775 "description": "Dataset ID of the tables to list", |
| 776 "location": "path", |
| 777 "required": true, |
| 778 "type": "string" |
| 779 }, |
| 780 "maxResults": { |
| 781 "description": "Maximum number of results to return"
, |
| 782 "format": "uint32", |
| 783 "location": "query", |
| 784 "type": "integer" |
| 785 }, |
| 786 "pageToken": { |
| 787 "description": "Page token, returned by a previous c
all, to request the next page of results", |
| 788 "location": "query", |
| 789 "type": "string" |
| 790 }, |
| 791 "projectId": { |
| 792 "description": "Project ID of the tables to list", |
| 793 "location": "path", |
| 794 "required": true, |
| 795 "type": "string" |
| 796 } |
| 797 }, |
| 798 "path": "projects/{projectId}/datasets/{datasetId}/tables", |
| 799 "response": { |
| 800 "$ref": "TableList" |
| 801 }, |
| 802 "scopes": [ |
| 803 "https://www.googleapis.com/auth/bigquery", |
| 804 "https://www.googleapis.com/auth/cloud-platform" |
| 805 ] |
| 806 }, |
| 807 "patch": { |
| 808 "description": "Updates information in an existing table. Th
e update method replaces the entire table resource, whereas the patch method onl
y replaces fields that are provided in the submitted table resource. This method
supports patch semantics.", |
| 809 "httpMethod": "PATCH", |
| 810 "id": "bigquery.tables.patch", |
| 811 "parameterOrder": [ |
| 812 "projectId", |
| 813 "datasetId", |
| 814 "tableId" |
| 815 ], |
| 816 "parameters": { |
| 817 "datasetId": { |
| 818 "description": "Dataset ID of the table to update", |
| 819 "location": "path", |
| 820 "required": true, |
| 821 "type": "string" |
| 822 }, |
| 823 "projectId": { |
| 824 "description": "Project ID of the table to update", |
| 825 "location": "path", |
| 826 "required": true, |
| 827 "type": "string" |
| 828 }, |
| 829 "tableId": { |
| 830 "description": "Table ID of the table to update", |
| 831 "location": "path", |
| 832 "required": true, |
| 833 "type": "string" |
| 834 } |
| 835 }, |
| 836 "path": "projects/{projectId}/datasets/{datasetId}/tables/{t
ableId}", |
| 837 "request": { |
| 838 "$ref": "Table" |
| 839 }, |
| 840 "response": { |
| 841 "$ref": "Table" |
| 842 }, |
| 843 "scopes": [ |
| 844 "https://www.googleapis.com/auth/bigquery", |
| 845 "https://www.googleapis.com/auth/cloud-platform" |
| 846 ] |
| 847 }, |
| 848 "update": { |
| 849 "description": "Updates information in an existing table. Th
e update method replaces the entire table resource, whereas the patch method onl
y replaces fields that are provided in the submitted table resource.", |
| 850 "httpMethod": "PUT", |
| 851 "id": "bigquery.tables.update", |
| 852 "parameterOrder": [ |
| 853 "projectId", |
| 854 "datasetId", |
| 855 "tableId" |
| 856 ], |
| 857 "parameters": { |
| 858 "datasetId": { |
| 859 "description": "Dataset ID of the table to update", |
| 860 "location": "path", |
| 861 "required": true, |
| 862 "type": "string" |
| 863 }, |
| 864 "projectId": { |
| 865 "description": "Project ID of the table to update", |
| 866 "location": "path", |
| 867 "required": true, |
| 868 "type": "string" |
| 869 }, |
| 870 "tableId": { |
| 871 "description": "Table ID of the table to update", |
| 872 "location": "path", |
| 873 "required": true, |
| 874 "type": "string" |
| 875 } |
| 876 }, |
| 877 "path": "projects/{projectId}/datasets/{datasetId}/tables/{t
ableId}", |
| 878 "request": { |
| 879 "$ref": "Table" |
| 880 }, |
| 881 "response": { |
| 882 "$ref": "Table" |
| 883 }, |
| 884 "scopes": [ |
| 885 "https://www.googleapis.com/auth/bigquery", |
| 886 "https://www.googleapis.com/auth/cloud-platform" |
| 887 ] |
| 888 } |
| 889 } |
| 890 } |
| 891 }, |
| 892 "revision": "20140908", |
| 893 "rootUrl": "https://www.googleapis.com/", |
| 894 "schemas": { |
| 895 "Dataset": { |
| 896 "id": "Dataset", |
| 897 "properties": { |
| 898 "access": { |
| 899 "description": "[Optional] An array of objects that define d
ataset access for one or more entities. You can set this property when inserting
or updating a dataset in order to control who is allowed to access the data. If
unspecified at dataset creation time, BigQuery adds default dataset access for
the following entities: access.specialGroup: projectReaders; access.role: READER
; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup:
projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email];
access.role: OWNER;", |
| 900 "items": { |
| 901 "properties": { |
| 902 "domain": { |
| 903 "description": "[Pick one] A domain to grant acc
ess to. Any users signed in with the domain specified will be granted the specif
ied access. Example: \"example.com\".", |
| 904 "type": "string" |
| 905 }, |
| 906 "groupByEmail": { |
| 907 "description": "[Pick one] An email address of a
Google Group to grant access to.", |
| 908 "type": "string" |
| 909 }, |
| 910 "role": { |
| 911 "description": "[Required] Describes the rights
granted to the user specified by the other member of the access object. The foll
owing string values are supported: READER, WRITER, OWNER.", |
| 912 "type": "string" |
| 913 }, |
| 914 "specialGroup": { |
| 915 "description": "[Pick one] A special group to gr
ant access to. Possible values include: projectOwners: Owners of the enclosing p
roject. projectReaders: Readers of the enclosing project. projectWriters: Writer
s of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery us
ers.", |
| 916 "type": "string" |
| 917 }, |
| 918 "userByEmail": { |
| 919 "description": "[Pick one] An email address of a
user to grant access to. For example: fred@example.com.", |
| 920 "type": "string" |
| 921 }, |
| 922 "view": { |
| 923 "$ref": "TableReference", |
| 924 "description": "[Pick one] A view from a differe
nt dataset to grant access to. Queries executed against that view will have read
access to tables in this dataset. The role field is not required when this fiel
d is set. If that view is updated by any user, access to the view needs to be gr
anted again via an update operation." |
| 925 } |
| 926 }, |
| 927 "type": "object" |
| 928 }, |
| 929 "type": "array" |
| 930 }, |
| 931 "creationTime": { |
| 932 "description": "[Output-only] The time when this dataset was
created, in milliseconds since the epoch.", |
| 933 "format": "int64", |
| 934 "type": "string" |
| 935 }, |
| 936 "datasetReference": { |
| 937 "$ref": "DatasetReference", |
| 938 "description": "[Required] A reference that identifies the d
ataset." |
| 939 }, |
| 940 "description": { |
| 941 "description": "[Optional] A user-friendly description of th
e dataset.", |
| 942 "type": "string" |
| 943 }, |
| 944 "etag": { |
| 945 "description": "[Output-only] A hash of the resource.", |
| 946 "type": "string" |
| 947 }, |
| 948 "friendlyName": { |
| 949 "description": "[Optional] A descriptive name for the datase
t.", |
| 950 "type": "string" |
| 951 }, |
| 952 "id": { |
| 953 "description": "[Output-only] The fully-qualified unique nam
e of the dataset in the format projectId:datasetId. The dataset name without the
project name is given in the datasetId field. When creating a new dataset, leav
e this field blank, and instead specify the datasetId field.", |
| 954 "type": "string" |
| 955 }, |
| 956 "kind": { |
| 957 "default": "bigquery#dataset", |
| 958 "description": "[Output-only] The resource type.", |
| 959 "type": "string" |
| 960 }, |
| 961 "lastModifiedTime": { |
| 962 "description": "[Output-only] The date when this dataset or
any of its tables was last modified, in milliseconds since the epoch.", |
| 963 "format": "int64", |
| 964 "type": "string" |
| 965 }, |
| 966 "selfLink": { |
| 967 "description": "[Output-only] A URL that can be used to acce
ss the resource again. You can use this URL in Get or Update requests to the res
ource.", |
| 968 "type": "string" |
| 969 } |
| 970 }, |
| 971 "type": "object" |
| 972 }, |
| 973 "DatasetList": { |
| 974 "id": "DatasetList", |
| 975 "properties": { |
| 976 "datasets": { |
| 977 "description": "An array of the dataset resources in the pro
ject. Each resource contains basic information. For full information about a par
ticular dataset resource, use the Datasets: get method. This property is omitted
when there are no datasets in the project.", |
| 978 "items": { |
| 979 "properties": { |
| 980 "datasetReference": { |
| 981 "$ref": "DatasetReference", |
| 982 "description": "The dataset reference. Use this
property to access specific parts of the dataset's ID, such as project ID or dat
aset ID." |
| 983 }, |
| 984 "friendlyName": { |
| 985 "description": "A descriptive name for the datas
et, if one exists.", |
| 986 "type": "string" |
| 987 }, |
| 988 "id": { |
| 989 "description": "The fully-qualified, unique, opa
que ID of the dataset.", |
| 990 "type": "string" |
| 991 }, |
| 992 "kind": { |
| 993 "default": "bigquery#dataset", |
| 994 "description": "The resource type. This property
always returns the value \"bigquery#dataset\".", |
| 995 "type": "string" |
| 996 } |
| 997 }, |
| 998 "type": "object" |
| 999 }, |
| 1000 "type": "array" |
| 1001 }, |
| 1002 "etag": { |
| 1003 "description": "A hash value of the results page. You can us
e this property to determine if the page has changed since the last request.", |
| 1004 "type": "string" |
| 1005 }, |
| 1006 "kind": { |
| 1007 "default": "bigquery#datasetList", |
| 1008 "description": "The list type. This property always returns
the value \"bigquery#datasetList\".", |
| 1009 "type": "string" |
| 1010 }, |
| 1011 "nextPageToken": { |
| 1012 "description": "A token that can be used to request the next
results page. This property is omitted on the final results page.", |
| 1013 "type": "string" |
| 1014 } |
| 1015 }, |
| 1016 "type": "object" |
| 1017 }, |
| 1018 "DatasetReference": { |
| 1019 "id": "DatasetReference", |
| 1020 "properties": { |
| 1021 "datasetId": { |
| 1022 "annotations": { |
| 1023 "required": [ |
| 1024 "bigquery.datasets.update" |
| 1025 ] |
| 1026 }, |
| 1027 "description": "[Required] A unique ID for this dataset, wit
hout the project name.", |
| 1028 "type": "string" |
| 1029 }, |
| 1030 "projectId": { |
| 1031 "annotations": { |
| 1032 "required": [ |
| 1033 "bigquery.datasets.update" |
| 1034 ] |
| 1035 }, |
| 1036 "description": "[Optional] The ID of the container project."
, |
| 1037 "type": "string" |
| 1038 } |
| 1039 }, |
| 1040 "type": "object" |
| 1041 }, |
| 1042 "ErrorProto": { |
| 1043 "id": "ErrorProto", |
| 1044 "properties": { |
| 1045 "debugInfo": { |
| 1046 "description": "Debugging information. This property is inte
rnal to Google and should not be used.", |
| 1047 "type": "string" |
| 1048 }, |
| 1049 "location": { |
| 1050 "description": "Specifies where the error occurred, if prese
nt.", |
| 1051 "type": "string" |
| 1052 }, |
| 1053 "message": { |
| 1054 "description": "A human-readable description of the error.", |
| 1055 "type": "string" |
| 1056 }, |
| 1057 "reason": { |
| 1058 "description": "A short error code that summarizes the error
.", |
| 1059 "type": "string" |
| 1060 } |
| 1061 }, |
| 1062 "type": "object" |
| 1063 }, |
| 1064 "GetQueryResultsResponse": { |
| 1065 "id": "GetQueryResultsResponse", |
| 1066 "properties": { |
| 1067 "cacheHit": { |
| 1068 "description": "Whether the query result was fetched from th
e query cache.", |
| 1069 "type": "boolean" |
| 1070 }, |
| 1071 "etag": { |
| 1072 "description": "A hash of this response.", |
| 1073 "type": "string" |
| 1074 }, |
| 1075 "jobComplete": { |
| 1076 "description": "Whether the query has completed or not. If r
ows or totalRows are present, this will always be true. If this is false, totalR
ows will not be available.", |
| 1077 "type": "boolean" |
| 1078 }, |
| 1079 "jobReference": { |
| 1080 "$ref": "JobReference", |
| 1081 "description": "Reference to the BigQuery Job that was creat
ed to run the query. This field will be present even if the original request tim
ed out, in which case GetQueryResults can be used to read the results once the q
uery has completed. Since this API only returns the first page of results, subse
quent pages can be fetched via the same mechanism (GetQueryResults)." |
| 1082 }, |
| 1083 "kind": { |
| 1084 "default": "bigquery#getQueryResultsResponse", |
| 1085 "description": "The resource type of the response.", |
| 1086 "type": "string" |
| 1087 }, |
| 1088 "pageToken": { |
| 1089 "description": "A token used for paging results.", |
| 1090 "type": "string" |
| 1091 }, |
| 1092 "rows": { |
| 1093 "description": "An object with as many results as can be con
tained within the maximum permitted reply size. To get any additional rows, you
can call GetQueryResults and specify the jobReference returned above. Present on
ly when the query completes successfully.", |
| 1094 "items": { |
| 1095 "$ref": "TableRow" |
| 1096 }, |
| 1097 "type": "array" |
| 1098 }, |
| 1099 "schema": { |
| 1100 "$ref": "TableSchema", |
| 1101 "description": "The schema of the results. Present only when
the query completes successfully." |
| 1102 }, |
| 1103 "totalRows": { |
| 1104 "description": "The total number of rows in the complete que
ry result set, which can be more than the number of rows in this single page of
results. Present only when the query completes successfully.", |
| 1105 "format": "uint64", |
| 1106 "type": "string" |
| 1107 } |
| 1108 }, |
| 1109 "type": "object" |
| 1110 }, |
| 1111 "Job": { |
| 1112 "id": "Job", |
| 1113 "properties": { |
| 1114 "configuration": { |
| 1115 "$ref": "JobConfiguration", |
| 1116 "description": "[Required] Describes the job configuration." |
| 1117 }, |
| 1118 "etag": { |
| 1119 "description": "[Output-only] A hash of this resource.", |
| 1120 "type": "string" |
| 1121 }, |
| 1122 "id": { |
| 1123 "description": "[Output-only] Opaque ID field of the job", |
| 1124 "type": "string" |
| 1125 }, |
| 1126 "jobReference": { |
| 1127 "$ref": "JobReference", |
| 1128 "description": "[Optional] Reference describing the unique-p
er-user name of the job." |
| 1129 }, |
| 1130 "kind": { |
| 1131 "default": "bigquery#job", |
| 1132 "description": "[Output-only] The type of the resource.", |
| 1133 "type": "string" |
| 1134 }, |
| 1135 "selfLink": { |
| 1136 "description": "[Output-only] A URL that can be used to acce
ss this resource again.", |
| 1137 "type": "string" |
| 1138 }, |
| 1139 "statistics": { |
| 1140 "$ref": "JobStatistics", |
| 1141 "description": "[Output-only] Information about the job, inc
luding starting time and ending time of the job." |
| 1142 }, |
| 1143 "status": { |
| 1144 "$ref": "JobStatus", |
| 1145 "description": "[Output-only] The status of this job. Examin
e this value when polling an asynchronous job to see if the job is complete." |
| 1146 } |
| 1147 }, |
| 1148 "type": "object" |
| 1149 }, |
| 1150 "JobConfiguration": { |
| 1151 "id": "JobConfiguration", |
| 1152 "properties": { |
| 1153 "copy": { |
| 1154 "$ref": "JobConfigurationTableCopy", |
| 1155 "description": "[Pick one] Copies a table." |
| 1156 }, |
| 1157 "dryRun": { |
| 1158 "description": "[Optional] If set, don't actually run this j
ob. A valid query will return a mostly empty response with some processing stati
stics, while an invalid query will return the same error it would if it wasn't a
dry run. Behavior of non-query jobs is undefined.", |
| 1159 "type": "boolean" |
| 1160 }, |
| 1161 "extract": { |
| 1162 "$ref": "JobConfigurationExtract", |
| 1163 "description": "[Pick one] Configures an extract job." |
| 1164 }, |
| 1165 "link": { |
| 1166 "$ref": "JobConfigurationLink", |
| 1167 "description": "[Pick one] Configures a link job." |
| 1168 }, |
| 1169 "load": { |
| 1170 "$ref": "JobConfigurationLoad", |
| 1171 "description": "[Pick one] Configures a load job." |
| 1172 }, |
| 1173 "query": { |
| 1174 "$ref": "JobConfigurationQuery", |
| 1175 "description": "[Pick one] Configures a query job." |
| 1176 } |
| 1177 }, |
| 1178 "type": "object" |
| 1179 }, |
| 1180 "JobConfigurationExtract": { |
| 1181 "id": "JobConfigurationExtract", |
| 1182 "properties": { |
| 1183 "compression": { |
| 1184 "description": "[Optional] The compression type to use for e
xported files. Possible values include GZIP and NONE. The default value is NONE.
", |
| 1185 "type": "string" |
| 1186 }, |
| 1187 "destinationFormat": { |
| 1188 "description": "[Optional] The exported file format. Possibl
e values include CSV, NEWLINE_DELIMITED_JSON and AVRO. The default value is CSV.
Tables with nested or repeated fields cannot be exported as CSV.", |
| 1189 "type": "string" |
| 1190 }, |
| 1191 "destinationUri": { |
| 1192 "description": "[Pick one] DEPRECATED: Use destinationUris i
nstead, passing only one URI as necessary. The fully-qualified Google Cloud Stor
age URI where the extracted table should be written.", |
| 1193 "type": "string" |
| 1194 }, |
| 1195 "destinationUris": { |
| 1196 "description": "[Pick one] A list of fully-qualified Google
Cloud Storage URIs where the extracted table should be written.", |
| 1197 "items": { |
| 1198 "type": "string" |
| 1199 }, |
| 1200 "type": "array" |
| 1201 }, |
| 1202 "fieldDelimiter": { |
| 1203 "description": "[Optional] Delimiter to use between fields i
n the exported data. Default is ','", |
| 1204 "type": "string" |
| 1205 }, |
| 1206 "printHeader": { |
| 1207 "description": "[Optional] Whether to print out a header row
in the results. Default is true.", |
| 1208 "type": "boolean" |
| 1209 }, |
| 1210 "sourceTable": { |
| 1211 "$ref": "TableReference", |
| 1212 "description": "[Required] A reference to the table being ex
ported." |
| 1213 } |
| 1214 }, |
| 1215 "type": "object" |
| 1216 }, |
| 1217 "JobConfigurationLink": { |
| 1218 "id": "JobConfigurationLink", |
| 1219 "properties": { |
| 1220 "createDisposition": { |
| 1221 "description": "[Optional] Specifies whether the job is allo
wed to create new tables. The following values are supported: CREATE_IF_NEEDED:
If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table
must already exist. If it does not, a 'notFound' error is returned in the job r
esult. The default value is CREATE_IF_NEEDED. Creation, truncation and append ac
tions occur as one atomic update upon job completion.", |
| 1222 "type": "string" |
| 1223 }, |
| 1224 "destinationTable": { |
| 1225 "$ref": "TableReference", |
| 1226 "description": "[Required] The destination table of the link
job." |
| 1227 }, |
| 1228 "sourceUri": { |
| 1229 "description": "[Required] URI of source table to link.", |
| 1230 "items": { |
| 1231 "type": "string" |
| 1232 }, |
| 1233 "type": "array" |
| 1234 }, |
| 1235 "writeDisposition": { |
| 1236 "description": "[Optional] Specifies the action that occurs
if the destination table already exists. The following values are supported: WRI
TE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WR
ITE_APPEND: If the table already exists, BigQuery appends the data to the table.
WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error
is returned in the job result. The default value is WRITE_EMPTY. Each action is
atomic and only occurs if BigQuery is able to complete the job successfully. Cr
eation, truncation and append actions occur as one atomic update upon job comple
tion.", |
| 1237 "type": "string" |
| 1238 } |
| 1239 }, |
| 1240 "type": "object" |
| 1241 }, |
| 1242 "JobConfigurationLoad": { |
| 1243 "id": "JobConfigurationLoad", |
| 1244 "properties": { |
| 1245 "allowJaggedRows": { |
| 1246 "description": "[Optional] Accept rows that are missing trai
ling optional columns. The missing values are treated as nulls. Default is false
which treats short rows as errors. Only applicable to CSV, ignored for other fo
rmats.", |
| 1247 "type": "boolean" |
| 1248 }, |
| 1249 "allowQuotedNewlines": { |
| 1250 "description": "Indicates if BigQuery should allow quoted da
ta sections that contain newline characters in a CSV file. The default value is
false.", |
| 1251 "type": "boolean" |
| 1252 }, |
| 1253 "createDisposition": { |
| 1254 "description": "[Optional] Specifies whether the job is allo
wed to create new tables. The following values are supported: CREATE_IF_NEEDED:
If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table
must already exist. If it does not, a 'notFound' error is returned in the job r
esult. The default value is CREATE_IF_NEEDED. Creation, truncation and append ac
tions occur as one atomic update upon job completion.", |
| 1255 "type": "string" |
| 1256 }, |
| 1257 "destinationTable": { |
| 1258 "$ref": "TableReference", |
| 1259 "description": "[Required] The destination table to load the
data into." |
| 1260 }, |
| 1261 "encoding": { |
| 1262 "description": "[Optional] The character encoding of the dat
a. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. Big
Query decodes the data after the raw, binary data has been split using the value
s of the quote and fieldDelimiter properties.", |
| 1263 "type": "string" |
| 1264 }, |
| 1265 "fieldDelimiter": { |
| 1266 "description": "[Optional] The separator for fields in a CSV
file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the fi
rst byte of the encoded string to split the data in its raw, binary state. BigQu
ery also supports the escape sequence \"\\t\" to specify a tab separator. The de
fault value is a comma (',').", |
| 1267 "type": "string" |
| 1268 }, |
| 1269 "ignoreUnknownValues": { |
| 1270 "description": "[Optional] Accept rows that contain values t
hat do not match the schema. The unknown values are ignored. Default is false wh
ich treats unknown values as errors. For CSV this ignores extra values at the en
d of a line. For JSON this ignores named values that do not match any column nam
e.", |
| 1271 "type": "boolean" |
| 1272 }, |
| 1273 "maxBadRecords": { |
| 1274 "description": "[Optional] The maximum number of bad records
that BigQuery can ignore when running the job. If the number of bad records exc
eeds this value, an 'invalid' error is returned in the job result and the job fa
ils. The default value is 0, which requires that all records are valid.", |
| 1275 "format": "int32", |
| 1276 "type": "integer" |
| 1277 }, |
| 1278 "quote": { |
| 1279 "description": "[Optional] The value that is used to quote d
ata sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding,
and then uses the first byte of the encoded string to split the data in its raw
, binary state. The default value is a double-quote ('\"'). If your data does no
t contain quoted sections, set the property value to an empty string. If your da
ta contains quoted newline characters, you must also set the allowQuotedNewlines
property to true.", |
| 1280 "type": "string" |
| 1281 }, |
| 1282 "schema": { |
| 1283 "$ref": "TableSchema", |
| 1284 "description": "[Optional] The schema for the destination ta
ble. The schema can be omitted if the destination table already exists or if the
schema can be inferred from the loaded data." |
| 1285 }, |
| 1286 "schemaInline": { |
| 1287 "description": "[Deprecated] The inline schema. For CSV sche
mas, specify as \"Field1:Type1[,Field2:Type2]*\". For example, \"foo:STRING, bar
:INTEGER, baz:FLOAT\".", |
| 1288 "type": "string" |
| 1289 }, |
| 1290 "schemaInlineFormat": { |
| 1291 "description": "[Deprecated] The format of the schemaInline
property.", |
| 1292 "type": "string" |
| 1293 }, |
| 1294 "skipLeadingRows": { |
| 1295 "description": "[Optional] The number of rows at the top of
a CSV file that BigQuery will skip when loading the data. The default value is 0
. This property is useful if you have header rows in the file that should be ski
pped.", |
| 1296 "format": "int32", |
| 1297 "type": "integer" |
| 1298 }, |
| 1299 "sourceFormat": { |
| 1300 "description": "[Optional] The format of the data files. For
CSV files, specify \"CSV\". For datastore backups, specify \"DATASTORE_BACKUP\"
. For newline-delimited JSON, specify \"NEWLINE_DELIMITED_JSON\". The default va
lue is CSV.", |
| 1301 "type": "string" |
| 1302 }, |
| 1303 "sourceUris": { |
| 1304 "description": "[Required] The fully-qualified URIs that poi
nt to your data on Google Cloud Storage.", |
| 1305 "items": { |
| 1306 "type": "string" |
| 1307 }, |
| 1308 "type": "array" |
| 1309 }, |
| 1310 "writeDisposition": { |
| 1311 "description": "[Optional] Specifies the action that occurs
if the destination table already exists. The following values are supported: WRI
TE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WR
ITE_APPEND: If the table already exists, BigQuery appends the data to the table.
WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error
is returned in the job result. The default value is WRITE_EMPTY. Each action is
atomic and only occurs if BigQuery is able to complete the job successfully. Cr
eation, truncation and append actions occur as one atomic update upon job comple
tion.", |
| 1312 "type": "string" |
| 1313 } |
| 1314 }, |
| 1315 "type": "object" |
| 1316 }, |
| 1317 "JobConfigurationQuery": { |
| 1318 "id": "JobConfigurationQuery", |
| 1319 "properties": { |
| 1320 "allowLargeResults": { |
| 1321 "description": "If true, allows the query to produce arbitra
rily large result tables at a slight cost in performance. Requires destinationTa
ble to be set.", |
| 1322 "type": "boolean" |
| 1323 }, |
| 1324 "createDisposition": { |
| 1325 "description": "[Optional] Specifies whether the job is allo
wed to create new tables. The following values are supported: CREATE_IF_NEEDED:
If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table
must already exist. If it does not, a 'notFound' error is returned in the job r
esult. The default value is CREATE_IF_NEEDED. Creation, truncation and append ac
tions occur as one atomic update upon job completion.", |
| 1326 "type": "string" |
| 1327 }, |
| 1328 "defaultDataset": { |
| 1329 "$ref": "DatasetReference", |
| 1330 "description": "[Optional] Specifies the default dataset to
use for unqualified table names in the query." |
| 1331 }, |
| 1332 "destinationTable": { |
| 1333 "$ref": "TableReference", |
| 1334 "description": "[Optional] Describes the table where the que
ry results should be stored. If not present, a new table will be created to stor
e the results." |
| 1335 }, |
| 1336 "flattenResults": { |
| 1337 "description": "[Experimental] Flattens all nested and repea
ted fields in the query results. The default value is true. allowLargeResults mu
st be true if this is set to false.", |
| 1338 "type": "boolean" |
| 1339 }, |
| 1340 "preserveNulls": { |
| 1341 "description": "[Deprecated] This property is deprecated.", |
| 1342 "type": "boolean" |
| 1343 }, |
| 1344 "priority": { |
| 1345 "description": "[Optional] Specifies a priority for the quer
y. Possible values include INTERACTIVE and BATCH. The default value is INTERACTI
VE.", |
| 1346 "type": "string" |
| 1347 }, |
| 1348 "query": { |
| 1349 "description": "[Required] BigQuery SQL query to execute.", |
| 1350 "type": "string" |
| 1351 }, |
| 1352 "useQueryCache": { |
| 1353 "description": "[Optional] Whether to look for the result in
the query cache. The query cache is a best-effort cache that will be flushed wh
enever tables in the query are modified. Moreover, the query cache is only avail
able when a query does not have a destination table specified.", |
| 1354 "type": "boolean" |
| 1355 }, |
| 1356 "writeDisposition": { |
| 1357 "description": "[Optional] Specifies the action that occurs
if the destination table already exists. The following values are supported: WRI
TE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WR
ITE_APPEND: If the table already exists, BigQuery appends the data to the table.
WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error
is returned in the job result. The default value is WRITE_EMPTY. Each action is
atomic and only occurs if BigQuery is able to complete the job successfully. Cr
eation, truncation and append actions occur as one atomic update upon job comple
tion.", |
| 1358 "type": "string" |
| 1359 } |
| 1360 }, |
| 1361 "type": "object" |
| 1362 }, |
| 1363 "JobConfigurationTableCopy": { |
| 1364 "id": "JobConfigurationTableCopy", |
| 1365 "properties": { |
| 1366 "createDisposition": { |
| 1367 "description": "[Optional] Specifies whether the job is allo
wed to create new tables. The following values are supported: CREATE_IF_NEEDED:
If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table
must already exist. If it does not, a 'notFound' error is returned in the job r
esult. The default value is CREATE_IF_NEEDED. Creation, truncation and append ac
tions occur as one atomic update upon job completion.", |
| 1368 "type": "string" |
| 1369 }, |
| 1370 "destinationTable": { |
| 1371 "$ref": "TableReference", |
| 1372 "description": "[Required] The destination table" |
| 1373 }, |
| 1374 "sourceTable": { |
| 1375 "$ref": "TableReference", |
| 1376 "description": "[Pick one] Source table to copy." |
| 1377 }, |
| 1378 "sourceTables": { |
| 1379 "description": "[Pick one] Source tables to copy.", |
| 1380 "items": { |
| 1381 "$ref": "TableReference" |
| 1382 }, |
| 1383 "type": "array" |
| 1384 }, |
| 1385 "writeDisposition": { |
| 1386 "description": "[Optional] Specifies the action that occurs
if the destination table already exists. The following values are supported: WRI
TE_TRUNCATE: If the table already exists, BigQuery overwrites the table data. WR
ITE_APPEND: If the table already exists, BigQuery appends the data to the table.
WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error
is returned in the job result. The default value is WRITE_EMPTY. Each action is
atomic and only occurs if BigQuery is able to complete the job successfully. Cr
eation, truncation and append actions occur as one atomic update upon job comple
tion.", |
| 1387 "type": "string" |
| 1388 } |
| 1389 }, |
| 1390 "type": "object" |
| 1391 }, |
| 1392 "JobList": { |
| 1393 "id": "JobList", |
| 1394 "properties": { |
| 1395 "etag": { |
| 1396 "description": "A hash of this page of results.", |
| 1397 "type": "string" |
| 1398 }, |
| 1399 "jobs": { |
| 1400 "description": "List of jobs that were requested.", |
| 1401 "items": { |
| 1402 "properties": { |
| 1403 "configuration": { |
| 1404 "$ref": "JobConfiguration", |
| 1405 "description": "[Full-projection-only] Specifies
the job configuration." |
| 1406 }, |
| 1407 "errorResult": { |
| 1408 "$ref": "ErrorProto", |
| 1409 "description": "A result object that will be pre
sent only if the job has failed." |
| 1410 }, |
| 1411 "id": { |
| 1412 "description": "Unique opaque ID of the job.", |
| 1413 "type": "string" |
| 1414 }, |
| 1415 "jobReference": { |
| 1416 "$ref": "JobReference", |
| 1417 "description": "Job reference uniquely identifyi
ng the job." |
| 1418 }, |
| 1419 "kind": { |
| 1420 "default": "bigquery#job", |
| 1421 "description": "The resource type.", |
| 1422 "type": "string" |
| 1423 }, |
| 1424 "state": { |
| 1425 "description": "Running state of the job. When t
he state is DONE, errorResult can be checked to determine whether the job succee
ded or failed.", |
| 1426 "type": "string" |
| 1427 }, |
| 1428 "statistics": { |
| 1429 "$ref": "JobStatistics", |
| 1430 "description": "[Output-only] Information about
the job, including starting time and ending time of the job." |
| 1431 }, |
| 1432 "status": { |
| 1433 "$ref": "JobStatus", |
| 1434 "description": "[Full-projection-only] Describes
the state of the job." |
| 1435 }, |
| 1436 "user_email": { |
| 1437 "description": "[Full-projection-only] User who
ran the job.", |
| 1438 "type": "string" |
| 1439 } |
| 1440 }, |
| 1441 "type": "object" |
| 1442 }, |
| 1443 "type": "array" |
| 1444 }, |
| 1445 "kind": { |
| 1446 "default": "bigquery#jobList", |
| 1447 "description": "The resource type of the response.", |
| 1448 "type": "string" |
| 1449 }, |
| 1450 "nextPageToken": { |
| 1451 "description": "A token to request the next page of results.
", |
| 1452 "type": "string" |
| 1453 }, |
| 1454 "totalItems": { |
| 1455 "description": "Total number of jobs in this collection.", |
| 1456 "format": "int32", |
| 1457 "type": "integer" |
| 1458 } |
| 1459 }, |
| 1460 "type": "object" |
| 1461 }, |
| 1462 "JobReference": { |
| 1463 "id": "JobReference", |
| 1464 "properties": { |
| 1465 "jobId": { |
| 1466 "annotations": { |
| 1467 "required": [ |
| 1468 "bigquery.jobs.getQueryResults" |
| 1469 ] |
| 1470 }, |
| 1471 "description": "[Required] ID of the job.", |
| 1472 "type": "string" |
| 1473 }, |
| 1474 "projectId": { |
| 1475 "annotations": { |
| 1476 "required": [ |
| 1477 "bigquery.jobs.getQueryResults" |
| 1478 ] |
| 1479 }, |
| 1480 "description": "[Required] Project ID being billed for the j
ob.", |
| 1481 "type": "string" |
| 1482 } |
| 1483 }, |
| 1484 "type": "object" |
| 1485 }, |
| 1486 "JobStatistics": { |
| 1487 "id": "JobStatistics", |
| 1488 "properties": { |
| 1489 "creationTime": { |
| 1490 "description": "[Output-only] Creation time of this job, in
milliseconds since the epoch. This field will be present on all jobs.", |
| 1491 "format": "int64", |
| 1492 "type": "string" |
| 1493 }, |
| 1494 "endTime": { |
| 1495 "description": "[Output-only] End time of this job, in milli
seconds since the epoch. This field will be present whenever a job is in the DON
E state.", |
| 1496 "format": "int64", |
| 1497 "type": "string" |
| 1498 }, |
| 1499 "load": { |
| 1500 "$ref": "JobStatistics3", |
| 1501 "description": "[Output-only] Statistics for a load job." |
| 1502 }, |
| 1503 "query": { |
| 1504 "$ref": "JobStatistics2", |
| 1505 "description": "[Output-only] Statistics for a query job." |
| 1506 }, |
| 1507 "startTime": { |
| 1508 "description": "[Output-only] Start time of this job, in mil
liseconds since the epoch. This field will be present when the job transitions f
rom the PENDING state to either RUNNING or DONE.", |
| 1509 "format": "int64", |
| 1510 "type": "string" |
| 1511 }, |
| 1512 "totalBytesProcessed": { |
| 1513 "description": "[Output-only] [Deprecated] Use the bytes pro
cessed in the query statistics instead.", |
| 1514 "format": "int64", |
| 1515 "type": "string" |
| 1516 } |
| 1517 }, |
| 1518 "type": "object" |
| 1519 }, |
| 1520 "JobStatistics2": { |
| 1521 "id": "JobStatistics2", |
| 1522 "properties": { |
| 1523 "cacheHit": { |
| 1524 "description": "[Output-only] Whether the query result was f
etched from the query cache.", |
| 1525 "type": "boolean" |
| 1526 }, |
| 1527 "totalBytesProcessed": { |
| 1528 "description": "[Output-only] Total bytes processed for this
job.", |
| 1529 "format": "int64", |
| 1530 "type": "string" |
| 1531 } |
| 1532 }, |
| 1533 "type": "object" |
| 1534 }, |
| 1535 "JobStatistics3": { |
| 1536 "id": "JobStatistics3", |
| 1537 "properties": { |
| 1538 "inputFileBytes": { |
| 1539 "description": "[Output-only] Number of bytes of source data
in a joad job.", |
| 1540 "format": "int64", |
| 1541 "type": "string" |
| 1542 }, |
| 1543 "inputFiles": { |
| 1544 "description": "[Output-only] Number of source files in a lo
ad job.", |
| 1545 "format": "int64", |
| 1546 "type": "string" |
| 1547 }, |
| 1548 "outputBytes": { |
| 1549 "description": "[Output-only] Size of the loaded data in byt
es. Note that while an import job is in the running state, this value may change
.", |
| 1550 "format": "int64", |
| 1551 "type": "string" |
| 1552 }, |
| 1553 "outputRows": { |
| 1554 "description": "[Output-only] Number of rows imported in a l
oad job. Note that while an import job is in the running state, this value may c
hange.", |
| 1555 "format": "int64", |
| 1556 "type": "string" |
| 1557 } |
| 1558 }, |
| 1559 "type": "object" |
| 1560 }, |
| 1561 "JobStatus": { |
| 1562 "id": "JobStatus", |
| 1563 "properties": { |
| 1564 "errorResult": { |
| 1565 "$ref": "ErrorProto", |
| 1566 "description": "[Output-only] Final error result of the job.
If present, indicates that the job has completed and was unsuccessful." |
| 1567 }, |
| 1568 "errors": { |
| 1569 "description": "[Output-only] All errors encountered during
the running of the job. Errors here do not necessarily mean that the job has com
pleted or was unsuccessful.", |
| 1570 "items": { |
| 1571 "$ref": "ErrorProto" |
| 1572 }, |
| 1573 "type": "array" |
| 1574 }, |
| 1575 "state": { |
| 1576 "description": "[Output-only] Running state of the job.", |
| 1577 "type": "string" |
| 1578 } |
| 1579 }, |
| 1580 "type": "object" |
| 1581 }, |
| 1582 "JsonObject": { |
| 1583 "additionalProperties": { |
| 1584 "$ref": "JsonValue" |
| 1585 }, |
| 1586 "description": "Represents a single JSON object.", |
| 1587 "id": "JsonObject", |
| 1588 "type": "object" |
| 1589 }, |
| 1590 "JsonValue": { |
| 1591 "id": "JsonValue", |
| 1592 "type": "any" |
| 1593 }, |
| 1594 "ProjectList": { |
| 1595 "id": "ProjectList", |
| 1596 "properties": { |
| 1597 "etag": { |
| 1598 "description": "A hash of the page of results", |
| 1599 "type": "string" |
| 1600 }, |
| 1601 "kind": { |
| 1602 "default": "bigquery#projectList", |
| 1603 "description": "The type of list.", |
| 1604 "type": "string" |
| 1605 }, |
| 1606 "nextPageToken": { |
| 1607 "description": "A token to request the next page of results.
", |
| 1608 "type": "string" |
| 1609 }, |
| 1610 "projects": { |
| 1611 "description": "Projects to which you have at least READ acc
ess.", |
| 1612 "items": { |
| 1613 "properties": { |
| 1614 "friendlyName": { |
| 1615 "description": "A descriptive name for this proj
ect.", |
| 1616 "type": "string" |
| 1617 }, |
| 1618 "id": { |
| 1619 "description": "An opaque ID of this project.", |
| 1620 "type": "string" |
| 1621 }, |
| 1622 "kind": { |
| 1623 "default": "bigquery#project", |
| 1624 "description": "The resource type.", |
| 1625 "type": "string" |
| 1626 }, |
| 1627 "numericId": { |
| 1628 "description": "The numeric ID of this project."
, |
| 1629 "format": "uint64", |
| 1630 "type": "string" |
| 1631 }, |
| 1632 "projectReference": { |
| 1633 "$ref": "ProjectReference", |
| 1634 "description": "A unique reference to this proje
ct." |
| 1635 } |
| 1636 }, |
| 1637 "type": "object" |
| 1638 }, |
| 1639 "type": "array" |
| 1640 }, |
| 1641 "totalItems": { |
| 1642 "description": "The total number of projects in the list.", |
| 1643 "format": "int32", |
| 1644 "type": "integer" |
| 1645 } |
| 1646 }, |
| 1647 "type": "object" |
| 1648 }, |
| 1649 "ProjectReference": { |
| 1650 "id": "ProjectReference", |
| 1651 "properties": { |
| 1652 "projectId": { |
| 1653 "description": "[Required] ID of the project. Can be either
the numeric ID or the assigned ID of the project.", |
| 1654 "type": "string" |
| 1655 } |
| 1656 }, |
| 1657 "type": "object" |
| 1658 }, |
| 1659 "QueryRequest": { |
| 1660 "id": "QueryRequest", |
| 1661 "properties": { |
| 1662 "defaultDataset": { |
| 1663 "$ref": "DatasetReference", |
| 1664 "description": "[Optional] Specifies the default datasetId a
nd projectId to assume for any unqualified table names in the query. If not set,
all table names in the query string must be qualified in the format 'datasetId.
tableId'." |
| 1665 }, |
| 1666 "dryRun": { |
| 1667 "description": "[Optional] If set, don't actually run the qu
ery. A valid query will return an empty response, while an invalid query will re
turn the same error it would if it wasn't a dry run. The default value is false.
", |
| 1668 "type": "boolean" |
| 1669 }, |
| 1670 "kind": { |
| 1671 "default": "bigquery#queryRequest", |
| 1672 "description": "The resource type of the request.", |
| 1673 "type": "string" |
| 1674 }, |
| 1675 "maxResults": { |
| 1676 "description": "[Optional] The maximum number of rows of dat
a to return per page of results. Setting this flag to a small value such as 1000
and then paging through results might improve reliability when the query result
set is large. In addition to this limit, responses are also limited to 10 MB. B
y default, there is no maximum row count, and only the byte limit applies.", |
| 1677 "format": "uint32", |
| 1678 "type": "integer" |
| 1679 }, |
| 1680 "preserveNulls": { |
| 1681 "description": "[Deprecated] This property is deprecated.", |
| 1682 "type": "boolean" |
| 1683 }, |
| 1684 "query": { |
| 1685 "annotations": { |
| 1686 "required": [ |
| 1687 "bigquery.jobs.query" |
| 1688 ] |
| 1689 }, |
| 1690 "description": "[Required] A query string, following the Big
Query query syntax, of the query to execute. Example: \"SELECT count(f1) FROM [m
yProjectId:myDatasetId.myTableId]\".", |
| 1691 "type": "string" |
| 1692 }, |
| 1693 "timeoutMs": { |
| 1694 "description": "[Optional] How long to wait for the query to
complete, in milliseconds, before the request times out and returns. Note that
this is only a timeout for the request, not the query. If the query takes longer
to run than the timeout value, the call returns without any results and with th
e 'jobComplete' flag set to false. You can call GetQueryResults() to wait for th
e query to complete and read the results. The default value is 10000 millisecond
s (10 seconds).", |
| 1695 "format": "uint32", |
| 1696 "type": "integer" |
| 1697 }, |
| 1698 "useQueryCache": { |
| 1699 "description": "[Optional] Whether to look for the result in
the query cache. The query cache is a best-effort cache that will be flushed wh
enever tables in the query are modified. The default value is true.", |
| 1700 "type": "boolean" |
| 1701 } |
| 1702 }, |
| 1703 "type": "object" |
| 1704 }, |
| 1705 "QueryResponse": { |
| 1706 "id": "QueryResponse", |
| 1707 "properties": { |
| 1708 "cacheHit": { |
| 1709 "description": "Whether the query result was fetched from th
e query cache.", |
| 1710 "type": "boolean" |
| 1711 }, |
| 1712 "jobComplete": { |
| 1713 "description": "Whether the query has completed or not. If r
ows or totalRows are present, this will always be true. If this is false, totalR
ows will not be available.", |
| 1714 "type": "boolean" |
| 1715 }, |
| 1716 "jobReference": { |
| 1717 "$ref": "JobReference", |
| 1718 "description": "Reference to the Job that was created to run
the query. This field will be present even if the original request timed out, i
n which case GetQueryResults can be used to read the results once the query has
completed. Since this API only returns the first page of results, subsequent pag
es can be fetched via the same mechanism (GetQueryResults)." |
| 1719 }, |
| 1720 "kind": { |
| 1721 "default": "bigquery#queryResponse", |
| 1722 "description": "The resource type.", |
| 1723 "type": "string" |
| 1724 }, |
| 1725 "pageToken": { |
| 1726 "description": "A token used for paging results.", |
| 1727 "type": "string" |
| 1728 }, |
| 1729 "rows": { |
| 1730 "description": "An object with as many results as can be con
tained within the maximum permitted reply size. To get any additional rows, you
can call GetQueryResults and specify the jobReference returned above.", |
| 1731 "items": { |
| 1732 "$ref": "TableRow" |
| 1733 }, |
| 1734 "type": "array" |
| 1735 }, |
| 1736 "schema": { |
| 1737 "$ref": "TableSchema", |
| 1738 "description": "The schema of the results. Present only when
the query completes successfully." |
| 1739 }, |
| 1740 "totalBytesProcessed": { |
| 1741 "description": "The total number of bytes processed for this
query. If this query was a dry run, this is the number of bytes that would be p
rocessed if the query were run.", |
| 1742 "format": "int64", |
| 1743 "type": "string" |
| 1744 }, |
| 1745 "totalRows": { |
| 1746 "description": "The total number of rows in the complete que
ry result set, which can be more than the number of rows in this single page of
results.", |
| 1747 "format": "uint64", |
| 1748 "type": "string" |
| 1749 } |
| 1750 }, |
| 1751 "type": "object" |
| 1752 }, |
| 1753 "Table": { |
| 1754 "id": "Table", |
| 1755 "properties": { |
| 1756 "creationTime": { |
| 1757 "description": "[Output-only] The time when this table was c
reated, in milliseconds since the epoch.", |
| 1758 "format": "int64", |
| 1759 "type": "string" |
| 1760 }, |
| 1761 "description": { |
| 1762 "description": "[Optional] A user-friendly description of th
is table.", |
| 1763 "type": "string" |
| 1764 }, |
| 1765 "etag": { |
| 1766 "description": "[Output-only] A hash of this resource.", |
| 1767 "type": "string" |
| 1768 }, |
| 1769 "expirationTime": { |
| 1770 "description": "[Optional] The time when this table expires,
in milliseconds since the epoch. If not present, the table will persist indefin
itely. Expired tables will be deleted and their storage reclaimed.", |
| 1771 "format": "int64", |
| 1772 "type": "string" |
| 1773 }, |
| 1774 "friendlyName": { |
| 1775 "description": "[Optional] A descriptive name for this table
.", |
| 1776 "type": "string" |
| 1777 }, |
| 1778 "id": { |
| 1779 "description": "[Output-only] An opaque ID uniquely identify
ing the table.", |
| 1780 "type": "string" |
| 1781 }, |
| 1782 "kind": { |
| 1783 "default": "bigquery#table", |
| 1784 "description": "[Output-only] The type of the resource.", |
| 1785 "type": "string" |
| 1786 }, |
| 1787 "lastModifiedTime": { |
| 1788 "description": "[Output-only] The time when this table was l
ast modified, in milliseconds since the epoch.", |
| 1789 "format": "int64", |
| 1790 "type": "string" |
| 1791 }, |
| 1792 "numBytes": { |
| 1793 "description": "[Output-only] The size of the table in bytes
.", |
| 1794 "format": "int64", |
| 1795 "type": "string" |
| 1796 }, |
| 1797 "numRows": { |
| 1798 "description": "[Output-only] The number of rows of data in
this table.", |
| 1799 "format": "uint64", |
| 1800 "type": "string" |
| 1801 }, |
| 1802 "schema": { |
| 1803 "$ref": "TableSchema", |
| 1804 "description": "[Optional] Describes the schema of this tabl
e." |
| 1805 }, |
| 1806 "selfLink": { |
| 1807 "description": "[Output-only] A URL that can be used to acce
ss this resource again.", |
| 1808 "type": "string" |
| 1809 }, |
| 1810 "tableReference": { |
| 1811 "$ref": "TableReference", |
| 1812 "description": "[Required] Reference describing the ID of th
is table." |
| 1813 }, |
| 1814 "type": { |
| 1815 "description": "[Output-only] Describes the table type. The
following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual
table defined by a SQL query. The default value is TABLE.", |
| 1816 "type": "string" |
| 1817 }, |
| 1818 "view": { |
| 1819 "$ref": "ViewDefinition", |
| 1820 "description": "[Optional] The view definition." |
| 1821 } |
| 1822 }, |
| 1823 "type": "object" |
| 1824 }, |
| 1825 "TableCell": { |
| 1826 "description": "Represents a single cell in the result set. Users of
the java client can detect whether their value result is null by calling 'com.g
oogle.api.client.util.Data.isNull(cell.getV())'.", |
| 1827 "id": "TableCell", |
| 1828 "properties": { |
| 1829 "v": { |
| 1830 "type": "any" |
| 1831 } |
| 1832 }, |
| 1833 "type": "object" |
| 1834 }, |
| 1835 "TableDataInsertAllRequest": { |
| 1836 "id": "TableDataInsertAllRequest", |
| 1837 "properties": { |
| 1838 "kind": { |
| 1839 "default": "bigquery#tableDataInsertAllRequest", |
| 1840 "description": "The resource type of the response.", |
| 1841 "type": "string" |
| 1842 }, |
| 1843 "rows": { |
| 1844 "description": "The rows to insert.", |
| 1845 "items": { |
| 1846 "properties": { |
| 1847 "insertId": { |
| 1848 "description": "[Optional] A unique ID for each
row. BigQuery uses this property to detect duplicate insertion requests on a bes
t-effort basis.", |
| 1849 "type": "string" |
| 1850 }, |
| 1851 "json": { |
| 1852 "$ref": "JsonObject", |
| 1853 "description": "[Required] A JSON object that co
ntains a row of data. The object's properties and values must match the destinat
ion table's schema." |
| 1854 } |
| 1855 }, |
| 1856 "type": "object" |
| 1857 }, |
| 1858 "type": "array" |
| 1859 } |
| 1860 }, |
| 1861 "type": "object" |
| 1862 }, |
| 1863 "TableDataInsertAllResponse": { |
| 1864 "id": "TableDataInsertAllResponse", |
| 1865 "properties": { |
| 1866 "insertErrors": { |
| 1867 "description": "An array of errors for rows that were not in
serted.", |
| 1868 "items": { |
| 1869 "properties": { |
| 1870 "errors": { |
| 1871 "description": "Error information for the row in
dicated by the index property.", |
| 1872 "items": { |
| 1873 "$ref": "ErrorProto" |
| 1874 }, |
| 1875 "type": "array" |
| 1876 }, |
| 1877 "index": { |
| 1878 "description": "The index of the row that error
applies to.", |
| 1879 "format": "uint32", |
| 1880 "type": "integer" |
| 1881 } |
| 1882 }, |
| 1883 "type": "object" |
| 1884 }, |
| 1885 "type": "array" |
| 1886 }, |
| 1887 "kind": { |
| 1888 "default": "bigquery#tableDataInsertAllResponse", |
| 1889 "description": "The resource type of the response.", |
| 1890 "type": "string" |
| 1891 } |
| 1892 }, |
| 1893 "type": "object" |
| 1894 }, |
| 1895 "TableDataList": { |
| 1896 "id": "TableDataList", |
| 1897 "properties": { |
| 1898 "etag": { |
| 1899 "description": "A hash of this page of results.", |
| 1900 "type": "string" |
| 1901 }, |
| 1902 "kind": { |
| 1903 "default": "bigquery#tableDataList", |
| 1904 "description": "The resource type of the response.", |
| 1905 "type": "string" |
| 1906 }, |
| 1907 "pageToken": { |
| 1908 "description": "A token used for paging results. Providing t
his token instead of the startIndex parameter can help you retrieve stable resul
ts when an underlying table is changing.", |
| 1909 "type": "string" |
| 1910 }, |
| 1911 "rows": { |
| 1912 "description": "Rows of results.", |
| 1913 "items": { |
| 1914 "$ref": "TableRow" |
| 1915 }, |
| 1916 "type": "array" |
| 1917 }, |
| 1918 "totalRows": { |
| 1919 "description": "The total number of rows in the complete tab
le.", |
| 1920 "format": "int64", |
| 1921 "type": "string" |
| 1922 } |
| 1923 }, |
| 1924 "type": "object" |
| 1925 }, |
| 1926 "TableFieldSchema": { |
| 1927 "id": "TableFieldSchema", |
| 1928 "properties": { |
| 1929 "description": { |
| 1930 "description": "[Optional] The field description.", |
| 1931 "type": "string" |
| 1932 }, |
| 1933 "fields": { |
| 1934 "description": "[Optional] Describes the nested schema field
s if the type property is set to RECORD.", |
| 1935 "items": { |
| 1936 "$ref": "TableFieldSchema" |
| 1937 }, |
| 1938 "type": "array" |
| 1939 }, |
| 1940 "mode": { |
| 1941 "description": "[Optional] The field mode. Possible values i
nclude NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.", |
| 1942 "type": "string" |
| 1943 }, |
| 1944 "name": { |
| 1945 "description": "[Required] The field name.", |
| 1946 "type": "string" |
| 1947 }, |
| 1948 "type": { |
| 1949 "description": "[Required] The field data type. Possible val
ues include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD i
ndicates that the field contains a nested schema).", |
| 1950 "type": "string" |
| 1951 } |
| 1952 }, |
| 1953 "type": "object" |
| 1954 }, |
| 1955 "TableList": { |
| 1956 "id": "TableList", |
| 1957 "properties": { |
| 1958 "etag": { |
| 1959 "description": "A hash of this page of results.", |
| 1960 "type": "string" |
| 1961 }, |
| 1962 "kind": { |
| 1963 "default": "bigquery#tableList", |
| 1964 "description": "The type of list.", |
| 1965 "type": "string" |
| 1966 }, |
| 1967 "nextPageToken": { |
| 1968 "description": "A token to request the next page of results.
", |
| 1969 "type": "string" |
| 1970 }, |
| 1971 "tables": { |
| 1972 "description": "Tables in the requested dataset.", |
| 1973 "items": { |
| 1974 "properties": { |
| 1975 "friendlyName": { |
| 1976 "description": "The user-friendly name for this
table.", |
| 1977 "type": "string" |
| 1978 }, |
| 1979 "id": { |
| 1980 "description": "An opaque ID of the table", |
| 1981 "type": "string" |
| 1982 }, |
| 1983 "kind": { |
| 1984 "default": "bigquery#table", |
| 1985 "description": "The resource type.", |
| 1986 "type": "string" |
| 1987 }, |
| 1988 "tableReference": { |
| 1989 "$ref": "TableReference", |
| 1990 "description": "A reference uniquely identifying
the table." |
| 1991 }, |
| 1992 "type": { |
| 1993 "description": "The type of table. Possible valu
es are: TABLE, VIEW.", |
| 1994 "type": "string" |
| 1995 } |
| 1996 }, |
| 1997 "type": "object" |
| 1998 }, |
| 1999 "type": "array" |
| 2000 }, |
| 2001 "totalItems": { |
| 2002 "description": "The total number of tables in the dataset.", |
| 2003 "format": "int32", |
| 2004 "type": "integer" |
| 2005 } |
| 2006 }, |
| 2007 "type": "object" |
| 2008 }, |
| 2009 "TableReference": { |
| 2010 "id": "TableReference", |
| 2011 "properties": { |
| 2012 "datasetId": { |
| 2013 "annotations": { |
| 2014 "required": [ |
| 2015 "bigquery.tables.update" |
| 2016 ] |
| 2017 }, |
| 2018 "description": "[Required] ID of the dataset containing the
table.", |
| 2019 "type": "string" |
| 2020 }, |
| 2021 "projectId": { |
| 2022 "annotations": { |
| 2023 "required": [ |
| 2024 "bigquery.tables.update" |
| 2025 ] |
| 2026 }, |
| 2027 "description": "[Required] ID of the project billed for stor
age of the table.", |
| 2028 "type": "string" |
| 2029 }, |
| 2030 "tableId": { |
| 2031 "annotations": { |
| 2032 "required": [ |
| 2033 "bigquery.tables.update" |
| 2034 ] |
| 2035 }, |
| 2036 "description": "[Required] ID of the table.", |
| 2037 "type": "string" |
| 2038 } |
| 2039 }, |
| 2040 "type": "object" |
| 2041 }, |
| 2042 "TableRow": { |
| 2043 "description": "Represents a single row in the result set, consistin
g of one or more fields.", |
| 2044 "id": "TableRow", |
| 2045 "properties": { |
| 2046 "f": { |
| 2047 "items": { |
| 2048 "$ref": "TableCell" |
| 2049 }, |
| 2050 "type": "array" |
| 2051 } |
| 2052 }, |
| 2053 "type": "object" |
| 2054 }, |
| 2055 "TableSchema": { |
| 2056 "id": "TableSchema", |
| 2057 "properties": { |
| 2058 "fields": { |
| 2059 "description": "Describes the fields in a table.", |
| 2060 "items": { |
| 2061 "$ref": "TableFieldSchema" |
| 2062 }, |
| 2063 "type": "array" |
| 2064 } |
| 2065 }, |
| 2066 "type": "object" |
| 2067 }, |
| 2068 "ViewDefinition": { |
| 2069 "id": "ViewDefinition", |
| 2070 "properties": { |
| 2071 "query": { |
| 2072 "description": "[Required] A query that BigQuery executes wh
en the view is referenced.", |
| 2073 "type": "string" |
| 2074 } |
| 2075 }, |
| 2076 "type": "object" |
| 2077 } |
| 2078 }, |
| 2079 "servicePath": "bigquery/v2/", |
| 2080 "title": "BigQuery API", |
| 2081 "version": "v2" |
| 2082 } |
OLD | NEW |