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

Side by Side Diff: generated/googleapis/lib/youtube/v3.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.youtube.v3; 3 library googleapis.youtube.v3;
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:crypto/crypto.dart' as crypto; 10 import 'package:crypto/crypto.dart' as crypto;
(...skipping 7714 matching lines...) Expand 10 before | Expand all | Expand 10 after
7725 7725
7726 core.Map toJson() { 7726 core.Map toJson() {
7727 var _json = new core.Map(); 7727 var _json = new core.Map();
7728 if (pings != null) { 7728 if (pings != null) {
7729 _json["pings"] = pings.map((value) => (value).toJson()).toList(); 7729 _json["pings"] = pings.map((value) => (value).toJson()).toList();
7730 } 7730 }
7731 return _json; 7731 return _json;
7732 } 7732 }
7733 } 7733 }
7734 7734
7735 class ChannelId {
7736 core.String value;
7737
7738 ChannelId();
7739
7740 ChannelId.fromJson(core.Map _json) {
7741 if (_json.containsKey("value")) {
7742 value = _json["value"];
7743 }
7744 }
7745
7746 core.Map toJson() {
7747 var _json = new core.Map();
7748 if (value != null) {
7749 _json["value"] = value;
7750 }
7751 return _json;
7752 }
7753 }
7754
7755 class ChannelListResponse { 7735 class ChannelListResponse {
7756 /** Etag of this resource. */ 7736 /** Etag of this resource. */
7757 core.String etag; 7737 core.String etag;
7758 /** Serialized EventId of the request which produced this response. */ 7738 /** Serialized EventId of the request which produced this response. */
7759 core.String eventId; 7739 core.String eventId;
7760 /** A list of channels that match the request criteria. */ 7740 /** A list of channels that match the request criteria. */
7761 core.List<Channel> items; 7741 core.List<Channel> items;
7762 /** 7742 /**
7763 * Identifies what kind of resource this is. Value: the fixed string 7743 * Identifies what kind of resource this is. Value: the fixed string
7764 * "youtube#channelListResponse". 7744 * "youtube#channelListResponse".
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
8378 } 8358 }
8379 if (unsubscribedTrailer != null) { 8359 if (unsubscribedTrailer != null) {
8380 _json["unsubscribedTrailer"] = unsubscribedTrailer; 8360 _json["unsubscribedTrailer"] = unsubscribedTrailer;
8381 } 8361 }
8382 return _json; 8362 return _json;
8383 } 8363 }
8384 } 8364 }
8385 8365
8386 /** 8366 /**
8387 * Basic details about a channel, including title, description and thumbnails. 8367 * Basic details about a channel, including title, description and thumbnails.
8368 * Next available id: 15.
8388 */ 8369 */
8389 class ChannelSnippet { 8370 class ChannelSnippet {
8390 /** The country of the channel. */ 8371 /** The country of the channel. */
8391 core.String country; 8372 core.String country;
8373 /** The custom url of the channel. */
8374 core.String customUrl;
8392 /** The language of the channel's default title and description. */ 8375 /** The language of the channel's default title and description. */
8393 core.String defaultLanguage; 8376 core.String defaultLanguage;
8394 /** The description of the channel. */ 8377 /** The description of the channel. */
8395 core.String description; 8378 core.String description;
8396 /** Localized title and description, read-only. */ 8379 /** Localized title and description, read-only. */
8397 ChannelLocalization localized; 8380 ChannelLocalization localized;
8398 /** 8381 /**
8399 * The date and time that the channel was created. The value is specified in 8382 * The date and time that the channel was created. The value is specified in
8400 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. 8383 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
8401 */ 8384 */
8402 core.DateTime publishedAt; 8385 core.DateTime publishedAt;
8403 /** 8386 /**
8404 * A map of thumbnail images associated with the channel. For each object in 8387 * A map of thumbnail images associated with the channel. For each object in
8405 * the map, the key is the name of the thumbnail image, and the value is an 8388 * the map, the key is the name of the thumbnail image, and the value is an
8406 * object that contains other information about the thumbnail. 8389 * object that contains other information about the thumbnail.
8407 */ 8390 */
8408 ThumbnailDetails thumbnails; 8391 ThumbnailDetails thumbnails;
8409 /** The channel's title. */ 8392 /** The channel's title. */
8410 core.String title; 8393 core.String title;
8411 8394
8412 ChannelSnippet(); 8395 ChannelSnippet();
8413 8396
8414 ChannelSnippet.fromJson(core.Map _json) { 8397 ChannelSnippet.fromJson(core.Map _json) {
8415 if (_json.containsKey("country")) { 8398 if (_json.containsKey("country")) {
8416 country = _json["country"]; 8399 country = _json["country"];
8417 } 8400 }
8401 if (_json.containsKey("customUrl")) {
8402 customUrl = _json["customUrl"];
8403 }
8418 if (_json.containsKey("defaultLanguage")) { 8404 if (_json.containsKey("defaultLanguage")) {
8419 defaultLanguage = _json["defaultLanguage"]; 8405 defaultLanguage = _json["defaultLanguage"];
8420 } 8406 }
8421 if (_json.containsKey("description")) { 8407 if (_json.containsKey("description")) {
8422 description = _json["description"]; 8408 description = _json["description"];
8423 } 8409 }
8424 if (_json.containsKey("localized")) { 8410 if (_json.containsKey("localized")) {
8425 localized = new ChannelLocalization.fromJson(_json["localized"]); 8411 localized = new ChannelLocalization.fromJson(_json["localized"]);
8426 } 8412 }
8427 if (_json.containsKey("publishedAt")) { 8413 if (_json.containsKey("publishedAt")) {
8428 publishedAt = core.DateTime.parse(_json["publishedAt"]); 8414 publishedAt = core.DateTime.parse(_json["publishedAt"]);
8429 } 8415 }
8430 if (_json.containsKey("thumbnails")) { 8416 if (_json.containsKey("thumbnails")) {
8431 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); 8417 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]);
8432 } 8418 }
8433 if (_json.containsKey("title")) { 8419 if (_json.containsKey("title")) {
8434 title = _json["title"]; 8420 title = _json["title"];
8435 } 8421 }
8436 } 8422 }
8437 8423
8438 core.Map toJson() { 8424 core.Map toJson() {
8439 var _json = new core.Map(); 8425 var _json = new core.Map();
8440 if (country != null) { 8426 if (country != null) {
8441 _json["country"] = country; 8427 _json["country"] = country;
8442 } 8428 }
8429 if (customUrl != null) {
8430 _json["customUrl"] = customUrl;
8431 }
8443 if (defaultLanguage != null) { 8432 if (defaultLanguage != null) {
8444 _json["defaultLanguage"] = defaultLanguage; 8433 _json["defaultLanguage"] = defaultLanguage;
8445 } 8434 }
8446 if (description != null) { 8435 if (description != null) {
8447 _json["description"] = description; 8436 _json["description"] = description;
8448 } 8437 }
8449 if (localized != null) { 8438 if (localized != null) {
8450 _json["localized"] = (localized).toJson(); 8439 _json["localized"] = (localized).toJson();
8451 } 8440 }
8452 if (publishedAt != null) { 8441 if (publishedAt != null) {
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
8723 } 8712 }
8724 if (visitorId != null) { 8713 if (visitorId != null) {
8725 _json["visitorId"] = visitorId; 8714 _json["visitorId"] = visitorId;
8726 } 8715 }
8727 return _json; 8716 return _json;
8728 } 8717 }
8729 } 8718 }
8730 8719
8731 /** Basic details about a comment, such as its author and text. */ 8720 /** Basic details about a comment, such as its author and text. */
8732 class CommentSnippet { 8721 class CommentSnippet {
8733 /** The id of the author's YouTube channel, if any. */ 8722 /**
8734 ChannelId authorChannelId; 8723 * The id of the author's YouTube channel, if any.
8724 *
8725 * The values for Object must be JSON objects. It can consist of `num`,
8726 * `String`, `bool` and `null` as well as `Map` and `List` values.
8727 */
8728 core.Object authorChannelId;
8735 /** Link to the author's YouTube channel, if any. */ 8729 /** Link to the author's YouTube channel, if any. */
8736 core.String authorChannelUrl; 8730 core.String authorChannelUrl;
8737 /** The name of the user who posted the comment. */ 8731 /** The name of the user who posted the comment. */
8738 core.String authorDisplayName; 8732 core.String authorDisplayName;
8739 /** Link to the author's Google+ profile, if any. */ 8733 /** Link to the author's Google+ profile, if any. */
8740 core.String authorGoogleplusProfileUrl; 8734 core.String authorGoogleplusProfileUrl;
8741 /** The URL for the avatar of the user who posted the comment. */ 8735 /** The URL for the avatar of the user who posted the comment. */
8742 core.String authorProfileImageUrl; 8736 core.String authorProfileImageUrl;
8743 /** Whether the current viewer can rate this comment. */ 8737 /** Whether the current viewer can rate this comment. */
8744 core.bool canRate; 8738 core.bool canRate;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
8796 * - "like" 8790 * - "like"
8797 * - "none" 8791 * - "none"
8798 * - "unspecified" 8792 * - "unspecified"
8799 */ 8793 */
8800 core.String viewerRating; 8794 core.String viewerRating;
8801 8795
8802 CommentSnippet(); 8796 CommentSnippet();
8803 8797
8804 CommentSnippet.fromJson(core.Map _json) { 8798 CommentSnippet.fromJson(core.Map _json) {
8805 if (_json.containsKey("authorChannelId")) { 8799 if (_json.containsKey("authorChannelId")) {
8806 authorChannelId = new ChannelId.fromJson(_json["authorChannelId"]); 8800 authorChannelId = _json["authorChannelId"];
8807 } 8801 }
8808 if (_json.containsKey("authorChannelUrl")) { 8802 if (_json.containsKey("authorChannelUrl")) {
8809 authorChannelUrl = _json["authorChannelUrl"]; 8803 authorChannelUrl = _json["authorChannelUrl"];
8810 } 8804 }
8811 if (_json.containsKey("authorDisplayName")) { 8805 if (_json.containsKey("authorDisplayName")) {
8812 authorDisplayName = _json["authorDisplayName"]; 8806 authorDisplayName = _json["authorDisplayName"];
8813 } 8807 }
8814 if (_json.containsKey("authorGoogleplusProfileUrl")) { 8808 if (_json.containsKey("authorGoogleplusProfileUrl")) {
8815 authorGoogleplusProfileUrl = _json["authorGoogleplusProfileUrl"]; 8809 authorGoogleplusProfileUrl = _json["authorGoogleplusProfileUrl"];
8816 } 8810 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
8848 videoId = _json["videoId"]; 8842 videoId = _json["videoId"];
8849 } 8843 }
8850 if (_json.containsKey("viewerRating")) { 8844 if (_json.containsKey("viewerRating")) {
8851 viewerRating = _json["viewerRating"]; 8845 viewerRating = _json["viewerRating"];
8852 } 8846 }
8853 } 8847 }
8854 8848
8855 core.Map toJson() { 8849 core.Map toJson() {
8856 var _json = new core.Map(); 8850 var _json = new core.Map();
8857 if (authorChannelId != null) { 8851 if (authorChannelId != null) {
8858 _json["authorChannelId"] = (authorChannelId).toJson(); 8852 _json["authorChannelId"] = authorChannelId;
8859 } 8853 }
8860 if (authorChannelUrl != null) { 8854 if (authorChannelUrl != null) {
8861 _json["authorChannelUrl"] = authorChannelUrl; 8855 _json["authorChannelUrl"] = authorChannelUrl;
8862 } 8856 }
8863 if (authorDisplayName != null) { 8857 if (authorDisplayName != null) {
8864 _json["authorDisplayName"] = authorDisplayName; 8858 _json["authorDisplayName"] = authorDisplayName;
8865 } 8859 }
8866 if (authorGoogleplusProfileUrl != null) { 8860 if (authorGoogleplusProfileUrl != null) {
8867 _json["authorGoogleplusProfileUrl"] = authorGoogleplusProfileUrl; 8861 _json["authorGoogleplusProfileUrl"] = authorGoogleplusProfileUrl;
8868 } 8862 }
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
9494 * - "fmoc16" 9488 * - "fmoc16"
9495 * - "fmoc18" 9489 * - "fmoc18"
9496 * - "fmocE" 9490 * - "fmocE"
9497 * - "fmocU" 9491 * - "fmocU"
9498 * - "fmocUnrated" 9492 * - "fmocUnrated"
9499 */ 9493 */
9500 core.String fmocRating; 9494 core.String fmocRating;
9501 /** 9495 /**
9502 * The video's rating from South Africa's Film and Publication Board. 9496 * The video's rating from South Africa's Film and Publication Board.
9503 * Possible string values are: 9497 * Possible string values are:
9498 * - "fpb10"
9504 * - "fpb1012Pg" 9499 * - "fpb1012Pg"
9505 * - "fpb13" 9500 * - "fpb13"
9506 * - "fpb16" 9501 * - "fpb16"
9507 * - "fpb18" 9502 * - "fpb18"
9508 * - "fpb79Pg" 9503 * - "fpb79Pg"
9509 * - "fpbA" 9504 * - "fpbA"
9510 * - "fpbPg" 9505 * - "fpbPg"
9511 * - "fpbUnrated" 9506 * - "fpbUnrated"
9512 * - "fpbX18" 9507 * - "fpbX18"
9513 * - "fpbXx" 9508 * - "fpbXx"
(...skipping 5054 matching lines...) Expand 10 before | Expand all | Expand 10 after
14568 * The token that can be used as the value of the pageToken parameter to 14563 * The token that can be used as the value of the pageToken parameter to
14569 * retrieve the next page in the result set. 14564 * retrieve the next page in the result set.
14570 */ 14565 */
14571 core.String nextPageToken; 14566 core.String nextPageToken;
14572 PageInfo pageInfo; 14567 PageInfo pageInfo;
14573 /** 14568 /**
14574 * The token that can be used as the value of the pageToken parameter to 14569 * The token that can be used as the value of the pageToken parameter to
14575 * retrieve the previous page in the result set. 14570 * retrieve the previous page in the result set.
14576 */ 14571 */
14577 core.String prevPageToken; 14572 core.String prevPageToken;
14573 core.String regionCode;
14578 TokenPagination tokenPagination; 14574 TokenPagination tokenPagination;
14579 /** The visitorId identifies the visitor. */ 14575 /** The visitorId identifies the visitor. */
14580 core.String visitorId; 14576 core.String visitorId;
14581 14577
14582 SearchListResponse(); 14578 SearchListResponse();
14583 14579
14584 SearchListResponse.fromJson(core.Map _json) { 14580 SearchListResponse.fromJson(core.Map _json) {
14585 if (_json.containsKey("etag")) { 14581 if (_json.containsKey("etag")) {
14586 etag = _json["etag"]; 14582 etag = _json["etag"];
14587 } 14583 }
14588 if (_json.containsKey("eventId")) { 14584 if (_json.containsKey("eventId")) {
14589 eventId = _json["eventId"]; 14585 eventId = _json["eventId"];
14590 } 14586 }
14591 if (_json.containsKey("items")) { 14587 if (_json.containsKey("items")) {
14592 items = _json["items"].map((value) => new SearchResult.fromJson(value)).to List(); 14588 items = _json["items"].map((value) => new SearchResult.fromJson(value)).to List();
14593 } 14589 }
14594 if (_json.containsKey("kind")) { 14590 if (_json.containsKey("kind")) {
14595 kind = _json["kind"]; 14591 kind = _json["kind"];
14596 } 14592 }
14597 if (_json.containsKey("nextPageToken")) { 14593 if (_json.containsKey("nextPageToken")) {
14598 nextPageToken = _json["nextPageToken"]; 14594 nextPageToken = _json["nextPageToken"];
14599 } 14595 }
14600 if (_json.containsKey("pageInfo")) { 14596 if (_json.containsKey("pageInfo")) {
14601 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); 14597 pageInfo = new PageInfo.fromJson(_json["pageInfo"]);
14602 } 14598 }
14603 if (_json.containsKey("prevPageToken")) { 14599 if (_json.containsKey("prevPageToken")) {
14604 prevPageToken = _json["prevPageToken"]; 14600 prevPageToken = _json["prevPageToken"];
14605 } 14601 }
14602 if (_json.containsKey("regionCode")) {
14603 regionCode = _json["regionCode"];
14604 }
14606 if (_json.containsKey("tokenPagination")) { 14605 if (_json.containsKey("tokenPagination")) {
14607 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); 14606 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]);
14608 } 14607 }
14609 if (_json.containsKey("visitorId")) { 14608 if (_json.containsKey("visitorId")) {
14610 visitorId = _json["visitorId"]; 14609 visitorId = _json["visitorId"];
14611 } 14610 }
14612 } 14611 }
14613 14612
14614 core.Map toJson() { 14613 core.Map toJson() {
14615 var _json = new core.Map(); 14614 var _json = new core.Map();
(...skipping 11 matching lines...) Expand all
14627 } 14626 }
14628 if (nextPageToken != null) { 14627 if (nextPageToken != null) {
14629 _json["nextPageToken"] = nextPageToken; 14628 _json["nextPageToken"] = nextPageToken;
14630 } 14629 }
14631 if (pageInfo != null) { 14630 if (pageInfo != null) {
14632 _json["pageInfo"] = (pageInfo).toJson(); 14631 _json["pageInfo"] = (pageInfo).toJson();
14633 } 14632 }
14634 if (prevPageToken != null) { 14633 if (prevPageToken != null) {
14635 _json["prevPageToken"] = prevPageToken; 14634 _json["prevPageToken"] = prevPageToken;
14636 } 14635 }
14636 if (regionCode != null) {
14637 _json["regionCode"] = regionCode;
14638 }
14637 if (tokenPagination != null) { 14639 if (tokenPagination != null) {
14638 _json["tokenPagination"] = (tokenPagination).toJson(); 14640 _json["tokenPagination"] = (tokenPagination).toJson();
14639 } 14641 }
14640 if (visitorId != null) { 14642 if (visitorId != null) {
14641 _json["visitorId"] = visitorId; 14643 _json["visitorId"] = visitorId;
14642 } 14644 }
14643 return _json; 14645 return _json;
14644 } 14646 }
14645 } 14647 }
14646 14648
(...skipping 2799 matching lines...) Expand 10 before | Expand all | Expand 10 after
17446 core.DateTime publishAt; 17448 core.DateTime publishAt;
17447 /** 17449 /**
17448 * This value explains why YouTube rejected an uploaded video. This property 17450 * This value explains why YouTube rejected an uploaded video. This property
17449 * is only present if the uploadStatus property indicates that the upload was 17451 * is only present if the uploadStatus property indicates that the upload was
17450 * rejected. 17452 * rejected.
17451 * Possible string values are: 17453 * Possible string values are:
17452 * - "claim" 17454 * - "claim"
17453 * - "copyright" 17455 * - "copyright"
17454 * - "duplicate" 17456 * - "duplicate"
17455 * - "inappropriate" 17457 * - "inappropriate"
17458 * - "legal"
17456 * - "length" 17459 * - "length"
17457 * - "termsOfUse" 17460 * - "termsOfUse"
17458 * - "trademark" 17461 * - "trademark"
17459 * - "uploaderAccountClosed" 17462 * - "uploaderAccountClosed"
17460 * - "uploaderAccountSuspended" 17463 * - "uploaderAccountSuspended"
17461 */ 17464 */
17462 core.String rejectionReason; 17465 core.String rejectionReason;
17463 /** 17466 /**
17464 * The status of the uploaded video. 17467 * The status of the uploaded video.
17465 * Possible string values are: 17468 * Possible string values are:
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
17717 } 17720 }
17718 if (featuredPlaylistId != null) { 17721 if (featuredPlaylistId != null) {
17719 _json["featuredPlaylistId"] = featuredPlaylistId; 17722 _json["featuredPlaylistId"] = featuredPlaylistId;
17720 } 17723 }
17721 if (textColor != null) { 17724 if (textColor != null) {
17722 _json["textColor"] = textColor; 17725 _json["textColor"] = textColor;
17723 } 17726 }
17724 return _json; 17727 return _json;
17725 } 17728 }
17726 } 17729 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/webfonts/v1.dart ('k') | generated/googleapis/lib/youtubeanalytics/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698