OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis.youtube.v3; | 3 library googleapis.youtube.v3; |
2 | 4 |
3 import "dart:core" as core; | 5 import 'dart:core' as core; |
4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
5 import "dart:async" as async; | 7 import 'dart:async' as async; |
6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
7 | 9 |
8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | |
11 import '../common/common.dart' as common; | |
12 | 13 |
13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 16 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 17 ByteRange; |
| 18 |
| 19 const core.String USER_AGENT = 'dart-api-client youtube/v3'; |
15 | 20 |
16 /** Programmatic access to YouTube features. */ | 21 /** Programmatic access to YouTube features. */ |
17 class YoutubeApi { | 22 class YoutubeApi { |
18 /** Manage your YouTube account */ | 23 /** Manage your YouTube account */ |
19 static const YoutubeScope = "https://www.googleapis.com/auth/youtube"; | 24 static const YoutubeScope = "https://www.googleapis.com/auth/youtube"; |
20 | 25 |
| 26 /** Manage your YouTube account */ |
| 27 static const YoutubeForceSslScope = "https://www.googleapis.com/auth/youtube.f
orce-ssl"; |
| 28 |
21 /** View your YouTube account */ | 29 /** View your YouTube account */ |
22 static const YoutubeReadonlyScope = "https://www.googleapis.com/auth/youtube.r
eadonly"; | 30 static const YoutubeReadonlyScope = "https://www.googleapis.com/auth/youtube.r
eadonly"; |
23 | 31 |
24 /** Manage your YouTube videos */ | 32 /** Manage your YouTube videos */ |
25 static const YoutubeUploadScope = "https://www.googleapis.com/auth/youtube.upl
oad"; | 33 static const YoutubeUploadScope = "https://www.googleapis.com/auth/youtube.upl
oad"; |
26 | 34 |
27 /** View and manage your assets and associated content on YouTube */ | 35 /** View and manage your assets and associated content on YouTube */ |
28 static const YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepar
tner"; | 36 static const YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepar
tner"; |
29 | 37 |
30 /** | 38 /** |
31 * View private information of your YouTube channel relevant during the audit | 39 * View private information of your YouTube channel relevant during the audit |
32 * process with a YouTube partner | 40 * process with a YouTube partner |
33 */ | 41 */ |
34 static const YoutubepartnerChannelAuditScope = "https://www.googleapis.com/aut
h/youtubepartner-channel-audit"; | 42 static const YoutubepartnerChannelAuditScope = "https://www.googleapis.com/aut
h/youtubepartner-channel-audit"; |
35 | 43 |
36 | 44 |
37 final common_internal.ApiRequester _requester; | 45 final commons.ApiRequester _requester; |
38 | 46 |
39 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); | 47 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); |
| 48 CaptionsResourceApi get captions => new CaptionsResourceApi(_requester); |
40 ChannelBannersResourceApi get channelBanners => new ChannelBannersResourceApi(
_requester); | 49 ChannelBannersResourceApi get channelBanners => new ChannelBannersResourceApi(
_requester); |
41 ChannelSectionsResourceApi get channelSections => new ChannelSectionsResourceA
pi(_requester); | 50 ChannelSectionsResourceApi get channelSections => new ChannelSectionsResourceA
pi(_requester); |
42 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); | 51 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); |
43 GuideCategoriesResourceApi get guideCategories => new GuideCategoriesResourceA
pi(_requester); | 52 GuideCategoriesResourceApi get guideCategories => new GuideCategoriesResourceA
pi(_requester); |
44 I18nLanguagesResourceApi get i18nLanguages => new I18nLanguagesResourceApi(_re
quester); | 53 I18nLanguagesResourceApi get i18nLanguages => new I18nLanguagesResourceApi(_re
quester); |
45 I18nRegionsResourceApi get i18nRegions => new I18nRegionsResourceApi(_requeste
r); | 54 I18nRegionsResourceApi get i18nRegions => new I18nRegionsResourceApi(_requeste
r); |
46 LiveBroadcastsResourceApi get liveBroadcasts => new LiveBroadcastsResourceApi(
_requester); | 55 LiveBroadcastsResourceApi get liveBroadcasts => new LiveBroadcastsResourceApi(
_requester); |
47 LiveStreamsResourceApi get liveStreams => new LiveStreamsResourceApi(_requeste
r); | 56 LiveStreamsResourceApi get liveStreams => new LiveStreamsResourceApi(_requeste
r); |
48 PlaylistItemsResourceApi get playlistItems => new PlaylistItemsResourceApi(_re
quester); | 57 PlaylistItemsResourceApi get playlistItems => new PlaylistItemsResourceApi(_re
quester); |
49 PlaylistsResourceApi get playlists => new PlaylistsResourceApi(_requester); | 58 PlaylistsResourceApi get playlists => new PlaylistsResourceApi(_requester); |
50 SearchResourceApi get search => new SearchResourceApi(_requester); | 59 SearchResourceApi get search => new SearchResourceApi(_requester); |
51 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); | 60 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); |
52 ThumbnailsResourceApi get thumbnails => new ThumbnailsResourceApi(_requester); | 61 ThumbnailsResourceApi get thumbnails => new ThumbnailsResourceApi(_requester); |
53 VideoCategoriesResourceApi get videoCategories => new VideoCategoriesResourceA
pi(_requester); | 62 VideoCategoriesResourceApi get videoCategories => new VideoCategoriesResourceA
pi(_requester); |
54 VideosResourceApi get videos => new VideosResourceApi(_requester); | 63 VideosResourceApi get videos => new VideosResourceApi(_requester); |
55 WatermarksResourceApi get watermarks => new WatermarksResourceApi(_requester); | 64 WatermarksResourceApi get watermarks => new WatermarksResourceApi(_requester); |
56 | 65 |
57 YoutubeApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "youtube/v3/"}) : | 66 YoutubeApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "youtube/v3/"}) : |
58 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 67 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
59 } | 68 } |
60 | 69 |
61 | 70 |
62 /** Not documented yet. */ | |
63 class ActivitiesResourceApi { | 71 class ActivitiesResourceApi { |
64 final common_internal.ApiRequester _requester; | 72 final commons.ApiRequester _requester; |
65 | 73 |
66 ActivitiesResourceApi(common_internal.ApiRequester client) : | 74 ActivitiesResourceApi(commons.ApiRequester client) : |
67 _requester = client; | 75 _requester = client; |
68 | 76 |
69 /** | 77 /** |
70 * Posts a bulletin for a specific channel. (The user submitting the request | 78 * Posts a bulletin for a specific channel. (The user submitting the request |
71 * must be authorized to act on the channel's behalf.) | 79 * must be authorized to act on the channel's behalf.) |
72 * | 80 * |
73 * Note: Even though an activity resource can contain information about | 81 * Note: Even though an activity resource can contain information about |
74 * actions like a user rating a video or marking a video as a favorite, you | 82 * actions like a user rating a video or marking a video as a favorite, you |
75 * need to use other API methods to generate those activity resources. For | 83 * need to use other API methods to generate those activity resources. For |
76 * example, you would use the API's videos.rate() method to rate a video and | 84 * example, you would use the API's videos.rate() method to rate a video and |
77 * the playlistItems.insert() method to mark a video as a favorite. | 85 * the playlistItems.insert() method to mark a video as a favorite. |
78 * | 86 * |
79 * [request] - The metadata request object. | 87 * [request] - The metadata request object. |
80 * | 88 * |
81 * Request parameters: | 89 * Request parameters: |
82 * | 90 * |
83 * [part] - The part parameter serves two purposes in this operation. It | 91 * [part] - The part parameter serves two purposes in this operation. It |
84 * identifies the properties that the write operation will set as well as the | 92 * identifies the properties that the write operation will set as well as the |
85 * properties that the API response will include. | 93 * properties that the API response will include. |
86 * | 94 * |
87 * The part names that you can include in the parameter value are snippet and | 95 * The part names that you can include in the parameter value are snippet and |
88 * contentDetails. | 96 * contentDetails. |
89 * | 97 * |
90 * Completes with a [Activity]. | 98 * Completes with a [Activity]. |
91 * | 99 * |
92 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 100 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
93 * error. | 101 * error. |
94 * | 102 * |
95 * If the used [http.Client] completes with an error when making a REST call, | 103 * If the used [http.Client] completes with an error when making a REST call, |
96 * this method will complete with the same error. | 104 * this method will complete with the same error. |
97 */ | 105 */ |
98 async.Future<Activity> insert(Activity request, core.String part) { | 106 async.Future<Activity> insert(Activity request, core.String part) { |
99 var _url = null; | 107 var _url = null; |
100 var _queryParams = new core.Map(); | 108 var _queryParams = new core.Map(); |
101 var _uploadMedia = null; | 109 var _uploadMedia = null; |
102 var _uploadOptions = null; | 110 var _uploadOptions = null; |
103 var _downloadOptions = common.DownloadOptions.Metadata; | 111 var _downloadOptions = commons.DownloadOptions.Metadata; |
104 var _body = null; | 112 var _body = null; |
105 | 113 |
106 if (request != null) { | 114 if (request != null) { |
107 _body = convert.JSON.encode((request).toJson()); | 115 _body = convert.JSON.encode((request).toJson()); |
108 } | 116 } |
109 if (part == null) { | 117 if (part == null) { |
110 throw new core.ArgumentError("Parameter part is required."); | 118 throw new core.ArgumentError("Parameter part is required."); |
111 } | 119 } |
112 _queryParams["part"] = [part]; | 120 _queryParams["part"] = [part]; |
113 | 121 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 * (YYYY-MM-DDThh:mm:ss.sZ) format. | 185 * (YYYY-MM-DDThh:mm:ss.sZ) format. |
178 * | 186 * |
179 * [regionCode] - The regionCode parameter instructs the API to return results | 187 * [regionCode] - The regionCode parameter instructs the API to return results |
180 * for the specified country. The parameter value is an ISO 3166-1 alpha-2 | 188 * for the specified country. The parameter value is an ISO 3166-1 alpha-2 |
181 * country code. YouTube uses this value when the authorized user's previous | 189 * country code. YouTube uses this value when the authorized user's previous |
182 * activity on YouTube does not provide enough information to generate the | 190 * activity on YouTube does not provide enough information to generate the |
183 * activity feed. | 191 * activity feed. |
184 * | 192 * |
185 * Completes with a [ActivityListResponse]. | 193 * Completes with a [ActivityListResponse]. |
186 * | 194 * |
187 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 195 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
188 * error. | 196 * error. |
189 * | 197 * |
190 * If the used [http.Client] completes with an error when making a REST call, | 198 * If the used [http.Client] completes with an error when making a REST call, |
191 * this method will complete with the same error. | 199 * this method will complete with the same error. |
192 */ | 200 */ |
193 async.Future<ActivityListResponse> list(core.String part, {core.String channel
Id, core.bool home, core.int maxResults, core.bool mine, core.String pageToken,
core.DateTime publishedAfter, core.DateTime publishedBefore, core.String regionC
ode}) { | 201 async.Future<ActivityListResponse> list(core.String part, {core.String channel
Id, core.bool home, core.int maxResults, core.bool mine, core.String pageToken,
core.DateTime publishedAfter, core.DateTime publishedBefore, core.String regionC
ode}) { |
194 var _url = null; | 202 var _url = null; |
195 var _queryParams = new core.Map(); | 203 var _queryParams = new core.Map(); |
196 var _uploadMedia = null; | 204 var _uploadMedia = null; |
197 var _uploadOptions = null; | 205 var _uploadOptions = null; |
198 var _downloadOptions = common.DownloadOptions.Metadata; | 206 var _downloadOptions = commons.DownloadOptions.Metadata; |
199 var _body = null; | 207 var _body = null; |
200 | 208 |
201 if (part == null) { | 209 if (part == null) { |
202 throw new core.ArgumentError("Parameter part is required."); | 210 throw new core.ArgumentError("Parameter part is required."); |
203 } | 211 } |
204 _queryParams["part"] = [part]; | 212 _queryParams["part"] = [part]; |
205 if (channelId != null) { | 213 if (channelId != null) { |
206 _queryParams["channelId"] = [channelId]; | 214 _queryParams["channelId"] = [channelId]; |
207 } | 215 } |
208 if (home != null) { | 216 if (home != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
236 queryParams: _queryParams, | 244 queryParams: _queryParams, |
237 uploadOptions: _uploadOptions, | 245 uploadOptions: _uploadOptions, |
238 uploadMedia: _uploadMedia, | 246 uploadMedia: _uploadMedia, |
239 downloadOptions: _downloadOptions); | 247 downloadOptions: _downloadOptions); |
240 return _response.then((data) => new ActivityListResponse.fromJson(data)); | 248 return _response.then((data) => new ActivityListResponse.fromJson(data)); |
241 } | 249 } |
242 | 250 |
243 } | 251 } |
244 | 252 |
245 | 253 |
246 /** Not documented yet. */ | 254 class CaptionsResourceApi { |
| 255 final commons.ApiRequester _requester; |
| 256 |
| 257 CaptionsResourceApi(commons.ApiRequester client) : |
| 258 _requester = client; |
| 259 |
| 260 /** |
| 261 * Deletes a specified caption track. |
| 262 * |
| 263 * Request parameters: |
| 264 * |
| 265 * [id] - The id parameter identifies the caption track that is being deleted. |
| 266 * The value is a caption track ID as identified by the id property in a |
| 267 * caption resource. |
| 268 * |
| 269 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be |
| 270 * used for mimicking a request for a certain project ID |
| 271 * |
| 272 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 273 * be on behalf of |
| 274 * |
| 275 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 276 * error. |
| 277 * |
| 278 * If the used [http.Client] completes with an error when making a REST call, |
| 279 * this method will complete with the same error. |
| 280 */ |
| 281 async.Future delete(core.String id, {core.String debugProjectIdOverride, core.
String onBehalfOf}) { |
| 282 var _url = null; |
| 283 var _queryParams = new core.Map(); |
| 284 var _uploadMedia = null; |
| 285 var _uploadOptions = null; |
| 286 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 287 var _body = null; |
| 288 |
| 289 if (id == null) { |
| 290 throw new core.ArgumentError("Parameter id is required."); |
| 291 } |
| 292 _queryParams["id"] = [id]; |
| 293 if (debugProjectIdOverride != null) { |
| 294 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; |
| 295 } |
| 296 if (onBehalfOf != null) { |
| 297 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 298 } |
| 299 |
| 300 _downloadOptions = null; |
| 301 |
| 302 _url = 'captions'; |
| 303 |
| 304 var _response = _requester.request(_url, |
| 305 "DELETE", |
| 306 body: _body, |
| 307 queryParams: _queryParams, |
| 308 uploadOptions: _uploadOptions, |
| 309 uploadMedia: _uploadMedia, |
| 310 downloadOptions: _downloadOptions); |
| 311 return _response.then((data) => null); |
| 312 } |
| 313 |
| 314 /** |
| 315 * Downloads a caption track. The caption track is returned in its original |
| 316 * format unless the request specifies a value for the tfmt parameter and in |
| 317 * its original language unless the request specifies a value for the tlang |
| 318 * parameter. |
| 319 * |
| 320 * Request parameters: |
| 321 * |
| 322 * [id] - The id parameter identifies the caption track that is being |
| 323 * retrieved. The value is a caption track ID as identified by the id property |
| 324 * in a caption resource. |
| 325 * |
| 326 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be |
| 327 * used for mimicking a request for a certain project ID |
| 328 * |
| 329 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 330 * be on behalf of |
| 331 * |
| 332 * [tfmt] - The tfmt parameter specifies that the caption track should be |
| 333 * returned in a specific format. If the parameter is not included in the |
| 334 * request, the track is returned in its original format. |
| 335 * Possible string values are: |
| 336 * - "sbv" : SubViewer subtitle. |
| 337 * - "scc" : Scenarist Closed Caption format. |
| 338 * - "srt" : SubRip subtitle. |
| 339 * - "ttml" : Timed Text Markup Language caption. |
| 340 * - "vtt" : Web Video Text Tracks caption. |
| 341 * |
| 342 * [tlang] - The tlang parameter specifies that the API response should return |
| 343 * a translation of the specified caption track. The parameter value is an ISO |
| 344 * 639-1 two-letter language code that identifies the desired caption |
| 345 * language. The translation is generated by using machine translation, such |
| 346 * as Google Translate. |
| 347 * |
| 348 * [downloadOptions] - Options for downloading. A download can be either a |
| 349 * Metadata (default) or Media download. Partial Media downloads are possible |
| 350 * as well. |
| 351 * |
| 352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 353 * error. |
| 354 * |
| 355 * If the used [http.Client] completes with an error when making a REST call, |
| 356 * this method will complete with the same error. |
| 357 */ |
| 358 async.Future download(core.String id, {core.String debugProjectIdOverride, cor
e.String onBehalfOf, core.String tfmt, core.String tlang, commons.DownloadOption
s downloadOptions: commons.DownloadOptions.Metadata}) { |
| 359 var _url = null; |
| 360 var _queryParams = new core.Map(); |
| 361 var _uploadMedia = null; |
| 362 var _uploadOptions = null; |
| 363 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 364 var _body = null; |
| 365 |
| 366 if (id == null) { |
| 367 throw new core.ArgumentError("Parameter id is required."); |
| 368 } |
| 369 if (debugProjectIdOverride != null) { |
| 370 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; |
| 371 } |
| 372 if (onBehalfOf != null) { |
| 373 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 374 } |
| 375 if (tfmt != null) { |
| 376 _queryParams["tfmt"] = [tfmt]; |
| 377 } |
| 378 if (tlang != null) { |
| 379 _queryParams["tlang"] = [tlang]; |
| 380 } |
| 381 |
| 382 _downloadOptions = downloadOptions; |
| 383 |
| 384 _url = 'captions/' + commons.Escaper.ecapeVariable('$id'); |
| 385 |
| 386 var _response = _requester.request(_url, |
| 387 "GET", |
| 388 body: _body, |
| 389 queryParams: _queryParams, |
| 390 uploadOptions: _uploadOptions, |
| 391 uploadMedia: _uploadMedia, |
| 392 downloadOptions: _downloadOptions); |
| 393 if (_downloadOptions == null || |
| 394 _downloadOptions == commons.DownloadOptions.Metadata) { |
| 395 return _response.then((data) => null); |
| 396 } else { |
| 397 return _response; |
| 398 } |
| 399 } |
| 400 |
| 401 /** |
| 402 * Uploads a caption track. |
| 403 * |
| 404 * [request] - The metadata request object. |
| 405 * |
| 406 * Request parameters: |
| 407 * |
| 408 * [part] - The part parameter specifies the caption resource parts that the |
| 409 * API response will include. Set the parameter value to snippet. |
| 410 * |
| 411 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be |
| 412 * used for mimicking a request for a certain project ID. |
| 413 * |
| 414 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 415 * be on behalf of |
| 416 * |
| 417 * [sync] - The sync parameter indicates whether YouTube should automatically |
| 418 * synchronize the caption file with the audio track of the video. If you set |
| 419 * the value to true, YouTube will disregard any time codes that are in the |
| 420 * uploaded caption file and generate new time codes for the captions. |
| 421 * |
| 422 * You should set the sync parameter to true if you are uploading a |
| 423 * transcript, which has no time codes, or if you suspect the time codes in |
| 424 * your file are incorrect and want YouTube to try to fix them. |
| 425 * |
| 426 * [uploadMedia] - The media to upload. |
| 427 * |
| 428 * [uploadOptions] - Options for the media upload. Streaming Media without the |
| 429 * length being known ahead of time is only supported via resumable uploads. |
| 430 * |
| 431 * Completes with a [Caption]. |
| 432 * |
| 433 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 434 * error. |
| 435 * |
| 436 * If the used [http.Client] completes with an error when making a REST call, |
| 437 * this method will complete with the same error. |
| 438 */ |
| 439 async.Future<Caption> insert(Caption request, core.String part, {core.String d
ebugProjectIdOverride, core.String onBehalfOf, core.bool sync, commons.UploadOpt
ions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia})
{ |
| 440 var _url = null; |
| 441 var _queryParams = new core.Map(); |
| 442 var _uploadMedia = null; |
| 443 var _uploadOptions = null; |
| 444 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 445 var _body = null; |
| 446 |
| 447 if (request != null) { |
| 448 _body = convert.JSON.encode((request).toJson()); |
| 449 } |
| 450 if (part == null) { |
| 451 throw new core.ArgumentError("Parameter part is required."); |
| 452 } |
| 453 _queryParams["part"] = [part]; |
| 454 if (debugProjectIdOverride != null) { |
| 455 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; |
| 456 } |
| 457 if (onBehalfOf != null) { |
| 458 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 459 } |
| 460 if (sync != null) { |
| 461 _queryParams["sync"] = ["${sync}"]; |
| 462 } |
| 463 |
| 464 _uploadMedia = uploadMedia; |
| 465 _uploadOptions = uploadOptions; |
| 466 |
| 467 if (_uploadMedia == null) { |
| 468 _url = 'captions'; |
| 469 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 470 _url = '/resumable/upload/youtube/v3/captions'; |
| 471 } else { |
| 472 _url = '/upload/youtube/v3/captions'; |
| 473 } |
| 474 |
| 475 |
| 476 var _response = _requester.request(_url, |
| 477 "POST", |
| 478 body: _body, |
| 479 queryParams: _queryParams, |
| 480 uploadOptions: _uploadOptions, |
| 481 uploadMedia: _uploadMedia, |
| 482 downloadOptions: _downloadOptions); |
| 483 return _response.then((data) => new Caption.fromJson(data)); |
| 484 } |
| 485 |
| 486 /** |
| 487 * Returns a list of caption tracks that are associated with a specified |
| 488 * video. Note that the API response does not contain the actual captions and |
| 489 * that the captions.download method provides the ability to retrieve a |
| 490 * caption track. |
| 491 * |
| 492 * Request parameters: |
| 493 * |
| 494 * [part] - The part parameter specifies the caption resource parts that the |
| 495 * API response will include. |
| 496 * |
| 497 * [videoId] - The videoId parameter specifies the YouTube video ID of the |
| 498 * video for which the API should return caption tracks. |
| 499 * |
| 500 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be |
| 501 * used for mimicking a request for a certain project ID. |
| 502 * |
| 503 * [id] - The id parameter specifies a comma-separated list of IDs that |
| 504 * identify the caption resources that should be retrieved. Each ID must |
| 505 * identify a caption track associated with the specified video. |
| 506 * |
| 507 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 508 * on behalf of. |
| 509 * |
| 510 * Completes with a [CaptionListResponse]. |
| 511 * |
| 512 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 513 * error. |
| 514 * |
| 515 * If the used [http.Client] completes with an error when making a REST call, |
| 516 * this method will complete with the same error. |
| 517 */ |
| 518 async.Future<CaptionListResponse> list(core.String part, core.String videoId,
{core.String debugProjectIdOverride, core.String id, core.String onBehalfOf}) { |
| 519 var _url = null; |
| 520 var _queryParams = new core.Map(); |
| 521 var _uploadMedia = null; |
| 522 var _uploadOptions = null; |
| 523 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 524 var _body = null; |
| 525 |
| 526 if (part == null) { |
| 527 throw new core.ArgumentError("Parameter part is required."); |
| 528 } |
| 529 _queryParams["part"] = [part]; |
| 530 if (videoId == null) { |
| 531 throw new core.ArgumentError("Parameter videoId is required."); |
| 532 } |
| 533 _queryParams["videoId"] = [videoId]; |
| 534 if (debugProjectIdOverride != null) { |
| 535 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; |
| 536 } |
| 537 if (id != null) { |
| 538 _queryParams["id"] = [id]; |
| 539 } |
| 540 if (onBehalfOf != null) { |
| 541 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 542 } |
| 543 |
| 544 |
| 545 _url = 'captions'; |
| 546 |
| 547 var _response = _requester.request(_url, |
| 548 "GET", |
| 549 body: _body, |
| 550 queryParams: _queryParams, |
| 551 uploadOptions: _uploadOptions, |
| 552 uploadMedia: _uploadMedia, |
| 553 downloadOptions: _downloadOptions); |
| 554 return _response.then((data) => new CaptionListResponse.fromJson(data)); |
| 555 } |
| 556 |
| 557 /** |
| 558 * Updates a caption track. When updating a caption track, you can change the |
| 559 * track's draft status, upload a new caption file for the track, or both. |
| 560 * |
| 561 * [request] - The metadata request object. |
| 562 * |
| 563 * Request parameters: |
| 564 * |
| 565 * [part] - The part parameter serves two purposes in this operation. It |
| 566 * identifies the properties that the write operation will set as well as the |
| 567 * properties that the API response will include. Set the property value to |
| 568 * snippet if you are updating the track's draft status. Otherwise, set the |
| 569 * property value to id. |
| 570 * |
| 571 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be |
| 572 * used for mimicking a request for a certain project ID. |
| 573 * |
| 574 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 575 * be on behalf of |
| 576 * |
| 577 * [sync] - Note: The API server only processes the parameter value if the |
| 578 * request contains an updated caption file. |
| 579 * |
| 580 * The sync parameter indicates whether YouTube should automatically |
| 581 * synchronize the caption file with the audio track of the video. If you set |
| 582 * the value to true, YouTube will automatically synchronize the caption track |
| 583 * with the audio track. |
| 584 * |
| 585 * [uploadMedia] - The media to upload. |
| 586 * |
| 587 * [uploadOptions] - Options for the media upload. Streaming Media without the |
| 588 * length being known ahead of time is only supported via resumable uploads. |
| 589 * |
| 590 * Completes with a [Caption]. |
| 591 * |
| 592 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 593 * error. |
| 594 * |
| 595 * If the used [http.Client] completes with an error when making a REST call, |
| 596 * this method will complete with the same error. |
| 597 */ |
| 598 async.Future<Caption> update(Caption request, core.String part, {core.String d
ebugProjectIdOverride, core.String onBehalfOf, core.bool sync, commons.UploadOpt
ions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia})
{ |
| 599 var _url = null; |
| 600 var _queryParams = new core.Map(); |
| 601 var _uploadMedia = null; |
| 602 var _uploadOptions = null; |
| 603 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 604 var _body = null; |
| 605 |
| 606 if (request != null) { |
| 607 _body = convert.JSON.encode((request).toJson()); |
| 608 } |
| 609 if (part == null) { |
| 610 throw new core.ArgumentError("Parameter part is required."); |
| 611 } |
| 612 _queryParams["part"] = [part]; |
| 613 if (debugProjectIdOverride != null) { |
| 614 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; |
| 615 } |
| 616 if (onBehalfOf != null) { |
| 617 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 618 } |
| 619 if (sync != null) { |
| 620 _queryParams["sync"] = ["${sync}"]; |
| 621 } |
| 622 |
| 623 _uploadMedia = uploadMedia; |
| 624 _uploadOptions = uploadOptions; |
| 625 |
| 626 if (_uploadMedia == null) { |
| 627 _url = 'captions'; |
| 628 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 629 _url = '/resumable/upload/youtube/v3/captions'; |
| 630 } else { |
| 631 _url = '/upload/youtube/v3/captions'; |
| 632 } |
| 633 |
| 634 |
| 635 var _response = _requester.request(_url, |
| 636 "PUT", |
| 637 body: _body, |
| 638 queryParams: _queryParams, |
| 639 uploadOptions: _uploadOptions, |
| 640 uploadMedia: _uploadMedia, |
| 641 downloadOptions: _downloadOptions); |
| 642 return _response.then((data) => new Caption.fromJson(data)); |
| 643 } |
| 644 |
| 645 } |
| 646 |
| 647 |
247 class ChannelBannersResourceApi { | 648 class ChannelBannersResourceApi { |
248 final common_internal.ApiRequester _requester; | 649 final commons.ApiRequester _requester; |
249 | 650 |
250 ChannelBannersResourceApi(common_internal.ApiRequester client) : | 651 ChannelBannersResourceApi(commons.ApiRequester client) : |
251 _requester = client; | 652 _requester = client; |
252 | 653 |
253 /** | 654 /** |
254 * Uploads a channel banner image to YouTube. This method represents the first | 655 * Uploads a channel banner image to YouTube. This method represents the first |
255 * two steps in a three-step process to update the banner image for a channel: | 656 * two steps in a three-step process to update the banner image for a channel: |
256 * | 657 * |
257 * - Call the channelBanners.insert method to upload the binary image data to | 658 * - Call the channelBanners.insert method to upload the binary image data to |
258 * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 | 659 * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 |
259 * pixels. | 660 * pixels. |
260 * - Extract the url property's value from the response that the API returns | 661 * - Extract the url property's value from the response that the API returns |
(...skipping 19 matching lines...) Expand all Loading... |
280 * account that the user authenticates with must be linked to the specified | 681 * account that the user authenticates with must be linked to the specified |
281 * YouTube content owner. | 682 * YouTube content owner. |
282 * | 683 * |
283 * [uploadMedia] - The media to upload. | 684 * [uploadMedia] - The media to upload. |
284 * | 685 * |
285 * [uploadOptions] - Options for the media upload. Streaming Media without the | 686 * [uploadOptions] - Options for the media upload. Streaming Media without the |
286 * length being known ahead of time is only supported via resumable uploads. | 687 * length being known ahead of time is only supported via resumable uploads. |
287 * | 688 * |
288 * Completes with a [ChannelBannerResource]. | 689 * Completes with a [ChannelBannerResource]. |
289 * | 690 * |
290 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 691 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
291 * error. | 692 * error. |
292 * | 693 * |
293 * If the used [http.Client] completes with an error when making a REST call, | 694 * If the used [http.Client] completes with an error when making a REST call, |
294 * this method will complete with the same error. | 695 * this method will complete with the same error. |
295 */ | 696 */ |
296 async.Future<ChannelBannerResource> insert(ChannelBannerResource request, {cor
e.String onBehalfOfContentOwner, common.UploadOptions uploadOptions : common.Upl
oadOptions.Default, common.Media uploadMedia}) { | 697 async.Future<ChannelBannerResource> insert(ChannelBannerResource request, {cor
e.String onBehalfOfContentOwner, commons.UploadOptions uploadOptions : commons.U
ploadOptions.Default, commons.Media uploadMedia}) { |
297 var _url = null; | 698 var _url = null; |
298 var _queryParams = new core.Map(); | 699 var _queryParams = new core.Map(); |
299 var _uploadMedia = null; | 700 var _uploadMedia = null; |
300 var _uploadOptions = null; | 701 var _uploadOptions = null; |
301 var _downloadOptions = common.DownloadOptions.Metadata; | 702 var _downloadOptions = commons.DownloadOptions.Metadata; |
302 var _body = null; | 703 var _body = null; |
303 | 704 |
304 if (request != null) { | 705 if (request != null) { |
305 _body = convert.JSON.encode((request).toJson()); | 706 _body = convert.JSON.encode((request).toJson()); |
306 } | 707 } |
307 if (onBehalfOfContentOwner != null) { | 708 if (onBehalfOfContentOwner != null) { |
308 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 709 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
309 } | 710 } |
310 | 711 |
311 _uploadMedia = uploadMedia; | 712 _uploadMedia = uploadMedia; |
312 _uploadOptions = uploadOptions; | 713 _uploadOptions = uploadOptions; |
313 | 714 |
314 if (_uploadMedia == null) { | 715 if (_uploadMedia == null) { |
315 _url = 'channelBanners/insert'; | 716 _url = 'channelBanners/insert'; |
316 } else if (_uploadOptions is common.ResumableUploadOptions) { | 717 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
317 _url = '/resumable/upload/youtube/v3/channelBanners/insert'; | 718 _url = '/resumable/upload/youtube/v3/channelBanners/insert'; |
318 } else { | 719 } else { |
319 _url = '/upload/youtube/v3/channelBanners/insert'; | 720 _url = '/upload/youtube/v3/channelBanners/insert'; |
320 } | 721 } |
321 | 722 |
322 | 723 |
323 var _response = _requester.request(_url, | 724 var _response = _requester.request(_url, |
324 "POST", | 725 "POST", |
325 body: _body, | 726 body: _body, |
326 queryParams: _queryParams, | 727 queryParams: _queryParams, |
327 uploadOptions: _uploadOptions, | 728 uploadOptions: _uploadOptions, |
328 uploadMedia: _uploadMedia, | 729 uploadMedia: _uploadMedia, |
329 downloadOptions: _downloadOptions); | 730 downloadOptions: _downloadOptions); |
330 return _response.then((data) => new ChannelBannerResource.fromJson(data)); | 731 return _response.then((data) => new ChannelBannerResource.fromJson(data)); |
331 } | 732 } |
332 | 733 |
333 } | 734 } |
334 | 735 |
335 | 736 |
336 /** Not documented yet. */ | |
337 class ChannelSectionsResourceApi { | 737 class ChannelSectionsResourceApi { |
338 final common_internal.ApiRequester _requester; | 738 final commons.ApiRequester _requester; |
339 | 739 |
340 ChannelSectionsResourceApi(common_internal.ApiRequester client) : | 740 ChannelSectionsResourceApi(commons.ApiRequester client) : |
341 _requester = client; | 741 _requester = client; |
342 | 742 |
343 /** | 743 /** |
344 * Deletes a channelSection. | 744 * Deletes a channelSection. |
345 * | 745 * |
346 * Request parameters: | 746 * Request parameters: |
347 * | 747 * |
348 * [id] - The id parameter specifies the YouTube channelSection ID for the | 748 * [id] - The id parameter specifies the YouTube channelSection ID for the |
349 * resource that is being deleted. In a channelSection resource, the id | 749 * resource that is being deleted. In a channelSection resource, the id |
350 * property specifies the YouTube channelSection ID. | 750 * property specifies the YouTube channelSection ID. |
351 * | 751 * |
352 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 752 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
353 * YouTube content partners. | 753 * YouTube content partners. |
354 * | 754 * |
355 * The onBehalfOfContentOwner parameter indicates that the request's | 755 * The onBehalfOfContentOwner parameter indicates that the request's |
356 * authorization credentials identify a YouTube CMS user who is acting on | 756 * authorization credentials identify a YouTube CMS user who is acting on |
357 * behalf of the content owner specified in the parameter value. This | 757 * behalf of the content owner specified in the parameter value. This |
358 * parameter is intended for YouTube content partners that own and manage many | 758 * parameter is intended for YouTube content partners that own and manage many |
359 * different YouTube channels. It allows content owners to authenticate once | 759 * different YouTube channels. It allows content owners to authenticate once |
360 * and get access to all their video and channel data, without having to | 760 * and get access to all their video and channel data, without having to |
361 * provide authentication credentials for each individual channel. The CMS | 761 * provide authentication credentials for each individual channel. The CMS |
362 * account that the user authenticates with must be linked to the specified | 762 * account that the user authenticates with must be linked to the specified |
363 * YouTube content owner. | 763 * YouTube content owner. |
364 * | 764 * |
365 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 765 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
366 * error. | 766 * error. |
367 * | 767 * |
368 * If the used [http.Client] completes with an error when making a REST call, | 768 * If the used [http.Client] completes with an error when making a REST call, |
369 * this method will complete with the same error. | 769 * this method will complete with the same error. |
370 */ | 770 */ |
371 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { | 771 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { |
372 var _url = null; | 772 var _url = null; |
373 var _queryParams = new core.Map(); | 773 var _queryParams = new core.Map(); |
374 var _uploadMedia = null; | 774 var _uploadMedia = null; |
375 var _uploadOptions = null; | 775 var _uploadOptions = null; |
376 var _downloadOptions = common.DownloadOptions.Metadata; | 776 var _downloadOptions = commons.DownloadOptions.Metadata; |
377 var _body = null; | 777 var _body = null; |
378 | 778 |
379 if (id == null) { | 779 if (id == null) { |
380 throw new core.ArgumentError("Parameter id is required."); | 780 throw new core.ArgumentError("Parameter id is required."); |
381 } | 781 } |
382 _queryParams["id"] = [id]; | 782 _queryParams["id"] = [id]; |
383 if (onBehalfOfContentOwner != null) { | 783 if (onBehalfOfContentOwner != null) { |
384 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 784 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
385 } | 785 } |
386 | 786 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 * onBehalfOfContentOwner parameter specifies. | 840 * onBehalfOfContentOwner parameter specifies. |
441 * | 841 * |
442 * This parameter is intended for YouTube content partners that own and manage | 842 * This parameter is intended for YouTube content partners that own and manage |
443 * many different YouTube channels. It allows content owners to authenticate | 843 * many different YouTube channels. It allows content owners to authenticate |
444 * once and perform actions on behalf of the channel specified in the | 844 * once and perform actions on behalf of the channel specified in the |
445 * parameter value, without having to provide authentication credentials for | 845 * parameter value, without having to provide authentication credentials for |
446 * each separate channel. | 846 * each separate channel. |
447 * | 847 * |
448 * Completes with a [ChannelSection]. | 848 * Completes with a [ChannelSection]. |
449 * | 849 * |
450 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 850 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
451 * error. | 851 * error. |
452 * | 852 * |
453 * If the used [http.Client] completes with an error when making a REST call, | 853 * If the used [http.Client] completes with an error when making a REST call, |
454 * this method will complete with the same error. | 854 * this method will complete with the same error. |
455 */ | 855 */ |
456 async.Future<ChannelSection> insert(ChannelSection request, core.String part,
{core.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel})
{ | 856 async.Future<ChannelSection> insert(ChannelSection request, core.String part,
{core.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel})
{ |
457 var _url = null; | 857 var _url = null; |
458 var _queryParams = new core.Map(); | 858 var _queryParams = new core.Map(); |
459 var _uploadMedia = null; | 859 var _uploadMedia = null; |
460 var _uploadOptions = null; | 860 var _uploadOptions = null; |
461 var _downloadOptions = common.DownloadOptions.Metadata; | 861 var _downloadOptions = commons.DownloadOptions.Metadata; |
462 var _body = null; | 862 var _body = null; |
463 | 863 |
464 if (request != null) { | 864 if (request != null) { |
465 _body = convert.JSON.encode((request).toJson()); | 865 _body = convert.JSON.encode((request).toJson()); |
466 } | 866 } |
467 if (part == null) { | 867 if (part == null) { |
468 throw new core.ArgumentError("Parameter part is required."); | 868 throw new core.ArgumentError("Parameter part is required."); |
469 } | 869 } |
470 _queryParams["part"] = [part]; | 870 _queryParams["part"] = [part]; |
471 if (onBehalfOfContentOwner != null) { | 871 if (onBehalfOfContentOwner != null) { |
(...skipping 28 matching lines...) Expand all Loading... |
500 * | 900 * |
501 * If the parameter identifies a property that contains child properties, the | 901 * If the parameter identifies a property that contains child properties, the |
502 * child properties will be included in the response. For example, in a | 902 * child properties will be included in the response. For example, in a |
503 * channelSection resource, the snippet property contains other properties, | 903 * channelSection resource, the snippet property contains other properties, |
504 * such as a display title for the channelSection. If you set part=snippet, | 904 * such as a display title for the channelSection. If you set part=snippet, |
505 * the API response will also contain all of those nested properties. | 905 * the API response will also contain all of those nested properties. |
506 * | 906 * |
507 * [channelId] - The channelId parameter specifies a YouTube channel ID. The | 907 * [channelId] - The channelId parameter specifies a YouTube channel ID. The |
508 * API will only return that channel's channelSections. | 908 * API will only return that channel's channelSections. |
509 * | 909 * |
| 910 * [hl] - The hl parameter indicates that the snippet.localized property |
| 911 * values in the returned channelSection resources should be in the specified |
| 912 * language if localized values for that language are available. For example, |
| 913 * if the API request specifies hl=de, the snippet.localized properties in the |
| 914 * API response will contain German titles if German titles are available. |
| 915 * Channel owners can provide localized channel section titles using either |
| 916 * the channelSections.insert or channelSections.update method. |
| 917 * |
510 * [id] - The id parameter specifies a comma-separated list of the YouTube | 918 * [id] - The id parameter specifies a comma-separated list of the YouTube |
511 * channelSection ID(s) for the resource(s) that are being retrieved. In a | 919 * channelSection ID(s) for the resource(s) that are being retrieved. In a |
512 * channelSection resource, the id property specifies the YouTube | 920 * channelSection resource, the id property specifies the YouTube |
513 * channelSection ID. | 921 * channelSection ID. |
514 * | 922 * |
515 * [mine] - Set this parameter's value to true to retrieve a feed of the | 923 * [mine] - Set this parameter's value to true to retrieve a feed of the |
516 * authenticated user's channelSections. | 924 * authenticated user's channelSections. |
517 * | 925 * |
518 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 926 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
519 * YouTube content partners. | 927 * YouTube content partners. |
520 * | 928 * |
521 * The onBehalfOfContentOwner parameter indicates that the request's | 929 * The onBehalfOfContentOwner parameter indicates that the request's |
522 * authorization credentials identify a YouTube CMS user who is acting on | 930 * authorization credentials identify a YouTube CMS user who is acting on |
523 * behalf of the content owner specified in the parameter value. This | 931 * behalf of the content owner specified in the parameter value. This |
524 * parameter is intended for YouTube content partners that own and manage many | 932 * parameter is intended for YouTube content partners that own and manage many |
525 * different YouTube channels. It allows content owners to authenticate once | 933 * different YouTube channels. It allows content owners to authenticate once |
526 * and get access to all their video and channel data, without having to | 934 * and get access to all their video and channel data, without having to |
527 * provide authentication credentials for each individual channel. The CMS | 935 * provide authentication credentials for each individual channel. The CMS |
528 * account that the user authenticates with must be linked to the specified | 936 * account that the user authenticates with must be linked to the specified |
529 * YouTube content owner. | 937 * YouTube content owner. |
530 * | 938 * |
531 * Completes with a [ChannelSectionListResponse]. | 939 * Completes with a [ChannelSectionListResponse]. |
532 * | 940 * |
533 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 941 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
534 * error. | 942 * error. |
535 * | 943 * |
536 * If the used [http.Client] completes with an error when making a REST call, | 944 * If the used [http.Client] completes with an error when making a REST call, |
537 * this method will complete with the same error. | 945 * this method will complete with the same error. |
538 */ | 946 */ |
539 async.Future<ChannelSectionListResponse> list(core.String part, {core.String c
hannelId, core.String id, core.bool mine, core.String onBehalfOfContentOwner}) { | 947 async.Future<ChannelSectionListResponse> list(core.String part, {core.String c
hannelId, core.String hl, core.String id, core.bool mine, core.String onBehalfOf
ContentOwner}) { |
540 var _url = null; | 948 var _url = null; |
541 var _queryParams = new core.Map(); | 949 var _queryParams = new core.Map(); |
542 var _uploadMedia = null; | 950 var _uploadMedia = null; |
543 var _uploadOptions = null; | 951 var _uploadOptions = null; |
544 var _downloadOptions = common.DownloadOptions.Metadata; | 952 var _downloadOptions = commons.DownloadOptions.Metadata; |
545 var _body = null; | 953 var _body = null; |
546 | 954 |
547 if (part == null) { | 955 if (part == null) { |
548 throw new core.ArgumentError("Parameter part is required."); | 956 throw new core.ArgumentError("Parameter part is required."); |
549 } | 957 } |
550 _queryParams["part"] = [part]; | 958 _queryParams["part"] = [part]; |
551 if (channelId != null) { | 959 if (channelId != null) { |
552 _queryParams["channelId"] = [channelId]; | 960 _queryParams["channelId"] = [channelId]; |
553 } | 961 } |
| 962 if (hl != null) { |
| 963 _queryParams["hl"] = [hl]; |
| 964 } |
554 if (id != null) { | 965 if (id != null) { |
555 _queryParams["id"] = [id]; | 966 _queryParams["id"] = [id]; |
556 } | 967 } |
557 if (mine != null) { | 968 if (mine != null) { |
558 _queryParams["mine"] = ["${mine}"]; | 969 _queryParams["mine"] = ["${mine}"]; |
559 } | 970 } |
560 if (onBehalfOfContentOwner != null) { | 971 if (onBehalfOfContentOwner != null) { |
561 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 972 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
562 } | 973 } |
563 | 974 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 * behalf of the content owner specified in the parameter value. This | 1007 * behalf of the content owner specified in the parameter value. This |
597 * parameter is intended for YouTube content partners that own and manage many | 1008 * parameter is intended for YouTube content partners that own and manage many |
598 * different YouTube channels. It allows content owners to authenticate once | 1009 * different YouTube channels. It allows content owners to authenticate once |
599 * and get access to all their video and channel data, without having to | 1010 * and get access to all their video and channel data, without having to |
600 * provide authentication credentials for each individual channel. The CMS | 1011 * provide authentication credentials for each individual channel. The CMS |
601 * account that the user authenticates with must be linked to the specified | 1012 * account that the user authenticates with must be linked to the specified |
602 * YouTube content owner. | 1013 * YouTube content owner. |
603 * | 1014 * |
604 * Completes with a [ChannelSection]. | 1015 * Completes with a [ChannelSection]. |
605 * | 1016 * |
606 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1017 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
607 * error. | 1018 * error. |
608 * | 1019 * |
609 * If the used [http.Client] completes with an error when making a REST call, | 1020 * If the used [http.Client] completes with an error when making a REST call, |
610 * this method will complete with the same error. | 1021 * this method will complete with the same error. |
611 */ | 1022 */ |
612 async.Future<ChannelSection> update(ChannelSection request, core.String part,
{core.String onBehalfOfContentOwner}) { | 1023 async.Future<ChannelSection> update(ChannelSection request, core.String part,
{core.String onBehalfOfContentOwner}) { |
613 var _url = null; | 1024 var _url = null; |
614 var _queryParams = new core.Map(); | 1025 var _queryParams = new core.Map(); |
615 var _uploadMedia = null; | 1026 var _uploadMedia = null; |
616 var _uploadOptions = null; | 1027 var _uploadOptions = null; |
617 var _downloadOptions = common.DownloadOptions.Metadata; | 1028 var _downloadOptions = commons.DownloadOptions.Metadata; |
618 var _body = null; | 1029 var _body = null; |
619 | 1030 |
620 if (request != null) { | 1031 if (request != null) { |
621 _body = convert.JSON.encode((request).toJson()); | 1032 _body = convert.JSON.encode((request).toJson()); |
622 } | 1033 } |
623 if (part == null) { | 1034 if (part == null) { |
624 throw new core.ArgumentError("Parameter part is required."); | 1035 throw new core.ArgumentError("Parameter part is required."); |
625 } | 1036 } |
626 _queryParams["part"] = [part]; | 1037 _queryParams["part"] = [part]; |
627 if (onBehalfOfContentOwner != null) { | 1038 if (onBehalfOfContentOwner != null) { |
628 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 1039 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
629 } | 1040 } |
630 | 1041 |
631 | 1042 |
632 _url = 'channelSections'; | 1043 _url = 'channelSections'; |
633 | 1044 |
634 var _response = _requester.request(_url, | 1045 var _response = _requester.request(_url, |
635 "PUT", | 1046 "PUT", |
636 body: _body, | 1047 body: _body, |
637 queryParams: _queryParams, | 1048 queryParams: _queryParams, |
638 uploadOptions: _uploadOptions, | 1049 uploadOptions: _uploadOptions, |
639 uploadMedia: _uploadMedia, | 1050 uploadMedia: _uploadMedia, |
640 downloadOptions: _downloadOptions); | 1051 downloadOptions: _downloadOptions); |
641 return _response.then((data) => new ChannelSection.fromJson(data)); | 1052 return _response.then((data) => new ChannelSection.fromJson(data)); |
642 } | 1053 } |
643 | 1054 |
644 } | 1055 } |
645 | 1056 |
646 | 1057 |
647 /** Not documented yet. */ | |
648 class ChannelsResourceApi { | 1058 class ChannelsResourceApi { |
649 final common_internal.ApiRequester _requester; | 1059 final commons.ApiRequester _requester; |
650 | 1060 |
651 ChannelsResourceApi(common_internal.ApiRequester client) : | 1061 ChannelsResourceApi(commons.ApiRequester client) : |
652 _requester = client; | 1062 _requester = client; |
653 | 1063 |
654 /** | 1064 /** |
655 * Returns a collection of zero or more channel resources that match the | 1065 * Returns a collection of zero or more channel resources that match the |
656 * request criteria. | 1066 * request criteria. |
657 * | 1067 * |
658 * Request parameters: | 1068 * Request parameters: |
659 * | 1069 * |
660 * [part] - The part parameter specifies a comma-separated list of one or more | 1070 * [part] - The part parameter specifies a comma-separated list of one or more |
661 * channel resource properties that the API response will include. The part | 1071 * channel resource properties that the API response will include. The part |
662 * names that you can include in the parameter value are id, snippet, | 1072 * names that you can include in the parameter value are id, snippet, |
663 * contentDetails, statistics, topicDetails, and invideoPromotion. | 1073 * contentDetails, statistics, topicDetails, and invideoPromotion. |
664 * | 1074 * |
665 * If the parameter identifies a property that contains child properties, the | 1075 * If the parameter identifies a property that contains child properties, the |
666 * child properties will be included in the response. For example, in a | 1076 * child properties will be included in the response. For example, in a |
667 * channel resource, the contentDetails property contains other properties, | 1077 * channel resource, the contentDetails property contains other properties, |
668 * such as the uploads properties. As such, if you set part=contentDetails, | 1078 * such as the uploads properties. As such, if you set part=contentDetails, |
669 * the API response will also contain all of those nested properties. | 1079 * the API response will also contain all of those nested properties. |
670 * | 1080 * |
671 * [categoryId] - The categoryId parameter specifies a YouTube guide category, | 1081 * [categoryId] - The categoryId parameter specifies a YouTube guide category, |
672 * thereby requesting YouTube channels associated with that category. | 1082 * thereby requesting YouTube channels associated with that category. |
673 * | 1083 * |
674 * [forUsername] - The forUsername parameter specifies a YouTube username, | 1084 * [forUsername] - The forUsername parameter specifies a YouTube username, |
675 * thereby requesting the channel associated with that username. | 1085 * thereby requesting the channel associated with that username. |
676 * | 1086 * |
| 1087 * [hl] - The hl parameter should be used for filter out the properties that |
| 1088 * are not in the given language. Used for the brandingSettings part. |
| 1089 * |
677 * [id] - The id parameter specifies a comma-separated list of the YouTube | 1090 * [id] - The id parameter specifies a comma-separated list of the YouTube |
678 * channel ID(s) for the resource(s) that are being retrieved. In a channel | 1091 * channel ID(s) for the resource(s) that are being retrieved. In a channel |
679 * resource, the id property specifies the channel's YouTube channel ID. | 1092 * resource, the id property specifies the channel's YouTube channel ID. |
680 * | 1093 * |
681 * [managedByMe] - Set this parameter's value to true to instruct the API to | 1094 * [managedByMe] - Set this parameter's value to true to instruct the API to |
682 * only return channels managed by the content owner that the | 1095 * only return channels managed by the content owner that the |
683 * onBehalfOfContentOwner parameter specifies. The user must be authenticated | 1096 * onBehalfOfContentOwner parameter specifies. The user must be authenticated |
684 * as a CMS account linked to the specified content owner and | 1097 * as a CMS account linked to the specified content owner and |
685 * onBehalfOfContentOwner must be provided. | 1098 * onBehalfOfContentOwner must be provided. |
686 * | 1099 * |
(...skipping 16 matching lines...) Expand all Loading... |
703 * credentials for each individual channel. The actual CMS account that the | 1116 * credentials for each individual channel. The actual CMS account that the |
704 * user authenticates with needs to be linked to the specified YouTube content | 1117 * user authenticates with needs to be linked to the specified YouTube content |
705 * owner. | 1118 * owner. |
706 * | 1119 * |
707 * [pageToken] - The pageToken parameter identifies a specific page in the | 1120 * [pageToken] - The pageToken parameter identifies a specific page in the |
708 * result set that should be returned. In an API response, the nextPageToken | 1121 * result set that should be returned. In an API response, the nextPageToken |
709 * and prevPageToken properties identify other pages that could be retrieved. | 1122 * and prevPageToken properties identify other pages that could be retrieved. |
710 * | 1123 * |
711 * Completes with a [ChannelListResponse]. | 1124 * Completes with a [ChannelListResponse]. |
712 * | 1125 * |
713 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1126 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
714 * error. | 1127 * error. |
715 * | 1128 * |
716 * If the used [http.Client] completes with an error when making a REST call, | 1129 * If the used [http.Client] completes with an error when making a REST call, |
717 * this method will complete with the same error. | 1130 * this method will complete with the same error. |
718 */ | 1131 */ |
719 async.Future<ChannelListResponse> list(core.String part, {core.String category
Id, core.String forUsername, core.String id, core.bool managedByMe, core.int max
Results, core.bool mine, core.bool mySubscribers, core.String onBehalfOfContentO
wner, core.String pageToken}) { | 1132 async.Future<ChannelListResponse> list(core.String part, {core.String category
Id, core.String forUsername, core.String hl, core.String id, core.bool managedBy
Me, core.int maxResults, core.bool mine, core.bool mySubscribers, core.String on
BehalfOfContentOwner, core.String pageToken}) { |
720 var _url = null; | 1133 var _url = null; |
721 var _queryParams = new core.Map(); | 1134 var _queryParams = new core.Map(); |
722 var _uploadMedia = null; | 1135 var _uploadMedia = null; |
723 var _uploadOptions = null; | 1136 var _uploadOptions = null; |
724 var _downloadOptions = common.DownloadOptions.Metadata; | 1137 var _downloadOptions = commons.DownloadOptions.Metadata; |
725 var _body = null; | 1138 var _body = null; |
726 | 1139 |
727 if (part == null) { | 1140 if (part == null) { |
728 throw new core.ArgumentError("Parameter part is required."); | 1141 throw new core.ArgumentError("Parameter part is required."); |
729 } | 1142 } |
730 _queryParams["part"] = [part]; | 1143 _queryParams["part"] = [part]; |
731 if (categoryId != null) { | 1144 if (categoryId != null) { |
732 _queryParams["categoryId"] = [categoryId]; | 1145 _queryParams["categoryId"] = [categoryId]; |
733 } | 1146 } |
734 if (forUsername != null) { | 1147 if (forUsername != null) { |
735 _queryParams["forUsername"] = [forUsername]; | 1148 _queryParams["forUsername"] = [forUsername]; |
736 } | 1149 } |
| 1150 if (hl != null) { |
| 1151 _queryParams["hl"] = [hl]; |
| 1152 } |
737 if (id != null) { | 1153 if (id != null) { |
738 _queryParams["id"] = [id]; | 1154 _queryParams["id"] = [id]; |
739 } | 1155 } |
740 if (managedByMe != null) { | 1156 if (managedByMe != null) { |
741 _queryParams["managedByMe"] = ["${managedByMe}"]; | 1157 _queryParams["managedByMe"] = ["${managedByMe}"]; |
742 } | 1158 } |
743 if (maxResults != null) { | 1159 if (maxResults != null) { |
744 _queryParams["maxResults"] = ["${maxResults}"]; | 1160 _queryParams["maxResults"] = ["${maxResults}"]; |
745 } | 1161 } |
746 if (mine != null) { | 1162 if (mine != null) { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 * specified in the parameter value. This parameter is intended for YouTube | 1208 * specified in the parameter value. This parameter is intended for YouTube |
793 * content partners that own and manage many different YouTube channels. It | 1209 * content partners that own and manage many different YouTube channels. It |
794 * allows content owners to authenticate once and get access to all their | 1210 * allows content owners to authenticate once and get access to all their |
795 * video and channel data, without having to provide authentication | 1211 * video and channel data, without having to provide authentication |
796 * credentials for each individual channel. The actual CMS account that the | 1212 * credentials for each individual channel. The actual CMS account that the |
797 * user authenticates with needs to be linked to the specified YouTube content | 1213 * user authenticates with needs to be linked to the specified YouTube content |
798 * owner. | 1214 * owner. |
799 * | 1215 * |
800 * Completes with a [Channel]. | 1216 * Completes with a [Channel]. |
801 * | 1217 * |
802 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
803 * error. | 1219 * error. |
804 * | 1220 * |
805 * If the used [http.Client] completes with an error when making a REST call, | 1221 * If the used [http.Client] completes with an error when making a REST call, |
806 * this method will complete with the same error. | 1222 * this method will complete with the same error. |
807 */ | 1223 */ |
808 async.Future<Channel> update(Channel request, core.String part, {core.String o
nBehalfOfContentOwner}) { | 1224 async.Future<Channel> update(Channel request, core.String part, {core.String o
nBehalfOfContentOwner}) { |
809 var _url = null; | 1225 var _url = null; |
810 var _queryParams = new core.Map(); | 1226 var _queryParams = new core.Map(); |
811 var _uploadMedia = null; | 1227 var _uploadMedia = null; |
812 var _uploadOptions = null; | 1228 var _uploadOptions = null; |
813 var _downloadOptions = common.DownloadOptions.Metadata; | 1229 var _downloadOptions = commons.DownloadOptions.Metadata; |
814 var _body = null; | 1230 var _body = null; |
815 | 1231 |
816 if (request != null) { | 1232 if (request != null) { |
817 _body = convert.JSON.encode((request).toJson()); | 1233 _body = convert.JSON.encode((request).toJson()); |
818 } | 1234 } |
819 if (part == null) { | 1235 if (part == null) { |
820 throw new core.ArgumentError("Parameter part is required."); | 1236 throw new core.ArgumentError("Parameter part is required."); |
821 } | 1237 } |
822 _queryParams["part"] = [part]; | 1238 _queryParams["part"] = [part]; |
823 if (onBehalfOfContentOwner != null) { | 1239 if (onBehalfOfContentOwner != null) { |
824 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 1240 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
825 } | 1241 } |
826 | 1242 |
827 | 1243 |
828 _url = 'channels'; | 1244 _url = 'channels'; |
829 | 1245 |
830 var _response = _requester.request(_url, | 1246 var _response = _requester.request(_url, |
831 "PUT", | 1247 "PUT", |
832 body: _body, | 1248 body: _body, |
833 queryParams: _queryParams, | 1249 queryParams: _queryParams, |
834 uploadOptions: _uploadOptions, | 1250 uploadOptions: _uploadOptions, |
835 uploadMedia: _uploadMedia, | 1251 uploadMedia: _uploadMedia, |
836 downloadOptions: _downloadOptions); | 1252 downloadOptions: _downloadOptions); |
837 return _response.then((data) => new Channel.fromJson(data)); | 1253 return _response.then((data) => new Channel.fromJson(data)); |
838 } | 1254 } |
839 | 1255 |
840 } | 1256 } |
841 | 1257 |
842 | 1258 |
843 /** Not documented yet. */ | |
844 class GuideCategoriesResourceApi { | 1259 class GuideCategoriesResourceApi { |
845 final common_internal.ApiRequester _requester; | 1260 final commons.ApiRequester _requester; |
846 | 1261 |
847 GuideCategoriesResourceApi(common_internal.ApiRequester client) : | 1262 GuideCategoriesResourceApi(commons.ApiRequester client) : |
848 _requester = client; | 1263 _requester = client; |
849 | 1264 |
850 /** | 1265 /** |
851 * Returns a list of categories that can be associated with YouTube channels. | 1266 * Returns a list of categories that can be associated with YouTube channels. |
852 * | 1267 * |
853 * Request parameters: | 1268 * Request parameters: |
854 * | 1269 * |
855 * [part] - The part parameter specifies a comma-separated list of one or more | 1270 * [part] - The part parameter specifies a comma-separated list of one or more |
856 * guideCategory resource properties that the API response will include. The | 1271 * guideCategory resource properties that the API response will include. The |
857 * part names that you can include in the parameter value are id and snippet. | 1272 * part names that you can include in the parameter value are id and snippet. |
(...skipping 11 matching lines...) Expand all Loading... |
869 * channel category ID(s) for the resource(s) that are being retrieved. In a | 1284 * channel category ID(s) for the resource(s) that are being retrieved. In a |
870 * guideCategory resource, the id property specifies the YouTube channel | 1285 * guideCategory resource, the id property specifies the YouTube channel |
871 * category ID. | 1286 * category ID. |
872 * | 1287 * |
873 * [regionCode] - The regionCode parameter instructs the API to return the | 1288 * [regionCode] - The regionCode parameter instructs the API to return the |
874 * list of guide categories available in the specified country. The parameter | 1289 * list of guide categories available in the specified country. The parameter |
875 * value is an ISO 3166-1 alpha-2 country code. | 1290 * value is an ISO 3166-1 alpha-2 country code. |
876 * | 1291 * |
877 * Completes with a [GuideCategoryListResponse]. | 1292 * Completes with a [GuideCategoryListResponse]. |
878 * | 1293 * |
879 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
880 * error. | 1295 * error. |
881 * | 1296 * |
882 * If the used [http.Client] completes with an error when making a REST call, | 1297 * If the used [http.Client] completes with an error when making a REST call, |
883 * this method will complete with the same error. | 1298 * this method will complete with the same error. |
884 */ | 1299 */ |
885 async.Future<GuideCategoryListResponse> list(core.String part, {core.String hl
, core.String id, core.String regionCode}) { | 1300 async.Future<GuideCategoryListResponse> list(core.String part, {core.String hl
, core.String id, core.String regionCode}) { |
886 var _url = null; | 1301 var _url = null; |
887 var _queryParams = new core.Map(); | 1302 var _queryParams = new core.Map(); |
888 var _uploadMedia = null; | 1303 var _uploadMedia = null; |
889 var _uploadOptions = null; | 1304 var _uploadOptions = null; |
890 var _downloadOptions = common.DownloadOptions.Metadata; | 1305 var _downloadOptions = commons.DownloadOptions.Metadata; |
891 var _body = null; | 1306 var _body = null; |
892 | 1307 |
893 if (part == null) { | 1308 if (part == null) { |
894 throw new core.ArgumentError("Parameter part is required."); | 1309 throw new core.ArgumentError("Parameter part is required."); |
895 } | 1310 } |
896 _queryParams["part"] = [part]; | 1311 _queryParams["part"] = [part]; |
897 if (hl != null) { | 1312 if (hl != null) { |
898 _queryParams["hl"] = [hl]; | 1313 _queryParams["hl"] = [hl]; |
899 } | 1314 } |
900 if (id != null) { | 1315 if (id != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
913 queryParams: _queryParams, | 1328 queryParams: _queryParams, |
914 uploadOptions: _uploadOptions, | 1329 uploadOptions: _uploadOptions, |
915 uploadMedia: _uploadMedia, | 1330 uploadMedia: _uploadMedia, |
916 downloadOptions: _downloadOptions); | 1331 downloadOptions: _downloadOptions); |
917 return _response.then((data) => new GuideCategoryListResponse.fromJson(data)
); | 1332 return _response.then((data) => new GuideCategoryListResponse.fromJson(data)
); |
918 } | 1333 } |
919 | 1334 |
920 } | 1335 } |
921 | 1336 |
922 | 1337 |
923 /** Not documented yet. */ | |
924 class I18nLanguagesResourceApi { | 1338 class I18nLanguagesResourceApi { |
925 final common_internal.ApiRequester _requester; | 1339 final commons.ApiRequester _requester; |
926 | 1340 |
927 I18nLanguagesResourceApi(common_internal.ApiRequester client) : | 1341 I18nLanguagesResourceApi(commons.ApiRequester client) : |
928 _requester = client; | 1342 _requester = client; |
929 | 1343 |
930 /** | 1344 /** |
931 * Returns a list of supported languages. | 1345 * Returns a list of supported languages. |
932 * | 1346 * |
933 * Request parameters: | 1347 * Request parameters: |
934 * | 1348 * |
935 * [part] - The part parameter specifies a comma-separated list of one or more | 1349 * [part] - The part parameter specifies a comma-separated list of one or more |
936 * i18nLanguage resource properties that the API response will include. The | 1350 * i18nLanguage resource properties that the API response will include. The |
937 * part names that you can include in the parameter value are id and snippet. | 1351 * part names that you can include in the parameter value are id and snippet. |
938 * | 1352 * |
939 * [hl] - The hl parameter specifies the language that should be used for text | 1353 * [hl] - The hl parameter specifies the language that should be used for text |
940 * values in the API response. | 1354 * values in the API response. |
941 * | 1355 * |
942 * Completes with a [I18nLanguageListResponse]. | 1356 * Completes with a [I18nLanguageListResponse]. |
943 * | 1357 * |
944 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1358 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
945 * error. | 1359 * error. |
946 * | 1360 * |
947 * If the used [http.Client] completes with an error when making a REST call, | 1361 * If the used [http.Client] completes with an error when making a REST call, |
948 * this method will complete with the same error. | 1362 * this method will complete with the same error. |
949 */ | 1363 */ |
950 async.Future<I18nLanguageListResponse> list(core.String part, {core.String hl}
) { | 1364 async.Future<I18nLanguageListResponse> list(core.String part, {core.String hl}
) { |
951 var _url = null; | 1365 var _url = null; |
952 var _queryParams = new core.Map(); | 1366 var _queryParams = new core.Map(); |
953 var _uploadMedia = null; | 1367 var _uploadMedia = null; |
954 var _uploadOptions = null; | 1368 var _uploadOptions = null; |
955 var _downloadOptions = common.DownloadOptions.Metadata; | 1369 var _downloadOptions = commons.DownloadOptions.Metadata; |
956 var _body = null; | 1370 var _body = null; |
957 | 1371 |
958 if (part == null) { | 1372 if (part == null) { |
959 throw new core.ArgumentError("Parameter part is required."); | 1373 throw new core.ArgumentError("Parameter part is required."); |
960 } | 1374 } |
961 _queryParams["part"] = [part]; | 1375 _queryParams["part"] = [part]; |
962 if (hl != null) { | 1376 if (hl != null) { |
963 _queryParams["hl"] = [hl]; | 1377 _queryParams["hl"] = [hl]; |
964 } | 1378 } |
965 | 1379 |
966 | 1380 |
967 _url = 'i18nLanguages'; | 1381 _url = 'i18nLanguages'; |
968 | 1382 |
969 var _response = _requester.request(_url, | 1383 var _response = _requester.request(_url, |
970 "GET", | 1384 "GET", |
971 body: _body, | 1385 body: _body, |
972 queryParams: _queryParams, | 1386 queryParams: _queryParams, |
973 uploadOptions: _uploadOptions, | 1387 uploadOptions: _uploadOptions, |
974 uploadMedia: _uploadMedia, | 1388 uploadMedia: _uploadMedia, |
975 downloadOptions: _downloadOptions); | 1389 downloadOptions: _downloadOptions); |
976 return _response.then((data) => new I18nLanguageListResponse.fromJson(data))
; | 1390 return _response.then((data) => new I18nLanguageListResponse.fromJson(data))
; |
977 } | 1391 } |
978 | 1392 |
979 } | 1393 } |
980 | 1394 |
981 | 1395 |
982 /** Not documented yet. */ | |
983 class I18nRegionsResourceApi { | 1396 class I18nRegionsResourceApi { |
984 final common_internal.ApiRequester _requester; | 1397 final commons.ApiRequester _requester; |
985 | 1398 |
986 I18nRegionsResourceApi(common_internal.ApiRequester client) : | 1399 I18nRegionsResourceApi(commons.ApiRequester client) : |
987 _requester = client; | 1400 _requester = client; |
988 | 1401 |
989 /** | 1402 /** |
990 * Returns a list of supported regions. | 1403 * Returns a list of supported regions. |
991 * | 1404 * |
992 * Request parameters: | 1405 * Request parameters: |
993 * | 1406 * |
994 * [part] - The part parameter specifies a comma-separated list of one or more | 1407 * [part] - The part parameter specifies a comma-separated list of one or more |
995 * i18nRegion resource properties that the API response will include. The part | 1408 * i18nRegion resource properties that the API response will include. The part |
996 * names that you can include in the parameter value are id and snippet. | 1409 * names that you can include in the parameter value are id and snippet. |
997 * | 1410 * |
998 * [hl] - The hl parameter specifies the language that should be used for text | 1411 * [hl] - The hl parameter specifies the language that should be used for text |
999 * values in the API response. | 1412 * values in the API response. |
1000 * | 1413 * |
1001 * Completes with a [I18nRegionListResponse]. | 1414 * Completes with a [I18nRegionListResponse]. |
1002 * | 1415 * |
1003 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1416 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1004 * error. | 1417 * error. |
1005 * | 1418 * |
1006 * If the used [http.Client] completes with an error when making a REST call, | 1419 * If the used [http.Client] completes with an error when making a REST call, |
1007 * this method will complete with the same error. | 1420 * this method will complete with the same error. |
1008 */ | 1421 */ |
1009 async.Future<I18nRegionListResponse> list(core.String part, {core.String hl})
{ | 1422 async.Future<I18nRegionListResponse> list(core.String part, {core.String hl})
{ |
1010 var _url = null; | 1423 var _url = null; |
1011 var _queryParams = new core.Map(); | 1424 var _queryParams = new core.Map(); |
1012 var _uploadMedia = null; | 1425 var _uploadMedia = null; |
1013 var _uploadOptions = null; | 1426 var _uploadOptions = null; |
1014 var _downloadOptions = common.DownloadOptions.Metadata; | 1427 var _downloadOptions = commons.DownloadOptions.Metadata; |
1015 var _body = null; | 1428 var _body = null; |
1016 | 1429 |
1017 if (part == null) { | 1430 if (part == null) { |
1018 throw new core.ArgumentError("Parameter part is required."); | 1431 throw new core.ArgumentError("Parameter part is required."); |
1019 } | 1432 } |
1020 _queryParams["part"] = [part]; | 1433 _queryParams["part"] = [part]; |
1021 if (hl != null) { | 1434 if (hl != null) { |
1022 _queryParams["hl"] = [hl]; | 1435 _queryParams["hl"] = [hl]; |
1023 } | 1436 } |
1024 | 1437 |
1025 | 1438 |
1026 _url = 'i18nRegions'; | 1439 _url = 'i18nRegions'; |
1027 | 1440 |
1028 var _response = _requester.request(_url, | 1441 var _response = _requester.request(_url, |
1029 "GET", | 1442 "GET", |
1030 body: _body, | 1443 body: _body, |
1031 queryParams: _queryParams, | 1444 queryParams: _queryParams, |
1032 uploadOptions: _uploadOptions, | 1445 uploadOptions: _uploadOptions, |
1033 uploadMedia: _uploadMedia, | 1446 uploadMedia: _uploadMedia, |
1034 downloadOptions: _downloadOptions); | 1447 downloadOptions: _downloadOptions); |
1035 return _response.then((data) => new I18nRegionListResponse.fromJson(data)); | 1448 return _response.then((data) => new I18nRegionListResponse.fromJson(data)); |
1036 } | 1449 } |
1037 | 1450 |
1038 } | 1451 } |
1039 | 1452 |
1040 | 1453 |
1041 /** Not documented yet. */ | |
1042 class LiveBroadcastsResourceApi { | 1454 class LiveBroadcastsResourceApi { |
1043 final common_internal.ApiRequester _requester; | 1455 final commons.ApiRequester _requester; |
1044 | 1456 |
1045 LiveBroadcastsResourceApi(common_internal.ApiRequester client) : | 1457 LiveBroadcastsResourceApi(commons.ApiRequester client) : |
1046 _requester = client; | 1458 _requester = client; |
1047 | 1459 |
1048 /** | 1460 /** |
1049 * Binds a YouTube broadcast to a stream or removes an existing binding | 1461 * Binds a YouTube broadcast to a stream or removes an existing binding |
1050 * between a broadcast and a stream. A broadcast can only be bound to one | 1462 * between a broadcast and a stream. A broadcast can only be bound to one |
1051 * video stream. | 1463 * video stream. |
1052 * | 1464 * |
1053 * Request parameters: | 1465 * Request parameters: |
1054 * | 1466 * |
1055 * [id] - The id parameter specifies the unique ID of the broadcast that is | 1467 * [id] - The id parameter specifies the unique ID of the broadcast that is |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 * parameter value, without having to provide authentication credentials for | 1505 * parameter value, without having to provide authentication credentials for |
1094 * each separate channel. | 1506 * each separate channel. |
1095 * | 1507 * |
1096 * [streamId] - The streamId parameter specifies the unique ID of the video | 1508 * [streamId] - The streamId parameter specifies the unique ID of the video |
1097 * stream that is being bound to a broadcast. If this parameter is omitted, | 1509 * stream that is being bound to a broadcast. If this parameter is omitted, |
1098 * the API will remove any existing binding between the broadcast and a video | 1510 * the API will remove any existing binding between the broadcast and a video |
1099 * stream. | 1511 * stream. |
1100 * | 1512 * |
1101 * Completes with a [LiveBroadcast]. | 1513 * Completes with a [LiveBroadcast]. |
1102 * | 1514 * |
1103 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1515 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1104 * error. | 1516 * error. |
1105 * | 1517 * |
1106 * If the used [http.Client] completes with an error when making a REST call, | 1518 * If the used [http.Client] completes with an error when making a REST call, |
1107 * this method will complete with the same error. | 1519 * this method will complete with the same error. |
1108 */ | 1520 */ |
1109 async.Future<LiveBroadcast> bind(core.String id, core.String part, {core.Strin
g onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.String
streamId}) { | 1521 async.Future<LiveBroadcast> bind(core.String id, core.String part, {core.Strin
g onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.String
streamId}) { |
1110 var _url = null; | 1522 var _url = null; |
1111 var _queryParams = new core.Map(); | 1523 var _queryParams = new core.Map(); |
1112 var _uploadMedia = null; | 1524 var _uploadMedia = null; |
1113 var _uploadOptions = null; | 1525 var _uploadOptions = null; |
1114 var _downloadOptions = common.DownloadOptions.Metadata; | 1526 var _downloadOptions = commons.DownloadOptions.Metadata; |
1115 var _body = null; | 1527 var _body = null; |
1116 | 1528 |
1117 if (id == null) { | 1529 if (id == null) { |
1118 throw new core.ArgumentError("Parameter id is required."); | 1530 throw new core.ArgumentError("Parameter id is required."); |
1119 } | 1531 } |
1120 _queryParams["id"] = [id]; | 1532 _queryParams["id"] = [id]; |
1121 if (part == null) { | 1533 if (part == null) { |
1122 throw new core.ArgumentError("Parameter part is required."); | 1534 throw new core.ArgumentError("Parameter part is required."); |
1123 } | 1535 } |
1124 _queryParams["part"] = [part]; | 1536 _queryParams["part"] = [part]; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 * once and perform actions on behalf of the channel specified in the | 1619 * once and perform actions on behalf of the channel specified in the |
1208 * parameter value, without having to provide authentication credentials for | 1620 * parameter value, without having to provide authentication credentials for |
1209 * each separate channel. | 1621 * each separate channel. |
1210 * | 1622 * |
1211 * [walltime] - The walltime parameter specifies the wall clock time at which | 1623 * [walltime] - The walltime parameter specifies the wall clock time at which |
1212 * the specified slate change will occur. The value is specified in ISO 8601 | 1624 * the specified slate change will occur. The value is specified in ISO 8601 |
1213 * (YYYY-MM-DDThh:mm:ss.sssZ) format. | 1625 * (YYYY-MM-DDThh:mm:ss.sssZ) format. |
1214 * | 1626 * |
1215 * Completes with a [LiveBroadcast]. | 1627 * Completes with a [LiveBroadcast]. |
1216 * | 1628 * |
1217 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1629 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1218 * error. | 1630 * error. |
1219 * | 1631 * |
1220 * If the used [http.Client] completes with an error when making a REST call, | 1632 * If the used [http.Client] completes with an error when making a REST call, |
1221 * this method will complete with the same error. | 1633 * this method will complete with the same error. |
1222 */ | 1634 */ |
1223 async.Future<LiveBroadcast> control(core.String id, core.String part, {core.bo
ol displaySlate, core.String offsetTimeMs, core.String onBehalfOfContentOwner, c
ore.String onBehalfOfContentOwnerChannel, core.DateTime walltime}) { | 1635 async.Future<LiveBroadcast> control(core.String id, core.String part, {core.bo
ol displaySlate, core.String offsetTimeMs, core.String onBehalfOfContentOwner, c
ore.String onBehalfOfContentOwnerChannel, core.DateTime walltime}) { |
1224 var _url = null; | 1636 var _url = null; |
1225 var _queryParams = new core.Map(); | 1637 var _queryParams = new core.Map(); |
1226 var _uploadMedia = null; | 1638 var _uploadMedia = null; |
1227 var _uploadOptions = null; | 1639 var _uploadOptions = null; |
1228 var _downloadOptions = common.DownloadOptions.Metadata; | 1640 var _downloadOptions = commons.DownloadOptions.Metadata; |
1229 var _body = null; | 1641 var _body = null; |
1230 | 1642 |
1231 if (id == null) { | 1643 if (id == null) { |
1232 throw new core.ArgumentError("Parameter id is required."); | 1644 throw new core.ArgumentError("Parameter id is required."); |
1233 } | 1645 } |
1234 _queryParams["id"] = [id]; | 1646 _queryParams["id"] = [id]; |
1235 if (part == null) { | 1647 if (part == null) { |
1236 throw new core.ArgumentError("Parameter part is required."); | 1648 throw new core.ArgumentError("Parameter part is required."); |
1237 } | 1649 } |
1238 _queryParams["part"] = [part]; | 1650 _queryParams["part"] = [part]; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 1711 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value |
1300 * specifies must be linked to the content owner that the | 1712 * specifies must be linked to the content owner that the |
1301 * onBehalfOfContentOwner parameter specifies. | 1713 * onBehalfOfContentOwner parameter specifies. |
1302 * | 1714 * |
1303 * This parameter is intended for YouTube content partners that own and manage | 1715 * This parameter is intended for YouTube content partners that own and manage |
1304 * many different YouTube channels. It allows content owners to authenticate | 1716 * many different YouTube channels. It allows content owners to authenticate |
1305 * once and perform actions on behalf of the channel specified in the | 1717 * once and perform actions on behalf of the channel specified in the |
1306 * parameter value, without having to provide authentication credentials for | 1718 * parameter value, without having to provide authentication credentials for |
1307 * each separate channel. | 1719 * each separate channel. |
1308 * | 1720 * |
1309 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1721 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1310 * error. | 1722 * error. |
1311 * | 1723 * |
1312 * If the used [http.Client] completes with an error when making a REST call, | 1724 * If the used [http.Client] completes with an error when making a REST call, |
1313 * this method will complete with the same error. | 1725 * this method will complete with the same error. |
1314 */ | 1726 */ |
1315 async.Future delete(core.String id, {core.String onBehalfOfContentOwner, core.
String onBehalfOfContentOwnerChannel}) { | 1727 async.Future delete(core.String id, {core.String onBehalfOfContentOwner, core.
String onBehalfOfContentOwnerChannel}) { |
1316 var _url = null; | 1728 var _url = null; |
1317 var _queryParams = new core.Map(); | 1729 var _queryParams = new core.Map(); |
1318 var _uploadMedia = null; | 1730 var _uploadMedia = null; |
1319 var _uploadOptions = null; | 1731 var _uploadOptions = null; |
1320 var _downloadOptions = common.DownloadOptions.Metadata; | 1732 var _downloadOptions = commons.DownloadOptions.Metadata; |
1321 var _body = null; | 1733 var _body = null; |
1322 | 1734 |
1323 if (id == null) { | 1735 if (id == null) { |
1324 throw new core.ArgumentError("Parameter id is required."); | 1736 throw new core.ArgumentError("Parameter id is required."); |
1325 } | 1737 } |
1326 _queryParams["id"] = [id]; | 1738 _queryParams["id"] = [id]; |
1327 if (onBehalfOfContentOwner != null) { | 1739 if (onBehalfOfContentOwner != null) { |
1328 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 1740 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
1329 } | 1741 } |
1330 if (onBehalfOfContentOwnerChannel != null) { | 1742 if (onBehalfOfContentOwnerChannel != null) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 * onBehalfOfContentOwner parameter specifies. | 1799 * onBehalfOfContentOwner parameter specifies. |
1388 * | 1800 * |
1389 * This parameter is intended for YouTube content partners that own and manage | 1801 * This parameter is intended for YouTube content partners that own and manage |
1390 * many different YouTube channels. It allows content owners to authenticate | 1802 * many different YouTube channels. It allows content owners to authenticate |
1391 * once and perform actions on behalf of the channel specified in the | 1803 * once and perform actions on behalf of the channel specified in the |
1392 * parameter value, without having to provide authentication credentials for | 1804 * parameter value, without having to provide authentication credentials for |
1393 * each separate channel. | 1805 * each separate channel. |
1394 * | 1806 * |
1395 * Completes with a [LiveBroadcast]. | 1807 * Completes with a [LiveBroadcast]. |
1396 * | 1808 * |
1397 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1809 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1398 * error. | 1810 * error. |
1399 * | 1811 * |
1400 * If the used [http.Client] completes with an error when making a REST call, | 1812 * If the used [http.Client] completes with an error when making a REST call, |
1401 * this method will complete with the same error. | 1813 * this method will complete with the same error. |
1402 */ | 1814 */ |
1403 async.Future<LiveBroadcast> insert(LiveBroadcast request, core.String part, {c
ore.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 1815 async.Future<LiveBroadcast> insert(LiveBroadcast request, core.String part, {c
ore.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { |
1404 var _url = null; | 1816 var _url = null; |
1405 var _queryParams = new core.Map(); | 1817 var _queryParams = new core.Map(); |
1406 var _uploadMedia = null; | 1818 var _uploadMedia = null; |
1407 var _uploadOptions = null; | 1819 var _uploadOptions = null; |
1408 var _downloadOptions = common.DownloadOptions.Metadata; | 1820 var _downloadOptions = commons.DownloadOptions.Metadata; |
1409 var _body = null; | 1821 var _body = null; |
1410 | 1822 |
1411 if (request != null) { | 1823 if (request != null) { |
1412 _body = convert.JSON.encode((request).toJson()); | 1824 _body = convert.JSON.encode((request).toJson()); |
1413 } | 1825 } |
1414 if (part == null) { | 1826 if (part == null) { |
1415 throw new core.ArgumentError("Parameter part is required."); | 1827 throw new core.ArgumentError("Parameter part is required."); |
1416 } | 1828 } |
1417 _queryParams["part"] = [part]; | 1829 _queryParams["part"] = [part]; |
1418 if (onBehalfOfContentOwner != null) { | 1830 if (onBehalfOfContentOwner != null) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1497 * once and perform actions on behalf of the channel specified in the | 1909 * once and perform actions on behalf of the channel specified in the |
1498 * parameter value, without having to provide authentication credentials for | 1910 * parameter value, without having to provide authentication credentials for |
1499 * each separate channel. | 1911 * each separate channel. |
1500 * | 1912 * |
1501 * [pageToken] - The pageToken parameter identifies a specific page in the | 1913 * [pageToken] - The pageToken parameter identifies a specific page in the |
1502 * result set that should be returned. In an API response, the nextPageToken | 1914 * result set that should be returned. In an API response, the nextPageToken |
1503 * and prevPageToken properties identify other pages that could be retrieved. | 1915 * and prevPageToken properties identify other pages that could be retrieved. |
1504 * | 1916 * |
1505 * Completes with a [LiveBroadcastListResponse]. | 1917 * Completes with a [LiveBroadcastListResponse]. |
1506 * | 1918 * |
1507 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1919 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1508 * error. | 1920 * error. |
1509 * | 1921 * |
1510 * If the used [http.Client] completes with an error when making a REST call, | 1922 * If the used [http.Client] completes with an error when making a REST call, |
1511 * this method will complete with the same error. | 1923 * this method will complete with the same error. |
1512 */ | 1924 */ |
1513 async.Future<LiveBroadcastListResponse> list(core.String part, {core.String br
oadcastStatus, core.String id, core.int maxResults, core.bool mine, core.String
onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.String p
ageToken}) { | 1925 async.Future<LiveBroadcastListResponse> list(core.String part, {core.String br
oadcastStatus, core.String id, core.int maxResults, core.bool mine, core.String
onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.String p
ageToken}) { |
1514 var _url = null; | 1926 var _url = null; |
1515 var _queryParams = new core.Map(); | 1927 var _queryParams = new core.Map(); |
1516 var _uploadMedia = null; | 1928 var _uploadMedia = null; |
1517 var _uploadOptions = null; | 1929 var _uploadOptions = null; |
1518 var _downloadOptions = common.DownloadOptions.Metadata; | 1930 var _downloadOptions = commons.DownloadOptions.Metadata; |
1519 var _body = null; | 1931 var _body = null; |
1520 | 1932 |
1521 if (part == null) { | 1933 if (part == null) { |
1522 throw new core.ArgumentError("Parameter part is required."); | 1934 throw new core.ArgumentError("Parameter part is required."); |
1523 } | 1935 } |
1524 _queryParams["part"] = [part]; | 1936 _queryParams["part"] = [part]; |
1525 if (broadcastStatus != null) { | 1937 if (broadcastStatus != null) { |
1526 _queryParams["broadcastStatus"] = [broadcastStatus]; | 1938 _queryParams["broadcastStatus"] = [broadcastStatus]; |
1527 } | 1939 } |
1528 if (id != null) { | 1940 if (id != null) { |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 * onBehalfOfContentOwner parameter specifies. | 2028 * onBehalfOfContentOwner parameter specifies. |
1617 * | 2029 * |
1618 * This parameter is intended for YouTube content partners that own and manage | 2030 * This parameter is intended for YouTube content partners that own and manage |
1619 * many different YouTube channels. It allows content owners to authenticate | 2031 * many different YouTube channels. It allows content owners to authenticate |
1620 * once and perform actions on behalf of the channel specified in the | 2032 * once and perform actions on behalf of the channel specified in the |
1621 * parameter value, without having to provide authentication credentials for | 2033 * parameter value, without having to provide authentication credentials for |
1622 * each separate channel. | 2034 * each separate channel. |
1623 * | 2035 * |
1624 * Completes with a [LiveBroadcast]. | 2036 * Completes with a [LiveBroadcast]. |
1625 * | 2037 * |
1626 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2038 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1627 * error. | 2039 * error. |
1628 * | 2040 * |
1629 * If the used [http.Client] completes with an error when making a REST call, | 2041 * If the used [http.Client] completes with an error when making a REST call, |
1630 * this method will complete with the same error. | 2042 * this method will complete with the same error. |
1631 */ | 2043 */ |
1632 async.Future<LiveBroadcast> transition(core.String broadcastStatus, core.Strin
g id, core.String part, {core.String onBehalfOfContentOwner, core.String onBehal
fOfContentOwnerChannel}) { | 2044 async.Future<LiveBroadcast> transition(core.String broadcastStatus, core.Strin
g id, core.String part, {core.String onBehalfOfContentOwner, core.String onBehal
fOfContentOwnerChannel}) { |
1633 var _url = null; | 2045 var _url = null; |
1634 var _queryParams = new core.Map(); | 2046 var _queryParams = new core.Map(); |
1635 var _uploadMedia = null; | 2047 var _uploadMedia = null; |
1636 var _uploadOptions = null; | 2048 var _uploadOptions = null; |
1637 var _downloadOptions = common.DownloadOptions.Metadata; | 2049 var _downloadOptions = commons.DownloadOptions.Metadata; |
1638 var _body = null; | 2050 var _body = null; |
1639 | 2051 |
1640 if (broadcastStatus == null) { | 2052 if (broadcastStatus == null) { |
1641 throw new core.ArgumentError("Parameter broadcastStatus is required."); | 2053 throw new core.ArgumentError("Parameter broadcastStatus is required."); |
1642 } | 2054 } |
1643 _queryParams["broadcastStatus"] = [broadcastStatus]; | 2055 _queryParams["broadcastStatus"] = [broadcastStatus]; |
1644 if (id == null) { | 2056 if (id == null) { |
1645 throw new core.ArgumentError("Parameter id is required."); | 2057 throw new core.ArgumentError("Parameter id is required."); |
1646 } | 2058 } |
1647 _queryParams["id"] = [id]; | 2059 _queryParams["id"] = [id]; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 * onBehalfOfContentOwner parameter specifies. | 2134 * onBehalfOfContentOwner parameter specifies. |
1723 * | 2135 * |
1724 * This parameter is intended for YouTube content partners that own and manage | 2136 * This parameter is intended for YouTube content partners that own and manage |
1725 * many different YouTube channels. It allows content owners to authenticate | 2137 * many different YouTube channels. It allows content owners to authenticate |
1726 * once and perform actions on behalf of the channel specified in the | 2138 * once and perform actions on behalf of the channel specified in the |
1727 * parameter value, without having to provide authentication credentials for | 2139 * parameter value, without having to provide authentication credentials for |
1728 * each separate channel. | 2140 * each separate channel. |
1729 * | 2141 * |
1730 * Completes with a [LiveBroadcast]. | 2142 * Completes with a [LiveBroadcast]. |
1731 * | 2143 * |
1732 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2144 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1733 * error. | 2145 * error. |
1734 * | 2146 * |
1735 * If the used [http.Client] completes with an error when making a REST call, | 2147 * If the used [http.Client] completes with an error when making a REST call, |
1736 * this method will complete with the same error. | 2148 * this method will complete with the same error. |
1737 */ | 2149 */ |
1738 async.Future<LiveBroadcast> update(LiveBroadcast request, core.String part, {c
ore.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 2150 async.Future<LiveBroadcast> update(LiveBroadcast request, core.String part, {c
ore.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { |
1739 var _url = null; | 2151 var _url = null; |
1740 var _queryParams = new core.Map(); | 2152 var _queryParams = new core.Map(); |
1741 var _uploadMedia = null; | 2153 var _uploadMedia = null; |
1742 var _uploadOptions = null; | 2154 var _uploadOptions = null; |
1743 var _downloadOptions = common.DownloadOptions.Metadata; | 2155 var _downloadOptions = commons.DownloadOptions.Metadata; |
1744 var _body = null; | 2156 var _body = null; |
1745 | 2157 |
1746 if (request != null) { | 2158 if (request != null) { |
1747 _body = convert.JSON.encode((request).toJson()); | 2159 _body = convert.JSON.encode((request).toJson()); |
1748 } | 2160 } |
1749 if (part == null) { | 2161 if (part == null) { |
1750 throw new core.ArgumentError("Parameter part is required."); | 2162 throw new core.ArgumentError("Parameter part is required."); |
1751 } | 2163 } |
1752 _queryParams["part"] = [part]; | 2164 _queryParams["part"] = [part]; |
1753 if (onBehalfOfContentOwner != null) { | 2165 if (onBehalfOfContentOwner != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
1766 queryParams: _queryParams, | 2178 queryParams: _queryParams, |
1767 uploadOptions: _uploadOptions, | 2179 uploadOptions: _uploadOptions, |
1768 uploadMedia: _uploadMedia, | 2180 uploadMedia: _uploadMedia, |
1769 downloadOptions: _downloadOptions); | 2181 downloadOptions: _downloadOptions); |
1770 return _response.then((data) => new LiveBroadcast.fromJson(data)); | 2182 return _response.then((data) => new LiveBroadcast.fromJson(data)); |
1771 } | 2183 } |
1772 | 2184 |
1773 } | 2185 } |
1774 | 2186 |
1775 | 2187 |
1776 /** Not documented yet. */ | |
1777 class LiveStreamsResourceApi { | 2188 class LiveStreamsResourceApi { |
1778 final common_internal.ApiRequester _requester; | 2189 final commons.ApiRequester _requester; |
1779 | 2190 |
1780 LiveStreamsResourceApi(common_internal.ApiRequester client) : | 2191 LiveStreamsResourceApi(commons.ApiRequester client) : |
1781 _requester = client; | 2192 _requester = client; |
1782 | 2193 |
1783 /** | 2194 /** |
1784 * Deletes a video stream. | 2195 * Deletes a video stream. |
1785 * | 2196 * |
1786 * Request parameters: | 2197 * Request parameters: |
1787 * | 2198 * |
1788 * [id] - The id parameter specifies the YouTube live stream ID for the | 2199 * [id] - The id parameter specifies the YouTube live stream ID for the |
1789 * resource that is being deleted. | 2200 * resource that is being deleted. |
1790 * | 2201 * |
(...skipping 23 matching lines...) Expand all Loading... |
1814 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 2225 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value |
1815 * specifies must be linked to the content owner that the | 2226 * specifies must be linked to the content owner that the |
1816 * onBehalfOfContentOwner parameter specifies. | 2227 * onBehalfOfContentOwner parameter specifies. |
1817 * | 2228 * |
1818 * This parameter is intended for YouTube content partners that own and manage | 2229 * This parameter is intended for YouTube content partners that own and manage |
1819 * many different YouTube channels. It allows content owners to authenticate | 2230 * many different YouTube channels. It allows content owners to authenticate |
1820 * once and perform actions on behalf of the channel specified in the | 2231 * once and perform actions on behalf of the channel specified in the |
1821 * parameter value, without having to provide authentication credentials for | 2232 * parameter value, without having to provide authentication credentials for |
1822 * each separate channel. | 2233 * each separate channel. |
1823 * | 2234 * |
1824 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2235 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1825 * error. | 2236 * error. |
1826 * | 2237 * |
1827 * If the used [http.Client] completes with an error when making a REST call, | 2238 * If the used [http.Client] completes with an error when making a REST call, |
1828 * this method will complete with the same error. | 2239 * this method will complete with the same error. |
1829 */ | 2240 */ |
1830 async.Future delete(core.String id, {core.String onBehalfOfContentOwner, core.
String onBehalfOfContentOwnerChannel}) { | 2241 async.Future delete(core.String id, {core.String onBehalfOfContentOwner, core.
String onBehalfOfContentOwnerChannel}) { |
1831 var _url = null; | 2242 var _url = null; |
1832 var _queryParams = new core.Map(); | 2243 var _queryParams = new core.Map(); |
1833 var _uploadMedia = null; | 2244 var _uploadMedia = null; |
1834 var _uploadOptions = null; | 2245 var _uploadOptions = null; |
1835 var _downloadOptions = common.DownloadOptions.Metadata; | 2246 var _downloadOptions = commons.DownloadOptions.Metadata; |
1836 var _body = null; | 2247 var _body = null; |
1837 | 2248 |
1838 if (id == null) { | 2249 if (id == null) { |
1839 throw new core.ArgumentError("Parameter id is required."); | 2250 throw new core.ArgumentError("Parameter id is required."); |
1840 } | 2251 } |
1841 _queryParams["id"] = [id]; | 2252 _queryParams["id"] = [id]; |
1842 if (onBehalfOfContentOwner != null) { | 2253 if (onBehalfOfContentOwner != null) { |
1843 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2254 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
1844 } | 2255 } |
1845 if (onBehalfOfContentOwnerChannel != null) { | 2256 if (onBehalfOfContentOwnerChannel != null) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1903 * onBehalfOfContentOwner parameter specifies. | 2314 * onBehalfOfContentOwner parameter specifies. |
1904 * | 2315 * |
1905 * This parameter is intended for YouTube content partners that own and manage | 2316 * This parameter is intended for YouTube content partners that own and manage |
1906 * many different YouTube channels. It allows content owners to authenticate | 2317 * many different YouTube channels. It allows content owners to authenticate |
1907 * once and perform actions on behalf of the channel specified in the | 2318 * once and perform actions on behalf of the channel specified in the |
1908 * parameter value, without having to provide authentication credentials for | 2319 * parameter value, without having to provide authentication credentials for |
1909 * each separate channel. | 2320 * each separate channel. |
1910 * | 2321 * |
1911 * Completes with a [LiveStream]. | 2322 * Completes with a [LiveStream]. |
1912 * | 2323 * |
1913 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2324 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1914 * error. | 2325 * error. |
1915 * | 2326 * |
1916 * If the used [http.Client] completes with an error when making a REST call, | 2327 * If the used [http.Client] completes with an error when making a REST call, |
1917 * this method will complete with the same error. | 2328 * this method will complete with the same error. |
1918 */ | 2329 */ |
1919 async.Future<LiveStream> insert(LiveStream request, core.String part, {core.St
ring onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 2330 async.Future<LiveStream> insert(LiveStream request, core.String part, {core.St
ring onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { |
1920 var _url = null; | 2331 var _url = null; |
1921 var _queryParams = new core.Map(); | 2332 var _queryParams = new core.Map(); |
1922 var _uploadMedia = null; | 2333 var _uploadMedia = null; |
1923 var _uploadOptions = null; | 2334 var _uploadOptions = null; |
1924 var _downloadOptions = common.DownloadOptions.Metadata; | 2335 var _downloadOptions = commons.DownloadOptions.Metadata; |
1925 var _body = null; | 2336 var _body = null; |
1926 | 2337 |
1927 if (request != null) { | 2338 if (request != null) { |
1928 _body = convert.JSON.encode((request).toJson()); | 2339 _body = convert.JSON.encode((request).toJson()); |
1929 } | 2340 } |
1930 if (part == null) { | 2341 if (part == null) { |
1931 throw new core.ArgumentError("Parameter part is required."); | 2342 throw new core.ArgumentError("Parameter part is required."); |
1932 } | 2343 } |
1933 _queryParams["part"] = [part]; | 2344 _queryParams["part"] = [part]; |
1934 if (onBehalfOfContentOwner != null) { | 2345 if (onBehalfOfContentOwner != null) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2006 * once and perform actions on behalf of the channel specified in the | 2417 * once and perform actions on behalf of the channel specified in the |
2007 * parameter value, without having to provide authentication credentials for | 2418 * parameter value, without having to provide authentication credentials for |
2008 * each separate channel. | 2419 * each separate channel. |
2009 * | 2420 * |
2010 * [pageToken] - The pageToken parameter identifies a specific page in the | 2421 * [pageToken] - The pageToken parameter identifies a specific page in the |
2011 * result set that should be returned. In an API response, the nextPageToken | 2422 * result set that should be returned. In an API response, the nextPageToken |
2012 * and prevPageToken properties identify other pages that could be retrieved. | 2423 * and prevPageToken properties identify other pages that could be retrieved. |
2013 * | 2424 * |
2014 * Completes with a [LiveStreamListResponse]. | 2425 * Completes with a [LiveStreamListResponse]. |
2015 * | 2426 * |
2016 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2427 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2017 * error. | 2428 * error. |
2018 * | 2429 * |
2019 * If the used [http.Client] completes with an error when making a REST call, | 2430 * If the used [http.Client] completes with an error when making a REST call, |
2020 * this method will complete with the same error. | 2431 * this method will complete with the same error. |
2021 */ | 2432 */ |
2022 async.Future<LiveStreamListResponse> list(core.String part, {core.String id, c
ore.int maxResults, core.bool mine, core.String onBehalfOfContentOwner, core.Str
ing onBehalfOfContentOwnerChannel, core.String pageToken}) { | 2433 async.Future<LiveStreamListResponse> list(core.String part, {core.String id, c
ore.int maxResults, core.bool mine, core.String onBehalfOfContentOwner, core.Str
ing onBehalfOfContentOwnerChannel, core.String pageToken}) { |
2023 var _url = null; | 2434 var _url = null; |
2024 var _queryParams = new core.Map(); | 2435 var _queryParams = new core.Map(); |
2025 var _uploadMedia = null; | 2436 var _uploadMedia = null; |
2026 var _uploadOptions = null; | 2437 var _uploadOptions = null; |
2027 var _downloadOptions = common.DownloadOptions.Metadata; | 2438 var _downloadOptions = commons.DownloadOptions.Metadata; |
2028 var _body = null; | 2439 var _body = null; |
2029 | 2440 |
2030 if (part == null) { | 2441 if (part == null) { |
2031 throw new core.ArgumentError("Parameter part is required."); | 2442 throw new core.ArgumentError("Parameter part is required."); |
2032 } | 2443 } |
2033 _queryParams["part"] = [part]; | 2444 _queryParams["part"] = [part]; |
2034 if (id != null) { | 2445 if (id != null) { |
2035 _queryParams["id"] = [id]; | 2446 _queryParams["id"] = [id]; |
2036 } | 2447 } |
2037 if (maxResults != null) { | 2448 if (maxResults != null) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 * onBehalfOfContentOwner parameter specifies. | 2522 * onBehalfOfContentOwner parameter specifies. |
2112 * | 2523 * |
2113 * This parameter is intended for YouTube content partners that own and manage | 2524 * This parameter is intended for YouTube content partners that own and manage |
2114 * many different YouTube channels. It allows content owners to authenticate | 2525 * many different YouTube channels. It allows content owners to authenticate |
2115 * once and perform actions on behalf of the channel specified in the | 2526 * once and perform actions on behalf of the channel specified in the |
2116 * parameter value, without having to provide authentication credentials for | 2527 * parameter value, without having to provide authentication credentials for |
2117 * each separate channel. | 2528 * each separate channel. |
2118 * | 2529 * |
2119 * Completes with a [LiveStream]. | 2530 * Completes with a [LiveStream]. |
2120 * | 2531 * |
2121 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2122 * error. | 2533 * error. |
2123 * | 2534 * |
2124 * If the used [http.Client] completes with an error when making a REST call, | 2535 * If the used [http.Client] completes with an error when making a REST call, |
2125 * this method will complete with the same error. | 2536 * this method will complete with the same error. |
2126 */ | 2537 */ |
2127 async.Future<LiveStream> update(LiveStream request, core.String part, {core.St
ring onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 2538 async.Future<LiveStream> update(LiveStream request, core.String part, {core.St
ring onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { |
2128 var _url = null; | 2539 var _url = null; |
2129 var _queryParams = new core.Map(); | 2540 var _queryParams = new core.Map(); |
2130 var _uploadMedia = null; | 2541 var _uploadMedia = null; |
2131 var _uploadOptions = null; | 2542 var _uploadOptions = null; |
2132 var _downloadOptions = common.DownloadOptions.Metadata; | 2543 var _downloadOptions = commons.DownloadOptions.Metadata; |
2133 var _body = null; | 2544 var _body = null; |
2134 | 2545 |
2135 if (request != null) { | 2546 if (request != null) { |
2136 _body = convert.JSON.encode((request).toJson()); | 2547 _body = convert.JSON.encode((request).toJson()); |
2137 } | 2548 } |
2138 if (part == null) { | 2549 if (part == null) { |
2139 throw new core.ArgumentError("Parameter part is required."); | 2550 throw new core.ArgumentError("Parameter part is required."); |
2140 } | 2551 } |
2141 _queryParams["part"] = [part]; | 2552 _queryParams["part"] = [part]; |
2142 if (onBehalfOfContentOwner != null) { | 2553 if (onBehalfOfContentOwner != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
2155 queryParams: _queryParams, | 2566 queryParams: _queryParams, |
2156 uploadOptions: _uploadOptions, | 2567 uploadOptions: _uploadOptions, |
2157 uploadMedia: _uploadMedia, | 2568 uploadMedia: _uploadMedia, |
2158 downloadOptions: _downloadOptions); | 2569 downloadOptions: _downloadOptions); |
2159 return _response.then((data) => new LiveStream.fromJson(data)); | 2570 return _response.then((data) => new LiveStream.fromJson(data)); |
2160 } | 2571 } |
2161 | 2572 |
2162 } | 2573 } |
2163 | 2574 |
2164 | 2575 |
2165 /** Not documented yet. */ | |
2166 class PlaylistItemsResourceApi { | 2576 class PlaylistItemsResourceApi { |
2167 final common_internal.ApiRequester _requester; | 2577 final commons.ApiRequester _requester; |
2168 | 2578 |
2169 PlaylistItemsResourceApi(common_internal.ApiRequester client) : | 2579 PlaylistItemsResourceApi(commons.ApiRequester client) : |
2170 _requester = client; | 2580 _requester = client; |
2171 | 2581 |
2172 /** | 2582 /** |
2173 * Deletes a playlist item. | 2583 * Deletes a playlist item. |
2174 * | 2584 * |
2175 * Request parameters: | 2585 * Request parameters: |
2176 * | 2586 * |
2177 * [id] - The id parameter specifies the YouTube playlist item ID for the | 2587 * [id] - The id parameter specifies the YouTube playlist item ID for the |
2178 * playlist item that is being deleted. In a playlistItem resource, the id | 2588 * playlist item that is being deleted. In a playlistItem resource, the id |
2179 * property specifies the playlist item's ID. | 2589 * property specifies the playlist item's ID. |
2180 * | 2590 * |
2181 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2182 * error. | 2592 * error. |
2183 * | 2593 * |
2184 * If the used [http.Client] completes with an error when making a REST call, | 2594 * If the used [http.Client] completes with an error when making a REST call, |
2185 * this method will complete with the same error. | 2595 * this method will complete with the same error. |
2186 */ | 2596 */ |
2187 async.Future delete(core.String id) { | 2597 async.Future delete(core.String id) { |
2188 var _url = null; | 2598 var _url = null; |
2189 var _queryParams = new core.Map(); | 2599 var _queryParams = new core.Map(); |
2190 var _uploadMedia = null; | 2600 var _uploadMedia = null; |
2191 var _uploadOptions = null; | 2601 var _uploadOptions = null; |
2192 var _downloadOptions = common.DownloadOptions.Metadata; | 2602 var _downloadOptions = commons.DownloadOptions.Metadata; |
2193 var _body = null; | 2603 var _body = null; |
2194 | 2604 |
2195 if (id == null) { | 2605 if (id == null) { |
2196 throw new core.ArgumentError("Parameter id is required."); | 2606 throw new core.ArgumentError("Parameter id is required."); |
2197 } | 2607 } |
2198 _queryParams["id"] = [id]; | 2608 _queryParams["id"] = [id]; |
2199 | 2609 |
2200 _downloadOptions = null; | 2610 _downloadOptions = null; |
2201 | 2611 |
2202 _url = 'playlistItems'; | 2612 _url = 'playlistItems'; |
(...skipping 30 matching lines...) Expand all Loading... |
2233 * behalf of the content owner specified in the parameter value. This | 2643 * behalf of the content owner specified in the parameter value. This |
2234 * parameter is intended for YouTube content partners that own and manage many | 2644 * parameter is intended for YouTube content partners that own and manage many |
2235 * different YouTube channels. It allows content owners to authenticate once | 2645 * different YouTube channels. It allows content owners to authenticate once |
2236 * and get access to all their video and channel data, without having to | 2646 * and get access to all their video and channel data, without having to |
2237 * provide authentication credentials for each individual channel. The CMS | 2647 * provide authentication credentials for each individual channel. The CMS |
2238 * account that the user authenticates with must be linked to the specified | 2648 * account that the user authenticates with must be linked to the specified |
2239 * YouTube content owner. | 2649 * YouTube content owner. |
2240 * | 2650 * |
2241 * Completes with a [PlaylistItem]. | 2651 * Completes with a [PlaylistItem]. |
2242 * | 2652 * |
2243 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2653 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2244 * error. | 2654 * error. |
2245 * | 2655 * |
2246 * If the used [http.Client] completes with an error when making a REST call, | 2656 * If the used [http.Client] completes with an error when making a REST call, |
2247 * this method will complete with the same error. | 2657 * this method will complete with the same error. |
2248 */ | 2658 */ |
2249 async.Future<PlaylistItem> insert(PlaylistItem request, core.String part, {cor
e.String onBehalfOfContentOwner}) { | 2659 async.Future<PlaylistItem> insert(PlaylistItem request, core.String part, {cor
e.String onBehalfOfContentOwner}) { |
2250 var _url = null; | 2660 var _url = null; |
2251 var _queryParams = new core.Map(); | 2661 var _queryParams = new core.Map(); |
2252 var _uploadMedia = null; | 2662 var _uploadMedia = null; |
2253 var _uploadOptions = null; | 2663 var _uploadOptions = null; |
2254 var _downloadOptions = common.DownloadOptions.Metadata; | 2664 var _downloadOptions = commons.DownloadOptions.Metadata; |
2255 var _body = null; | 2665 var _body = null; |
2256 | 2666 |
2257 if (request != null) { | 2667 if (request != null) { |
2258 _body = convert.JSON.encode((request).toJson()); | 2668 _body = convert.JSON.encode((request).toJson()); |
2259 } | 2669 } |
2260 if (part == null) { | 2670 if (part == null) { |
2261 throw new core.ArgumentError("Parameter part is required."); | 2671 throw new core.ArgumentError("Parameter part is required."); |
2262 } | 2672 } |
2263 _queryParams["part"] = [part]; | 2673 _queryParams["part"] = [part]; |
2264 if (onBehalfOfContentOwner != null) { | 2674 if (onBehalfOfContentOwner != null) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 * playlist for which you want to retrieve playlist items. Note that even | 2735 * playlist for which you want to retrieve playlist items. Note that even |
2326 * though this is an optional parameter, every request to retrieve playlist | 2736 * though this is an optional parameter, every request to retrieve playlist |
2327 * items must specify a value for either the id parameter or the playlistId | 2737 * items must specify a value for either the id parameter or the playlistId |
2328 * parameter. | 2738 * parameter. |
2329 * | 2739 * |
2330 * [videoId] - The videoId parameter specifies that the request should return | 2740 * [videoId] - The videoId parameter specifies that the request should return |
2331 * only the playlist items that contain the specified video. | 2741 * only the playlist items that contain the specified video. |
2332 * | 2742 * |
2333 * Completes with a [PlaylistItemListResponse]. | 2743 * Completes with a [PlaylistItemListResponse]. |
2334 * | 2744 * |
2335 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2745 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2336 * error. | 2746 * error. |
2337 * | 2747 * |
2338 * If the used [http.Client] completes with an error when making a REST call, | 2748 * If the used [http.Client] completes with an error when making a REST call, |
2339 * this method will complete with the same error. | 2749 * this method will complete with the same error. |
2340 */ | 2750 */ |
2341 async.Future<PlaylistItemListResponse> list(core.String part, {core.String id,
core.int maxResults, core.String onBehalfOfContentOwner, core.String pageToken,
core.String playlistId, core.String videoId}) { | 2751 async.Future<PlaylistItemListResponse> list(core.String part, {core.String id,
core.int maxResults, core.String onBehalfOfContentOwner, core.String pageToken,
core.String playlistId, core.String videoId}) { |
2342 var _url = null; | 2752 var _url = null; |
2343 var _queryParams = new core.Map(); | 2753 var _queryParams = new core.Map(); |
2344 var _uploadMedia = null; | 2754 var _uploadMedia = null; |
2345 var _uploadOptions = null; | 2755 var _uploadOptions = null; |
2346 var _downloadOptions = common.DownloadOptions.Metadata; | 2756 var _downloadOptions = commons.DownloadOptions.Metadata; |
2347 var _body = null; | 2757 var _body = null; |
2348 | 2758 |
2349 if (part == null) { | 2759 if (part == null) { |
2350 throw new core.ArgumentError("Parameter part is required."); | 2760 throw new core.ArgumentError("Parameter part is required."); |
2351 } | 2761 } |
2352 _queryParams["part"] = [part]; | 2762 _queryParams["part"] = [part]; |
2353 if (id != null) { | 2763 if (id != null) { |
2354 _queryParams["id"] = [id]; | 2764 _queryParams["id"] = [id]; |
2355 } | 2765 } |
2356 if (maxResults != null) { | 2766 if (maxResults != null) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2403 * time, which identify the times portion of the video that should play when | 2813 * time, which identify the times portion of the video that should play when |
2404 * users watch the video in the playlist. If your request is updating a | 2814 * users watch the video in the playlist. If your request is updating a |
2405 * playlist item that sets these values, and the request's part parameter | 2815 * playlist item that sets these values, and the request's part parameter |
2406 * value includes the contentDetails part, the playlist item's start and end | 2816 * value includes the contentDetails part, the playlist item's start and end |
2407 * times will be updated to whatever value the request body specifies. If the | 2817 * times will be updated to whatever value the request body specifies. If the |
2408 * request body does not specify values, the existing start and end times will | 2818 * request body does not specify values, the existing start and end times will |
2409 * be removed and replaced with the default settings. | 2819 * be removed and replaced with the default settings. |
2410 * | 2820 * |
2411 * Completes with a [PlaylistItem]. | 2821 * Completes with a [PlaylistItem]. |
2412 * | 2822 * |
2413 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2823 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2414 * error. | 2824 * error. |
2415 * | 2825 * |
2416 * If the used [http.Client] completes with an error when making a REST call, | 2826 * If the used [http.Client] completes with an error when making a REST call, |
2417 * this method will complete with the same error. | 2827 * this method will complete with the same error. |
2418 */ | 2828 */ |
2419 async.Future<PlaylistItem> update(PlaylistItem request, core.String part) { | 2829 async.Future<PlaylistItem> update(PlaylistItem request, core.String part) { |
2420 var _url = null; | 2830 var _url = null; |
2421 var _queryParams = new core.Map(); | 2831 var _queryParams = new core.Map(); |
2422 var _uploadMedia = null; | 2832 var _uploadMedia = null; |
2423 var _uploadOptions = null; | 2833 var _uploadOptions = null; |
2424 var _downloadOptions = common.DownloadOptions.Metadata; | 2834 var _downloadOptions = commons.DownloadOptions.Metadata; |
2425 var _body = null; | 2835 var _body = null; |
2426 | 2836 |
2427 if (request != null) { | 2837 if (request != null) { |
2428 _body = convert.JSON.encode((request).toJson()); | 2838 _body = convert.JSON.encode((request).toJson()); |
2429 } | 2839 } |
2430 if (part == null) { | 2840 if (part == null) { |
2431 throw new core.ArgumentError("Parameter part is required."); | 2841 throw new core.ArgumentError("Parameter part is required."); |
2432 } | 2842 } |
2433 _queryParams["part"] = [part]; | 2843 _queryParams["part"] = [part]; |
2434 | 2844 |
2435 | 2845 |
2436 _url = 'playlistItems'; | 2846 _url = 'playlistItems'; |
2437 | 2847 |
2438 var _response = _requester.request(_url, | 2848 var _response = _requester.request(_url, |
2439 "PUT", | 2849 "PUT", |
2440 body: _body, | 2850 body: _body, |
2441 queryParams: _queryParams, | 2851 queryParams: _queryParams, |
2442 uploadOptions: _uploadOptions, | 2852 uploadOptions: _uploadOptions, |
2443 uploadMedia: _uploadMedia, | 2853 uploadMedia: _uploadMedia, |
2444 downloadOptions: _downloadOptions); | 2854 downloadOptions: _downloadOptions); |
2445 return _response.then((data) => new PlaylistItem.fromJson(data)); | 2855 return _response.then((data) => new PlaylistItem.fromJson(data)); |
2446 } | 2856 } |
2447 | 2857 |
2448 } | 2858 } |
2449 | 2859 |
2450 | 2860 |
2451 /** Not documented yet. */ | |
2452 class PlaylistsResourceApi { | 2861 class PlaylistsResourceApi { |
2453 final common_internal.ApiRequester _requester; | 2862 final commons.ApiRequester _requester; |
2454 | 2863 |
2455 PlaylistsResourceApi(common_internal.ApiRequester client) : | 2864 PlaylistsResourceApi(commons.ApiRequester client) : |
2456 _requester = client; | 2865 _requester = client; |
2457 | 2866 |
2458 /** | 2867 /** |
2459 * Deletes a playlist. | 2868 * Deletes a playlist. |
2460 * | 2869 * |
2461 * Request parameters: | 2870 * Request parameters: |
2462 * | 2871 * |
2463 * [id] - The id parameter specifies the YouTube playlist ID for the playlist | 2872 * [id] - The id parameter specifies the YouTube playlist ID for the playlist |
2464 * that is being deleted. In a playlist resource, the id property specifies | 2873 * that is being deleted. In a playlist resource, the id property specifies |
2465 * the playlist's ID. | 2874 * the playlist's ID. |
2466 * | 2875 * |
2467 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 2876 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
2468 * YouTube content partners. | 2877 * YouTube content partners. |
2469 * | 2878 * |
2470 * The onBehalfOfContentOwner parameter indicates that the request's | 2879 * The onBehalfOfContentOwner parameter indicates that the request's |
2471 * authorization credentials identify a YouTube CMS user who is acting on | 2880 * authorization credentials identify a YouTube CMS user who is acting on |
2472 * behalf of the content owner specified in the parameter value. This | 2881 * behalf of the content owner specified in the parameter value. This |
2473 * parameter is intended for YouTube content partners that own and manage many | 2882 * parameter is intended for YouTube content partners that own and manage many |
2474 * different YouTube channels. It allows content owners to authenticate once | 2883 * different YouTube channels. It allows content owners to authenticate once |
2475 * and get access to all their video and channel data, without having to | 2884 * and get access to all their video and channel data, without having to |
2476 * provide authentication credentials for each individual channel. The CMS | 2885 * provide authentication credentials for each individual channel. The CMS |
2477 * account that the user authenticates with must be linked to the specified | 2886 * account that the user authenticates with must be linked to the specified |
2478 * YouTube content owner. | 2887 * YouTube content owner. |
2479 * | 2888 * |
2480 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2889 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2481 * error. | 2890 * error. |
2482 * | 2891 * |
2483 * If the used [http.Client] completes with an error when making a REST call, | 2892 * If the used [http.Client] completes with an error when making a REST call, |
2484 * this method will complete with the same error. | 2893 * this method will complete with the same error. |
2485 */ | 2894 */ |
2486 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { | 2895 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { |
2487 var _url = null; | 2896 var _url = null; |
2488 var _queryParams = new core.Map(); | 2897 var _queryParams = new core.Map(); |
2489 var _uploadMedia = null; | 2898 var _uploadMedia = null; |
2490 var _uploadOptions = null; | 2899 var _uploadOptions = null; |
2491 var _downloadOptions = common.DownloadOptions.Metadata; | 2900 var _downloadOptions = commons.DownloadOptions.Metadata; |
2492 var _body = null; | 2901 var _body = null; |
2493 | 2902 |
2494 if (id == null) { | 2903 if (id == null) { |
2495 throw new core.ArgumentError("Parameter id is required."); | 2904 throw new core.ArgumentError("Parameter id is required."); |
2496 } | 2905 } |
2497 _queryParams["id"] = [id]; | 2906 _queryParams["id"] = [id]; |
2498 if (onBehalfOfContentOwner != null) { | 2907 if (onBehalfOfContentOwner != null) { |
2499 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2908 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
2500 } | 2909 } |
2501 | 2910 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2555 * onBehalfOfContentOwner parameter specifies. | 2964 * onBehalfOfContentOwner parameter specifies. |
2556 * | 2965 * |
2557 * This parameter is intended for YouTube content partners that own and manage | 2966 * This parameter is intended for YouTube content partners that own and manage |
2558 * many different YouTube channels. It allows content owners to authenticate | 2967 * many different YouTube channels. It allows content owners to authenticate |
2559 * once and perform actions on behalf of the channel specified in the | 2968 * once and perform actions on behalf of the channel specified in the |
2560 * parameter value, without having to provide authentication credentials for | 2969 * parameter value, without having to provide authentication credentials for |
2561 * each separate channel. | 2970 * each separate channel. |
2562 * | 2971 * |
2563 * Completes with a [Playlist]. | 2972 * Completes with a [Playlist]. |
2564 * | 2973 * |
2565 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2974 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2566 * error. | 2975 * error. |
2567 * | 2976 * |
2568 * If the used [http.Client] completes with an error when making a REST call, | 2977 * If the used [http.Client] completes with an error when making a REST call, |
2569 * this method will complete with the same error. | 2978 * this method will complete with the same error. |
2570 */ | 2979 */ |
2571 async.Future<Playlist> insert(Playlist request, core.String part, {core.String
onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 2980 async.Future<Playlist> insert(Playlist request, core.String part, {core.String
onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { |
2572 var _url = null; | 2981 var _url = null; |
2573 var _queryParams = new core.Map(); | 2982 var _queryParams = new core.Map(); |
2574 var _uploadMedia = null; | 2983 var _uploadMedia = null; |
2575 var _uploadOptions = null; | 2984 var _uploadOptions = null; |
2576 var _downloadOptions = common.DownloadOptions.Metadata; | 2985 var _downloadOptions = commons.DownloadOptions.Metadata; |
2577 var _body = null; | 2986 var _body = null; |
2578 | 2987 |
2579 if (request != null) { | 2988 if (request != null) { |
2580 _body = convert.JSON.encode((request).toJson()); | 2989 _body = convert.JSON.encode((request).toJson()); |
2581 } | 2990 } |
2582 if (part == null) { | 2991 if (part == null) { |
2583 throw new core.ArgumentError("Parameter part is required."); | 2992 throw new core.ArgumentError("Parameter part is required."); |
2584 } | 2993 } |
2585 _queryParams["part"] = [part]; | 2994 _queryParams["part"] = [part]; |
2586 if (onBehalfOfContentOwner != null) { | 2995 if (onBehalfOfContentOwner != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
2617 * | 3026 * |
2618 * If the parameter identifies a property that contains child properties, the | 3027 * If the parameter identifies a property that contains child properties, the |
2619 * child properties will be included in the response. For example, in a | 3028 * child properties will be included in the response. For example, in a |
2620 * playlist resource, the snippet property contains properties like author, | 3029 * playlist resource, the snippet property contains properties like author, |
2621 * title, description, tags, and timeCreated. As such, if you set | 3030 * title, description, tags, and timeCreated. As such, if you set |
2622 * part=snippet, the API response will contain all of those properties. | 3031 * part=snippet, the API response will contain all of those properties. |
2623 * | 3032 * |
2624 * [channelId] - This value indicates that the API should only return the | 3033 * [channelId] - This value indicates that the API should only return the |
2625 * specified channel's playlists. | 3034 * specified channel's playlists. |
2626 * | 3035 * |
| 3036 * [hl] - The hl parameter should be used for filter out the properties that |
| 3037 * are not in the given language. Used for the snippet part. |
| 3038 * |
2627 * [id] - The id parameter specifies a comma-separated list of the YouTube | 3039 * [id] - The id parameter specifies a comma-separated list of the YouTube |
2628 * playlist ID(s) for the resource(s) that are being retrieved. In a playlist | 3040 * playlist ID(s) for the resource(s) that are being retrieved. In a playlist |
2629 * resource, the id property specifies the playlist's YouTube playlist ID. | 3041 * resource, the id property specifies the playlist's YouTube playlist ID. |
2630 * | 3042 * |
2631 * [maxResults] - The maxResults parameter specifies the maximum number of | 3043 * [maxResults] - The maxResults parameter specifies the maximum number of |
2632 * items that should be returned in the result set. | 3044 * items that should be returned in the result set. |
2633 * Value must be between "0" and "50". | 3045 * Value must be between "0" and "50". |
2634 * | 3046 * |
2635 * [mine] - Set this parameter's value to true to instruct the API to only | 3047 * [mine] - Set this parameter's value to true to instruct the API to only |
2636 * return playlists owned by the authenticated user. | 3048 * return playlists owned by the authenticated user. |
(...skipping 30 matching lines...) Expand all Loading... |
2667 * once and perform actions on behalf of the channel specified in the | 3079 * once and perform actions on behalf of the channel specified in the |
2668 * parameter value, without having to provide authentication credentials for | 3080 * parameter value, without having to provide authentication credentials for |
2669 * each separate channel. | 3081 * each separate channel. |
2670 * | 3082 * |
2671 * [pageToken] - The pageToken parameter identifies a specific page in the | 3083 * [pageToken] - The pageToken parameter identifies a specific page in the |
2672 * result set that should be returned. In an API response, the nextPageToken | 3084 * result set that should be returned. In an API response, the nextPageToken |
2673 * and prevPageToken properties identify other pages that could be retrieved. | 3085 * and prevPageToken properties identify other pages that could be retrieved. |
2674 * | 3086 * |
2675 * Completes with a [PlaylistListResponse]. | 3087 * Completes with a [PlaylistListResponse]. |
2676 * | 3088 * |
2677 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3089 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2678 * error. | 3090 * error. |
2679 * | 3091 * |
2680 * If the used [http.Client] completes with an error when making a REST call, | 3092 * If the used [http.Client] completes with an error when making a REST call, |
2681 * this method will complete with the same error. | 3093 * this method will complete with the same error. |
2682 */ | 3094 */ |
2683 async.Future<PlaylistListResponse> list(core.String part, {core.String channel
Id, core.String id, core.int maxResults, core.bool mine, core.String onBehalfOfC
ontentOwner, core.String onBehalfOfContentOwnerChannel, core.String pageToken})
{ | 3095 async.Future<PlaylistListResponse> list(core.String part, {core.String channel
Id, core.String hl, core.String id, core.int maxResults, core.bool mine, core.St
ring onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.Str
ing pageToken}) { |
2684 var _url = null; | 3096 var _url = null; |
2685 var _queryParams = new core.Map(); | 3097 var _queryParams = new core.Map(); |
2686 var _uploadMedia = null; | 3098 var _uploadMedia = null; |
2687 var _uploadOptions = null; | 3099 var _uploadOptions = null; |
2688 var _downloadOptions = common.DownloadOptions.Metadata; | 3100 var _downloadOptions = commons.DownloadOptions.Metadata; |
2689 var _body = null; | 3101 var _body = null; |
2690 | 3102 |
2691 if (part == null) { | 3103 if (part == null) { |
2692 throw new core.ArgumentError("Parameter part is required."); | 3104 throw new core.ArgumentError("Parameter part is required."); |
2693 } | 3105 } |
2694 _queryParams["part"] = [part]; | 3106 _queryParams["part"] = [part]; |
2695 if (channelId != null) { | 3107 if (channelId != null) { |
2696 _queryParams["channelId"] = [channelId]; | 3108 _queryParams["channelId"] = [channelId]; |
2697 } | 3109 } |
| 3110 if (hl != null) { |
| 3111 _queryParams["hl"] = [hl]; |
| 3112 } |
2698 if (id != null) { | 3113 if (id != null) { |
2699 _queryParams["id"] = [id]; | 3114 _queryParams["id"] = [id]; |
2700 } | 3115 } |
2701 if (maxResults != null) { | 3116 if (maxResults != null) { |
2702 _queryParams["maxResults"] = ["${maxResults}"]; | 3117 _queryParams["maxResults"] = ["${maxResults}"]; |
2703 } | 3118 } |
2704 if (mine != null) { | 3119 if (mine != null) { |
2705 _queryParams["mine"] = ["${mine}"]; | 3120 _queryParams["mine"] = ["${mine}"]; |
2706 } | 3121 } |
2707 if (onBehalfOfContentOwner != null) { | 3122 if (onBehalfOfContentOwner != null) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2760 * behalf of the content owner specified in the parameter value. This | 3175 * behalf of the content owner specified in the parameter value. This |
2761 * parameter is intended for YouTube content partners that own and manage many | 3176 * parameter is intended for YouTube content partners that own and manage many |
2762 * different YouTube channels. It allows content owners to authenticate once | 3177 * different YouTube channels. It allows content owners to authenticate once |
2763 * and get access to all their video and channel data, without having to | 3178 * and get access to all their video and channel data, without having to |
2764 * provide authentication credentials for each individual channel. The CMS | 3179 * provide authentication credentials for each individual channel. The CMS |
2765 * account that the user authenticates with must be linked to the specified | 3180 * account that the user authenticates with must be linked to the specified |
2766 * YouTube content owner. | 3181 * YouTube content owner. |
2767 * | 3182 * |
2768 * Completes with a [Playlist]. | 3183 * Completes with a [Playlist]. |
2769 * | 3184 * |
2770 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3185 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2771 * error. | 3186 * error. |
2772 * | 3187 * |
2773 * If the used [http.Client] completes with an error when making a REST call, | 3188 * If the used [http.Client] completes with an error when making a REST call, |
2774 * this method will complete with the same error. | 3189 * this method will complete with the same error. |
2775 */ | 3190 */ |
2776 async.Future<Playlist> update(Playlist request, core.String part, {core.String
onBehalfOfContentOwner}) { | 3191 async.Future<Playlist> update(Playlist request, core.String part, {core.String
onBehalfOfContentOwner}) { |
2777 var _url = null; | 3192 var _url = null; |
2778 var _queryParams = new core.Map(); | 3193 var _queryParams = new core.Map(); |
2779 var _uploadMedia = null; | 3194 var _uploadMedia = null; |
2780 var _uploadOptions = null; | 3195 var _uploadOptions = null; |
2781 var _downloadOptions = common.DownloadOptions.Metadata; | 3196 var _downloadOptions = commons.DownloadOptions.Metadata; |
2782 var _body = null; | 3197 var _body = null; |
2783 | 3198 |
2784 if (request != null) { | 3199 if (request != null) { |
2785 _body = convert.JSON.encode((request).toJson()); | 3200 _body = convert.JSON.encode((request).toJson()); |
2786 } | 3201 } |
2787 if (part == null) { | 3202 if (part == null) { |
2788 throw new core.ArgumentError("Parameter part is required."); | 3203 throw new core.ArgumentError("Parameter part is required."); |
2789 } | 3204 } |
2790 _queryParams["part"] = [part]; | 3205 _queryParams["part"] = [part]; |
2791 if (onBehalfOfContentOwner != null) { | 3206 if (onBehalfOfContentOwner != null) { |
2792 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 3207 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
2793 } | 3208 } |
2794 | 3209 |
2795 | 3210 |
2796 _url = 'playlists'; | 3211 _url = 'playlists'; |
2797 | 3212 |
2798 var _response = _requester.request(_url, | 3213 var _response = _requester.request(_url, |
2799 "PUT", | 3214 "PUT", |
2800 body: _body, | 3215 body: _body, |
2801 queryParams: _queryParams, | 3216 queryParams: _queryParams, |
2802 uploadOptions: _uploadOptions, | 3217 uploadOptions: _uploadOptions, |
2803 uploadMedia: _uploadMedia, | 3218 uploadMedia: _uploadMedia, |
2804 downloadOptions: _downloadOptions); | 3219 downloadOptions: _downloadOptions); |
2805 return _response.then((data) => new Playlist.fromJson(data)); | 3220 return _response.then((data) => new Playlist.fromJson(data)); |
2806 } | 3221 } |
2807 | 3222 |
2808 } | 3223 } |
2809 | 3224 |
2810 | 3225 |
2811 /** Not documented yet. */ | |
2812 class SearchResourceApi { | 3226 class SearchResourceApi { |
2813 final common_internal.ApiRequester _requester; | 3227 final commons.ApiRequester _requester; |
2814 | 3228 |
2815 SearchResourceApi(common_internal.ApiRequester client) : | 3229 SearchResourceApi(commons.ApiRequester client) : |
2816 _requester = client; | 3230 _requester = client; |
2817 | 3231 |
2818 /** | 3232 /** |
2819 * Returns a collection of search results that match the query parameters | 3233 * Returns a collection of search results that match the query parameters |
2820 * specified in the API request. By default, a search result set identifies | 3234 * specified in the API request. By default, a search result set identifies |
2821 * matching video, channel, and playlist resources, but you can also configure | 3235 * matching video, channel, and playlist resources, but you can also configure |
2822 * queries to only retrieve a specific type of resource. | 3236 * queries to only retrieve a specific type of resource. |
2823 * | 3237 * |
2824 * Request parameters: | 3238 * Request parameters: |
2825 * | 3239 * |
(...skipping 25 matching lines...) Expand all Loading... |
2851 * | 3265 * |
2852 * [forContentOwner] - Note: This parameter is intended exclusively for | 3266 * [forContentOwner] - Note: This parameter is intended exclusively for |
2853 * YouTube content partners. | 3267 * YouTube content partners. |
2854 * | 3268 * |
2855 * The forContentOwner parameter restricts the search to only retrieve | 3269 * The forContentOwner parameter restricts the search to only retrieve |
2856 * resources owned by the content owner specified by the | 3270 * resources owned by the content owner specified by the |
2857 * onBehalfOfContentOwner parameter. The user must be authenticated using a | 3271 * onBehalfOfContentOwner parameter. The user must be authenticated using a |
2858 * CMS account linked to the specified content owner and | 3272 * CMS account linked to the specified content owner and |
2859 * onBehalfOfContentOwner must be provided. | 3273 * onBehalfOfContentOwner must be provided. |
2860 * | 3274 * |
| 3275 * [forDeveloper] - The forDeveloper parameter restricts the search to only |
| 3276 * retrieve videos uploaded via the developer's application or website. The |
| 3277 * API server uses the request's authorization credentials to identify the |
| 3278 * developer. Therefore, a developer can restrict results to videos uploaded |
| 3279 * through the developer's own app or website but not to videos uploaded |
| 3280 * through other apps or sites. |
| 3281 * |
2861 * [forMine] - The forMine parameter restricts the search to only retrieve | 3282 * [forMine] - The forMine parameter restricts the search to only retrieve |
2862 * videos owned by the authenticated user. If you set this parameter to true, | 3283 * videos owned by the authenticated user. If you set this parameter to true, |
2863 * then the type parameter's value must also be set to video. | 3284 * then the type parameter's value must also be set to video. |
2864 * | 3285 * |
2865 * [location] - The location parameter restricts a search to videos that have | 3286 * [location] - The location parameter restricts a search to videos that have |
2866 * a geographical location specified in their metadata. The value is a string | 3287 * a geographical location specified in their metadata. The value is a string |
2867 * that specifies geographic latitude/longitude coordinates e.g. | 3288 * that specifies geographic latitude/longitude coordinates e.g. |
2868 * (37.42307,-122.08427) | 3289 * (37.42307,-122.08427) |
2869 * | 3290 * |
2870 * [locationRadius] - The locationRadius, in conjunction with the location | 3291 * [locationRadius] - The locationRadius, in conjunction with the location |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3021 * | 3442 * |
3022 * [videoType] - The videoType parameter lets you restrict a search to a | 3443 * [videoType] - The videoType parameter lets you restrict a search to a |
3023 * particular type of videos. | 3444 * particular type of videos. |
3024 * Possible string values are: | 3445 * Possible string values are: |
3025 * - "any" : Return all videos. | 3446 * - "any" : Return all videos. |
3026 * - "episode" : Only retrieve episodes of shows. | 3447 * - "episode" : Only retrieve episodes of shows. |
3027 * - "movie" : Only retrieve movies. | 3448 * - "movie" : Only retrieve movies. |
3028 * | 3449 * |
3029 * Completes with a [SearchListResponse]. | 3450 * Completes with a [SearchListResponse]. |
3030 * | 3451 * |
3031 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3452 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3032 * error. | 3453 * error. |
3033 * | 3454 * |
3034 * If the used [http.Client] completes with an error when making a REST call, | 3455 * If the used [http.Client] completes with an error when making a REST call, |
3035 * this method will complete with the same error. | 3456 * this method will complete with the same error. |
3036 */ | 3457 */ |
3037 async.Future<SearchListResponse> list(core.String part, {core.String channelId
, core.String channelType, core.String eventType, core.bool forContentOwner, cor
e.bool forMine, core.String location, core.String locationRadius, core.int maxRe
sults, core.String onBehalfOfContentOwner, core.String order, core.String pageTo
ken, core.DateTime publishedAfter, core.DateTime publishedBefore, core.String q,
core.String regionCode, core.String relatedToVideoId, core.String relevanceLang
uage, core.String safeSearch, core.String topicId, core.String type, core.String
videoCaption, core.String videoCategoryId, core.String videoDefinition, core.St
ring videoDimension, core.String videoDuration, core.String videoEmbeddable, cor
e.String videoLicense, core.String videoSyndicated, core.String videoType}) { | 3458 async.Future<SearchListResponse> list(core.String part, {core.String channelId
, core.String channelType, core.String eventType, core.bool forContentOwner, cor
e.bool forDeveloper, core.bool forMine, core.String location, core.String locati
onRadius, core.int maxResults, core.String onBehalfOfContentOwner, core.String o
rder, core.String pageToken, core.DateTime publishedAfter, core.DateTime publish
edBefore, core.String q, core.String regionCode, core.String relatedToVideoId, c
ore.String relevanceLanguage, core.String safeSearch, core.String topicId, core.
String type, core.String videoCaption, core.String videoCategoryId, core.String
videoDefinition, core.String videoDimension, core.String videoDuration, core.Str
ing videoEmbeddable, core.String videoLicense, core.String videoSyndicated, core
.String videoType}) { |
3038 var _url = null; | 3459 var _url = null; |
3039 var _queryParams = new core.Map(); | 3460 var _queryParams = new core.Map(); |
3040 var _uploadMedia = null; | 3461 var _uploadMedia = null; |
3041 var _uploadOptions = null; | 3462 var _uploadOptions = null; |
3042 var _downloadOptions = common.DownloadOptions.Metadata; | 3463 var _downloadOptions = commons.DownloadOptions.Metadata; |
3043 var _body = null; | 3464 var _body = null; |
3044 | 3465 |
3045 if (part == null) { | 3466 if (part == null) { |
3046 throw new core.ArgumentError("Parameter part is required."); | 3467 throw new core.ArgumentError("Parameter part is required."); |
3047 } | 3468 } |
3048 _queryParams["part"] = [part]; | 3469 _queryParams["part"] = [part]; |
3049 if (channelId != null) { | 3470 if (channelId != null) { |
3050 _queryParams["channelId"] = [channelId]; | 3471 _queryParams["channelId"] = [channelId]; |
3051 } | 3472 } |
3052 if (channelType != null) { | 3473 if (channelType != null) { |
3053 _queryParams["channelType"] = [channelType]; | 3474 _queryParams["channelType"] = [channelType]; |
3054 } | 3475 } |
3055 if (eventType != null) { | 3476 if (eventType != null) { |
3056 _queryParams["eventType"] = [eventType]; | 3477 _queryParams["eventType"] = [eventType]; |
3057 } | 3478 } |
3058 if (forContentOwner != null) { | 3479 if (forContentOwner != null) { |
3059 _queryParams["forContentOwner"] = ["${forContentOwner}"]; | 3480 _queryParams["forContentOwner"] = ["${forContentOwner}"]; |
3060 } | 3481 } |
| 3482 if (forDeveloper != null) { |
| 3483 _queryParams["forDeveloper"] = ["${forDeveloper}"]; |
| 3484 } |
3061 if (forMine != null) { | 3485 if (forMine != null) { |
3062 _queryParams["forMine"] = ["${forMine}"]; | 3486 _queryParams["forMine"] = ["${forMine}"]; |
3063 } | 3487 } |
3064 if (location != null) { | 3488 if (location != null) { |
3065 _queryParams["location"] = [location]; | 3489 _queryParams["location"] = [location]; |
3066 } | 3490 } |
3067 if (locationRadius != null) { | 3491 if (locationRadius != null) { |
3068 _queryParams["locationRadius"] = [locationRadius]; | 3492 _queryParams["locationRadius"] = [locationRadius]; |
3069 } | 3493 } |
3070 if (maxResults != null) { | 3494 if (maxResults != null) { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3143 queryParams: _queryParams, | 3567 queryParams: _queryParams, |
3144 uploadOptions: _uploadOptions, | 3568 uploadOptions: _uploadOptions, |
3145 uploadMedia: _uploadMedia, | 3569 uploadMedia: _uploadMedia, |
3146 downloadOptions: _downloadOptions); | 3570 downloadOptions: _downloadOptions); |
3147 return _response.then((data) => new SearchListResponse.fromJson(data)); | 3571 return _response.then((data) => new SearchListResponse.fromJson(data)); |
3148 } | 3572 } |
3149 | 3573 |
3150 } | 3574 } |
3151 | 3575 |
3152 | 3576 |
3153 /** Not documented yet. */ | |
3154 class SubscriptionsResourceApi { | 3577 class SubscriptionsResourceApi { |
3155 final common_internal.ApiRequester _requester; | 3578 final commons.ApiRequester _requester; |
3156 | 3579 |
3157 SubscriptionsResourceApi(common_internal.ApiRequester client) : | 3580 SubscriptionsResourceApi(commons.ApiRequester client) : |
3158 _requester = client; | 3581 _requester = client; |
3159 | 3582 |
3160 /** | 3583 /** |
3161 * Deletes a subscription. | 3584 * Deletes a subscription. |
3162 * | 3585 * |
3163 * Request parameters: | 3586 * Request parameters: |
3164 * | 3587 * |
3165 * [id] - The id parameter specifies the YouTube subscription ID for the | 3588 * [id] - The id parameter specifies the YouTube subscription ID for the |
3166 * resource that is being deleted. In a subscription resource, the id property | 3589 * resource that is being deleted. In a subscription resource, the id property |
3167 * specifies the YouTube subscription ID. | 3590 * specifies the YouTube subscription ID. |
3168 * | 3591 * |
3169 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3592 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3170 * error. | 3593 * error. |
3171 * | 3594 * |
3172 * If the used [http.Client] completes with an error when making a REST call, | 3595 * If the used [http.Client] completes with an error when making a REST call, |
3173 * this method will complete with the same error. | 3596 * this method will complete with the same error. |
3174 */ | 3597 */ |
3175 async.Future delete(core.String id) { | 3598 async.Future delete(core.String id) { |
3176 var _url = null; | 3599 var _url = null; |
3177 var _queryParams = new core.Map(); | 3600 var _queryParams = new core.Map(); |
3178 var _uploadMedia = null; | 3601 var _uploadMedia = null; |
3179 var _uploadOptions = null; | 3602 var _uploadOptions = null; |
3180 var _downloadOptions = common.DownloadOptions.Metadata; | 3603 var _downloadOptions = commons.DownloadOptions.Metadata; |
3181 var _body = null; | 3604 var _body = null; |
3182 | 3605 |
3183 if (id == null) { | 3606 if (id == null) { |
3184 throw new core.ArgumentError("Parameter id is required."); | 3607 throw new core.ArgumentError("Parameter id is required."); |
3185 } | 3608 } |
3186 _queryParams["id"] = [id]; | 3609 _queryParams["id"] = [id]; |
3187 | 3610 |
3188 _downloadOptions = null; | 3611 _downloadOptions = null; |
3189 | 3612 |
3190 _url = 'subscriptions'; | 3613 _url = 'subscriptions'; |
(...skipping 17 matching lines...) Expand all Loading... |
3208 * | 3631 * |
3209 * [part] - The part parameter serves two purposes in this operation. It | 3632 * [part] - The part parameter serves two purposes in this operation. It |
3210 * identifies the properties that the write operation will set as well as the | 3633 * identifies the properties that the write operation will set as well as the |
3211 * properties that the API response will include. | 3634 * properties that the API response will include. |
3212 * | 3635 * |
3213 * The part names that you can include in the parameter value are snippet and | 3636 * The part names that you can include in the parameter value are snippet and |
3214 * contentDetails. | 3637 * contentDetails. |
3215 * | 3638 * |
3216 * Completes with a [Subscription]. | 3639 * Completes with a [Subscription]. |
3217 * | 3640 * |
3218 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3641 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3219 * error. | 3642 * error. |
3220 * | 3643 * |
3221 * If the used [http.Client] completes with an error when making a REST call, | 3644 * If the used [http.Client] completes with an error when making a REST call, |
3222 * this method will complete with the same error. | 3645 * this method will complete with the same error. |
3223 */ | 3646 */ |
3224 async.Future<Subscription> insert(Subscription request, core.String part) { | 3647 async.Future<Subscription> insert(Subscription request, core.String part) { |
3225 var _url = null; | 3648 var _url = null; |
3226 var _queryParams = new core.Map(); | 3649 var _queryParams = new core.Map(); |
3227 var _uploadMedia = null; | 3650 var _uploadMedia = null; |
3228 var _uploadOptions = null; | 3651 var _uploadOptions = null; |
3229 var _downloadOptions = common.DownloadOptions.Metadata; | 3652 var _downloadOptions = commons.DownloadOptions.Metadata; |
3230 var _body = null; | 3653 var _body = null; |
3231 | 3654 |
3232 if (request != null) { | 3655 if (request != null) { |
3233 _body = convert.JSON.encode((request).toJson()); | 3656 _body = convert.JSON.encode((request).toJson()); |
3234 } | 3657 } |
3235 if (part == null) { | 3658 if (part == null) { |
3236 throw new core.ArgumentError("Parameter part is required."); | 3659 throw new core.ArgumentError("Parameter part is required."); |
3237 } | 3660 } |
3238 _queryParams["part"] = [part]; | 3661 _queryParams["part"] = [part]; |
3239 | 3662 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3327 * - "alphabetical" : Sort alphabetically. | 3750 * - "alphabetical" : Sort alphabetically. |
3328 * - "relevance" : Sort by relevance. | 3751 * - "relevance" : Sort by relevance. |
3329 * - "unread" : Sort by order of activity. | 3752 * - "unread" : Sort by order of activity. |
3330 * | 3753 * |
3331 * [pageToken] - The pageToken parameter identifies a specific page in the | 3754 * [pageToken] - The pageToken parameter identifies a specific page in the |
3332 * result set that should be returned. In an API response, the nextPageToken | 3755 * result set that should be returned. In an API response, the nextPageToken |
3333 * and prevPageToken properties identify other pages that could be retrieved. | 3756 * and prevPageToken properties identify other pages that could be retrieved. |
3334 * | 3757 * |
3335 * Completes with a [SubscriptionListResponse]. | 3758 * Completes with a [SubscriptionListResponse]. |
3336 * | 3759 * |
3337 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3760 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3338 * error. | 3761 * error. |
3339 * | 3762 * |
3340 * If the used [http.Client] completes with an error when making a REST call, | 3763 * If the used [http.Client] completes with an error when making a REST call, |
3341 * this method will complete with the same error. | 3764 * this method will complete with the same error. |
3342 */ | 3765 */ |
3343 async.Future<SubscriptionListResponse> list(core.String part, {core.String cha
nnelId, core.String forChannelId, core.String id, core.int maxResults, core.bool
mine, core.bool mySubscribers, core.String onBehalfOfContentOwner, core.String
onBehalfOfContentOwnerChannel, core.String order, core.String pageToken}) { | 3766 async.Future<SubscriptionListResponse> list(core.String part, {core.String cha
nnelId, core.String forChannelId, core.String id, core.int maxResults, core.bool
mine, core.bool mySubscribers, core.String onBehalfOfContentOwner, core.String
onBehalfOfContentOwnerChannel, core.String order, core.String pageToken}) { |
3344 var _url = null; | 3767 var _url = null; |
3345 var _queryParams = new core.Map(); | 3768 var _queryParams = new core.Map(); |
3346 var _uploadMedia = null; | 3769 var _uploadMedia = null; |
3347 var _uploadOptions = null; | 3770 var _uploadOptions = null; |
3348 var _downloadOptions = common.DownloadOptions.Metadata; | 3771 var _downloadOptions = commons.DownloadOptions.Metadata; |
3349 var _body = null; | 3772 var _body = null; |
3350 | 3773 |
3351 if (part == null) { | 3774 if (part == null) { |
3352 throw new core.ArgumentError("Parameter part is required."); | 3775 throw new core.ArgumentError("Parameter part is required."); |
3353 } | 3776 } |
3354 _queryParams["part"] = [part]; | 3777 _queryParams["part"] = [part]; |
3355 if (channelId != null) { | 3778 if (channelId != null) { |
3356 _queryParams["channelId"] = [channelId]; | 3779 _queryParams["channelId"] = [channelId]; |
3357 } | 3780 } |
3358 if (forChannelId != null) { | 3781 if (forChannelId != null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3392 queryParams: _queryParams, | 3815 queryParams: _queryParams, |
3393 uploadOptions: _uploadOptions, | 3816 uploadOptions: _uploadOptions, |
3394 uploadMedia: _uploadMedia, | 3817 uploadMedia: _uploadMedia, |
3395 downloadOptions: _downloadOptions); | 3818 downloadOptions: _downloadOptions); |
3396 return _response.then((data) => new SubscriptionListResponse.fromJson(data))
; | 3819 return _response.then((data) => new SubscriptionListResponse.fromJson(data))
; |
3397 } | 3820 } |
3398 | 3821 |
3399 } | 3822 } |
3400 | 3823 |
3401 | 3824 |
3402 /** Not documented yet. */ | |
3403 class ThumbnailsResourceApi { | 3825 class ThumbnailsResourceApi { |
3404 final common_internal.ApiRequester _requester; | 3826 final commons.ApiRequester _requester; |
3405 | 3827 |
3406 ThumbnailsResourceApi(common_internal.ApiRequester client) : | 3828 ThumbnailsResourceApi(commons.ApiRequester client) : |
3407 _requester = client; | 3829 _requester = client; |
3408 | 3830 |
3409 /** | 3831 /** |
3410 * Uploads a custom video thumbnail to YouTube and sets it for a video. | 3832 * Uploads a custom video thumbnail to YouTube and sets it for a video. |
3411 * | 3833 * |
3412 * Request parameters: | 3834 * Request parameters: |
3413 * | 3835 * |
3414 * [videoId] - The videoId parameter specifies a YouTube video ID for which | 3836 * [videoId] - The videoId parameter specifies a YouTube video ID for which |
3415 * the custom video thumbnail is being provided. | 3837 * the custom video thumbnail is being provided. |
3416 * | 3838 * |
3417 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter indicates | 3839 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter indicates |
3418 * that the authenticated user is acting on behalf of the content owner | 3840 * that the authenticated user is acting on behalf of the content owner |
3419 * specified in the parameter value. This parameter is intended for YouTube | 3841 * specified in the parameter value. This parameter is intended for YouTube |
3420 * content partners that own and manage many different YouTube channels. It | 3842 * content partners that own and manage many different YouTube channels. It |
3421 * allows content owners to authenticate once and get access to all their | 3843 * allows content owners to authenticate once and get access to all their |
3422 * video and channel data, without having to provide authentication | 3844 * video and channel data, without having to provide authentication |
3423 * credentials for each individual channel. The actual CMS account that the | 3845 * credentials for each individual channel. The actual CMS account that the |
3424 * user authenticates with needs to be linked to the specified YouTube content | 3846 * user authenticates with needs to be linked to the specified YouTube content |
3425 * owner. | 3847 * owner. |
3426 * | 3848 * |
3427 * [uploadMedia] - The media to upload. | 3849 * [uploadMedia] - The media to upload. |
3428 * | 3850 * |
3429 * [uploadOptions] - Options for the media upload. Streaming Media without the | 3851 * [uploadOptions] - Options for the media upload. Streaming Media without the |
3430 * length being known ahead of time is only supported via resumable uploads. | 3852 * length being known ahead of time is only supported via resumable uploads. |
3431 * | 3853 * |
3432 * Completes with a [ThumbnailSetResponse]. | 3854 * Completes with a [ThumbnailSetResponse]. |
3433 * | 3855 * |
3434 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3856 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3435 * error. | 3857 * error. |
3436 * | 3858 * |
3437 * If the used [http.Client] completes with an error when making a REST call, | 3859 * If the used [http.Client] completes with an error when making a REST call, |
3438 * this method will complete with the same error. | 3860 * this method will complete with the same error. |
3439 */ | 3861 */ |
3440 async.Future<ThumbnailSetResponse> set(core.String videoId, {core.String onBeh
alfOfContentOwner, common.UploadOptions uploadOptions : common.UploadOptions.Def
ault, common.Media uploadMedia}) { | 3862 async.Future<ThumbnailSetResponse> set(core.String videoId, {core.String onBeh
alfOfContentOwner, commons.UploadOptions uploadOptions : commons.UploadOptions.D
efault, commons.Media uploadMedia}) { |
3441 var _url = null; | 3863 var _url = null; |
3442 var _queryParams = new core.Map(); | 3864 var _queryParams = new core.Map(); |
3443 var _uploadMedia = null; | 3865 var _uploadMedia = null; |
3444 var _uploadOptions = null; | 3866 var _uploadOptions = null; |
3445 var _downloadOptions = common.DownloadOptions.Metadata; | 3867 var _downloadOptions = commons.DownloadOptions.Metadata; |
3446 var _body = null; | 3868 var _body = null; |
3447 | 3869 |
3448 if (videoId == null) { | 3870 if (videoId == null) { |
3449 throw new core.ArgumentError("Parameter videoId is required."); | 3871 throw new core.ArgumentError("Parameter videoId is required."); |
3450 } | 3872 } |
3451 _queryParams["videoId"] = [videoId]; | 3873 _queryParams["videoId"] = [videoId]; |
3452 if (onBehalfOfContentOwner != null) { | 3874 if (onBehalfOfContentOwner != null) { |
3453 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 3875 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
3454 } | 3876 } |
3455 | 3877 |
3456 _uploadMedia = uploadMedia; | 3878 _uploadMedia = uploadMedia; |
3457 _uploadOptions = uploadOptions; | 3879 _uploadOptions = uploadOptions; |
3458 | 3880 |
3459 if (_uploadMedia == null) { | 3881 if (_uploadMedia == null) { |
3460 _url = 'thumbnails/set'; | 3882 _url = 'thumbnails/set'; |
3461 } else if (_uploadOptions is common.ResumableUploadOptions) { | 3883 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
3462 _url = '/resumable/upload/youtube/v3/thumbnails/set'; | 3884 _url = '/resumable/upload/youtube/v3/thumbnails/set'; |
3463 } else { | 3885 } else { |
3464 _url = '/upload/youtube/v3/thumbnails/set'; | 3886 _url = '/upload/youtube/v3/thumbnails/set'; |
3465 } | 3887 } |
3466 | 3888 |
3467 | 3889 |
3468 var _response = _requester.request(_url, | 3890 var _response = _requester.request(_url, |
3469 "POST", | 3891 "POST", |
3470 body: _body, | 3892 body: _body, |
3471 queryParams: _queryParams, | 3893 queryParams: _queryParams, |
3472 uploadOptions: _uploadOptions, | 3894 uploadOptions: _uploadOptions, |
3473 uploadMedia: _uploadMedia, | 3895 uploadMedia: _uploadMedia, |
3474 downloadOptions: _downloadOptions); | 3896 downloadOptions: _downloadOptions); |
3475 return _response.then((data) => new ThumbnailSetResponse.fromJson(data)); | 3897 return _response.then((data) => new ThumbnailSetResponse.fromJson(data)); |
3476 } | 3898 } |
3477 | 3899 |
3478 } | 3900 } |
3479 | 3901 |
3480 | 3902 |
3481 /** Not documented yet. */ | |
3482 class VideoCategoriesResourceApi { | 3903 class VideoCategoriesResourceApi { |
3483 final common_internal.ApiRequester _requester; | 3904 final commons.ApiRequester _requester; |
3484 | 3905 |
3485 VideoCategoriesResourceApi(common_internal.ApiRequester client) : | 3906 VideoCategoriesResourceApi(commons.ApiRequester client) : |
3486 _requester = client; | 3907 _requester = client; |
3487 | 3908 |
3488 /** | 3909 /** |
3489 * Returns a list of categories that can be associated with YouTube videos. | 3910 * Returns a list of categories that can be associated with YouTube videos. |
3490 * | 3911 * |
3491 * Request parameters: | 3912 * Request parameters: |
3492 * | 3913 * |
3493 * [part] - The part parameter specifies the videoCategory resource parts that | 3914 * [part] - The part parameter specifies the videoCategory resource parts that |
3494 * the API response will include. Supported values are id and snippet. | 3915 * the API response will include. Supported values are id and snippet. |
3495 * | 3916 * |
3496 * [hl] - The hl parameter specifies the language that should be used for text | 3917 * [hl] - The hl parameter specifies the language that should be used for text |
3497 * values in the API response. | 3918 * values in the API response. |
3498 * | 3919 * |
3499 * [id] - The id parameter specifies a comma-separated list of video category | 3920 * [id] - The id parameter specifies a comma-separated list of video category |
3500 * IDs for the resources that you are retrieving. | 3921 * IDs for the resources that you are retrieving. |
3501 * | 3922 * |
3502 * [regionCode] - The regionCode parameter instructs the API to return the | 3923 * [regionCode] - The regionCode parameter instructs the API to return the |
3503 * list of video categories available in the specified country. The parameter | 3924 * list of video categories available in the specified country. The parameter |
3504 * value is an ISO 3166-1 alpha-2 country code. | 3925 * value is an ISO 3166-1 alpha-2 country code. |
3505 * | 3926 * |
3506 * Completes with a [VideoCategoryListResponse]. | 3927 * Completes with a [VideoCategoryListResponse]. |
3507 * | 3928 * |
3508 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3929 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3509 * error. | 3930 * error. |
3510 * | 3931 * |
3511 * If the used [http.Client] completes with an error when making a REST call, | 3932 * If the used [http.Client] completes with an error when making a REST call, |
3512 * this method will complete with the same error. | 3933 * this method will complete with the same error. |
3513 */ | 3934 */ |
3514 async.Future<VideoCategoryListResponse> list(core.String part, {core.String hl
, core.String id, core.String regionCode}) { | 3935 async.Future<VideoCategoryListResponse> list(core.String part, {core.String hl
, core.String id, core.String regionCode}) { |
3515 var _url = null; | 3936 var _url = null; |
3516 var _queryParams = new core.Map(); | 3937 var _queryParams = new core.Map(); |
3517 var _uploadMedia = null; | 3938 var _uploadMedia = null; |
3518 var _uploadOptions = null; | 3939 var _uploadOptions = null; |
3519 var _downloadOptions = common.DownloadOptions.Metadata; | 3940 var _downloadOptions = commons.DownloadOptions.Metadata; |
3520 var _body = null; | 3941 var _body = null; |
3521 | 3942 |
3522 if (part == null) { | 3943 if (part == null) { |
3523 throw new core.ArgumentError("Parameter part is required."); | 3944 throw new core.ArgumentError("Parameter part is required."); |
3524 } | 3945 } |
3525 _queryParams["part"] = [part]; | 3946 _queryParams["part"] = [part]; |
3526 if (hl != null) { | 3947 if (hl != null) { |
3527 _queryParams["hl"] = [hl]; | 3948 _queryParams["hl"] = [hl]; |
3528 } | 3949 } |
3529 if (id != null) { | 3950 if (id != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
3542 queryParams: _queryParams, | 3963 queryParams: _queryParams, |
3543 uploadOptions: _uploadOptions, | 3964 uploadOptions: _uploadOptions, |
3544 uploadMedia: _uploadMedia, | 3965 uploadMedia: _uploadMedia, |
3545 downloadOptions: _downloadOptions); | 3966 downloadOptions: _downloadOptions); |
3546 return _response.then((data) => new VideoCategoryListResponse.fromJson(data)
); | 3967 return _response.then((data) => new VideoCategoryListResponse.fromJson(data)
); |
3547 } | 3968 } |
3548 | 3969 |
3549 } | 3970 } |
3550 | 3971 |
3551 | 3972 |
3552 /** Not documented yet. */ | |
3553 class VideosResourceApi { | 3973 class VideosResourceApi { |
3554 final common_internal.ApiRequester _requester; | 3974 final commons.ApiRequester _requester; |
3555 | 3975 |
3556 VideosResourceApi(common_internal.ApiRequester client) : | 3976 VideosResourceApi(commons.ApiRequester client) : |
3557 _requester = client; | 3977 _requester = client; |
3558 | 3978 |
3559 /** | 3979 /** |
3560 * Deletes a YouTube video. | 3980 * Deletes a YouTube video. |
3561 * | 3981 * |
3562 * Request parameters: | 3982 * Request parameters: |
3563 * | 3983 * |
3564 * [id] - The id parameter specifies the YouTube video ID for the resource | 3984 * [id] - The id parameter specifies the YouTube video ID for the resource |
3565 * that is being deleted. In a video resource, the id property specifies the | 3985 * that is being deleted. In a video resource, the id property specifies the |
3566 * video's ID. | 3986 * video's ID. |
3567 * | 3987 * |
3568 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3988 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
3569 * YouTube content partners. | 3989 * YouTube content partners. |
3570 * | 3990 * |
3571 * The onBehalfOfContentOwner parameter indicates that the request's | 3991 * The onBehalfOfContentOwner parameter indicates that the request's |
3572 * authorization credentials identify a YouTube CMS user who is acting on | 3992 * authorization credentials identify a YouTube CMS user who is acting on |
3573 * behalf of the content owner specified in the parameter value. This | 3993 * behalf of the content owner specified in the parameter value. This |
3574 * parameter is intended for YouTube content partners that own and manage many | 3994 * parameter is intended for YouTube content partners that own and manage many |
3575 * different YouTube channels. It allows content owners to authenticate once | 3995 * different YouTube channels. It allows content owners to authenticate once |
3576 * and get access to all their video and channel data, without having to | 3996 * and get access to all their video and channel data, without having to |
3577 * provide authentication credentials for each individual channel. The actual | 3997 * provide authentication credentials for each individual channel. The actual |
3578 * CMS account that the user authenticates with must be linked to the | 3998 * CMS account that the user authenticates with must be linked to the |
3579 * specified YouTube content owner. | 3999 * specified YouTube content owner. |
3580 * | 4000 * |
3581 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3582 * error. | 4002 * error. |
3583 * | 4003 * |
3584 * If the used [http.Client] completes with an error when making a REST call, | 4004 * If the used [http.Client] completes with an error when making a REST call, |
3585 * this method will complete with the same error. | 4005 * this method will complete with the same error. |
3586 */ | 4006 */ |
3587 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { | 4007 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { |
3588 var _url = null; | 4008 var _url = null; |
3589 var _queryParams = new core.Map(); | 4009 var _queryParams = new core.Map(); |
3590 var _uploadMedia = null; | 4010 var _uploadMedia = null; |
3591 var _uploadOptions = null; | 4011 var _uploadOptions = null; |
3592 var _downloadOptions = common.DownloadOptions.Metadata; | 4012 var _downloadOptions = commons.DownloadOptions.Metadata; |
3593 var _body = null; | 4013 var _body = null; |
3594 | 4014 |
3595 if (id == null) { | 4015 if (id == null) { |
3596 throw new core.ArgumentError("Parameter id is required."); | 4016 throw new core.ArgumentError("Parameter id is required."); |
3597 } | 4017 } |
3598 _queryParams["id"] = [id]; | 4018 _queryParams["id"] = [id]; |
3599 if (onBehalfOfContentOwner != null) { | 4019 if (onBehalfOfContentOwner != null) { |
3600 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4020 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
3601 } | 4021 } |
3602 | 4022 |
(...skipping 29 matching lines...) Expand all Loading... |
3632 * behalf of the content owner specified in the parameter value. This | 4052 * behalf of the content owner specified in the parameter value. This |
3633 * parameter is intended for YouTube content partners that own and manage many | 4053 * parameter is intended for YouTube content partners that own and manage many |
3634 * different YouTube channels. It allows content owners to authenticate once | 4054 * different YouTube channels. It allows content owners to authenticate once |
3635 * and get access to all their video and channel data, without having to | 4055 * and get access to all their video and channel data, without having to |
3636 * provide authentication credentials for each individual channel. The CMS | 4056 * provide authentication credentials for each individual channel. The CMS |
3637 * account that the user authenticates with must be linked to the specified | 4057 * account that the user authenticates with must be linked to the specified |
3638 * YouTube content owner. | 4058 * YouTube content owner. |
3639 * | 4059 * |
3640 * Completes with a [VideoGetRatingResponse]. | 4060 * Completes with a [VideoGetRatingResponse]. |
3641 * | 4061 * |
3642 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4062 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3643 * error. | 4063 * error. |
3644 * | 4064 * |
3645 * If the used [http.Client] completes with an error when making a REST call, | 4065 * If the used [http.Client] completes with an error when making a REST call, |
3646 * this method will complete with the same error. | 4066 * this method will complete with the same error. |
3647 */ | 4067 */ |
3648 async.Future<VideoGetRatingResponse> getRating(core.String id, {core.String on
BehalfOfContentOwner}) { | 4068 async.Future<VideoGetRatingResponse> getRating(core.String id, {core.String on
BehalfOfContentOwner}) { |
3649 var _url = null; | 4069 var _url = null; |
3650 var _queryParams = new core.Map(); | 4070 var _queryParams = new core.Map(); |
3651 var _uploadMedia = null; | 4071 var _uploadMedia = null; |
3652 var _uploadOptions = null; | 4072 var _uploadOptions = null; |
3653 var _downloadOptions = common.DownloadOptions.Metadata; | 4073 var _downloadOptions = commons.DownloadOptions.Metadata; |
3654 var _body = null; | 4074 var _body = null; |
3655 | 4075 |
3656 if (id == null) { | 4076 if (id == null) { |
3657 throw new core.ArgumentError("Parameter id is required."); | 4077 throw new core.ArgumentError("Parameter id is required."); |
3658 } | 4078 } |
3659 _queryParams["id"] = [id]; | 4079 _queryParams["id"] = [id]; |
3660 if (onBehalfOfContentOwner != null) { | 4080 if (onBehalfOfContentOwner != null) { |
3661 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4081 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
3662 } | 4082 } |
3663 | 4083 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3737 * [stabilize] - The stabilize parameter indicates whether YouTube should | 4157 * [stabilize] - The stabilize parameter indicates whether YouTube should |
3738 * adjust the video to remove shaky camera motions. | 4158 * adjust the video to remove shaky camera motions. |
3739 * | 4159 * |
3740 * [uploadMedia] - The media to upload. | 4160 * [uploadMedia] - The media to upload. |
3741 * | 4161 * |
3742 * [uploadOptions] - Options for the media upload. Streaming Media without the | 4162 * [uploadOptions] - Options for the media upload. Streaming Media without the |
3743 * length being known ahead of time is only supported via resumable uploads. | 4163 * length being known ahead of time is only supported via resumable uploads. |
3744 * | 4164 * |
3745 * Completes with a [Video]. | 4165 * Completes with a [Video]. |
3746 * | 4166 * |
3747 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4167 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3748 * error. | 4168 * error. |
3749 * | 4169 * |
3750 * If the used [http.Client] completes with an error when making a REST call, | 4170 * If the used [http.Client] completes with an error when making a REST call, |
3751 * this method will complete with the same error. | 4171 * this method will complete with the same error. |
3752 */ | 4172 */ |
3753 async.Future<Video> insert(Video request, core.String part, {core.bool autoLev
els, core.bool notifySubscribers, core.String onBehalfOfContentOwner, core.Strin
g onBehalfOfContentOwnerChannel, core.bool stabilize, common.UploadOptions uploa
dOptions : common.UploadOptions.Default, common.Media uploadMedia}) { | 4173 async.Future<Video> insert(Video request, core.String part, {core.bool autoLev
els, core.bool notifySubscribers, core.String onBehalfOfContentOwner, core.Strin
g onBehalfOfContentOwnerChannel, core.bool stabilize, commons.UploadOptions uplo
adOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { |
3754 var _url = null; | 4174 var _url = null; |
3755 var _queryParams = new core.Map(); | 4175 var _queryParams = new core.Map(); |
3756 var _uploadMedia = null; | 4176 var _uploadMedia = null; |
3757 var _uploadOptions = null; | 4177 var _uploadOptions = null; |
3758 var _downloadOptions = common.DownloadOptions.Metadata; | 4178 var _downloadOptions = commons.DownloadOptions.Metadata; |
3759 var _body = null; | 4179 var _body = null; |
3760 | 4180 |
3761 if (request != null) { | 4181 if (request != null) { |
3762 _body = convert.JSON.encode((request).toJson()); | 4182 _body = convert.JSON.encode((request).toJson()); |
3763 } | 4183 } |
3764 if (part == null) { | 4184 if (part == null) { |
3765 throw new core.ArgumentError("Parameter part is required."); | 4185 throw new core.ArgumentError("Parameter part is required."); |
3766 } | 4186 } |
3767 _queryParams["part"] = [part]; | 4187 _queryParams["part"] = [part]; |
3768 if (autoLevels != null) { | 4188 if (autoLevels != null) { |
(...skipping 10 matching lines...) Expand all Loading... |
3779 } | 4199 } |
3780 if (stabilize != null) { | 4200 if (stabilize != null) { |
3781 _queryParams["stabilize"] = ["${stabilize}"]; | 4201 _queryParams["stabilize"] = ["${stabilize}"]; |
3782 } | 4202 } |
3783 | 4203 |
3784 _uploadMedia = uploadMedia; | 4204 _uploadMedia = uploadMedia; |
3785 _uploadOptions = uploadOptions; | 4205 _uploadOptions = uploadOptions; |
3786 | 4206 |
3787 if (_uploadMedia == null) { | 4207 if (_uploadMedia == null) { |
3788 _url = 'videos'; | 4208 _url = 'videos'; |
3789 } else if (_uploadOptions is common.ResumableUploadOptions) { | 4209 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
3790 _url = '/resumable/upload/youtube/v3/videos'; | 4210 _url = '/resumable/upload/youtube/v3/videos'; |
3791 } else { | 4211 } else { |
3792 _url = '/upload/youtube/v3/videos'; | 4212 _url = '/upload/youtube/v3/videos'; |
3793 } | 4213 } |
3794 | 4214 |
3795 | 4215 |
3796 var _response = _requester.request(_url, | 4216 var _response = _requester.request(_url, |
3797 "POST", | 4217 "POST", |
3798 body: _body, | 4218 body: _body, |
3799 queryParams: _queryParams, | 4219 queryParams: _queryParams, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3881 * conjunction with the chart parameter. The parameter value is an ISO 3166-1 | 4301 * conjunction with the chart parameter. The parameter value is an ISO 3166-1 |
3882 * alpha-2 country code. | 4302 * alpha-2 country code. |
3883 * | 4303 * |
3884 * [videoCategoryId] - The videoCategoryId parameter identifies the video | 4304 * [videoCategoryId] - The videoCategoryId parameter identifies the video |
3885 * category for which the chart should be retrieved. This parameter can only | 4305 * category for which the chart should be retrieved. This parameter can only |
3886 * be used in conjunction with the chart parameter. By default, charts are not | 4306 * be used in conjunction with the chart parameter. By default, charts are not |
3887 * restricted to a particular category. | 4307 * restricted to a particular category. |
3888 * | 4308 * |
3889 * Completes with a [VideoListResponse]. | 4309 * Completes with a [VideoListResponse]. |
3890 * | 4310 * |
3891 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4311 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3892 * error. | 4312 * error. |
3893 * | 4313 * |
3894 * If the used [http.Client] completes with an error when making a REST call, | 4314 * If the used [http.Client] completes with an error when making a REST call, |
3895 * this method will complete with the same error. | 4315 * this method will complete with the same error. |
3896 */ | 4316 */ |
3897 async.Future<VideoListResponse> list(core.String part, {core.String chart, cor
e.String hl, core.String id, core.String locale, core.int maxResults, core.Strin
g myRating, core.String onBehalfOfContentOwner, core.String pageToken, core.Stri
ng regionCode, core.String videoCategoryId}) { | 4317 async.Future<VideoListResponse> list(core.String part, {core.String chart, cor
e.String hl, core.String id, core.String locale, core.int maxResults, core.Strin
g myRating, core.String onBehalfOfContentOwner, core.String pageToken, core.Stri
ng regionCode, core.String videoCategoryId}) { |
3898 var _url = null; | 4318 var _url = null; |
3899 var _queryParams = new core.Map(); | 4319 var _queryParams = new core.Map(); |
3900 var _uploadMedia = null; | 4320 var _uploadMedia = null; |
3901 var _uploadOptions = null; | 4321 var _uploadOptions = null; |
3902 var _downloadOptions = common.DownloadOptions.Metadata; | 4322 var _downloadOptions = commons.DownloadOptions.Metadata; |
3903 var _body = null; | 4323 var _body = null; |
3904 | 4324 |
3905 if (part == null) { | 4325 if (part == null) { |
3906 throw new core.ArgumentError("Parameter part is required."); | 4326 throw new core.ArgumentError("Parameter part is required."); |
3907 } | 4327 } |
3908 _queryParams["part"] = [part]; | 4328 _queryParams["part"] = [part]; |
3909 if (chart != null) { | 4329 if (chart != null) { |
3910 _queryParams["chart"] = [chart]; | 4330 _queryParams["chart"] = [chart]; |
3911 } | 4331 } |
3912 if (hl != null) { | 4332 if (hl != null) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3971 * The onBehalfOfContentOwner parameter indicates that the request's | 4391 * The onBehalfOfContentOwner parameter indicates that the request's |
3972 * authorization credentials identify a YouTube CMS user who is acting on | 4392 * authorization credentials identify a YouTube CMS user who is acting on |
3973 * behalf of the content owner specified in the parameter value. This | 4393 * behalf of the content owner specified in the parameter value. This |
3974 * parameter is intended for YouTube content partners that own and manage many | 4394 * parameter is intended for YouTube content partners that own and manage many |
3975 * different YouTube channels. It allows content owners to authenticate once | 4395 * different YouTube channels. It allows content owners to authenticate once |
3976 * and get access to all their video and channel data, without having to | 4396 * and get access to all their video and channel data, without having to |
3977 * provide authentication credentials for each individual channel. The CMS | 4397 * provide authentication credentials for each individual channel. The CMS |
3978 * account that the user authenticates with must be linked to the specified | 4398 * account that the user authenticates with must be linked to the specified |
3979 * YouTube content owner. | 4399 * YouTube content owner. |
3980 * | 4400 * |
3981 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3982 * error. | 4402 * error. |
3983 * | 4403 * |
3984 * If the used [http.Client] completes with an error when making a REST call, | 4404 * If the used [http.Client] completes with an error when making a REST call, |
3985 * this method will complete with the same error. | 4405 * this method will complete with the same error. |
3986 */ | 4406 */ |
3987 async.Future rate(core.String id, core.String rating, {core.String onBehalfOfC
ontentOwner}) { | 4407 async.Future rate(core.String id, core.String rating, {core.String onBehalfOfC
ontentOwner}) { |
3988 var _url = null; | 4408 var _url = null; |
3989 var _queryParams = new core.Map(); | 4409 var _queryParams = new core.Map(); |
3990 var _uploadMedia = null; | 4410 var _uploadMedia = null; |
3991 var _uploadOptions = null; | 4411 var _uploadOptions = null; |
3992 var _downloadOptions = common.DownloadOptions.Metadata; | 4412 var _downloadOptions = commons.DownloadOptions.Metadata; |
3993 var _body = null; | 4413 var _body = null; |
3994 | 4414 |
3995 if (id == null) { | 4415 if (id == null) { |
3996 throw new core.ArgumentError("Parameter id is required."); | 4416 throw new core.ArgumentError("Parameter id is required."); |
3997 } | 4417 } |
3998 _queryParams["id"] = [id]; | 4418 _queryParams["id"] = [id]; |
3999 if (rating == null) { | 4419 if (rating == null) { |
4000 throw new core.ArgumentError("Parameter rating is required."); | 4420 throw new core.ArgumentError("Parameter rating is required."); |
4001 } | 4421 } |
4002 _queryParams["rating"] = [rating]; | 4422 _queryParams["rating"] = [rating]; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4059 * behalf of the content owner specified in the parameter value. This | 4479 * behalf of the content owner specified in the parameter value. This |
4060 * parameter is intended for YouTube content partners that own and manage many | 4480 * parameter is intended for YouTube content partners that own and manage many |
4061 * different YouTube channels. It allows content owners to authenticate once | 4481 * different YouTube channels. It allows content owners to authenticate once |
4062 * and get access to all their video and channel data, without having to | 4482 * and get access to all their video and channel data, without having to |
4063 * provide authentication credentials for each individual channel. The actual | 4483 * provide authentication credentials for each individual channel. The actual |
4064 * CMS account that the user authenticates with must be linked to the | 4484 * CMS account that the user authenticates with must be linked to the |
4065 * specified YouTube content owner. | 4485 * specified YouTube content owner. |
4066 * | 4486 * |
4067 * Completes with a [Video]. | 4487 * Completes with a [Video]. |
4068 * | 4488 * |
4069 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4489 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
4070 * error. | 4490 * error. |
4071 * | 4491 * |
4072 * If the used [http.Client] completes with an error when making a REST call, | 4492 * If the used [http.Client] completes with an error when making a REST call, |
4073 * this method will complete with the same error. | 4493 * this method will complete with the same error. |
4074 */ | 4494 */ |
4075 async.Future<Video> update(Video request, core.String part, {core.String onBeh
alfOfContentOwner}) { | 4495 async.Future<Video> update(Video request, core.String part, {core.String onBeh
alfOfContentOwner}) { |
4076 var _url = null; | 4496 var _url = null; |
4077 var _queryParams = new core.Map(); | 4497 var _queryParams = new core.Map(); |
4078 var _uploadMedia = null; | 4498 var _uploadMedia = null; |
4079 var _uploadOptions = null; | 4499 var _uploadOptions = null; |
4080 var _downloadOptions = common.DownloadOptions.Metadata; | 4500 var _downloadOptions = commons.DownloadOptions.Metadata; |
4081 var _body = null; | 4501 var _body = null; |
4082 | 4502 |
4083 if (request != null) { | 4503 if (request != null) { |
4084 _body = convert.JSON.encode((request).toJson()); | 4504 _body = convert.JSON.encode((request).toJson()); |
4085 } | 4505 } |
4086 if (part == null) { | 4506 if (part == null) { |
4087 throw new core.ArgumentError("Parameter part is required."); | 4507 throw new core.ArgumentError("Parameter part is required."); |
4088 } | 4508 } |
4089 _queryParams["part"] = [part]; | 4509 _queryParams["part"] = [part]; |
4090 if (onBehalfOfContentOwner != null) { | 4510 if (onBehalfOfContentOwner != null) { |
4091 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4511 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
4092 } | 4512 } |
4093 | 4513 |
4094 | 4514 |
4095 _url = 'videos'; | 4515 _url = 'videos'; |
4096 | 4516 |
4097 var _response = _requester.request(_url, | 4517 var _response = _requester.request(_url, |
4098 "PUT", | 4518 "PUT", |
4099 body: _body, | 4519 body: _body, |
4100 queryParams: _queryParams, | 4520 queryParams: _queryParams, |
4101 uploadOptions: _uploadOptions, | 4521 uploadOptions: _uploadOptions, |
4102 uploadMedia: _uploadMedia, | 4522 uploadMedia: _uploadMedia, |
4103 downloadOptions: _downloadOptions); | 4523 downloadOptions: _downloadOptions); |
4104 return _response.then((data) => new Video.fromJson(data)); | 4524 return _response.then((data) => new Video.fromJson(data)); |
4105 } | 4525 } |
4106 | 4526 |
4107 } | 4527 } |
4108 | 4528 |
4109 | 4529 |
4110 /** Not documented yet. */ | |
4111 class WatermarksResourceApi { | 4530 class WatermarksResourceApi { |
4112 final common_internal.ApiRequester _requester; | 4531 final commons.ApiRequester _requester; |
4113 | 4532 |
4114 WatermarksResourceApi(common_internal.ApiRequester client) : | 4533 WatermarksResourceApi(commons.ApiRequester client) : |
4115 _requester = client; | 4534 _requester = client; |
4116 | 4535 |
4117 /** | 4536 /** |
4118 * Uploads a watermark image to YouTube and sets it for a channel. | 4537 * Uploads a watermark image to YouTube and sets it for a channel. |
4119 * | 4538 * |
4120 * [request] - The metadata request object. | 4539 * [request] - The metadata request object. |
4121 * | 4540 * |
4122 * Request parameters: | 4541 * Request parameters: |
4123 * | 4542 * |
4124 * [channelId] - The channelId parameter specifies a YouTube channel ID for | 4543 * [channelId] - The channelId parameter specifies a YouTube channel ID for |
4125 * which the watermark is being provided. | 4544 * which the watermark is being provided. |
4126 * | 4545 * |
4127 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter indicates | 4546 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter indicates |
4128 * that the authenticated user is acting on behalf of the content owner | 4547 * that the authenticated user is acting on behalf of the content owner |
4129 * specified in the parameter value. This parameter is intended for YouTube | 4548 * specified in the parameter value. This parameter is intended for YouTube |
4130 * content partners that own and manage many different YouTube channels. It | 4549 * content partners that own and manage many different YouTube channels. It |
4131 * allows content owners to authenticate once and get access to all their | 4550 * allows content owners to authenticate once and get access to all their |
4132 * video and channel data, without having to provide authentication | 4551 * video and channel data, without having to provide authentication |
4133 * credentials for each individual channel. The actual CMS account that the | 4552 * credentials for each individual channel. The actual CMS account that the |
4134 * user authenticates with needs to be linked to the specified YouTube content | 4553 * user authenticates with needs to be linked to the specified YouTube content |
4135 * owner. | 4554 * owner. |
4136 * | 4555 * |
4137 * [uploadMedia] - The media to upload. | 4556 * [uploadMedia] - The media to upload. |
4138 * | 4557 * |
4139 * [uploadOptions] - Options for the media upload. Streaming Media without the | 4558 * [uploadOptions] - Options for the media upload. Streaming Media without the |
4140 * length being known ahead of time is only supported via resumable uploads. | 4559 * length being known ahead of time is only supported via resumable uploads. |
4141 * | 4560 * |
4142 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4561 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
4143 * error. | 4562 * error. |
4144 * | 4563 * |
4145 * If the used [http.Client] completes with an error when making a REST call, | 4564 * If the used [http.Client] completes with an error when making a REST call, |
4146 * this method will complete with the same error. | 4565 * this method will complete with the same error. |
4147 */ | 4566 */ |
4148 async.Future set(InvideoBranding request, core.String channelId, {core.String
onBehalfOfContentOwner, common.UploadOptions uploadOptions : common.UploadOption
s.Default, common.Media uploadMedia}) { | 4567 async.Future set(InvideoBranding request, core.String channelId, {core.String
onBehalfOfContentOwner, commons.UploadOptions uploadOptions : commons.UploadOpti
ons.Default, commons.Media uploadMedia}) { |
4149 var _url = null; | 4568 var _url = null; |
4150 var _queryParams = new core.Map(); | 4569 var _queryParams = new core.Map(); |
4151 var _uploadMedia = null; | 4570 var _uploadMedia = null; |
4152 var _uploadOptions = null; | 4571 var _uploadOptions = null; |
4153 var _downloadOptions = common.DownloadOptions.Metadata; | 4572 var _downloadOptions = commons.DownloadOptions.Metadata; |
4154 var _body = null; | 4573 var _body = null; |
4155 | 4574 |
4156 if (request != null) { | 4575 if (request != null) { |
4157 _body = convert.JSON.encode((request).toJson()); | 4576 _body = convert.JSON.encode((request).toJson()); |
4158 } | 4577 } |
4159 if (channelId == null) { | 4578 if (channelId == null) { |
4160 throw new core.ArgumentError("Parameter channelId is required."); | 4579 throw new core.ArgumentError("Parameter channelId is required."); |
4161 } | 4580 } |
4162 _queryParams["channelId"] = [channelId]; | 4581 _queryParams["channelId"] = [channelId]; |
4163 if (onBehalfOfContentOwner != null) { | 4582 if (onBehalfOfContentOwner != null) { |
4164 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4583 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
4165 } | 4584 } |
4166 | 4585 |
4167 _uploadMedia = uploadMedia; | 4586 _uploadMedia = uploadMedia; |
4168 _uploadOptions = uploadOptions; | 4587 _uploadOptions = uploadOptions; |
4169 _downloadOptions = null; | 4588 _downloadOptions = null; |
4170 | 4589 |
4171 if (_uploadMedia == null) { | 4590 if (_uploadMedia == null) { |
4172 _url = 'watermarks/set'; | 4591 _url = 'watermarks/set'; |
4173 } else if (_uploadOptions is common.ResumableUploadOptions) { | 4592 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
4174 _url = '/resumable/upload/youtube/v3/watermarks/set'; | 4593 _url = '/resumable/upload/youtube/v3/watermarks/set'; |
4175 } else { | 4594 } else { |
4176 _url = '/upload/youtube/v3/watermarks/set'; | 4595 _url = '/upload/youtube/v3/watermarks/set'; |
4177 } | 4596 } |
4178 | 4597 |
4179 | 4598 |
4180 var _response = _requester.request(_url, | 4599 var _response = _requester.request(_url, |
4181 "POST", | 4600 "POST", |
4182 body: _body, | 4601 body: _body, |
4183 queryParams: _queryParams, | 4602 queryParams: _queryParams, |
(...skipping 14 matching lines...) Expand all Loading... |
4198 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter indicates | 4617 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter indicates |
4199 * that the authenticated user is acting on behalf of the content owner | 4618 * that the authenticated user is acting on behalf of the content owner |
4200 * specified in the parameter value. This parameter is intended for YouTube | 4619 * specified in the parameter value. This parameter is intended for YouTube |
4201 * content partners that own and manage many different YouTube channels. It | 4620 * content partners that own and manage many different YouTube channels. It |
4202 * allows content owners to authenticate once and get access to all their | 4621 * allows content owners to authenticate once and get access to all their |
4203 * video and channel data, without having to provide authentication | 4622 * video and channel data, without having to provide authentication |
4204 * credentials for each individual channel. The actual CMS account that the | 4623 * credentials for each individual channel. The actual CMS account that the |
4205 * user authenticates with needs to be linked to the specified YouTube content | 4624 * user authenticates with needs to be linked to the specified YouTube content |
4206 * owner. | 4625 * owner. |
4207 * | 4626 * |
4208 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4627 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
4209 * error. | 4628 * error. |
4210 * | 4629 * |
4211 * If the used [http.Client] completes with an error when making a REST call, | 4630 * If the used [http.Client] completes with an error when making a REST call, |
4212 * this method will complete with the same error. | 4631 * this method will complete with the same error. |
4213 */ | 4632 */ |
4214 async.Future unset(core.String channelId, {core.String onBehalfOfContentOwner}
) { | 4633 async.Future unset(core.String channelId, {core.String onBehalfOfContentOwner}
) { |
4215 var _url = null; | 4634 var _url = null; |
4216 var _queryParams = new core.Map(); | 4635 var _queryParams = new core.Map(); |
4217 var _uploadMedia = null; | 4636 var _uploadMedia = null; |
4218 var _uploadOptions = null; | 4637 var _uploadOptions = null; |
4219 var _downloadOptions = common.DownloadOptions.Metadata; | 4638 var _downloadOptions = commons.DownloadOptions.Metadata; |
4220 var _body = null; | 4639 var _body = null; |
4221 | 4640 |
4222 if (channelId == null) { | 4641 if (channelId == null) { |
4223 throw new core.ArgumentError("Parameter channelId is required."); | 4642 throw new core.ArgumentError("Parameter channelId is required."); |
4224 } | 4643 } |
4225 _queryParams["channelId"] = [channelId]; | 4644 _queryParams["channelId"] = [channelId]; |
4226 if (onBehalfOfContentOwner != null) { | 4645 if (onBehalfOfContentOwner != null) { |
4227 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4646 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
4228 } | 4647 } |
4229 | 4648 |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4997 core.Map toJson() { | 5416 core.Map toJson() { |
4998 var _json = new core.Map(); | 5417 var _json = new core.Map(); |
4999 if (videoId != null) { | 5418 if (videoId != null) { |
5000 _json["videoId"] = videoId; | 5419 _json["videoId"] = videoId; |
5001 } | 5420 } |
5002 return _json; | 5421 return _json; |
5003 } | 5422 } |
5004 } | 5423 } |
5005 | 5424 |
5006 | 5425 |
5007 /** Not documented yet. */ | |
5008 class ActivityListResponse { | 5426 class ActivityListResponse { |
5009 /** Etag of this resource. */ | 5427 /** Etag of this resource. */ |
5010 core.String etag; | 5428 core.String etag; |
5011 | 5429 |
5012 /** Serialized EventId of the request which produced this response. */ | 5430 /** Serialized EventId of the request which produced this response. */ |
5013 core.String eventId; | 5431 core.String eventId; |
5014 | 5432 |
5015 /** A list of activities, or events, that match the request criteria. */ | 5433 /** A list of activities, or events, that match the request criteria. */ |
5016 core.List<Activity> items; | 5434 core.List<Activity> items; |
5017 | 5435 |
5018 /** | 5436 /** |
5019 * Identifies what kind of resource this is. Value: the fixed string | 5437 * Identifies what kind of resource this is. Value: the fixed string |
5020 * "youtube#activityListResponse". | 5438 * "youtube#activityListResponse". |
5021 */ | 5439 */ |
5022 core.String kind; | 5440 core.String kind; |
5023 | 5441 |
5024 /** | 5442 /** |
5025 * The token that can be used as the value of the pageToken parameter to | 5443 * The token that can be used as the value of the pageToken parameter to |
5026 * retrieve the next page in the result set. | 5444 * retrieve the next page in the result set. |
5027 */ | 5445 */ |
5028 core.String nextPageToken; | 5446 core.String nextPageToken; |
5029 | 5447 |
5030 /** Not documented yet. */ | |
5031 PageInfo pageInfo; | 5448 PageInfo pageInfo; |
5032 | 5449 |
5033 /** | 5450 /** |
5034 * The token that can be used as the value of the pageToken parameter to | 5451 * The token that can be used as the value of the pageToken parameter to |
5035 * retrieve the previous page in the result set. | 5452 * retrieve the previous page in the result set. |
5036 */ | 5453 */ |
5037 core.String prevPageToken; | 5454 core.String prevPageToken; |
5038 | 5455 |
5039 /** Not documented yet. */ | |
5040 TokenPagination tokenPagination; | 5456 TokenPagination tokenPagination; |
5041 | 5457 |
5042 /** The visitorId identifies the visitor. */ | 5458 /** The visitorId identifies the visitor. */ |
5043 core.String visitorId; | 5459 core.String visitorId; |
5044 | 5460 |
5045 | 5461 |
5046 ActivityListResponse(); | 5462 ActivityListResponse(); |
5047 | 5463 |
5048 ActivityListResponse.fromJson(core.Map _json) { | 5464 ActivityListResponse.fromJson(core.Map _json) { |
5049 if (_json.containsKey("etag")) { | 5465 if (_json.containsKey("etag")) { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5226 _json["title"] = title; | 5642 _json["title"] = title; |
5227 } | 5643 } |
5228 if (type != null) { | 5644 if (type != null) { |
5229 _json["type"] = type; | 5645 _json["type"] = type; |
5230 } | 5646 } |
5231 return _json; | 5647 return _json; |
5232 } | 5648 } |
5233 } | 5649 } |
5234 | 5650 |
5235 | 5651 |
| 5652 /** |
| 5653 * A caption resource represents a YouTube caption track. A caption track is |
| 5654 * associated with exactly one YouTube video. |
| 5655 */ |
| 5656 class Caption { |
| 5657 /** Etag of this resource. */ |
| 5658 core.String etag; |
| 5659 |
| 5660 /** The ID that YouTube uses to uniquely identify the caption track. */ |
| 5661 core.String id; |
| 5662 |
| 5663 /** |
| 5664 * Identifies what kind of resource this is. Value: the fixed string |
| 5665 * "youtube#caption". |
| 5666 */ |
| 5667 core.String kind; |
| 5668 |
| 5669 /** The snippet object contains basic details about the caption. */ |
| 5670 CaptionSnippet snippet; |
| 5671 |
| 5672 |
| 5673 Caption(); |
| 5674 |
| 5675 Caption.fromJson(core.Map _json) { |
| 5676 if (_json.containsKey("etag")) { |
| 5677 etag = _json["etag"]; |
| 5678 } |
| 5679 if (_json.containsKey("id")) { |
| 5680 id = _json["id"]; |
| 5681 } |
| 5682 if (_json.containsKey("kind")) { |
| 5683 kind = _json["kind"]; |
| 5684 } |
| 5685 if (_json.containsKey("snippet")) { |
| 5686 snippet = new CaptionSnippet.fromJson(_json["snippet"]); |
| 5687 } |
| 5688 } |
| 5689 |
| 5690 core.Map toJson() { |
| 5691 var _json = new core.Map(); |
| 5692 if (etag != null) { |
| 5693 _json["etag"] = etag; |
| 5694 } |
| 5695 if (id != null) { |
| 5696 _json["id"] = id; |
| 5697 } |
| 5698 if (kind != null) { |
| 5699 _json["kind"] = kind; |
| 5700 } |
| 5701 if (snippet != null) { |
| 5702 _json["snippet"] = (snippet).toJson(); |
| 5703 } |
| 5704 return _json; |
| 5705 } |
| 5706 } |
| 5707 |
| 5708 |
| 5709 class CaptionListResponse { |
| 5710 /** Etag of this resource. */ |
| 5711 core.String etag; |
| 5712 |
| 5713 /** Serialized EventId of the request which produced this response. */ |
| 5714 core.String eventId; |
| 5715 |
| 5716 /** A list of captions that match the request criteria. */ |
| 5717 core.List<Caption> items; |
| 5718 |
| 5719 /** |
| 5720 * Identifies what kind of resource this is. Value: the fixed string |
| 5721 * "youtube#captionListResponse". |
| 5722 */ |
| 5723 core.String kind; |
| 5724 |
| 5725 /** The visitorId identifies the visitor. */ |
| 5726 core.String visitorId; |
| 5727 |
| 5728 |
| 5729 CaptionListResponse(); |
| 5730 |
| 5731 CaptionListResponse.fromJson(core.Map _json) { |
| 5732 if (_json.containsKey("etag")) { |
| 5733 etag = _json["etag"]; |
| 5734 } |
| 5735 if (_json.containsKey("eventId")) { |
| 5736 eventId = _json["eventId"]; |
| 5737 } |
| 5738 if (_json.containsKey("items")) { |
| 5739 items = _json["items"].map((value) => new Caption.fromJson(value)).toList(
); |
| 5740 } |
| 5741 if (_json.containsKey("kind")) { |
| 5742 kind = _json["kind"]; |
| 5743 } |
| 5744 if (_json.containsKey("visitorId")) { |
| 5745 visitorId = _json["visitorId"]; |
| 5746 } |
| 5747 } |
| 5748 |
| 5749 core.Map toJson() { |
| 5750 var _json = new core.Map(); |
| 5751 if (etag != null) { |
| 5752 _json["etag"] = etag; |
| 5753 } |
| 5754 if (eventId != null) { |
| 5755 _json["eventId"] = eventId; |
| 5756 } |
| 5757 if (items != null) { |
| 5758 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 5759 } |
| 5760 if (kind != null) { |
| 5761 _json["kind"] = kind; |
| 5762 } |
| 5763 if (visitorId != null) { |
| 5764 _json["visitorId"] = visitorId; |
| 5765 } |
| 5766 return _json; |
| 5767 } |
| 5768 } |
| 5769 |
| 5770 |
| 5771 /** Basic details about a caption track, such as its language and name. */ |
| 5772 class CaptionSnippet { |
| 5773 /** |
| 5774 * The type of audio track associated with the caption track. |
| 5775 * Possible string values are: |
| 5776 * - "commentary" |
| 5777 * - "descriptive" |
| 5778 * - "primary" |
| 5779 * - "unknown" |
| 5780 */ |
| 5781 core.String audioTrackType; |
| 5782 |
| 5783 /** |
| 5784 * The reason that YouTube failed to process the caption track. This property |
| 5785 * is only present if the state property's value is failed. |
| 5786 * Possible string values are: |
| 5787 * - "processingFailed" |
| 5788 * - "unknownFormat" |
| 5789 * - "unsupportedFormat" |
| 5790 */ |
| 5791 core.String failureReason; |
| 5792 |
| 5793 /** |
| 5794 * Indicates whether YouTube synchronized the caption track to the audio track |
| 5795 * in the video. The value will be true if a sync was explicitly requested |
| 5796 * when the caption track was uploaded. For example, when calling the |
| 5797 * captions.insert or captions.update methods, you can set the sync parameter |
| 5798 * to true to instruct YouTube to sync the uploaded track to the video. If the |
| 5799 * value is false, YouTube uses the time codes in the uploaded caption track |
| 5800 * to determine when to display captions. |
| 5801 */ |
| 5802 core.bool isAutoSynced; |
| 5803 |
| 5804 /** |
| 5805 * Indicates whether the track contains closed captions for the deaf and hard |
| 5806 * of hearing. The default value is false. |
| 5807 */ |
| 5808 core.bool isCC; |
| 5809 |
| 5810 /** |
| 5811 * Indicates whether the caption track is a draft. If the value is true, then |
| 5812 * the track is not publicly visible. The default value is false. |
| 5813 */ |
| 5814 core.bool isDraft; |
| 5815 |
| 5816 /** |
| 5817 * Indicates whether caption track is formatted for "easy reader," meaning it |
| 5818 * is at a third-grade level for language learners. The default value is |
| 5819 * false. |
| 5820 */ |
| 5821 core.bool isEasyReader; |
| 5822 |
| 5823 /** |
| 5824 * Indicates whether the caption track uses large text for the |
| 5825 * vision-impaired. The default value is false. |
| 5826 */ |
| 5827 core.bool isLarge; |
| 5828 |
| 5829 /** |
| 5830 * The language of the caption track. The property value is a BCP-47 language |
| 5831 * tag. |
| 5832 */ |
| 5833 core.String language; |
| 5834 |
| 5835 /** |
| 5836 * The date and time when the caption track was last updated. The value is |
| 5837 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 5838 */ |
| 5839 core.DateTime lastUpdated; |
| 5840 |
| 5841 /** |
| 5842 * The name of the caption track. The name is intended to be visible to the |
| 5843 * user as an option during playback. |
| 5844 */ |
| 5845 core.String name; |
| 5846 |
| 5847 /** |
| 5848 * The caption track's status. |
| 5849 * Possible string values are: |
| 5850 * - "failed" |
| 5851 * - "serving" |
| 5852 * - "syncing" |
| 5853 */ |
| 5854 core.String status; |
| 5855 |
| 5856 /** |
| 5857 * The caption track's type. |
| 5858 * Possible string values are: |
| 5859 * - "ASR" |
| 5860 * - "forced" |
| 5861 * - "standard" |
| 5862 */ |
| 5863 core.String trackKind; |
| 5864 |
| 5865 /** |
| 5866 * The ID that YouTube uses to uniquely identify the video associated with the |
| 5867 * caption track. |
| 5868 */ |
| 5869 core.String videoId; |
| 5870 |
| 5871 |
| 5872 CaptionSnippet(); |
| 5873 |
| 5874 CaptionSnippet.fromJson(core.Map _json) { |
| 5875 if (_json.containsKey("audioTrackType")) { |
| 5876 audioTrackType = _json["audioTrackType"]; |
| 5877 } |
| 5878 if (_json.containsKey("failureReason")) { |
| 5879 failureReason = _json["failureReason"]; |
| 5880 } |
| 5881 if (_json.containsKey("isAutoSynced")) { |
| 5882 isAutoSynced = _json["isAutoSynced"]; |
| 5883 } |
| 5884 if (_json.containsKey("isCC")) { |
| 5885 isCC = _json["isCC"]; |
| 5886 } |
| 5887 if (_json.containsKey("isDraft")) { |
| 5888 isDraft = _json["isDraft"]; |
| 5889 } |
| 5890 if (_json.containsKey("isEasyReader")) { |
| 5891 isEasyReader = _json["isEasyReader"]; |
| 5892 } |
| 5893 if (_json.containsKey("isLarge")) { |
| 5894 isLarge = _json["isLarge"]; |
| 5895 } |
| 5896 if (_json.containsKey("language")) { |
| 5897 language = _json["language"]; |
| 5898 } |
| 5899 if (_json.containsKey("lastUpdated")) { |
| 5900 lastUpdated = core.DateTime.parse(_json["lastUpdated"]); |
| 5901 } |
| 5902 if (_json.containsKey("name")) { |
| 5903 name = _json["name"]; |
| 5904 } |
| 5905 if (_json.containsKey("status")) { |
| 5906 status = _json["status"]; |
| 5907 } |
| 5908 if (_json.containsKey("trackKind")) { |
| 5909 trackKind = _json["trackKind"]; |
| 5910 } |
| 5911 if (_json.containsKey("videoId")) { |
| 5912 videoId = _json["videoId"]; |
| 5913 } |
| 5914 } |
| 5915 |
| 5916 core.Map toJson() { |
| 5917 var _json = new core.Map(); |
| 5918 if (audioTrackType != null) { |
| 5919 _json["audioTrackType"] = audioTrackType; |
| 5920 } |
| 5921 if (failureReason != null) { |
| 5922 _json["failureReason"] = failureReason; |
| 5923 } |
| 5924 if (isAutoSynced != null) { |
| 5925 _json["isAutoSynced"] = isAutoSynced; |
| 5926 } |
| 5927 if (isCC != null) { |
| 5928 _json["isCC"] = isCC; |
| 5929 } |
| 5930 if (isDraft != null) { |
| 5931 _json["isDraft"] = isDraft; |
| 5932 } |
| 5933 if (isEasyReader != null) { |
| 5934 _json["isEasyReader"] = isEasyReader; |
| 5935 } |
| 5936 if (isLarge != null) { |
| 5937 _json["isLarge"] = isLarge; |
| 5938 } |
| 5939 if (language != null) { |
| 5940 _json["language"] = language; |
| 5941 } |
| 5942 if (lastUpdated != null) { |
| 5943 _json["lastUpdated"] = (lastUpdated).toIso8601String(); |
| 5944 } |
| 5945 if (name != null) { |
| 5946 _json["name"] = name; |
| 5947 } |
| 5948 if (status != null) { |
| 5949 _json["status"] = status; |
| 5950 } |
| 5951 if (trackKind != null) { |
| 5952 _json["trackKind"] = trackKind; |
| 5953 } |
| 5954 if (videoId != null) { |
| 5955 _json["videoId"] = videoId; |
| 5956 } |
| 5957 return _json; |
| 5958 } |
| 5959 } |
| 5960 |
| 5961 |
5236 /** Brief description of the live stream cdn settings. */ | 5962 /** Brief description of the live stream cdn settings. */ |
5237 class CdnSettings { | 5963 class CdnSettings { |
5238 /** The format of the video stream that you are sending to Youtube. */ | 5964 /** The format of the video stream that you are sending to Youtube. */ |
5239 core.String format; | 5965 core.String format; |
5240 | 5966 |
5241 /** | 5967 /** |
5242 * The ingestionInfo object contains information that YouTube provides that | 5968 * The ingestionInfo object contains information that YouTube provides that |
5243 * you need to transmit your RTMP or HTTP stream to YouTube. | 5969 * you need to transmit your RTMP or HTTP stream to YouTube. |
5244 */ | 5970 */ |
5245 IngestionInfo ingestionInfo; | 5971 IngestionInfo ingestionInfo; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5382 if (_json.containsKey("id")) { | 6108 if (_json.containsKey("id")) { |
5383 id = _json["id"]; | 6109 id = _json["id"]; |
5384 } | 6110 } |
5385 if (_json.containsKey("invideoPromotion")) { | 6111 if (_json.containsKey("invideoPromotion")) { |
5386 invideoPromotion = new InvideoPromotion.fromJson(_json["invideoPromotion"]
); | 6112 invideoPromotion = new InvideoPromotion.fromJson(_json["invideoPromotion"]
); |
5387 } | 6113 } |
5388 if (_json.containsKey("kind")) { | 6114 if (_json.containsKey("kind")) { |
5389 kind = _json["kind"]; | 6115 kind = _json["kind"]; |
5390 } | 6116 } |
5391 if (_json.containsKey("localizations")) { | 6117 if (_json.containsKey("localizations")) { |
5392 localizations = common_internal.mapMap(_json["localizations"], (item) => n
ew ChannelLocalization.fromJson(item)); | 6118 localizations = commons.mapMap(_json["localizations"], (item) => new Chann
elLocalization.fromJson(item)); |
5393 } | 6119 } |
5394 if (_json.containsKey("snippet")) { | 6120 if (_json.containsKey("snippet")) { |
5395 snippet = new ChannelSnippet.fromJson(_json["snippet"]); | 6121 snippet = new ChannelSnippet.fromJson(_json["snippet"]); |
5396 } | 6122 } |
5397 if (_json.containsKey("statistics")) { | 6123 if (_json.containsKey("statistics")) { |
5398 statistics = new ChannelStatistics.fromJson(_json["statistics"]); | 6124 statistics = new ChannelStatistics.fromJson(_json["statistics"]); |
5399 } | 6125 } |
5400 if (_json.containsKey("status")) { | 6126 if (_json.containsKey("status")) { |
5401 status = new ChannelStatus.fromJson(_json["status"]); | 6127 status = new ChannelStatus.fromJson(_json["status"]); |
5402 } | 6128 } |
(...skipping 25 matching lines...) Expand all Loading... |
5428 if (id != null) { | 6154 if (id != null) { |
5429 _json["id"] = id; | 6155 _json["id"] = id; |
5430 } | 6156 } |
5431 if (invideoPromotion != null) { | 6157 if (invideoPromotion != null) { |
5432 _json["invideoPromotion"] = (invideoPromotion).toJson(); | 6158 _json["invideoPromotion"] = (invideoPromotion).toJson(); |
5433 } | 6159 } |
5434 if (kind != null) { | 6160 if (kind != null) { |
5435 _json["kind"] = kind; | 6161 _json["kind"] = kind; |
5436 } | 6162 } |
5437 if (localizations != null) { | 6163 if (localizations != null) { |
5438 _json["localizations"] = common_internal.mapMap(localizations, (item) => (
item).toJson()); | 6164 _json["localizations"] = commons.mapMap(localizations, (item) => (item).to
Json()); |
5439 } | 6165 } |
5440 if (snippet != null) { | 6166 if (snippet != null) { |
5441 _json["snippet"] = (snippet).toJson(); | 6167 _json["snippet"] = (snippet).toJson(); |
5442 } | 6168 } |
5443 if (statistics != null) { | 6169 if (statistics != null) { |
5444 _json["statistics"] = (statistics).toJson(); | 6170 _json["statistics"] = (statistics).toJson(); |
5445 } | 6171 } |
5446 if (status != null) { | 6172 if (status != null) { |
5447 _json["status"] = (status).toJson(); | 6173 _json["status"] = (status).toJson(); |
5448 } | 6174 } |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5605 _json["image"] = (image).toJson(); | 6331 _json["image"] = (image).toJson(); |
5606 } | 6332 } |
5607 if (watch != null) { | 6333 if (watch != null) { |
5608 _json["watch"] = (watch).toJson(); | 6334 _json["watch"] = (watch).toJson(); |
5609 } | 6335 } |
5610 return _json; | 6336 return _json; |
5611 } | 6337 } |
5612 } | 6338 } |
5613 | 6339 |
5614 | 6340 |
5615 /** Not documented yet. */ | |
5616 class ChannelContentDetailsRelatedPlaylists { | 6341 class ChannelContentDetailsRelatedPlaylists { |
5617 /** | 6342 /** |
5618 * The ID of the playlist that contains the channel"s favorite videos. Use the | 6343 * The ID of the playlist that contains the channel"s favorite videos. Use the |
5619 * playlistItems.insert and playlistItems.delete to add or remove items from | 6344 * playlistItems.insert and playlistItems.delete to add or remove items from |
5620 * that list. | 6345 * that list. |
5621 */ | 6346 */ |
5622 core.String favorites; | 6347 core.String favorites; |
5623 | 6348 |
5624 /** | 6349 /** |
5625 * The ID of the playlist that contains the channel"s liked videos. Use the | 6350 * The ID of the playlist that contains the channel"s liked videos. Use the |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5693 | 6418 |
5694 | 6419 |
5695 /** Details about the content of a channel. */ | 6420 /** Details about the content of a channel. */ |
5696 class ChannelContentDetails { | 6421 class ChannelContentDetails { |
5697 /** | 6422 /** |
5698 * The googlePlusUserId object identifies the Google+ profile ID associated | 6423 * The googlePlusUserId object identifies the Google+ profile ID associated |
5699 * with this channel. | 6424 * with this channel. |
5700 */ | 6425 */ |
5701 core.String googlePlusUserId; | 6426 core.String googlePlusUserId; |
5702 | 6427 |
5703 /** Not documented yet. */ | |
5704 ChannelContentDetailsRelatedPlaylists relatedPlaylists; | 6428 ChannelContentDetailsRelatedPlaylists relatedPlaylists; |
5705 | 6429 |
5706 | 6430 |
5707 ChannelContentDetails(); | 6431 ChannelContentDetails(); |
5708 | 6432 |
5709 ChannelContentDetails.fromJson(core.Map _json) { | 6433 ChannelContentDetails.fromJson(core.Map _json) { |
5710 if (_json.containsKey("googlePlusUserId")) { | 6434 if (_json.containsKey("googlePlusUserId")) { |
5711 googlePlusUserId = _json["googlePlusUserId"]; | 6435 googlePlusUserId = _json["googlePlusUserId"]; |
5712 } | 6436 } |
5713 if (_json.containsKey("relatedPlaylists")) { | 6437 if (_json.containsKey("relatedPlaylists")) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5842 core.Map toJson() { | 6566 core.Map toJson() { |
5843 var _json = new core.Map(); | 6567 var _json = new core.Map(); |
5844 if (pings != null) { | 6568 if (pings != null) { |
5845 _json["pings"] = pings.map((value) => (value).toJson()).toList(); | 6569 _json["pings"] = pings.map((value) => (value).toJson()).toList(); |
5846 } | 6570 } |
5847 return _json; | 6571 return _json; |
5848 } | 6572 } |
5849 } | 6573 } |
5850 | 6574 |
5851 | 6575 |
5852 /** Not documented yet. */ | |
5853 class ChannelListResponse { | 6576 class ChannelListResponse { |
5854 /** Etag of this resource. */ | 6577 /** Etag of this resource. */ |
5855 core.String etag; | 6578 core.String etag; |
5856 | 6579 |
5857 /** Serialized EventId of the request which produced this response. */ | 6580 /** Serialized EventId of the request which produced this response. */ |
5858 core.String eventId; | 6581 core.String eventId; |
5859 | 6582 |
5860 /** A list of channels that match the request criteria. */ | 6583 /** A list of channels that match the request criteria. */ |
5861 core.List<Channel> items; | 6584 core.List<Channel> items; |
5862 | 6585 |
5863 /** | 6586 /** |
5864 * Identifies what kind of resource this is. Value: the fixed string | 6587 * Identifies what kind of resource this is. Value: the fixed string |
5865 * "youtube#channelListResponse". | 6588 * "youtube#channelListResponse". |
5866 */ | 6589 */ |
5867 core.String kind; | 6590 core.String kind; |
5868 | 6591 |
5869 /** | 6592 /** |
5870 * The token that can be used as the value of the pageToken parameter to | 6593 * The token that can be used as the value of the pageToken parameter to |
5871 * retrieve the next page in the result set. | 6594 * retrieve the next page in the result set. |
5872 */ | 6595 */ |
5873 core.String nextPageToken; | 6596 core.String nextPageToken; |
5874 | 6597 |
5875 /** Not documented yet. */ | |
5876 PageInfo pageInfo; | 6598 PageInfo pageInfo; |
5877 | 6599 |
5878 /** | 6600 /** |
5879 * The token that can be used as the value of the pageToken parameter to | 6601 * The token that can be used as the value of the pageToken parameter to |
5880 * retrieve the previous page in the result set. | 6602 * retrieve the previous page in the result set. |
5881 */ | 6603 */ |
5882 core.String prevPageToken; | 6604 core.String prevPageToken; |
5883 | 6605 |
5884 /** Not documented yet. */ | |
5885 TokenPagination tokenPagination; | 6606 TokenPagination tokenPagination; |
5886 | 6607 |
5887 /** The visitorId identifies the visitor. */ | 6608 /** The visitorId identifies the visitor. */ |
5888 core.String visitorId; | 6609 core.String visitorId; |
5889 | 6610 |
5890 | 6611 |
5891 ChannelListResponse(); | 6612 ChannelListResponse(); |
5892 | 6613 |
5893 ChannelListResponse.fromJson(core.Map _json) { | 6614 ChannelListResponse.fromJson(core.Map _json) { |
5894 if (_json.containsKey("etag")) { | 6615 if (_json.containsKey("etag")) { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5980 _json["description"] = description; | 6701 _json["description"] = description; |
5981 } | 6702 } |
5982 if (title != null) { | 6703 if (title != null) { |
5983 _json["title"] = title; | 6704 _json["title"] = title; |
5984 } | 6705 } |
5985 return _json; | 6706 return _json; |
5986 } | 6707 } |
5987 } | 6708 } |
5988 | 6709 |
5989 | 6710 |
5990 /** Not documented yet. */ | |
5991 class ChannelSection { | 6711 class ChannelSection { |
5992 /** | 6712 /** |
5993 * The contentDetails object contains details about the channel section | 6713 * The contentDetails object contains details about the channel section |
5994 * content, such as a list of playlists or channels featured in the section. | 6714 * content, such as a list of playlists or channels featured in the section. |
5995 */ | 6715 */ |
5996 ChannelSectionContentDetails contentDetails; | 6716 ChannelSectionContentDetails contentDetails; |
5997 | 6717 |
5998 /** Etag of this resource. */ | 6718 /** Etag of this resource. */ |
5999 core.String etag; | 6719 core.String etag; |
6000 | 6720 |
(...skipping 25 matching lines...) Expand all Loading... |
6026 if (_json.containsKey("etag")) { | 6746 if (_json.containsKey("etag")) { |
6027 etag = _json["etag"]; | 6747 etag = _json["etag"]; |
6028 } | 6748 } |
6029 if (_json.containsKey("id")) { | 6749 if (_json.containsKey("id")) { |
6030 id = _json["id"]; | 6750 id = _json["id"]; |
6031 } | 6751 } |
6032 if (_json.containsKey("kind")) { | 6752 if (_json.containsKey("kind")) { |
6033 kind = _json["kind"]; | 6753 kind = _json["kind"]; |
6034 } | 6754 } |
6035 if (_json.containsKey("localizations")) { | 6755 if (_json.containsKey("localizations")) { |
6036 localizations = common_internal.mapMap(_json["localizations"], (item) => n
ew ChannelSectionLocalization.fromJson(item)); | 6756 localizations = commons.mapMap(_json["localizations"], (item) => new Chann
elSectionLocalization.fromJson(item)); |
6037 } | 6757 } |
6038 if (_json.containsKey("snippet")) { | 6758 if (_json.containsKey("snippet")) { |
6039 snippet = new ChannelSectionSnippet.fromJson(_json["snippet"]); | 6759 snippet = new ChannelSectionSnippet.fromJson(_json["snippet"]); |
6040 } | 6760 } |
6041 } | 6761 } |
6042 | 6762 |
6043 core.Map toJson() { | 6763 core.Map toJson() { |
6044 var _json = new core.Map(); | 6764 var _json = new core.Map(); |
6045 if (contentDetails != null) { | 6765 if (contentDetails != null) { |
6046 _json["contentDetails"] = (contentDetails).toJson(); | 6766 _json["contentDetails"] = (contentDetails).toJson(); |
6047 } | 6767 } |
6048 if (etag != null) { | 6768 if (etag != null) { |
6049 _json["etag"] = etag; | 6769 _json["etag"] = etag; |
6050 } | 6770 } |
6051 if (id != null) { | 6771 if (id != null) { |
6052 _json["id"] = id; | 6772 _json["id"] = id; |
6053 } | 6773 } |
6054 if (kind != null) { | 6774 if (kind != null) { |
6055 _json["kind"] = kind; | 6775 _json["kind"] = kind; |
6056 } | 6776 } |
6057 if (localizations != null) { | 6777 if (localizations != null) { |
6058 _json["localizations"] = common_internal.mapMap(localizations, (item) => (
item).toJson()); | 6778 _json["localizations"] = commons.mapMap(localizations, (item) => (item).to
Json()); |
6059 } | 6779 } |
6060 if (snippet != null) { | 6780 if (snippet != null) { |
6061 _json["snippet"] = (snippet).toJson(); | 6781 _json["snippet"] = (snippet).toJson(); |
6062 } | 6782 } |
6063 return _json; | 6783 return _json; |
6064 } | 6784 } |
6065 } | 6785 } |
6066 | 6786 |
6067 | 6787 |
6068 /** Details about a channelsection, including playlists and channels. */ | 6788 /** Details about a channelsection, including playlists and channels. */ |
(...skipping 25 matching lines...) Expand all Loading... |
6094 _json["channels"] = channels; | 6814 _json["channels"] = channels; |
6095 } | 6815 } |
6096 if (playlists != null) { | 6816 if (playlists != null) { |
6097 _json["playlists"] = playlists; | 6817 _json["playlists"] = playlists; |
6098 } | 6818 } |
6099 return _json; | 6819 return _json; |
6100 } | 6820 } |
6101 } | 6821 } |
6102 | 6822 |
6103 | 6823 |
6104 /** Not documented yet. */ | |
6105 class ChannelSectionListResponse { | 6824 class ChannelSectionListResponse { |
6106 /** Etag of this resource. */ | 6825 /** Etag of this resource. */ |
6107 core.String etag; | 6826 core.String etag; |
6108 | 6827 |
6109 /** Serialized EventId of the request which produced this response. */ | 6828 /** Serialized EventId of the request which produced this response. */ |
6110 core.String eventId; | 6829 core.String eventId; |
6111 | 6830 |
6112 /** A list of ChannelSections that match the request criteria. */ | 6831 /** A list of ChannelSections that match the request criteria. */ |
6113 core.List<ChannelSection> items; | 6832 core.List<ChannelSection> items; |
6114 | 6833 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6294 if (type != null) { | 7013 if (type != null) { |
6295 _json["type"] = type; | 7014 _json["type"] = type; |
6296 } | 7015 } |
6297 return _json; | 7016 return _json; |
6298 } | 7017 } |
6299 } | 7018 } |
6300 | 7019 |
6301 | 7020 |
6302 /** Branding properties for the channel view. */ | 7021 /** Branding properties for the channel view. */ |
6303 class ChannelSettings { | 7022 class ChannelSettings { |
6304 /** Not documented yet. */ | |
6305 core.String defaultLanguage; | 7023 core.String defaultLanguage; |
6306 | 7024 |
6307 /** Which content tab users should see when viewing the channel. */ | 7025 /** Which content tab users should see when viewing the channel. */ |
6308 core.String defaultTab; | 7026 core.String defaultTab; |
6309 | 7027 |
6310 /** Specifies the channel description. */ | 7028 /** Specifies the channel description. */ |
6311 core.String description; | 7029 core.String description; |
6312 | 7030 |
6313 /** Title for the featured channels tab. */ | 7031 /** Title for the featured channels tab. */ |
6314 core.String featuredChannelsTitle; | 7032 core.String featuredChannelsTitle; |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6901 * - "djctq10" | 7619 * - "djctq10" |
6902 * - "djctq12" | 7620 * - "djctq12" |
6903 * - "djctq14" | 7621 * - "djctq14" |
6904 * - "djctq16" | 7622 * - "djctq16" |
6905 * - "djctq18" | 7623 * - "djctq18" |
6906 * - "djctqL" | 7624 * - "djctqL" |
6907 * - "djctqUnrated" | 7625 * - "djctqUnrated" |
6908 */ | 7626 */ |
6909 core.String djctqRating; | 7627 core.String djctqRating; |
6910 | 7628 |
6911 /** Not documented yet. */ | |
6912 core.List<core.String> djctqRatingReasons; | 7629 core.List<core.String> djctqRatingReasons; |
6913 | 7630 |
6914 /** | 7631 /** |
6915 * Rating system for Estonia - Estonia Rating System | 7632 * Rating system for Estonia - Estonia Rating System |
6916 * Possible string values are: | 7633 * Possible string values are: |
6917 * - "eefilmK12" | 7634 * - "eefilmK12" |
6918 * - "eefilmK14" | 7635 * - "eefilmK14" |
6919 * - "eefilmK16" | 7636 * - "eefilmK16" |
6920 * - "eefilmK6" | 7637 * - "eefilmK6" |
6921 * - "eefilmL" | 7638 * - "eefilmL" |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7956 _json["kind"] = kind; | 8673 _json["kind"] = kind; |
7957 } | 8674 } |
7958 if (snippet != null) { | 8675 if (snippet != null) { |
7959 _json["snippet"] = (snippet).toJson(); | 8676 _json["snippet"] = (snippet).toJson(); |
7960 } | 8677 } |
7961 return _json; | 8678 return _json; |
7962 } | 8679 } |
7963 } | 8680 } |
7964 | 8681 |
7965 | 8682 |
7966 /** Not documented yet. */ | |
7967 class GuideCategoryListResponse { | 8683 class GuideCategoryListResponse { |
7968 /** Etag of this resource. */ | 8684 /** Etag of this resource. */ |
7969 core.String etag; | 8685 core.String etag; |
7970 | 8686 |
7971 /** Serialized EventId of the request which produced this response. */ | 8687 /** Serialized EventId of the request which produced this response. */ |
7972 core.String eventId; | 8688 core.String eventId; |
7973 | 8689 |
7974 /** | 8690 /** |
7975 * A list of categories that can be associated with YouTube channels. In this | 8691 * A list of categories that can be associated with YouTube channels. In this |
7976 * map, the category ID is the map key, and its value is the corresponding | 8692 * map, the category ID is the map key, and its value is the corresponding |
7977 * guideCategory resource. | 8693 * guideCategory resource. |
7978 */ | 8694 */ |
7979 core.List<GuideCategory> items; | 8695 core.List<GuideCategory> items; |
7980 | 8696 |
7981 /** | 8697 /** |
7982 * Identifies what kind of resource this is. Value: the fixed string | 8698 * Identifies what kind of resource this is. Value: the fixed string |
7983 * "youtube#guideCategoryListResponse". | 8699 * "youtube#guideCategoryListResponse". |
7984 */ | 8700 */ |
7985 core.String kind; | 8701 core.String kind; |
7986 | 8702 |
7987 /** | 8703 /** |
7988 * The token that can be used as the value of the pageToken parameter to | 8704 * The token that can be used as the value of the pageToken parameter to |
7989 * retrieve the next page in the result set. | 8705 * retrieve the next page in the result set. |
7990 */ | 8706 */ |
7991 core.String nextPageToken; | 8707 core.String nextPageToken; |
7992 | 8708 |
7993 /** Not documented yet. */ | |
7994 PageInfo pageInfo; | 8709 PageInfo pageInfo; |
7995 | 8710 |
7996 /** | 8711 /** |
7997 * The token that can be used as the value of the pageToken parameter to | 8712 * The token that can be used as the value of the pageToken parameter to |
7998 * retrieve the previous page in the result set. | 8713 * retrieve the previous page in the result set. |
7999 */ | 8714 */ |
8000 core.String prevPageToken; | 8715 core.String prevPageToken; |
8001 | 8716 |
8002 /** Not documented yet. */ | |
8003 TokenPagination tokenPagination; | 8717 TokenPagination tokenPagination; |
8004 | 8718 |
8005 /** The visitorId identifies the visitor. */ | 8719 /** The visitorId identifies the visitor. */ |
8006 core.String visitorId; | 8720 core.String visitorId; |
8007 | 8721 |
8008 | 8722 |
8009 GuideCategoryListResponse(); | 8723 GuideCategoryListResponse(); |
8010 | 8724 |
8011 GuideCategoryListResponse.fromJson(core.Map _json) { | 8725 GuideCategoryListResponse.fromJson(core.Map _json) { |
8012 if (_json.containsKey("etag")) { | 8726 if (_json.containsKey("etag")) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8067 if (visitorId != null) { | 8781 if (visitorId != null) { |
8068 _json["visitorId"] = visitorId; | 8782 _json["visitorId"] = visitorId; |
8069 } | 8783 } |
8070 return _json; | 8784 return _json; |
8071 } | 8785 } |
8072 } | 8786 } |
8073 | 8787 |
8074 | 8788 |
8075 /** Basic details about a guide category. */ | 8789 /** Basic details about a guide category. */ |
8076 class GuideCategorySnippet { | 8790 class GuideCategorySnippet { |
8077 /** Not documented yet. */ | |
8078 core.String channelId; | 8791 core.String channelId; |
8079 | 8792 |
8080 /** Description of the guide category. */ | 8793 /** Description of the guide category. */ |
8081 core.String title; | 8794 core.String title; |
8082 | 8795 |
8083 | 8796 |
8084 GuideCategorySnippet(); | 8797 GuideCategorySnippet(); |
8085 | 8798 |
8086 GuideCategorySnippet.fromJson(core.Map _json) { | 8799 GuideCategorySnippet.fromJson(core.Map _json) { |
8087 if (_json.containsKey("channelId")) { | 8800 if (_json.containsKey("channelId")) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8158 _json["kind"] = kind; | 8871 _json["kind"] = kind; |
8159 } | 8872 } |
8160 if (snippet != null) { | 8873 if (snippet != null) { |
8161 _json["snippet"] = (snippet).toJson(); | 8874 _json["snippet"] = (snippet).toJson(); |
8162 } | 8875 } |
8163 return _json; | 8876 return _json; |
8164 } | 8877 } |
8165 } | 8878 } |
8166 | 8879 |
8167 | 8880 |
8168 /** Not documented yet. */ | |
8169 class I18nLanguageListResponse { | 8881 class I18nLanguageListResponse { |
8170 /** Etag of this resource. */ | 8882 /** Etag of this resource. */ |
8171 core.String etag; | 8883 core.String etag; |
8172 | 8884 |
8173 /** Serialized EventId of the request which produced this response. */ | 8885 /** Serialized EventId of the request which produced this response. */ |
8174 core.String eventId; | 8886 core.String eventId; |
8175 | 8887 |
8176 /** | 8888 /** |
8177 * A list of supported i18n languages. In this map, the i18n language ID is | 8889 * A list of supported i18n languages. In this map, the i18n language ID is |
8178 * the map key, and its value is the corresponding i18nLanguage resource. | 8890 * the map key, and its value is the corresponding i18nLanguage resource. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8317 _json["kind"] = kind; | 9029 _json["kind"] = kind; |
8318 } | 9030 } |
8319 if (snippet != null) { | 9031 if (snippet != null) { |
8320 _json["snippet"] = (snippet).toJson(); | 9032 _json["snippet"] = (snippet).toJson(); |
8321 } | 9033 } |
8322 return _json; | 9034 return _json; |
8323 } | 9035 } |
8324 } | 9036 } |
8325 | 9037 |
8326 | 9038 |
8327 /** Not documented yet. */ | |
8328 class I18nRegionListResponse { | 9039 class I18nRegionListResponse { |
8329 /** Etag of this resource. */ | 9040 /** Etag of this resource. */ |
8330 core.String etag; | 9041 core.String etag; |
8331 | 9042 |
8332 /** Serialized EventId of the request which produced this response. */ | 9043 /** Serialized EventId of the request which produced this response. */ |
8333 core.String eventId; | 9044 core.String eventId; |
8334 | 9045 |
8335 /** | 9046 /** |
8336 * A list of regions where YouTube is available. In this map, the i18n region | 9047 * A list of regions where YouTube is available. In this map, the i18n region |
8337 * ID is the map key, and its value is the corresponding i18nRegion resource. | 9048 * ID is the map key, and its value is the corresponding i18nRegion resource. |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8706 _json["ingestionAddress"] = ingestionAddress; | 9417 _json["ingestionAddress"] = ingestionAddress; |
8707 } | 9418 } |
8708 if (streamName != null) { | 9419 if (streamName != null) { |
8709 _json["streamName"] = streamName; | 9420 _json["streamName"] = streamName; |
8710 } | 9421 } |
8711 return _json; | 9422 return _json; |
8712 } | 9423 } |
8713 } | 9424 } |
8714 | 9425 |
8715 | 9426 |
8716 /** Not documented yet. */ | |
8717 class InvideoBranding { | 9427 class InvideoBranding { |
8718 /** Not documented yet. */ | |
8719 core.String imageBytes; | 9428 core.String imageBytes; |
8720 | 9429 |
8721 core.List<core.int> get imageBytesAsBytes { | 9430 core.List<core.int> get imageBytesAsBytes { |
8722 return crypto.CryptoUtils.base64StringToBytes(imageBytes); | 9431 return crypto.CryptoUtils.base64StringToBytes(imageBytes); |
8723 } | 9432 } |
8724 | 9433 |
8725 void set imageBytesAsBytes(core.List<core.int> _bytes) { | 9434 void set imageBytesAsBytes(core.List<core.int> _bytes) { |
8726 imageBytes = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 9435 imageBytes = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
8727 } | 9436 } |
8728 | 9437 |
8729 /** Not documented yet. */ | |
8730 core.String imageUrl; | 9438 core.String imageUrl; |
8731 | 9439 |
8732 /** Not documented yet. */ | |
8733 InvideoPosition position; | 9440 InvideoPosition position; |
8734 | 9441 |
8735 /** Not documented yet. */ | |
8736 core.String targetChannelId; | 9442 core.String targetChannelId; |
8737 | 9443 |
8738 /** Not documented yet. */ | |
8739 InvideoTiming timing; | 9444 InvideoTiming timing; |
8740 | 9445 |
8741 | 9446 |
8742 InvideoBranding(); | 9447 InvideoBranding(); |
8743 | 9448 |
8744 InvideoBranding.fromJson(core.Map _json) { | 9449 InvideoBranding.fromJson(core.Map _json) { |
8745 if (_json.containsKey("imageBytes")) { | 9450 if (_json.containsKey("imageBytes")) { |
8746 imageBytes = _json["imageBytes"]; | 9451 imageBytes = _json["imageBytes"]; |
8747 } | 9452 } |
8748 if (_json.containsKey("imageUrl")) { | 9453 if (_json.containsKey("imageUrl")) { |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8944 _json["offsetMs"] = offsetMs; | 9649 _json["offsetMs"] = offsetMs; |
8945 } | 9650 } |
8946 if (type != null) { | 9651 if (type != null) { |
8947 _json["type"] = type; | 9652 _json["type"] = type; |
8948 } | 9653 } |
8949 return _json; | 9654 return _json; |
8950 } | 9655 } |
8951 } | 9656 } |
8952 | 9657 |
8953 | 9658 |
8954 /** Not documented yet. */ | |
8955 class LanguageTag { | 9659 class LanguageTag { |
8956 /** Not documented yet. */ | |
8957 core.String value; | 9660 core.String value; |
8958 | 9661 |
8959 | 9662 |
8960 LanguageTag(); | 9663 LanguageTag(); |
8961 | 9664 |
8962 LanguageTag.fromJson(core.Map _json) { | 9665 LanguageTag.fromJson(core.Map _json) { |
8963 if (_json.containsKey("value")) { | 9666 if (_json.containsKey("value")) { |
8964 value = _json["value"]; | 9667 value = _json["value"]; |
8965 } | 9668 } |
8966 } | 9669 } |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9182 _json["recordFromStart"] = recordFromStart; | 9885 _json["recordFromStart"] = recordFromStart; |
9183 } | 9886 } |
9184 if (startWithSlate != null) { | 9887 if (startWithSlate != null) { |
9185 _json["startWithSlate"] = startWithSlate; | 9888 _json["startWithSlate"] = startWithSlate; |
9186 } | 9889 } |
9187 return _json; | 9890 return _json; |
9188 } | 9891 } |
9189 } | 9892 } |
9190 | 9893 |
9191 | 9894 |
9192 /** Not documented yet. */ | |
9193 class LiveBroadcastListResponse { | 9895 class LiveBroadcastListResponse { |
9194 /** Etag of this resource. */ | 9896 /** Etag of this resource. */ |
9195 core.String etag; | 9897 core.String etag; |
9196 | 9898 |
9197 /** Serialized EventId of the request which produced this response. */ | 9899 /** Serialized EventId of the request which produced this response. */ |
9198 core.String eventId; | 9900 core.String eventId; |
9199 | 9901 |
9200 /** A list of broadcasts that match the request criteria. */ | 9902 /** A list of broadcasts that match the request criteria. */ |
9201 core.List<LiveBroadcast> items; | 9903 core.List<LiveBroadcast> items; |
9202 | 9904 |
9203 /** | 9905 /** |
9204 * Identifies what kind of resource this is. Value: the fixed string | 9906 * Identifies what kind of resource this is. Value: the fixed string |
9205 * "youtube#liveBroadcastListResponse". | 9907 * "youtube#liveBroadcastListResponse". |
9206 */ | 9908 */ |
9207 core.String kind; | 9909 core.String kind; |
9208 | 9910 |
9209 /** | 9911 /** |
9210 * The token that can be used as the value of the pageToken parameter to | 9912 * The token that can be used as the value of the pageToken parameter to |
9211 * retrieve the next page in the result set. | 9913 * retrieve the next page in the result set. |
9212 */ | 9914 */ |
9213 core.String nextPageToken; | 9915 core.String nextPageToken; |
9214 | 9916 |
9215 /** Not documented yet. */ | |
9216 PageInfo pageInfo; | 9917 PageInfo pageInfo; |
9217 | 9918 |
9218 /** | 9919 /** |
9219 * The token that can be used as the value of the pageToken parameter to | 9920 * The token that can be used as the value of the pageToken parameter to |
9220 * retrieve the previous page in the result set. | 9921 * retrieve the previous page in the result set. |
9221 */ | 9922 */ |
9222 core.String prevPageToken; | 9923 core.String prevPageToken; |
9223 | 9924 |
9224 /** Not documented yet. */ | |
9225 TokenPagination tokenPagination; | 9925 TokenPagination tokenPagination; |
9226 | 9926 |
9227 /** The visitorId identifies the visitor. */ | 9927 /** The visitorId identifies the visitor. */ |
9228 core.String visitorId; | 9928 core.String visitorId; |
9229 | 9929 |
9230 | 9930 |
9231 LiveBroadcastListResponse(); | 9931 LiveBroadcastListResponse(); |
9232 | 9932 |
9233 LiveBroadcastListResponse.fromJson(core.Map _json) { | 9933 LiveBroadcastListResponse.fromJson(core.Map _json) { |
9234 if (_json.containsKey("etag")) { | 9934 if (_json.containsKey("etag")) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9287 _json["tokenPagination"] = (tokenPagination).toJson(); | 9987 _json["tokenPagination"] = (tokenPagination).toJson(); |
9288 } | 9988 } |
9289 if (visitorId != null) { | 9989 if (visitorId != null) { |
9290 _json["visitorId"] = visitorId; | 9990 _json["visitorId"] = visitorId; |
9291 } | 9991 } |
9292 return _json; | 9992 return _json; |
9293 } | 9993 } |
9294 } | 9994 } |
9295 | 9995 |
9296 | 9996 |
9297 /** Not documented yet. */ | |
9298 class LiveBroadcastSnippet { | 9997 class LiveBroadcastSnippet { |
9299 /** | 9998 /** |
9300 * The date and time that the broadcast actually ended. This information is | 9999 * The date and time that the broadcast actually ended. This information is |
9301 * only available once the broadcast's state is complete. The value is | 10000 * only available once the broadcast's state is complete. The value is |
9302 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 10001 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
9303 */ | 10002 */ |
9304 core.DateTime actualEndTime; | 10003 core.DateTime actualEndTime; |
9305 | 10004 |
9306 /** | 10005 /** |
9307 * The date and time that the broadcast actually started. This information is | 10006 * The date and time that the broadcast actually started. This information is |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9416 _json["thumbnails"] = (thumbnails).toJson(); | 10115 _json["thumbnails"] = (thumbnails).toJson(); |
9417 } | 10116 } |
9418 if (title != null) { | 10117 if (title != null) { |
9419 _json["title"] = title; | 10118 _json["title"] = title; |
9420 } | 10119 } |
9421 return _json; | 10120 return _json; |
9422 } | 10121 } |
9423 } | 10122 } |
9424 | 10123 |
9425 | 10124 |
9426 /** Not documented yet. */ | |
9427 class LiveBroadcastStatus { | 10125 class LiveBroadcastStatus { |
9428 /** | 10126 /** |
9429 * The broadcast's status. The status can be updated using the API's | 10127 * The broadcast's status. The status can be updated using the API's |
9430 * liveBroadcasts.transition method. | 10128 * liveBroadcasts.transition method. |
9431 * Possible string values are: | 10129 * Possible string values are: |
9432 * - "abandoned" | 10130 * - "abandoned" |
9433 * - "complete" | 10131 * - "complete" |
9434 * - "completeStarting" | 10132 * - "completeStarting" |
9435 * - "created" | 10133 * - "created" |
9436 * - "live" | 10134 * - "live" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9644 _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; | 10342 _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; |
9645 } | 10343 } |
9646 if (isReusable != null) { | 10344 if (isReusable != null) { |
9647 _json["isReusable"] = isReusable; | 10345 _json["isReusable"] = isReusable; |
9648 } | 10346 } |
9649 return _json; | 10347 return _json; |
9650 } | 10348 } |
9651 } | 10349 } |
9652 | 10350 |
9653 | 10351 |
9654 /** Not documented yet. */ | |
9655 class LiveStreamListResponse { | 10352 class LiveStreamListResponse { |
9656 /** Etag of this resource. */ | 10353 /** Etag of this resource. */ |
9657 core.String etag; | 10354 core.String etag; |
9658 | 10355 |
9659 /** Serialized EventId of the request which produced this response. */ | 10356 /** Serialized EventId of the request which produced this response. */ |
9660 core.String eventId; | 10357 core.String eventId; |
9661 | 10358 |
9662 /** A list of live streams that match the request criteria. */ | 10359 /** A list of live streams that match the request criteria. */ |
9663 core.List<LiveStream> items; | 10360 core.List<LiveStream> items; |
9664 | 10361 |
9665 /** | 10362 /** |
9666 * Identifies what kind of resource this is. Value: the fixed string | 10363 * Identifies what kind of resource this is. Value: the fixed string |
9667 * "youtube#liveStreamListResponse". | 10364 * "youtube#liveStreamListResponse". |
9668 */ | 10365 */ |
9669 core.String kind; | 10366 core.String kind; |
9670 | 10367 |
9671 /** | 10368 /** |
9672 * The token that can be used as the value of the pageToken parameter to | 10369 * The token that can be used as the value of the pageToken parameter to |
9673 * retrieve the next page in the result set. | 10370 * retrieve the next page in the result set. |
9674 */ | 10371 */ |
9675 core.String nextPageToken; | 10372 core.String nextPageToken; |
9676 | 10373 |
9677 /** Not documented yet. */ | |
9678 PageInfo pageInfo; | 10374 PageInfo pageInfo; |
9679 | 10375 |
9680 /** | 10376 /** |
9681 * The token that can be used as the value of the pageToken parameter to | 10377 * The token that can be used as the value of the pageToken parameter to |
9682 * retrieve the previous page in the result set. | 10378 * retrieve the previous page in the result set. |
9683 */ | 10379 */ |
9684 core.String prevPageToken; | 10380 core.String prevPageToken; |
9685 | 10381 |
9686 /** Not documented yet. */ | |
9687 TokenPagination tokenPagination; | 10382 TokenPagination tokenPagination; |
9688 | 10383 |
9689 /** The visitorId identifies the visitor. */ | 10384 /** The visitorId identifies the visitor. */ |
9690 core.String visitorId; | 10385 core.String visitorId; |
9691 | 10386 |
9692 | 10387 |
9693 LiveStreamListResponse(); | 10388 LiveStreamListResponse(); |
9694 | 10389 |
9695 LiveStreamListResponse.fromJson(core.Map _json) { | 10390 LiveStreamListResponse.fromJson(core.Map _json) { |
9696 if (_json.containsKey("etag")) { | 10391 if (_json.containsKey("etag")) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9749 _json["tokenPagination"] = (tokenPagination).toJson(); | 10444 _json["tokenPagination"] = (tokenPagination).toJson(); |
9750 } | 10445 } |
9751 if (visitorId != null) { | 10446 if (visitorId != null) { |
9752 _json["visitorId"] = visitorId; | 10447 _json["visitorId"] = visitorId; |
9753 } | 10448 } |
9754 return _json; | 10449 return _json; |
9755 } | 10450 } |
9756 } | 10451 } |
9757 | 10452 |
9758 | 10453 |
9759 /** Not documented yet. */ | |
9760 class LiveStreamSnippet { | 10454 class LiveStreamSnippet { |
9761 /** | 10455 /** |
9762 * The ID that YouTube uses to uniquely identify the channel that is | 10456 * The ID that YouTube uses to uniquely identify the channel that is |
9763 * transmitting the stream. | 10457 * transmitting the stream. |
9764 */ | 10458 */ |
9765 core.String channelId; | 10459 core.String channelId; |
9766 | 10460 |
9767 /** | 10461 /** |
9768 * The stream's description. The value cannot be longer than 10000 characters. | 10462 * The stream's description. The value cannot be longer than 10000 characters. |
9769 */ | 10463 */ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9813 _json["title"] = title; | 10507 _json["title"] = title; |
9814 } | 10508 } |
9815 return _json; | 10509 return _json; |
9816 } | 10510 } |
9817 } | 10511 } |
9818 | 10512 |
9819 | 10513 |
9820 /** Brief description of the live stream status. */ | 10514 /** Brief description of the live stream status. */ |
9821 class LiveStreamStatus { | 10515 class LiveStreamStatus { |
9822 /** | 10516 /** |
9823 * Not documented yet. | 10517 * |
9824 * Possible string values are: | 10518 * Possible string values are: |
9825 * - "active" | 10519 * - "active" |
9826 * - "created" | 10520 * - "created" |
9827 * - "error" | 10521 * - "error" |
9828 * - "inactive" | 10522 * - "inactive" |
9829 * - "ready" | 10523 * - "ready" |
9830 */ | 10524 */ |
9831 core.String streamStatus; | 10525 core.String streamStatus; |
9832 | 10526 |
9833 | 10527 |
9834 LiveStreamStatus(); | 10528 LiveStreamStatus(); |
9835 | 10529 |
9836 LiveStreamStatus.fromJson(core.Map _json) { | 10530 LiveStreamStatus.fromJson(core.Map _json) { |
9837 if (_json.containsKey("streamStatus")) { | 10531 if (_json.containsKey("streamStatus")) { |
9838 streamStatus = _json["streamStatus"]; | 10532 streamStatus = _json["streamStatus"]; |
9839 } | 10533 } |
9840 } | 10534 } |
9841 | 10535 |
9842 core.Map toJson() { | 10536 core.Map toJson() { |
9843 var _json = new core.Map(); | 10537 var _json = new core.Map(); |
9844 if (streamStatus != null) { | 10538 if (streamStatus != null) { |
9845 _json["streamStatus"] = streamStatus; | 10539 _json["streamStatus"] = streamStatus; |
9846 } | 10540 } |
9847 return _json; | 10541 return _json; |
9848 } | 10542 } |
9849 } | 10543 } |
9850 | 10544 |
9851 | 10545 |
9852 /** Not documented yet. */ | |
9853 class LocalizedProperty { | 10546 class LocalizedProperty { |
9854 /** Not documented yet. */ | |
9855 core.String default_; | 10547 core.String default_; |
9856 | 10548 |
9857 /** The language of the default property. */ | 10549 /** The language of the default property. */ |
9858 LanguageTag defaultLanguage; | 10550 LanguageTag defaultLanguage; |
9859 | 10551 |
9860 /** Not documented yet. */ | |
9861 core.List<LocalizedString> localized; | 10552 core.List<LocalizedString> localized; |
9862 | 10553 |
9863 | 10554 |
9864 LocalizedProperty(); | 10555 LocalizedProperty(); |
9865 | 10556 |
9866 LocalizedProperty.fromJson(core.Map _json) { | 10557 LocalizedProperty.fromJson(core.Map _json) { |
9867 if (_json.containsKey("default")) { | 10558 if (_json.containsKey("default")) { |
9868 default_ = _json["default"]; | 10559 default_ = _json["default"]; |
9869 } | 10560 } |
9870 if (_json.containsKey("defaultLanguage")) { | 10561 if (_json.containsKey("defaultLanguage")) { |
(...skipping 13 matching lines...) Expand all Loading... |
9884 _json["defaultLanguage"] = (defaultLanguage).toJson(); | 10575 _json["defaultLanguage"] = (defaultLanguage).toJson(); |
9885 } | 10576 } |
9886 if (localized != null) { | 10577 if (localized != null) { |
9887 _json["localized"] = localized.map((value) => (value).toJson()).toList(); | 10578 _json["localized"] = localized.map((value) => (value).toJson()).toList(); |
9888 } | 10579 } |
9889 return _json; | 10580 return _json; |
9890 } | 10581 } |
9891 } | 10582 } |
9892 | 10583 |
9893 | 10584 |
9894 /** Not documented yet. */ | |
9895 class LocalizedString { | 10585 class LocalizedString { |
9896 /** Not documented yet. */ | |
9897 core.String language; | 10586 core.String language; |
9898 | 10587 |
9899 /** Not documented yet. */ | |
9900 core.String value; | 10588 core.String value; |
9901 | 10589 |
9902 | 10590 |
9903 LocalizedString(); | 10591 LocalizedString(); |
9904 | 10592 |
9905 LocalizedString.fromJson(core.Map _json) { | 10593 LocalizedString.fromJson(core.Map _json) { |
9906 if (_json.containsKey("language")) { | 10594 if (_json.containsKey("language")) { |
9907 language = _json["language"]; | 10595 language = _json["language"]; |
9908 } | 10596 } |
9909 if (_json.containsKey("value")) { | 10597 if (_json.containsKey("value")) { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10083 if (_json.containsKey("etag")) { | 10771 if (_json.containsKey("etag")) { |
10084 etag = _json["etag"]; | 10772 etag = _json["etag"]; |
10085 } | 10773 } |
10086 if (_json.containsKey("id")) { | 10774 if (_json.containsKey("id")) { |
10087 id = _json["id"]; | 10775 id = _json["id"]; |
10088 } | 10776 } |
10089 if (_json.containsKey("kind")) { | 10777 if (_json.containsKey("kind")) { |
10090 kind = _json["kind"]; | 10778 kind = _json["kind"]; |
10091 } | 10779 } |
10092 if (_json.containsKey("localizations")) { | 10780 if (_json.containsKey("localizations")) { |
10093 localizations = common_internal.mapMap(_json["localizations"], (item) => n
ew PlaylistLocalization.fromJson(item)); | 10781 localizations = commons.mapMap(_json["localizations"], (item) => new Playl
istLocalization.fromJson(item)); |
10094 } | 10782 } |
10095 if (_json.containsKey("player")) { | 10783 if (_json.containsKey("player")) { |
10096 player = new PlaylistPlayer.fromJson(_json["player"]); | 10784 player = new PlaylistPlayer.fromJson(_json["player"]); |
10097 } | 10785 } |
10098 if (_json.containsKey("snippet")) { | 10786 if (_json.containsKey("snippet")) { |
10099 snippet = new PlaylistSnippet.fromJson(_json["snippet"]); | 10787 snippet = new PlaylistSnippet.fromJson(_json["snippet"]); |
10100 } | 10788 } |
10101 if (_json.containsKey("status")) { | 10789 if (_json.containsKey("status")) { |
10102 status = new PlaylistStatus.fromJson(_json["status"]); | 10790 status = new PlaylistStatus.fromJson(_json["status"]); |
10103 } | 10791 } |
10104 } | 10792 } |
10105 | 10793 |
10106 core.Map toJson() { | 10794 core.Map toJson() { |
10107 var _json = new core.Map(); | 10795 var _json = new core.Map(); |
10108 if (contentDetails != null) { | 10796 if (contentDetails != null) { |
10109 _json["contentDetails"] = (contentDetails).toJson(); | 10797 _json["contentDetails"] = (contentDetails).toJson(); |
10110 } | 10798 } |
10111 if (etag != null) { | 10799 if (etag != null) { |
10112 _json["etag"] = etag; | 10800 _json["etag"] = etag; |
10113 } | 10801 } |
10114 if (id != null) { | 10802 if (id != null) { |
10115 _json["id"] = id; | 10803 _json["id"] = id; |
10116 } | 10804 } |
10117 if (kind != null) { | 10805 if (kind != null) { |
10118 _json["kind"] = kind; | 10806 _json["kind"] = kind; |
10119 } | 10807 } |
10120 if (localizations != null) { | 10808 if (localizations != null) { |
10121 _json["localizations"] = common_internal.mapMap(localizations, (item) => (
item).toJson()); | 10809 _json["localizations"] = commons.mapMap(localizations, (item) => (item).to
Json()); |
10122 } | 10810 } |
10123 if (player != null) { | 10811 if (player != null) { |
10124 _json["player"] = (player).toJson(); | 10812 _json["player"] = (player).toJson(); |
10125 } | 10813 } |
10126 if (snippet != null) { | 10814 if (snippet != null) { |
10127 _json["snippet"] = (snippet).toJson(); | 10815 _json["snippet"] = (snippet).toJson(); |
10128 } | 10816 } |
10129 if (status != null) { | 10817 if (status != null) { |
10130 _json["status"] = (status).toJson(); | 10818 _json["status"] = (status).toJson(); |
10131 } | 10819 } |
10132 return _json; | 10820 return _json; |
10133 } | 10821 } |
10134 } | 10822 } |
10135 | 10823 |
10136 | 10824 |
10137 /** Not documented yet. */ | |
10138 class PlaylistContentDetails { | 10825 class PlaylistContentDetails { |
10139 /** The number of videos in the playlist. */ | 10826 /** The number of videos in the playlist. */ |
10140 core.int itemCount; | 10827 core.int itemCount; |
10141 | 10828 |
10142 | 10829 |
10143 PlaylistContentDetails(); | 10830 PlaylistContentDetails(); |
10144 | 10831 |
10145 PlaylistContentDetails.fromJson(core.Map _json) { | 10832 PlaylistContentDetails.fromJson(core.Map _json) { |
10146 if (_json.containsKey("itemCount")) { | 10833 if (_json.containsKey("itemCount")) { |
10147 itemCount = _json["itemCount"]; | 10834 itemCount = _json["itemCount"]; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10255 _json["snippet"] = (snippet).toJson(); | 10942 _json["snippet"] = (snippet).toJson(); |
10256 } | 10943 } |
10257 if (status != null) { | 10944 if (status != null) { |
10258 _json["status"] = (status).toJson(); | 10945 _json["status"] = (status).toJson(); |
10259 } | 10946 } |
10260 return _json; | 10947 return _json; |
10261 } | 10948 } |
10262 } | 10949 } |
10263 | 10950 |
10264 | 10951 |
10265 /** Not documented yet. */ | |
10266 class PlaylistItemContentDetails { | 10952 class PlaylistItemContentDetails { |
10267 /** | 10953 /** |
10268 * The time, measured in seconds from the start of the video, when the video | 10954 * The time, measured in seconds from the start of the video, when the video |
10269 * should stop playing. (The playlist owner can specify the times when the | 10955 * should stop playing. (The playlist owner can specify the times when the |
10270 * video should start and stop playing when the video is played in the context | 10956 * video should start and stop playing when the video is played in the context |
10271 * of the playlist.) By default, assume that the video.endTime is the end of | 10957 * of the playlist.) By default, assume that the video.endTime is the end of |
10272 * the video. | 10958 * the video. |
10273 */ | 10959 */ |
10274 core.String endAt; | 10960 core.String endAt; |
10275 | 10961 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10321 _json["startAt"] = startAt; | 11007 _json["startAt"] = startAt; |
10322 } | 11008 } |
10323 if (videoId != null) { | 11009 if (videoId != null) { |
10324 _json["videoId"] = videoId; | 11010 _json["videoId"] = videoId; |
10325 } | 11011 } |
10326 return _json; | 11012 return _json; |
10327 } | 11013 } |
10328 } | 11014 } |
10329 | 11015 |
10330 | 11016 |
10331 /** Not documented yet. */ | |
10332 class PlaylistItemListResponse { | 11017 class PlaylistItemListResponse { |
10333 /** Etag of this resource. */ | 11018 /** Etag of this resource. */ |
10334 core.String etag; | 11019 core.String etag; |
10335 | 11020 |
10336 /** Serialized EventId of the request which produced this response. */ | 11021 /** Serialized EventId of the request which produced this response. */ |
10337 core.String eventId; | 11022 core.String eventId; |
10338 | 11023 |
10339 /** A list of playlist items that match the request criteria. */ | 11024 /** A list of playlist items that match the request criteria. */ |
10340 core.List<PlaylistItem> items; | 11025 core.List<PlaylistItem> items; |
10341 | 11026 |
10342 /** | 11027 /** |
10343 * Identifies what kind of resource this is. Value: the fixed string | 11028 * Identifies what kind of resource this is. Value: the fixed string |
10344 * "youtube#playlistItemListResponse". | 11029 * "youtube#playlistItemListResponse". |
10345 */ | 11030 */ |
10346 core.String kind; | 11031 core.String kind; |
10347 | 11032 |
10348 /** | 11033 /** |
10349 * The token that can be used as the value of the pageToken parameter to | 11034 * The token that can be used as the value of the pageToken parameter to |
10350 * retrieve the next page in the result set. | 11035 * retrieve the next page in the result set. |
10351 */ | 11036 */ |
10352 core.String nextPageToken; | 11037 core.String nextPageToken; |
10353 | 11038 |
10354 /** Not documented yet. */ | |
10355 PageInfo pageInfo; | 11039 PageInfo pageInfo; |
10356 | 11040 |
10357 /** | 11041 /** |
10358 * The token that can be used as the value of the pageToken parameter to | 11042 * The token that can be used as the value of the pageToken parameter to |
10359 * retrieve the previous page in the result set. | 11043 * retrieve the previous page in the result set. |
10360 */ | 11044 */ |
10361 core.String prevPageToken; | 11045 core.String prevPageToken; |
10362 | 11046 |
10363 /** Not documented yet. */ | |
10364 TokenPagination tokenPagination; | 11047 TokenPagination tokenPagination; |
10365 | 11048 |
10366 /** The visitorId identifies the visitor. */ | 11049 /** The visitorId identifies the visitor. */ |
10367 core.String visitorId; | 11050 core.String visitorId; |
10368 | 11051 |
10369 | 11052 |
10370 PlaylistItemListResponse(); | 11053 PlaylistItemListResponse(); |
10371 | 11054 |
10372 PlaylistItemListResponse.fromJson(core.Map _json) { | 11055 PlaylistItemListResponse.fromJson(core.Map _json) { |
10373 if (_json.containsKey("etag")) { | 11056 if (_json.containsKey("etag")) { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10574 core.Map toJson() { | 11257 core.Map toJson() { |
10575 var _json = new core.Map(); | 11258 var _json = new core.Map(); |
10576 if (privacyStatus != null) { | 11259 if (privacyStatus != null) { |
10577 _json["privacyStatus"] = privacyStatus; | 11260 _json["privacyStatus"] = privacyStatus; |
10578 } | 11261 } |
10579 return _json; | 11262 return _json; |
10580 } | 11263 } |
10581 } | 11264 } |
10582 | 11265 |
10583 | 11266 |
10584 /** Not documented yet. */ | |
10585 class PlaylistListResponse { | 11267 class PlaylistListResponse { |
10586 /** Etag of this resource. */ | 11268 /** Etag of this resource. */ |
10587 core.String etag; | 11269 core.String etag; |
10588 | 11270 |
10589 /** Serialized EventId of the request which produced this response. */ | 11271 /** Serialized EventId of the request which produced this response. */ |
10590 core.String eventId; | 11272 core.String eventId; |
10591 | 11273 |
10592 /** A list of playlists that match the request criteria. */ | 11274 /** A list of playlists that match the request criteria. */ |
10593 core.List<Playlist> items; | 11275 core.List<Playlist> items; |
10594 | 11276 |
10595 /** | 11277 /** |
10596 * Identifies what kind of resource this is. Value: the fixed string | 11278 * Identifies what kind of resource this is. Value: the fixed string |
10597 * "youtube#playlistListResponse". | 11279 * "youtube#playlistListResponse". |
10598 */ | 11280 */ |
10599 core.String kind; | 11281 core.String kind; |
10600 | 11282 |
10601 /** | 11283 /** |
10602 * The token that can be used as the value of the pageToken parameter to | 11284 * The token that can be used as the value of the pageToken parameter to |
10603 * retrieve the next page in the result set. | 11285 * retrieve the next page in the result set. |
10604 */ | 11286 */ |
10605 core.String nextPageToken; | 11287 core.String nextPageToken; |
10606 | 11288 |
10607 /** Not documented yet. */ | |
10608 PageInfo pageInfo; | 11289 PageInfo pageInfo; |
10609 | 11290 |
10610 /** | 11291 /** |
10611 * The token that can be used as the value of the pageToken parameter to | 11292 * The token that can be used as the value of the pageToken parameter to |
10612 * retrieve the previous page in the result set. | 11293 * retrieve the previous page in the result set. |
10613 */ | 11294 */ |
10614 core.String prevPageToken; | 11295 core.String prevPageToken; |
10615 | 11296 |
10616 /** Not documented yet. */ | |
10617 TokenPagination tokenPagination; | 11297 TokenPagination tokenPagination; |
10618 | 11298 |
10619 /** The visitorId identifies the visitor. */ | 11299 /** The visitorId identifies the visitor. */ |
10620 core.String visitorId; | 11300 core.String visitorId; |
10621 | 11301 |
10622 | 11302 |
10623 PlaylistListResponse(); | 11303 PlaylistListResponse(); |
10624 | 11304 |
10625 PlaylistListResponse.fromJson(core.Map _json) { | 11305 PlaylistListResponse.fromJson(core.Map _json) { |
10626 if (_json.containsKey("etag")) { | 11306 if (_json.containsKey("etag")) { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10712 _json["description"] = description; | 11392 _json["description"] = description; |
10713 } | 11393 } |
10714 if (title != null) { | 11394 if (title != null) { |
10715 _json["title"] = title; | 11395 _json["title"] = title; |
10716 } | 11396 } |
10717 return _json; | 11397 return _json; |
10718 } | 11398 } |
10719 } | 11399 } |
10720 | 11400 |
10721 | 11401 |
10722 /** Not documented yet. */ | |
10723 class PlaylistPlayer { | 11402 class PlaylistPlayer { |
10724 /** An <iframe> tag that embeds a player that will play the playlist. */ | 11403 /** An <iframe> tag that embeds a player that will play the playlist. */ |
10725 core.String embedHtml; | 11404 core.String embedHtml; |
10726 | 11405 |
10727 | 11406 |
10728 PlaylistPlayer(); | 11407 PlaylistPlayer(); |
10729 | 11408 |
10730 PlaylistPlayer.fromJson(core.Map _json) { | 11409 PlaylistPlayer.fromJson(core.Map _json) { |
10731 if (_json.containsKey("embedHtml")) { | 11410 if (_json.containsKey("embedHtml")) { |
10732 embedHtml = _json["embedHtml"]; | 11411 embedHtml = _json["embedHtml"]; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10844 _json["thumbnails"] = (thumbnails).toJson(); | 11523 _json["thumbnails"] = (thumbnails).toJson(); |
10845 } | 11524 } |
10846 if (title != null) { | 11525 if (title != null) { |
10847 _json["title"] = title; | 11526 _json["title"] = title; |
10848 } | 11527 } |
10849 return _json; | 11528 return _json; |
10850 } | 11529 } |
10851 } | 11530 } |
10852 | 11531 |
10853 | 11532 |
10854 /** Not documented yet. */ | |
10855 class PlaylistStatus { | 11533 class PlaylistStatus { |
10856 /** | 11534 /** |
10857 * The playlist's privacy status. | 11535 * The playlist's privacy status. |
10858 * Possible string values are: | 11536 * Possible string values are: |
10859 * - "private" | 11537 * - "private" |
10860 * - "public" | 11538 * - "public" |
10861 * - "unlisted" | 11539 * - "unlisted" |
10862 */ | 11540 */ |
10863 core.String privacyStatus; | 11541 core.String privacyStatus; |
10864 | 11542 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11104 _json["playlistId"] = playlistId; | 11782 _json["playlistId"] = playlistId; |
11105 } | 11783 } |
11106 if (videoId != null) { | 11784 if (videoId != null) { |
11107 _json["videoId"] = videoId; | 11785 _json["videoId"] = videoId; |
11108 } | 11786 } |
11109 return _json; | 11787 return _json; |
11110 } | 11788 } |
11111 } | 11789 } |
11112 | 11790 |
11113 | 11791 |
11114 /** Not documented yet. */ | |
11115 class SearchListResponse { | 11792 class SearchListResponse { |
11116 /** Etag of this resource. */ | 11793 /** Etag of this resource. */ |
11117 core.String etag; | 11794 core.String etag; |
11118 | 11795 |
11119 /** Serialized EventId of the request which produced this response. */ | 11796 /** Serialized EventId of the request which produced this response. */ |
11120 core.String eventId; | 11797 core.String eventId; |
11121 | 11798 |
11122 /** A list of results that match the search criteria. */ | 11799 /** A list of results that match the search criteria. */ |
11123 core.List<SearchResult> items; | 11800 core.List<SearchResult> items; |
11124 | 11801 |
11125 /** | 11802 /** |
11126 * Identifies what kind of resource this is. Value: the fixed string | 11803 * Identifies what kind of resource this is. Value: the fixed string |
11127 * "youtube#searchListResponse". | 11804 * "youtube#searchListResponse". |
11128 */ | 11805 */ |
11129 core.String kind; | 11806 core.String kind; |
11130 | 11807 |
11131 /** | 11808 /** |
11132 * The token that can be used as the value of the pageToken parameter to | 11809 * The token that can be used as the value of the pageToken parameter to |
11133 * retrieve the next page in the result set. | 11810 * retrieve the next page in the result set. |
11134 */ | 11811 */ |
11135 core.String nextPageToken; | 11812 core.String nextPageToken; |
11136 | 11813 |
11137 /** Not documented yet. */ | |
11138 PageInfo pageInfo; | 11814 PageInfo pageInfo; |
11139 | 11815 |
11140 /** | 11816 /** |
11141 * The token that can be used as the value of the pageToken parameter to | 11817 * The token that can be used as the value of the pageToken parameter to |
11142 * retrieve the previous page in the result set. | 11818 * retrieve the previous page in the result set. |
11143 */ | 11819 */ |
11144 core.String prevPageToken; | 11820 core.String prevPageToken; |
11145 | 11821 |
11146 /** Not documented yet. */ | |
11147 TokenPagination tokenPagination; | 11822 TokenPagination tokenPagination; |
11148 | 11823 |
11149 /** The visitorId identifies the visitor. */ | 11824 /** The visitorId identifies the visitor. */ |
11150 core.String visitorId; | 11825 core.String visitorId; |
11151 | 11826 |
11152 | 11827 |
11153 SearchListResponse(); | 11828 SearchListResponse(); |
11154 | 11829 |
11155 SearchListResponse.fromJson(core.Map _json) { | 11830 SearchListResponse.fromJson(core.Map _json) { |
11156 if (_json.containsKey("etag")) { | 11831 if (_json.containsKey("etag")) { |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11513 _json["newItemCount"] = newItemCount; | 12188 _json["newItemCount"] = newItemCount; |
11514 } | 12189 } |
11515 if (totalItemCount != null) { | 12190 if (totalItemCount != null) { |
11516 _json["totalItemCount"] = totalItemCount; | 12191 _json["totalItemCount"] = totalItemCount; |
11517 } | 12192 } |
11518 return _json; | 12193 return _json; |
11519 } | 12194 } |
11520 } | 12195 } |
11521 | 12196 |
11522 | 12197 |
11523 /** Not documented yet. */ | |
11524 class SubscriptionListResponse { | 12198 class SubscriptionListResponse { |
11525 /** Etag of this resource. */ | 12199 /** Etag of this resource. */ |
11526 core.String etag; | 12200 core.String etag; |
11527 | 12201 |
11528 /** Serialized EventId of the request which produced this response. */ | 12202 /** Serialized EventId of the request which produced this response. */ |
11529 core.String eventId; | 12203 core.String eventId; |
11530 | 12204 |
11531 /** A list of subscriptions that match the request criteria. */ | 12205 /** A list of subscriptions that match the request criteria. */ |
11532 core.List<Subscription> items; | 12206 core.List<Subscription> items; |
11533 | 12207 |
11534 /** | 12208 /** |
11535 * Identifies what kind of resource this is. Value: the fixed string | 12209 * Identifies what kind of resource this is. Value: the fixed string |
11536 * "youtube#subscriptionListResponse". | 12210 * "youtube#subscriptionListResponse". |
11537 */ | 12211 */ |
11538 core.String kind; | 12212 core.String kind; |
11539 | 12213 |
11540 /** | 12214 /** |
11541 * The token that can be used as the value of the pageToken parameter to | 12215 * The token that can be used as the value of the pageToken parameter to |
11542 * retrieve the next page in the result set. | 12216 * retrieve the next page in the result set. |
11543 */ | 12217 */ |
11544 core.String nextPageToken; | 12218 core.String nextPageToken; |
11545 | 12219 |
11546 /** Not documented yet. */ | |
11547 PageInfo pageInfo; | 12220 PageInfo pageInfo; |
11548 | 12221 |
11549 /** | 12222 /** |
11550 * The token that can be used as the value of the pageToken parameter to | 12223 * The token that can be used as the value of the pageToken parameter to |
11551 * retrieve the previous page in the result set. | 12224 * retrieve the previous page in the result set. |
11552 */ | 12225 */ |
11553 core.String prevPageToken; | 12226 core.String prevPageToken; |
11554 | 12227 |
11555 /** Not documented yet. */ | |
11556 TokenPagination tokenPagination; | 12228 TokenPagination tokenPagination; |
11557 | 12229 |
11558 /** The visitorId identifies the visitor. */ | 12230 /** The visitorId identifies the visitor. */ |
11559 core.String visitorId; | 12231 core.String visitorId; |
11560 | 12232 |
11561 | 12233 |
11562 SubscriptionListResponse(); | 12234 SubscriptionListResponse(); |
11563 | 12235 |
11564 SubscriptionListResponse.fromJson(core.Map _json) { | 12236 SubscriptionListResponse.fromJson(core.Map _json) { |
11565 if (_json.containsKey("etag")) { | 12237 if (_json.containsKey("etag")) { |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11867 _json["medium"] = (medium).toJson(); | 12539 _json["medium"] = (medium).toJson(); |
11868 } | 12540 } |
11869 if (standard != null) { | 12541 if (standard != null) { |
11870 _json["standard"] = (standard).toJson(); | 12542 _json["standard"] = (standard).toJson(); |
11871 } | 12543 } |
11872 return _json; | 12544 return _json; |
11873 } | 12545 } |
11874 } | 12546 } |
11875 | 12547 |
11876 | 12548 |
11877 /** Not documented yet. */ | |
11878 class ThumbnailSetResponse { | 12549 class ThumbnailSetResponse { |
11879 /** Etag of this resource. */ | 12550 /** Etag of this resource. */ |
11880 core.String etag; | 12551 core.String etag; |
11881 | 12552 |
11882 /** Serialized EventId of the request which produced this response. */ | 12553 /** Serialized EventId of the request which produced this response. */ |
11883 core.String eventId; | 12554 core.String eventId; |
11884 | 12555 |
11885 /** A list of thumbnails. */ | 12556 /** A list of thumbnails. */ |
11886 core.List<ThumbnailDetails> items; | 12557 core.List<ThumbnailDetails> items; |
11887 | 12558 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12087 if (_json.containsKey("id")) { | 12758 if (_json.containsKey("id")) { |
12088 id = _json["id"]; | 12759 id = _json["id"]; |
12089 } | 12760 } |
12090 if (_json.containsKey("kind")) { | 12761 if (_json.containsKey("kind")) { |
12091 kind = _json["kind"]; | 12762 kind = _json["kind"]; |
12092 } | 12763 } |
12093 if (_json.containsKey("liveStreamingDetails")) { | 12764 if (_json.containsKey("liveStreamingDetails")) { |
12094 liveStreamingDetails = new VideoLiveStreamingDetails.fromJson(_json["liveS
treamingDetails"]); | 12765 liveStreamingDetails = new VideoLiveStreamingDetails.fromJson(_json["liveS
treamingDetails"]); |
12095 } | 12766 } |
12096 if (_json.containsKey("localizations")) { | 12767 if (_json.containsKey("localizations")) { |
12097 localizations = common_internal.mapMap(_json["localizations"], (item) => n
ew VideoLocalization.fromJson(item)); | 12768 localizations = commons.mapMap(_json["localizations"], (item) => new Video
Localization.fromJson(item)); |
12098 } | 12769 } |
12099 if (_json.containsKey("monetizationDetails")) { | 12770 if (_json.containsKey("monetizationDetails")) { |
12100 monetizationDetails = new VideoMonetizationDetails.fromJson(_json["monetiz
ationDetails"]); | 12771 monetizationDetails = new VideoMonetizationDetails.fromJson(_json["monetiz
ationDetails"]); |
12101 } | 12772 } |
12102 if (_json.containsKey("player")) { | 12773 if (_json.containsKey("player")) { |
12103 player = new VideoPlayer.fromJson(_json["player"]); | 12774 player = new VideoPlayer.fromJson(_json["player"]); |
12104 } | 12775 } |
12105 if (_json.containsKey("processingDetails")) { | 12776 if (_json.containsKey("processingDetails")) { |
12106 processingDetails = new VideoProcessingDetails.fromJson(_json["processingD
etails"]); | 12777 processingDetails = new VideoProcessingDetails.fromJson(_json["processingD
etails"]); |
12107 } | 12778 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12148 if (id != null) { | 12819 if (id != null) { |
12149 _json["id"] = id; | 12820 _json["id"] = id; |
12150 } | 12821 } |
12151 if (kind != null) { | 12822 if (kind != null) { |
12152 _json["kind"] = kind; | 12823 _json["kind"] = kind; |
12153 } | 12824 } |
12154 if (liveStreamingDetails != null) { | 12825 if (liveStreamingDetails != null) { |
12155 _json["liveStreamingDetails"] = (liveStreamingDetails).toJson(); | 12826 _json["liveStreamingDetails"] = (liveStreamingDetails).toJson(); |
12156 } | 12827 } |
12157 if (localizations != null) { | 12828 if (localizations != null) { |
12158 _json["localizations"] = common_internal.mapMap(localizations, (item) => (
item).toJson()); | 12829 _json["localizations"] = commons.mapMap(localizations, (item) => (item).to
Json()); |
12159 } | 12830 } |
12160 if (monetizationDetails != null) { | 12831 if (monetizationDetails != null) { |
12161 _json["monetizationDetails"] = (monetizationDetails).toJson(); | 12832 _json["monetizationDetails"] = (monetizationDetails).toJson(); |
12162 } | 12833 } |
12163 if (player != null) { | 12834 if (player != null) { |
12164 _json["player"] = (player).toJson(); | 12835 _json["player"] = (player).toJson(); |
12165 } | 12836 } |
12166 if (processingDetails != null) { | 12837 if (processingDetails != null) { |
12167 _json["processingDetails"] = (processingDetails).toJson(); | 12838 _json["processingDetails"] = (processingDetails).toJson(); |
12168 } | 12839 } |
(...skipping 16 matching lines...) Expand all Loading... |
12185 _json["suggestions"] = (suggestions).toJson(); | 12856 _json["suggestions"] = (suggestions).toJson(); |
12186 } | 12857 } |
12187 if (topicDetails != null) { | 12858 if (topicDetails != null) { |
12188 _json["topicDetails"] = (topicDetails).toJson(); | 12859 _json["topicDetails"] = (topicDetails).toJson(); |
12189 } | 12860 } |
12190 return _json; | 12861 return _json; |
12191 } | 12862 } |
12192 } | 12863 } |
12193 | 12864 |
12194 | 12865 |
12195 /** Not documented yet. */ | |
12196 class VideoAgeGating { | 12866 class VideoAgeGating { |
12197 /** | 12867 /** |
12198 * Indicates whether or not the video has alcoholic beverage content. Only | 12868 * Indicates whether or not the video has alcoholic beverage content. Only |
12199 * users of legal purchasing age in a particular country, as identified by | 12869 * users of legal purchasing age in a particular country, as identified by |
12200 * ICAP, can view the content. | 12870 * ICAP, can view the content. |
12201 */ | 12871 */ |
12202 core.bool alcoholContent; | 12872 core.bool alcoholContent; |
12203 | 12873 |
12204 /** | 12874 /** |
12205 * Age-restricted trailers. For redband trailers and adult-rated video-games. | 12875 * Age-restricted trailers. For redband trailers and adult-rated video-games. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12302 _json["kind"] = kind; | 12972 _json["kind"] = kind; |
12303 } | 12973 } |
12304 if (snippet != null) { | 12974 if (snippet != null) { |
12305 _json["snippet"] = (snippet).toJson(); | 12975 _json["snippet"] = (snippet).toJson(); |
12306 } | 12976 } |
12307 return _json; | 12977 return _json; |
12308 } | 12978 } |
12309 } | 12979 } |
12310 | 12980 |
12311 | 12981 |
12312 /** Not documented yet. */ | |
12313 class VideoCategoryListResponse { | 12982 class VideoCategoryListResponse { |
12314 /** Etag of this resource. */ | 12983 /** Etag of this resource. */ |
12315 core.String etag; | 12984 core.String etag; |
12316 | 12985 |
12317 /** Serialized EventId of the request which produced this response. */ | 12986 /** Serialized EventId of the request which produced this response. */ |
12318 core.String eventId; | 12987 core.String eventId; |
12319 | 12988 |
12320 /** | 12989 /** |
12321 * A list of video categories that can be associated with YouTube videos. In | 12990 * A list of video categories that can be associated with YouTube videos. In |
12322 * this map, the video category ID is the map key, and its value is the | 12991 * this map, the video category ID is the map key, and its value is the |
12323 * corresponding videoCategory resource. | 12992 * corresponding videoCategory resource. |
12324 */ | 12993 */ |
12325 core.List<VideoCategory> items; | 12994 core.List<VideoCategory> items; |
12326 | 12995 |
12327 /** | 12996 /** |
12328 * Identifies what kind of resource this is. Value: the fixed string | 12997 * Identifies what kind of resource this is. Value: the fixed string |
12329 * "youtube#videoCategoryListResponse". | 12998 * "youtube#videoCategoryListResponse". |
12330 */ | 12999 */ |
12331 core.String kind; | 13000 core.String kind; |
12332 | 13001 |
12333 /** | 13002 /** |
12334 * The token that can be used as the value of the pageToken parameter to | 13003 * The token that can be used as the value of the pageToken parameter to |
12335 * retrieve the next page in the result set. | 13004 * retrieve the next page in the result set. |
12336 */ | 13005 */ |
12337 core.String nextPageToken; | 13006 core.String nextPageToken; |
12338 | 13007 |
12339 /** Not documented yet. */ | |
12340 PageInfo pageInfo; | 13008 PageInfo pageInfo; |
12341 | 13009 |
12342 /** | 13010 /** |
12343 * The token that can be used as the value of the pageToken parameter to | 13011 * The token that can be used as the value of the pageToken parameter to |
12344 * retrieve the previous page in the result set. | 13012 * retrieve the previous page in the result set. |
12345 */ | 13013 */ |
12346 core.String prevPageToken; | 13014 core.String prevPageToken; |
12347 | 13015 |
12348 /** Not documented yet. */ | |
12349 TokenPagination tokenPagination; | 13016 TokenPagination tokenPagination; |
12350 | 13017 |
12351 /** The visitorId identifies the visitor. */ | 13018 /** The visitorId identifies the visitor. */ |
12352 core.String visitorId; | 13019 core.String visitorId; |
12353 | 13020 |
12354 | 13021 |
12355 VideoCategoryListResponse(); | 13022 VideoCategoryListResponse(); |
12356 | 13023 |
12357 VideoCategoryListResponse.fromJson(core.Map _json) { | 13024 VideoCategoryListResponse.fromJson(core.Map _json) { |
12358 if (_json.containsKey("etag")) { | 13025 if (_json.containsKey("etag")) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12413 if (visitorId != null) { | 13080 if (visitorId != null) { |
12414 _json["visitorId"] = visitorId; | 13081 _json["visitorId"] = visitorId; |
12415 } | 13082 } |
12416 return _json; | 13083 return _json; |
12417 } | 13084 } |
12418 } | 13085 } |
12419 | 13086 |
12420 | 13087 |
12421 /** Basic details about a video category, such as its localized title. */ | 13088 /** Basic details about a video category, such as its localized title. */ |
12422 class VideoCategorySnippet { | 13089 class VideoCategorySnippet { |
12423 /** Not documented yet. */ | |
12424 core.bool assignable; | 13090 core.bool assignable; |
12425 | 13091 |
12426 /** The YouTube channel that created the video category. */ | 13092 /** The YouTube channel that created the video category. */ |
12427 core.String channelId; | 13093 core.String channelId; |
12428 | 13094 |
12429 /** The video category's title. */ | 13095 /** The video category's title. */ |
12430 core.String title; | 13096 core.String title; |
12431 | 13097 |
12432 | 13098 |
12433 VideoCategorySnippet(); | 13099 VideoCategorySnippet(); |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12618 _json["allowed"] = allowed; | 13284 _json["allowed"] = allowed; |
12619 } | 13285 } |
12620 if (blocked != null) { | 13286 if (blocked != null) { |
12621 _json["blocked"] = blocked; | 13287 _json["blocked"] = blocked; |
12622 } | 13288 } |
12623 return _json; | 13289 return _json; |
12624 } | 13290 } |
12625 } | 13291 } |
12626 | 13292 |
12627 | 13293 |
12628 /** Not documented yet. */ | |
12629 class VideoConversionPing { | 13294 class VideoConversionPing { |
12630 /** | 13295 /** |
12631 * Defines the context of the ping. | 13296 * Defines the context of the ping. |
12632 * Possible string values are: | 13297 * Possible string values are: |
12633 * - "comment" | 13298 * - "comment" |
12634 * - "dislike" | 13299 * - "dislike" |
12635 * - "like" | 13300 * - "like" |
12636 * - "share" | 13301 * - "share" |
12637 */ | 13302 */ |
12638 core.String context; | 13303 core.String context; |
(...skipping 27 matching lines...) Expand all Loading... |
12666 _json["context"] = context; | 13331 _json["context"] = context; |
12667 } | 13332 } |
12668 if (conversionUrl != null) { | 13333 if (conversionUrl != null) { |
12669 _json["conversionUrl"] = conversionUrl; | 13334 _json["conversionUrl"] = conversionUrl; |
12670 } | 13335 } |
12671 return _json; | 13336 return _json; |
12672 } | 13337 } |
12673 } | 13338 } |
12674 | 13339 |
12675 | 13340 |
12676 /** Not documented yet. */ | |
12677 class VideoConversionPings { | 13341 class VideoConversionPings { |
12678 /** | 13342 /** |
12679 * Pings that the app shall fire for a video (authenticated by biscotti | 13343 * Pings that the app shall fire for a video (authenticated by biscotti |
12680 * cookie). Each ping has a context, in which the app must fire the ping, and | 13344 * cookie). Each ping has a context, in which the app must fire the ping, and |
12681 * a url identifying the ping. | 13345 * a url identifying the ping. |
12682 */ | 13346 */ |
12683 core.List<VideoConversionPing> pings; | 13347 core.List<VideoConversionPing> pings; |
12684 | 13348 |
12685 | 13349 |
12686 VideoConversionPings(); | 13350 VideoConversionPings(); |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12999 _json["vendor"] = vendor; | 13663 _json["vendor"] = vendor; |
13000 } | 13664 } |
13001 if (widthPixels != null) { | 13665 if (widthPixels != null) { |
13002 _json["widthPixels"] = widthPixels; | 13666 _json["widthPixels"] = widthPixels; |
13003 } | 13667 } |
13004 return _json; | 13668 return _json; |
13005 } | 13669 } |
13006 } | 13670 } |
13007 | 13671 |
13008 | 13672 |
13009 /** Not documented yet. */ | |
13010 class VideoGetRatingResponse { | 13673 class VideoGetRatingResponse { |
13011 /** Etag of this resource. */ | 13674 /** Etag of this resource. */ |
13012 core.String etag; | 13675 core.String etag; |
13013 | 13676 |
13014 /** Serialized EventId of the request which produced this response. */ | 13677 /** Serialized EventId of the request which produced this response. */ |
13015 core.String eventId; | 13678 core.String eventId; |
13016 | 13679 |
13017 /** A list of ratings that match the request criteria. */ | 13680 /** A list of ratings that match the request criteria. */ |
13018 core.List<VideoRating> items; | 13681 core.List<VideoRating> items; |
13019 | 13682 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13062 _json["kind"] = kind; | 13725 _json["kind"] = kind; |
13063 } | 13726 } |
13064 if (visitorId != null) { | 13727 if (visitorId != null) { |
13065 _json["visitorId"] = visitorId; | 13728 _json["visitorId"] = visitorId; |
13066 } | 13729 } |
13067 return _json; | 13730 return _json; |
13068 } | 13731 } |
13069 } | 13732 } |
13070 | 13733 |
13071 | 13734 |
13072 /** Not documented yet. */ | |
13073 class VideoListResponse { | 13735 class VideoListResponse { |
13074 /** Etag of this resource. */ | 13736 /** Etag of this resource. */ |
13075 core.String etag; | 13737 core.String etag; |
13076 | 13738 |
13077 /** Serialized EventId of the request which produced this response. */ | 13739 /** Serialized EventId of the request which produced this response. */ |
13078 core.String eventId; | 13740 core.String eventId; |
13079 | 13741 |
13080 /** A list of videos that match the request criteria. */ | 13742 /** A list of videos that match the request criteria. */ |
13081 core.List<Video> items; | 13743 core.List<Video> items; |
13082 | 13744 |
13083 /** | 13745 /** |
13084 * Identifies what kind of resource this is. Value: the fixed string | 13746 * Identifies what kind of resource this is. Value: the fixed string |
13085 * "youtube#videoListResponse". | 13747 * "youtube#videoListResponse". |
13086 */ | 13748 */ |
13087 core.String kind; | 13749 core.String kind; |
13088 | 13750 |
13089 /** | 13751 /** |
13090 * The token that can be used as the value of the pageToken parameter to | 13752 * The token that can be used as the value of the pageToken parameter to |
13091 * retrieve the next page in the result set. | 13753 * retrieve the next page in the result set. |
13092 */ | 13754 */ |
13093 core.String nextPageToken; | 13755 core.String nextPageToken; |
13094 | 13756 |
13095 /** Not documented yet. */ | |
13096 PageInfo pageInfo; | 13757 PageInfo pageInfo; |
13097 | 13758 |
13098 /** | 13759 /** |
13099 * The token that can be used as the value of the pageToken parameter to | 13760 * The token that can be used as the value of the pageToken parameter to |
13100 * retrieve the previous page in the result set. | 13761 * retrieve the previous page in the result set. |
13101 */ | 13762 */ |
13102 core.String prevPageToken; | 13763 core.String prevPageToken; |
13103 | 13764 |
13104 /** Not documented yet. */ | |
13105 TokenPagination tokenPagination; | 13765 TokenPagination tokenPagination; |
13106 | 13766 |
13107 /** The visitorId identifies the visitor. */ | 13767 /** The visitorId identifies the visitor. */ |
13108 core.String visitorId; | 13768 core.String visitorId; |
13109 | 13769 |
13110 | 13770 |
13111 VideoListResponse(); | 13771 VideoListResponse(); |
13112 | 13772 |
13113 VideoListResponse.fromJson(core.Map _json) { | 13773 VideoListResponse.fromJson(core.Map _json) { |
13114 if (_json.containsKey("etag")) { | 13774 if (_json.containsKey("etag")) { |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13549 core.Map toJson() { | 14209 core.Map toJson() { |
13550 var _json = new core.Map(); | 14210 var _json = new core.Map(); |
13551 if (tags != null) { | 14211 if (tags != null) { |
13552 _json["tags"] = tags; | 14212 _json["tags"] = tags; |
13553 } | 14213 } |
13554 return _json; | 14214 return _json; |
13555 } | 14215 } |
13556 } | 14216 } |
13557 | 14217 |
13558 | 14218 |
13559 /** Not documented yet. */ | |
13560 class VideoRating { | 14219 class VideoRating { |
13561 /** | 14220 /** |
13562 * Not documented yet. | 14221 * |
13563 * Possible string values are: | 14222 * Possible string values are: |
13564 * - "dislike" | 14223 * - "dislike" |
13565 * - "like" | 14224 * - "like" |
13566 * - "none" | 14225 * - "none" |
13567 * - "unspecified" | 14226 * - "unspecified" |
13568 */ | 14227 */ |
13569 core.String rating; | 14228 core.String rating; |
13570 | 14229 |
13571 /** Not documented yet. */ | |
13572 core.String videoId; | 14230 core.String videoId; |
13573 | 14231 |
13574 | 14232 |
13575 VideoRating(); | 14233 VideoRating(); |
13576 | 14234 |
13577 VideoRating.fromJson(core.Map _json) { | 14235 VideoRating.fromJson(core.Map _json) { |
13578 if (_json.containsKey("rating")) { | 14236 if (_json.containsKey("rating")) { |
13579 rating = _json["rating"]; | 14237 rating = _json["rating"]; |
13580 } | 14238 } |
13581 if (_json.containsKey("videoId")) { | 14239 if (_json.containsKey("videoId")) { |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14193 } | 14851 } |
14194 if (featuredPlaylistId != null) { | 14852 if (featuredPlaylistId != null) { |
14195 _json["featuredPlaylistId"] = featuredPlaylistId; | 14853 _json["featuredPlaylistId"] = featuredPlaylistId; |
14196 } | 14854 } |
14197 if (textColor != null) { | 14855 if (textColor != null) { |
14198 _json["textColor"] = textColor; | 14856 _json["textColor"] = textColor; |
14199 } | 14857 } |
14200 return _json; | 14858 return _json; |
14201 } | 14859 } |
14202 } | 14860 } |
14203 | |
14204 | |
OLD | NEW |