| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.youtubeAnalytics.v1; | 3 library googleapis.youtubeAnalytics.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 * | 522 * |
| 523 * [filters] - A list of filters that should be applied when retrieving | 523 * [filters] - A list of filters that should be applied when retrieving |
| 524 * YouTube Analytics data. The Available Reports document identifies the | 524 * YouTube Analytics data. The Available Reports document identifies the |
| 525 * dimensions that can be used to filter each report, and the Dimensions | 525 * dimensions that can be used to filter each report, and the Dimensions |
| 526 * document defines those dimensions. If a request uses multiple filters, join | 526 * document defines those dimensions. If a request uses multiple filters, join |
| 527 * them together with a semicolon (;), and the returned result table will | 527 * them together with a semicolon (;), and the returned result table will |
| 528 * satisfy both filters. For example, a filters parameter value of | 528 * satisfy both filters. For example, a filters parameter value of |
| 529 * video==dMH0bHeiRNg;country==IT restricts the result set to include data for | 529 * video==dMH0bHeiRNg;country==IT restricts the result set to include data for |
| 530 * the given video in Italy. | 530 * the given video in Italy. |
| 531 * | 531 * |
| 532 * [include_historical_channel_data] - If set to true historical data (i.e. |
| 533 * channel data from before the linking of the channel to the content owner) |
| 534 * will be retrieved. |
| 535 * |
| 532 * [max_results] - The maximum number of rows to include in the response. | 536 * [max_results] - The maximum number of rows to include in the response. |
| 533 * | 537 * |
| 534 * [sort] - A comma-separated list of dimensions or metrics that determine the | 538 * [sort] - A comma-separated list of dimensions or metrics that determine the |
| 535 * sort order for YouTube Analytics data. By default the sort order is | 539 * sort order for YouTube Analytics data. By default the sort order is |
| 536 * ascending. The '-' prefix causes descending sort order. | 540 * ascending. The '-' prefix causes descending sort order. |
| 537 * Value must have pattern "[-0-9a-zA-Z,]+". | 541 * Value must have pattern "[-0-9a-zA-Z,]+". |
| 538 * | 542 * |
| 539 * [start_index] - An index of the first entity to retrieve. Use this | 543 * [start_index] - An index of the first entity to retrieve. Use this |
| 540 * parameter as a pagination mechanism along with the max-results parameter | 544 * parameter as a pagination mechanism along with the max-results parameter |
| 541 * (one-based, inclusive). | 545 * (one-based, inclusive). |
| 542 * | 546 * |
| 543 * Completes with a [ResultTable]. | 547 * Completes with a [ResultTable]. |
| 544 * | 548 * |
| 545 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 549 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 546 * error. | 550 * error. |
| 547 * | 551 * |
| 548 * If the used [http.Client] completes with an error when making a REST call, | 552 * If the used [http.Client] completes with an error when making a REST call, |
| 549 * this method will complete with the same error. | 553 * this method will complete with the same error. |
| 550 */ | 554 */ |
| 551 async.Future<ResultTable> query(core.String ids, core.String start_date, core.
String end_date, core.String metrics, {core.String currency, core.String dimensi
ons, core.String filters, core.int max_results, core.String sort, core.int start
_index}) { | 555 async.Future<ResultTable> query(core.String ids, core.String start_date, core.
String end_date, core.String metrics, {core.String currency, core.String dimensi
ons, core.String filters, core.bool include_historical_channel_data, core.int ma
x_results, core.String sort, core.int start_index}) { |
| 552 var _url = null; | 556 var _url = null; |
| 553 var _queryParams = new core.Map(); | 557 var _queryParams = new core.Map(); |
| 554 var _uploadMedia = null; | 558 var _uploadMedia = null; |
| 555 var _uploadOptions = null; | 559 var _uploadOptions = null; |
| 556 var _downloadOptions = commons.DownloadOptions.Metadata; | 560 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 557 var _body = null; | 561 var _body = null; |
| 558 | 562 |
| 559 if (ids == null) { | 563 if (ids == null) { |
| 560 throw new core.ArgumentError("Parameter ids is required."); | 564 throw new core.ArgumentError("Parameter ids is required."); |
| 561 } | 565 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 574 _queryParams["metrics"] = [metrics]; | 578 _queryParams["metrics"] = [metrics]; |
| 575 if (currency != null) { | 579 if (currency != null) { |
| 576 _queryParams["currency"] = [currency]; | 580 _queryParams["currency"] = [currency]; |
| 577 } | 581 } |
| 578 if (dimensions != null) { | 582 if (dimensions != null) { |
| 579 _queryParams["dimensions"] = [dimensions]; | 583 _queryParams["dimensions"] = [dimensions]; |
| 580 } | 584 } |
| 581 if (filters != null) { | 585 if (filters != null) { |
| 582 _queryParams["filters"] = [filters]; | 586 _queryParams["filters"] = [filters]; |
| 583 } | 587 } |
| 588 if (include_historical_channel_data != null) { |
| 589 _queryParams["include-historical-channel-data"] = ["${include_historical_c
hannel_data}"]; |
| 590 } |
| 584 if (max_results != null) { | 591 if (max_results != null) { |
| 585 _queryParams["max-results"] = ["${max_results}"]; | 592 _queryParams["max-results"] = ["${max_results}"]; |
| 586 } | 593 } |
| 587 if (sort != null) { | 594 if (sort != null) { |
| 588 _queryParams["sort"] = [sort]; | 595 _queryParams["sort"] = [sort]; |
| 589 } | 596 } |
| 590 if (start_index != null) { | 597 if (start_index != null) { |
| 591 _queryParams["start-index"] = ["${start_index}"]; | 598 _queryParams["start-index"] = ["${start_index}"]; |
| 592 } | 599 } |
| 593 | 600 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 } | 970 } |
| 964 if (kind != null) { | 971 if (kind != null) { |
| 965 _json["kind"] = kind; | 972 _json["kind"] = kind; |
| 966 } | 973 } |
| 967 if (rows != null) { | 974 if (rows != null) { |
| 968 _json["rows"] = rows; | 975 _json["rows"] = rows; |
| 969 } | 976 } |
| 970 return _json; | 977 return _json; |
| 971 } | 978 } |
| 972 } | 979 } |
| OLD | NEW |