| 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.youtubereporting.v1; | 3 library googleapis.youtubereporting.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; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 15 ByteRange; | 15 ByteRange; |
| 16 | 16 |
| 17 const core.String USER_AGENT = 'dart-api-client youtubereporting/v1'; | 17 const core.String USER_AGENT = 'dart-api-client youtubereporting/v1'; |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * An API to schedule reporting jobs and download the resulting bulk data | 20 * Schedules reporting jobs and downloads the resulting bulk data reports about |
| 21 * reports about YouTube channels, videos etc. in the form of CSV files. | 21 * YouTube channels, videos, etc. in the form of CSV files. |
| 22 */ | 22 */ |
| 23 class YoutubereportingApi { | 23 class YoutubereportingApi { |
| 24 /** | 24 /** |
| 25 * View monetary and non-monetary YouTube Analytics reports for your YouTube | 25 * View monetary and non-monetary YouTube Analytics reports for your YouTube |
| 26 * content | 26 * content |
| 27 */ | 27 */ |
| 28 static const YtAnalyticsMonetaryReadonlyScope = "https://www.googleapis.com/au
th/yt-analytics-monetary.readonly"; | 28 static const YtAnalyticsMonetaryReadonlyScope = "https://www.googleapis.com/au
th/yt-analytics-monetary.readonly"; |
| 29 | 29 |
| 30 /** View YouTube Analytics reports for your YouTube content */ | 30 /** View YouTube Analytics reports for your YouTube content */ |
| 31 static const YtAnalyticsReadonlyScope = "https://www.googleapis.com/auth/yt-an
alytics.readonly"; | 31 static const YtAnalyticsReadonlyScope = "https://www.googleapis.com/auth/yt-an
alytics.readonly"; |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 MediaResourceApi(commons.ApiRequester client) : | 378 MediaResourceApi(commons.ApiRequester client) : |
| 379 _requester = client; | 379 _requester = client; |
| 380 | 380 |
| 381 /** | 381 /** |
| 382 * Method for media download. Download is supported on the URI | 382 * Method for media download. Download is supported on the URI |
| 383 * `/v1/media/{+name}?alt=media`. | 383 * `/v1/media/{+name}?alt=media`. |
| 384 * | 384 * |
| 385 * Request parameters: | 385 * Request parameters: |
| 386 * | 386 * |
| 387 * [resourceName] - Name of the media that is being downloaded. See | 387 * [resourceName] - Name of the media that is being downloaded. See |
| 388 * [][ByteStream.ReadRequest.resource_name]. | 388 * ByteStream.ReadRequest.resource_name. |
| 389 * Value must have pattern "^.*$". | 389 * Value must have pattern "^.*$". |
| 390 * | 390 * |
| 391 * [downloadOptions] - Options for downloading. A download can be either a | 391 * [downloadOptions] - Options for downloading. A download can be either a |
| 392 * Metadata (default) or Media download. Partial Media downloads are possible | 392 * Metadata (default) or Media download. Partial Media downloads are possible |
| 393 * as well. | 393 * as well. |
| 394 * | 394 * |
| 395 * Completes with a | 395 * Completes with a |
| 396 * | 396 * |
| 397 * - [Media] for Metadata downloads (see [downloadOptions]). | 397 * - [Media] for Metadata downloads (see [downloadOptions]). |
| 398 * | 398 * |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 return _json; | 522 return _json; |
| 523 } | 523 } |
| 524 } | 524 } |
| 525 | 525 |
| 526 /** A job creating reports of a specific type. */ | 526 /** A job creating reports of a specific type. */ |
| 527 class Job { | 527 class Job { |
| 528 /** The creation date/time of the job. */ | 528 /** The creation date/time of the job. */ |
| 529 core.String createTime; | 529 core.String createTime; |
| 530 /** The server-generated ID of the job (max. 40 characters). */ | 530 /** The server-generated ID of the job (max. 40 characters). */ |
| 531 core.String id; | 531 core.String id; |
| 532 /** | 532 /** The name of the job (max. 100 characters). */ |
| 533 * The name of the job (max. 100 characters). TODO(lanthaler) Clarify what | |
| 534 * this will actually be used for | |
| 535 */ | |
| 536 core.String name; | 533 core.String name; |
| 537 /** | 534 /** |
| 538 * The type of reports this job creates. Corresponds to the ID of a | 535 * The type of reports this job creates. Corresponds to the ID of a |
| 539 * ReportType. | 536 * ReportType. |
| 540 */ | 537 */ |
| 541 core.String reportTypeId; | 538 core.String reportTypeId; |
| 542 | 539 |
| 543 Job(); | 540 Job(); |
| 544 | 541 |
| 545 Job.fromJson(core.Map _json) { | 542 Job.fromJson(core.Map _json) { |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 var _json = new core.Map(); | 791 var _json = new core.Map(); |
| 795 if (id != null) { | 792 if (id != null) { |
| 796 _json["id"] = id; | 793 _json["id"] = id; |
| 797 } | 794 } |
| 798 if (name != null) { | 795 if (name != null) { |
| 799 _json["name"] = name; | 796 _json["name"] = name; |
| 800 } | 797 } |
| 801 return _json; | 798 return _json; |
| 802 } | 799 } |
| 803 } | 800 } |
| OLD | NEW |