Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Side by Side Diff: generated/googleapis/lib/bigquery/v2.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.bigquery.v2; 3 library googleapis.bigquery.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:collection' as collection; 6 import 'dart:collection' as collection;
7 import 'dart:async' as async; 7 import 'dart:async' as async;
8 import 'dart:convert' as convert; 8 import 'dart:convert' as convert;
9 9
10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
(...skipping 10 matching lines...) Expand all
21 class BigqueryApi { 21 class BigqueryApi {
22 /** View and manage your data in Google BigQuery */ 22 /** View and manage your data in Google BigQuery */
23 static const BigqueryScope = "https://www.googleapis.com/auth/bigquery"; 23 static const BigqueryScope = "https://www.googleapis.com/auth/bigquery";
24 24
25 /** Insert data into Google BigQuery */ 25 /** Insert data into Google BigQuery */
26 static const BigqueryInsertdataScope = "https://www.googleapis.com/auth/bigque ry.insertdata"; 26 static const BigqueryInsertdataScope = "https://www.googleapis.com/auth/bigque ry.insertdata";
27 27
28 /** View and manage your data across Google Cloud Platform services */ 28 /** View and manage your data across Google Cloud Platform services */
29 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 29 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
30 30
31 /**
32 * MESSAGE UNDER CONSTRUCTION View your data across Google Cloud Platform
33 * services
34 */
35 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo ud-platform.read-only";
36
31 /** Manage your data and permissions in Google Cloud Storage */ 37 /** Manage your data and permissions in Google Cloud Storage */
32 static const DevstorageFullControlScope = "https://www.googleapis.com/auth/dev storage.full_control"; 38 static const DevstorageFullControlScope = "https://www.googleapis.com/auth/dev storage.full_control";
33 39
34 /** View your data in Google Cloud Storage */ 40 /** View your data in Google Cloud Storage */
35 static const DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devsto rage.read_only"; 41 static const DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devsto rage.read_only";
36 42
37 /** Manage your data in Google Cloud Storage */ 43 /** Manage your data in Google Cloud Storage */
38 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst orage.read_write"; 44 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst orage.read_write";
39 45
40 46
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 * [jobId] - Job ID of the query job 474 * [jobId] - Job ID of the query job
469 * 475 *
470 * [maxResults] - Maximum number of results to read 476 * [maxResults] - Maximum number of results to read
471 * 477 *
472 * [pageToken] - Page token, returned by a previous call, to request the next 478 * [pageToken] - Page token, returned by a previous call, to request the next
473 * page of results 479 * page of results
474 * 480 *
475 * [startIndex] - Zero-based index of the starting row 481 * [startIndex] - Zero-based index of the starting row
476 * 482 *
477 * [timeoutMs] - How long to wait for the query to complete, in milliseconds, 483 * [timeoutMs] - How long to wait for the query to complete, in milliseconds,
478 * before returning. Default is to return immediately. If the timeout passes 484 * before returning. Default is 10 seconds. If the timeout passes before the
479 * before the job completes, the request will fail with a TIMEOUT error 485 * job completes, the 'jobComplete' field in the response will be false
480 * 486 *
481 * Completes with a [GetQueryResultsResponse]. 487 * Completes with a [GetQueryResultsResponse].
482 * 488 *
483 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 489 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
484 * error. 490 * error.
485 * 491 *
486 * If the used [http.Client] completes with an error when making a REST call, 492 * If the used [http.Client] completes with an error when making a REST call,
487 * this method will complete with the same error. 493 * this method will complete with the same error.
488 */ 494 */
489 async.Future<GetQueryResultsResponse> getQueryResults(core.String projectId, c ore.String jobId, {core.int maxResults, core.String pageToken, core.String start Index, core.int timeoutMs}) { 495 async.Future<GetQueryResultsResponse> getQueryResults(core.String projectId, c ore.String jobId, {core.int maxResults, core.String pageToken, core.String start Index, core.int timeoutMs}) {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 "POST", 584 "POST",
579 body: _body, 585 body: _body,
580 queryParams: _queryParams, 586 queryParams: _queryParams,
581 uploadOptions: _uploadOptions, 587 uploadOptions: _uploadOptions,
582 uploadMedia: _uploadMedia, 588 uploadMedia: _uploadMedia,
583 downloadOptions: _downloadOptions); 589 downloadOptions: _downloadOptions);
584 return _response.then((data) => new Job.fromJson(data)); 590 return _response.then((data) => new Job.fromJson(data));
585 } 591 }
586 592
587 /** 593 /**
588 * Lists all jobs that you started in the specified project. The job list 594 * Lists all jobs that you started in the specified project. Job information
589 * returns in reverse chronological order of when the jobs were created, 595 * is available for a six month period after creation. The job list is sorted
590 * starting with the most recent job created. Requires the Can View project 596 * in reverse chronological order, by job creation time. Requires the Can View
591 * role, or the Is Owner project role if you set the allUsers property. 597 * project role, or the Is Owner project role if you set the allUsers
598 * property.
592 * 599 *
593 * Request parameters: 600 * Request parameters:
594 * 601 *
595 * [projectId] - Project ID of the jobs to list 602 * [projectId] - Project ID of the jobs to list
596 * 603 *
597 * [allUsers] - Whether to display jobs owned by all users in the project. 604 * [allUsers] - Whether to display jobs owned by all users in the project.
598 * Default false 605 * Default false
599 * 606 *
600 * [maxResults] - Maximum number of results to return 607 * [maxResults] - Maximum number of results to return
601 * 608 *
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 */ 1445 */
1439 core.String id; 1446 core.String id;
1440 /** [Output-only] The resource type. */ 1447 /** [Output-only] The resource type. */
1441 core.String kind; 1448 core.String kind;
1442 /** 1449 /**
1443 * [Output-only] The date when this dataset or any of its tables was last 1450 * [Output-only] The date when this dataset or any of its tables was last
1444 * modified, in milliseconds since the epoch. 1451 * modified, in milliseconds since the epoch.
1445 */ 1452 */
1446 core.String lastModifiedTime; 1453 core.String lastModifiedTime;
1447 /** 1454 /**
1448 * [Experimental] The location where the data resides. If not present, the 1455 * [Experimental] The geographic location where the dataset should reside.
1449 * data will be stored in the US. 1456 * Possible values include EU and US. The default value is US.
1450 */ 1457 */
1451 core.String location; 1458 core.String location;
1452 /** 1459 /**
1453 * [Output-only] A URL that can be used to access the resource again. You can 1460 * [Output-only] A URL that can be used to access the resource again. You can
1454 * use this URL in Get or Update requests to the resource. 1461 * use this URL in Get or Update requests to the resource.
1455 */ 1462 */
1456 core.String selfLink; 1463 core.String selfLink;
1457 1464
1458 Dataset(); 1465 Dataset();
1459 1466
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
2557 core.Map<core.String, ExternalDataConfiguration> tableDefinitions; 2564 core.Map<core.String, ExternalDataConfiguration> tableDefinitions;
2558 /** 2565 /**
2559 * [Optional] Whether to look for the result in the query cache. The query 2566 * [Optional] Whether to look for the result in the query cache. The query
2560 * cache is a best-effort cache that will be flushed whenever tables in the 2567 * cache is a best-effort cache that will be flushed whenever tables in the
2561 * query are modified. Moreover, the query cache is only available when a 2568 * query are modified. Moreover, the query cache is only available when a
2562 * query does not have a destination table specified. The default value is 2569 * query does not have a destination table specified. The default value is
2563 * true. 2570 * true.
2564 */ 2571 */
2565 core.bool useQueryCache; 2572 core.bool useQueryCache;
2566 /** 2573 /**
2574 * [Experimental] Describes user-defined function resources used in the query.
2575 */
2576 core.List<UserDefinedFunctionResource> userDefinedFunctionResources;
2577 /**
2567 * [Optional] Specifies the action that occurs if the destination table 2578 * [Optional] Specifies the action that occurs if the destination table
2568 * already exists. The following values are supported: WRITE_TRUNCATE: If the 2579 * already exists. The following values are supported: WRITE_TRUNCATE: If the
2569 * table already exists, BigQuery overwrites the table data. WRITE_APPEND: If 2580 * table already exists, BigQuery overwrites the table data. WRITE_APPEND: If
2570 * the table already exists, BigQuery appends the data to the table. 2581 * the table already exists, BigQuery appends the data to the table.
2571 * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' 2582 * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate'
2572 * error is returned in the job result. The default value is WRITE_EMPTY. Each 2583 * error is returned in the job result. The default value is WRITE_EMPTY. Each
2573 * action is atomic and only occurs if BigQuery is able to complete the job 2584 * action is atomic and only occurs if BigQuery is able to complete the job
2574 * successfully. Creation, truncation and append actions occur as one atomic 2585 * successfully. Creation, truncation and append actions occur as one atomic
2575 * update upon job completion. 2586 * update upon job completion.
2576 */ 2587 */
(...skipping 25 matching lines...) Expand all
2602 } 2613 }
2603 if (_json.containsKey("query")) { 2614 if (_json.containsKey("query")) {
2604 query = _json["query"]; 2615 query = _json["query"];
2605 } 2616 }
2606 if (_json.containsKey("tableDefinitions")) { 2617 if (_json.containsKey("tableDefinitions")) {
2607 tableDefinitions = commons.mapMap(_json["tableDefinitions"], (item) => new ExternalDataConfiguration.fromJson(item)); 2618 tableDefinitions = commons.mapMap(_json["tableDefinitions"], (item) => new ExternalDataConfiguration.fromJson(item));
2608 } 2619 }
2609 if (_json.containsKey("useQueryCache")) { 2620 if (_json.containsKey("useQueryCache")) {
2610 useQueryCache = _json["useQueryCache"]; 2621 useQueryCache = _json["useQueryCache"];
2611 } 2622 }
2623 if (_json.containsKey("userDefinedFunctionResources")) {
2624 userDefinedFunctionResources = _json["userDefinedFunctionResources"].map(( value) => new UserDefinedFunctionResource.fromJson(value)).toList();
2625 }
2612 if (_json.containsKey("writeDisposition")) { 2626 if (_json.containsKey("writeDisposition")) {
2613 writeDisposition = _json["writeDisposition"]; 2627 writeDisposition = _json["writeDisposition"];
2614 } 2628 }
2615 } 2629 }
2616 2630
2617 core.Map toJson() { 2631 core.Map toJson() {
2618 var _json = new core.Map(); 2632 var _json = new core.Map();
2619 if (allowLargeResults != null) { 2633 if (allowLargeResults != null) {
2620 _json["allowLargeResults"] = allowLargeResults; 2634 _json["allowLargeResults"] = allowLargeResults;
2621 } 2635 }
(...skipping 17 matching lines...) Expand all
2639 } 2653 }
2640 if (query != null) { 2654 if (query != null) {
2641 _json["query"] = query; 2655 _json["query"] = query;
2642 } 2656 }
2643 if (tableDefinitions != null) { 2657 if (tableDefinitions != null) {
2644 _json["tableDefinitions"] = commons.mapMap(tableDefinitions, (item) => (it em).toJson()); 2658 _json["tableDefinitions"] = commons.mapMap(tableDefinitions, (item) => (it em).toJson());
2645 } 2659 }
2646 if (useQueryCache != null) { 2660 if (useQueryCache != null) {
2647 _json["useQueryCache"] = useQueryCache; 2661 _json["useQueryCache"] = useQueryCache;
2648 } 2662 }
2663 if (userDefinedFunctionResources != null) {
2664 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map(( value) => (value).toJson()).toList();
2665 }
2649 if (writeDisposition != null) { 2666 if (writeDisposition != null) {
2650 _json["writeDisposition"] = writeDisposition; 2667 _json["writeDisposition"] = writeDisposition;
2651 } 2668 }
2652 return _json; 2669 return _json;
2653 } 2670 }
2654 } 2671 }
2655 2672
2656 class JobConfigurationTableCopy { 2673 class JobConfigurationTableCopy {
2657 /** 2674 /**
2658 * [Optional] Specifies whether the job is allowed to create new tables. The 2675 * [Optional] Specifies whether the job is allowed to create new tables. The
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 } 3310 }
3294 3311
3295 class QueryRequest { 3312 class QueryRequest {
3296 /** 3313 /**
3297 * [Optional] Specifies the default datasetId and projectId to assume for any 3314 * [Optional] Specifies the default datasetId and projectId to assume for any
3298 * unqualified table names in the query. If not set, all table names in the 3315 * unqualified table names in the query. If not set, all table names in the
3299 * query string must be qualified in the format 'datasetId.tableId'. 3316 * query string must be qualified in the format 'datasetId.tableId'.
3300 */ 3317 */
3301 DatasetReference defaultDataset; 3318 DatasetReference defaultDataset;
3302 /** 3319 /**
3303 * [Optional] If set, don't actually run this job. A valid query will return a 3320 * [Optional] If set to true, BigQuery doesn't run the job. Instead, if the
3304 * mostly empty response with some processing statistics, while an invalid 3321 * query is valid, BigQuery returns statistics about the job such as how many
3305 * query will return the same error it would if it wasn't a dry run. 3322 * bytes would be processed. If the query is invalid, an error returns. The
3323 * default value is false.
3306 */ 3324 */
3307 core.bool dryRun; 3325 core.bool dryRun;
3308 /** The resource type of the request. */ 3326 /** The resource type of the request. */
3309 core.String kind; 3327 core.String kind;
3310 /** 3328 /**
3311 * [Optional] The maximum number of rows of data to return per page of 3329 * [Optional] The maximum number of rows of data to return per page of
3312 * results. Setting this flag to a small value such as 1000 and then paging 3330 * results. Setting this flag to a small value such as 1000 and then paging
3313 * through results might improve reliability when the query result set is 3331 * through results might improve reliability when the query result set is
3314 * large. In addition to this limit, responses are also limited to 10 MB. By 3332 * large. In addition to this limit, responses are also limited to 10 MB. By
3315 * default, there is no maximum row count, and only the byte limit applies. 3333 * default, there is no maximum row count, and only the byte limit applies.
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
3517 /** [Optional] A user-friendly description of this table. */ 3535 /** [Optional] A user-friendly description of this table. */
3518 core.String description; 3536 core.String description;
3519 /** [Output-only] A hash of this resource. */ 3537 /** [Output-only] A hash of this resource. */
3520 core.String etag; 3538 core.String etag;
3521 /** 3539 /**
3522 * [Optional] The time when this table expires, in milliseconds since the 3540 * [Optional] The time when this table expires, in milliseconds since the
3523 * epoch. If not present, the table will persist indefinitely. Expired tables 3541 * epoch. If not present, the table will persist indefinitely. Expired tables
3524 * will be deleted and their storage reclaimed. 3542 * will be deleted and their storage reclaimed.
3525 */ 3543 */
3526 core.String expirationTime; 3544 core.String expirationTime;
3545 /**
3546 * [Experimental] Describes the data format, location, and other properties of
3547 * a table stored outside of BigQuery. By defining these properties, the data
3548 * source can then be queried as if it were a standard BigQuery table.
3549 */
3550 ExternalDataConfiguration externalDataConfiguration;
3527 /** [Optional] A descriptive name for this table. */ 3551 /** [Optional] A descriptive name for this table. */
3528 core.String friendlyName; 3552 core.String friendlyName;
3529 /** [Output-only] An opaque ID uniquely identifying the table. */ 3553 /** [Output-only] An opaque ID uniquely identifying the table. */
3530 core.String id; 3554 core.String id;
3531 /** [Output-only] The type of the resource. */ 3555 /** [Output-only] The type of the resource. */
3532 core.String kind; 3556 core.String kind;
3533 /** 3557 /**
3534 * [Output-only] The time when this table was last modified, in milliseconds 3558 * [Output-only] The time when this table was last modified, in milliseconds
3535 * since the epoch. 3559 * since the epoch.
3536 */ 3560 */
3537 core.String lastModifiedTime; 3561 core.String lastModifiedTime;
3538 /** [Optional] The backing storage location. */ 3562 /**
3563 * [Output-only] The geographic location where the table resides. This value
3564 * is inherited from the dataset.
3565 */
3539 core.String location; 3566 core.String location;
3540 /** 3567 /**
3541 * [Output-only] The size of the table in bytes. This property is unavailable 3568 * [Output-only] The size of the table in bytes. This property is unavailable
3542 * for tables that are actively receiving streaming inserts. 3569 * for tables that are actively receiving streaming inserts.
3543 */ 3570 */
3544 core.String numBytes; 3571 core.String numBytes;
3545 /** 3572 /**
3546 * [Output-only] The number of rows of data in this table. This property is 3573 * [Output-only] The number of rows of data in this table. This property is
3547 * unavailable for tables that are actively receiving streaming inserts. 3574 * unavailable for tables that are actively receiving streaming inserts.
3548 */ 3575 */
(...skipping 21 matching lines...) Expand all
3570 } 3597 }
3571 if (_json.containsKey("description")) { 3598 if (_json.containsKey("description")) {
3572 description = _json["description"]; 3599 description = _json["description"];
3573 } 3600 }
3574 if (_json.containsKey("etag")) { 3601 if (_json.containsKey("etag")) {
3575 etag = _json["etag"]; 3602 etag = _json["etag"];
3576 } 3603 }
3577 if (_json.containsKey("expirationTime")) { 3604 if (_json.containsKey("expirationTime")) {
3578 expirationTime = _json["expirationTime"]; 3605 expirationTime = _json["expirationTime"];
3579 } 3606 }
3607 if (_json.containsKey("externalDataConfiguration")) {
3608 externalDataConfiguration = new ExternalDataConfiguration.fromJson(_json[" externalDataConfiguration"]);
3609 }
3580 if (_json.containsKey("friendlyName")) { 3610 if (_json.containsKey("friendlyName")) {
3581 friendlyName = _json["friendlyName"]; 3611 friendlyName = _json["friendlyName"];
3582 } 3612 }
3583 if (_json.containsKey("id")) { 3613 if (_json.containsKey("id")) {
3584 id = _json["id"]; 3614 id = _json["id"];
3585 } 3615 }
3586 if (_json.containsKey("kind")) { 3616 if (_json.containsKey("kind")) {
3587 kind = _json["kind"]; 3617 kind = _json["kind"];
3588 } 3618 }
3589 if (_json.containsKey("lastModifiedTime")) { 3619 if (_json.containsKey("lastModifiedTime")) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
3622 } 3652 }
3623 if (description != null) { 3653 if (description != null) {
3624 _json["description"] = description; 3654 _json["description"] = description;
3625 } 3655 }
3626 if (etag != null) { 3656 if (etag != null) {
3627 _json["etag"] = etag; 3657 _json["etag"] = etag;
3628 } 3658 }
3629 if (expirationTime != null) { 3659 if (expirationTime != null) {
3630 _json["expirationTime"] = expirationTime; 3660 _json["expirationTime"] = expirationTime;
3631 } 3661 }
3662 if (externalDataConfiguration != null) {
3663 _json["externalDataConfiguration"] = (externalDataConfiguration).toJson();
3664 }
3632 if (friendlyName != null) { 3665 if (friendlyName != null) {
3633 _json["friendlyName"] = friendlyName; 3666 _json["friendlyName"] = friendlyName;
3634 } 3667 }
3635 if (id != null) { 3668 if (id != null) {
3636 _json["id"] = id; 3669 _json["id"] = id;
3637 } 3670 }
3638 if (kind != null) { 3671 if (kind != null) {
3639 _json["kind"] = kind; 3672 _json["kind"] = kind;
3640 } 3673 }
3641 if (lastModifiedTime != null) { 3674 if (lastModifiedTime != null) {
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
4152 4185
4153 core.Map toJson() { 4186 core.Map toJson() {
4154 var _json = new core.Map(); 4187 var _json = new core.Map();
4155 if (fields != null) { 4188 if (fields != null) {
4156 _json["fields"] = fields.map((value) => (value).toJson()).toList(); 4189 _json["fields"] = fields.map((value) => (value).toJson()).toList();
4157 } 4190 }
4158 return _json; 4191 return _json;
4159 } 4192 }
4160 } 4193 }
4161 4194
4195 class UserDefinedFunctionResource {
4196 /**
4197 * [Pick one] An inline resource that contains code for a user-defined
4198 * function (UDF). Providing a inline code resource is equivalent to providing
4199 * a URI for a file containing the same code.
4200 */
4201 core.String inlineCode;
4202 /**
4203 * [Pick one] A code resource to load from a Google Cloud Storage URI
4204 * (gs://bucket/path).
4205 */
4206 core.String resourceUri;
4207
4208 UserDefinedFunctionResource();
4209
4210 UserDefinedFunctionResource.fromJson(core.Map _json) {
4211 if (_json.containsKey("inlineCode")) {
4212 inlineCode = _json["inlineCode"];
4213 }
4214 if (_json.containsKey("resourceUri")) {
4215 resourceUri = _json["resourceUri"];
4216 }
4217 }
4218
4219 core.Map toJson() {
4220 var _json = new core.Map();
4221 if (inlineCode != null) {
4222 _json["inlineCode"] = inlineCode;
4223 }
4224 if (resourceUri != null) {
4225 _json["resourceUri"] = resourceUri;
4226 }
4227 return _json;
4228 }
4229 }
4230
4162 class ViewDefinition { 4231 class ViewDefinition {
4163 /** [Required] A query that BigQuery executes when the view is referenced. */ 4232 /** [Required] A query that BigQuery executes when the view is referenced. */
4164 core.String query; 4233 core.String query;
4165 4234
4166 ViewDefinition(); 4235 ViewDefinition();
4167 4236
4168 ViewDefinition.fromJson(core.Map _json) { 4237 ViewDefinition.fromJson(core.Map _json) {
4169 if (_json.containsKey("query")) { 4238 if (_json.containsKey("query")) {
4170 query = _json["query"]; 4239 query = _json["query"];
4171 } 4240 }
4172 } 4241 }
4173 4242
4174 core.Map toJson() { 4243 core.Map toJson() {
4175 var _json = new core.Map(); 4244 var _json = new core.Map();
4176 if (query != null) { 4245 if (query != null) {
4177 _json["query"] = query; 4246 _json["query"] = query;
4178 } 4247 }
4179 return _json; 4248 return _json;
4180 } 4249 }
4181 } 4250 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698