OLD | NEW |
1 library googleapis.bigquery.v2; | 1 library googleapis.bigquery.v2; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2160 core.int skipLeadingRows; | 2160 core.int skipLeadingRows; |
2161 | 2161 |
2162 /** | 2162 /** |
2163 * [Optional] The format of the data files. For CSV files, specify "CSV". For | 2163 * [Optional] The format of the data files. For CSV files, specify "CSV". For |
2164 * datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, | 2164 * datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, |
2165 * specify "NEWLINE_DELIMITED_JSON". The default value is CSV. | 2165 * specify "NEWLINE_DELIMITED_JSON". The default value is CSV. |
2166 */ | 2166 */ |
2167 core.String sourceFormat; | 2167 core.String sourceFormat; |
2168 | 2168 |
2169 /** | 2169 /** |
2170 * [Required] The fully-qualified URIs that point to your data on Google Cloud | 2170 * [Required] The fully-qualified URIs that point to your data in Google Cloud |
2171 * Storage. | 2171 * Storage. Wildcard names are only supported when they appear at the end of |
| 2172 * the URI. |
2172 */ | 2173 */ |
2173 core.List<core.String> sourceUris; | 2174 core.List<core.String> sourceUris; |
2174 | 2175 |
2175 /** | 2176 /** |
2176 * [Optional] Specifies the action that occurs if the destination table | 2177 * [Optional] Specifies the action that occurs if the destination table |
2177 * already exists. The following values are supported: WRITE_TRUNCATE: If the | 2178 * already exists. The following values are supported: WRITE_TRUNCATE: If the |
2178 * table already exists, BigQuery overwrites the table data. WRITE_APPEND: If | 2179 * table already exists, BigQuery overwrites the table data. WRITE_APPEND: If |
2179 * the table already exists, BigQuery appends the data to the table. | 2180 * the table already exists, BigQuery appends the data to the table. |
2180 * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' | 2181 * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' |
2181 * error is returned in the job result. The default value is WRITE_EMPTY. Each | 2182 * error is returned in the job result. The default value is WRITE_EMPTY. Each |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2671 if (totalItems != null) { | 2672 if (totalItems != null) { |
2672 _json["totalItems"] = totalItems; | 2673 _json["totalItems"] = totalItems; |
2673 } | 2674 } |
2674 return _json; | 2675 return _json; |
2675 } | 2676 } |
2676 } | 2677 } |
2677 | 2678 |
2678 | 2679 |
2679 /** Not documented yet. */ | 2680 /** Not documented yet. */ |
2680 class JobReference { | 2681 class JobReference { |
2681 /** [Required] ID of the job. */ | 2682 /** |
| 2683 * [Required] The ID of the job. The ID must contain only letters (a-z, A-Z), |
| 2684 * numbers (0-9), underscores (_), or dashes (-). The maximum length is 1,024 |
| 2685 * characters. |
| 2686 */ |
2682 core.String jobId; | 2687 core.String jobId; |
2683 | 2688 |
2684 /** [Required] Project ID being billed for the job. */ | 2689 /** [Required] Project ID being billed for the job. */ |
2685 core.String projectId; | 2690 core.String projectId; |
2686 | 2691 |
2687 | 2692 |
2688 JobReference(); | 2693 JobReference(); |
2689 | 2694 |
2690 JobReference.fromJson(core.Map _json) { | 2695 JobReference.fromJson(core.Map _json) { |
2691 if (_json.containsKey("jobId")) { | 2696 if (_json.containsKey("jobId")) { |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3383 | 3388 |
3384 /** [Output-only] The type of the resource. */ | 3389 /** [Output-only] The type of the resource. */ |
3385 core.String kind; | 3390 core.String kind; |
3386 | 3391 |
3387 /** | 3392 /** |
3388 * [Output-only] The time when this table was last modified, in milliseconds | 3393 * [Output-only] The time when this table was last modified, in milliseconds |
3389 * since the epoch. | 3394 * since the epoch. |
3390 */ | 3395 */ |
3391 core.String lastModifiedTime; | 3396 core.String lastModifiedTime; |
3392 | 3397 |
3393 /** [Output-only] The size of the table in bytes. */ | 3398 /** |
| 3399 * [Output-only] The size of the table in bytes. This property is unavailable |
| 3400 * for tables that are actively receiving streaming inserts. |
| 3401 */ |
3394 core.String numBytes; | 3402 core.String numBytes; |
3395 | 3403 |
3396 /** [Output-only] The number of rows of data in this table. */ | 3404 /** |
| 3405 * [Output-only] The number of rows of data in this table. This property is |
| 3406 * unavailable for tables that are actively receiving streaming inserts. |
| 3407 */ |
3397 core.String numRows; | 3408 core.String numRows; |
3398 | 3409 |
3399 /** [Optional] Describes the schema of this table. */ | 3410 /** [Optional] Describes the schema of this table. */ |
3400 TableSchema schema; | 3411 TableSchema schema; |
3401 | 3412 |
3402 /** [Output-only] A URL that can be used to access this resource again. */ | 3413 /** [Output-only] A URL that can be used to access this resource again. */ |
3403 core.String selfLink; | 3414 core.String selfLink; |
3404 | 3415 |
3405 /** [Required] Reference describing the ID of this table. */ | 3416 /** [Required] Reference describing the ID of this table. */ |
3406 TableReference tableReference; | 3417 TableReference tableReference; |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3748 if (totalRows != null) { | 3759 if (totalRows != null) { |
3749 _json["totalRows"] = totalRows; | 3760 _json["totalRows"] = totalRows; |
3750 } | 3761 } |
3751 return _json; | 3762 return _json; |
3752 } | 3763 } |
3753 } | 3764 } |
3754 | 3765 |
3755 | 3766 |
3756 /** Not documented yet. */ | 3767 /** Not documented yet. */ |
3757 class TableFieldSchema { | 3768 class TableFieldSchema { |
3758 /** [Optional] The field description. */ | 3769 /** |
| 3770 * [Optional] The field description. The maximum length is 16K characters. |
| 3771 */ |
3759 core.String description; | 3772 core.String description; |
3760 | 3773 |
3761 /** | 3774 /** |
3762 * [Optional] Describes the nested schema fields if the type property is set | 3775 * [Optional] Describes the nested schema fields if the type property is set |
3763 * to RECORD. | 3776 * to RECORD. |
3764 */ | 3777 */ |
3765 core.List<TableFieldSchema> fields; | 3778 core.List<TableFieldSchema> fields; |
3766 | 3779 |
3767 /** | 3780 /** |
3768 * [Optional] The field mode. Possible values include NULLABLE, REQUIRED and | 3781 * [Optional] The field mode. Possible values include NULLABLE, REQUIRED and |
3769 * REPEATED. The default value is NULLABLE. | 3782 * REPEATED. The default value is NULLABLE. |
3770 */ | 3783 */ |
3771 core.String mode; | 3784 core.String mode; |
3772 | 3785 |
3773 /** [Required] The field name. */ | 3786 /** |
| 3787 * [Required] The field name. The name must contain only letters (a-z, A-Z), |
| 3788 * numbers (0-9), or underscores (_), and must start with a letter or |
| 3789 * underscore. The maximum length is 128 characters. |
| 3790 */ |
3774 core.String name; | 3791 core.String name; |
3775 | 3792 |
3776 /** | 3793 /** |
3777 * [Required] The field data type. Possible values include STRING, INTEGER, | 3794 * [Required] The field data type. Possible values include STRING, INTEGER, |
3778 * FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field | 3795 * FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field |
3779 * contains a nested schema). | 3796 * contains a nested schema). |
3780 */ | 3797 */ |
3781 core.String type; | 3798 core.String type; |
3782 | 3799 |
3783 | 3800 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4052 core.Map toJson() { | 4069 core.Map toJson() { |
4053 var _json = new core.Map(); | 4070 var _json = new core.Map(); |
4054 if (query != null) { | 4071 if (query != null) { |
4055 _json["query"] = query; | 4072 _json["query"] = query; |
4056 } | 4073 } |
4057 return _json; | 4074 return _json; |
4058 } | 4075 } |
4059 } | 4076 } |
4060 | 4077 |
4061 | 4078 |
OLD | NEW |