| OLD | NEW | 
|---|
|  | 1 // This is a generated file (see the discoveryapis_generator project). | 
|  | 2 | 
| 1 library googleapis.fusiontables.v1; | 3 library googleapis.fusiontables.v1; | 
| 2 | 4 | 
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; | 
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; | 
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; | 
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; | 
| 7 | 9 | 
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 
|  | 11 import 'package:crypto/crypto.dart' as crypto; | 
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; | 
| 10 import '../src/common_internal.dart' as common_internal; |  | 
| 11 import '../common/common.dart' as common; |  | 
| 12 | 13 | 
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15     ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 
|  | 16     ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 
|  | 17     ByteRange; | 
|  | 18 | 
|  | 19 const core.String USER_AGENT = 'dart-api-client fusiontables/v1'; | 
| 15 | 20 | 
| 16 /** API for working with Fusion Tables data. */ | 21 /** API for working with Fusion Tables data. */ | 
| 17 class FusiontablesApi { | 22 class FusiontablesApi { | 
| 18   /** Manage your Fusion Tables */ | 23   /** Manage your Fusion Tables */ | 
| 19   static const FusiontablesScope = "https://www.googleapis.com/auth/fusiontables
      "; | 24   static const FusiontablesScope = "https://www.googleapis.com/auth/fusiontables
      "; | 
| 20 | 25 | 
| 21   /** View your Fusion Tables */ | 26   /** View your Fusion Tables */ | 
| 22   static const FusiontablesReadonlyScope = "https://www.googleapis.com/auth/fusi
      ontables.readonly"; | 27   static const FusiontablesReadonlyScope = "https://www.googleapis.com/auth/fusi
      ontables.readonly"; | 
| 23 | 28 | 
| 24 | 29 | 
| 25   final common_internal.ApiRequester _requester; | 30   final commons.ApiRequester _requester; | 
| 26 | 31 | 
| 27   ColumnResourceApi get column => new ColumnResourceApi(_requester); | 32   ColumnResourceApi get column => new ColumnResourceApi(_requester); | 
| 28   QueryResourceApi get query => new QueryResourceApi(_requester); | 33   QueryResourceApi get query => new QueryResourceApi(_requester); | 
| 29   StyleResourceApi get style => new StyleResourceApi(_requester); | 34   StyleResourceApi get style => new StyleResourceApi(_requester); | 
| 30   TableResourceApi get table => new TableResourceApi(_requester); | 35   TableResourceApi get table => new TableResourceApi(_requester); | 
| 31   TaskResourceApi get task => new TaskResourceApi(_requester); | 36   TaskResourceApi get task => new TaskResourceApi(_requester); | 
| 32   TemplateResourceApi get template => new TemplateResourceApi(_requester); | 37   TemplateResourceApi get template => new TemplateResourceApi(_requester); | 
| 33 | 38 | 
| 34   FusiontablesApi(http.Client client, {core.String rootUrl: "https://www.googlea
      pis.com/", core.String servicePath: "fusiontables/v1/"}) : | 39   FusiontablesApi(http.Client client, {core.String rootUrl: "https://www.googlea
      pis.com/", core.String servicePath: "fusiontables/v1/"}) : | 
| 35       _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
      ); | 40       _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
      GENT); | 
| 36 } | 41 } | 
| 37 | 42 | 
| 38 | 43 | 
| 39 /** Not documented yet. */ |  | 
| 40 class ColumnResourceApi { | 44 class ColumnResourceApi { | 
| 41   final common_internal.ApiRequester _requester; | 45   final commons.ApiRequester _requester; | 
| 42 | 46 | 
| 43   ColumnResourceApi(common_internal.ApiRequester client) : | 47   ColumnResourceApi(commons.ApiRequester client) : | 
| 44       _requester = client; | 48       _requester = client; | 
| 45 | 49 | 
| 46   /** | 50   /** | 
| 47    * Deletes the column. | 51    * Deletes the column. | 
| 48    * | 52    * | 
| 49    * Request parameters: | 53    * Request parameters: | 
| 50    * | 54    * | 
| 51    * [tableId] - Table from which the column is being deleted. | 55    * [tableId] - Table from which the column is being deleted. | 
| 52    * | 56    * | 
| 53    * [columnId] - Name or identifier for the column being deleted. | 57    * [columnId] - Name or identifier for the column being deleted. | 
| 54    * | 58    * | 
| 55    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 59    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 56    * error. | 60    * error. | 
| 57    * | 61    * | 
| 58    * If the used [http.Client] completes with an error when making a REST call, | 62    * If the used [http.Client] completes with an error when making a REST call, | 
| 59    * this method  will complete with the same error. | 63    * this method  will complete with the same error. | 
| 60    */ | 64    */ | 
| 61   async.Future delete(core.String tableId, core.String columnId) { | 65   async.Future delete(core.String tableId, core.String columnId) { | 
| 62     var _url = null; | 66     var _url = null; | 
| 63     var _queryParams = new core.Map(); | 67     var _queryParams = new core.Map(); | 
| 64     var _uploadMedia = null; | 68     var _uploadMedia = null; | 
| 65     var _uploadOptions = null; | 69     var _uploadOptions = null; | 
| 66     var _downloadOptions = common.DownloadOptions.Metadata; | 70     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 67     var _body = null; | 71     var _body = null; | 
| 68 | 72 | 
| 69     if (tableId == null) { | 73     if (tableId == null) { | 
| 70       throw new core.ArgumentError("Parameter tableId is required."); | 74       throw new core.ArgumentError("Parameter tableId is required."); | 
| 71     } | 75     } | 
| 72     if (columnId == null) { | 76     if (columnId == null) { | 
| 73       throw new core.ArgumentError("Parameter columnId is required."); | 77       throw new core.ArgumentError("Parameter columnId is required."); | 
| 74     } | 78     } | 
| 75 | 79 | 
| 76     _downloadOptions = null; | 80     _downloadOptions = null; | 
| 77 | 81 | 
| 78     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/col
      umns/' + common_internal.Escaper.ecapeVariable('$columnId'); | 82     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns/' +
       commons.Escaper.ecapeVariable('$columnId'); | 
| 79 | 83 | 
| 80     var _response = _requester.request(_url, | 84     var _response = _requester.request(_url, | 
| 81                                        "DELETE", | 85                                        "DELETE", | 
| 82                                        body: _body, | 86                                        body: _body, | 
| 83                                        queryParams: _queryParams, | 87                                        queryParams: _queryParams, | 
| 84                                        uploadOptions: _uploadOptions, | 88                                        uploadOptions: _uploadOptions, | 
| 85                                        uploadMedia: _uploadMedia, | 89                                        uploadMedia: _uploadMedia, | 
| 86                                        downloadOptions: _downloadOptions); | 90                                        downloadOptions: _downloadOptions); | 
| 87     return _response.then((data) => null); | 91     return _response.then((data) => null); | 
| 88   } | 92   } | 
| 89 | 93 | 
| 90   /** | 94   /** | 
| 91    * Retrieves a specific column by its id. | 95    * Retrieves a specific column by its id. | 
| 92    * | 96    * | 
| 93    * Request parameters: | 97    * Request parameters: | 
| 94    * | 98    * | 
| 95    * [tableId] - Table to which the column belongs. | 99    * [tableId] - Table to which the column belongs. | 
| 96    * | 100    * | 
| 97    * [columnId] - Name or identifier for the column that is being requested. | 101    * [columnId] - Name or identifier for the column that is being requested. | 
| 98    * | 102    * | 
| 99    * Completes with a [Column]. | 103    * Completes with a [Column]. | 
| 100    * | 104    * | 
| 101    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 105    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 102    * error. | 106    * error. | 
| 103    * | 107    * | 
| 104    * If the used [http.Client] completes with an error when making a REST call, | 108    * If the used [http.Client] completes with an error when making a REST call, | 
| 105    * this method  will complete with the same error. | 109    * this method  will complete with the same error. | 
| 106    */ | 110    */ | 
| 107   async.Future<Column> get(core.String tableId, core.String columnId) { | 111   async.Future<Column> get(core.String tableId, core.String columnId) { | 
| 108     var _url = null; | 112     var _url = null; | 
| 109     var _queryParams = new core.Map(); | 113     var _queryParams = new core.Map(); | 
| 110     var _uploadMedia = null; | 114     var _uploadMedia = null; | 
| 111     var _uploadOptions = null; | 115     var _uploadOptions = null; | 
| 112     var _downloadOptions = common.DownloadOptions.Metadata; | 116     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 113     var _body = null; | 117     var _body = null; | 
| 114 | 118 | 
| 115     if (tableId == null) { | 119     if (tableId == null) { | 
| 116       throw new core.ArgumentError("Parameter tableId is required."); | 120       throw new core.ArgumentError("Parameter tableId is required."); | 
| 117     } | 121     } | 
| 118     if (columnId == null) { | 122     if (columnId == null) { | 
| 119       throw new core.ArgumentError("Parameter columnId is required."); | 123       throw new core.ArgumentError("Parameter columnId is required."); | 
| 120     } | 124     } | 
| 121 | 125 | 
| 122 | 126 | 
| 123     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/col
      umns/' + common_internal.Escaper.ecapeVariable('$columnId'); | 127     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns/' +
       commons.Escaper.ecapeVariable('$columnId'); | 
| 124 | 128 | 
| 125     var _response = _requester.request(_url, | 129     var _response = _requester.request(_url, | 
| 126                                        "GET", | 130                                        "GET", | 
| 127                                        body: _body, | 131                                        body: _body, | 
| 128                                        queryParams: _queryParams, | 132                                        queryParams: _queryParams, | 
| 129                                        uploadOptions: _uploadOptions, | 133                                        uploadOptions: _uploadOptions, | 
| 130                                        uploadMedia: _uploadMedia, | 134                                        uploadMedia: _uploadMedia, | 
| 131                                        downloadOptions: _downloadOptions); | 135                                        downloadOptions: _downloadOptions); | 
| 132     return _response.then((data) => new Column.fromJson(data)); | 136     return _response.then((data) => new Column.fromJson(data)); | 
| 133   } | 137   } | 
| 134 | 138 | 
| 135   /** | 139   /** | 
| 136    * Adds a new column to the table. | 140    * Adds a new column to the table. | 
| 137    * | 141    * | 
| 138    * [request] - The metadata request object. | 142    * [request] - The metadata request object. | 
| 139    * | 143    * | 
| 140    * Request parameters: | 144    * Request parameters: | 
| 141    * | 145    * | 
| 142    * [tableId] - Table for which a new column is being added. | 146    * [tableId] - Table for which a new column is being added. | 
| 143    * | 147    * | 
| 144    * Completes with a [Column]. | 148    * Completes with a [Column]. | 
| 145    * | 149    * | 
| 146    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 150    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 147    * error. | 151    * error. | 
| 148    * | 152    * | 
| 149    * If the used [http.Client] completes with an error when making a REST call, | 153    * If the used [http.Client] completes with an error when making a REST call, | 
| 150    * this method  will complete with the same error. | 154    * this method  will complete with the same error. | 
| 151    */ | 155    */ | 
| 152   async.Future<Column> insert(Column request, core.String tableId) { | 156   async.Future<Column> insert(Column request, core.String tableId) { | 
| 153     var _url = null; | 157     var _url = null; | 
| 154     var _queryParams = new core.Map(); | 158     var _queryParams = new core.Map(); | 
| 155     var _uploadMedia = null; | 159     var _uploadMedia = null; | 
| 156     var _uploadOptions = null; | 160     var _uploadOptions = null; | 
| 157     var _downloadOptions = common.DownloadOptions.Metadata; | 161     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 158     var _body = null; | 162     var _body = null; | 
| 159 | 163 | 
| 160     if (request != null) { | 164     if (request != null) { | 
| 161       _body = convert.JSON.encode((request).toJson()); | 165       _body = convert.JSON.encode((request).toJson()); | 
| 162     } | 166     } | 
| 163     if (tableId == null) { | 167     if (tableId == null) { | 
| 164       throw new core.ArgumentError("Parameter tableId is required."); | 168       throw new core.ArgumentError("Parameter tableId is required."); | 
| 165     } | 169     } | 
| 166 | 170 | 
| 167 | 171 | 
| 168     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/col
      umns'; | 172     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns'; | 
| 169 | 173 | 
| 170     var _response = _requester.request(_url, | 174     var _response = _requester.request(_url, | 
| 171                                        "POST", | 175                                        "POST", | 
| 172                                        body: _body, | 176                                        body: _body, | 
| 173                                        queryParams: _queryParams, | 177                                        queryParams: _queryParams, | 
| 174                                        uploadOptions: _uploadOptions, | 178                                        uploadOptions: _uploadOptions, | 
| 175                                        uploadMedia: _uploadMedia, | 179                                        uploadMedia: _uploadMedia, | 
| 176                                        downloadOptions: _downloadOptions); | 180                                        downloadOptions: _downloadOptions); | 
| 177     return _response.then((data) => new Column.fromJson(data)); | 181     return _response.then((data) => new Column.fromJson(data)); | 
| 178   } | 182   } | 
| 179 | 183 | 
| 180   /** | 184   /** | 
| 181    * Retrieves a list of columns. | 185    * Retrieves a list of columns. | 
| 182    * | 186    * | 
| 183    * Request parameters: | 187    * Request parameters: | 
| 184    * | 188    * | 
| 185    * [tableId] - Table whose columns are being listed. | 189    * [tableId] - Table whose columns are being listed. | 
| 186    * | 190    * | 
| 187    * [maxResults] - Maximum number of columns to return. Optional. Default is 5. | 191    * [maxResults] - Maximum number of columns to return. Optional. Default is 5. | 
| 188    * | 192    * | 
| 189    * [pageToken] - Continuation token specifying which result page to return. | 193    * [pageToken] - Continuation token specifying which result page to return. | 
| 190    * Optional. | 194    * Optional. | 
| 191    * | 195    * | 
| 192    * Completes with a [ColumnList]. | 196    * Completes with a [ColumnList]. | 
| 193    * | 197    * | 
| 194    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 198    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 195    * error. | 199    * error. | 
| 196    * | 200    * | 
| 197    * If the used [http.Client] completes with an error when making a REST call, | 201    * If the used [http.Client] completes with an error when making a REST call, | 
| 198    * this method  will complete with the same error. | 202    * this method  will complete with the same error. | 
| 199    */ | 203    */ | 
| 200   async.Future<ColumnList> list(core.String tableId, {core.int maxResults, core.
      String pageToken}) { | 204   async.Future<ColumnList> list(core.String tableId, {core.int maxResults, core.
      String pageToken}) { | 
| 201     var _url = null; | 205     var _url = null; | 
| 202     var _queryParams = new core.Map(); | 206     var _queryParams = new core.Map(); | 
| 203     var _uploadMedia = null; | 207     var _uploadMedia = null; | 
| 204     var _uploadOptions = null; | 208     var _uploadOptions = null; | 
| 205     var _downloadOptions = common.DownloadOptions.Metadata; | 209     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 206     var _body = null; | 210     var _body = null; | 
| 207 | 211 | 
| 208     if (tableId == null) { | 212     if (tableId == null) { | 
| 209       throw new core.ArgumentError("Parameter tableId is required."); | 213       throw new core.ArgumentError("Parameter tableId is required."); | 
| 210     } | 214     } | 
| 211     if (maxResults != null) { | 215     if (maxResults != null) { | 
| 212       _queryParams["maxResults"] = ["${maxResults}"]; | 216       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 213     } | 217     } | 
| 214     if (pageToken != null) { | 218     if (pageToken != null) { | 
| 215       _queryParams["pageToken"] = [pageToken]; | 219       _queryParams["pageToken"] = [pageToken]; | 
| 216     } | 220     } | 
| 217 | 221 | 
| 218 | 222 | 
| 219     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/col
      umns'; | 223     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns'; | 
| 220 | 224 | 
| 221     var _response = _requester.request(_url, | 225     var _response = _requester.request(_url, | 
| 222                                        "GET", | 226                                        "GET", | 
| 223                                        body: _body, | 227                                        body: _body, | 
| 224                                        queryParams: _queryParams, | 228                                        queryParams: _queryParams, | 
| 225                                        uploadOptions: _uploadOptions, | 229                                        uploadOptions: _uploadOptions, | 
| 226                                        uploadMedia: _uploadMedia, | 230                                        uploadMedia: _uploadMedia, | 
| 227                                        downloadOptions: _downloadOptions); | 231                                        downloadOptions: _downloadOptions); | 
| 228     return _response.then((data) => new ColumnList.fromJson(data)); | 232     return _response.then((data) => new ColumnList.fromJson(data)); | 
| 229   } | 233   } | 
| 230 | 234 | 
| 231   /** | 235   /** | 
| 232    * Updates the name or type of an existing column. This method supports patch | 236    * Updates the name or type of an existing column. This method supports patch | 
| 233    * semantics. | 237    * semantics. | 
| 234    * | 238    * | 
| 235    * [request] - The metadata request object. | 239    * [request] - The metadata request object. | 
| 236    * | 240    * | 
| 237    * Request parameters: | 241    * Request parameters: | 
| 238    * | 242    * | 
| 239    * [tableId] - Table for which the column is being updated. | 243    * [tableId] - Table for which the column is being updated. | 
| 240    * | 244    * | 
| 241    * [columnId] - Name or identifier for the column that is being updated. | 245    * [columnId] - Name or identifier for the column that is being updated. | 
| 242    * | 246    * | 
| 243    * Completes with a [Column]. | 247    * Completes with a [Column]. | 
| 244    * | 248    * | 
| 245    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 249    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 246    * error. | 250    * error. | 
| 247    * | 251    * | 
| 248    * If the used [http.Client] completes with an error when making a REST call, | 252    * If the used [http.Client] completes with an error when making a REST call, | 
| 249    * this method  will complete with the same error. | 253    * this method  will complete with the same error. | 
| 250    */ | 254    */ | 
| 251   async.Future<Column> patch(Column request, core.String tableId, core.String co
      lumnId) { | 255   async.Future<Column> patch(Column request, core.String tableId, core.String co
      lumnId) { | 
| 252     var _url = null; | 256     var _url = null; | 
| 253     var _queryParams = new core.Map(); | 257     var _queryParams = new core.Map(); | 
| 254     var _uploadMedia = null; | 258     var _uploadMedia = null; | 
| 255     var _uploadOptions = null; | 259     var _uploadOptions = null; | 
| 256     var _downloadOptions = common.DownloadOptions.Metadata; | 260     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 257     var _body = null; | 261     var _body = null; | 
| 258 | 262 | 
| 259     if (request != null) { | 263     if (request != null) { | 
| 260       _body = convert.JSON.encode((request).toJson()); | 264       _body = convert.JSON.encode((request).toJson()); | 
| 261     } | 265     } | 
| 262     if (tableId == null) { | 266     if (tableId == null) { | 
| 263       throw new core.ArgumentError("Parameter tableId is required."); | 267       throw new core.ArgumentError("Parameter tableId is required."); | 
| 264     } | 268     } | 
| 265     if (columnId == null) { | 269     if (columnId == null) { | 
| 266       throw new core.ArgumentError("Parameter columnId is required."); | 270       throw new core.ArgumentError("Parameter columnId is required."); | 
| 267     } | 271     } | 
| 268 | 272 | 
| 269 | 273 | 
| 270     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/col
      umns/' + common_internal.Escaper.ecapeVariable('$columnId'); | 274     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns/' +
       commons.Escaper.ecapeVariable('$columnId'); | 
| 271 | 275 | 
| 272     var _response = _requester.request(_url, | 276     var _response = _requester.request(_url, | 
| 273                                        "PATCH", | 277                                        "PATCH", | 
| 274                                        body: _body, | 278                                        body: _body, | 
| 275                                        queryParams: _queryParams, | 279                                        queryParams: _queryParams, | 
| 276                                        uploadOptions: _uploadOptions, | 280                                        uploadOptions: _uploadOptions, | 
| 277                                        uploadMedia: _uploadMedia, | 281                                        uploadMedia: _uploadMedia, | 
| 278                                        downloadOptions: _downloadOptions); | 282                                        downloadOptions: _downloadOptions); | 
| 279     return _response.then((data) => new Column.fromJson(data)); | 283     return _response.then((data) => new Column.fromJson(data)); | 
| 280   } | 284   } | 
| 281 | 285 | 
| 282   /** | 286   /** | 
| 283    * Updates the name or type of an existing column. | 287    * Updates the name or type of an existing column. | 
| 284    * | 288    * | 
| 285    * [request] - The metadata request object. | 289    * [request] - The metadata request object. | 
| 286    * | 290    * | 
| 287    * Request parameters: | 291    * Request parameters: | 
| 288    * | 292    * | 
| 289    * [tableId] - Table for which the column is being updated. | 293    * [tableId] - Table for which the column is being updated. | 
| 290    * | 294    * | 
| 291    * [columnId] - Name or identifier for the column that is being updated. | 295    * [columnId] - Name or identifier for the column that is being updated. | 
| 292    * | 296    * | 
| 293    * Completes with a [Column]. | 297    * Completes with a [Column]. | 
| 294    * | 298    * | 
| 295    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 299    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 296    * error. | 300    * error. | 
| 297    * | 301    * | 
| 298    * If the used [http.Client] completes with an error when making a REST call, | 302    * If the used [http.Client] completes with an error when making a REST call, | 
| 299    * this method  will complete with the same error. | 303    * this method  will complete with the same error. | 
| 300    */ | 304    */ | 
| 301   async.Future<Column> update(Column request, core.String tableId, core.String c
      olumnId) { | 305   async.Future<Column> update(Column request, core.String tableId, core.String c
      olumnId) { | 
| 302     var _url = null; | 306     var _url = null; | 
| 303     var _queryParams = new core.Map(); | 307     var _queryParams = new core.Map(); | 
| 304     var _uploadMedia = null; | 308     var _uploadMedia = null; | 
| 305     var _uploadOptions = null; | 309     var _uploadOptions = null; | 
| 306     var _downloadOptions = common.DownloadOptions.Metadata; | 310     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 307     var _body = null; | 311     var _body = null; | 
| 308 | 312 | 
| 309     if (request != null) { | 313     if (request != null) { | 
| 310       _body = convert.JSON.encode((request).toJson()); | 314       _body = convert.JSON.encode((request).toJson()); | 
| 311     } | 315     } | 
| 312     if (tableId == null) { | 316     if (tableId == null) { | 
| 313       throw new core.ArgumentError("Parameter tableId is required."); | 317       throw new core.ArgumentError("Parameter tableId is required."); | 
| 314     } | 318     } | 
| 315     if (columnId == null) { | 319     if (columnId == null) { | 
| 316       throw new core.ArgumentError("Parameter columnId is required."); | 320       throw new core.ArgumentError("Parameter columnId is required."); | 
| 317     } | 321     } | 
| 318 | 322 | 
| 319 | 323 | 
| 320     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/col
      umns/' + common_internal.Escaper.ecapeVariable('$columnId'); | 324     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns/' +
       commons.Escaper.ecapeVariable('$columnId'); | 
| 321 | 325 | 
| 322     var _response = _requester.request(_url, | 326     var _response = _requester.request(_url, | 
| 323                                        "PUT", | 327                                        "PUT", | 
| 324                                        body: _body, | 328                                        body: _body, | 
| 325                                        queryParams: _queryParams, | 329                                        queryParams: _queryParams, | 
| 326                                        uploadOptions: _uploadOptions, | 330                                        uploadOptions: _uploadOptions, | 
| 327                                        uploadMedia: _uploadMedia, | 331                                        uploadMedia: _uploadMedia, | 
| 328                                        downloadOptions: _downloadOptions); | 332                                        downloadOptions: _downloadOptions); | 
| 329     return _response.then((data) => new Column.fromJson(data)); | 333     return _response.then((data) => new Column.fromJson(data)); | 
| 330   } | 334   } | 
| 331 | 335 | 
| 332 } | 336 } | 
| 333 | 337 | 
| 334 | 338 | 
| 335 /** Not documented yet. */ |  | 
| 336 class QueryResourceApi { | 339 class QueryResourceApi { | 
| 337   final common_internal.ApiRequester _requester; | 340   final commons.ApiRequester _requester; | 
| 338 | 341 | 
| 339   QueryResourceApi(common_internal.ApiRequester client) : | 342   QueryResourceApi(commons.ApiRequester client) : | 
| 340       _requester = client; | 343       _requester = client; | 
| 341 | 344 | 
| 342   /** | 345   /** | 
| 343    * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement. | 346    * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement. | 
| 344    * | 347    * | 
| 345    * Request parameters: | 348    * Request parameters: | 
| 346    * | 349    * | 
| 347    * [sql_1] - An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE | 350    * [sql_1] - An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE | 
| 348    * statement. | 351    * statement. | 
| 349    * | 352    * | 
| 350    * [hdrs] - Should column names be included (in the first row)?. Default is | 353    * [hdrs] - Should column names be included (in the first row)?. Default is | 
| 351    * true. | 354    * true. | 
| 352    * | 355    * | 
| 353    * [typed] - Should typed values be returned in the (JSON) response -- numbers | 356    * [typed] - Should typed values be returned in the (JSON) response -- numbers | 
| 354    * for numeric values and parsed geometries for KML values? Default is true. | 357    * for numeric values and parsed geometries for KML values? Default is true. | 
| 355    * | 358    * | 
| 356    * [downloadOptions] - Options for downloading. A download can be either a | 359    * [downloadOptions] - Options for downloading. A download can be either a | 
| 357    * Metadata (default) or Media download. Partial Media downloads are possible | 360    * Metadata (default) or Media download. Partial Media downloads are possible | 
| 358    * as well. | 361    * as well. | 
| 359    * | 362    * | 
| 360    * Completes with a | 363    * Completes with a | 
| 361    * | 364    * | 
| 362    * - [Sqlresponse] for Metadata downloads (see [downloadOptions]). | 365    * - [Sqlresponse] for Metadata downloads (see [downloadOptions]). | 
| 363    * | 366    * | 
| 364    * - [common.Media] for Media downloads (see [downloadOptions]). | 367    * - [commons.Media] for Media downloads (see [downloadOptions]). | 
| 365    * | 368    * | 
| 366    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 369    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 367    * error. | 370    * error. | 
| 368    * | 371    * | 
| 369    * If the used [http.Client] completes with an error when making a REST call, | 372    * If the used [http.Client] completes with an error when making a REST call, | 
| 370    * this method  will complete with the same error. | 373    * this method  will complete with the same error. | 
| 371    */ | 374    */ | 
| 372   async.Future sql(core.String sql_1, {core.bool hdrs, core.bool typed, common.D
      ownloadOptions downloadOptions: common.DownloadOptions.Metadata}) { | 375   async.Future sql(core.String sql_1, {core.bool hdrs, core.bool typed, commons.
      DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { | 
| 373     var _url = null; | 376     var _url = null; | 
| 374     var _queryParams = new core.Map(); | 377     var _queryParams = new core.Map(); | 
| 375     var _uploadMedia = null; | 378     var _uploadMedia = null; | 
| 376     var _uploadOptions = null; | 379     var _uploadOptions = null; | 
| 377     var _downloadOptions = common.DownloadOptions.Metadata; | 380     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 378     var _body = null; | 381     var _body = null; | 
| 379 | 382 | 
| 380     if (sql_1 == null) { | 383     if (sql_1 == null) { | 
| 381       throw new core.ArgumentError("Parameter sql_1 is required."); | 384       throw new core.ArgumentError("Parameter sql_1 is required."); | 
| 382     } | 385     } | 
| 383     _queryParams["sql"] = [sql_1]; | 386     _queryParams["sql"] = [sql_1]; | 
| 384     if (hdrs != null) { | 387     if (hdrs != null) { | 
| 385       _queryParams["hdrs"] = ["${hdrs}"]; | 388       _queryParams["hdrs"] = ["${hdrs}"]; | 
| 386     } | 389     } | 
| 387     if (typed != null) { | 390     if (typed != null) { | 
| 388       _queryParams["typed"] = ["${typed}"]; | 391       _queryParams["typed"] = ["${typed}"]; | 
| 389     } | 392     } | 
| 390 | 393 | 
| 391     _downloadOptions = downloadOptions; | 394     _downloadOptions = downloadOptions; | 
| 392 | 395 | 
| 393     _url = 'query'; | 396     _url = 'query'; | 
| 394 | 397 | 
| 395     var _response = _requester.request(_url, | 398     var _response = _requester.request(_url, | 
| 396                                        "POST", | 399                                        "POST", | 
| 397                                        body: _body, | 400                                        body: _body, | 
| 398                                        queryParams: _queryParams, | 401                                        queryParams: _queryParams, | 
| 399                                        uploadOptions: _uploadOptions, | 402                                        uploadOptions: _uploadOptions, | 
| 400                                        uploadMedia: _uploadMedia, | 403                                        uploadMedia: _uploadMedia, | 
| 401                                        downloadOptions: _downloadOptions); | 404                                        downloadOptions: _downloadOptions); | 
| 402     if (_downloadOptions == null || | 405     if (_downloadOptions == null || | 
| 403         _downloadOptions == common.DownloadOptions.Metadata) { | 406         _downloadOptions == commons.DownloadOptions.Metadata) { | 
| 404       return _response.then((data) => new Sqlresponse.fromJson(data)); | 407       return _response.then((data) => new Sqlresponse.fromJson(data)); | 
| 405     } else { | 408     } else { | 
| 406       return _response; | 409       return _response; | 
| 407     } | 410     } | 
| 408   } | 411   } | 
| 409 | 412 | 
| 410   /** | 413   /** | 
| 411    * Executes an SQL SELECT/SHOW/DESCRIBE statement. | 414    * Executes an SQL SELECT/SHOW/DESCRIBE statement. | 
| 412    * | 415    * | 
| 413    * Request parameters: | 416    * Request parameters: | 
| 414    * | 417    * | 
| 415    * [sql_1] - An SQL SELECT/SHOW/DESCRIBE statement. | 418    * [sql_1] - An SQL SELECT/SHOW/DESCRIBE statement. | 
| 416    * | 419    * | 
| 417    * [hdrs] - Should column names be included (in the first row)?. Default is | 420    * [hdrs] - Should column names be included (in the first row)?. Default is | 
| 418    * true. | 421    * true. | 
| 419    * | 422    * | 
| 420    * [typed] - Should typed values be returned in the (JSON) response -- numbers | 423    * [typed] - Should typed values be returned in the (JSON) response -- numbers | 
| 421    * for numeric values and parsed geometries for KML values? Default is true. | 424    * for numeric values and parsed geometries for KML values? Default is true. | 
| 422    * | 425    * | 
| 423    * [downloadOptions] - Options for downloading. A download can be either a | 426    * [downloadOptions] - Options for downloading. A download can be either a | 
| 424    * Metadata (default) or Media download. Partial Media downloads are possible | 427    * Metadata (default) or Media download. Partial Media downloads are possible | 
| 425    * as well. | 428    * as well. | 
| 426    * | 429    * | 
| 427    * Completes with a | 430    * Completes with a | 
| 428    * | 431    * | 
| 429    * - [Sqlresponse] for Metadata downloads (see [downloadOptions]). | 432    * - [Sqlresponse] for Metadata downloads (see [downloadOptions]). | 
| 430    * | 433    * | 
| 431    * - [common.Media] for Media downloads (see [downloadOptions]). | 434    * - [commons.Media] for Media downloads (see [downloadOptions]). | 
| 432    * | 435    * | 
| 433    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 436    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 434    * error. | 437    * error. | 
| 435    * | 438    * | 
| 436    * If the used [http.Client] completes with an error when making a REST call, | 439    * If the used [http.Client] completes with an error when making a REST call, | 
| 437    * this method  will complete with the same error. | 440    * this method  will complete with the same error. | 
| 438    */ | 441    */ | 
| 439   async.Future sqlGet(core.String sql_1, {core.bool hdrs, core.bool typed, commo
      n.DownloadOptions downloadOptions: common.DownloadOptions.Metadata}) { | 442   async.Future sqlGet(core.String sql_1, {core.bool hdrs, core.bool typed, commo
      ns.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { | 
| 440     var _url = null; | 443     var _url = null; | 
| 441     var _queryParams = new core.Map(); | 444     var _queryParams = new core.Map(); | 
| 442     var _uploadMedia = null; | 445     var _uploadMedia = null; | 
| 443     var _uploadOptions = null; | 446     var _uploadOptions = null; | 
| 444     var _downloadOptions = common.DownloadOptions.Metadata; | 447     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 445     var _body = null; | 448     var _body = null; | 
| 446 | 449 | 
| 447     if (sql_1 == null) { | 450     if (sql_1 == null) { | 
| 448       throw new core.ArgumentError("Parameter sql_1 is required."); | 451       throw new core.ArgumentError("Parameter sql_1 is required."); | 
| 449     } | 452     } | 
| 450     _queryParams["sql"] = [sql_1]; | 453     _queryParams["sql"] = [sql_1]; | 
| 451     if (hdrs != null) { | 454     if (hdrs != null) { | 
| 452       _queryParams["hdrs"] = ["${hdrs}"]; | 455       _queryParams["hdrs"] = ["${hdrs}"]; | 
| 453     } | 456     } | 
| 454     if (typed != null) { | 457     if (typed != null) { | 
| 455       _queryParams["typed"] = ["${typed}"]; | 458       _queryParams["typed"] = ["${typed}"]; | 
| 456     } | 459     } | 
| 457 | 460 | 
| 458     _downloadOptions = downloadOptions; | 461     _downloadOptions = downloadOptions; | 
| 459 | 462 | 
| 460     _url = 'query'; | 463     _url = 'query'; | 
| 461 | 464 | 
| 462     var _response = _requester.request(_url, | 465     var _response = _requester.request(_url, | 
| 463                                        "GET", | 466                                        "GET", | 
| 464                                        body: _body, | 467                                        body: _body, | 
| 465                                        queryParams: _queryParams, | 468                                        queryParams: _queryParams, | 
| 466                                        uploadOptions: _uploadOptions, | 469                                        uploadOptions: _uploadOptions, | 
| 467                                        uploadMedia: _uploadMedia, | 470                                        uploadMedia: _uploadMedia, | 
| 468                                        downloadOptions: _downloadOptions); | 471                                        downloadOptions: _downloadOptions); | 
| 469     if (_downloadOptions == null || | 472     if (_downloadOptions == null || | 
| 470         _downloadOptions == common.DownloadOptions.Metadata) { | 473         _downloadOptions == commons.DownloadOptions.Metadata) { | 
| 471       return _response.then((data) => new Sqlresponse.fromJson(data)); | 474       return _response.then((data) => new Sqlresponse.fromJson(data)); | 
| 472     } else { | 475     } else { | 
| 473       return _response; | 476       return _response; | 
| 474     } | 477     } | 
| 475   } | 478   } | 
| 476 | 479 | 
| 477 } | 480 } | 
| 478 | 481 | 
| 479 | 482 | 
| 480 /** Not documented yet. */ |  | 
| 481 class StyleResourceApi { | 483 class StyleResourceApi { | 
| 482   final common_internal.ApiRequester _requester; | 484   final commons.ApiRequester _requester; | 
| 483 | 485 | 
| 484   StyleResourceApi(common_internal.ApiRequester client) : | 486   StyleResourceApi(commons.ApiRequester client) : | 
| 485       _requester = client; | 487       _requester = client; | 
| 486 | 488 | 
| 487   /** | 489   /** | 
| 488    * Deletes a style. | 490    * Deletes a style. | 
| 489    * | 491    * | 
| 490    * Request parameters: | 492    * Request parameters: | 
| 491    * | 493    * | 
| 492    * [tableId] - Table from which the style is being deleted | 494    * [tableId] - Table from which the style is being deleted | 
| 493    * | 495    * | 
| 494    * [styleId] - Identifier (within a table) for the style being deleted | 496    * [styleId] - Identifier (within a table) for the style being deleted | 
| 495    * | 497    * | 
| 496    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 498    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 497    * error. | 499    * error. | 
| 498    * | 500    * | 
| 499    * If the used [http.Client] completes with an error when making a REST call, | 501    * If the used [http.Client] completes with an error when making a REST call, | 
| 500    * this method  will complete with the same error. | 502    * this method  will complete with the same error. | 
| 501    */ | 503    */ | 
| 502   async.Future delete(core.String tableId, core.int styleId) { | 504   async.Future delete(core.String tableId, core.int styleId) { | 
| 503     var _url = null; | 505     var _url = null; | 
| 504     var _queryParams = new core.Map(); | 506     var _queryParams = new core.Map(); | 
| 505     var _uploadMedia = null; | 507     var _uploadMedia = null; | 
| 506     var _uploadOptions = null; | 508     var _uploadOptions = null; | 
| 507     var _downloadOptions = common.DownloadOptions.Metadata; | 509     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 508     var _body = null; | 510     var _body = null; | 
| 509 | 511 | 
| 510     if (tableId == null) { | 512     if (tableId == null) { | 
| 511       throw new core.ArgumentError("Parameter tableId is required."); | 513       throw new core.ArgumentError("Parameter tableId is required."); | 
| 512     } | 514     } | 
| 513     if (styleId == null) { | 515     if (styleId == null) { | 
| 514       throw new core.ArgumentError("Parameter styleId is required."); | 516       throw new core.ArgumentError("Parameter styleId is required."); | 
| 515     } | 517     } | 
| 516 | 518 | 
| 517     _downloadOptions = null; | 519     _downloadOptions = null; | 
| 518 | 520 | 
| 519     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/sty
      les/' + common_internal.Escaper.ecapeVariable('$styleId'); | 521     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles/' + 
      commons.Escaper.ecapeVariable('$styleId'); | 
| 520 | 522 | 
| 521     var _response = _requester.request(_url, | 523     var _response = _requester.request(_url, | 
| 522                                        "DELETE", | 524                                        "DELETE", | 
| 523                                        body: _body, | 525                                        body: _body, | 
| 524                                        queryParams: _queryParams, | 526                                        queryParams: _queryParams, | 
| 525                                        uploadOptions: _uploadOptions, | 527                                        uploadOptions: _uploadOptions, | 
| 526                                        uploadMedia: _uploadMedia, | 528                                        uploadMedia: _uploadMedia, | 
| 527                                        downloadOptions: _downloadOptions); | 529                                        downloadOptions: _downloadOptions); | 
| 528     return _response.then((data) => null); | 530     return _response.then((data) => null); | 
| 529   } | 531   } | 
| 530 | 532 | 
| 531   /** | 533   /** | 
| 532    * Gets a specific style. | 534    * Gets a specific style. | 
| 533    * | 535    * | 
| 534    * Request parameters: | 536    * Request parameters: | 
| 535    * | 537    * | 
| 536    * [tableId] - Table to which the requested style belongs | 538    * [tableId] - Table to which the requested style belongs | 
| 537    * | 539    * | 
| 538    * [styleId] - Identifier (integer) for a specific style in a table | 540    * [styleId] - Identifier (integer) for a specific style in a table | 
| 539    * | 541    * | 
| 540    * Completes with a [StyleSetting]. | 542    * Completes with a [StyleSetting]. | 
| 541    * | 543    * | 
| 542    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 544    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 543    * error. | 545    * error. | 
| 544    * | 546    * | 
| 545    * If the used [http.Client] completes with an error when making a REST call, | 547    * If the used [http.Client] completes with an error when making a REST call, | 
| 546    * this method  will complete with the same error. | 548    * this method  will complete with the same error. | 
| 547    */ | 549    */ | 
| 548   async.Future<StyleSetting> get(core.String tableId, core.int styleId) { | 550   async.Future<StyleSetting> get(core.String tableId, core.int styleId) { | 
| 549     var _url = null; | 551     var _url = null; | 
| 550     var _queryParams = new core.Map(); | 552     var _queryParams = new core.Map(); | 
| 551     var _uploadMedia = null; | 553     var _uploadMedia = null; | 
| 552     var _uploadOptions = null; | 554     var _uploadOptions = null; | 
| 553     var _downloadOptions = common.DownloadOptions.Metadata; | 555     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 554     var _body = null; | 556     var _body = null; | 
| 555 | 557 | 
| 556     if (tableId == null) { | 558     if (tableId == null) { | 
| 557       throw new core.ArgumentError("Parameter tableId is required."); | 559       throw new core.ArgumentError("Parameter tableId is required."); | 
| 558     } | 560     } | 
| 559     if (styleId == null) { | 561     if (styleId == null) { | 
| 560       throw new core.ArgumentError("Parameter styleId is required."); | 562       throw new core.ArgumentError("Parameter styleId is required."); | 
| 561     } | 563     } | 
| 562 | 564 | 
| 563 | 565 | 
| 564     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/sty
      les/' + common_internal.Escaper.ecapeVariable('$styleId'); | 566     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles/' + 
      commons.Escaper.ecapeVariable('$styleId'); | 
| 565 | 567 | 
| 566     var _response = _requester.request(_url, | 568     var _response = _requester.request(_url, | 
| 567                                        "GET", | 569                                        "GET", | 
| 568                                        body: _body, | 570                                        body: _body, | 
| 569                                        queryParams: _queryParams, | 571                                        queryParams: _queryParams, | 
| 570                                        uploadOptions: _uploadOptions, | 572                                        uploadOptions: _uploadOptions, | 
| 571                                        uploadMedia: _uploadMedia, | 573                                        uploadMedia: _uploadMedia, | 
| 572                                        downloadOptions: _downloadOptions); | 574                                        downloadOptions: _downloadOptions); | 
| 573     return _response.then((data) => new StyleSetting.fromJson(data)); | 575     return _response.then((data) => new StyleSetting.fromJson(data)); | 
| 574   } | 576   } | 
| 575 | 577 | 
| 576   /** | 578   /** | 
| 577    * Adds a new style for the table. | 579    * Adds a new style for the table. | 
| 578    * | 580    * | 
| 579    * [request] - The metadata request object. | 581    * [request] - The metadata request object. | 
| 580    * | 582    * | 
| 581    * Request parameters: | 583    * Request parameters: | 
| 582    * | 584    * | 
| 583    * [tableId] - Table for which a new style is being added | 585    * [tableId] - Table for which a new style is being added | 
| 584    * | 586    * | 
| 585    * Completes with a [StyleSetting]. | 587    * Completes with a [StyleSetting]. | 
| 586    * | 588    * | 
| 587    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 589    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 588    * error. | 590    * error. | 
| 589    * | 591    * | 
| 590    * If the used [http.Client] completes with an error when making a REST call, | 592    * If the used [http.Client] completes with an error when making a REST call, | 
| 591    * this method  will complete with the same error. | 593    * this method  will complete with the same error. | 
| 592    */ | 594    */ | 
| 593   async.Future<StyleSetting> insert(StyleSetting request, core.String tableId) { | 595   async.Future<StyleSetting> insert(StyleSetting request, core.String tableId) { | 
| 594     var _url = null; | 596     var _url = null; | 
| 595     var _queryParams = new core.Map(); | 597     var _queryParams = new core.Map(); | 
| 596     var _uploadMedia = null; | 598     var _uploadMedia = null; | 
| 597     var _uploadOptions = null; | 599     var _uploadOptions = null; | 
| 598     var _downloadOptions = common.DownloadOptions.Metadata; | 600     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 599     var _body = null; | 601     var _body = null; | 
| 600 | 602 | 
| 601     if (request != null) { | 603     if (request != null) { | 
| 602       _body = convert.JSON.encode((request).toJson()); | 604       _body = convert.JSON.encode((request).toJson()); | 
| 603     } | 605     } | 
| 604     if (tableId == null) { | 606     if (tableId == null) { | 
| 605       throw new core.ArgumentError("Parameter tableId is required."); | 607       throw new core.ArgumentError("Parameter tableId is required."); | 
| 606     } | 608     } | 
| 607 | 609 | 
| 608 | 610 | 
| 609     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/sty
      les'; | 611     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles'; | 
| 610 | 612 | 
| 611     var _response = _requester.request(_url, | 613     var _response = _requester.request(_url, | 
| 612                                        "POST", | 614                                        "POST", | 
| 613                                        body: _body, | 615                                        body: _body, | 
| 614                                        queryParams: _queryParams, | 616                                        queryParams: _queryParams, | 
| 615                                        uploadOptions: _uploadOptions, | 617                                        uploadOptions: _uploadOptions, | 
| 616                                        uploadMedia: _uploadMedia, | 618                                        uploadMedia: _uploadMedia, | 
| 617                                        downloadOptions: _downloadOptions); | 619                                        downloadOptions: _downloadOptions); | 
| 618     return _response.then((data) => new StyleSetting.fromJson(data)); | 620     return _response.then((data) => new StyleSetting.fromJson(data)); | 
| 619   } | 621   } | 
| 620 | 622 | 
| 621   /** | 623   /** | 
| 622    * Retrieves a list of styles. | 624    * Retrieves a list of styles. | 
| 623    * | 625    * | 
| 624    * Request parameters: | 626    * Request parameters: | 
| 625    * | 627    * | 
| 626    * [tableId] - Table whose styles are being listed | 628    * [tableId] - Table whose styles are being listed | 
| 627    * | 629    * | 
| 628    * [maxResults] - Maximum number of styles to return. Optional. Default is 5. | 630    * [maxResults] - Maximum number of styles to return. Optional. Default is 5. | 
| 629    * | 631    * | 
| 630    * [pageToken] - Continuation token specifying which result page to return. | 632    * [pageToken] - Continuation token specifying which result page to return. | 
| 631    * Optional. | 633    * Optional. | 
| 632    * | 634    * | 
| 633    * Completes with a [StyleSettingList]. | 635    * Completes with a [StyleSettingList]. | 
| 634    * | 636    * | 
| 635    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 637    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 636    * error. | 638    * error. | 
| 637    * | 639    * | 
| 638    * If the used [http.Client] completes with an error when making a REST call, | 640    * If the used [http.Client] completes with an error when making a REST call, | 
| 639    * this method  will complete with the same error. | 641    * this method  will complete with the same error. | 
| 640    */ | 642    */ | 
| 641   async.Future<StyleSettingList> list(core.String tableId, {core.int maxResults,
       core.String pageToken}) { | 643   async.Future<StyleSettingList> list(core.String tableId, {core.int maxResults,
       core.String pageToken}) { | 
| 642     var _url = null; | 644     var _url = null; | 
| 643     var _queryParams = new core.Map(); | 645     var _queryParams = new core.Map(); | 
| 644     var _uploadMedia = null; | 646     var _uploadMedia = null; | 
| 645     var _uploadOptions = null; | 647     var _uploadOptions = null; | 
| 646     var _downloadOptions = common.DownloadOptions.Metadata; | 648     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 647     var _body = null; | 649     var _body = null; | 
| 648 | 650 | 
| 649     if (tableId == null) { | 651     if (tableId == null) { | 
| 650       throw new core.ArgumentError("Parameter tableId is required."); | 652       throw new core.ArgumentError("Parameter tableId is required."); | 
| 651     } | 653     } | 
| 652     if (maxResults != null) { | 654     if (maxResults != null) { | 
| 653       _queryParams["maxResults"] = ["${maxResults}"]; | 655       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 654     } | 656     } | 
| 655     if (pageToken != null) { | 657     if (pageToken != null) { | 
| 656       _queryParams["pageToken"] = [pageToken]; | 658       _queryParams["pageToken"] = [pageToken]; | 
| 657     } | 659     } | 
| 658 | 660 | 
| 659 | 661 | 
| 660     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/sty
      les'; | 662     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles'; | 
| 661 | 663 | 
| 662     var _response = _requester.request(_url, | 664     var _response = _requester.request(_url, | 
| 663                                        "GET", | 665                                        "GET", | 
| 664                                        body: _body, | 666                                        body: _body, | 
| 665                                        queryParams: _queryParams, | 667                                        queryParams: _queryParams, | 
| 666                                        uploadOptions: _uploadOptions, | 668                                        uploadOptions: _uploadOptions, | 
| 667                                        uploadMedia: _uploadMedia, | 669                                        uploadMedia: _uploadMedia, | 
| 668                                        downloadOptions: _downloadOptions); | 670                                        downloadOptions: _downloadOptions); | 
| 669     return _response.then((data) => new StyleSettingList.fromJson(data)); | 671     return _response.then((data) => new StyleSettingList.fromJson(data)); | 
| 670   } | 672   } | 
| 671 | 673 | 
| 672   /** | 674   /** | 
| 673    * Updates an existing style. This method supports patch semantics. | 675    * Updates an existing style. This method supports patch semantics. | 
| 674    * | 676    * | 
| 675    * [request] - The metadata request object. | 677    * [request] - The metadata request object. | 
| 676    * | 678    * | 
| 677    * Request parameters: | 679    * Request parameters: | 
| 678    * | 680    * | 
| 679    * [tableId] - Table whose style is being updated. | 681    * [tableId] - Table whose style is being updated. | 
| 680    * | 682    * | 
| 681    * [styleId] - Identifier (within a table) for the style being updated. | 683    * [styleId] - Identifier (within a table) for the style being updated. | 
| 682    * | 684    * | 
| 683    * Completes with a [StyleSetting]. | 685    * Completes with a [StyleSetting]. | 
| 684    * | 686    * | 
| 685    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 687    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 686    * error. | 688    * error. | 
| 687    * | 689    * | 
| 688    * If the used [http.Client] completes with an error when making a REST call, | 690    * If the used [http.Client] completes with an error when making a REST call, | 
| 689    * this method  will complete with the same error. | 691    * this method  will complete with the same error. | 
| 690    */ | 692    */ | 
| 691   async.Future<StyleSetting> patch(StyleSetting request, core.String tableId, co
      re.int styleId) { | 693   async.Future<StyleSetting> patch(StyleSetting request, core.String tableId, co
      re.int styleId) { | 
| 692     var _url = null; | 694     var _url = null; | 
| 693     var _queryParams = new core.Map(); | 695     var _queryParams = new core.Map(); | 
| 694     var _uploadMedia = null; | 696     var _uploadMedia = null; | 
| 695     var _uploadOptions = null; | 697     var _uploadOptions = null; | 
| 696     var _downloadOptions = common.DownloadOptions.Metadata; | 698     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 697     var _body = null; | 699     var _body = null; | 
| 698 | 700 | 
| 699     if (request != null) { | 701     if (request != null) { | 
| 700       _body = convert.JSON.encode((request).toJson()); | 702       _body = convert.JSON.encode((request).toJson()); | 
| 701     } | 703     } | 
| 702     if (tableId == null) { | 704     if (tableId == null) { | 
| 703       throw new core.ArgumentError("Parameter tableId is required."); | 705       throw new core.ArgumentError("Parameter tableId is required."); | 
| 704     } | 706     } | 
| 705     if (styleId == null) { | 707     if (styleId == null) { | 
| 706       throw new core.ArgumentError("Parameter styleId is required."); | 708       throw new core.ArgumentError("Parameter styleId is required."); | 
| 707     } | 709     } | 
| 708 | 710 | 
| 709 | 711 | 
| 710     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/sty
      les/' + common_internal.Escaper.ecapeVariable('$styleId'); | 712     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles/' + 
      commons.Escaper.ecapeVariable('$styleId'); | 
| 711 | 713 | 
| 712     var _response = _requester.request(_url, | 714     var _response = _requester.request(_url, | 
| 713                                        "PATCH", | 715                                        "PATCH", | 
| 714                                        body: _body, | 716                                        body: _body, | 
| 715                                        queryParams: _queryParams, | 717                                        queryParams: _queryParams, | 
| 716                                        uploadOptions: _uploadOptions, | 718                                        uploadOptions: _uploadOptions, | 
| 717                                        uploadMedia: _uploadMedia, | 719                                        uploadMedia: _uploadMedia, | 
| 718                                        downloadOptions: _downloadOptions); | 720                                        downloadOptions: _downloadOptions); | 
| 719     return _response.then((data) => new StyleSetting.fromJson(data)); | 721     return _response.then((data) => new StyleSetting.fromJson(data)); | 
| 720   } | 722   } | 
| 721 | 723 | 
| 722   /** | 724   /** | 
| 723    * Updates an existing style. | 725    * Updates an existing style. | 
| 724    * | 726    * | 
| 725    * [request] - The metadata request object. | 727    * [request] - The metadata request object. | 
| 726    * | 728    * | 
| 727    * Request parameters: | 729    * Request parameters: | 
| 728    * | 730    * | 
| 729    * [tableId] - Table whose style is being updated. | 731    * [tableId] - Table whose style is being updated. | 
| 730    * | 732    * | 
| 731    * [styleId] - Identifier (within a table) for the style being updated. | 733    * [styleId] - Identifier (within a table) for the style being updated. | 
| 732    * | 734    * | 
| 733    * Completes with a [StyleSetting]. | 735    * Completes with a [StyleSetting]. | 
| 734    * | 736    * | 
| 735    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 737    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 736    * error. | 738    * error. | 
| 737    * | 739    * | 
| 738    * If the used [http.Client] completes with an error when making a REST call, | 740    * If the used [http.Client] completes with an error when making a REST call, | 
| 739    * this method  will complete with the same error. | 741    * this method  will complete with the same error. | 
| 740    */ | 742    */ | 
| 741   async.Future<StyleSetting> update(StyleSetting request, core.String tableId, c
      ore.int styleId) { | 743   async.Future<StyleSetting> update(StyleSetting request, core.String tableId, c
      ore.int styleId) { | 
| 742     var _url = null; | 744     var _url = null; | 
| 743     var _queryParams = new core.Map(); | 745     var _queryParams = new core.Map(); | 
| 744     var _uploadMedia = null; | 746     var _uploadMedia = null; | 
| 745     var _uploadOptions = null; | 747     var _uploadOptions = null; | 
| 746     var _downloadOptions = common.DownloadOptions.Metadata; | 748     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 747     var _body = null; | 749     var _body = null; | 
| 748 | 750 | 
| 749     if (request != null) { | 751     if (request != null) { | 
| 750       _body = convert.JSON.encode((request).toJson()); | 752       _body = convert.JSON.encode((request).toJson()); | 
| 751     } | 753     } | 
| 752     if (tableId == null) { | 754     if (tableId == null) { | 
| 753       throw new core.ArgumentError("Parameter tableId is required."); | 755       throw new core.ArgumentError("Parameter tableId is required."); | 
| 754     } | 756     } | 
| 755     if (styleId == null) { | 757     if (styleId == null) { | 
| 756       throw new core.ArgumentError("Parameter styleId is required."); | 758       throw new core.ArgumentError("Parameter styleId is required."); | 
| 757     } | 759     } | 
| 758 | 760 | 
| 759 | 761 | 
| 760     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/sty
      les/' + common_internal.Escaper.ecapeVariable('$styleId'); | 762     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles/' + 
      commons.Escaper.ecapeVariable('$styleId'); | 
| 761 | 763 | 
| 762     var _response = _requester.request(_url, | 764     var _response = _requester.request(_url, | 
| 763                                        "PUT", | 765                                        "PUT", | 
| 764                                        body: _body, | 766                                        body: _body, | 
| 765                                        queryParams: _queryParams, | 767                                        queryParams: _queryParams, | 
| 766                                        uploadOptions: _uploadOptions, | 768                                        uploadOptions: _uploadOptions, | 
| 767                                        uploadMedia: _uploadMedia, | 769                                        uploadMedia: _uploadMedia, | 
| 768                                        downloadOptions: _downloadOptions); | 770                                        downloadOptions: _downloadOptions); | 
| 769     return _response.then((data) => new StyleSetting.fromJson(data)); | 771     return _response.then((data) => new StyleSetting.fromJson(data)); | 
| 770   } | 772   } | 
| 771 | 773 | 
| 772 } | 774 } | 
| 773 | 775 | 
| 774 | 776 | 
| 775 /** Not documented yet. */ |  | 
| 776 class TableResourceApi { | 777 class TableResourceApi { | 
| 777   final common_internal.ApiRequester _requester; | 778   final commons.ApiRequester _requester; | 
| 778 | 779 | 
| 779   TableResourceApi(common_internal.ApiRequester client) : | 780   TableResourceApi(commons.ApiRequester client) : | 
| 780       _requester = client; | 781       _requester = client; | 
| 781 | 782 | 
| 782   /** | 783   /** | 
| 783    * Copies a table. | 784    * Copies a table. | 
| 784    * | 785    * | 
| 785    * Request parameters: | 786    * Request parameters: | 
| 786    * | 787    * | 
| 787    * [tableId] - ID of the table that is being copied. | 788    * [tableId] - ID of the table that is being copied. | 
| 788    * | 789    * | 
| 789    * [copyPresentation] - Whether to also copy tabs, styles, and templates. | 790    * [copyPresentation] - Whether to also copy tabs, styles, and templates. | 
| 790    * Default is false. | 791    * Default is false. | 
| 791    * | 792    * | 
| 792    * Completes with a [Table]. | 793    * Completes with a [Table]. | 
| 793    * | 794    * | 
| 794    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 795    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 795    * error. | 796    * error. | 
| 796    * | 797    * | 
| 797    * If the used [http.Client] completes with an error when making a REST call, | 798    * If the used [http.Client] completes with an error when making a REST call, | 
| 798    * this method  will complete with the same error. | 799    * this method  will complete with the same error. | 
| 799    */ | 800    */ | 
| 800   async.Future<Table> copy(core.String tableId, {core.bool copyPresentation}) { | 801   async.Future<Table> copy(core.String tableId, {core.bool copyPresentation}) { | 
| 801     var _url = null; | 802     var _url = null; | 
| 802     var _queryParams = new core.Map(); | 803     var _queryParams = new core.Map(); | 
| 803     var _uploadMedia = null; | 804     var _uploadMedia = null; | 
| 804     var _uploadOptions = null; | 805     var _uploadOptions = null; | 
| 805     var _downloadOptions = common.DownloadOptions.Metadata; | 806     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 806     var _body = null; | 807     var _body = null; | 
| 807 | 808 | 
| 808     if (tableId == null) { | 809     if (tableId == null) { | 
| 809       throw new core.ArgumentError("Parameter tableId is required."); | 810       throw new core.ArgumentError("Parameter tableId is required."); | 
| 810     } | 811     } | 
| 811     if (copyPresentation != null) { | 812     if (copyPresentation != null) { | 
| 812       _queryParams["copyPresentation"] = ["${copyPresentation}"]; | 813       _queryParams["copyPresentation"] = ["${copyPresentation}"]; | 
| 813     } | 814     } | 
| 814 | 815 | 
| 815 | 816 | 
| 816     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/cop
      y'; | 817     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/copy'; | 
| 817 | 818 | 
| 818     var _response = _requester.request(_url, | 819     var _response = _requester.request(_url, | 
| 819                                        "POST", | 820                                        "POST", | 
| 820                                        body: _body, | 821                                        body: _body, | 
| 821                                        queryParams: _queryParams, | 822                                        queryParams: _queryParams, | 
| 822                                        uploadOptions: _uploadOptions, | 823                                        uploadOptions: _uploadOptions, | 
| 823                                        uploadMedia: _uploadMedia, | 824                                        uploadMedia: _uploadMedia, | 
| 824                                        downloadOptions: _downloadOptions); | 825                                        downloadOptions: _downloadOptions); | 
| 825     return _response.then((data) => new Table.fromJson(data)); | 826     return _response.then((data) => new Table.fromJson(data)); | 
| 826   } | 827   } | 
| 827 | 828 | 
| 828   /** | 829   /** | 
| 829    * Deletes a table. | 830    * Deletes a table. | 
| 830    * | 831    * | 
| 831    * Request parameters: | 832    * Request parameters: | 
| 832    * | 833    * | 
| 833    * [tableId] - ID of the table that is being deleted. | 834    * [tableId] - ID of the table that is being deleted. | 
| 834    * | 835    * | 
| 835    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 836    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 836    * error. | 837    * error. | 
| 837    * | 838    * | 
| 838    * If the used [http.Client] completes with an error when making a REST call, | 839    * If the used [http.Client] completes with an error when making a REST call, | 
| 839    * this method  will complete with the same error. | 840    * this method  will complete with the same error. | 
| 840    */ | 841    */ | 
| 841   async.Future delete(core.String tableId) { | 842   async.Future delete(core.String tableId) { | 
| 842     var _url = null; | 843     var _url = null; | 
| 843     var _queryParams = new core.Map(); | 844     var _queryParams = new core.Map(); | 
| 844     var _uploadMedia = null; | 845     var _uploadMedia = null; | 
| 845     var _uploadOptions = null; | 846     var _uploadOptions = null; | 
| 846     var _downloadOptions = common.DownloadOptions.Metadata; | 847     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 847     var _body = null; | 848     var _body = null; | 
| 848 | 849 | 
| 849     if (tableId == null) { | 850     if (tableId == null) { | 
| 850       throw new core.ArgumentError("Parameter tableId is required."); | 851       throw new core.ArgumentError("Parameter tableId is required."); | 
| 851     } | 852     } | 
| 852 | 853 | 
| 853     _downloadOptions = null; | 854     _downloadOptions = null; | 
| 854 | 855 | 
| 855     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId'); | 856     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId'); | 
| 856 | 857 | 
| 857     var _response = _requester.request(_url, | 858     var _response = _requester.request(_url, | 
| 858                                        "DELETE", | 859                                        "DELETE", | 
| 859                                        body: _body, | 860                                        body: _body, | 
| 860                                        queryParams: _queryParams, | 861                                        queryParams: _queryParams, | 
| 861                                        uploadOptions: _uploadOptions, | 862                                        uploadOptions: _uploadOptions, | 
| 862                                        uploadMedia: _uploadMedia, | 863                                        uploadMedia: _uploadMedia, | 
| 863                                        downloadOptions: _downloadOptions); | 864                                        downloadOptions: _downloadOptions); | 
| 864     return _response.then((data) => null); | 865     return _response.then((data) => null); | 
| 865   } | 866   } | 
| 866 | 867 | 
| 867   /** | 868   /** | 
| 868    * Retrieves a specific table by its id. | 869    * Retrieves a specific table by its id. | 
| 869    * | 870    * | 
| 870    * Request parameters: | 871    * Request parameters: | 
| 871    * | 872    * | 
| 872    * [tableId] - Identifier(ID) for the table being requested. | 873    * [tableId] - Identifier(ID) for the table being requested. | 
| 873    * | 874    * | 
| 874    * Completes with a [Table]. | 875    * Completes with a [Table]. | 
| 875    * | 876    * | 
| 876    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 877    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 877    * error. | 878    * error. | 
| 878    * | 879    * | 
| 879    * If the used [http.Client] completes with an error when making a REST call, | 880    * If the used [http.Client] completes with an error when making a REST call, | 
| 880    * this method  will complete with the same error. | 881    * this method  will complete with the same error. | 
| 881    */ | 882    */ | 
| 882   async.Future<Table> get(core.String tableId) { | 883   async.Future<Table> get(core.String tableId) { | 
| 883     var _url = null; | 884     var _url = null; | 
| 884     var _queryParams = new core.Map(); | 885     var _queryParams = new core.Map(); | 
| 885     var _uploadMedia = null; | 886     var _uploadMedia = null; | 
| 886     var _uploadOptions = null; | 887     var _uploadOptions = null; | 
| 887     var _downloadOptions = common.DownloadOptions.Metadata; | 888     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 888     var _body = null; | 889     var _body = null; | 
| 889 | 890 | 
| 890     if (tableId == null) { | 891     if (tableId == null) { | 
| 891       throw new core.ArgumentError("Parameter tableId is required."); | 892       throw new core.ArgumentError("Parameter tableId is required."); | 
| 892     } | 893     } | 
| 893 | 894 | 
| 894 | 895 | 
| 895     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId'); | 896     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId'); | 
| 896 | 897 | 
| 897     var _response = _requester.request(_url, | 898     var _response = _requester.request(_url, | 
| 898                                        "GET", | 899                                        "GET", | 
| 899                                        body: _body, | 900                                        body: _body, | 
| 900                                        queryParams: _queryParams, | 901                                        queryParams: _queryParams, | 
| 901                                        uploadOptions: _uploadOptions, | 902                                        uploadOptions: _uploadOptions, | 
| 902                                        uploadMedia: _uploadMedia, | 903                                        uploadMedia: _uploadMedia, | 
| 903                                        downloadOptions: _downloadOptions); | 904                                        downloadOptions: _downloadOptions); | 
| 904     return _response.then((data) => new Table.fromJson(data)); | 905     return _response.then((data) => new Table.fromJson(data)); | 
| 905   } | 906   } | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 933    * [startLine] - The index of the first line from which to start importing, | 934    * [startLine] - The index of the first line from which to start importing, | 
| 934    * inclusive. Default is 0. | 935    * inclusive. Default is 0. | 
| 935    * | 936    * | 
| 936    * [uploadMedia] - The media to upload. | 937    * [uploadMedia] - The media to upload. | 
| 937    * | 938    * | 
| 938    * [uploadOptions] - Options for the media upload. Streaming Media without the | 939    * [uploadOptions] - Options for the media upload. Streaming Media without the | 
| 939    * length being known ahead of time is only supported via resumable uploads. | 940    * length being known ahead of time is only supported via resumable uploads. | 
| 940    * | 941    * | 
| 941    * Completes with a [Import]. | 942    * Completes with a [Import]. | 
| 942    * | 943    * | 
| 943    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 944    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 944    * error. | 945    * error. | 
| 945    * | 946    * | 
| 946    * If the used [http.Client] completes with an error when making a REST call, | 947    * If the used [http.Client] completes with an error when making a REST call, | 
| 947    * this method  will complete with the same error. | 948    * this method  will complete with the same error. | 
| 948    */ | 949    */ | 
| 949   async.Future<Import> importRows(core.String tableId, {core.String delimiter, c
      ore.String encoding, core.int endLine, core.bool isStrict, core.int startLine, c
      ommon.UploadOptions uploadOptions : common.UploadOptions.Default, common.Media u
      ploadMedia}) { | 950   async.Future<Import> importRows(core.String tableId, {core.String delimiter, c
      ore.String encoding, core.int endLine, core.bool isStrict, core.int startLine, c
      ommons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Medi
      a uploadMedia}) { | 
| 950     var _url = null; | 951     var _url = null; | 
| 951     var _queryParams = new core.Map(); | 952     var _queryParams = new core.Map(); | 
| 952     var _uploadMedia = null; | 953     var _uploadMedia = null; | 
| 953     var _uploadOptions = null; | 954     var _uploadOptions = null; | 
| 954     var _downloadOptions = common.DownloadOptions.Metadata; | 955     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 955     var _body = null; | 956     var _body = null; | 
| 956 | 957 | 
| 957     if (tableId == null) { | 958     if (tableId == null) { | 
| 958       throw new core.ArgumentError("Parameter tableId is required."); | 959       throw new core.ArgumentError("Parameter tableId is required."); | 
| 959     } | 960     } | 
| 960     if (delimiter != null) { | 961     if (delimiter != null) { | 
| 961       _queryParams["delimiter"] = [delimiter]; | 962       _queryParams["delimiter"] = [delimiter]; | 
| 962     } | 963     } | 
| 963     if (encoding != null) { | 964     if (encoding != null) { | 
| 964       _queryParams["encoding"] = [encoding]; | 965       _queryParams["encoding"] = [encoding]; | 
| 965     } | 966     } | 
| 966     if (endLine != null) { | 967     if (endLine != null) { | 
| 967       _queryParams["endLine"] = ["${endLine}"]; | 968       _queryParams["endLine"] = ["${endLine}"]; | 
| 968     } | 969     } | 
| 969     if (isStrict != null) { | 970     if (isStrict != null) { | 
| 970       _queryParams["isStrict"] = ["${isStrict}"]; | 971       _queryParams["isStrict"] = ["${isStrict}"]; | 
| 971     } | 972     } | 
| 972     if (startLine != null) { | 973     if (startLine != null) { | 
| 973       _queryParams["startLine"] = ["${startLine}"]; | 974       _queryParams["startLine"] = ["${startLine}"]; | 
| 974     } | 975     } | 
| 975 | 976 | 
| 976     _uploadMedia =  uploadMedia; | 977     _uploadMedia =  uploadMedia; | 
| 977     _uploadOptions =  uploadOptions; | 978     _uploadOptions =  uploadOptions; | 
| 978 | 979 | 
| 979     if (_uploadMedia == null) { | 980     if (_uploadMedia == null) { | 
| 980       _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/i
      mport'; | 981       _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/import'; | 
| 981     } else if (_uploadOptions is common.ResumableUploadOptions) { | 982     } else if (_uploadOptions is commons.ResumableUploadOptions) { | 
| 982       _url = '/resumable/upload/fusiontables/v1/tables/' + common_internal.Escap
      er.ecapeVariable('$tableId') + '/import'; | 983       _url = '/resumable/upload/fusiontables/v1/tables/' + commons.Escaper.ecape
      Variable('$tableId') + '/import'; | 
| 983     } else { | 984     } else { | 
| 984       _url = '/upload/fusiontables/v1/tables/' + common_internal.Escaper.ecapeVa
      riable('$tableId') + '/import'; | 985       _url = '/upload/fusiontables/v1/tables/' + commons.Escaper.ecapeVariable('
      $tableId') + '/import'; | 
| 985     } | 986     } | 
| 986 | 987 | 
| 987 | 988 | 
| 988     var _response = _requester.request(_url, | 989     var _response = _requester.request(_url, | 
| 989                                        "POST", | 990                                        "POST", | 
| 990                                        body: _body, | 991                                        body: _body, | 
| 991                                        queryParams: _queryParams, | 992                                        queryParams: _queryParams, | 
| 992                                        uploadOptions: _uploadOptions, | 993                                        uploadOptions: _uploadOptions, | 
| 993                                        uploadMedia: _uploadMedia, | 994                                        uploadMedia: _uploadMedia, | 
| 994                                        downloadOptions: _downloadOptions); | 995                                        downloadOptions: _downloadOptions); | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 1008    * [encoding] - The encoding of the content. Default is UTF-8. Use | 1009    * [encoding] - The encoding of the content. Default is UTF-8. Use | 
| 1009    * 'auto-detect' if you are unsure of the encoding. | 1010    * 'auto-detect' if you are unsure of the encoding. | 
| 1010    * | 1011    * | 
| 1011    * [uploadMedia] - The media to upload. | 1012    * [uploadMedia] - The media to upload. | 
| 1012    * | 1013    * | 
| 1013    * [uploadOptions] - Options for the media upload. Streaming Media without the | 1014    * [uploadOptions] - Options for the media upload. Streaming Media without the | 
| 1014    * length being known ahead of time is only supported via resumable uploads. | 1015    * length being known ahead of time is only supported via resumable uploads. | 
| 1015    * | 1016    * | 
| 1016    * Completes with a [Table]. | 1017    * Completes with a [Table]. | 
| 1017    * | 1018    * | 
| 1018    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1019    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1019    * error. | 1020    * error. | 
| 1020    * | 1021    * | 
| 1021    * If the used [http.Client] completes with an error when making a REST call, | 1022    * If the used [http.Client] completes with an error when making a REST call, | 
| 1022    * this method  will complete with the same error. | 1023    * this method  will complete with the same error. | 
| 1023    */ | 1024    */ | 
| 1024   async.Future<Table> importTable(core.String name, {core.String delimiter, core
      .String encoding, common.UploadOptions uploadOptions : common.UploadOptions.Defa
      ult, common.Media uploadMedia}) { | 1025   async.Future<Table> importTable(core.String name, {core.String delimiter, core
      .String encoding, commons.UploadOptions uploadOptions : commons.UploadOptions.De
      fault, commons.Media uploadMedia}) { | 
| 1025     var _url = null; | 1026     var _url = null; | 
| 1026     var _queryParams = new core.Map(); | 1027     var _queryParams = new core.Map(); | 
| 1027     var _uploadMedia = null; | 1028     var _uploadMedia = null; | 
| 1028     var _uploadOptions = null; | 1029     var _uploadOptions = null; | 
| 1029     var _downloadOptions = common.DownloadOptions.Metadata; | 1030     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1030     var _body = null; | 1031     var _body = null; | 
| 1031 | 1032 | 
| 1032     if (name == null) { | 1033     if (name == null) { | 
| 1033       throw new core.ArgumentError("Parameter name is required."); | 1034       throw new core.ArgumentError("Parameter name is required."); | 
| 1034     } | 1035     } | 
| 1035     _queryParams["name"] = [name]; | 1036     _queryParams["name"] = [name]; | 
| 1036     if (delimiter != null) { | 1037     if (delimiter != null) { | 
| 1037       _queryParams["delimiter"] = [delimiter]; | 1038       _queryParams["delimiter"] = [delimiter]; | 
| 1038     } | 1039     } | 
| 1039     if (encoding != null) { | 1040     if (encoding != null) { | 
| 1040       _queryParams["encoding"] = [encoding]; | 1041       _queryParams["encoding"] = [encoding]; | 
| 1041     } | 1042     } | 
| 1042 | 1043 | 
| 1043     _uploadMedia =  uploadMedia; | 1044     _uploadMedia =  uploadMedia; | 
| 1044     _uploadOptions =  uploadOptions; | 1045     _uploadOptions =  uploadOptions; | 
| 1045 | 1046 | 
| 1046     if (_uploadMedia == null) { | 1047     if (_uploadMedia == null) { | 
| 1047       _url = 'tables/import'; | 1048       _url = 'tables/import'; | 
| 1048     } else if (_uploadOptions is common.ResumableUploadOptions) { | 1049     } else if (_uploadOptions is commons.ResumableUploadOptions) { | 
| 1049       _url = '/resumable/upload/fusiontables/v1/tables/import'; | 1050       _url = '/resumable/upload/fusiontables/v1/tables/import'; | 
| 1050     } else { | 1051     } else { | 
| 1051       _url = '/upload/fusiontables/v1/tables/import'; | 1052       _url = '/upload/fusiontables/v1/tables/import'; | 
| 1052     } | 1053     } | 
| 1053 | 1054 | 
| 1054 | 1055 | 
| 1055     var _response = _requester.request(_url, | 1056     var _response = _requester.request(_url, | 
| 1056                                        "POST", | 1057                                        "POST", | 
| 1057                                        body: _body, | 1058                                        body: _body, | 
| 1058                                        queryParams: _queryParams, | 1059                                        queryParams: _queryParams, | 
| 1059                                        uploadOptions: _uploadOptions, | 1060                                        uploadOptions: _uploadOptions, | 
| 1060                                        uploadMedia: _uploadMedia, | 1061                                        uploadMedia: _uploadMedia, | 
| 1061                                        downloadOptions: _downloadOptions); | 1062                                        downloadOptions: _downloadOptions); | 
| 1062     return _response.then((data) => new Table.fromJson(data)); | 1063     return _response.then((data) => new Table.fromJson(data)); | 
| 1063   } | 1064   } | 
| 1064 | 1065 | 
| 1065   /** | 1066   /** | 
| 1066    * Creates a new table. | 1067    * Creates a new table. | 
| 1067    * | 1068    * | 
| 1068    * [request] - The metadata request object. | 1069    * [request] - The metadata request object. | 
| 1069    * | 1070    * | 
| 1070    * Request parameters: | 1071    * Request parameters: | 
| 1071    * | 1072    * | 
| 1072    * Completes with a [Table]. | 1073    * Completes with a [Table]. | 
| 1073    * | 1074    * | 
| 1074    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1075    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1075    * error. | 1076    * error. | 
| 1076    * | 1077    * | 
| 1077    * If the used [http.Client] completes with an error when making a REST call, | 1078    * If the used [http.Client] completes with an error when making a REST call, | 
| 1078    * this method  will complete with the same error. | 1079    * this method  will complete with the same error. | 
| 1079    */ | 1080    */ | 
| 1080   async.Future<Table> insert(Table request) { | 1081   async.Future<Table> insert(Table request) { | 
| 1081     var _url = null; | 1082     var _url = null; | 
| 1082     var _queryParams = new core.Map(); | 1083     var _queryParams = new core.Map(); | 
| 1083     var _uploadMedia = null; | 1084     var _uploadMedia = null; | 
| 1084     var _uploadOptions = null; | 1085     var _uploadOptions = null; | 
| 1085     var _downloadOptions = common.DownloadOptions.Metadata; | 1086     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1086     var _body = null; | 1087     var _body = null; | 
| 1087 | 1088 | 
| 1088     if (request != null) { | 1089     if (request != null) { | 
| 1089       _body = convert.JSON.encode((request).toJson()); | 1090       _body = convert.JSON.encode((request).toJson()); | 
| 1090     } | 1091     } | 
| 1091 | 1092 | 
| 1092 | 1093 | 
| 1093     _url = 'tables'; | 1094     _url = 'tables'; | 
| 1094 | 1095 | 
| 1095     var _response = _requester.request(_url, | 1096     var _response = _requester.request(_url, | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 1107    * | 1108    * | 
| 1108    * Request parameters: | 1109    * Request parameters: | 
| 1109    * | 1110    * | 
| 1110    * [maxResults] - Maximum number of styles to return. Optional. Default is 5. | 1111    * [maxResults] - Maximum number of styles to return. Optional. Default is 5. | 
| 1111    * | 1112    * | 
| 1112    * [pageToken] - Continuation token specifying which result page to return. | 1113    * [pageToken] - Continuation token specifying which result page to return. | 
| 1113    * Optional. | 1114    * Optional. | 
| 1114    * | 1115    * | 
| 1115    * Completes with a [TableList]. | 1116    * Completes with a [TableList]. | 
| 1116    * | 1117    * | 
| 1117    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1118    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1118    * error. | 1119    * error. | 
| 1119    * | 1120    * | 
| 1120    * If the used [http.Client] completes with an error when making a REST call, | 1121    * If the used [http.Client] completes with an error when making a REST call, | 
| 1121    * this method  will complete with the same error. | 1122    * this method  will complete with the same error. | 
| 1122    */ | 1123    */ | 
| 1123   async.Future<TableList> list({core.int maxResults, core.String pageToken}) { | 1124   async.Future<TableList> list({core.int maxResults, core.String pageToken}) { | 
| 1124     var _url = null; | 1125     var _url = null; | 
| 1125     var _queryParams = new core.Map(); | 1126     var _queryParams = new core.Map(); | 
| 1126     var _uploadMedia = null; | 1127     var _uploadMedia = null; | 
| 1127     var _uploadOptions = null; | 1128     var _uploadOptions = null; | 
| 1128     var _downloadOptions = common.DownloadOptions.Metadata; | 1129     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1129     var _body = null; | 1130     var _body = null; | 
| 1130 | 1131 | 
| 1131     if (maxResults != null) { | 1132     if (maxResults != null) { | 
| 1132       _queryParams["maxResults"] = ["${maxResults}"]; | 1133       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 1133     } | 1134     } | 
| 1134     if (pageToken != null) { | 1135     if (pageToken != null) { | 
| 1135       _queryParams["pageToken"] = [pageToken]; | 1136       _queryParams["pageToken"] = [pageToken]; | 
| 1136     } | 1137     } | 
| 1137 | 1138 | 
| 1138 | 1139 | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 1158    * Request parameters: | 1159    * Request parameters: | 
| 1159    * | 1160    * | 
| 1160    * [tableId] - ID of the table that is being updated. | 1161    * [tableId] - ID of the table that is being updated. | 
| 1161    * | 1162    * | 
| 1162    * [replaceViewDefinition] - Should the view definition also be updated? The | 1163    * [replaceViewDefinition] - Should the view definition also be updated? The | 
| 1163    * specified view definition replaces the existing one. Only a view can be | 1164    * specified view definition replaces the existing one. Only a view can be | 
| 1164    * updated with a new definition. | 1165    * updated with a new definition. | 
| 1165    * | 1166    * | 
| 1166    * Completes with a [Table]. | 1167    * Completes with a [Table]. | 
| 1167    * | 1168    * | 
| 1168    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1169    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1169    * error. | 1170    * error. | 
| 1170    * | 1171    * | 
| 1171    * If the used [http.Client] completes with an error when making a REST call, | 1172    * If the used [http.Client] completes with an error when making a REST call, | 
| 1172    * this method  will complete with the same error. | 1173    * this method  will complete with the same error. | 
| 1173    */ | 1174    */ | 
| 1174   async.Future<Table> patch(Table request, core.String tableId, {core.bool repla
      ceViewDefinition}) { | 1175   async.Future<Table> patch(Table request, core.String tableId, {core.bool repla
      ceViewDefinition}) { | 
| 1175     var _url = null; | 1176     var _url = null; | 
| 1176     var _queryParams = new core.Map(); | 1177     var _queryParams = new core.Map(); | 
| 1177     var _uploadMedia = null; | 1178     var _uploadMedia = null; | 
| 1178     var _uploadOptions = null; | 1179     var _uploadOptions = null; | 
| 1179     var _downloadOptions = common.DownloadOptions.Metadata; | 1180     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1180     var _body = null; | 1181     var _body = null; | 
| 1181 | 1182 | 
| 1182     if (request != null) { | 1183     if (request != null) { | 
| 1183       _body = convert.JSON.encode((request).toJson()); | 1184       _body = convert.JSON.encode((request).toJson()); | 
| 1184     } | 1185     } | 
| 1185     if (tableId == null) { | 1186     if (tableId == null) { | 
| 1186       throw new core.ArgumentError("Parameter tableId is required."); | 1187       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1187     } | 1188     } | 
| 1188     if (replaceViewDefinition != null) { | 1189     if (replaceViewDefinition != null) { | 
| 1189       _queryParams["replaceViewDefinition"] = ["${replaceViewDefinition}"]; | 1190       _queryParams["replaceViewDefinition"] = ["${replaceViewDefinition}"]; | 
| 1190     } | 1191     } | 
| 1191 | 1192 | 
| 1192 | 1193 | 
| 1193     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId'); | 1194     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId'); | 
| 1194 | 1195 | 
| 1195     var _response = _requester.request(_url, | 1196     var _response = _requester.request(_url, | 
| 1196                                        "PATCH", | 1197                                        "PATCH", | 
| 1197                                        body: _body, | 1198                                        body: _body, | 
| 1198                                        queryParams: _queryParams, | 1199                                        queryParams: _queryParams, | 
| 1199                                        uploadOptions: _uploadOptions, | 1200                                        uploadOptions: _uploadOptions, | 
| 1200                                        uploadMedia: _uploadMedia, | 1201                                        uploadMedia: _uploadMedia, | 
| 1201                                        downloadOptions: _downloadOptions); | 1202                                        downloadOptions: _downloadOptions); | 
| 1202     return _response.then((data) => new Table.fromJson(data)); | 1203     return _response.then((data) => new Table.fromJson(data)); | 
| 1203   } | 1204   } | 
| 1204 | 1205 | 
| 1205   /** | 1206   /** | 
| 1206    * Updates an existing table. Unless explicitly requested, only the name, | 1207    * Updates an existing table. Unless explicitly requested, only the name, | 
| 1207    * description, and attribution will be updated. | 1208    * description, and attribution will be updated. | 
| 1208    * | 1209    * | 
| 1209    * [request] - The metadata request object. | 1210    * [request] - The metadata request object. | 
| 1210    * | 1211    * | 
| 1211    * Request parameters: | 1212    * Request parameters: | 
| 1212    * | 1213    * | 
| 1213    * [tableId] - ID of the table that is being updated. | 1214    * [tableId] - ID of the table that is being updated. | 
| 1214    * | 1215    * | 
| 1215    * [replaceViewDefinition] - Should the view definition also be updated? The | 1216    * [replaceViewDefinition] - Should the view definition also be updated? The | 
| 1216    * specified view definition replaces the existing one. Only a view can be | 1217    * specified view definition replaces the existing one. Only a view can be | 
| 1217    * updated with a new definition. | 1218    * updated with a new definition. | 
| 1218    * | 1219    * | 
| 1219    * Completes with a [Table]. | 1220    * Completes with a [Table]. | 
| 1220    * | 1221    * | 
| 1221    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1222    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1222    * error. | 1223    * error. | 
| 1223    * | 1224    * | 
| 1224    * If the used [http.Client] completes with an error when making a REST call, | 1225    * If the used [http.Client] completes with an error when making a REST call, | 
| 1225    * this method  will complete with the same error. | 1226    * this method  will complete with the same error. | 
| 1226    */ | 1227    */ | 
| 1227   async.Future<Table> update(Table request, core.String tableId, {core.bool repl
      aceViewDefinition}) { | 1228   async.Future<Table> update(Table request, core.String tableId, {core.bool repl
      aceViewDefinition}) { | 
| 1228     var _url = null; | 1229     var _url = null; | 
| 1229     var _queryParams = new core.Map(); | 1230     var _queryParams = new core.Map(); | 
| 1230     var _uploadMedia = null; | 1231     var _uploadMedia = null; | 
| 1231     var _uploadOptions = null; | 1232     var _uploadOptions = null; | 
| 1232     var _downloadOptions = common.DownloadOptions.Metadata; | 1233     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1233     var _body = null; | 1234     var _body = null; | 
| 1234 | 1235 | 
| 1235     if (request != null) { | 1236     if (request != null) { | 
| 1236       _body = convert.JSON.encode((request).toJson()); | 1237       _body = convert.JSON.encode((request).toJson()); | 
| 1237     } | 1238     } | 
| 1238     if (tableId == null) { | 1239     if (tableId == null) { | 
| 1239       throw new core.ArgumentError("Parameter tableId is required."); | 1240       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1240     } | 1241     } | 
| 1241     if (replaceViewDefinition != null) { | 1242     if (replaceViewDefinition != null) { | 
| 1242       _queryParams["replaceViewDefinition"] = ["${replaceViewDefinition}"]; | 1243       _queryParams["replaceViewDefinition"] = ["${replaceViewDefinition}"]; | 
| 1243     } | 1244     } | 
| 1244 | 1245 | 
| 1245 | 1246 | 
| 1246     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId'); | 1247     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId'); | 
| 1247 | 1248 | 
| 1248     var _response = _requester.request(_url, | 1249     var _response = _requester.request(_url, | 
| 1249                                        "PUT", | 1250                                        "PUT", | 
| 1250                                        body: _body, | 1251                                        body: _body, | 
| 1251                                        queryParams: _queryParams, | 1252                                        queryParams: _queryParams, | 
| 1252                                        uploadOptions: _uploadOptions, | 1253                                        uploadOptions: _uploadOptions, | 
| 1253                                        uploadMedia: _uploadMedia, | 1254                                        uploadMedia: _uploadMedia, | 
| 1254                                        downloadOptions: _downloadOptions); | 1255                                        downloadOptions: _downloadOptions); | 
| 1255     return _response.then((data) => new Table.fromJson(data)); | 1256     return _response.then((data) => new Table.fromJson(data)); | 
| 1256   } | 1257   } | 
| 1257 | 1258 | 
| 1258 } | 1259 } | 
| 1259 | 1260 | 
| 1260 | 1261 | 
| 1261 /** Not documented yet. */ |  | 
| 1262 class TaskResourceApi { | 1262 class TaskResourceApi { | 
| 1263   final common_internal.ApiRequester _requester; | 1263   final commons.ApiRequester _requester; | 
| 1264 | 1264 | 
| 1265   TaskResourceApi(common_internal.ApiRequester client) : | 1265   TaskResourceApi(commons.ApiRequester client) : | 
| 1266       _requester = client; | 1266       _requester = client; | 
| 1267 | 1267 | 
| 1268   /** | 1268   /** | 
| 1269    * Deletes the task, unless already started. | 1269    * Deletes the task, unless already started. | 
| 1270    * | 1270    * | 
| 1271    * Request parameters: | 1271    * Request parameters: | 
| 1272    * | 1272    * | 
| 1273    * [tableId] - Table from which the task is being deleted. | 1273    * [tableId] - Table from which the task is being deleted. | 
| 1274    * | 1274    * | 
| 1275    * [taskId] - null | 1275    * [taskId] - null | 
| 1276    * | 1276    * | 
| 1277    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1277    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1278    * error. | 1278    * error. | 
| 1279    * | 1279    * | 
| 1280    * If the used [http.Client] completes with an error when making a REST call, | 1280    * If the used [http.Client] completes with an error when making a REST call, | 
| 1281    * this method  will complete with the same error. | 1281    * this method  will complete with the same error. | 
| 1282    */ | 1282    */ | 
| 1283   async.Future delete(core.String tableId, core.String taskId) { | 1283   async.Future delete(core.String tableId, core.String taskId) { | 
| 1284     var _url = null; | 1284     var _url = null; | 
| 1285     var _queryParams = new core.Map(); | 1285     var _queryParams = new core.Map(); | 
| 1286     var _uploadMedia = null; | 1286     var _uploadMedia = null; | 
| 1287     var _uploadOptions = null; | 1287     var _uploadOptions = null; | 
| 1288     var _downloadOptions = common.DownloadOptions.Metadata; | 1288     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1289     var _body = null; | 1289     var _body = null; | 
| 1290 | 1290 | 
| 1291     if (tableId == null) { | 1291     if (tableId == null) { | 
| 1292       throw new core.ArgumentError("Parameter tableId is required."); | 1292       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1293     } | 1293     } | 
| 1294     if (taskId == null) { | 1294     if (taskId == null) { | 
| 1295       throw new core.ArgumentError("Parameter taskId is required."); | 1295       throw new core.ArgumentError("Parameter taskId is required."); | 
| 1296     } | 1296     } | 
| 1297 | 1297 | 
| 1298     _downloadOptions = null; | 1298     _downloadOptions = null; | 
| 1299 | 1299 | 
| 1300     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tas
      ks/' + common_internal.Escaper.ecapeVariable('$taskId'); | 1300     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/tasks/' + c
      ommons.Escaper.ecapeVariable('$taskId'); | 
| 1301 | 1301 | 
| 1302     var _response = _requester.request(_url, | 1302     var _response = _requester.request(_url, | 
| 1303                                        "DELETE", | 1303                                        "DELETE", | 
| 1304                                        body: _body, | 1304                                        body: _body, | 
| 1305                                        queryParams: _queryParams, | 1305                                        queryParams: _queryParams, | 
| 1306                                        uploadOptions: _uploadOptions, | 1306                                        uploadOptions: _uploadOptions, | 
| 1307                                        uploadMedia: _uploadMedia, | 1307                                        uploadMedia: _uploadMedia, | 
| 1308                                        downloadOptions: _downloadOptions); | 1308                                        downloadOptions: _downloadOptions); | 
| 1309     return _response.then((data) => null); | 1309     return _response.then((data) => null); | 
| 1310   } | 1310   } | 
| 1311 | 1311 | 
| 1312   /** | 1312   /** | 
| 1313    * Retrieves a specific task by its id. | 1313    * Retrieves a specific task by its id. | 
| 1314    * | 1314    * | 
| 1315    * Request parameters: | 1315    * Request parameters: | 
| 1316    * | 1316    * | 
| 1317    * [tableId] - Table to which the task belongs. | 1317    * [tableId] - Table to which the task belongs. | 
| 1318    * | 1318    * | 
| 1319    * [taskId] - null | 1319    * [taskId] - null | 
| 1320    * | 1320    * | 
| 1321    * Completes with a [Task]. | 1321    * Completes with a [Task]. | 
| 1322    * | 1322    * | 
| 1323    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1323    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1324    * error. | 1324    * error. | 
| 1325    * | 1325    * | 
| 1326    * If the used [http.Client] completes with an error when making a REST call, | 1326    * If the used [http.Client] completes with an error when making a REST call, | 
| 1327    * this method  will complete with the same error. | 1327    * this method  will complete with the same error. | 
| 1328    */ | 1328    */ | 
| 1329   async.Future<Task> get(core.String tableId, core.String taskId) { | 1329   async.Future<Task> get(core.String tableId, core.String taskId) { | 
| 1330     var _url = null; | 1330     var _url = null; | 
| 1331     var _queryParams = new core.Map(); | 1331     var _queryParams = new core.Map(); | 
| 1332     var _uploadMedia = null; | 1332     var _uploadMedia = null; | 
| 1333     var _uploadOptions = null; | 1333     var _uploadOptions = null; | 
| 1334     var _downloadOptions = common.DownloadOptions.Metadata; | 1334     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1335     var _body = null; | 1335     var _body = null; | 
| 1336 | 1336 | 
| 1337     if (tableId == null) { | 1337     if (tableId == null) { | 
| 1338       throw new core.ArgumentError("Parameter tableId is required."); | 1338       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1339     } | 1339     } | 
| 1340     if (taskId == null) { | 1340     if (taskId == null) { | 
| 1341       throw new core.ArgumentError("Parameter taskId is required."); | 1341       throw new core.ArgumentError("Parameter taskId is required."); | 
| 1342     } | 1342     } | 
| 1343 | 1343 | 
| 1344 | 1344 | 
| 1345     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tas
      ks/' + common_internal.Escaper.ecapeVariable('$taskId'); | 1345     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/tasks/' + c
      ommons.Escaper.ecapeVariable('$taskId'); | 
| 1346 | 1346 | 
| 1347     var _response = _requester.request(_url, | 1347     var _response = _requester.request(_url, | 
| 1348                                        "GET", | 1348                                        "GET", | 
| 1349                                        body: _body, | 1349                                        body: _body, | 
| 1350                                        queryParams: _queryParams, | 1350                                        queryParams: _queryParams, | 
| 1351                                        uploadOptions: _uploadOptions, | 1351                                        uploadOptions: _uploadOptions, | 
| 1352                                        uploadMedia: _uploadMedia, | 1352                                        uploadMedia: _uploadMedia, | 
| 1353                                        downloadOptions: _downloadOptions); | 1353                                        downloadOptions: _downloadOptions); | 
| 1354     return _response.then((data) => new Task.fromJson(data)); | 1354     return _response.then((data) => new Task.fromJson(data)); | 
| 1355   } | 1355   } | 
| 1356 | 1356 | 
| 1357   /** | 1357   /** | 
| 1358    * Retrieves a list of tasks. | 1358    * Retrieves a list of tasks. | 
| 1359    * | 1359    * | 
| 1360    * Request parameters: | 1360    * Request parameters: | 
| 1361    * | 1361    * | 
| 1362    * [tableId] - Table whose tasks are being listed. | 1362    * [tableId] - Table whose tasks are being listed. | 
| 1363    * | 1363    * | 
| 1364    * [maxResults] - Maximum number of columns to return. Optional. Default is 5. | 1364    * [maxResults] - Maximum number of columns to return. Optional. Default is 5. | 
| 1365    * | 1365    * | 
| 1366    * [pageToken] - null | 1366    * [pageToken] - null | 
| 1367    * | 1367    * | 
| 1368    * [startIndex] - null | 1368    * [startIndex] - null | 
| 1369    * | 1369    * | 
| 1370    * Completes with a [TaskList]. | 1370    * Completes with a [TaskList]. | 
| 1371    * | 1371    * | 
| 1372    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1372    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1373    * error. | 1373    * error. | 
| 1374    * | 1374    * | 
| 1375    * If the used [http.Client] completes with an error when making a REST call, | 1375    * If the used [http.Client] completes with an error when making a REST call, | 
| 1376    * this method  will complete with the same error. | 1376    * this method  will complete with the same error. | 
| 1377    */ | 1377    */ | 
| 1378   async.Future<TaskList> list(core.String tableId, {core.int maxResults, core.St
      ring pageToken, core.int startIndex}) { | 1378   async.Future<TaskList> list(core.String tableId, {core.int maxResults, core.St
      ring pageToken, core.int startIndex}) { | 
| 1379     var _url = null; | 1379     var _url = null; | 
| 1380     var _queryParams = new core.Map(); | 1380     var _queryParams = new core.Map(); | 
| 1381     var _uploadMedia = null; | 1381     var _uploadMedia = null; | 
| 1382     var _uploadOptions = null; | 1382     var _uploadOptions = null; | 
| 1383     var _downloadOptions = common.DownloadOptions.Metadata; | 1383     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1384     var _body = null; | 1384     var _body = null; | 
| 1385 | 1385 | 
| 1386     if (tableId == null) { | 1386     if (tableId == null) { | 
| 1387       throw new core.ArgumentError("Parameter tableId is required."); | 1387       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1388     } | 1388     } | 
| 1389     if (maxResults != null) { | 1389     if (maxResults != null) { | 
| 1390       _queryParams["maxResults"] = ["${maxResults}"]; | 1390       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 1391     } | 1391     } | 
| 1392     if (pageToken != null) { | 1392     if (pageToken != null) { | 
| 1393       _queryParams["pageToken"] = [pageToken]; | 1393       _queryParams["pageToken"] = [pageToken]; | 
| 1394     } | 1394     } | 
| 1395     if (startIndex != null) { | 1395     if (startIndex != null) { | 
| 1396       _queryParams["startIndex"] = ["${startIndex}"]; | 1396       _queryParams["startIndex"] = ["${startIndex}"]; | 
| 1397     } | 1397     } | 
| 1398 | 1398 | 
| 1399 | 1399 | 
| 1400     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tas
      ks'; | 1400     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/tasks'; | 
| 1401 | 1401 | 
| 1402     var _response = _requester.request(_url, | 1402     var _response = _requester.request(_url, | 
| 1403                                        "GET", | 1403                                        "GET", | 
| 1404                                        body: _body, | 1404                                        body: _body, | 
| 1405                                        queryParams: _queryParams, | 1405                                        queryParams: _queryParams, | 
| 1406                                        uploadOptions: _uploadOptions, | 1406                                        uploadOptions: _uploadOptions, | 
| 1407                                        uploadMedia: _uploadMedia, | 1407                                        uploadMedia: _uploadMedia, | 
| 1408                                        downloadOptions: _downloadOptions); | 1408                                        downloadOptions: _downloadOptions); | 
| 1409     return _response.then((data) => new TaskList.fromJson(data)); | 1409     return _response.then((data) => new TaskList.fromJson(data)); | 
| 1410   } | 1410   } | 
| 1411 | 1411 | 
| 1412 } | 1412 } | 
| 1413 | 1413 | 
| 1414 | 1414 | 
| 1415 /** Not documented yet. */ |  | 
| 1416 class TemplateResourceApi { | 1415 class TemplateResourceApi { | 
| 1417   final common_internal.ApiRequester _requester; | 1416   final commons.ApiRequester _requester; | 
| 1418 | 1417 | 
| 1419   TemplateResourceApi(common_internal.ApiRequester client) : | 1418   TemplateResourceApi(commons.ApiRequester client) : | 
| 1420       _requester = client; | 1419       _requester = client; | 
| 1421 | 1420 | 
| 1422   /** | 1421   /** | 
| 1423    * Deletes a template | 1422    * Deletes a template | 
| 1424    * | 1423    * | 
| 1425    * Request parameters: | 1424    * Request parameters: | 
| 1426    * | 1425    * | 
| 1427    * [tableId] - Table from which the template is being deleted | 1426    * [tableId] - Table from which the template is being deleted | 
| 1428    * | 1427    * | 
| 1429    * [templateId] - Identifier for the template which is being deleted | 1428    * [templateId] - Identifier for the template which is being deleted | 
| 1430    * | 1429    * | 
| 1431    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1430    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1432    * error. | 1431    * error. | 
| 1433    * | 1432    * | 
| 1434    * If the used [http.Client] completes with an error when making a REST call, | 1433    * If the used [http.Client] completes with an error when making a REST call, | 
| 1435    * this method  will complete with the same error. | 1434    * this method  will complete with the same error. | 
| 1436    */ | 1435    */ | 
| 1437   async.Future delete(core.String tableId, core.int templateId) { | 1436   async.Future delete(core.String tableId, core.int templateId) { | 
| 1438     var _url = null; | 1437     var _url = null; | 
| 1439     var _queryParams = new core.Map(); | 1438     var _queryParams = new core.Map(); | 
| 1440     var _uploadMedia = null; | 1439     var _uploadMedia = null; | 
| 1441     var _uploadOptions = null; | 1440     var _uploadOptions = null; | 
| 1442     var _downloadOptions = common.DownloadOptions.Metadata; | 1441     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1443     var _body = null; | 1442     var _body = null; | 
| 1444 | 1443 | 
| 1445     if (tableId == null) { | 1444     if (tableId == null) { | 
| 1446       throw new core.ArgumentError("Parameter tableId is required."); | 1445       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1447     } | 1446     } | 
| 1448     if (templateId == null) { | 1447     if (templateId == null) { | 
| 1449       throw new core.ArgumentError("Parameter templateId is required."); | 1448       throw new core.ArgumentError("Parameter templateId is required."); | 
| 1450     } | 1449     } | 
| 1451 | 1450 | 
| 1452     _downloadOptions = null; | 1451     _downloadOptions = null; | 
| 1453 | 1452 | 
| 1454     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tem
      plates/' + common_internal.Escaper.ecapeVariable('$templateId'); | 1453     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates/'
       + commons.Escaper.ecapeVariable('$templateId'); | 
| 1455 | 1454 | 
| 1456     var _response = _requester.request(_url, | 1455     var _response = _requester.request(_url, | 
| 1457                                        "DELETE", | 1456                                        "DELETE", | 
| 1458                                        body: _body, | 1457                                        body: _body, | 
| 1459                                        queryParams: _queryParams, | 1458                                        queryParams: _queryParams, | 
| 1460                                        uploadOptions: _uploadOptions, | 1459                                        uploadOptions: _uploadOptions, | 
| 1461                                        uploadMedia: _uploadMedia, | 1460                                        uploadMedia: _uploadMedia, | 
| 1462                                        downloadOptions: _downloadOptions); | 1461                                        downloadOptions: _downloadOptions); | 
| 1463     return _response.then((data) => null); | 1462     return _response.then((data) => null); | 
| 1464   } | 1463   } | 
| 1465 | 1464 | 
| 1466   /** | 1465   /** | 
| 1467    * Retrieves a specific template by its id | 1466    * Retrieves a specific template by its id | 
| 1468    * | 1467    * | 
| 1469    * Request parameters: | 1468    * Request parameters: | 
| 1470    * | 1469    * | 
| 1471    * [tableId] - Table to which the template belongs | 1470    * [tableId] - Table to which the template belongs | 
| 1472    * | 1471    * | 
| 1473    * [templateId] - Identifier for the template that is being requested | 1472    * [templateId] - Identifier for the template that is being requested | 
| 1474    * | 1473    * | 
| 1475    * Completes with a [Template]. | 1474    * Completes with a [Template]. | 
| 1476    * | 1475    * | 
| 1477    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1476    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1478    * error. | 1477    * error. | 
| 1479    * | 1478    * | 
| 1480    * If the used [http.Client] completes with an error when making a REST call, | 1479    * If the used [http.Client] completes with an error when making a REST call, | 
| 1481    * this method  will complete with the same error. | 1480    * this method  will complete with the same error. | 
| 1482    */ | 1481    */ | 
| 1483   async.Future<Template> get(core.String tableId, core.int templateId) { | 1482   async.Future<Template> get(core.String tableId, core.int templateId) { | 
| 1484     var _url = null; | 1483     var _url = null; | 
| 1485     var _queryParams = new core.Map(); | 1484     var _queryParams = new core.Map(); | 
| 1486     var _uploadMedia = null; | 1485     var _uploadMedia = null; | 
| 1487     var _uploadOptions = null; | 1486     var _uploadOptions = null; | 
| 1488     var _downloadOptions = common.DownloadOptions.Metadata; | 1487     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1489     var _body = null; | 1488     var _body = null; | 
| 1490 | 1489 | 
| 1491     if (tableId == null) { | 1490     if (tableId == null) { | 
| 1492       throw new core.ArgumentError("Parameter tableId is required."); | 1491       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1493     } | 1492     } | 
| 1494     if (templateId == null) { | 1493     if (templateId == null) { | 
| 1495       throw new core.ArgumentError("Parameter templateId is required."); | 1494       throw new core.ArgumentError("Parameter templateId is required."); | 
| 1496     } | 1495     } | 
| 1497 | 1496 | 
| 1498 | 1497 | 
| 1499     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tem
      plates/' + common_internal.Escaper.ecapeVariable('$templateId'); | 1498     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates/'
       + commons.Escaper.ecapeVariable('$templateId'); | 
| 1500 | 1499 | 
| 1501     var _response = _requester.request(_url, | 1500     var _response = _requester.request(_url, | 
| 1502                                        "GET", | 1501                                        "GET", | 
| 1503                                        body: _body, | 1502                                        body: _body, | 
| 1504                                        queryParams: _queryParams, | 1503                                        queryParams: _queryParams, | 
| 1505                                        uploadOptions: _uploadOptions, | 1504                                        uploadOptions: _uploadOptions, | 
| 1506                                        uploadMedia: _uploadMedia, | 1505                                        uploadMedia: _uploadMedia, | 
| 1507                                        downloadOptions: _downloadOptions); | 1506                                        downloadOptions: _downloadOptions); | 
| 1508     return _response.then((data) => new Template.fromJson(data)); | 1507     return _response.then((data) => new Template.fromJson(data)); | 
| 1509   } | 1508   } | 
| 1510 | 1509 | 
| 1511   /** | 1510   /** | 
| 1512    * Creates a new template for the table. | 1511    * Creates a new template for the table. | 
| 1513    * | 1512    * | 
| 1514    * [request] - The metadata request object. | 1513    * [request] - The metadata request object. | 
| 1515    * | 1514    * | 
| 1516    * Request parameters: | 1515    * Request parameters: | 
| 1517    * | 1516    * | 
| 1518    * [tableId] - Table for which a new template is being created | 1517    * [tableId] - Table for which a new template is being created | 
| 1519    * | 1518    * | 
| 1520    * Completes with a [Template]. | 1519    * Completes with a [Template]. | 
| 1521    * | 1520    * | 
| 1522    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1521    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1523    * error. | 1522    * error. | 
| 1524    * | 1523    * | 
| 1525    * If the used [http.Client] completes with an error when making a REST call, | 1524    * If the used [http.Client] completes with an error when making a REST call, | 
| 1526    * this method  will complete with the same error. | 1525    * this method  will complete with the same error. | 
| 1527    */ | 1526    */ | 
| 1528   async.Future<Template> insert(Template request, core.String tableId) { | 1527   async.Future<Template> insert(Template request, core.String tableId) { | 
| 1529     var _url = null; | 1528     var _url = null; | 
| 1530     var _queryParams = new core.Map(); | 1529     var _queryParams = new core.Map(); | 
| 1531     var _uploadMedia = null; | 1530     var _uploadMedia = null; | 
| 1532     var _uploadOptions = null; | 1531     var _uploadOptions = null; | 
| 1533     var _downloadOptions = common.DownloadOptions.Metadata; | 1532     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1534     var _body = null; | 1533     var _body = null; | 
| 1535 | 1534 | 
| 1536     if (request != null) { | 1535     if (request != null) { | 
| 1537       _body = convert.JSON.encode((request).toJson()); | 1536       _body = convert.JSON.encode((request).toJson()); | 
| 1538     } | 1537     } | 
| 1539     if (tableId == null) { | 1538     if (tableId == null) { | 
| 1540       throw new core.ArgumentError("Parameter tableId is required."); | 1539       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1541     } | 1540     } | 
| 1542 | 1541 | 
| 1543 | 1542 | 
| 1544     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tem
      plates'; | 1543     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates'; | 
| 1545 | 1544 | 
| 1546     var _response = _requester.request(_url, | 1545     var _response = _requester.request(_url, | 
| 1547                                        "POST", | 1546                                        "POST", | 
| 1548                                        body: _body, | 1547                                        body: _body, | 
| 1549                                        queryParams: _queryParams, | 1548                                        queryParams: _queryParams, | 
| 1550                                        uploadOptions: _uploadOptions, | 1549                                        uploadOptions: _uploadOptions, | 
| 1551                                        uploadMedia: _uploadMedia, | 1550                                        uploadMedia: _uploadMedia, | 
| 1552                                        downloadOptions: _downloadOptions); | 1551                                        downloadOptions: _downloadOptions); | 
| 1553     return _response.then((data) => new Template.fromJson(data)); | 1552     return _response.then((data) => new Template.fromJson(data)); | 
| 1554   } | 1553   } | 
| 1555 | 1554 | 
| 1556   /** | 1555   /** | 
| 1557    * Retrieves a list of templates. | 1556    * Retrieves a list of templates. | 
| 1558    * | 1557    * | 
| 1559    * Request parameters: | 1558    * Request parameters: | 
| 1560    * | 1559    * | 
| 1561    * [tableId] - Identifier for the table whose templates are being requested | 1560    * [tableId] - Identifier for the table whose templates are being requested | 
| 1562    * | 1561    * | 
| 1563    * [maxResults] - Maximum number of templates to return. Optional. Default is | 1562    * [maxResults] - Maximum number of templates to return. Optional. Default is | 
| 1564    * 5. | 1563    * 5. | 
| 1565    * | 1564    * | 
| 1566    * [pageToken] - Continuation token specifying which results page to return. | 1565    * [pageToken] - Continuation token specifying which results page to return. | 
| 1567    * Optional. | 1566    * Optional. | 
| 1568    * | 1567    * | 
| 1569    * Completes with a [TemplateList]. | 1568    * Completes with a [TemplateList]. | 
| 1570    * | 1569    * | 
| 1571    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1570    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1572    * error. | 1571    * error. | 
| 1573    * | 1572    * | 
| 1574    * If the used [http.Client] completes with an error when making a REST call, | 1573    * If the used [http.Client] completes with an error when making a REST call, | 
| 1575    * this method  will complete with the same error. | 1574    * this method  will complete with the same error. | 
| 1576    */ | 1575    */ | 
| 1577   async.Future<TemplateList> list(core.String tableId, {core.int maxResults, cor
      e.String pageToken}) { | 1576   async.Future<TemplateList> list(core.String tableId, {core.int maxResults, cor
      e.String pageToken}) { | 
| 1578     var _url = null; | 1577     var _url = null; | 
| 1579     var _queryParams = new core.Map(); | 1578     var _queryParams = new core.Map(); | 
| 1580     var _uploadMedia = null; | 1579     var _uploadMedia = null; | 
| 1581     var _uploadOptions = null; | 1580     var _uploadOptions = null; | 
| 1582     var _downloadOptions = common.DownloadOptions.Metadata; | 1581     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1583     var _body = null; | 1582     var _body = null; | 
| 1584 | 1583 | 
| 1585     if (tableId == null) { | 1584     if (tableId == null) { | 
| 1586       throw new core.ArgumentError("Parameter tableId is required."); | 1585       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1587     } | 1586     } | 
| 1588     if (maxResults != null) { | 1587     if (maxResults != null) { | 
| 1589       _queryParams["maxResults"] = ["${maxResults}"]; | 1588       _queryParams["maxResults"] = ["${maxResults}"]; | 
| 1590     } | 1589     } | 
| 1591     if (pageToken != null) { | 1590     if (pageToken != null) { | 
| 1592       _queryParams["pageToken"] = [pageToken]; | 1591       _queryParams["pageToken"] = [pageToken]; | 
| 1593     } | 1592     } | 
| 1594 | 1593 | 
| 1595 | 1594 | 
| 1596     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tem
      plates'; | 1595     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates'; | 
| 1597 | 1596 | 
| 1598     var _response = _requester.request(_url, | 1597     var _response = _requester.request(_url, | 
| 1599                                        "GET", | 1598                                        "GET", | 
| 1600                                        body: _body, | 1599                                        body: _body, | 
| 1601                                        queryParams: _queryParams, | 1600                                        queryParams: _queryParams, | 
| 1602                                        uploadOptions: _uploadOptions, | 1601                                        uploadOptions: _uploadOptions, | 
| 1603                                        uploadMedia: _uploadMedia, | 1602                                        uploadMedia: _uploadMedia, | 
| 1604                                        downloadOptions: _downloadOptions); | 1603                                        downloadOptions: _downloadOptions); | 
| 1605     return _response.then((data) => new TemplateList.fromJson(data)); | 1604     return _response.then((data) => new TemplateList.fromJson(data)); | 
| 1606   } | 1605   } | 
| 1607 | 1606 | 
| 1608   /** | 1607   /** | 
| 1609    * Updates an existing template. This method supports patch semantics. | 1608    * Updates an existing template. This method supports patch semantics. | 
| 1610    * | 1609    * | 
| 1611    * [request] - The metadata request object. | 1610    * [request] - The metadata request object. | 
| 1612    * | 1611    * | 
| 1613    * Request parameters: | 1612    * Request parameters: | 
| 1614    * | 1613    * | 
| 1615    * [tableId] - Table to which the updated template belongs | 1614    * [tableId] - Table to which the updated template belongs | 
| 1616    * | 1615    * | 
| 1617    * [templateId] - Identifier for the template that is being updated | 1616    * [templateId] - Identifier for the template that is being updated | 
| 1618    * | 1617    * | 
| 1619    * Completes with a [Template]. | 1618    * Completes with a [Template]. | 
| 1620    * | 1619    * | 
| 1621    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1620    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1622    * error. | 1621    * error. | 
| 1623    * | 1622    * | 
| 1624    * If the used [http.Client] completes with an error when making a REST call, | 1623    * If the used [http.Client] completes with an error when making a REST call, | 
| 1625    * this method  will complete with the same error. | 1624    * this method  will complete with the same error. | 
| 1626    */ | 1625    */ | 
| 1627   async.Future<Template> patch(Template request, core.String tableId, core.int t
      emplateId) { | 1626   async.Future<Template> patch(Template request, core.String tableId, core.int t
      emplateId) { | 
| 1628     var _url = null; | 1627     var _url = null; | 
| 1629     var _queryParams = new core.Map(); | 1628     var _queryParams = new core.Map(); | 
| 1630     var _uploadMedia = null; | 1629     var _uploadMedia = null; | 
| 1631     var _uploadOptions = null; | 1630     var _uploadOptions = null; | 
| 1632     var _downloadOptions = common.DownloadOptions.Metadata; | 1631     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1633     var _body = null; | 1632     var _body = null; | 
| 1634 | 1633 | 
| 1635     if (request != null) { | 1634     if (request != null) { | 
| 1636       _body = convert.JSON.encode((request).toJson()); | 1635       _body = convert.JSON.encode((request).toJson()); | 
| 1637     } | 1636     } | 
| 1638     if (tableId == null) { | 1637     if (tableId == null) { | 
| 1639       throw new core.ArgumentError("Parameter tableId is required."); | 1638       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1640     } | 1639     } | 
| 1641     if (templateId == null) { | 1640     if (templateId == null) { | 
| 1642       throw new core.ArgumentError("Parameter templateId is required."); | 1641       throw new core.ArgumentError("Parameter templateId is required."); | 
| 1643     } | 1642     } | 
| 1644 | 1643 | 
| 1645 | 1644 | 
| 1646     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tem
      plates/' + common_internal.Escaper.ecapeVariable('$templateId'); | 1645     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates/'
       + commons.Escaper.ecapeVariable('$templateId'); | 
| 1647 | 1646 | 
| 1648     var _response = _requester.request(_url, | 1647     var _response = _requester.request(_url, | 
| 1649                                        "PATCH", | 1648                                        "PATCH", | 
| 1650                                        body: _body, | 1649                                        body: _body, | 
| 1651                                        queryParams: _queryParams, | 1650                                        queryParams: _queryParams, | 
| 1652                                        uploadOptions: _uploadOptions, | 1651                                        uploadOptions: _uploadOptions, | 
| 1653                                        uploadMedia: _uploadMedia, | 1652                                        uploadMedia: _uploadMedia, | 
| 1654                                        downloadOptions: _downloadOptions); | 1653                                        downloadOptions: _downloadOptions); | 
| 1655     return _response.then((data) => new Template.fromJson(data)); | 1654     return _response.then((data) => new Template.fromJson(data)); | 
| 1656   } | 1655   } | 
| 1657 | 1656 | 
| 1658   /** | 1657   /** | 
| 1659    * Updates an existing template | 1658    * Updates an existing template | 
| 1660    * | 1659    * | 
| 1661    * [request] - The metadata request object. | 1660    * [request] - The metadata request object. | 
| 1662    * | 1661    * | 
| 1663    * Request parameters: | 1662    * Request parameters: | 
| 1664    * | 1663    * | 
| 1665    * [tableId] - Table to which the updated template belongs | 1664    * [tableId] - Table to which the updated template belongs | 
| 1666    * | 1665    * | 
| 1667    * [templateId] - Identifier for the template that is being updated | 1666    * [templateId] - Identifier for the template that is being updated | 
| 1668    * | 1667    * | 
| 1669    * Completes with a [Template]. | 1668    * Completes with a [Template]. | 
| 1670    * | 1669    * | 
| 1671    * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1670    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 1672    * error. | 1671    * error. | 
| 1673    * | 1672    * | 
| 1674    * If the used [http.Client] completes with an error when making a REST call, | 1673    * If the used [http.Client] completes with an error when making a REST call, | 
| 1675    * this method  will complete with the same error. | 1674    * this method  will complete with the same error. | 
| 1676    */ | 1675    */ | 
| 1677   async.Future<Template> update(Template request, core.String tableId, core.int 
      templateId) { | 1676   async.Future<Template> update(Template request, core.String tableId, core.int 
      templateId) { | 
| 1678     var _url = null; | 1677     var _url = null; | 
| 1679     var _queryParams = new core.Map(); | 1678     var _queryParams = new core.Map(); | 
| 1680     var _uploadMedia = null; | 1679     var _uploadMedia = null; | 
| 1681     var _uploadOptions = null; | 1680     var _uploadOptions = null; | 
| 1682     var _downloadOptions = common.DownloadOptions.Metadata; | 1681     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 1683     var _body = null; | 1682     var _body = null; | 
| 1684 | 1683 | 
| 1685     if (request != null) { | 1684     if (request != null) { | 
| 1686       _body = convert.JSON.encode((request).toJson()); | 1685       _body = convert.JSON.encode((request).toJson()); | 
| 1687     } | 1686     } | 
| 1688     if (tableId == null) { | 1687     if (tableId == null) { | 
| 1689       throw new core.ArgumentError("Parameter tableId is required."); | 1688       throw new core.ArgumentError("Parameter tableId is required."); | 
| 1690     } | 1689     } | 
| 1691     if (templateId == null) { | 1690     if (templateId == null) { | 
| 1692       throw new core.ArgumentError("Parameter templateId is required."); | 1691       throw new core.ArgumentError("Parameter templateId is required."); | 
| 1693     } | 1692     } | 
| 1694 | 1693 | 
| 1695 | 1694 | 
| 1696     _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/tem
      plates/' + common_internal.Escaper.ecapeVariable('$templateId'); | 1695     _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates/'
       + commons.Escaper.ecapeVariable('$templateId'); | 
| 1697 | 1696 | 
| 1698     var _response = _requester.request(_url, | 1697     var _response = _requester.request(_url, | 
| 1699                                        "PUT", | 1698                                        "PUT", | 
| 1700                                        body: _body, | 1699                                        body: _body, | 
| 1701                                        queryParams: _queryParams, | 1700                                        queryParams: _queryParams, | 
| 1702                                        uploadOptions: _uploadOptions, | 1701                                        uploadOptions: _uploadOptions, | 
| 1703                                        uploadMedia: _uploadMedia, | 1702                                        uploadMedia: _uploadMedia, | 
| 1704                                        downloadOptions: _downloadOptions); | 1703                                        downloadOptions: _downloadOptions); | 
| 1705     return _response.then((data) => new Template.fromJson(data)); | 1704     return _response.then((data) => new Template.fromJson(data)); | 
| 1706   } | 1705   } | 
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1915 /** Represents a list of columns in a table. */ | 1914 /** Represents a list of columns in a table. */ | 
| 1916 class ColumnList { | 1915 class ColumnList { | 
| 1917   /** List of all requested columns. */ | 1916   /** List of all requested columns. */ | 
| 1918   core.List<Column> items; | 1917   core.List<Column> items; | 
| 1919 | 1918 | 
| 1920   /** Type name: a list of all columns. */ | 1919   /** Type name: a list of all columns. */ | 
| 1921   core.String kind; | 1920   core.String kind; | 
| 1922 | 1921 | 
| 1923   /** | 1922   /** | 
| 1924    * Token used to access the next page of this result. No token is displayed if | 1923    * Token used to access the next page of this result. No token is displayed if | 
| 1925    * there are no more tokens left. | 1924    * there are no more pages left. | 
| 1926    */ | 1925    */ | 
| 1927   core.String nextPageToken; | 1926   core.String nextPageToken; | 
| 1928 | 1927 | 
| 1929   /** Total number of columns for the table. */ | 1928   /** Total number of columns for the table. */ | 
| 1930   core.int totalItems; | 1929   core.int totalItems; | 
| 1931 | 1930 | 
| 1932 | 1931 | 
| 1933   ColumnList(); | 1932   ColumnList(); | 
| 1934 | 1933 | 
| 1935   ColumnList.fromJson(core.Map _json) { | 1934   ColumnList.fromJson(core.Map _json) { | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1970 class Geometry { | 1969 class Geometry { | 
| 1971   /** | 1970   /** | 
| 1972    * The list of geometries in this geometry collection. | 1971    * The list of geometries in this geometry collection. | 
| 1973    * | 1972    * | 
| 1974    * The values for Object must be JSON objects. It can consist of `num`, | 1973    * The values for Object must be JSON objects. It can consist of `num`, | 
| 1975    * `String`, `bool` and `null` as well as `Map` and `List` values. | 1974    * `String`, `bool` and `null` as well as `Map` and `List` values. | 
| 1976    */ | 1975    */ | 
| 1977   core.List<core.Object> geometries; | 1976   core.List<core.Object> geometries; | 
| 1978 | 1977 | 
| 1979   /** | 1978   /** | 
| 1980    * Not documented yet. | 1979    * | 
| 1981    * | 1980    * | 
| 1982    * The values for Object must be JSON objects. It can consist of `num`, | 1981    * The values for Object must be JSON objects. It can consist of `num`, | 
| 1983    * `String`, `bool` and `null` as well as `Map` and `List` values. | 1982    * `String`, `bool` and `null` as well as `Map` and `List` values. | 
| 1984    */ | 1983    */ | 
| 1985   core.Object geometry; | 1984   core.Object geometry; | 
| 1986 | 1985 | 
| 1987   /** Type: A collection of geometries. */ | 1986   /** Type: A collection of geometries. */ | 
| 1988   core.String type; | 1987   core.String type; | 
| 1989 | 1988 | 
| 1990 | 1989 | 
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2392       _json["kind"] = kind; | 2391       _json["kind"] = kind; | 
| 2393     } | 2392     } | 
| 2394     if (rows != null) { | 2393     if (rows != null) { | 
| 2395       _json["rows"] = rows; | 2394       _json["rows"] = rows; | 
| 2396     } | 2395     } | 
| 2397     return _json; | 2396     return _json; | 
| 2398   } | 2397   } | 
| 2399 } | 2398 } | 
| 2400 | 2399 | 
| 2401 | 2400 | 
| 2402 /** Not documented yet. */ |  | 
| 2403 class StyleFunctionGradientColors { | 2401 class StyleFunctionGradientColors { | 
| 2404   /** Color in #RRGGBB format. */ | 2402   /** Color in #RRGGBB format. */ | 
| 2405   core.String color; | 2403   core.String color; | 
| 2406 | 2404 | 
| 2407   /** Opacity of the color: 0.0 (transparent) to 1.0 (opaque). */ | 2405   /** Opacity of the color: 0.0 (transparent) to 1.0 (opaque). */ | 
| 2408   core.double opacity; | 2406   core.double opacity; | 
| 2409 | 2407 | 
| 2410 | 2408 | 
| 2411   StyleFunctionGradientColors(); | 2409   StyleFunctionGradientColors(); | 
| 2412 | 2410 | 
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2636 /** Represents a list of styles for a given table. */ | 2634 /** Represents a list of styles for a given table. */ | 
| 2637 class StyleSettingList { | 2635 class StyleSettingList { | 
| 2638   /** All requested style settings. */ | 2636   /** All requested style settings. */ | 
| 2639   core.List<StyleSetting> items; | 2637   core.List<StyleSetting> items; | 
| 2640 | 2638 | 
| 2641   /** Type name: in this case, a list of style settings. */ | 2639   /** Type name: in this case, a list of style settings. */ | 
| 2642   core.String kind; | 2640   core.String kind; | 
| 2643 | 2641 | 
| 2644   /** | 2642   /** | 
| 2645    * Token used to access the next page of this result. No token is displayed if | 2643    * Token used to access the next page of this result. No token is displayed if | 
| 2646    * there are no more styles left. | 2644    * there are no more pages left. | 
| 2647    */ | 2645    */ | 
| 2648   core.String nextPageToken; | 2646   core.String nextPageToken; | 
| 2649 | 2647 | 
| 2650   /** Total number of styles for the table. */ | 2648   /** Total number of styles for the table. */ | 
| 2651   core.int totalItems; | 2649   core.int totalItems; | 
| 2652 | 2650 | 
| 2653 | 2651 | 
| 2654   StyleSettingList(); | 2652   StyleSettingList(); | 
| 2655 | 2653 | 
| 2656   StyleSettingList.fromJson(core.Map _json) { | 2654   StyleSettingList.fromJson(core.Map _json) { | 
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2800 /** Represents a list of tables. */ | 2798 /** Represents a list of tables. */ | 
| 2801 class TableList { | 2799 class TableList { | 
| 2802   /** List of all requested tables. */ | 2800   /** List of all requested tables. */ | 
| 2803   core.List<Table> items; | 2801   core.List<Table> items; | 
| 2804 | 2802 | 
| 2805   /** Type name: a list of all tables. */ | 2803   /** Type name: a list of all tables. */ | 
| 2806   core.String kind; | 2804   core.String kind; | 
| 2807 | 2805 | 
| 2808   /** | 2806   /** | 
| 2809    * Token used to access the next page of this result. No token is displayed if | 2807    * Token used to access the next page of this result. No token is displayed if | 
| 2810    * there are no more tokens left. | 2808    * there are no more pages left. | 
| 2811    */ | 2809    */ | 
| 2812   core.String nextPageToken; | 2810   core.String nextPageToken; | 
| 2813 | 2811 | 
| 2814 | 2812 | 
| 2815   TableList(); | 2813   TableList(); | 
| 2816 | 2814 | 
| 2817   TableList.fromJson(core.Map _json) { | 2815   TableList.fromJson(core.Map _json) { | 
| 2818     if (_json.containsKey("items")) { | 2816     if (_json.containsKey("items")) { | 
| 2819       items = _json["items"].map((value) => new Table.fromJson(value)).toList(); | 2817       items = _json["items"].map((value) => new Table.fromJson(value)).toList(); | 
| 2820     } | 2818     } | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 2835       _json["kind"] = kind; | 2833       _json["kind"] = kind; | 
| 2836     } | 2834     } | 
| 2837     if (nextPageToken != null) { | 2835     if (nextPageToken != null) { | 
| 2838       _json["nextPageToken"] = nextPageToken; | 2836       _json["nextPageToken"] = nextPageToken; | 
| 2839     } | 2837     } | 
| 2840     return _json; | 2838     return _json; | 
| 2841   } | 2839   } | 
| 2842 } | 2840 } | 
| 2843 | 2841 | 
| 2844 | 2842 | 
| 2845 /** Specifies the id, name and type of a task in a table. */ | 2843 /** Specifies the identifier, name, and type of a task in a table. */ | 
| 2846 class Task { | 2844 class Task { | 
| 2847   /** Type name: a template for an individual task. */ | 2845   /** Type of the resource. This is always "fusiontables#task". */ | 
| 2848   core.String kind; | 2846   core.String kind; | 
| 2849 | 2847 | 
| 2850   /** An indication of task progress. */ | 2848   /** An indication of task progress. */ | 
| 2851   core.String progress; | 2849   core.String progress; | 
| 2852 | 2850 | 
| 2853   /** False while the table is busy with some other task. */ | 2851   /** | 
|  | 2852    * false while the table is busy with some other task. true if this background | 
|  | 2853    * task is currently running. | 
|  | 2854    */ | 
| 2854   core.bool started; | 2855   core.bool started; | 
| 2855 | 2856 | 
| 2856   /** Identifier for the task. */ | 2857   /** Identifier for the task. */ | 
| 2857   core.String taskId; | 2858   core.String taskId; | 
| 2858 | 2859 | 
| 2859   /** Not documented yet. */ | 2860   /** | 
|  | 2861    * Type of background task. One of  DELETE_ROWS Deletes one or more rows from | 
|  | 2862    * the table. ADD_ROWS "Adds one or more rows to a table. Includes importing | 
|  | 2863    * data into a new table and importing more rows into an existing table. | 
|  | 2864    * ADD_COLUMN Adds a new column to the table. CHANGE_TYPE Changes the type of | 
|  | 2865    * a column. | 
|  | 2866    */ | 
| 2860   core.String type; | 2867   core.String type; | 
| 2861 | 2868 | 
| 2862 | 2869 | 
| 2863   Task(); | 2870   Task(); | 
| 2864 | 2871 | 
| 2865   Task.fromJson(core.Map _json) { | 2872   Task.fromJson(core.Map _json) { | 
| 2866     if (_json.containsKey("kind")) { | 2873     if (_json.containsKey("kind")) { | 
| 2867       kind = _json["kind"]; | 2874       kind = _json["kind"]; | 
| 2868     } | 2875     } | 
| 2869     if (_json.containsKey("progress")) { | 2876     if (_json.containsKey("progress")) { | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 2895       _json["taskId"] = taskId; | 2902       _json["taskId"] = taskId; | 
| 2896     } | 2903     } | 
| 2897     if (type != null) { | 2904     if (type != null) { | 
| 2898       _json["type"] = type; | 2905       _json["type"] = type; | 
| 2899     } | 2906     } | 
| 2900     return _json; | 2907     return _json; | 
| 2901   } | 2908   } | 
| 2902 } | 2909 } | 
| 2903 | 2910 | 
| 2904 | 2911 | 
| 2905 /** Represents a list of tasks in a table. */ | 2912 /** Represents a list of tasks for a table. */ | 
| 2906 class TaskList { | 2913 class TaskList { | 
| 2907   /** List of all requested tasks. */ | 2914   /** List of all requested tasks. */ | 
| 2908   core.List<Task> items; | 2915   core.List<Task> items; | 
| 2909 | 2916 | 
| 2910   /** Type name: a list of all tasks. */ | 2917   /** Type of the resource. This is always "fusiontables#taskList". */ | 
| 2911   core.String kind; | 2918   core.String kind; | 
| 2912 | 2919 | 
| 2913   /** | 2920   /** | 
| 2914    * Token used to access the next page of this result. No token is displayed if | 2921    * Token used to access the next page of this result. No token is displayed if | 
| 2915    * there are no more tokens left. | 2922    * there are no more pages left. | 
| 2916    */ | 2923    */ | 
| 2917   core.String nextPageToken; | 2924   core.String nextPageToken; | 
| 2918 | 2925 | 
| 2919   /** Total number of tasks for the table. */ | 2926   /** Total number of tasks for the table. */ | 
| 2920   core.int totalItems; | 2927   core.int totalItems; | 
| 2921 | 2928 | 
| 2922 | 2929 | 
| 2923   TaskList(); | 2930   TaskList(); | 
| 2924 | 2931 | 
| 2925   TaskList.fromJson(core.Map _json) { | 2932   TaskList.fromJson(core.Map _json) { | 
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3042 /** Represents a list of templates for a given table. */ | 3049 /** Represents a list of templates for a given table. */ | 
| 3043 class TemplateList { | 3050 class TemplateList { | 
| 3044   /** List of all requested templates. */ | 3051   /** List of all requested templates. */ | 
| 3045   core.List<Template> items; | 3052   core.List<Template> items; | 
| 3046 | 3053 | 
| 3047   /** Type name: a list of all templates. */ | 3054   /** Type name: a list of all templates. */ | 
| 3048   core.String kind; | 3055   core.String kind; | 
| 3049 | 3056 | 
| 3050   /** | 3057   /** | 
| 3051    * Token used to access the next page of this result. No token is displayed if | 3058    * Token used to access the next page of this result. No token is displayed if | 
| 3052    * there are no more tokens left. | 3059    * there are no more pages left. | 
| 3053    */ | 3060    */ | 
| 3054   core.String nextPageToken; | 3061   core.String nextPageToken; | 
| 3055 | 3062 | 
| 3056   /** Total number of templates for the table. */ | 3063   /** Total number of templates for the table. */ | 
| 3057   core.int totalItems; | 3064   core.int totalItems; | 
| 3058 | 3065 | 
| 3059 | 3066 | 
| 3060   TemplateList(); | 3067   TemplateList(); | 
| 3061 | 3068 | 
| 3062   TemplateList.fromJson(core.Map _json) { | 3069   TemplateList.fromJson(core.Map _json) { | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 3084     } | 3091     } | 
| 3085     if (nextPageToken != null) { | 3092     if (nextPageToken != null) { | 
| 3086       _json["nextPageToken"] = nextPageToken; | 3093       _json["nextPageToken"] = nextPageToken; | 
| 3087     } | 3094     } | 
| 3088     if (totalItems != null) { | 3095     if (totalItems != null) { | 
| 3089       _json["totalItems"] = totalItems; | 3096       _json["totalItems"] = totalItems; | 
| 3090     } | 3097     } | 
| 3091     return _json; | 3098     return _json; | 
| 3092   } | 3099   } | 
| 3093 } | 3100 } | 
| 3094 |  | 
| 3095 |  | 
| OLD | NEW | 
|---|