| OLD | NEW |
| 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 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2820 TableSchema schema; | 2820 TableSchema schema; |
| 2821 /** | 2821 /** |
| 2822 * [Deprecated] The inline schema. For CSV schemas, specify as | 2822 * [Deprecated] The inline schema. For CSV schemas, specify as |
| 2823 * "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, | 2823 * "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, |
| 2824 * baz:FLOAT". | 2824 * baz:FLOAT". |
| 2825 */ | 2825 */ |
| 2826 core.String schemaInline; | 2826 core.String schemaInline; |
| 2827 /** [Deprecated] The format of the schemaInline property. */ | 2827 /** [Deprecated] The format of the schemaInline property. */ |
| 2828 core.String schemaInlineFormat; | 2828 core.String schemaInlineFormat; |
| 2829 /** | 2829 /** |
| 2830 * [Experimental] Allows the schema of the desitination table to be updated as |
| 2831 * a side effect of the load job. Schema update options are supported in two |
| 2832 * cases: when writeDisposition is WRITE_APPEND; when writeDisposition is |
| 2833 * WRITE_TRUNCATE and the destination table is a partition of a table, |
| 2834 * specified by partition decorators. For normal tables, WRITE_TRUNCATE will |
| 2835 * always overwrite the schema. One or more of the following values are |
| 2836 * specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the |
| 2837 * schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the |
| 2838 * original schema to nullable. |
| 2839 */ |
| 2840 core.List<core.String> schemaUpdateOptions; |
| 2841 /** |
| 2830 * [Optional] The number of rows at the top of a CSV file that BigQuery will | 2842 * [Optional] The number of rows at the top of a CSV file that BigQuery will |
| 2831 * skip when loading the data. The default value is 0. This property is useful | 2843 * skip when loading the data. The default value is 0. This property is useful |
| 2832 * if you have header rows in the file that should be skipped. | 2844 * if you have header rows in the file that should be skipped. |
| 2833 */ | 2845 */ |
| 2834 core.int skipLeadingRows; | 2846 core.int skipLeadingRows; |
| 2835 /** | 2847 /** |
| 2836 * [Optional] The format of the data files. For CSV files, specify "CSV". For | 2848 * [Optional] The format of the data files. For CSV files, specify "CSV". For |
| 2837 * datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, | 2849 * datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, |
| 2838 * specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". The default | 2850 * specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". The default |
| 2839 * value is CSV. | 2851 * value is CSV. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2896 } | 2908 } |
| 2897 if (_json.containsKey("schema")) { | 2909 if (_json.containsKey("schema")) { |
| 2898 schema = new TableSchema.fromJson(_json["schema"]); | 2910 schema = new TableSchema.fromJson(_json["schema"]); |
| 2899 } | 2911 } |
| 2900 if (_json.containsKey("schemaInline")) { | 2912 if (_json.containsKey("schemaInline")) { |
| 2901 schemaInline = _json["schemaInline"]; | 2913 schemaInline = _json["schemaInline"]; |
| 2902 } | 2914 } |
| 2903 if (_json.containsKey("schemaInlineFormat")) { | 2915 if (_json.containsKey("schemaInlineFormat")) { |
| 2904 schemaInlineFormat = _json["schemaInlineFormat"]; | 2916 schemaInlineFormat = _json["schemaInlineFormat"]; |
| 2905 } | 2917 } |
| 2918 if (_json.containsKey("schemaUpdateOptions")) { |
| 2919 schemaUpdateOptions = _json["schemaUpdateOptions"]; |
| 2920 } |
| 2906 if (_json.containsKey("skipLeadingRows")) { | 2921 if (_json.containsKey("skipLeadingRows")) { |
| 2907 skipLeadingRows = _json["skipLeadingRows"]; | 2922 skipLeadingRows = _json["skipLeadingRows"]; |
| 2908 } | 2923 } |
| 2909 if (_json.containsKey("sourceFormat")) { | 2924 if (_json.containsKey("sourceFormat")) { |
| 2910 sourceFormat = _json["sourceFormat"]; | 2925 sourceFormat = _json["sourceFormat"]; |
| 2911 } | 2926 } |
| 2912 if (_json.containsKey("sourceUris")) { | 2927 if (_json.containsKey("sourceUris")) { |
| 2913 sourceUris = _json["sourceUris"]; | 2928 sourceUris = _json["sourceUris"]; |
| 2914 } | 2929 } |
| 2915 if (_json.containsKey("writeDisposition")) { | 2930 if (_json.containsKey("writeDisposition")) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2954 } | 2969 } |
| 2955 if (schema != null) { | 2970 if (schema != null) { |
| 2956 _json["schema"] = (schema).toJson(); | 2971 _json["schema"] = (schema).toJson(); |
| 2957 } | 2972 } |
| 2958 if (schemaInline != null) { | 2973 if (schemaInline != null) { |
| 2959 _json["schemaInline"] = schemaInline; | 2974 _json["schemaInline"] = schemaInline; |
| 2960 } | 2975 } |
| 2961 if (schemaInlineFormat != null) { | 2976 if (schemaInlineFormat != null) { |
| 2962 _json["schemaInlineFormat"] = schemaInlineFormat; | 2977 _json["schemaInlineFormat"] = schemaInlineFormat; |
| 2963 } | 2978 } |
| 2979 if (schemaUpdateOptions != null) { |
| 2980 _json["schemaUpdateOptions"] = schemaUpdateOptions; |
| 2981 } |
| 2964 if (skipLeadingRows != null) { | 2982 if (skipLeadingRows != null) { |
| 2965 _json["skipLeadingRows"] = skipLeadingRows; | 2983 _json["skipLeadingRows"] = skipLeadingRows; |
| 2966 } | 2984 } |
| 2967 if (sourceFormat != null) { | 2985 if (sourceFormat != null) { |
| 2968 _json["sourceFormat"] = sourceFormat; | 2986 _json["sourceFormat"] = sourceFormat; |
| 2969 } | 2987 } |
| 2970 if (sourceUris != null) { | 2988 if (sourceUris != null) { |
| 2971 _json["sourceUris"] = sourceUris; | 2989 _json["sourceUris"] = sourceUris; |
| 2972 } | 2990 } |
| 2973 if (writeDisposition != null) { | 2991 if (writeDisposition != null) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3013 * usage beyond this tier will fail (without incurring a charge). If | 3031 * usage beyond this tier will fail (without incurring a charge). If |
| 3014 * unspecified, this will be set to your project default. | 3032 * unspecified, this will be set to your project default. |
| 3015 */ | 3033 */ |
| 3016 core.int maximumBillingTier; | 3034 core.int maximumBillingTier; |
| 3017 /** | 3035 /** |
| 3018 * [Optional] Limits the bytes billed for this job. Queries that will have | 3036 * [Optional] Limits the bytes billed for this job. Queries that will have |
| 3019 * bytes billed beyond this limit will fail (without incurring a charge). If | 3037 * bytes billed beyond this limit will fail (without incurring a charge). If |
| 3020 * unspecified, this will be set to your project default. | 3038 * unspecified, this will be set to your project default. |
| 3021 */ | 3039 */ |
| 3022 core.String maximumBytesBilled; | 3040 core.String maximumBytesBilled; |
| 3041 /** |
| 3042 * [Experimental] Standard SQL only. Whether to use positional (?) or named |
| 3043 * (@myparam) query parameters in this query. |
| 3044 */ |
| 3045 core.String parameterMode; |
| 3023 /** [Deprecated] This property is deprecated. */ | 3046 /** [Deprecated] This property is deprecated. */ |
| 3024 core.bool preserveNulls; | 3047 core.bool preserveNulls; |
| 3025 /** | 3048 /** |
| 3026 * [Optional] Specifies a priority for the query. Possible values include | 3049 * [Optional] Specifies a priority for the query. Possible values include |
| 3027 * INTERACTIVE and BATCH. The default value is INTERACTIVE. | 3050 * INTERACTIVE and BATCH. The default value is INTERACTIVE. |
| 3028 */ | 3051 */ |
| 3029 core.String priority; | 3052 core.String priority; |
| 3030 /** [Required] BigQuery SQL query to execute. */ | 3053 /** [Required] BigQuery SQL query to execute. */ |
| 3031 core.String query; | 3054 core.String query; |
| 3055 /** [Experimental] Query parameters for Standard SQL queries. */ |
| 3056 core.List<QueryParameter> queryParameters; |
| 3057 /** |
| 3058 * [Experimental] Allows the schema of the desitination table to be updated as |
| 3059 * a side effect of the query job. Schema update options are supported in two |
| 3060 * cases: when writeDisposition is WRITE_APPEND; when writeDisposition is |
| 3061 * WRITE_TRUNCATE and the destination table is a partition of a table, |
| 3062 * specified by partition decorators. For normal tables, WRITE_TRUNCATE will |
| 3063 * always overwrite the schema. One or more of the following values are |
| 3064 * specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the |
| 3065 * schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the |
| 3066 * original schema to nullable. |
| 3067 */ |
| 3068 core.List<core.String> schemaUpdateOptions; |
| 3032 /** | 3069 /** |
| 3033 * [Optional] If querying an external data source outside of BigQuery, | 3070 * [Optional] If querying an external data source outside of BigQuery, |
| 3034 * describes the data format, location and other properties of the data | 3071 * describes the data format, location and other properties of the data |
| 3035 * source. By defining these properties, the data source can then be queried | 3072 * source. By defining these properties, the data source can then be queried |
| 3036 * as if it were a standard BigQuery table. | 3073 * as if it were a standard BigQuery table. |
| 3037 */ | 3074 */ |
| 3038 core.Map<core.String, ExternalDataConfiguration> tableDefinitions; | 3075 core.Map<core.String, ExternalDataConfiguration> tableDefinitions; |
| 3039 /** | 3076 /** |
| 3040 * [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for | 3077 * [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for |
| 3041 * this query. The default value is true. If set to false, the query will use | 3078 * this query. The default value is true. If set to false, the query will use |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3087 } | 3124 } |
| 3088 if (_json.containsKey("flattenResults")) { | 3125 if (_json.containsKey("flattenResults")) { |
| 3089 flattenResults = _json["flattenResults"]; | 3126 flattenResults = _json["flattenResults"]; |
| 3090 } | 3127 } |
| 3091 if (_json.containsKey("maximumBillingTier")) { | 3128 if (_json.containsKey("maximumBillingTier")) { |
| 3092 maximumBillingTier = _json["maximumBillingTier"]; | 3129 maximumBillingTier = _json["maximumBillingTier"]; |
| 3093 } | 3130 } |
| 3094 if (_json.containsKey("maximumBytesBilled")) { | 3131 if (_json.containsKey("maximumBytesBilled")) { |
| 3095 maximumBytesBilled = _json["maximumBytesBilled"]; | 3132 maximumBytesBilled = _json["maximumBytesBilled"]; |
| 3096 } | 3133 } |
| 3134 if (_json.containsKey("parameterMode")) { |
| 3135 parameterMode = _json["parameterMode"]; |
| 3136 } |
| 3097 if (_json.containsKey("preserveNulls")) { | 3137 if (_json.containsKey("preserveNulls")) { |
| 3098 preserveNulls = _json["preserveNulls"]; | 3138 preserveNulls = _json["preserveNulls"]; |
| 3099 } | 3139 } |
| 3100 if (_json.containsKey("priority")) { | 3140 if (_json.containsKey("priority")) { |
| 3101 priority = _json["priority"]; | 3141 priority = _json["priority"]; |
| 3102 } | 3142 } |
| 3103 if (_json.containsKey("query")) { | 3143 if (_json.containsKey("query")) { |
| 3104 query = _json["query"]; | 3144 query = _json["query"]; |
| 3105 } | 3145 } |
| 3146 if (_json.containsKey("queryParameters")) { |
| 3147 queryParameters = _json["queryParameters"].map((value) => new QueryParamet
er.fromJson(value)).toList(); |
| 3148 } |
| 3149 if (_json.containsKey("schemaUpdateOptions")) { |
| 3150 schemaUpdateOptions = _json["schemaUpdateOptions"]; |
| 3151 } |
| 3106 if (_json.containsKey("tableDefinitions")) { | 3152 if (_json.containsKey("tableDefinitions")) { |
| 3107 tableDefinitions = commons.mapMap(_json["tableDefinitions"], (item) => new
ExternalDataConfiguration.fromJson(item)); | 3153 tableDefinitions = commons.mapMap(_json["tableDefinitions"], (item) => new
ExternalDataConfiguration.fromJson(item)); |
| 3108 } | 3154 } |
| 3109 if (_json.containsKey("useLegacySql")) { | 3155 if (_json.containsKey("useLegacySql")) { |
| 3110 useLegacySql = _json["useLegacySql"]; | 3156 useLegacySql = _json["useLegacySql"]; |
| 3111 } | 3157 } |
| 3112 if (_json.containsKey("useQueryCache")) { | 3158 if (_json.containsKey("useQueryCache")) { |
| 3113 useQueryCache = _json["useQueryCache"]; | 3159 useQueryCache = _json["useQueryCache"]; |
| 3114 } | 3160 } |
| 3115 if (_json.containsKey("userDefinedFunctionResources")) { | 3161 if (_json.containsKey("userDefinedFunctionResources")) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3136 } | 3182 } |
| 3137 if (flattenResults != null) { | 3183 if (flattenResults != null) { |
| 3138 _json["flattenResults"] = flattenResults; | 3184 _json["flattenResults"] = flattenResults; |
| 3139 } | 3185 } |
| 3140 if (maximumBillingTier != null) { | 3186 if (maximumBillingTier != null) { |
| 3141 _json["maximumBillingTier"] = maximumBillingTier; | 3187 _json["maximumBillingTier"] = maximumBillingTier; |
| 3142 } | 3188 } |
| 3143 if (maximumBytesBilled != null) { | 3189 if (maximumBytesBilled != null) { |
| 3144 _json["maximumBytesBilled"] = maximumBytesBilled; | 3190 _json["maximumBytesBilled"] = maximumBytesBilled; |
| 3145 } | 3191 } |
| 3192 if (parameterMode != null) { |
| 3193 _json["parameterMode"] = parameterMode; |
| 3194 } |
| 3146 if (preserveNulls != null) { | 3195 if (preserveNulls != null) { |
| 3147 _json["preserveNulls"] = preserveNulls; | 3196 _json["preserveNulls"] = preserveNulls; |
| 3148 } | 3197 } |
| 3149 if (priority != null) { | 3198 if (priority != null) { |
| 3150 _json["priority"] = priority; | 3199 _json["priority"] = priority; |
| 3151 } | 3200 } |
| 3152 if (query != null) { | 3201 if (query != null) { |
| 3153 _json["query"] = query; | 3202 _json["query"] = query; |
| 3154 } | 3203 } |
| 3204 if (queryParameters != null) { |
| 3205 _json["queryParameters"] = queryParameters.map((value) => (value).toJson()
).toList(); |
| 3206 } |
| 3207 if (schemaUpdateOptions != null) { |
| 3208 _json["schemaUpdateOptions"] = schemaUpdateOptions; |
| 3209 } |
| 3155 if (tableDefinitions != null) { | 3210 if (tableDefinitions != null) { |
| 3156 _json["tableDefinitions"] = commons.mapMap(tableDefinitions, (item) => (it
em).toJson()); | 3211 _json["tableDefinitions"] = commons.mapMap(tableDefinitions, (item) => (it
em).toJson()); |
| 3157 } | 3212 } |
| 3158 if (useLegacySql != null) { | 3213 if (useLegacySql != null) { |
| 3159 _json["useLegacySql"] = useLegacySql; | 3214 _json["useLegacySql"] = useLegacySql; |
| 3160 } | 3215 } |
| 3161 if (useQueryCache != null) { | 3216 if (useQueryCache != null) { |
| 3162 _json["useQueryCache"] = useQueryCache; | 3217 _json["useQueryCache"] = useQueryCache; |
| 3163 } | 3218 } |
| 3164 if (userDefinedFunctionResources != null) { | 3219 if (userDefinedFunctionResources != null) { |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3513 core.List<TableReference> referencedTables; | 3568 core.List<TableReference> referencedTables; |
| 3514 /** | 3569 /** |
| 3515 * [Output-only, Experimental] The schema of the results. Present only for | 3570 * [Output-only, Experimental] The schema of the results. Present only for |
| 3516 * successful dry run of non-legacy SQL queries. | 3571 * successful dry run of non-legacy SQL queries. |
| 3517 */ | 3572 */ |
| 3518 TableSchema schema; | 3573 TableSchema schema; |
| 3519 /** [Output-only] Total bytes billed for the job. */ | 3574 /** [Output-only] Total bytes billed for the job. */ |
| 3520 core.String totalBytesBilled; | 3575 core.String totalBytesBilled; |
| 3521 /** [Output-only] Total bytes processed for the job. */ | 3576 /** [Output-only] Total bytes processed for the job. */ |
| 3522 core.String totalBytesProcessed; | 3577 core.String totalBytesProcessed; |
| 3578 /** |
| 3579 * [Output-only, Experimental] Standard SQL only: list of undeclared query |
| 3580 * parameters detected during a dry run validation. |
| 3581 */ |
| 3582 core.List<QueryParameter> undeclaredQueryParameters; |
| 3523 | 3583 |
| 3524 JobStatistics2(); | 3584 JobStatistics2(); |
| 3525 | 3585 |
| 3526 JobStatistics2.fromJson(core.Map _json) { | 3586 JobStatistics2.fromJson(core.Map _json) { |
| 3527 if (_json.containsKey("billingTier")) { | 3587 if (_json.containsKey("billingTier")) { |
| 3528 billingTier = _json["billingTier"]; | 3588 billingTier = _json["billingTier"]; |
| 3529 } | 3589 } |
| 3530 if (_json.containsKey("cacheHit")) { | 3590 if (_json.containsKey("cacheHit")) { |
| 3531 cacheHit = _json["cacheHit"]; | 3591 cacheHit = _json["cacheHit"]; |
| 3532 } | 3592 } |
| 3533 if (_json.containsKey("numDmlAffectedRows")) { | 3593 if (_json.containsKey("numDmlAffectedRows")) { |
| 3534 numDmlAffectedRows = _json["numDmlAffectedRows"]; | 3594 numDmlAffectedRows = _json["numDmlAffectedRows"]; |
| 3535 } | 3595 } |
| 3536 if (_json.containsKey("queryPlan")) { | 3596 if (_json.containsKey("queryPlan")) { |
| 3537 queryPlan = _json["queryPlan"].map((value) => new ExplainQueryStage.fromJs
on(value)).toList(); | 3597 queryPlan = _json["queryPlan"].map((value) => new ExplainQueryStage.fromJs
on(value)).toList(); |
| 3538 } | 3598 } |
| 3539 if (_json.containsKey("referencedTables")) { | 3599 if (_json.containsKey("referencedTables")) { |
| 3540 referencedTables = _json["referencedTables"].map((value) => new TableRefer
ence.fromJson(value)).toList(); | 3600 referencedTables = _json["referencedTables"].map((value) => new TableRefer
ence.fromJson(value)).toList(); |
| 3541 } | 3601 } |
| 3542 if (_json.containsKey("schema")) { | 3602 if (_json.containsKey("schema")) { |
| 3543 schema = new TableSchema.fromJson(_json["schema"]); | 3603 schema = new TableSchema.fromJson(_json["schema"]); |
| 3544 } | 3604 } |
| 3545 if (_json.containsKey("totalBytesBilled")) { | 3605 if (_json.containsKey("totalBytesBilled")) { |
| 3546 totalBytesBilled = _json["totalBytesBilled"]; | 3606 totalBytesBilled = _json["totalBytesBilled"]; |
| 3547 } | 3607 } |
| 3548 if (_json.containsKey("totalBytesProcessed")) { | 3608 if (_json.containsKey("totalBytesProcessed")) { |
| 3549 totalBytesProcessed = _json["totalBytesProcessed"]; | 3609 totalBytesProcessed = _json["totalBytesProcessed"]; |
| 3550 } | 3610 } |
| 3611 if (_json.containsKey("undeclaredQueryParameters")) { |
| 3612 undeclaredQueryParameters = _json["undeclaredQueryParameters"].map((value)
=> new QueryParameter.fromJson(value)).toList(); |
| 3613 } |
| 3551 } | 3614 } |
| 3552 | 3615 |
| 3553 core.Map toJson() { | 3616 core.Map toJson() { |
| 3554 var _json = new core.Map(); | 3617 var _json = new core.Map(); |
| 3555 if (billingTier != null) { | 3618 if (billingTier != null) { |
| 3556 _json["billingTier"] = billingTier; | 3619 _json["billingTier"] = billingTier; |
| 3557 } | 3620 } |
| 3558 if (cacheHit != null) { | 3621 if (cacheHit != null) { |
| 3559 _json["cacheHit"] = cacheHit; | 3622 _json["cacheHit"] = cacheHit; |
| 3560 } | 3623 } |
| 3561 if (numDmlAffectedRows != null) { | 3624 if (numDmlAffectedRows != null) { |
| 3562 _json["numDmlAffectedRows"] = numDmlAffectedRows; | 3625 _json["numDmlAffectedRows"] = numDmlAffectedRows; |
| 3563 } | 3626 } |
| 3564 if (queryPlan != null) { | 3627 if (queryPlan != null) { |
| 3565 _json["queryPlan"] = queryPlan.map((value) => (value).toJson()).toList(); | 3628 _json["queryPlan"] = queryPlan.map((value) => (value).toJson()).toList(); |
| 3566 } | 3629 } |
| 3567 if (referencedTables != null) { | 3630 if (referencedTables != null) { |
| 3568 _json["referencedTables"] = referencedTables.map((value) => (value).toJson
()).toList(); | 3631 _json["referencedTables"] = referencedTables.map((value) => (value).toJson
()).toList(); |
| 3569 } | 3632 } |
| 3570 if (schema != null) { | 3633 if (schema != null) { |
| 3571 _json["schema"] = (schema).toJson(); | 3634 _json["schema"] = (schema).toJson(); |
| 3572 } | 3635 } |
| 3573 if (totalBytesBilled != null) { | 3636 if (totalBytesBilled != null) { |
| 3574 _json["totalBytesBilled"] = totalBytesBilled; | 3637 _json["totalBytesBilled"] = totalBytesBilled; |
| 3575 } | 3638 } |
| 3576 if (totalBytesProcessed != null) { | 3639 if (totalBytesProcessed != null) { |
| 3577 _json["totalBytesProcessed"] = totalBytesProcessed; | 3640 _json["totalBytesProcessed"] = totalBytesProcessed; |
| 3578 } | 3641 } |
| 3642 if (undeclaredQueryParameters != null) { |
| 3643 _json["undeclaredQueryParameters"] = undeclaredQueryParameters.map((value)
=> (value).toJson()).toList(); |
| 3644 } |
| 3579 return _json; | 3645 return _json; |
| 3580 } | 3646 } |
| 3581 } | 3647 } |
| 3582 | 3648 |
| 3583 class JobStatistics3 { | 3649 class JobStatistics3 { |
| 3584 /** [Output-only] Number of bytes of source data in a load job. */ | 3650 /** [Output-only] Number of bytes of source data in a load job. */ |
| 3585 core.String inputFileBytes; | 3651 core.String inputFileBytes; |
| 3586 /** [Output-only] Number of source files in a load job. */ | 3652 /** [Output-only] Number of source files in a load job. */ |
| 3587 core.String inputFiles; | 3653 core.String inputFiles; |
| 3588 /** | 3654 /** |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3860 | 3926 |
| 3861 core.Map toJson() { | 3927 core.Map toJson() { |
| 3862 var _json = new core.Map(); | 3928 var _json = new core.Map(); |
| 3863 if (projectId != null) { | 3929 if (projectId != null) { |
| 3864 _json["projectId"] = projectId; | 3930 _json["projectId"] = projectId; |
| 3865 } | 3931 } |
| 3866 return _json; | 3932 return _json; |
| 3867 } | 3933 } |
| 3868 } | 3934 } |
| 3869 | 3935 |
| 3936 class QueryParameter { |
| 3937 /** |
| 3938 * [Optional] If unset, this is a positional parameter. Otherwise, should be |
| 3939 * unique within a query. |
| 3940 */ |
| 3941 core.String name; |
| 3942 /** [Required] The type of this parameter. */ |
| 3943 QueryParameterType parameterType; |
| 3944 /** [Required] The value of this parameter. */ |
| 3945 QueryParameterValue parameterValue; |
| 3946 |
| 3947 QueryParameter(); |
| 3948 |
| 3949 QueryParameter.fromJson(core.Map _json) { |
| 3950 if (_json.containsKey("name")) { |
| 3951 name = _json["name"]; |
| 3952 } |
| 3953 if (_json.containsKey("parameterType")) { |
| 3954 parameterType = new QueryParameterType.fromJson(_json["parameterType"]); |
| 3955 } |
| 3956 if (_json.containsKey("parameterValue")) { |
| 3957 parameterValue = new QueryParameterValue.fromJson(_json["parameterValue"])
; |
| 3958 } |
| 3959 } |
| 3960 |
| 3961 core.Map toJson() { |
| 3962 var _json = new core.Map(); |
| 3963 if (name != null) { |
| 3964 _json["name"] = name; |
| 3965 } |
| 3966 if (parameterType != null) { |
| 3967 _json["parameterType"] = (parameterType).toJson(); |
| 3968 } |
| 3969 if (parameterValue != null) { |
| 3970 _json["parameterValue"] = (parameterValue).toJson(); |
| 3971 } |
| 3972 return _json; |
| 3973 } |
| 3974 } |
| 3975 |
| 3976 class QueryParameterTypeStructTypes { |
| 3977 /** [Optional] Human-oriented description of the field. */ |
| 3978 core.String description; |
| 3979 /** [Optional] The name of this field. */ |
| 3980 core.String name; |
| 3981 /** [Required] The type of this field. */ |
| 3982 QueryParameterType type; |
| 3983 |
| 3984 QueryParameterTypeStructTypes(); |
| 3985 |
| 3986 QueryParameterTypeStructTypes.fromJson(core.Map _json) { |
| 3987 if (_json.containsKey("description")) { |
| 3988 description = _json["description"]; |
| 3989 } |
| 3990 if (_json.containsKey("name")) { |
| 3991 name = _json["name"]; |
| 3992 } |
| 3993 if (_json.containsKey("type")) { |
| 3994 type = new QueryParameterType.fromJson(_json["type"]); |
| 3995 } |
| 3996 } |
| 3997 |
| 3998 core.Map toJson() { |
| 3999 var _json = new core.Map(); |
| 4000 if (description != null) { |
| 4001 _json["description"] = description; |
| 4002 } |
| 4003 if (name != null) { |
| 4004 _json["name"] = name; |
| 4005 } |
| 4006 if (type != null) { |
| 4007 _json["type"] = (type).toJson(); |
| 4008 } |
| 4009 return _json; |
| 4010 } |
| 4011 } |
| 4012 |
| 4013 class QueryParameterType { |
| 4014 /** [Optional] The type of the array's elements, if this is an array. */ |
| 4015 QueryParameterType arrayType; |
| 4016 /** |
| 4017 * [Optional] The types of the fields of this struct, in order, if this is a |
| 4018 * struct. |
| 4019 */ |
| 4020 core.List<QueryParameterTypeStructTypes> structTypes; |
| 4021 /** [Required] The top level type of this field. */ |
| 4022 core.String type; |
| 4023 |
| 4024 QueryParameterType(); |
| 4025 |
| 4026 QueryParameterType.fromJson(core.Map _json) { |
| 4027 if (_json.containsKey("arrayType")) { |
| 4028 arrayType = new QueryParameterType.fromJson(_json["arrayType"]); |
| 4029 } |
| 4030 if (_json.containsKey("structTypes")) { |
| 4031 structTypes = _json["structTypes"].map((value) => new QueryParameterTypeSt
ructTypes.fromJson(value)).toList(); |
| 4032 } |
| 4033 if (_json.containsKey("type")) { |
| 4034 type = _json["type"]; |
| 4035 } |
| 4036 } |
| 4037 |
| 4038 core.Map toJson() { |
| 4039 var _json = new core.Map(); |
| 4040 if (arrayType != null) { |
| 4041 _json["arrayType"] = (arrayType).toJson(); |
| 4042 } |
| 4043 if (structTypes != null) { |
| 4044 _json["structTypes"] = structTypes.map((value) => (value).toJson()).toList
(); |
| 4045 } |
| 4046 if (type != null) { |
| 4047 _json["type"] = type; |
| 4048 } |
| 4049 return _json; |
| 4050 } |
| 4051 } |
| 4052 |
| 4053 class QueryParameterValue { |
| 4054 /** [Optional] The array values, if this is an array type. */ |
| 4055 core.List<QueryParameterValue> arrayValues; |
| 4056 /** |
| 4057 * [Optional] The struct field values, in order of the struct type's |
| 4058 * declaration. |
| 4059 */ |
| 4060 core.List<QueryParameterValue> structValues; |
| 4061 /** [Optional] The value of this value, if a simple scalar type. */ |
| 4062 core.String value; |
| 4063 |
| 4064 QueryParameterValue(); |
| 4065 |
| 4066 QueryParameterValue.fromJson(core.Map _json) { |
| 4067 if (_json.containsKey("arrayValues")) { |
| 4068 arrayValues = _json["arrayValues"].map((value) => new QueryParameterValue.
fromJson(value)).toList(); |
| 4069 } |
| 4070 if (_json.containsKey("structValues")) { |
| 4071 structValues = _json["structValues"].map((value) => new QueryParameterValu
e.fromJson(value)).toList(); |
| 4072 } |
| 4073 if (_json.containsKey("value")) { |
| 4074 value = _json["value"]; |
| 4075 } |
| 4076 } |
| 4077 |
| 4078 core.Map toJson() { |
| 4079 var _json = new core.Map(); |
| 4080 if (arrayValues != null) { |
| 4081 _json["arrayValues"] = arrayValues.map((value) => (value).toJson()).toList
(); |
| 4082 } |
| 4083 if (structValues != null) { |
| 4084 _json["structValues"] = structValues.map((value) => (value).toJson()).toLi
st(); |
| 4085 } |
| 4086 if (value != null) { |
| 4087 _json["value"] = value; |
| 4088 } |
| 4089 return _json; |
| 4090 } |
| 4091 } |
| 4092 |
| 3870 class QueryRequest { | 4093 class QueryRequest { |
| 3871 /** | 4094 /** |
| 3872 * [Optional] Specifies the default datasetId and projectId to assume for any | 4095 * [Optional] Specifies the default datasetId and projectId to assume for any |
| 3873 * unqualified table names in the query. If not set, all table names in the | 4096 * unqualified table names in the query. If not set, all table names in the |
| 3874 * query string must be qualified in the format 'datasetId.tableId'. | 4097 * query string must be qualified in the format 'datasetId.tableId'. |
| 3875 */ | 4098 */ |
| 3876 DatasetReference defaultDataset; | 4099 DatasetReference defaultDataset; |
| 3877 /** | 4100 /** |
| 3878 * [Optional] If set to true, BigQuery doesn't run the job. Instead, if the | 4101 * [Optional] If set to true, BigQuery doesn't run the job. Instead, if the |
| 3879 * query is valid, BigQuery returns statistics about the job such as how many | 4102 * query is valid, BigQuery returns statistics about the job such as how many |
| 3880 * bytes would be processed. If the query is invalid, an error returns. The | 4103 * bytes would be processed. If the query is invalid, an error returns. The |
| 3881 * default value is false. | 4104 * default value is false. |
| 3882 */ | 4105 */ |
| 3883 core.bool dryRun; | 4106 core.bool dryRun; |
| 3884 /** The resource type of the request. */ | 4107 /** The resource type of the request. */ |
| 3885 core.String kind; | 4108 core.String kind; |
| 3886 /** | 4109 /** |
| 3887 * [Optional] The maximum number of rows of data to return per page of | 4110 * [Optional] The maximum number of rows of data to return per page of |
| 3888 * results. Setting this flag to a small value such as 1000 and then paging | 4111 * results. Setting this flag to a small value such as 1000 and then paging |
| 3889 * through results might improve reliability when the query result set is | 4112 * through results might improve reliability when the query result set is |
| 3890 * large. In addition to this limit, responses are also limited to 10 MB. By | 4113 * large. In addition to this limit, responses are also limited to 10 MB. By |
| 3891 * default, there is no maximum row count, and only the byte limit applies. | 4114 * default, there is no maximum row count, and only the byte limit applies. |
| 3892 */ | 4115 */ |
| 3893 core.int maxResults; | 4116 core.int maxResults; |
| 4117 /** |
| 4118 * [Experimental] Standard SQL only. Whether to use positional (?) or named |
| 4119 * (@myparam) query parameters in this query. |
| 4120 */ |
| 4121 core.String parameterMode; |
| 3894 /** [Deprecated] This property is deprecated. */ | 4122 /** [Deprecated] This property is deprecated. */ |
| 3895 core.bool preserveNulls; | 4123 core.bool preserveNulls; |
| 3896 /** | 4124 /** |
| 3897 * [Required] A query string, following the BigQuery query syntax, of the | 4125 * [Required] A query string, following the BigQuery query syntax, of the |
| 3898 * query to execute. Example: "SELECT count(f1) FROM | 4126 * query to execute. Example: "SELECT count(f1) FROM |
| 3899 * [myProjectId:myDatasetId.myTableId]". | 4127 * [myProjectId:myDatasetId.myTableId]". |
| 3900 */ | 4128 */ |
| 3901 core.String query; | 4129 core.String query; |
| 4130 /** [Experimental] Query parameters for Standard SQL queries. */ |
| 4131 core.List<QueryParameter> queryParameters; |
| 3902 /** | 4132 /** |
| 3903 * [Optional] How long to wait for the query to complete, in milliseconds, | 4133 * [Optional] How long to wait for the query to complete, in milliseconds, |
| 3904 * before the request times out and returns. Note that this is only a timeout | 4134 * before the request times out and returns. Note that this is only a timeout |
| 3905 * for the request, not the query. If the query takes longer to run than the | 4135 * for the request, not the query. If the query takes longer to run than the |
| 3906 * timeout value, the call returns without any results and with the | 4136 * timeout value, the call returns without any results and with the |
| 3907 * 'jobComplete' flag set to false. You can call GetQueryResults() to wait for | 4137 * 'jobComplete' flag set to false. You can call GetQueryResults() to wait for |
| 3908 * the query to complete and read the results. The default value is 10000 | 4138 * the query to complete and read the results. The default value is 10000 |
| 3909 * milliseconds (10 seconds). | 4139 * milliseconds (10 seconds). |
| 3910 */ | 4140 */ |
| 3911 core.int timeoutMs; | 4141 core.int timeoutMs; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3933 } | 4163 } |
| 3934 if (_json.containsKey("dryRun")) { | 4164 if (_json.containsKey("dryRun")) { |
| 3935 dryRun = _json["dryRun"]; | 4165 dryRun = _json["dryRun"]; |
| 3936 } | 4166 } |
| 3937 if (_json.containsKey("kind")) { | 4167 if (_json.containsKey("kind")) { |
| 3938 kind = _json["kind"]; | 4168 kind = _json["kind"]; |
| 3939 } | 4169 } |
| 3940 if (_json.containsKey("maxResults")) { | 4170 if (_json.containsKey("maxResults")) { |
| 3941 maxResults = _json["maxResults"]; | 4171 maxResults = _json["maxResults"]; |
| 3942 } | 4172 } |
| 4173 if (_json.containsKey("parameterMode")) { |
| 4174 parameterMode = _json["parameterMode"]; |
| 4175 } |
| 3943 if (_json.containsKey("preserveNulls")) { | 4176 if (_json.containsKey("preserveNulls")) { |
| 3944 preserveNulls = _json["preserveNulls"]; | 4177 preserveNulls = _json["preserveNulls"]; |
| 3945 } | 4178 } |
| 3946 if (_json.containsKey("query")) { | 4179 if (_json.containsKey("query")) { |
| 3947 query = _json["query"]; | 4180 query = _json["query"]; |
| 3948 } | 4181 } |
| 4182 if (_json.containsKey("queryParameters")) { |
| 4183 queryParameters = _json["queryParameters"].map((value) => new QueryParamet
er.fromJson(value)).toList(); |
| 4184 } |
| 3949 if (_json.containsKey("timeoutMs")) { | 4185 if (_json.containsKey("timeoutMs")) { |
| 3950 timeoutMs = _json["timeoutMs"]; | 4186 timeoutMs = _json["timeoutMs"]; |
| 3951 } | 4187 } |
| 3952 if (_json.containsKey("useLegacySql")) { | 4188 if (_json.containsKey("useLegacySql")) { |
| 3953 useLegacySql = _json["useLegacySql"]; | 4189 useLegacySql = _json["useLegacySql"]; |
| 3954 } | 4190 } |
| 3955 if (_json.containsKey("useQueryCache")) { | 4191 if (_json.containsKey("useQueryCache")) { |
| 3956 useQueryCache = _json["useQueryCache"]; | 4192 useQueryCache = _json["useQueryCache"]; |
| 3957 } | 4193 } |
| 3958 } | 4194 } |
| 3959 | 4195 |
| 3960 core.Map toJson() { | 4196 core.Map toJson() { |
| 3961 var _json = new core.Map(); | 4197 var _json = new core.Map(); |
| 3962 if (defaultDataset != null) { | 4198 if (defaultDataset != null) { |
| 3963 _json["defaultDataset"] = (defaultDataset).toJson(); | 4199 _json["defaultDataset"] = (defaultDataset).toJson(); |
| 3964 } | 4200 } |
| 3965 if (dryRun != null) { | 4201 if (dryRun != null) { |
| 3966 _json["dryRun"] = dryRun; | 4202 _json["dryRun"] = dryRun; |
| 3967 } | 4203 } |
| 3968 if (kind != null) { | 4204 if (kind != null) { |
| 3969 _json["kind"] = kind; | 4205 _json["kind"] = kind; |
| 3970 } | 4206 } |
| 3971 if (maxResults != null) { | 4207 if (maxResults != null) { |
| 3972 _json["maxResults"] = maxResults; | 4208 _json["maxResults"] = maxResults; |
| 3973 } | 4209 } |
| 4210 if (parameterMode != null) { |
| 4211 _json["parameterMode"] = parameterMode; |
| 4212 } |
| 3974 if (preserveNulls != null) { | 4213 if (preserveNulls != null) { |
| 3975 _json["preserveNulls"] = preserveNulls; | 4214 _json["preserveNulls"] = preserveNulls; |
| 3976 } | 4215 } |
| 3977 if (query != null) { | 4216 if (query != null) { |
| 3978 _json["query"] = query; | 4217 _json["query"] = query; |
| 3979 } | 4218 } |
| 4219 if (queryParameters != null) { |
| 4220 _json["queryParameters"] = queryParameters.map((value) => (value).toJson()
).toList(); |
| 4221 } |
| 3980 if (timeoutMs != null) { | 4222 if (timeoutMs != null) { |
| 3981 _json["timeoutMs"] = timeoutMs; | 4223 _json["timeoutMs"] = timeoutMs; |
| 3982 } | 4224 } |
| 3983 if (useLegacySql != null) { | 4225 if (useLegacySql != null) { |
| 3984 _json["useLegacySql"] = useLegacySql; | 4226 _json["useLegacySql"] = useLegacySql; |
| 3985 } | 4227 } |
| 3986 if (useQueryCache != null) { | 4228 if (useQueryCache != null) { |
| 3987 _json["useQueryCache"] = useQueryCache; | 4229 _json["useQueryCache"] = useQueryCache; |
| 3988 } | 4230 } |
| 3989 return _json; | 4231 return _json; |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4992 } | 5234 } |
| 4993 if (useLegacySql != null) { | 5235 if (useLegacySql != null) { |
| 4994 _json["useLegacySql"] = useLegacySql; | 5236 _json["useLegacySql"] = useLegacySql; |
| 4995 } | 5237 } |
| 4996 if (userDefinedFunctionResources != null) { | 5238 if (userDefinedFunctionResources != null) { |
| 4997 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); | 5239 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); |
| 4998 } | 5240 } |
| 4999 return _json; | 5241 return _json; |
| 5000 } | 5242 } |
| 5001 } | 5243 } |
| OLD | NEW |