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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 * Lists all datasets in the specified project to which you have been granted | 205 * Lists all datasets in the specified project to which you have been granted |
206 * the READER dataset role. | 206 * the READER dataset role. |
207 * | 207 * |
208 * Request parameters: | 208 * Request parameters: |
209 * | 209 * |
210 * [projectId] - Project ID of the datasets to be listed | 210 * [projectId] - Project ID of the datasets to be listed |
211 * | 211 * |
212 * [all] - Whether to list all datasets, including hidden ones | 212 * [all] - Whether to list all datasets, including hidden ones |
213 * | 213 * |
214 * [filter] - An expression for filtering the results of the request by label. | 214 * [filter] - An expression for filtering the results of the request by label. |
215 * The syntax is "labels.[:]". Multiple filters can be ANDed together by | 215 * The syntax is "labels.<name>[:<value>]". Multiple filters can be ANDed |
216 * connecting with a space. Example: "labels.department:receiving | 216 * together by connecting with a space. Example: "labels.department:receiving |
217 * labels.active". See | 217 * labels.active". See Filtering datasets using labels for details. |
218 * https://cloud.google.com/bigquery/docs/labeling-datasets#filtering_datasets
_using_labels | |
219 * for details. | |
220 * | 218 * |
221 * [maxResults] - The maximum number of results to return | 219 * [maxResults] - The maximum number of results to return |
222 * | 220 * |
223 * [pageToken] - Page token, returned by a previous call, to request the next | 221 * [pageToken] - Page token, returned by a previous call, to request the next |
224 * page of results | 222 * page of results |
225 * | 223 * |
226 * Completes with a [DatasetList]. | 224 * Completes with a [DatasetList]. |
227 * | 225 * |
228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 226 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
229 * error. | 227 * error. |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 var _downloadOptions = commons.DownloadOptions.Metadata; | 404 var _downloadOptions = commons.DownloadOptions.Metadata; |
407 var _body = null; | 405 var _body = null; |
408 | 406 |
409 if (projectId == null) { | 407 if (projectId == null) { |
410 throw new core.ArgumentError("Parameter projectId is required."); | 408 throw new core.ArgumentError("Parameter projectId is required."); |
411 } | 409 } |
412 if (jobId == null) { | 410 if (jobId == null) { |
413 throw new core.ArgumentError("Parameter jobId is required."); | 411 throw new core.ArgumentError("Parameter jobId is required."); |
414 } | 412 } |
415 | 413 |
416 _url = 'project/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' +
commons.Escaper.ecapeVariable('$jobId') + '/cancel'; | 414 _url = 'projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/'
+ commons.Escaper.ecapeVariable('$jobId') + '/cancel'; |
417 | 415 |
418 var _response = _requester.request(_url, | 416 var _response = _requester.request(_url, |
419 "POST", | 417 "POST", |
420 body: _body, | 418 body: _body, |
421 queryParams: _queryParams, | 419 queryParams: _queryParams, |
422 uploadOptions: _uploadOptions, | 420 uploadOptions: _uploadOptions, |
423 uploadMedia: _uploadMedia, | 421 uploadMedia: _uploadMedia, |
424 downloadOptions: _downloadOptions); | 422 downloadOptions: _downloadOptions); |
425 return _response.then((data) => new JobCancelResponse.fromJson(data)); | 423 return _response.then((data) => new JobCancelResponse.fromJson(data)); |
426 } | 424 } |
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1679 * projectId:datasetId. The dataset name without the project name is given in | 1677 * projectId:datasetId. The dataset name without the project name is given in |
1680 * the datasetId field. When creating a new dataset, leave this field blank, | 1678 * the datasetId field. When creating a new dataset, leave this field blank, |
1681 * and instead specify the datasetId field. | 1679 * and instead specify the datasetId field. |
1682 */ | 1680 */ |
1683 core.String id; | 1681 core.String id; |
1684 /** [Output-only] The resource type. */ | 1682 /** [Output-only] The resource type. */ |
1685 core.String kind; | 1683 core.String kind; |
1686 /** | 1684 /** |
1687 * [Experimental] The labels associated with this dataset. You can use these | 1685 * [Experimental] The labels associated with this dataset. You can use these |
1688 * to organize and group your datasets. You can set this property when | 1686 * to organize and group your datasets. You can set this property when |
1689 * inserting or updating a dataset. Label keys and values can be no longer | 1687 * inserting or updating a dataset. See Labeling Datasets for more |
1690 * than 63 characters, can only contain letters, numeric characters, | 1688 * information. |
1691 * underscores and dashes. International characters are allowed. Label values | |
1692 * are optional. Label keys must start with a letter and must be unique within | |
1693 * a dataset. Both keys and values are additionally constrained to be <= 128 | |
1694 * bytes in size. | |
1695 */ | 1689 */ |
1696 core.Map<core.String, core.String> labels; | 1690 core.Map<core.String, core.String> labels; |
1697 /** | 1691 /** |
1698 * [Output-only] The date when this dataset or any of its tables was last | 1692 * [Output-only] The date when this dataset or any of its tables was last |
1699 * modified, in milliseconds since the epoch. | 1693 * modified, in milliseconds since the epoch. |
1700 */ | 1694 */ |
1701 core.String lastModifiedTime; | 1695 core.String lastModifiedTime; |
1702 /** | 1696 /** |
1703 * [Experimental] The geographic location where the dataset should reside. | 1697 * [Experimental] The geographic location where the dataset should reside. |
1704 * Possible values include EU and US. The default value is US. | 1698 * Possible values include EU and US. The default value is US. |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2587 JobConfigurationTableCopy copy; | 2581 JobConfigurationTableCopy copy; |
2588 /** | 2582 /** |
2589 * [Optional] If set, don't actually run this job. A valid query will return a | 2583 * [Optional] If set, don't actually run this job. A valid query will return a |
2590 * mostly empty response with some processing statistics, while an invalid | 2584 * mostly empty response with some processing statistics, while an invalid |
2591 * query will return the same error it would if it wasn't a dry run. Behavior | 2585 * query will return the same error it would if it wasn't a dry run. Behavior |
2592 * of non-query jobs is undefined. | 2586 * of non-query jobs is undefined. |
2593 */ | 2587 */ |
2594 core.bool dryRun; | 2588 core.bool dryRun; |
2595 /** [Pick one] Configures an extract job. */ | 2589 /** [Pick one] Configures an extract job. */ |
2596 JobConfigurationExtract extract; | 2590 JobConfigurationExtract extract; |
| 2591 /** |
| 2592 * [Experimental] The labels associated with this job. You can use these to |
| 2593 * organize and group your jobs. Label keys and values can be no longer than |
| 2594 * 63 characters, can only contain letters, numeric characters, underscores |
| 2595 * and dashes. International characters are allowed. Label values are |
| 2596 * optional. Label keys must start with a letter and must be unique within a |
| 2597 * dataset. Both keys and values are additionally constrained to be <= 128 |
| 2598 * bytes in size. |
| 2599 */ |
| 2600 core.Map<core.String, core.String> labels; |
2597 /** [Pick one] Configures a load job. */ | 2601 /** [Pick one] Configures a load job. */ |
2598 JobConfigurationLoad load; | 2602 JobConfigurationLoad load; |
2599 /** [Pick one] Configures a query job. */ | 2603 /** [Pick one] Configures a query job. */ |
2600 JobConfigurationQuery query; | 2604 JobConfigurationQuery query; |
2601 | 2605 |
2602 JobConfiguration(); | 2606 JobConfiguration(); |
2603 | 2607 |
2604 JobConfiguration.fromJson(core.Map _json) { | 2608 JobConfiguration.fromJson(core.Map _json) { |
2605 if (_json.containsKey("copy")) { | 2609 if (_json.containsKey("copy")) { |
2606 copy = new JobConfigurationTableCopy.fromJson(_json["copy"]); | 2610 copy = new JobConfigurationTableCopy.fromJson(_json["copy"]); |
2607 } | 2611 } |
2608 if (_json.containsKey("dryRun")) { | 2612 if (_json.containsKey("dryRun")) { |
2609 dryRun = _json["dryRun"]; | 2613 dryRun = _json["dryRun"]; |
2610 } | 2614 } |
2611 if (_json.containsKey("extract")) { | 2615 if (_json.containsKey("extract")) { |
2612 extract = new JobConfigurationExtract.fromJson(_json["extract"]); | 2616 extract = new JobConfigurationExtract.fromJson(_json["extract"]); |
2613 } | 2617 } |
| 2618 if (_json.containsKey("labels")) { |
| 2619 labels = _json["labels"]; |
| 2620 } |
2614 if (_json.containsKey("load")) { | 2621 if (_json.containsKey("load")) { |
2615 load = new JobConfigurationLoad.fromJson(_json["load"]); | 2622 load = new JobConfigurationLoad.fromJson(_json["load"]); |
2616 } | 2623 } |
2617 if (_json.containsKey("query")) { | 2624 if (_json.containsKey("query")) { |
2618 query = new JobConfigurationQuery.fromJson(_json["query"]); | 2625 query = new JobConfigurationQuery.fromJson(_json["query"]); |
2619 } | 2626 } |
2620 } | 2627 } |
2621 | 2628 |
2622 core.Map toJson() { | 2629 core.Map toJson() { |
2623 var _json = new core.Map(); | 2630 var _json = new core.Map(); |
2624 if (copy != null) { | 2631 if (copy != null) { |
2625 _json["copy"] = (copy).toJson(); | 2632 _json["copy"] = (copy).toJson(); |
2626 } | 2633 } |
2627 if (dryRun != null) { | 2634 if (dryRun != null) { |
2628 _json["dryRun"] = dryRun; | 2635 _json["dryRun"] = dryRun; |
2629 } | 2636 } |
2630 if (extract != null) { | 2637 if (extract != null) { |
2631 _json["extract"] = (extract).toJson(); | 2638 _json["extract"] = (extract).toJson(); |
2632 } | 2639 } |
| 2640 if (labels != null) { |
| 2641 _json["labels"] = labels; |
| 2642 } |
2633 if (load != null) { | 2643 if (load != null) { |
2634 _json["load"] = (load).toJson(); | 2644 _json["load"] = (load).toJson(); |
2635 } | 2645 } |
2636 if (query != null) { | 2646 if (query != null) { |
2637 _json["query"] = (query).toJson(); | 2647 _json["query"] = (query).toJson(); |
2638 } | 2648 } |
2639 return _json; | 2649 return _json; |
2640 } | 2650 } |
2641 } | 2651 } |
2642 | 2652 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3045 core.String parameterMode; | 3055 core.String parameterMode; |
3046 /** [Deprecated] This property is deprecated. */ | 3056 /** [Deprecated] This property is deprecated. */ |
3047 core.bool preserveNulls; | 3057 core.bool preserveNulls; |
3048 /** | 3058 /** |
3049 * [Optional] Specifies a priority for the query. Possible values include | 3059 * [Optional] Specifies a priority for the query. Possible values include |
3050 * INTERACTIVE and BATCH. The default value is INTERACTIVE. | 3060 * INTERACTIVE and BATCH. The default value is INTERACTIVE. |
3051 */ | 3061 */ |
3052 core.String priority; | 3062 core.String priority; |
3053 /** [Required] BigQuery SQL query to execute. */ | 3063 /** [Required] BigQuery SQL query to execute. */ |
3054 core.String query; | 3064 core.String query; |
3055 /** [Experimental] Query parameters for Standard SQL queries. */ | 3065 /** Query parameters for standard SQL queries. */ |
3056 core.List<QueryParameter> queryParameters; | 3066 core.List<QueryParameter> queryParameters; |
3057 /** | 3067 /** |
3058 * [Experimental] Allows the schema of the desitination table to be updated as | 3068 * [Experimental] Allows the schema of the destination table to be updated as |
3059 * a side effect of the query job. Schema update options are supported in two | 3069 * a side effect of the query job. Schema update options are supported in two |
3060 * cases: when writeDisposition is WRITE_APPEND; when writeDisposition is | 3070 * cases: when writeDisposition is WRITE_APPEND; when writeDisposition is |
3061 * WRITE_TRUNCATE and the destination table is a partition of a table, | 3071 * WRITE_TRUNCATE and the destination table is a partition of a table, |
3062 * specified by partition decorators. For normal tables, WRITE_TRUNCATE will | 3072 * specified by partition decorators. For normal tables, WRITE_TRUNCATE will |
3063 * always overwrite the schema. One or more of the following values are | 3073 * always overwrite the schema. One or more of the following values are |
3064 * specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the | 3074 * specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the |
3065 * schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the | 3075 * schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the |
3066 * original schema to nullable. | 3076 * original schema to nullable. |
3067 */ | 3077 */ |
3068 core.List<core.String> schemaUpdateOptions; | 3078 core.List<core.String> schemaUpdateOptions; |
3069 /** | 3079 /** |
3070 * [Optional] If querying an external data source outside of BigQuery, | 3080 * [Optional] If querying an external data source outside of BigQuery, |
3071 * describes the data format, location and other properties of the data | 3081 * describes the data format, location and other properties of the data |
3072 * source. By defining these properties, the data source can then be queried | 3082 * source. By defining these properties, the data source can then be queried |
3073 * as if it were a standard BigQuery table. | 3083 * as if it were a standard BigQuery table. |
3074 */ | 3084 */ |
3075 core.Map<core.String, ExternalDataConfiguration> tableDefinitions; | 3085 core.Map<core.String, ExternalDataConfiguration> tableDefinitions; |
3076 /** | 3086 /** |
3077 * [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for | 3087 * Specifies whether to use BigQuery's legacy SQL dialect for this query. The |
3078 * this query. The default value is true. If set to false, the query will use | 3088 * default value is true. If set to false, the query will use BigQuery's |
3079 * BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ | 3089 * standard SQL: https://cloud.google.com/bigquery/sql-reference/ When |
3080 * When useLegacySql is set to false, the values of allowLargeResults and | 3090 * useLegacySql is set to false, the values of allowLargeResults and |
3081 * flattenResults are ignored; query will be run as if allowLargeResults is | 3091 * flattenResults are ignored; query will be run as if allowLargeResults is |
3082 * true and flattenResults is false. | 3092 * true and flattenResults is false. |
3083 */ | 3093 */ |
3084 core.bool useLegacySql; | 3094 core.bool useLegacySql; |
3085 /** | 3095 /** |
3086 * [Optional] Whether to look for the result in the query cache. The query | 3096 * [Optional] Whether to look for the result in the query cache. The query |
3087 * cache is a best-effort cache that will be flushed whenever tables in the | 3097 * cache is a best-effort cache that will be flushed whenever tables in the |
3088 * query are modified. Moreover, the query cache is only available when a | 3098 * query are modified. Moreover, the query cache is only available when a |
3089 * query does not have a destination table specified. The default value is | 3099 * query does not have a destination table specified. The default value is |
3090 * true. | 3100 * true. |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4050 } | 4060 } |
4051 } | 4061 } |
4052 | 4062 |
4053 class QueryParameterValue { | 4063 class QueryParameterValue { |
4054 /** [Optional] The array values, if this is an array type. */ | 4064 /** [Optional] The array values, if this is an array type. */ |
4055 core.List<QueryParameterValue> arrayValues; | 4065 core.List<QueryParameterValue> arrayValues; |
4056 /** | 4066 /** |
4057 * [Optional] The struct field values, in order of the struct type's | 4067 * [Optional] The struct field values, in order of the struct type's |
4058 * declaration. | 4068 * declaration. |
4059 */ | 4069 */ |
4060 core.List<QueryParameterValue> structValues; | 4070 core.Map<core.String, QueryParameterValue> structValues; |
4061 /** [Optional] The value of this value, if a simple scalar type. */ | 4071 /** [Optional] The value of this value, if a simple scalar type. */ |
4062 core.String value; | 4072 core.String value; |
4063 | 4073 |
4064 QueryParameterValue(); | 4074 QueryParameterValue(); |
4065 | 4075 |
4066 QueryParameterValue.fromJson(core.Map _json) { | 4076 QueryParameterValue.fromJson(core.Map _json) { |
4067 if (_json.containsKey("arrayValues")) { | 4077 if (_json.containsKey("arrayValues")) { |
4068 arrayValues = _json["arrayValues"].map((value) => new QueryParameterValue.
fromJson(value)).toList(); | 4078 arrayValues = _json["arrayValues"].map((value) => new QueryParameterValue.
fromJson(value)).toList(); |
4069 } | 4079 } |
4070 if (_json.containsKey("structValues")) { | 4080 if (_json.containsKey("structValues")) { |
4071 structValues = _json["structValues"].map((value) => new QueryParameterValu
e.fromJson(value)).toList(); | 4081 structValues = commons.mapMap(_json["structValues"], (item) => new QueryPa
rameterValue.fromJson(item)); |
4072 } | 4082 } |
4073 if (_json.containsKey("value")) { | 4083 if (_json.containsKey("value")) { |
4074 value = _json["value"]; | 4084 value = _json["value"]; |
4075 } | 4085 } |
4076 } | 4086 } |
4077 | 4087 |
4078 core.Map toJson() { | 4088 core.Map toJson() { |
4079 var _json = new core.Map(); | 4089 var _json = new core.Map(); |
4080 if (arrayValues != null) { | 4090 if (arrayValues != null) { |
4081 _json["arrayValues"] = arrayValues.map((value) => (value).toJson()).toList
(); | 4091 _json["arrayValues"] = arrayValues.map((value) => (value).toJson()).toList
(); |
4082 } | 4092 } |
4083 if (structValues != null) { | 4093 if (structValues != null) { |
4084 _json["structValues"] = structValues.map((value) => (value).toJson()).toLi
st(); | 4094 _json["structValues"] = commons.mapMap(structValues, (item) => (item).toJs
on()); |
4085 } | 4095 } |
4086 if (value != null) { | 4096 if (value != null) { |
4087 _json["value"] = value; | 4097 _json["value"] = value; |
4088 } | 4098 } |
4089 return _json; | 4099 return _json; |
4090 } | 4100 } |
4091 } | 4101 } |
4092 | 4102 |
4093 class QueryRequest { | 4103 class QueryRequest { |
4094 /** | 4104 /** |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4133 * [Optional] How long to wait for the query to complete, in milliseconds, | 4143 * [Optional] How long to wait for the query to complete, in milliseconds, |
4134 * before the request times out and returns. Note that this is only a timeout | 4144 * before the request times out and returns. Note that this is only a timeout |
4135 * for the request, not the query. If the query takes longer to run than the | 4145 * for the request, not the query. If the query takes longer to run than the |
4136 * timeout value, the call returns without any results and with the | 4146 * timeout value, the call returns without any results and with the |
4137 * 'jobComplete' flag set to false. You can call GetQueryResults() to wait for | 4147 * 'jobComplete' flag set to false. You can call GetQueryResults() to wait for |
4138 * the query to complete and read the results. The default value is 10000 | 4148 * the query to complete and read the results. The default value is 10000 |
4139 * milliseconds (10 seconds). | 4149 * milliseconds (10 seconds). |
4140 */ | 4150 */ |
4141 core.int timeoutMs; | 4151 core.int timeoutMs; |
4142 /** | 4152 /** |
4143 * [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for | 4153 * Specifies whether to use BigQuery's legacy SQL dialect for this query. The |
4144 * this query. The default value is true. If set to false, the query will use | 4154 * default value is true. If set to false, the query will use BigQuery's |
4145 * BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ | 4155 * standard SQL: https://cloud.google.com/bigquery/sql-reference/ When |
4146 * When useLegacySql is set to false, the values of allowLargeResults and | 4156 * useLegacySql is set to false, the values of allowLargeResults and |
4147 * flattenResults are ignored; query will be run as if allowLargeResults is | 4157 * flattenResults are ignored; query will be run as if allowLargeResults is |
4148 * true and flattenResults is false. | 4158 * true and flattenResults is false. |
4149 */ | 4159 */ |
4150 core.bool useLegacySql; | 4160 core.bool useLegacySql; |
4151 /** | 4161 /** |
4152 * [Optional] Whether to look for the result in the query cache. The query | 4162 * [Optional] Whether to look for the result in the query cache. The query |
4153 * cache is a best-effort cache that will be flushed whenever tables in the | 4163 * cache is a best-effort cache that will be flushed whenever tables in the |
4154 * query are modified. The default value is true. | 4164 * query are modified. The default value is true. |
4155 */ | 4165 */ |
4156 core.bool useQueryCache; | 4166 core.bool useQueryCache; |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4882 */ | 4892 */ |
4883 core.String mode; | 4893 core.String mode; |
4884 /** | 4894 /** |
4885 * [Required] The field name. The name must contain only letters (a-z, A-Z), | 4895 * [Required] The field name. The name must contain only letters (a-z, A-Z), |
4886 * numbers (0-9), or underscores (_), and must start with a letter or | 4896 * numbers (0-9), or underscores (_), and must start with a letter or |
4887 * underscore. The maximum length is 128 characters. | 4897 * underscore. The maximum length is 128 characters. |
4888 */ | 4898 */ |
4889 core.String name; | 4899 core.String name; |
4890 /** | 4900 /** |
4891 * [Required] The field data type. Possible values include STRING, BYTES, | 4901 * [Required] The field data type. Possible values include STRING, BYTES, |
4892 * INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that | 4902 * INTEGER, FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD (where |
4893 * the field contains a nested schema). | 4903 * RECORD indicates that the field contains a nested schema). |
4894 */ | 4904 */ |
4895 core.String type; | 4905 core.String type; |
4896 | 4906 |
4897 TableFieldSchema(); | 4907 TableFieldSchema(); |
4898 | 4908 |
4899 TableFieldSchema.fromJson(core.Map _json) { | 4909 TableFieldSchema.fromJson(core.Map _json) { |
4900 if (_json.containsKey("description")) { | 4910 if (_json.containsKey("description")) { |
4901 description = _json["description"]; | 4911 description = _json["description"]; |
4902 } | 4912 } |
4903 if (_json.containsKey("fields")) { | 4913 if (_json.containsKey("fields")) { |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5195 _json["resourceUri"] = resourceUri; | 5205 _json["resourceUri"] = resourceUri; |
5196 } | 5206 } |
5197 return _json; | 5207 return _json; |
5198 } | 5208 } |
5199 } | 5209 } |
5200 | 5210 |
5201 class ViewDefinition { | 5211 class ViewDefinition { |
5202 /** [Required] A query that BigQuery executes when the view is referenced. */ | 5212 /** [Required] A query that BigQuery executes when the view is referenced. */ |
5203 core.String query; | 5213 core.String query; |
5204 /** | 5214 /** |
5205 * [Experimental] Specifies whether to use BigQuery's legacy SQL for this | 5215 * Specifies whether to use BigQuery's legacy SQL for this view. The default |
5206 * view. The default value is true. If set to false, the view will use | 5216 * value is true. If set to false, the view will use BigQuery's standard SQL: |
5207 * BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ | 5217 * https://cloud.google.com/bigquery/sql-reference/ Queries and views that |
5208 * Queries and views that reference this view must use the same flag value. | 5218 * reference this view must use the same flag value. |
5209 */ | 5219 */ |
5210 core.bool useLegacySql; | 5220 core.bool useLegacySql; |
5211 /** | 5221 /** |
5212 * [Experimental] Describes user-defined function resources used in the query. | 5222 * [Experimental] Describes user-defined function resources used in the query. |
5213 */ | 5223 */ |
5214 core.List<UserDefinedFunctionResource> userDefinedFunctionResources; | 5224 core.List<UserDefinedFunctionResource> userDefinedFunctionResources; |
5215 | 5225 |
5216 ViewDefinition(); | 5226 ViewDefinition(); |
5217 | 5227 |
5218 ViewDefinition.fromJson(core.Map _json) { | 5228 ViewDefinition.fromJson(core.Map _json) { |
(...skipping 15 matching lines...) Expand all Loading... |
5234 } | 5244 } |
5235 if (useLegacySql != null) { | 5245 if (useLegacySql != null) { |
5236 _json["useLegacySql"] = useLegacySql; | 5246 _json["useLegacySql"] = useLegacySql; |
5237 } | 5247 } |
5238 if (userDefinedFunctionResources != null) { | 5248 if (userDefinedFunctionResources != null) { |
5239 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); | 5249 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); |
5240 } | 5250 } |
5241 return _json; | 5251 return _json; |
5242 } | 5252 } |
5243 } | 5253 } |
OLD | NEW |