| 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; |
| 11 import 'package:crypto/crypto.dart' as crypto; | |
| 12 import 'package:http/http.dart' as http; | 11 import 'package:http/http.dart' as http; |
| 13 | 12 |
| 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 15 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 14 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 16 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 15 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 17 ByteRange; | 16 ByteRange; |
| 18 | 17 |
| 19 const core.String USER_AGENT = 'dart-api-client bigquery/v2'; | 18 const core.String USER_AGENT = 'dart-api-client bigquery/v2'; |
| 20 | 19 |
| 21 /** A data platform for customers to create, manage, share and query data. */ | 20 /** A data platform for customers to create, manage, share and query data. */ |
| (...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 * [Required] Qualifier of the column. Columns in the parent column family | 1248 * [Required] Qualifier of the column. Columns in the parent column family |
| 1250 * that has this exact qualifier are exposed as . field. If the qualifier is | 1249 * that has this exact qualifier are exposed as . field. If the qualifier is |
| 1251 * valid UTF-8 string, it can be specified in the qualifier_string field. | 1250 * valid UTF-8 string, it can be specified in the qualifier_string field. |
| 1252 * Otherwise, a base-64 encoded value must be set to qualifier_encoded. The | 1251 * Otherwise, a base-64 encoded value must be set to qualifier_encoded. The |
| 1253 * column field name is the same as the column qualifier. However, if the | 1252 * column field name is the same as the column qualifier. However, if the |
| 1254 * qualifier is not a valid BigQuery field identifier i.e. does not match | 1253 * qualifier is not a valid BigQuery field identifier i.e. does not match |
| 1255 * [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name. | 1254 * [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name. |
| 1256 */ | 1255 */ |
| 1257 core.String qualifierEncoded; | 1256 core.String qualifierEncoded; |
| 1258 core.List<core.int> get qualifierEncodedAsBytes { | 1257 core.List<core.int> get qualifierEncodedAsBytes { |
| 1259 return crypto.CryptoUtils.base64StringToBytes(qualifierEncoded); | 1258 return convert.BASE64.decode(qualifierEncoded); |
| 1260 } | 1259 } |
| 1261 | 1260 |
| 1262 void set qualifierEncodedAsBytes(core.List<core.int> _bytes) { | 1261 void set qualifierEncodedAsBytes(core.List<core.int> _bytes) { |
| 1263 qualifierEncoded = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 1262 qualifierEncoded = convert.BASE64.encode(_bytes).replaceAll("/", "_").replac
eAll("+", "-"); |
| 1264 } | 1263 } |
| 1265 core.String qualifierString; | 1264 core.String qualifierString; |
| 1266 /** | 1265 /** |
| 1267 * [Optional] The type to convert the value in cells of this column. The | 1266 * [Optional] The type to convert the value in cells of this column. The |
| 1268 * values are expected to be encoded using HBase Bytes.toBytes function when | 1267 * values are expected to be encoded using HBase Bytes.toBytes function when |
| 1269 * using the BINARY encoding value. Following BigQuery types are allowed | 1268 * using the BINARY encoding value. Following BigQuery types are allowed |
| 1270 * (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. | 1269 * (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. |
| 1271 * 'type' can also be set at the column family level. However, the setting at | 1270 * 'type' can also be set at the column family level. However, the setting at |
| 1272 * this level takes precedence if 'type' is set at both levels. | 1271 * this level takes precedence if 'type' is set at both levels. |
| 1273 */ | 1272 */ |
| (...skipping 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4861 _json["resourceUri"] = resourceUri; | 4860 _json["resourceUri"] = resourceUri; |
| 4862 } | 4861 } |
| 4863 return _json; | 4862 return _json; |
| 4864 } | 4863 } |
| 4865 } | 4864 } |
| 4866 | 4865 |
| 4867 class ViewDefinition { | 4866 class ViewDefinition { |
| 4868 /** [Required] A query that BigQuery executes when the view is referenced. */ | 4867 /** [Required] A query that BigQuery executes when the view is referenced. */ |
| 4869 core.String query; | 4868 core.String query; |
| 4870 /** | 4869 /** |
| 4870 * [Experimental] Specifies whether to use BigQuery's legacy SQL for this |
| 4871 * view. The default value is true. If set to false, the view will use |
| 4872 * BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ |
| 4873 * Queries and views that reference this view must use the same flag value. |
| 4874 */ |
| 4875 core.bool useLegacySql; |
| 4876 /** |
| 4871 * [Experimental] Describes user-defined function resources used in the query. | 4877 * [Experimental] Describes user-defined function resources used in the query. |
| 4872 */ | 4878 */ |
| 4873 core.List<UserDefinedFunctionResource> userDefinedFunctionResources; | 4879 core.List<UserDefinedFunctionResource> userDefinedFunctionResources; |
| 4874 | 4880 |
| 4875 ViewDefinition(); | 4881 ViewDefinition(); |
| 4876 | 4882 |
| 4877 ViewDefinition.fromJson(core.Map _json) { | 4883 ViewDefinition.fromJson(core.Map _json) { |
| 4878 if (_json.containsKey("query")) { | 4884 if (_json.containsKey("query")) { |
| 4879 query = _json["query"]; | 4885 query = _json["query"]; |
| 4880 } | 4886 } |
| 4887 if (_json.containsKey("useLegacySql")) { |
| 4888 useLegacySql = _json["useLegacySql"]; |
| 4889 } |
| 4881 if (_json.containsKey("userDefinedFunctionResources")) { | 4890 if (_json.containsKey("userDefinedFunctionResources")) { |
| 4882 userDefinedFunctionResources = _json["userDefinedFunctionResources"].map((
value) => new UserDefinedFunctionResource.fromJson(value)).toList(); | 4891 userDefinedFunctionResources = _json["userDefinedFunctionResources"].map((
value) => new UserDefinedFunctionResource.fromJson(value)).toList(); |
| 4883 } | 4892 } |
| 4884 } | 4893 } |
| 4885 | 4894 |
| 4886 core.Map toJson() { | 4895 core.Map toJson() { |
| 4887 var _json = new core.Map(); | 4896 var _json = new core.Map(); |
| 4888 if (query != null) { | 4897 if (query != null) { |
| 4889 _json["query"] = query; | 4898 _json["query"] = query; |
| 4890 } | 4899 } |
| 4900 if (useLegacySql != null) { |
| 4901 _json["useLegacySql"] = useLegacySql; |
| 4902 } |
| 4891 if (userDefinedFunctionResources != null) { | 4903 if (userDefinedFunctionResources != null) { |
| 4892 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); | 4904 _json["userDefinedFunctionResources"] = userDefinedFunctionResources.map((
value) => (value).toJson()).toList(); |
| 4893 } | 4905 } |
| 4894 return _json; | 4906 return _json; |
| 4895 } | 4907 } |
| 4896 } | 4908 } |
| OLD | NEW |