| 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.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:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 5567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5578 * | 5578 * |
| 5579 * [maxHeight] - The maxHeight parameter specifies a maximum height of the | 5579 * [maxHeight] - The maxHeight parameter specifies a maximum height of the |
| 5580 * embedded player. If maxWidth is provided, maxHeight may not be reached in | 5580 * embedded player. If maxWidth is provided, maxHeight may not be reached in |
| 5581 * order to not violate the width request. | 5581 * order to not violate the width request. |
| 5582 * Value must be between "72" and "8192". | 5582 * Value must be between "72" and "8192". |
| 5583 * | 5583 * |
| 5584 * [maxResults] - The maxResults parameter specifies the maximum number of | 5584 * [maxResults] - The maxResults parameter specifies the maximum number of |
| 5585 * items that should be returned in the result set. | 5585 * items that should be returned in the result set. |
| 5586 * | 5586 * |
| 5587 * Note: This parameter is supported for use in conjunction with the myRating | 5587 * Note: This parameter is supported for use in conjunction with the myRating |
| 5588 * parameter, but it is not supported for use in conjunction with the id | 5588 * and chart parameters, but it is not supported for use in conjunction with |
| 5589 * parameter. | 5589 * the id parameter. |
| 5590 * Value must be between "1" and "50". | 5590 * Value must be between "1" and "50". |
| 5591 * | 5591 * |
| 5592 * [maxWidth] - The maxWidth parameter specifies a maximum width of the | 5592 * [maxWidth] - The maxWidth parameter specifies a maximum width of the |
| 5593 * embedded player. If maxHeight is provided, maxWidth may not be reached in | 5593 * embedded player. If maxHeight is provided, maxWidth may not be reached in |
| 5594 * order to not violate the height request. | 5594 * order to not violate the height request. |
| 5595 * Value must be between "72" and "8192". | 5595 * Value must be between "72" and "8192". |
| 5596 * | 5596 * |
| 5597 * [myRating] - Set this parameter's value to like or dislike to instruct the | 5597 * [myRating] - Set this parameter's value to like or dislike to instruct the |
| 5598 * API to only return videos liked or disliked by the authenticated user. | 5598 * API to only return videos liked or disliked by the authenticated user. |
| 5599 * Possible string values are: | 5599 * Possible string values are: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5611 * and get access to all their video and channel data, without having to | 5611 * and get access to all their video and channel data, without having to |
| 5612 * provide authentication credentials for each individual channel. The CMS | 5612 * provide authentication credentials for each individual channel. The CMS |
| 5613 * account that the user authenticates with must be linked to the specified | 5613 * account that the user authenticates with must be linked to the specified |
| 5614 * YouTube content owner. | 5614 * YouTube content owner. |
| 5615 * | 5615 * |
| 5616 * [pageToken] - The pageToken parameter identifies a specific page in the | 5616 * [pageToken] - The pageToken parameter identifies a specific page in the |
| 5617 * result set that should be returned. In an API response, the nextPageToken | 5617 * result set that should be returned. In an API response, the nextPageToken |
| 5618 * and prevPageToken properties identify other pages that could be retrieved. | 5618 * and prevPageToken properties identify other pages that could be retrieved. |
| 5619 * | 5619 * |
| 5620 * Note: This parameter is supported for use in conjunction with the myRating | 5620 * Note: This parameter is supported for use in conjunction with the myRating |
| 5621 * parameter, but it is not supported for use in conjunction with the id | 5621 * and chart parameters, but it is not supported for use in conjunction with |
| 5622 * parameter. | 5622 * the id parameter. |
| 5623 * | 5623 * |
| 5624 * [regionCode] - The regionCode parameter instructs the API to select a video | 5624 * [regionCode] - The regionCode parameter instructs the API to select a video |
| 5625 * chart available in the specified region. This parameter can only be used in | 5625 * chart available in the specified region. This parameter can only be used in |
| 5626 * conjunction with the chart parameter. The parameter value is an ISO 3166-1 | 5626 * conjunction with the chart parameter. The parameter value is an ISO 3166-1 |
| 5627 * alpha-2 country code. | 5627 * alpha-2 country code. |
| 5628 * | 5628 * |
| 5629 * [videoCategoryId] - The videoCategoryId parameter identifies the video | 5629 * [videoCategoryId] - The videoCategoryId parameter identifies the video |
| 5630 * category for which the chart should be retrieved. This parameter can only | 5630 * category for which the chart should be retrieved. This parameter can only |
| 5631 * be used in conjunction with the chart parameter. By default, charts are not | 5631 * be used in conjunction with the chart parameter. By default, charts are not |
| 5632 * restricted to a particular category. | 5632 * restricted to a particular category. |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7246 * Possible string values are: | 7246 * Possible string values are: |
| 7247 * - "dash" | 7247 * - "dash" |
| 7248 * - "rtmp" | 7248 * - "rtmp" |
| 7249 */ | 7249 */ |
| 7250 core.String ingestionType; | 7250 core.String ingestionType; |
| 7251 /** | 7251 /** |
| 7252 * The resolution of the inbound video data. | 7252 * The resolution of the inbound video data. |
| 7253 * Possible string values are: | 7253 * Possible string values are: |
| 7254 * - "1080p" | 7254 * - "1080p" |
| 7255 * - "1440p" | 7255 * - "1440p" |
| 7256 * - "2160p" |
| 7256 * - "240p" | 7257 * - "240p" |
| 7257 * - "360p" | 7258 * - "360p" |
| 7258 * - "480p" | 7259 * - "480p" |
| 7259 * - "720p" | 7260 * - "720p" |
| 7260 */ | 7261 */ |
| 7261 core.String resolution; | 7262 core.String resolution; |
| 7262 | 7263 |
| 7263 CdnSettings(); | 7264 CdnSettings(); |
| 7264 | 7265 |
| 7265 CdnSettings.fromJson(core.Map _json) { | 7266 CdnSettings.fromJson(core.Map _json) { |
| (...skipping 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9212 } | 9213 } |
| 9213 if (videoId != null) { | 9214 if (videoId != null) { |
| 9214 _json["videoId"] = videoId; | 9215 _json["videoId"] = videoId; |
| 9215 } | 9216 } |
| 9216 return _json; | 9217 return _json; |
| 9217 } | 9218 } |
| 9218 } | 9219 } |
| 9219 | 9220 |
| 9220 /** | 9221 /** |
| 9221 * Ratings schemes. The country-specific ratings are mostly for movies and | 9222 * Ratings schemes. The country-specific ratings are mostly for movies and |
| 9222 * shows. NEXT_ID: 68 | 9223 * shows. NEXT_ID: 69 |
| 9223 */ | 9224 */ |
| 9224 class ContentRating { | 9225 class ContentRating { |
| 9225 /** | 9226 /** |
| 9226 * The video's Australian Classification Board (ACB) or Australian | 9227 * The video's Australian Classification Board (ACB) or Australian |
| 9227 * Communications and Media Authority (ACMA) rating. ACMA ratings are used to | 9228 * Communications and Media Authority (ACMA) rating. ACMA ratings are used to |
| 9228 * classify children's television programming. | 9229 * classify children's television programming. |
| 9229 * Possible string values are: | 9230 * Possible string values are: |
| 9230 * - "acbC" | 9231 * - "acbC" |
| 9231 * - "acbE" | 9232 * - "acbE" |
| 9232 * - "acbG" | 9233 * - "acbG" |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9724 * Filminstitut) Media Council for Children and Young People. | 9725 * Filminstitut) Media Council for Children and Young People. |
| 9725 * Possible string values are: | 9726 * Possible string values are: |
| 9726 * - "mccyp11" | 9727 * - "mccyp11" |
| 9727 * - "mccyp15" | 9728 * - "mccyp15" |
| 9728 * - "mccyp7" | 9729 * - "mccyp7" |
| 9729 * - "mccypA" | 9730 * - "mccypA" |
| 9730 * - "mccypUnrated" | 9731 * - "mccypUnrated" |
| 9731 */ | 9732 */ |
| 9732 core.String mccypRating; | 9733 core.String mccypRating; |
| 9733 /** | 9734 /** |
| 9735 * The video's rating system for Vietnam - MCST |
| 9736 * Possible string values are: |
| 9737 * - "mcst0" |
| 9738 * - "mcst16plus" |
| 9739 * - "mcstC13" |
| 9740 * - "mcstC16" |
| 9741 * - "mcstC18" |
| 9742 * - "mcstGPg" |
| 9743 * - "mcstP" |
| 9744 * - "mcstUnrated" |
| 9745 */ |
| 9746 core.String mcstRating; |
| 9747 /** |
| 9734 * The video's rating from Singapore's Media Development Authority (MDA) and, | 9748 * The video's rating from Singapore's Media Development Authority (MDA) and, |
| 9735 * specifically, it's Board of Film Censors (BFC). | 9749 * specifically, it's Board of Film Censors (BFC). |
| 9736 * Possible string values are: | 9750 * Possible string values are: |
| 9737 * - "mdaG" | 9751 * - "mdaG" |
| 9738 * - "mdaM18" | 9752 * - "mdaM18" |
| 9739 * - "mdaNc16" | 9753 * - "mdaNc16" |
| 9740 * - "mdaPg" | 9754 * - "mdaPg" |
| 9741 * - "mdaPg13" | 9755 * - "mdaPg13" |
| 9742 * - "mdaR21" | 9756 * - "mdaR21" |
| 9743 * - "mdaUnrated" | 9757 * - "mdaUnrated" |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10149 } | 10163 } |
| 10150 if (_json.containsKey("lsfRating")) { | 10164 if (_json.containsKey("lsfRating")) { |
| 10151 lsfRating = _json["lsfRating"]; | 10165 lsfRating = _json["lsfRating"]; |
| 10152 } | 10166 } |
| 10153 if (_json.containsKey("mccaaRating")) { | 10167 if (_json.containsKey("mccaaRating")) { |
| 10154 mccaaRating = _json["mccaaRating"]; | 10168 mccaaRating = _json["mccaaRating"]; |
| 10155 } | 10169 } |
| 10156 if (_json.containsKey("mccypRating")) { | 10170 if (_json.containsKey("mccypRating")) { |
| 10157 mccypRating = _json["mccypRating"]; | 10171 mccypRating = _json["mccypRating"]; |
| 10158 } | 10172 } |
| 10173 if (_json.containsKey("mcstRating")) { |
| 10174 mcstRating = _json["mcstRating"]; |
| 10175 } |
| 10159 if (_json.containsKey("mdaRating")) { | 10176 if (_json.containsKey("mdaRating")) { |
| 10160 mdaRating = _json["mdaRating"]; | 10177 mdaRating = _json["mdaRating"]; |
| 10161 } | 10178 } |
| 10162 if (_json.containsKey("medietilsynetRating")) { | 10179 if (_json.containsKey("medietilsynetRating")) { |
| 10163 medietilsynetRating = _json["medietilsynetRating"]; | 10180 medietilsynetRating = _json["medietilsynetRating"]; |
| 10164 } | 10181 } |
| 10165 if (_json.containsKey("mekuRating")) { | 10182 if (_json.containsKey("mekuRating")) { |
| 10166 mekuRating = _json["mekuRating"]; | 10183 mekuRating = _json["mekuRating"]; |
| 10167 } | 10184 } |
| 10168 if (_json.containsKey("mibacRating")) { | 10185 if (_json.containsKey("mibacRating")) { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10354 } | 10371 } |
| 10355 if (lsfRating != null) { | 10372 if (lsfRating != null) { |
| 10356 _json["lsfRating"] = lsfRating; | 10373 _json["lsfRating"] = lsfRating; |
| 10357 } | 10374 } |
| 10358 if (mccaaRating != null) { | 10375 if (mccaaRating != null) { |
| 10359 _json["mccaaRating"] = mccaaRating; | 10376 _json["mccaaRating"] = mccaaRating; |
| 10360 } | 10377 } |
| 10361 if (mccypRating != null) { | 10378 if (mccypRating != null) { |
| 10362 _json["mccypRating"] = mccypRating; | 10379 _json["mccypRating"] = mccypRating; |
| 10363 } | 10380 } |
| 10381 if (mcstRating != null) { |
| 10382 _json["mcstRating"] = mcstRating; |
| 10383 } |
| 10364 if (mdaRating != null) { | 10384 if (mdaRating != null) { |
| 10365 _json["mdaRating"] = mdaRating; | 10385 _json["mdaRating"] = mdaRating; |
| 10366 } | 10386 } |
| 10367 if (medietilsynetRating != null) { | 10387 if (medietilsynetRating != null) { |
| 10368 _json["medietilsynetRating"] = medietilsynetRating; | 10388 _json["medietilsynetRating"] = medietilsynetRating; |
| 10369 } | 10389 } |
| 10370 if (mekuRating != null) { | 10390 if (mekuRating != null) { |
| 10371 _json["mekuRating"] = mekuRating; | 10391 _json["mekuRating"] = mekuRating; |
| 10372 } | 10392 } |
| 10373 if (mibacRating != null) { | 10393 if (mibacRating != null) { |
| (...skipping 3819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14193 * video should start and stop playing when the video is played in the context | 14213 * video should start and stop playing when the video is played in the context |
| 14194 * of the playlist.) The default value is 0. | 14214 * of the playlist.) The default value is 0. |
| 14195 */ | 14215 */ |
| 14196 core.String startAt; | 14216 core.String startAt; |
| 14197 /** | 14217 /** |
| 14198 * The ID that YouTube uses to uniquely identify a video. To retrieve the | 14218 * The ID that YouTube uses to uniquely identify a video. To retrieve the |
| 14199 * video resource, set the id query parameter to this value in your API | 14219 * video resource, set the id query parameter to this value in your API |
| 14200 * request. | 14220 * request. |
| 14201 */ | 14221 */ |
| 14202 core.String videoId; | 14222 core.String videoId; |
| 14223 /** |
| 14224 * The date and time that the video was published to YouTube. The value is |
| 14225 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 14226 */ |
| 14227 core.DateTime videoPublishedAt; |
| 14203 | 14228 |
| 14204 PlaylistItemContentDetails(); | 14229 PlaylistItemContentDetails(); |
| 14205 | 14230 |
| 14206 PlaylistItemContentDetails.fromJson(core.Map _json) { | 14231 PlaylistItemContentDetails.fromJson(core.Map _json) { |
| 14207 if (_json.containsKey("endAt")) { | 14232 if (_json.containsKey("endAt")) { |
| 14208 endAt = _json["endAt"]; | 14233 endAt = _json["endAt"]; |
| 14209 } | 14234 } |
| 14210 if (_json.containsKey("note")) { | 14235 if (_json.containsKey("note")) { |
| 14211 note = _json["note"]; | 14236 note = _json["note"]; |
| 14212 } | 14237 } |
| 14213 if (_json.containsKey("startAt")) { | 14238 if (_json.containsKey("startAt")) { |
| 14214 startAt = _json["startAt"]; | 14239 startAt = _json["startAt"]; |
| 14215 } | 14240 } |
| 14216 if (_json.containsKey("videoId")) { | 14241 if (_json.containsKey("videoId")) { |
| 14217 videoId = _json["videoId"]; | 14242 videoId = _json["videoId"]; |
| 14218 } | 14243 } |
| 14244 if (_json.containsKey("videoPublishedAt")) { |
| 14245 videoPublishedAt = core.DateTime.parse(_json["videoPublishedAt"]); |
| 14246 } |
| 14219 } | 14247 } |
| 14220 | 14248 |
| 14221 core.Map toJson() { | 14249 core.Map toJson() { |
| 14222 var _json = new core.Map(); | 14250 var _json = new core.Map(); |
| 14223 if (endAt != null) { | 14251 if (endAt != null) { |
| 14224 _json["endAt"] = endAt; | 14252 _json["endAt"] = endAt; |
| 14225 } | 14253 } |
| 14226 if (note != null) { | 14254 if (note != null) { |
| 14227 _json["note"] = note; | 14255 _json["note"] = note; |
| 14228 } | 14256 } |
| 14229 if (startAt != null) { | 14257 if (startAt != null) { |
| 14230 _json["startAt"] = startAt; | 14258 _json["startAt"] = startAt; |
| 14231 } | 14259 } |
| 14232 if (videoId != null) { | 14260 if (videoId != null) { |
| 14233 _json["videoId"] = videoId; | 14261 _json["videoId"] = videoId; |
| 14234 } | 14262 } |
| 14263 if (videoPublishedAt != null) { |
| 14264 _json["videoPublishedAt"] = (videoPublishedAt).toIso8601String(); |
| 14265 } |
| 14235 return _json; | 14266 return _json; |
| 14236 } | 14267 } |
| 14237 } | 14268 } |
| 14238 | 14269 |
| 14239 class PlaylistItemListResponse { | 14270 class PlaylistItemListResponse { |
| 14240 /** Etag of this resource. */ | 14271 /** Etag of this resource. */ |
| 14241 core.String etag; | 14272 core.String etag; |
| 14242 /** Serialized EventId of the request which produced this response. */ | 14273 /** Serialized EventId of the request which produced this response. */ |
| 14243 core.String eventId; | 14274 core.String eventId; |
| 14244 /** A list of playlist items that match the request criteria. */ | 14275 /** A list of playlist items that match the request criteria. */ |
| (...skipping 3900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18145 } | 18176 } |
| 18146 if (featuredPlaylistId != null) { | 18177 if (featuredPlaylistId != null) { |
| 18147 _json["featuredPlaylistId"] = featuredPlaylistId; | 18178 _json["featuredPlaylistId"] = featuredPlaylistId; |
| 18148 } | 18179 } |
| 18149 if (textColor != null) { | 18180 if (textColor != null) { |
| 18150 _json["textColor"] = textColor; | 18181 _json["textColor"] = textColor; |
| 18151 } | 18182 } |
| 18152 return _json; | 18183 return _json; |
| 18153 } | 18184 } |
| 18154 } | 18185 } |
| OLD | NEW |