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

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

Issue 798373003: Api roll 8: 2014-12-15 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « generated/googleapis/lib/fusiontables/v1.dart ('k') | generated/googleapis/lib/games/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library googleapis.fusiontables.v1; 1 library googleapis.fusiontables.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;
11 import '../common/common.dart' as common; 11 import '../common/common.dart' as common;
(...skipping 12 matching lines...) Expand all
24 24
25 final common_internal.ApiRequester _requester; 25 final common_internal.ApiRequester _requester;
26 26
27 ColumnResourceApi get column => new ColumnResourceApi(_requester); 27 ColumnResourceApi get column => new ColumnResourceApi(_requester);
28 QueryResourceApi get query => new QueryResourceApi(_requester); 28 QueryResourceApi get query => new QueryResourceApi(_requester);
29 StyleResourceApi get style => new StyleResourceApi(_requester); 29 StyleResourceApi get style => new StyleResourceApi(_requester);
30 TableResourceApi get table => new TableResourceApi(_requester); 30 TableResourceApi get table => new TableResourceApi(_requester);
31 TaskResourceApi get task => new TaskResourceApi(_requester); 31 TaskResourceApi get task => new TaskResourceApi(_requester);
32 TemplateResourceApi get template => new TemplateResourceApi(_requester); 32 TemplateResourceApi get template => new TemplateResourceApi(_requester);
33 33
34 FusiontablesApi(http.Client client) : 34 FusiontablesApi(http.Client client, {core.String rootUrl: "https://www.googlea pis.com/", core.String servicePath: "fusiontables/v2/"}) :
35 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "fusiontables/v1/"); 35 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath );
36 } 36 }
37 37
38 38
39 /** Not documented yet. */ 39 /** Not documented yet. */
40 class ColumnResourceApi { 40 class ColumnResourceApi {
41 final common_internal.ApiRequester _requester; 41 final common_internal.ApiRequester _requester;
42 42
43 ColumnResourceApi(common_internal.ApiRequester client) : 43 ColumnResourceApi(common_internal.ApiRequester client) :
44 _requester = client; 44 _requester = client;
45 45
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 return _response.then((data) => new Column.fromJson(data)); 177 return _response.then((data) => new Column.fromJson(data));
178 } 178 }
179 179
180 /** 180 /**
181 * Retrieves a list of columns. 181 * Retrieves a list of columns.
182 * 182 *
183 * Request parameters: 183 * Request parameters:
184 * 184 *
185 * [tableId] - Table whose columns are being listed. 185 * [tableId] - Table whose columns are being listed.
186 * 186 *
187 * [maxResults] - Maximum number of columns to return. Optional. Default is 5. 187 * [maxResults] - Maximum number of columns to return. Default is 5.
188 * 188 *
189 * [pageToken] - Continuation token specifying which result page to return. 189 * [pageToken] - Continuation token specifying which result page to return.
190 * Optional.
191 * 190 *
192 * Completes with a [ColumnList]. 191 * Completes with a [ColumnList].
193 * 192 *
194 * Completes with a [common.ApiRequestError] if the API endpoint returned an 193 * Completes with a [common.ApiRequestError] if the API endpoint returned an
195 * error. 194 * error.
196 * 195 *
197 * If the used [http.Client] completes with an error when making a REST call, 196 * If the used [http.Client] completes with an error when making a REST call,
198 * this method will complete with the same error. 197 * this method will complete with the same error.
199 */ 198 */
200 async.Future<ColumnList> list(core.String tableId, {core.int maxResults, core. String pageToken}) { 199 async.Future<ColumnList> list(core.String tableId, {core.int maxResults, core. String pageToken}) {
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 if (startLine != null) { 971 if (startLine != null) {
973 _queryParams["startLine"] = ["${startLine}"]; 972 _queryParams["startLine"] = ["${startLine}"];
974 } 973 }
975 974
976 _uploadMedia = uploadMedia; 975 _uploadMedia = uploadMedia;
977 _uploadOptions = uploadOptions; 976 _uploadOptions = uploadOptions;
978 977
979 if (_uploadMedia == null) { 978 if (_uploadMedia == null) {
980 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/i mport'; 979 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/i mport';
981 } else if (_uploadOptions is common.ResumableUploadOptions) { 980 } else if (_uploadOptions is common.ResumableUploadOptions) {
982 _url = '/resumable/upload/fusiontables/v1/tables/' + common_internal.Escap er.ecapeVariable('$tableId') + '/import'; 981 _url = '/resumable/upload/fusiontables/v2/tables/' + common_internal.Escap er.ecapeVariable('$tableId') + '/import';
983 } else { 982 } else {
984 _url = '/upload/fusiontables/v1/tables/' + common_internal.Escaper.ecapeVa riable('$tableId') + '/import'; 983 _url = '/upload/fusiontables/v2/tables/' + common_internal.Escaper.ecapeVa riable('$tableId') + '/import';
985 } 984 }
986 985
987 986
988 var _response = _requester.request(_url, 987 var _response = _requester.request(_url,
989 "POST", 988 "POST",
990 body: _body, 989 body: _body,
991 queryParams: _queryParams, 990 queryParams: _queryParams,
992 uploadOptions: _uploadOptions, 991 uploadOptions: _uploadOptions,
993 uploadMedia: _uploadMedia, 992 uploadMedia: _uploadMedia,
994 downloadOptions: _downloadOptions); 993 downloadOptions: _downloadOptions);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 if (encoding != null) { 1038 if (encoding != null) {
1040 _queryParams["encoding"] = [encoding]; 1039 _queryParams["encoding"] = [encoding];
1041 } 1040 }
1042 1041
1043 _uploadMedia = uploadMedia; 1042 _uploadMedia = uploadMedia;
1044 _uploadOptions = uploadOptions; 1043 _uploadOptions = uploadOptions;
1045 1044
1046 if (_uploadMedia == null) { 1045 if (_uploadMedia == null) {
1047 _url = 'tables/import'; 1046 _url = 'tables/import';
1048 } else if (_uploadOptions is common.ResumableUploadOptions) { 1047 } else if (_uploadOptions is common.ResumableUploadOptions) {
1049 _url = '/resumable/upload/fusiontables/v1/tables/import'; 1048 _url = '/resumable/upload/fusiontables/v2/tables/import';
1050 } else { 1049 } else {
1051 _url = '/upload/fusiontables/v1/tables/import'; 1050 _url = '/upload/fusiontables/v2/tables/import';
1052 } 1051 }
1053 1052
1054 1053
1055 var _response = _requester.request(_url, 1054 var _response = _requester.request(_url,
1056 "POST", 1055 "POST",
1057 body: _body, 1056 body: _body,
1058 queryParams: _queryParams, 1057 queryParams: _queryParams,
1059 uploadOptions: _uploadOptions, 1058 uploadOptions: _uploadOptions,
1060 uploadMedia: _uploadMedia, 1059 uploadMedia: _uploadMedia,
1061 downloadOptions: _downloadOptions); 1060 downloadOptions: _downloadOptions);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 "PATCH", 1195 "PATCH",
1197 body: _body, 1196 body: _body,
1198 queryParams: _queryParams, 1197 queryParams: _queryParams,
1199 uploadOptions: _uploadOptions, 1198 uploadOptions: _uploadOptions,
1200 uploadMedia: _uploadMedia, 1199 uploadMedia: _uploadMedia,
1201 downloadOptions: _downloadOptions); 1200 downloadOptions: _downloadOptions);
1202 return _response.then((data) => new Table.fromJson(data)); 1201 return _response.then((data) => new Table.fromJson(data));
1203 } 1202 }
1204 1203
1205 /** 1204 /**
1205 * Replaces rows of an existing table. Current rows remain visible until all
1206 * replacement rows are ready.
1207 *
1208 * Request parameters:
1209 *
1210 * [tableId] - Table whose rows will be replaced.
1211 *
1212 * [delimiter] - The delimiter used to separate cell values. This can only
1213 * consist of a single character. Default is ','.
1214 *
1215 * [encoding] - The encoding of the content. Default is UTF-8. Use
1216 * 'auto-detect' if you are unsure of the encoding.
1217 *
1218 * [endLine] - The index of the last line to import, exclusive. 'endLine -
1219 * startLine' rows will be imported. Default is to import through the end of
1220 * the file. If endLine is negative, it is an offset from the end of the file;
1221 * the imported content will exclude the last endLine lines.
1222 *
1223 * [isStrict] - Whether the CSV must have the same number of column values for
1224 * each row. If true, throws an exception if the CSV does not not have the
1225 * same number of columns. If false, rows with fewer column values will be
1226 * padded with empty values. Default is true.
1227 *
1228 * [startLine] - The index of the first line from which to start importing,
1229 * inclusive. Default is 0.
1230 *
1231 * [uploadMedia] - The media to upload.
1232 *
1233 * [uploadOptions] - Options for the media upload. Streaming Media without the
1234 * length being known ahead of time is only supported via resumable uploads.
1235 *
1236 * Completes with a [Task].
1237 *
1238 * Completes with a [common.ApiRequestError] if the API endpoint returned an
1239 * error.
1240 *
1241 * If the used [http.Client] completes with an error when making a REST call,
1242 * this method will complete with the same error.
1243 */
1244 async.Future<Task> replaceRows(core.String tableId, {core.String delimiter, co re.String encoding, core.int endLine, core.bool isStrict, core.int startLine, co mmon.UploadOptions uploadOptions : common.UploadOptions.Default, common.Media up loadMedia}) {
1245 var _url = null;
1246 var _queryParams = new core.Map();
1247 var _uploadMedia = null;
1248 var _uploadOptions = null;
1249 var _downloadOptions = common.DownloadOptions.Metadata;
1250 var _body = null;
1251
1252 if (tableId == null) {
1253 throw new core.ArgumentError("Parameter tableId is required.");
1254 }
1255 if (delimiter != null) {
1256 _queryParams["delimiter"] = [delimiter];
1257 }
1258 if (encoding != null) {
1259 _queryParams["encoding"] = [encoding];
1260 }
1261 if (endLine != null) {
1262 _queryParams["endLine"] = ["${endLine}"];
1263 }
1264 if (isStrict != null) {
1265 _queryParams["isStrict"] = ["${isStrict}"];
1266 }
1267 if (startLine != null) {
1268 _queryParams["startLine"] = ["${startLine}"];
1269 }
1270
1271 _uploadMedia = uploadMedia;
1272 _uploadOptions = uploadOptions;
1273
1274 if (_uploadMedia == null) {
1275 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/r eplace';
1276 } else if (_uploadOptions is common.ResumableUploadOptions) {
1277 _url = '/resumable/upload/fusiontables/v2/tables/' + common_internal.Escap er.ecapeVariable('$tableId') + '/replace';
1278 } else {
1279 _url = '/upload/fusiontables/v2/tables/' + common_internal.Escaper.ecapeVa riable('$tableId') + '/replace';
1280 }
1281
1282
1283 var _response = _requester.request(_url,
1284 "POST",
1285 body: _body,
1286 queryParams: _queryParams,
1287 uploadOptions: _uploadOptions,
1288 uploadMedia: _uploadMedia,
1289 downloadOptions: _downloadOptions);
1290 return _response.then((data) => new Task.fromJson(data));
1291 }
1292
1293 /**
1206 * Updates an existing table. Unless explicitly requested, only the name, 1294 * Updates an existing table. Unless explicitly requested, only the name,
1207 * description, and attribution will be updated. 1295 * description, and attribution will be updated.
1208 * 1296 *
1209 * [request] - The metadata request object. 1297 * [request] - The metadata request object.
1210 * 1298 *
1211 * Request parameters: 1299 * Request parameters:
1212 * 1300 *
1213 * [tableId] - ID of the table that is being updated. 1301 * [tableId] - ID of the table that is being updated.
1214 * 1302 *
1215 * [replaceViewDefinition] - Should the view definition also be updated? The 1303 * [replaceViewDefinition] - Should the view definition also be updated? The
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 return _response.then((data) => new Task.fromJson(data)); 1442 return _response.then((data) => new Task.fromJson(data));
1355 } 1443 }
1356 1444
1357 /** 1445 /**
1358 * Retrieves a list of tasks. 1446 * Retrieves a list of tasks.
1359 * 1447 *
1360 * Request parameters: 1448 * Request parameters:
1361 * 1449 *
1362 * [tableId] - Table whose tasks are being listed. 1450 * [tableId] - Table whose tasks are being listed.
1363 * 1451 *
1364 * [maxResults] - Maximum number of columns to return. Optional. Default is 5. 1452 * [maxResults] - Maximum number of tasks to return. Default is 5.
1365 * 1453 *
1366 * [pageToken] - null 1454 * [pageToken] - Continuation token specifying which result page to return.
1367 * 1455 *
1368 * [startIndex] - null 1456 * [startIndex] - Index of the first result returned in the current page.
1369 * 1457 *
1370 * Completes with a [TaskList]. 1458 * Completes with a [TaskList].
1371 * 1459 *
1372 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1460 * Completes with a [common.ApiRequestError] if the API endpoint returned an
1373 * error. 1461 * error.
1374 * 1462 *
1375 * If the used [http.Client] completes with an error when making a REST call, 1463 * If the used [http.Client] completes with an error when making a REST call,
1376 * this method will complete with the same error. 1464 * this method will complete with the same error.
1377 */ 1465 */
1378 async.Future<TaskList> list(core.String tableId, {core.int maxResults, core.St ring pageToken, core.int startIndex}) { 1466 async.Future<TaskList> list(core.String tableId, {core.int maxResults, core.St ring pageToken, core.int startIndex}) {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 } 1869 }
1782 if (weight != null) { 1870 if (weight != null) {
1783 _json["weight"] = weight; 1871 _json["weight"] = weight;
1784 } 1872 }
1785 return _json; 1873 return _json;
1786 } 1874 }
1787 } 1875 }
1788 1876
1789 1877
1790 /** 1878 /**
1791 * Optional identifier of the base column. If present, this column is derived 1879 * Identifier of the base column. If present, this column is derived from the
1792 * from the specified base column. 1880 * specified base column.
1793 */ 1881 */
1794 class ColumnBaseColumn { 1882 class ColumnBaseColumn {
1795 /** 1883 /**
1796 * The id of the column in the base table from which this column is derived. 1884 * The id of the column in the base table from which this column is derived.
1797 */ 1885 */
1798 core.int columnId; 1886 core.int columnId;
1799 1887
1800 /** 1888 /**
1801 * Offset to the entry in the list of base tables in the table definition. 1889 * Offset to the entry in the list of base tables in the table definition.
1802 */ 1890 */
(...skipping 17 matching lines...) Expand all
1820 _json["columnId"] = columnId; 1908 _json["columnId"] = columnId;
1821 } 1909 }
1822 if (tableIndex != null) { 1910 if (tableIndex != null) {
1823 _json["tableIndex"] = tableIndex; 1911 _json["tableIndex"] = tableIndex;
1824 } 1912 }
1825 return _json; 1913 return _json;
1826 } 1914 }
1827 } 1915 }
1828 1916
1829 1917
1830 /** Specifies the id, name and type of a column in a table. */ 1918 /** Specifies the details of a column in a table. */
1831 class Column { 1919 class Column {
1832 /** 1920 /**
1833 * Optional identifier of the base column. If present, this column is derived 1921 * Identifier of the base column. If present, this column is derived from the
1834 * from the specified base column. 1922 * specified base column.
1835 */ 1923 */
1836 ColumnBaseColumn baseColumn; 1924 ColumnBaseColumn baseColumn;
1837 1925
1838 /** Identifier for the column. */ 1926 /** Identifier for the column. */
1839 core.int columnId; 1927 core.int columnId;
1840 1928
1841 /** Optional column description. */ 1929 /** JSON schema for interpreting JSON in this column. */
1930 core.String columnJsonSchema;
1931
1932 /** JSON object containing custom column properties. */
1933 core.String columnPropertiesJson;
1934
1935 /** Column description. */
1842 core.String description; 1936 core.String description;
1843 1937
1938 /** Format pattern. */
1939 core.String formatPattern;
1940
1844 /** 1941 /**
1845 * Optional column predicate. Used to map table to graph data model 1942 * Column graph predicate.
1846 * (subject,predicate,object) See 1943 * Used to map table to graph data model (subject,predicate,object)
1847 * http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model 1944 * See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
1848 */ 1945 */
1849 core.String graphPredicate; 1946 core.String graphPredicate;
1850 1947
1851 /** Type name: a template for an individual column. */ 1948 /** Type name: a template for an individual column. */
1852 core.String kind; 1949 core.String kind;
1853 1950
1854 /** Required name of the column. */ 1951 /** Name of the column. */
1855 core.String name; 1952 core.String name;
1856 1953
1857 /** Required type of the column. */ 1954 /** Type of the column. */
1858 core.String type; 1955 core.String type;
1859 1956
1957 /**
1958 * List of valid values used to validate data and supply a drop-down list of
1959 * values in the web application.
1960 */
1961 core.List<core.String> validValues;
1962
1963 /** If true, data entered via the web application is validated. */
1964 core.bool validateData;
1965
1860 1966
1861 Column(); 1967 Column();
1862 1968
1863 Column.fromJson(core.Map _json) { 1969 Column.fromJson(core.Map _json) {
1864 if (_json.containsKey("baseColumn")) { 1970 if (_json.containsKey("baseColumn")) {
1865 baseColumn = new ColumnBaseColumn.fromJson(_json["baseColumn"]); 1971 baseColumn = new ColumnBaseColumn.fromJson(_json["baseColumn"]);
1866 } 1972 }
1867 if (_json.containsKey("columnId")) { 1973 if (_json.containsKey("columnId")) {
1868 columnId = _json["columnId"]; 1974 columnId = _json["columnId"];
1869 } 1975 }
1976 if (_json.containsKey("columnJsonSchema")) {
1977 columnJsonSchema = _json["columnJsonSchema"];
1978 }
1979 if (_json.containsKey("columnPropertiesJson")) {
1980 columnPropertiesJson = _json["columnPropertiesJson"];
1981 }
1870 if (_json.containsKey("description")) { 1982 if (_json.containsKey("description")) {
1871 description = _json["description"]; 1983 description = _json["description"];
1872 } 1984 }
1873 if (_json.containsKey("graph_predicate")) { 1985 if (_json.containsKey("formatPattern")) {
1874 graphPredicate = _json["graph_predicate"]; 1986 formatPattern = _json["formatPattern"];
1987 }
1988 if (_json.containsKey("graphPredicate")) {
1989 graphPredicate = _json["graphPredicate"];
1875 } 1990 }
1876 if (_json.containsKey("kind")) { 1991 if (_json.containsKey("kind")) {
1877 kind = _json["kind"]; 1992 kind = _json["kind"];
1878 } 1993 }
1879 if (_json.containsKey("name")) { 1994 if (_json.containsKey("name")) {
1880 name = _json["name"]; 1995 name = _json["name"];
1881 } 1996 }
1882 if (_json.containsKey("type")) { 1997 if (_json.containsKey("type")) {
1883 type = _json["type"]; 1998 type = _json["type"];
1884 } 1999 }
2000 if (_json.containsKey("validValues")) {
2001 validValues = _json["validValues"];
2002 }
2003 if (_json.containsKey("validateData")) {
2004 validateData = _json["validateData"];
2005 }
1885 } 2006 }
1886 2007
1887 core.Map toJson() { 2008 core.Map toJson() {
1888 var _json = new core.Map(); 2009 var _json = new core.Map();
1889 if (baseColumn != null) { 2010 if (baseColumn != null) {
1890 _json["baseColumn"] = (baseColumn).toJson(); 2011 _json["baseColumn"] = (baseColumn).toJson();
1891 } 2012 }
1892 if (columnId != null) { 2013 if (columnId != null) {
1893 _json["columnId"] = columnId; 2014 _json["columnId"] = columnId;
1894 } 2015 }
2016 if (columnJsonSchema != null) {
2017 _json["columnJsonSchema"] = columnJsonSchema;
2018 }
2019 if (columnPropertiesJson != null) {
2020 _json["columnPropertiesJson"] = columnPropertiesJson;
2021 }
1895 if (description != null) { 2022 if (description != null) {
1896 _json["description"] = description; 2023 _json["description"] = description;
1897 } 2024 }
2025 if (formatPattern != null) {
2026 _json["formatPattern"] = formatPattern;
2027 }
1898 if (graphPredicate != null) { 2028 if (graphPredicate != null) {
1899 _json["graph_predicate"] = graphPredicate; 2029 _json["graphPredicate"] = graphPredicate;
1900 } 2030 }
1901 if (kind != null) { 2031 if (kind != null) {
1902 _json["kind"] = kind; 2032 _json["kind"] = kind;
1903 } 2033 }
1904 if (name != null) { 2034 if (name != null) {
1905 _json["name"] = name; 2035 _json["name"] = name;
1906 } 2036 }
1907 if (type != null) { 2037 if (type != null) {
1908 _json["type"] = type; 2038 _json["type"] = type;
1909 } 2039 }
2040 if (validValues != null) {
2041 _json["validValues"] = validValues;
2042 }
2043 if (validateData != null) {
2044 _json["validateData"] = validateData;
2045 }
1910 return _json; 2046 return _json;
1911 } 2047 }
1912 } 2048 }
1913 2049
1914 2050
1915 /** Represents a list of columns in a table. */ 2051 /** Represents a list of columns in a table. */
1916 class ColumnList { 2052 class ColumnList {
1917 /** List of all requested columns. */ 2053 /** List of all requested columns. */
1918 core.List<Column> items; 2054 core.List<Column> items;
1919 2055
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
2680 _json["nextPageToken"] = nextPageToken; 2816 _json["nextPageToken"] = nextPageToken;
2681 } 2817 }
2682 if (totalItems != null) { 2818 if (totalItems != null) {
2683 _json["totalItems"] = totalItems; 2819 _json["totalItems"] = totalItems;
2684 } 2820 }
2685 return _json; 2821 return _json;
2686 } 2822 }
2687 } 2823 }
2688 2824
2689 2825
2690 /** 2826 /** Represents a table. */
2691 * Represents a table. Specifies the name, whether it is exportable,
2692 * description, attribution, and attribution link.
2693 */
2694 class Table { 2827 class Table {
2695 /** Optional attribution assigned to the table. */ 2828 /** Attribution assigned to the table. */
2696 core.String attribution; 2829 core.String attribution;
2697 2830
2698 /** Optional link for attribution. */ 2831 /** Optional link for attribution. */
2699 core.String attributionLink; 2832 core.String attributionLink;
2700 2833
2701 /** 2834 /** Base table identifier if this table is a view or merged table. */
2702 * Optional base table identifier if this table is a view or merged table.
2703 */
2704 core.List<core.String> baseTableIds; 2835 core.List<core.String> baseTableIds;
2705 2836
2837 /** Default JSON schema for validating all JSON column properties. */
2838 core.String columnPropertiesJsonSchema;
2839
2706 /** Columns in the table. */ 2840 /** Columns in the table. */
2707 core.List<Column> columns; 2841 core.List<Column> columns;
2708 2842
2709 /** Optional description assigned to the table. */ 2843 /** Description assigned to the table. */
2710 core.String description; 2844 core.String description;
2711 2845
2712 /** Variable for whether table is exportable. */ 2846 /** Variable for whether table is exportable. */
2713 core.bool isExportable; 2847 core.bool isExportable;
2714 2848
2715 /** Type name: a template for an individual table. */ 2849 /** Type name: a template for an individual table. */
2716 core.String kind; 2850 core.String kind;
2717 2851
2718 /** Name assigned to a table. */ 2852 /** Name assigned to a table. */
2719 core.String name; 2853 core.String name;
2720 2854
2721 /** Optional sql that encodes the table definition for derived tables. */ 2855 /** SQL that encodes the table definition for derived tables. */
2722 core.String sql; 2856 core.String sql;
2723 2857
2724 /** Encrypted unique alphanumeric identifier for the table. */ 2858 /** Encrypted unique alphanumeric identifier for the table. */
2725 core.String tableId; 2859 core.String tableId;
2726 2860
2861 /** JSON object containing custom table properties. */
2862 core.String tablePropertiesJson;
2863
2864 /** JSON schema for validating the JSON table properties. */
2865 core.String tablePropertiesJsonSchema;
2866
2727 2867
2728 Table(); 2868 Table();
2729 2869
2730 Table.fromJson(core.Map _json) { 2870 Table.fromJson(core.Map _json) {
2731 if (_json.containsKey("attribution")) { 2871 if (_json.containsKey("attribution")) {
2732 attribution = _json["attribution"]; 2872 attribution = _json["attribution"];
2733 } 2873 }
2734 if (_json.containsKey("attributionLink")) { 2874 if (_json.containsKey("attributionLink")) {
2735 attributionLink = _json["attributionLink"]; 2875 attributionLink = _json["attributionLink"];
2736 } 2876 }
2737 if (_json.containsKey("baseTableIds")) { 2877 if (_json.containsKey("baseTableIds")) {
2738 baseTableIds = _json["baseTableIds"]; 2878 baseTableIds = _json["baseTableIds"];
2739 } 2879 }
2880 if (_json.containsKey("columnPropertiesJsonSchema")) {
2881 columnPropertiesJsonSchema = _json["columnPropertiesJsonSchema"];
2882 }
2740 if (_json.containsKey("columns")) { 2883 if (_json.containsKey("columns")) {
2741 columns = _json["columns"].map((value) => new Column.fromJson(value)).toLi st(); 2884 columns = _json["columns"].map((value) => new Column.fromJson(value)).toLi st();
2742 } 2885 }
2743 if (_json.containsKey("description")) { 2886 if (_json.containsKey("description")) {
2744 description = _json["description"]; 2887 description = _json["description"];
2745 } 2888 }
2746 if (_json.containsKey("isExportable")) { 2889 if (_json.containsKey("isExportable")) {
2747 isExportable = _json["isExportable"]; 2890 isExportable = _json["isExportable"];
2748 } 2891 }
2749 if (_json.containsKey("kind")) { 2892 if (_json.containsKey("kind")) {
2750 kind = _json["kind"]; 2893 kind = _json["kind"];
2751 } 2894 }
2752 if (_json.containsKey("name")) { 2895 if (_json.containsKey("name")) {
2753 name = _json["name"]; 2896 name = _json["name"];
2754 } 2897 }
2755 if (_json.containsKey("sql")) { 2898 if (_json.containsKey("sql")) {
2756 sql = _json["sql"]; 2899 sql = _json["sql"];
2757 } 2900 }
2758 if (_json.containsKey("tableId")) { 2901 if (_json.containsKey("tableId")) {
2759 tableId = _json["tableId"]; 2902 tableId = _json["tableId"];
2760 } 2903 }
2904 if (_json.containsKey("tablePropertiesJson")) {
2905 tablePropertiesJson = _json["tablePropertiesJson"];
2906 }
2907 if (_json.containsKey("tablePropertiesJsonSchema")) {
2908 tablePropertiesJsonSchema = _json["tablePropertiesJsonSchema"];
2909 }
2761 } 2910 }
2762 2911
2763 core.Map toJson() { 2912 core.Map toJson() {
2764 var _json = new core.Map(); 2913 var _json = new core.Map();
2765 if (attribution != null) { 2914 if (attribution != null) {
2766 _json["attribution"] = attribution; 2915 _json["attribution"] = attribution;
2767 } 2916 }
2768 if (attributionLink != null) { 2917 if (attributionLink != null) {
2769 _json["attributionLink"] = attributionLink; 2918 _json["attributionLink"] = attributionLink;
2770 } 2919 }
2771 if (baseTableIds != null) { 2920 if (baseTableIds != null) {
2772 _json["baseTableIds"] = baseTableIds; 2921 _json["baseTableIds"] = baseTableIds;
2773 } 2922 }
2923 if (columnPropertiesJsonSchema != null) {
2924 _json["columnPropertiesJsonSchema"] = columnPropertiesJsonSchema;
2925 }
2774 if (columns != null) { 2926 if (columns != null) {
2775 _json["columns"] = columns.map((value) => (value).toJson()).toList(); 2927 _json["columns"] = columns.map((value) => (value).toJson()).toList();
2776 } 2928 }
2777 if (description != null) { 2929 if (description != null) {
2778 _json["description"] = description; 2930 _json["description"] = description;
2779 } 2931 }
2780 if (isExportable != null) { 2932 if (isExportable != null) {
2781 _json["isExportable"] = isExportable; 2933 _json["isExportable"] = isExportable;
2782 } 2934 }
2783 if (kind != null) { 2935 if (kind != null) {
2784 _json["kind"] = kind; 2936 _json["kind"] = kind;
2785 } 2937 }
2786 if (name != null) { 2938 if (name != null) {
2787 _json["name"] = name; 2939 _json["name"] = name;
2788 } 2940 }
2789 if (sql != null) { 2941 if (sql != null) {
2790 _json["sql"] = sql; 2942 _json["sql"] = sql;
2791 } 2943 }
2792 if (tableId != null) { 2944 if (tableId != null) {
2793 _json["tableId"] = tableId; 2945 _json["tableId"] = tableId;
2794 } 2946 }
2947 if (tablePropertiesJson != null) {
2948 _json["tablePropertiesJson"] = tablePropertiesJson;
2949 }
2950 if (tablePropertiesJsonSchema != null) {
2951 _json["tablePropertiesJsonSchema"] = tablePropertiesJsonSchema;
2952 }
2795 return _json; 2953 return _json;
2796 } 2954 }
2797 } 2955 }
2798 2956
2799 2957
2800 /** Represents a list of tables. */ 2958 /** Represents a list of tables. */
2801 class TableList { 2959 class TableList {
2802 /** List of all requested tables. */ 2960 /** List of all requested tables. */
2803 core.List<Table> items; 2961 core.List<Table> items;
2804 2962
(...skipping 30 matching lines...) Expand all
2835 _json["kind"] = kind; 2993 _json["kind"] = kind;
2836 } 2994 }
2837 if (nextPageToken != null) { 2995 if (nextPageToken != null) {
2838 _json["nextPageToken"] = nextPageToken; 2996 _json["nextPageToken"] = nextPageToken;
2839 } 2997 }
2840 return _json; 2998 return _json;
2841 } 2999 }
2842 } 3000 }
2843 3001
2844 3002
2845 /** Specifies the id, name and type of a task in a table. */ 3003 /**
3004 * A background task on a table, initiated for time and or resource consuming
3005 * operations such as a column type change or delete all rows operation.
3006 */
2846 class Task { 3007 class Task {
2847 /** Type name: a template for an individual task. */ 3008 /** Type name: a template for an individual task. */
2848 core.String kind; 3009 core.String kind;
2849 3010
2850 /** An indication of task progress. */ 3011 /** Task percentage completion. */
2851 core.String progress; 3012 core.String progress;
2852 3013
2853 /** False while the table is busy with some other task. */ 3014 /**
3015 * True if the task is in progress, its progress indicator will indicated
3016 * where it is, and it can't be deleted.
3017 */
2854 core.bool started; 3018 core.bool started;
2855 3019
2856 /** Identifier for the task. */ 3020 /** Identifier for the task. */
2857 core.String taskId; 3021 core.String taskId;
2858 3022
2859 /** Not documented yet. */ 3023 /** The type of task being executed in the background. */
2860 core.String type; 3024 core.String type;
2861 3025
2862 3026
2863 Task(); 3027 Task();
2864 3028
2865 Task.fromJson(core.Map _json) { 3029 Task.fromJson(core.Map _json) {
2866 if (_json.containsKey("kind")) { 3030 if (_json.containsKey("kind")) {
2867 kind = _json["kind"]; 3031 kind = _json["kind"];
2868 } 3032 }
2869 if (_json.containsKey("progress")) { 3033 if (_json.containsKey("progress")) {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
3086 _json["nextPageToken"] = nextPageToken; 3250 _json["nextPageToken"] = nextPageToken;
3087 } 3251 }
3088 if (totalItems != null) { 3252 if (totalItems != null) {
3089 _json["totalItems"] = totalItems; 3253 _json["totalItems"] = totalItems;
3090 } 3254 }
3091 return _json; 3255 return _json;
3092 } 3256 }
3093 } 3257 }
3094 3258
3095 3259
OLDNEW
« no previous file with comments | « generated/googleapis/lib/fusiontables/v1.dart ('k') | generated/googleapis/lib/games/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698