| Index: generated/googleapis/lib/fusiontables/v1.dart
|
| diff --git a/generated/googleapis/lib/fusiontables/v1.dart b/generated/googleapis/lib/fusiontables/v1.dart
|
| index ce6323a39a22c6353bfd7057e2757d2eaa577cb7..79cc3fd9b3cd6c2329207f6f6120d6508ae02813 100644
|
| --- a/generated/googleapis/lib/fusiontables/v1.dart
|
| +++ b/generated/googleapis/lib/fusiontables/v1.dart
|
| @@ -9,21 +9,28 @@ import 'dart:convert' as convert;
|
| import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
|
| import 'package:http/http.dart' as http;
|
|
|
| -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| - ApiRequestError, DetailedApiRequestError, Media, UploadOptions,
|
| - ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
|
| - ByteRange;
|
| +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
|
| + show
|
| + ApiRequestError,
|
| + DetailedApiRequestError,
|
| + Media,
|
| + UploadOptions,
|
| + ResumableUploadOptions,
|
| + DownloadOptions,
|
| + PartialDownloadOptions,
|
| + ByteRange;
|
|
|
| const core.String USER_AGENT = 'dart-api-client fusiontables/v1';
|
|
|
| -/** API for working with Fusion Tables data. */
|
| +/// API for working with Fusion Tables data.
|
| class FusiontablesApi {
|
| - /** Manage your Fusion Tables */
|
| - static const FusiontablesScope = "https://www.googleapis.com/auth/fusiontables";
|
| -
|
| - /** View your Fusion Tables */
|
| - static const FusiontablesReadonlyScope = "https://www.googleapis.com/auth/fusiontables.readonly";
|
| + /// Manage your Fusion Tables
|
| + static const FusiontablesScope =
|
| + "https://www.googleapis.com/auth/fusiontables";
|
|
|
| + /// View your Fusion Tables
|
| + static const FusiontablesReadonlyScope =
|
| + "https://www.googleapis.com/auth/fusiontables.readonly";
|
|
|
| final commons.ApiRequester _requester;
|
|
|
| @@ -34,32 +41,31 @@ class FusiontablesApi {
|
| TaskResourceApi get task => new TaskResourceApi(_requester);
|
| TemplateResourceApi get template => new TemplateResourceApi(_requester);
|
|
|
| - FusiontablesApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "fusiontables/v1/"}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + FusiontablesApi(http.Client client,
|
| + {core.String rootUrl: "https://www.googleapis.com/",
|
| + core.String servicePath: "fusiontables/v1/"})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class ColumnResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - ColumnResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Deletes the column.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table from which the column is being deleted.
|
| - *
|
| - * [columnId] - Name or identifier for the column being deleted.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + ColumnResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Deletes the column.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table from which the column is being deleted.
|
| + ///
|
| + /// [columnId] - Name or identifier for the column being deleted.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String tableId, core.String columnId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -77,35 +83,35 @@ class ColumnResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns/' + commons.Escaper.ecapeVariable('$columnId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/columns/' +
|
| + commons.Escaper.ecapeVariable('$columnId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves a specific column by its id.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table to which the column belongs.
|
| - *
|
| - * [columnId] - Name or identifier for the column that is being requested.
|
| - *
|
| - * Completes with a [Column].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves a specific column by its id.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table to which the column belongs.
|
| + ///
|
| + /// [columnId] - Name or identifier for the column that is being requested.
|
| + ///
|
| + /// Completes with a [Column].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Column> get(core.String tableId, core.String columnId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -121,35 +127,35 @@ class ColumnResourceApi {
|
| throw new core.ArgumentError("Parameter columnId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns/' + commons.Escaper.ecapeVariable('$columnId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/columns/' +
|
| + commons.Escaper.ecapeVariable('$columnId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Column.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Adds a new column to the table.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table for which a new column is being added.
|
| - *
|
| - * Completes with a [Column].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Adds a new column to the table.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table for which a new column is being added.
|
| + ///
|
| + /// Completes with a [Column].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Column> insert(Column request, core.String tableId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -167,37 +173,36 @@ class ColumnResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Column.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves a list of columns.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table whose columns are being listed.
|
| - *
|
| - * [maxResults] - Maximum number of columns to return. Optional. Default is 5.
|
| - *
|
| - * [pageToken] - Continuation token specifying which result page to return.
|
| - * Optional.
|
| - *
|
| - * Completes with a [ColumnList].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<ColumnList> list(core.String tableId, {core.int maxResults, core.String pageToken}) {
|
| + /// Retrieves a list of columns.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table whose columns are being listed.
|
| + ///
|
| + /// [maxResults] - Maximum number of columns to return. Optional. Default is
|
| + /// 5.
|
| + ///
|
| + /// [pageToken] - Continuation token specifying which result page to return.
|
| + /// Optional.
|
| + ///
|
| + /// Completes with a [ColumnList].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<ColumnList> list(core.String tableId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -217,37 +222,35 @@ class ColumnResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new ColumnList.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the name or type of an existing column. This method supports patch
|
| - * semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table for which the column is being updated.
|
| - *
|
| - * [columnId] - Name or identifier for the column that is being updated.
|
| - *
|
| - * Completes with a [Column].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Column> patch(Column request, core.String tableId, core.String columnId) {
|
| + /// Updates the name or type of an existing column. This method supports
|
| + /// patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table for which the column is being updated.
|
| + ///
|
| + /// [columnId] - Name or identifier for the column that is being updated.
|
| + ///
|
| + /// Completes with a [Column].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Column> patch(
|
| + Column request, core.String tableId, core.String columnId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -265,38 +268,39 @@ class ColumnResourceApi {
|
| throw new core.ArgumentError("Parameter columnId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns/' + commons.Escaper.ecapeVariable('$columnId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/columns/' +
|
| + commons.Escaper.ecapeVariable('$columnId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Column.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates the name or type of an existing column.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table for which the column is being updated.
|
| - *
|
| - * [columnId] - Name or identifier for the column that is being updated.
|
| - *
|
| - * Completes with a [Column].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Column> update(Column request, core.String tableId, core.String columnId) {
|
| + /// Updates the name or type of an existing column.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table for which the column is being updated.
|
| + ///
|
| + /// [columnId] - Name or identifier for the column that is being updated.
|
| + ///
|
| + /// Completes with a [Column].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Column> update(
|
| + Column request, core.String tableId, core.String columnId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -314,58 +318,61 @@ class ColumnResourceApi {
|
| throw new core.ArgumentError("Parameter columnId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/columns/' + commons.Escaper.ecapeVariable('$columnId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/columns/' +
|
| + commons.Escaper.ecapeVariable('$columnId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Column.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class QueryResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - QueryResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [sql_1] - An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE
|
| - * statement.
|
| - *
|
| - * [hdrs] - Should column names be included (in the first row)?. Default is
|
| - * true.
|
| - *
|
| - * [typed] - Should typed values be returned in the (JSON) response -- numbers
|
| - * for numeric values and parsed geometries for KML values? Default is true.
|
| - *
|
| - * [downloadOptions] - Options for downloading. A download can be either a
|
| - * Metadata (default) or Media download. Partial Media downloads are possible
|
| - * as well.
|
| - *
|
| - * Completes with a
|
| - *
|
| - * - [Sqlresponse] for Metadata downloads (see [downloadOptions]).
|
| - *
|
| - * - [commons.Media] for Media downloads (see [downloadOptions]).
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future sql(core.String sql_1, {core.bool hdrs, core.bool typed, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) {
|
| + QueryResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE
|
| + /// statement.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [sql_1] - An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE
|
| + /// statement.
|
| + ///
|
| + /// [hdrs] - Should column names be included (in the first row)?. Default is
|
| + /// true.
|
| + ///
|
| + /// [typed] - Should typed values be returned in the (JSON) response --
|
| + /// numbers for numeric values and parsed geometries for KML values? Default
|
| + /// is true.
|
| + ///
|
| + /// [downloadOptions] - Options for downloading. A download can be either a
|
| + /// Metadata (default) or Media download. Partial Media downloads are
|
| + /// possible as well.
|
| + ///
|
| + /// Completes with a
|
| + ///
|
| + /// - [Sqlresponse] for Metadata downloads (see [downloadOptions]).
|
| + ///
|
| + /// - [commons.Media] for Media downloads (see [downloadOptions]).
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future sql(core.String sql_1,
|
| + {core.bool hdrs,
|
| + core.bool typed,
|
| + commons.DownloadOptions downloadOptions:
|
| + commons.DownloadOptions.Metadata}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -388,13 +395,12 @@ class QueryResourceApi {
|
|
|
| _url = 'query';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| if (_downloadOptions == null ||
|
| _downloadOptions == commons.DownloadOptions.Metadata) {
|
| return _response.then((data) => new Sqlresponse.fromJson(data));
|
| @@ -403,36 +409,39 @@ class QueryResourceApi {
|
| }
|
| }
|
|
|
| - /**
|
| - * Executes an SQL SELECT/SHOW/DESCRIBE statement.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [sql_1] - An SQL SELECT/SHOW/DESCRIBE statement.
|
| - *
|
| - * [hdrs] - Should column names be included (in the first row)?. Default is
|
| - * true.
|
| - *
|
| - * [typed] - Should typed values be returned in the (JSON) response -- numbers
|
| - * for numeric values and parsed geometries for KML values? Default is true.
|
| - *
|
| - * [downloadOptions] - Options for downloading. A download can be either a
|
| - * Metadata (default) or Media download. Partial Media downloads are possible
|
| - * as well.
|
| - *
|
| - * Completes with a
|
| - *
|
| - * - [Sqlresponse] for Metadata downloads (see [downloadOptions]).
|
| - *
|
| - * - [commons.Media] for Media downloads (see [downloadOptions]).
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future sqlGet(core.String sql_1, {core.bool hdrs, core.bool typed, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) {
|
| + /// Executes an SQL SELECT/SHOW/DESCRIBE statement.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [sql_1] - An SQL SELECT/SHOW/DESCRIBE statement.
|
| + ///
|
| + /// [hdrs] - Should column names be included (in the first row)?. Default is
|
| + /// true.
|
| + ///
|
| + /// [typed] - Should typed values be returned in the (JSON) response --
|
| + /// numbers for numeric values and parsed geometries for KML values? Default
|
| + /// is true.
|
| + ///
|
| + /// [downloadOptions] - Options for downloading. A download can be either a
|
| + /// Metadata (default) or Media download. Partial Media downloads are
|
| + /// possible as well.
|
| + ///
|
| + /// Completes with a
|
| + ///
|
| + /// - [Sqlresponse] for Metadata downloads (see [downloadOptions]).
|
| + ///
|
| + /// - [commons.Media] for Media downloads (see [downloadOptions]).
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future sqlGet(core.String sql_1,
|
| + {core.bool hdrs,
|
| + core.bool typed,
|
| + commons.DownloadOptions downloadOptions:
|
| + commons.DownloadOptions.Metadata}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -455,13 +464,12 @@ class QueryResourceApi {
|
|
|
| _url = 'query';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| if (_downloadOptions == null ||
|
| _downloadOptions == commons.DownloadOptions.Metadata) {
|
| return _response.then((data) => new Sqlresponse.fromJson(data));
|
| @@ -469,31 +477,26 @@ class QueryResourceApi {
|
| return _response;
|
| }
|
| }
|
| -
|
| }
|
|
|
| -
|
| class StyleResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - StyleResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Deletes a style.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table from which the style is being deleted
|
| - *
|
| - * [styleId] - Identifier (within a table) for the style being deleted
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + StyleResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Deletes a style.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table from which the style is being deleted
|
| + ///
|
| + /// [styleId] - Identifier (within a table) for the style being deleted
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String tableId, core.int styleId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -511,35 +514,35 @@ class StyleResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles/' + commons.Escaper.ecapeVariable('$styleId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/styles/' +
|
| + commons.Escaper.ecapeVariable('$styleId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Gets a specific style.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table to which the requested style belongs
|
| - *
|
| - * [styleId] - Identifier (integer) for a specific style in a table
|
| - *
|
| - * Completes with a [StyleSetting].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Gets a specific style.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table to which the requested style belongs
|
| + ///
|
| + /// [styleId] - Identifier (integer) for a specific style in a table
|
| + ///
|
| + /// Completes with a [StyleSetting].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<StyleSetting> get(core.String tableId, core.int styleId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -555,35 +558,35 @@ class StyleResourceApi {
|
| throw new core.ArgumentError("Parameter styleId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles/' + commons.Escaper.ecapeVariable('$styleId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/styles/' +
|
| + commons.Escaper.ecapeVariable('$styleId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StyleSetting.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Adds a new style for the table.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table for which a new style is being added
|
| - *
|
| - * Completes with a [StyleSetting].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Adds a new style for the table.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table for which a new style is being added
|
| + ///
|
| + /// Completes with a [StyleSetting].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<StyleSetting> insert(StyleSetting request, core.String tableId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -601,37 +604,36 @@ class StyleResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StyleSetting.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves a list of styles.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table whose styles are being listed
|
| - *
|
| - * [maxResults] - Maximum number of styles to return. Optional. Default is 5.
|
| - *
|
| - * [pageToken] - Continuation token specifying which result page to return.
|
| - * Optional.
|
| - *
|
| - * Completes with a [StyleSettingList].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StyleSettingList> list(core.String tableId, {core.int maxResults, core.String pageToken}) {
|
| + /// Retrieves a list of styles.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table whose styles are being listed
|
| + ///
|
| + /// [maxResults] - Maximum number of styles to return. Optional. Default is
|
| + /// 5.
|
| + ///
|
| + /// [pageToken] - Continuation token specifying which result page to return.
|
| + /// Optional.
|
| + ///
|
| + /// Completes with a [StyleSettingList].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StyleSettingList> list(core.String tableId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -651,36 +653,34 @@ class StyleResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StyleSettingList.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates an existing style. This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table whose style is being updated.
|
| - *
|
| - * [styleId] - Identifier (within a table) for the style being updated.
|
| - *
|
| - * Completes with a [StyleSetting].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StyleSetting> patch(StyleSetting request, core.String tableId, core.int styleId) {
|
| + /// Updates an existing style. This method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table whose style is being updated.
|
| + ///
|
| + /// [styleId] - Identifier (within a table) for the style being updated.
|
| + ///
|
| + /// Completes with a [StyleSetting].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StyleSetting> patch(
|
| + StyleSetting request, core.String tableId, core.int styleId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -698,38 +698,39 @@ class StyleResourceApi {
|
| throw new core.ArgumentError("Parameter styleId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles/' + commons.Escaper.ecapeVariable('$styleId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/styles/' +
|
| + commons.Escaper.ecapeVariable('$styleId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StyleSetting.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates an existing style.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table whose style is being updated.
|
| - *
|
| - * [styleId] - Identifier (within a table) for the style being updated.
|
| - *
|
| - * Completes with a [StyleSetting].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<StyleSetting> update(StyleSetting request, core.String tableId, core.int styleId) {
|
| + /// Updates an existing style.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table whose style is being updated.
|
| + ///
|
| + /// [styleId] - Identifier (within a table) for the style being updated.
|
| + ///
|
| + /// Completes with a [StyleSetting].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<StyleSetting> update(
|
| + StyleSetting request, core.String tableId, core.int styleId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -747,45 +748,42 @@ class StyleResourceApi {
|
| throw new core.ArgumentError("Parameter styleId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/styles/' + commons.Escaper.ecapeVariable('$styleId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/styles/' +
|
| + commons.Escaper.ecapeVariable('$styleId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new StyleSetting.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class TableResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - TableResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Copies a table.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - ID of the table that is being copied.
|
| - *
|
| - * [copyPresentation] - Whether to also copy tabs, styles, and templates.
|
| - * Default is false.
|
| - *
|
| - * Completes with a [Table].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + TableResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Copies a table.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - ID of the table that is being copied.
|
| + ///
|
| + /// [copyPresentation] - Whether to also copy tabs, styles, and templates.
|
| + /// Default is false.
|
| + ///
|
| + /// Completes with a [Table].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Table> copy(core.String tableId, {core.bool copyPresentation}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -803,29 +801,26 @@ class TableResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/copy';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Table.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Deletes a table.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - ID of the table that is being deleted.
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Deletes a table.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - ID of the table that is being deleted.
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String tableId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -842,31 +837,28 @@ class TableResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves a specific table by its id.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Identifier(ID) for the table being requested.
|
| - *
|
| - * Completes with a [Table].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves a specific table by its id.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Identifier(ID) for the table being requested.
|
| + ///
|
| + /// Completes with a [Table].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Table> get(core.String tableId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -881,59 +873,64 @@ class TableResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Table.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Import more rows into a table.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - The table into which new rows are being imported.
|
| - *
|
| - * [delimiter] - The delimiter used to separate cell values. This can only
|
| - * consist of a single character. Default is ','.
|
| - *
|
| - * [encoding] - The encoding of the content. Default is UTF-8. Use
|
| - * 'auto-detect' if you are unsure of the encoding.
|
| - *
|
| - * [endLine] - The index of the last line from which to start importing,
|
| - * exclusive. Thus, the number of imported lines is endLine - startLine. If
|
| - * this parameter is not provided, the file will be imported until the last
|
| - * line of the file. If endLine is negative, then the imported content will
|
| - * exclude the last endLine lines. That is, if endline is negative, no line
|
| - * will be imported whose index is greater than N + endLine where N is the
|
| - * number of lines in the file, and the number of imported lines will be N +
|
| - * endLine - startLine.
|
| - *
|
| - * [isStrict] - Whether the CSV must have the same number of values for each
|
| - * row. If false, rows with fewer values will be padded with empty values.
|
| - * Default is true.
|
| - *
|
| - * [startLine] - The index of the first line from which to start importing,
|
| - * inclusive. Default is 0.
|
| - *
|
| - * [uploadMedia] - The media to upload.
|
| - *
|
| - * [uploadOptions] - Options for the media upload. Streaming Media without the
|
| - * length being known ahead of time is only supported via resumable uploads.
|
| - *
|
| - * Completes with a [Import].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Import> importRows(core.String tableId, {core.String delimiter, core.String encoding, core.int endLine, core.bool isStrict, core.int startLine, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) {
|
| + /// Import more rows into a table.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - The table into which new rows are being imported.
|
| + ///
|
| + /// [delimiter] - The delimiter used to separate cell values. This can only
|
| + /// consist of a single character. Default is ','.
|
| + ///
|
| + /// [encoding] - The encoding of the content. Default is UTF-8. Use
|
| + /// 'auto-detect' if you are unsure of the encoding.
|
| + ///
|
| + /// [endLine] - The index of the last line from which to start importing,
|
| + /// exclusive. Thus, the number of imported lines is endLine - startLine. If
|
| + /// this parameter is not provided, the file will be imported until the last
|
| + /// line of the file. If endLine is negative, then the imported content will
|
| + /// exclude the last endLine lines. That is, if endline is negative, no line
|
| + /// will be imported whose index is greater than N + endLine where N is the
|
| + /// number of lines in the file, and the number of imported lines will be N +
|
| + /// endLine - startLine.
|
| + ///
|
| + /// [isStrict] - Whether the CSV must have the same number of values for each
|
| + /// row. If false, rows with fewer values will be padded with empty values.
|
| + /// Default is true.
|
| + ///
|
| + /// [startLine] - The index of the first line from which to start importing,
|
| + /// inclusive. Default is 0.
|
| + ///
|
| + /// [uploadMedia] - The media to upload.
|
| + ///
|
| + /// [uploadOptions] - Options for the media upload. Streaming Media without
|
| + /// the length being known ahead of time is only supported via resumable
|
| + /// uploads.
|
| + ///
|
| + /// Completes with a [Import].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Import> importRows(core.String tableId,
|
| + {core.String delimiter,
|
| + core.String encoding,
|
| + core.int endLine,
|
| + core.bool isStrict,
|
| + core.int startLine,
|
| + commons.UploadOptions uploadOptions: commons.UploadOptions.Default,
|
| + commons.Media uploadMedia}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -960,55 +957,60 @@ class TableResourceApi {
|
| _queryParams["startLine"] = ["${startLine}"];
|
| }
|
|
|
| - _uploadMedia = uploadMedia;
|
| - _uploadOptions = uploadOptions;
|
| + _uploadMedia = uploadMedia;
|
| + _uploadOptions = uploadOptions;
|
|
|
| if (_uploadMedia == null) {
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/import';
|
| } else if (_uploadOptions is commons.ResumableUploadOptions) {
|
| - _url = '/resumable/upload/fusiontables/v1/tables/' + commons.Escaper.ecapeVariable('$tableId') + '/import';
|
| + _url = '/resumable/upload/fusiontables/v1/tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/import';
|
| } else {
|
| - _url = '/upload/fusiontables/v1/tables/' + commons.Escaper.ecapeVariable('$tableId') + '/import';
|
| + _url = '/upload/fusiontables/v1/tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/import';
|
| }
|
|
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Import.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Import a new table.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [name] - The name to be assigned to the new table.
|
| - *
|
| - * [delimiter] - The delimiter used to separate cell values. This can only
|
| - * consist of a single character. Default is ','.
|
| - *
|
| - * [encoding] - The encoding of the content. Default is UTF-8. Use
|
| - * 'auto-detect' if you are unsure of the encoding.
|
| - *
|
| - * [uploadMedia] - The media to upload.
|
| - *
|
| - * [uploadOptions] - Options for the media upload. Streaming Media without the
|
| - * length being known ahead of time is only supported via resumable uploads.
|
| - *
|
| - * Completes with a [Table].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Table> importTable(core.String name, {core.String delimiter, core.String encoding, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) {
|
| + /// Import a new table.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [name] - The name to be assigned to the new table.
|
| + ///
|
| + /// [delimiter] - The delimiter used to separate cell values. This can only
|
| + /// consist of a single character. Default is ','.
|
| + ///
|
| + /// [encoding] - The encoding of the content. Default is UTF-8. Use
|
| + /// 'auto-detect' if you are unsure of the encoding.
|
| + ///
|
| + /// [uploadMedia] - The media to upload.
|
| + ///
|
| + /// [uploadOptions] - Options for the media upload. Streaming Media without
|
| + /// the length being known ahead of time is only supported via resumable
|
| + /// uploads.
|
| + ///
|
| + /// Completes with a [Table].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Table> importTable(core.String name,
|
| + {core.String delimiter,
|
| + core.String encoding,
|
| + commons.UploadOptions uploadOptions: commons.UploadOptions.Default,
|
| + commons.Media uploadMedia}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1027,8 +1029,8 @@ class TableResourceApi {
|
| _queryParams["encoding"] = [encoding];
|
| }
|
|
|
| - _uploadMedia = uploadMedia;
|
| - _uploadOptions = uploadOptions;
|
| + _uploadMedia = uploadMedia;
|
| + _uploadOptions = uploadOptions;
|
|
|
| if (_uploadMedia == null) {
|
| _url = 'tables/import';
|
| @@ -1038,32 +1040,28 @@ class TableResourceApi {
|
| _url = '/upload/fusiontables/v1/tables/import';
|
| }
|
|
|
| -
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Table.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Creates a new table.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [Table].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Creates a new table.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [Table].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Table> insert(Table request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1078,34 +1076,32 @@ class TableResourceApi {
|
|
|
| _url = 'tables';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Table.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves a list of tables a user owns.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [maxResults] - Maximum number of styles to return. Optional. Default is 5.
|
| - *
|
| - * [pageToken] - Continuation token specifying which result page to return.
|
| - * Optional.
|
| - *
|
| - * Completes with a [TableList].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves a list of tables a user owns.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [maxResults] - Maximum number of styles to return. Optional. Default is
|
| + /// 5.
|
| + ///
|
| + /// [pageToken] - Continuation token specifying which result page to return.
|
| + /// Optional.
|
| + ///
|
| + /// Completes with a [TableList].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<TableList> list({core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1123,40 +1119,38 @@ class TableResourceApi {
|
|
|
| _url = 'tables';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new TableList.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates an existing table. Unless explicitly requested, only the name,
|
| - * description, and attribution will be updated. This method supports patch
|
| - * semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - ID of the table that is being updated.
|
| - *
|
| - * [replaceViewDefinition] - Should the view definition also be updated? The
|
| - * specified view definition replaces the existing one. Only a view can be
|
| - * updated with a new definition.
|
| - *
|
| - * Completes with a [Table].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Table> patch(Table request, core.String tableId, {core.bool replaceViewDefinition}) {
|
| + /// Updates an existing table. Unless explicitly requested, only the name,
|
| + /// description, and attribution will be updated. This method supports patch
|
| + /// semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - ID of the table that is being updated.
|
| + ///
|
| + /// [replaceViewDefinition] - Should the view definition also be updated? The
|
| + /// specified view definition replaces the existing one. Only a view can be
|
| + /// updated with a new definition.
|
| + ///
|
| + /// Completes with a [Table].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Table> patch(Table request, core.String tableId,
|
| + {core.bool replaceViewDefinition}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1176,39 +1170,37 @@ class TableResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Table.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates an existing table. Unless explicitly requested, only the name,
|
| - * description, and attribution will be updated.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - ID of the table that is being updated.
|
| - *
|
| - * [replaceViewDefinition] - Should the view definition also be updated? The
|
| - * specified view definition replaces the existing one. Only a view can be
|
| - * updated with a new definition.
|
| - *
|
| - * Completes with a [Table].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Table> update(Table request, core.String tableId, {core.bool replaceViewDefinition}) {
|
| + /// Updates an existing table. Unless explicitly requested, only the name,
|
| + /// description, and attribution will be updated.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - ID of the table that is being updated.
|
| + ///
|
| + /// [replaceViewDefinition] - Should the view definition also be updated? The
|
| + /// specified view definition replaces the existing one. Only a view can be
|
| + /// updated with a new definition.
|
| + ///
|
| + /// Completes with a [Table].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Table> update(Table request, core.String tableId,
|
| + {core.bool replaceViewDefinition}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1228,40 +1220,34 @@ class TableResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Table.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class TaskResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - TaskResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Deletes the task, unless already started.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table from which the task is being deleted.
|
| - *
|
| - * [taskId] - null
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + TaskResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Deletes the task, unless already started.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table from which the task is being deleted.
|
| + ///
|
| + /// [taskId] - null
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String tableId, core.String taskId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1279,35 +1265,35 @@ class TaskResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/tasks/' + commons.Escaper.ecapeVariable('$taskId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/tasks/' +
|
| + commons.Escaper.ecapeVariable('$taskId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves a specific task by its id.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table to which the task belongs.
|
| - *
|
| - * [taskId] - null
|
| - *
|
| - * Completes with a [Task].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves a specific task by its id.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table to which the task belongs.
|
| + ///
|
| + /// [taskId] - null
|
| + ///
|
| + /// Completes with a [Task].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Task> get(core.String tableId, core.String taskId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1323,40 +1309,42 @@ class TaskResourceApi {
|
| throw new core.ArgumentError("Parameter taskId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/tasks/' + commons.Escaper.ecapeVariable('$taskId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/tasks/' +
|
| + commons.Escaper.ecapeVariable('$taskId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Task.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves a list of tasks.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table whose tasks are being listed.
|
| - *
|
| - * [maxResults] - Maximum number of columns to return. Optional. Default is 5.
|
| - *
|
| - * [pageToken] - null
|
| - *
|
| - * [startIndex] - null
|
| - *
|
| - * Completes with a [TaskList].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<TaskList> list(core.String tableId, {core.int maxResults, core.String pageToken, core.int startIndex}) {
|
| + /// Retrieves a list of tasks.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table whose tasks are being listed.
|
| + ///
|
| + /// [maxResults] - Maximum number of columns to return. Optional. Default is
|
| + /// 5.
|
| + ///
|
| + /// [pageToken] - null
|
| + ///
|
| + /// [startIndex] - null
|
| + ///
|
| + /// Completes with a [TaskList].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<TaskList> list(core.String tableId,
|
| + {core.int maxResults, core.String pageToken, core.int startIndex}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1379,40 +1367,34 @@ class TaskResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/tasks';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new TaskList.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| class TemplateResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - TemplateResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Deletes a template
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table from which the template is being deleted
|
| - *
|
| - * [templateId] - Identifier for the template which is being deleted
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + TemplateResourceApi(commons.ApiRequester client) : _requester = client;
|
| +
|
| + /// Deletes a template
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table from which the template is being deleted
|
| + ///
|
| + /// [templateId] - Identifier for the template which is being deleted
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future delete(core.String tableId, core.int templateId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1430,35 +1412,35 @@ class TemplateResourceApi {
|
|
|
| _downloadOptions = null;
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates/' + commons.Escaper.ecapeVariable('$templateId');
|
| -
|
| - var _response = _requester.request(_url,
|
| - "DELETE",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/templates/' +
|
| + commons.Escaper.ecapeVariable('$templateId');
|
| +
|
| + var _response = _requester.request(_url, "DELETE",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => null);
|
| }
|
|
|
| - /**
|
| - * Retrieves a specific template by its id
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table to which the template belongs
|
| - *
|
| - * [templateId] - Identifier for the template that is being requested
|
| - *
|
| - * Completes with a [Template].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Retrieves a specific template by its id
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table to which the template belongs
|
| + ///
|
| + /// [templateId] - Identifier for the template that is being requested
|
| + ///
|
| + /// Completes with a [Template].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Template> get(core.String tableId, core.int templateId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1474,35 +1456,35 @@ class TemplateResourceApi {
|
| throw new core.ArgumentError("Parameter templateId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates/' + commons.Escaper.ecapeVariable('$templateId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/templates/' +
|
| + commons.Escaper.ecapeVariable('$templateId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Template.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Creates a new template for the table.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table for which a new template is being created
|
| - *
|
| - * Completes with a [Template].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| + /// Creates a new template for the table.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table for which a new template is being created
|
| + ///
|
| + /// Completes with a [Template].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| async.Future<Template> insert(Template request, core.String tableId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| @@ -1520,38 +1502,36 @@ class TemplateResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Template.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Retrieves a list of templates.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Identifier for the table whose templates are being requested
|
| - *
|
| - * [maxResults] - Maximum number of templates to return. Optional. Default is
|
| - * 5.
|
| - *
|
| - * [pageToken] - Continuation token specifying which results page to return.
|
| - * Optional.
|
| - *
|
| - * Completes with a [TemplateList].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<TemplateList> list(core.String tableId, {core.int maxResults, core.String pageToken}) {
|
| + /// Retrieves a list of templates.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Identifier for the table whose templates are being requested
|
| + ///
|
| + /// [maxResults] - Maximum number of templates to return. Optional. Default
|
| + /// is 5.
|
| + ///
|
| + /// [pageToken] - Continuation token specifying which results page to return.
|
| + /// Optional.
|
| + ///
|
| + /// Completes with a [TemplateList].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<TemplateList> list(core.String tableId,
|
| + {core.int maxResults, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1571,36 +1551,34 @@ class TemplateResourceApi {
|
|
|
| _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates';
|
|
|
| - var _response = _requester.request(_url,
|
| - "GET",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new TemplateList.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates an existing template. This method supports patch semantics.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table to which the updated template belongs
|
| - *
|
| - * [templateId] - Identifier for the template that is being updated
|
| - *
|
| - * Completes with a [Template].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Template> patch(Template request, core.String tableId, core.int templateId) {
|
| + /// Updates an existing template. This method supports patch semantics.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table to which the updated template belongs
|
| + ///
|
| + /// [templateId] - Identifier for the template that is being updated
|
| + ///
|
| + /// Completes with a [Template].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Template> patch(
|
| + Template request, core.String tableId, core.int templateId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1618,38 +1596,39 @@ class TemplateResourceApi {
|
| throw new core.ArgumentError("Parameter templateId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates/' + commons.Escaper.ecapeVariable('$templateId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/templates/' +
|
| + commons.Escaper.ecapeVariable('$templateId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PATCH",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Template.fromJson(data));
|
| }
|
|
|
| - /**
|
| - * Updates an existing template
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * [tableId] - Table to which the updated template belongs
|
| - *
|
| - * [templateId] - Identifier for the template that is being updated
|
| - *
|
| - * Completes with a [Template].
|
| - *
|
| - * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| - * error.
|
| - *
|
| - * If the used [http.Client] completes with an error when making a REST call,
|
| - * this method will complete with the same error.
|
| - */
|
| - async.Future<Template> update(Template request, core.String tableId, core.int templateId) {
|
| + /// Updates an existing template
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// [tableId] - Table to which the updated template belongs
|
| + ///
|
| + /// [templateId] - Identifier for the template that is being updated
|
| + ///
|
| + /// Completes with a [Template].
|
| + ///
|
| + /// Completes with a [commons.ApiRequestError] if the API endpoint returned
|
| + /// an error.
|
| + ///
|
| + /// If the used [http.Client] completes with an error when making a REST
|
| + /// call, this method will complete with the same error.
|
| + async.Future<Template> update(
|
| + Template request, core.String tableId, core.int templateId) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1667,44 +1646,42 @@ class TemplateResourceApi {
|
| throw new core.ArgumentError("Parameter templateId is required.");
|
| }
|
|
|
| - _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/templates/' + commons.Escaper.ecapeVariable('$templateId');
|
| + _url = 'tables/' +
|
| + commons.Escaper.ecapeVariable('$tableId') +
|
| + '/templates/' +
|
| + commons.Escaper.ecapeVariable('$templateId');
|
|
|
| - var _response = _requester.request(_url,
|
| - "PUT",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| + var _response = _requester.request(_url, "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| return _response.then((data) => new Template.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| -
|
| -/**
|
| - * Specifies the minimum and maximum values, the color, opacity, icon and weight
|
| - * of a bucket within a StyleSetting.
|
| - */
|
| +/// Specifies the minimum and maximum values, the color, opacity, icon and
|
| +/// weight of a bucket within a StyleSetting.
|
| class Bucket {
|
| - /** Color of line or the interior of a polygon in #RRGGBB format. */
|
| + /// Color of line or the interior of a polygon in #RRGGBB format.
|
| core.String color;
|
| - /** Icon name used for a point. */
|
| +
|
| + /// Icon name used for a point.
|
| core.String icon;
|
| - /**
|
| - * Maximum value in the selected column for a row to be styled according to
|
| - * the bucket color, opacity, icon, or weight.
|
| - */
|
| +
|
| + /// Maximum value in the selected column for a row to be styled according to
|
| + /// the bucket color, opacity, icon, or weight.
|
| core.double max;
|
| - /**
|
| - * Minimum value in the selected column for a row to be styled according to
|
| - * the bucket color, opacity, icon, or weight.
|
| - */
|
| +
|
| + /// Minimum value in the selected column for a row to be styled according to
|
| + /// the bucket color, opacity, icon, or weight.
|
| core.double min;
|
| - /** Opacity of the color: 0.0 (transparent) to 1.0 (opaque). */
|
| +
|
| + /// Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
|
| core.double opacity;
|
| - /** Width of a line (in pixels). */
|
| +
|
| + /// Width of a line (in pixels).
|
| core.int weight;
|
|
|
| Bucket();
|
| @@ -1731,7 +1708,8 @@ class Bucket {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (color != null) {
|
| _json["color"] = color;
|
| }
|
| @@ -1754,18 +1732,13 @@ class Bucket {
|
| }
|
| }
|
|
|
| -/**
|
| - * Optional identifier of the base column. If present, this column is derived
|
| - * from the specified base column.
|
| - */
|
| +/// Optional identifier of the base column. If present, this column is derived
|
| +/// from the specified base column.
|
| class ColumnBaseColumn {
|
| - /**
|
| - * The id of the column in the base table from which this column is derived.
|
| - */
|
| + /// The id of the column in the base table from which this column is derived.
|
| core.int columnId;
|
| - /**
|
| - * Offset to the entry in the list of base tables in the table definition.
|
| - */
|
| +
|
| + /// Offset to the entry in the list of base tables in the table definition.
|
| core.int tableIndex;
|
|
|
| ColumnBaseColumn();
|
| @@ -1780,7 +1753,8 @@ class ColumnBaseColumn {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (columnId != null) {
|
| _json["columnId"] = columnId;
|
| }
|
| @@ -1791,28 +1765,30 @@ class ColumnBaseColumn {
|
| }
|
| }
|
|
|
| -/** Specifies the id, name and type of a column in a table. */
|
| +/// Specifies the id, name and type of a column in a table.
|
| class Column {
|
| - /**
|
| - * Optional identifier of the base column. If present, this column is derived
|
| - * from the specified base column.
|
| - */
|
| + /// Optional identifier of the base column. If present, this column is
|
| + /// derived from the specified base column.
|
| ColumnBaseColumn baseColumn;
|
| - /** Identifier for the column. */
|
| +
|
| + /// Identifier for the column.
|
| core.int columnId;
|
| - /** Optional column description. */
|
| +
|
| + /// Optional column description.
|
| core.String description;
|
| - /**
|
| - * Optional column predicate. Used to map table to graph data model
|
| - * (subject,predicate,object) See
|
| - * http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
|
| - */
|
| +
|
| + /// Optional column predicate. Used to map table to graph data model
|
| + /// (subject,predicate,object) See
|
| + /// http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
|
| core.String graphPredicate;
|
| - /** Type name: a template for an individual column. */
|
| +
|
| + /// Type name: a template for an individual column.
|
| core.String kind;
|
| - /** Required name of the column. */
|
| +
|
| + /// Required name of the column.
|
| core.String name;
|
| - /** Required type of the column. */
|
| +
|
| + /// Required type of the column.
|
| core.String type;
|
|
|
| Column();
|
| @@ -1842,7 +1818,8 @@ class Column {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (baseColumn != null) {
|
| _json["baseColumn"] = (baseColumn).toJson();
|
| }
|
| @@ -1868,25 +1845,27 @@ class Column {
|
| }
|
| }
|
|
|
| -/** Represents a list of columns in a table. */
|
| +/// Represents a list of columns in a table.
|
| class ColumnList {
|
| - /** List of all requested columns. */
|
| + /// List of all requested columns.
|
| core.List<Column> items;
|
| - /** Type name: a list of all columns. */
|
| +
|
| + /// Type name: a list of all columns.
|
| core.String kind;
|
| - /**
|
| - * Token used to access the next page of this result. No token is displayed if
|
| - * there are no more pages left.
|
| - */
|
| +
|
| + /// Token used to access the next page of this result. No token is displayed
|
| + /// if there are no more pages left.
|
| core.String nextPageToken;
|
| - /** Total number of columns for the table. */
|
| +
|
| + /// Total number of columns for the table.
|
| core.int totalItems;
|
|
|
| ColumnList();
|
|
|
| ColumnList.fromJson(core.Map _json) {
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Column.fromJson(value)).toList();
|
| + items =
|
| + _json["items"].map((value) => new Column.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -1900,7 +1879,8 @@ class ColumnList {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (items != null) {
|
| _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -1917,23 +1897,21 @@ class ColumnList {
|
| }
|
| }
|
|
|
| -/** Represents a Geometry object. */
|
| +/// Represents a Geometry object.
|
| class Geometry {
|
| - /**
|
| - * The list of geometries in this geometry collection.
|
| - *
|
| - * The values for Object must be JSON objects. It can consist of `num`,
|
| - * `String`, `bool` and `null` as well as `Map` and `List` values.
|
| - */
|
| + /// The list of geometries in this geometry collection.
|
| + ///
|
| + /// The values for Object must be JSON objects. It can consist of `num`,
|
| + /// `String`, `bool` and `null` as well as `Map` and `List` values.
|
| core.List<core.Object> geometries;
|
| - /**
|
| - *
|
| - *
|
| - * The values for Object must be JSON objects. It can consist of `num`,
|
| - * `String`, `bool` and `null` as well as `Map` and `List` values.
|
| - */
|
| +
|
| + ///
|
| + ///
|
| + /// The values for Object must be JSON objects. It can consist of `num`,
|
| + /// `String`, `bool` and `null` as well as `Map` and `List` values.
|
| core.Object geometry;
|
| - /** Type: A collection of geometries. */
|
| +
|
| + /// Type: A collection of geometries.
|
| core.String type;
|
|
|
| Geometry();
|
| @@ -1951,7 +1929,8 @@ class Geometry {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (geometries != null) {
|
| _json["geometries"] = geometries;
|
| }
|
| @@ -1965,11 +1944,12 @@ class Geometry {
|
| }
|
| }
|
|
|
| -/** Represents an import request. */
|
| +/// Represents an import request.
|
| class Import {
|
| - /** Type name: a template for an import request. */
|
| + /// Type name: a template for an import request.
|
| core.String kind;
|
| - /** The number of rows received from the import request. */
|
| +
|
| + /// The number of rows received from the import request.
|
| core.String numRowsReceived;
|
|
|
| Import();
|
| @@ -1984,7 +1964,8 @@ class Import {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -1995,11 +1976,12 @@ class Import {
|
| }
|
| }
|
|
|
| -/** Represents a line geometry. */
|
| +/// Represents a line geometry.
|
| class Line {
|
| - /** The coordinates that define the line. */
|
| + /// The coordinates that define the line.
|
| core.List<core.List<core.double>> coordinates;
|
| - /** Type: A line geometry. */
|
| +
|
| + /// Type: A line geometry.
|
| core.String type;
|
|
|
| Line();
|
| @@ -2014,7 +1996,8 @@ class Line {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (coordinates != null) {
|
| _json["coordinates"] = coordinates;
|
| }
|
| @@ -2025,23 +2008,23 @@ class Line {
|
| }
|
| }
|
|
|
| -/** Represents a LineStyle within a StyleSetting */
|
| +/// Represents a LineStyle within a StyleSetting
|
| class LineStyle {
|
| - /** Color of the line in #RRGGBB format. */
|
| + /// Color of the line in #RRGGBB format.
|
| core.String strokeColor;
|
| - /**
|
| - * Column-value, gradient or buckets styler that is used to determine the line
|
| - * color and opacity.
|
| - */
|
| +
|
| + /// Column-value, gradient or buckets styler that is used to determine the
|
| + /// line color and opacity.
|
| StyleFunction strokeColorStyler;
|
| - /** Opacity of the line : 0.0 (transparent) to 1.0 (opaque). */
|
| +
|
| + /// Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
|
| core.double strokeOpacity;
|
| - /** Width of the line in pixels. */
|
| +
|
| + /// Width of the line in pixels.
|
| core.int strokeWeight;
|
| - /**
|
| - * Column-value or bucket styler that is used to determine the width of the
|
| - * line.
|
| - */
|
| +
|
| + /// Column-value or bucket styler that is used to determine the width of the
|
| + /// line.
|
| StyleFunction strokeWeightStyler;
|
|
|
| LineStyle();
|
| @@ -2051,7 +2034,8 @@ class LineStyle {
|
| strokeColor = _json["strokeColor"];
|
| }
|
| if (_json.containsKey("strokeColorStyler")) {
|
| - strokeColorStyler = new StyleFunction.fromJson(_json["strokeColorStyler"]);
|
| + strokeColorStyler =
|
| + new StyleFunction.fromJson(_json["strokeColorStyler"]);
|
| }
|
| if (_json.containsKey("strokeOpacity")) {
|
| strokeOpacity = _json["strokeOpacity"];
|
| @@ -2060,12 +2044,14 @@ class LineStyle {
|
| strokeWeight = _json["strokeWeight"];
|
| }
|
| if (_json.containsKey("strokeWeightStyler")) {
|
| - strokeWeightStyler = new StyleFunction.fromJson(_json["strokeWeightStyler"]);
|
| + strokeWeightStyler =
|
| + new StyleFunction.fromJson(_json["strokeWeightStyler"]);
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (strokeColor != null) {
|
| _json["strokeColor"] = strokeColor;
|
| }
|
| @@ -2085,11 +2071,12 @@ class LineStyle {
|
| }
|
| }
|
|
|
| -/** Represents a point object. */
|
| +/// Represents a point object.
|
| class Point {
|
| - /** The coordinates that define the point. */
|
| + /// The coordinates that define the point.
|
| core.List<core.double> coordinates;
|
| - /** Point: A point geometry. */
|
| +
|
| + /// Point: A point geometry.
|
| core.String type;
|
|
|
| Point();
|
| @@ -2104,7 +2091,8 @@ class Point {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (coordinates != null) {
|
| _json["coordinates"] = coordinates;
|
| }
|
| @@ -2115,14 +2103,13 @@ class Point {
|
| }
|
| }
|
|
|
| -/** Represents a PointStyle within a StyleSetting */
|
| +/// Represents a PointStyle within a StyleSetting
|
| class PointStyle {
|
| - /**
|
| - * Name of the icon. Use values defined in
|
| - * http://www.google.com/fusiontables/DataSource?dsrcid=308519
|
| - */
|
| + /// Name of the icon. Use values defined in
|
| + /// http://www.google.com/fusiontables/DataSource?dsrcid=308519
|
| core.String iconName;
|
| - /** Column or a bucket value from which the icon name is to be determined. */
|
| +
|
| + /// Column or a bucket value from which the icon name is to be determined.
|
| StyleFunction iconStyler;
|
|
|
| PointStyle();
|
| @@ -2137,7 +2124,8 @@ class PointStyle {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (iconName != null) {
|
| _json["iconName"] = iconName;
|
| }
|
| @@ -2148,11 +2136,12 @@ class PointStyle {
|
| }
|
| }
|
|
|
| -/** Represents a polygon object. */
|
| +/// Represents a polygon object.
|
| class Polygon {
|
| - /** The coordinates that define the polygon. */
|
| + /// The coordinates that define the polygon.
|
| core.List<core.List<core.List<core.double>>> coordinates;
|
| - /** Type: A polygon geometry. */
|
| +
|
| + /// Type: A polygon geometry.
|
| core.String type;
|
|
|
| Polygon();
|
| @@ -2167,7 +2156,8 @@ class Polygon {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (coordinates != null) {
|
| _json["coordinates"] = coordinates;
|
| }
|
| @@ -2178,34 +2168,34 @@ class Polygon {
|
| }
|
| }
|
|
|
| -/** Represents a PolygonStyle within a StyleSetting */
|
| +/// Represents a PolygonStyle within a StyleSetting
|
| class PolygonStyle {
|
| - /** Color of the interior of the polygon in #RRGGBB format. */
|
| + /// Color of the interior of the polygon in #RRGGBB format.
|
| core.String fillColor;
|
| - /**
|
| - * Column-value, gradient, or bucket styler that is used to determine the
|
| - * interior color and opacity of the polygon.
|
| - */
|
| +
|
| + /// Column-value, gradient, or bucket styler that is used to determine the
|
| + /// interior color and opacity of the polygon.
|
| StyleFunction fillColorStyler;
|
| - /**
|
| - * Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
|
| - */
|
| +
|
| + /// Opacity of the interior of the polygon: 0.0 (transparent) to 1.0
|
| + /// (opaque).
|
| core.double fillOpacity;
|
| - /** Color of the polygon border in #RRGGBB format. */
|
| +
|
| + /// Color of the polygon border in #RRGGBB format.
|
| core.String strokeColor;
|
| - /**
|
| - * Column-value, gradient or buckets styler that is used to determine the
|
| - * border color and opacity.
|
| - */
|
| +
|
| + /// Column-value, gradient or buckets styler that is used to determine the
|
| + /// border color and opacity.
|
| StyleFunction strokeColorStyler;
|
| - /** Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). */
|
| +
|
| + /// Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
|
| core.double strokeOpacity;
|
| - /** Width of the polyon border in pixels. */
|
| +
|
| + /// Width of the polyon border in pixels.
|
| core.int strokeWeight;
|
| - /**
|
| - * Column-value or bucket styler that is used to determine the width of the
|
| - * polygon border.
|
| - */
|
| +
|
| + /// Column-value or bucket styler that is used to determine the width of the
|
| + /// polygon border.
|
| StyleFunction strokeWeightStyler;
|
|
|
| PolygonStyle();
|
| @@ -2224,7 +2214,8 @@ class PolygonStyle {
|
| strokeColor = _json["strokeColor"];
|
| }
|
| if (_json.containsKey("strokeColorStyler")) {
|
| - strokeColorStyler = new StyleFunction.fromJson(_json["strokeColorStyler"]);
|
| + strokeColorStyler =
|
| + new StyleFunction.fromJson(_json["strokeColorStyler"]);
|
| }
|
| if (_json.containsKey("strokeOpacity")) {
|
| strokeOpacity = _json["strokeOpacity"];
|
| @@ -2233,12 +2224,14 @@ class PolygonStyle {
|
| strokeWeight = _json["strokeWeight"];
|
| }
|
| if (_json.containsKey("strokeWeightStyler")) {
|
| - strokeWeightStyler = new StyleFunction.fromJson(_json["strokeWeightStyler"]);
|
| + strokeWeightStyler =
|
| + new StyleFunction.fromJson(_json["strokeWeightStyler"]);
|
| }
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (fillColor != null) {
|
| _json["fillColor"] = fillColor;
|
| }
|
| @@ -2267,20 +2260,20 @@ class PolygonStyle {
|
| }
|
| }
|
|
|
| -/** Represents a response to an sql statement. */
|
| +/// Represents a response to an sql statement.
|
| class Sqlresponse {
|
| - /** Columns in the table. */
|
| + /// Columns in the table.
|
| core.List<core.String> columns;
|
| - /** Type name: a template for an individual table. */
|
| +
|
| + /// Type name: a template for an individual table.
|
| core.String kind;
|
| - /**
|
| - * The rows in the table. For each cell we print out whatever cell value
|
| - * (e.g., numeric, string) exists. Thus it is important that each cell
|
| - * contains only one value.
|
| - *
|
| - * The values for Object must be JSON objects. It can consist of `num`,
|
| - * `String`, `bool` and `null` as well as `Map` and `List` values.
|
| - */
|
| +
|
| + /// The rows in the table. For each cell we print out whatever cell value
|
| + /// (e.g., numeric, string) exists. Thus it is important that each cell
|
| + /// contains only one value.
|
| + ///
|
| + /// The values for Object must be JSON objects. It can consist of `num`,
|
| + /// `String`, `bool` and `null` as well as `Map` and `List` values.
|
| core.List<core.List<core.Object>> rows;
|
|
|
| Sqlresponse();
|
| @@ -2298,7 +2291,8 @@ class Sqlresponse {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (columns != null) {
|
| _json["columns"] = columns;
|
| }
|
| @@ -2313,9 +2307,10 @@ class Sqlresponse {
|
| }
|
|
|
| class StyleFunctionGradientColors {
|
| - /** Color in #RRGGBB format. */
|
| + /// Color in #RRGGBB format.
|
| core.String color;
|
| - /** Opacity of the color: 0.0 (transparent) to 1.0 (opaque). */
|
| +
|
| + /// Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
|
| core.double opacity;
|
|
|
| StyleFunctionGradientColors();
|
| @@ -2330,7 +2325,8 @@ class StyleFunctionGradientColors {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (color != null) {
|
| _json["color"] = color;
|
| }
|
| @@ -2341,28 +2337,27 @@ class StyleFunctionGradientColors {
|
| }
|
| }
|
|
|
| -/**
|
| - * Gradient function that interpolates a range of colors based on column value.
|
| - */
|
| +/// Gradient function that interpolates a range of colors based on column
|
| +/// value.
|
| class StyleFunctionGradient {
|
| - /** Array with two or more colors. */
|
| + /// Array with two or more colors.
|
| core.List<StyleFunctionGradientColors> colors;
|
| - /**
|
| - * Higher-end of the interpolation range: rows with this value will be
|
| - * assigned to colors[n-1].
|
| - */
|
| +
|
| + /// Higher-end of the interpolation range: rows with this value will be
|
| + /// assigned to colors[n-1].
|
| core.double max;
|
| - /**
|
| - * Lower-end of the interpolation range: rows with this value will be assigned
|
| - * to colors[0].
|
| - */
|
| +
|
| + /// Lower-end of the interpolation range: rows with this value will be
|
| + /// assigned to colors[0].
|
| core.double min;
|
|
|
| StyleFunctionGradient();
|
|
|
| StyleFunctionGradient.fromJson(core.Map _json) {
|
| if (_json.containsKey("colors")) {
|
| - colors = _json["colors"].map((value) => new StyleFunctionGradientColors.fromJson(value)).toList();
|
| + colors = _json["colors"]
|
| + .map((value) => new StyleFunctionGradientColors.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("max")) {
|
| max = _json["max"];
|
| @@ -2373,7 +2368,8 @@ class StyleFunctionGradient {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (colors != null) {
|
| _json["colors"] = colors.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -2387,36 +2383,34 @@ class StyleFunctionGradient {
|
| }
|
| }
|
|
|
| -/** Represents a StyleFunction within a StyleSetting */
|
| +/// Represents a StyleFunction within a StyleSetting
|
| class StyleFunction {
|
| - /**
|
| - * Bucket function that assigns a style based on the range a column value
|
| - * falls into.
|
| - */
|
| + /// Bucket function that assigns a style based on the range a column value
|
| + /// falls into.
|
| core.List<Bucket> buckets;
|
| - /** Name of the column whose value is used in the style. */
|
| +
|
| + /// Name of the column whose value is used in the style.
|
| core.String columnName;
|
| - /**
|
| - * Gradient function that interpolates a range of colors based on column
|
| - * value.
|
| - */
|
| +
|
| + /// Gradient function that interpolates a range of colors based on column
|
| + /// value.
|
| StyleFunctionGradient gradient;
|
| - /**
|
| - * Stylers can be one of three kinds: "fusiontables#fromColumn" if the column
|
| - * value is to be used as is, i.e., the column values can have colors in
|
| - * #RRGGBBAA format or integer line widths or icon names;
|
| - * "fusiontables#gradient" if the styling of the row is to be based on
|
| - * applying the gradient function on the column value; or
|
| - * "fusiontables#buckets" if the styling is to based on the bucket into which
|
| - * the the column value falls.
|
| - */
|
| +
|
| + /// Stylers can be one of three kinds: "fusiontables#fromColumn" if the
|
| + /// column value is to be used as is, i.e., the column values can have colors
|
| + /// in #RRGGBBAA format or integer line widths or icon names;
|
| + /// "fusiontables#gradient" if the styling of the row is to be based on
|
| + /// applying the gradient function on the column value; or
|
| + /// "fusiontables#buckets" if the styling is to based on the bucket into
|
| + /// which the the column value falls.
|
| core.String kind;
|
|
|
| StyleFunction();
|
|
|
| StyleFunction.fromJson(core.Map _json) {
|
| if (_json.containsKey("buckets")) {
|
| - buckets = _json["buckets"].map((value) => new Bucket.fromJson(value)).toList();
|
| + buckets =
|
| + _json["buckets"].map((value) => new Bucket.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("columnName")) {
|
| columnName = _json["columnName"];
|
| @@ -2430,7 +2424,8 @@ class StyleFunction {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (buckets != null) {
|
| _json["buckets"] = buckets.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -2447,29 +2442,31 @@ class StyleFunction {
|
| }
|
| }
|
|
|
| -/**
|
| - * Represents a complete StyleSettings object. The primary key is a combination
|
| - * of the tableId and a styleId.
|
| - */
|
| +/// Represents a complete StyleSettings object. The primary key is a
|
| +/// combination of the tableId and a styleId.
|
| class StyleSetting {
|
| - /**
|
| - * Type name: an individual style setting. A StyleSetting contains the style
|
| - * defintions for points, lines, and polygons in a table. Since a table can
|
| - * have any one or all of them, a style definition can have point, line and
|
| - * polygon style definitions.
|
| - */
|
| + /// Type name: an individual style setting. A StyleSetting contains the style
|
| + /// defintions for points, lines, and polygons in a table. Since a table can
|
| + /// have any one or all of them, a style definition can have point, line and
|
| + /// polygon style definitions.
|
| core.String kind;
|
| - /** Style definition for points in the table. */
|
| +
|
| + /// Style definition for points in the table.
|
| PointStyle markerOptions;
|
| - /** Optional name for the style setting. */
|
| +
|
| + /// Optional name for the style setting.
|
| core.String name;
|
| - /** Style definition for polygons in the table. */
|
| +
|
| + /// Style definition for polygons in the table.
|
| PolygonStyle polygonOptions;
|
| - /** Style definition for lines in the table. */
|
| +
|
| + /// Style definition for lines in the table.
|
| LineStyle polylineOptions;
|
| - /** Identifier for the style setting (unique only within tables). */
|
| +
|
| + /// Identifier for the style setting (unique only within tables).
|
| core.int styleId;
|
| - /** Identifier for the table. */
|
| +
|
| + /// Identifier for the table.
|
| core.String tableId;
|
|
|
| StyleSetting();
|
| @@ -2499,7 +2496,8 @@ class StyleSetting {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -2525,25 +2523,28 @@ class StyleSetting {
|
| }
|
| }
|
|
|
| -/** Represents a list of styles for a given table. */
|
| +/// Represents a list of styles for a given table.
|
| class StyleSettingList {
|
| - /** All requested style settings. */
|
| + /// All requested style settings.
|
| core.List<StyleSetting> items;
|
| - /** Type name: in this case, a list of style settings. */
|
| +
|
| + /// Type name: in this case, a list of style settings.
|
| core.String kind;
|
| - /**
|
| - * Token used to access the next page of this result. No token is displayed if
|
| - * there are no more pages left.
|
| - */
|
| +
|
| + /// Token used to access the next page of this result. No token is displayed
|
| + /// if there are no more pages left.
|
| core.String nextPageToken;
|
| - /** Total number of styles for the table. */
|
| +
|
| + /// Total number of styles for the table.
|
| core.int totalItems;
|
|
|
| StyleSettingList();
|
|
|
| StyleSettingList.fromJson(core.Map _json) {
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new StyleSetting.fromJson(value)).toList();
|
| + items = _json["items"]
|
| + .map((value) => new StyleSetting.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -2557,7 +2558,8 @@ class StyleSettingList {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (items != null) {
|
| _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -2574,32 +2576,37 @@ class StyleSettingList {
|
| }
|
| }
|
|
|
| -/**
|
| - * Represents a table. Specifies the name, whether it is exportable,
|
| - * description, attribution, and attribution link.
|
| - */
|
| +/// Represents a table. Specifies the name, whether it is exportable,
|
| +/// description, attribution, and attribution link.
|
| class Table {
|
| - /** Optional attribution assigned to the table. */
|
| + /// Optional attribution assigned to the table.
|
| core.String attribution;
|
| - /** Optional link for attribution. */
|
| +
|
| + /// Optional link for attribution.
|
| core.String attributionLink;
|
| - /**
|
| - * Optional base table identifier if this table is a view or merged table.
|
| - */
|
| +
|
| + /// Optional base table identifier if this table is a view or merged table.
|
| core.List<core.String> baseTableIds;
|
| - /** Columns in the table. */
|
| +
|
| + /// Columns in the table.
|
| core.List<Column> columns;
|
| - /** Optional description assigned to the table. */
|
| +
|
| + /// Optional description assigned to the table.
|
| core.String description;
|
| - /** Variable for whether table is exportable. */
|
| +
|
| + /// Variable for whether table is exportable.
|
| core.bool isExportable;
|
| - /** Type name: a template for an individual table. */
|
| +
|
| + /// Type name: a template for an individual table.
|
| core.String kind;
|
| - /** Name assigned to a table. */
|
| +
|
| + /// Name assigned to a table.
|
| core.String name;
|
| - /** Optional sql that encodes the table definition for derived tables. */
|
| +
|
| + /// Optional sql that encodes the table definition for derived tables.
|
| core.String sql;
|
| - /** Encrypted unique alphanumeric identifier for the table. */
|
| +
|
| + /// Encrypted unique alphanumeric identifier for the table.
|
| core.String tableId;
|
|
|
| Table();
|
| @@ -2615,7 +2622,8 @@ class Table {
|
| baseTableIds = _json["baseTableIds"];
|
| }
|
| if (_json.containsKey("columns")) {
|
| - columns = _json["columns"].map((value) => new Column.fromJson(value)).toList();
|
| + columns =
|
| + _json["columns"].map((value) => new Column.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("description")) {
|
| description = _json["description"];
|
| @@ -2638,7 +2646,8 @@ class Table {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (attribution != null) {
|
| _json["attribution"] = attribution;
|
| }
|
| @@ -2673,16 +2682,16 @@ class Table {
|
| }
|
| }
|
|
|
| -/** Represents a list of tables. */
|
| +/// Represents a list of tables.
|
| class TableList {
|
| - /** List of all requested tables. */
|
| + /// List of all requested tables.
|
| core.List<Table> items;
|
| - /** Type name: a list of all tables. */
|
| +
|
| + /// Type name: a list of all tables.
|
| core.String kind;
|
| - /**
|
| - * Token used to access the next page of this result. No token is displayed if
|
| - * there are no more pages left.
|
| - */
|
| +
|
| + /// Token used to access the next page of this result. No token is displayed
|
| + /// if there are no more pages left.
|
| core.String nextPageToken;
|
|
|
| TableList();
|
| @@ -2700,7 +2709,8 @@ class TableList {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (items != null) {
|
| _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -2714,26 +2724,26 @@ class TableList {
|
| }
|
| }
|
|
|
| -/** Specifies the identifier, name, and type of a task in a table. */
|
| +/// Specifies the identifier, name, and type of a task in a table.
|
| class Task {
|
| - /** Type of the resource. This is always "fusiontables#task". */
|
| + /// Type of the resource. This is always "fusiontables#task".
|
| core.String kind;
|
| - /** An indication of task progress. */
|
| +
|
| + /// An indication of task progress.
|
| core.String progress;
|
| - /**
|
| - * false while the table is busy with some other task. true if this background
|
| - * task is currently running.
|
| - */
|
| +
|
| + /// false while the table is busy with some other task. true if this
|
| + /// background task is currently running.
|
| core.bool started;
|
| - /** Identifier for the task. */
|
| +
|
| + /// Identifier for the task.
|
| core.String taskId;
|
| - /**
|
| - * Type of background task. One of DELETE_ROWS Deletes one or more rows from
|
| - * the table. ADD_ROWS "Adds one or more rows to a table. Includes importing
|
| - * data into a new table and importing more rows into an existing table.
|
| - * ADD_COLUMN Adds a new column to the table. CHANGE_TYPE Changes the type of
|
| - * a column.
|
| - */
|
| +
|
| + /// Type of background task. One of DELETE_ROWS Deletes one or more rows
|
| + /// from the table. ADD_ROWS "Adds one or more rows to a table. Includes
|
| + /// importing data into a new table and importing more rows into an existing
|
| + /// table. ADD_COLUMN Adds a new column to the table. CHANGE_TYPE Changes the
|
| + /// type of a column.
|
| core.String type;
|
|
|
| Task();
|
| @@ -2757,7 +2767,8 @@ class Task {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (kind != null) {
|
| _json["kind"] = kind;
|
| }
|
| @@ -2777,18 +2788,19 @@ class Task {
|
| }
|
| }
|
|
|
| -/** Represents a list of tasks for a table. */
|
| +/// Represents a list of tasks for a table.
|
| class TaskList {
|
| - /** List of all requested tasks. */
|
| + /// List of all requested tasks.
|
| core.List<Task> items;
|
| - /** Type of the resource. This is always "fusiontables#taskList". */
|
| +
|
| + /// Type of the resource. This is always "fusiontables#taskList".
|
| core.String kind;
|
| - /**
|
| - * Token used to access the next page of this result. No token is displayed if
|
| - * there are no more pages left.
|
| - */
|
| +
|
| + /// Token used to access the next page of this result. No token is displayed
|
| + /// if there are no more pages left.
|
| core.String nextPageToken;
|
| - /** Total number of tasks for the table. */
|
| +
|
| + /// Total number of tasks for the table.
|
| core.int totalItems;
|
|
|
| TaskList();
|
| @@ -2809,7 +2821,8 @@ class TaskList {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (items != null) {
|
| _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
| @@ -2826,33 +2839,31 @@ class TaskList {
|
| }
|
| }
|
|
|
| -/** Represents the contents of InfoWindow templates. */
|
| +/// Represents the contents of InfoWindow templates.
|
| class Template {
|
| - /**
|
| - * List of columns from which the template is to be automatically constructed.
|
| - * Only one of body or automaticColumns can be specified.
|
| - */
|
| + /// List of columns from which the template is to be automatically
|
| + /// constructed. Only one of body or automaticColumns can be specified.
|
| core.List<core.String> automaticColumnNames;
|
| - /**
|
| - * Body of the template. It contains HTML with {column_name} to insert values
|
| - * from a particular column. The body is sanitized to remove certain tags,
|
| - * e.g., script. Only one of body or automaticColumns can be specified.
|
| - */
|
| +
|
| + /// Body of the template. It contains HTML with {column_name} to insert
|
| + /// values from a particular column. The body is sanitized to remove certain
|
| + /// tags, e.g., script. Only one of body or automaticColumns can be
|
| + /// specified.
|
| core.String body;
|
| - /**
|
| - * Type name: a template for the info window contents. The template can either
|
| - * include an HTML body or a list of columns from which the template is
|
| - * computed automatically.
|
| - */
|
| +
|
| + /// Type name: a template for the info window contents. The template can
|
| + /// either include an HTML body or a list of columns from which the template
|
| + /// is computed automatically.
|
| core.String kind;
|
| - /** Optional name assigned to a template. */
|
| +
|
| + /// Optional name assigned to a template.
|
| core.String name;
|
| - /** Identifier for the table for which the template is defined. */
|
| +
|
| + /// Identifier for the table for which the template is defined.
|
| core.String tableId;
|
| - /**
|
| - * Identifier for the template, unique within the context of a particular
|
| - * table.
|
| - */
|
| +
|
| + /// Identifier for the template, unique within the context of a particular
|
| + /// table.
|
| core.int templateId;
|
|
|
| Template();
|
| @@ -2879,7 +2890,8 @@ class Template {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (automaticColumnNames != null) {
|
| _json["automaticColumnNames"] = automaticColumnNames;
|
| }
|
| @@ -2902,25 +2914,27 @@ class Template {
|
| }
|
| }
|
|
|
| -/** Represents a list of templates for a given table. */
|
| +/// Represents a list of templates for a given table.
|
| class TemplateList {
|
| - /** List of all requested templates. */
|
| + /// List of all requested templates.
|
| core.List<Template> items;
|
| - /** Type name: a list of all templates. */
|
| +
|
| + /// Type name: a list of all templates.
|
| core.String kind;
|
| - /**
|
| - * Token used to access the next page of this result. No token is displayed if
|
| - * there are no more pages left.
|
| - */
|
| +
|
| + /// Token used to access the next page of this result. No token is displayed
|
| + /// if there are no more pages left.
|
| core.String nextPageToken;
|
| - /** Total number of templates for the table. */
|
| +
|
| + /// Total number of templates for the table.
|
| core.int totalItems;
|
|
|
| TemplateList();
|
|
|
| TemplateList.fromJson(core.Map _json) {
|
| if (_json.containsKey("items")) {
|
| - items = _json["items"].map((value) => new Template.fromJson(value)).toList();
|
| + items =
|
| + _json["items"].map((value) => new Template.fromJson(value)).toList();
|
| }
|
| if (_json.containsKey("kind")) {
|
| kind = _json["kind"];
|
| @@ -2934,7 +2948,8 @@ class TemplateList {
|
| }
|
|
|
| core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| + final core.Map<core.String, core.Object> _json =
|
| + new core.Map<core.String, core.Object>();
|
| if (items != null) {
|
| _json["items"] = items.map((value) => (value).toJson()).toList();
|
| }
|
|
|