| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.youtube.v3; | 3 library googleapis.youtube.v3; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:crypto/crypto.dart' as crypto; | 10 import 'package:crypto/crypto.dart' as crypto; |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 254 |
| 255 /** | 255 /** |
| 256 * Deletes a specified caption track. | 256 * Deletes a specified caption track. |
| 257 * | 257 * |
| 258 * Request parameters: | 258 * Request parameters: |
| 259 * | 259 * |
| 260 * [id] - The id parameter identifies the caption track that is being deleted. | 260 * [id] - The id parameter identifies the caption track that is being deleted. |
| 261 * The value is a caption track ID as identified by the id property in a | 261 * The value is a caption track ID as identified by the id property in a |
| 262 * caption resource. | 262 * caption resource. |
| 263 * | 263 * |
| 264 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be | |
| 265 * used for mimicking a request for a certain project ID | |
| 266 * | |
| 267 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 264 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 268 * be on behalf of | 265 * be on behalf of |
| 269 * | 266 * |
| 270 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 267 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
| 271 * YouTube content partners. | 268 * YouTube content partners. |
| 272 * | 269 * |
| 273 * The onBehalfOfContentOwner parameter indicates that the request's | 270 * The onBehalfOfContentOwner parameter indicates that the request's |
| 274 * authorization credentials identify a YouTube CMS user who is acting on | 271 * authorization credentials identify a YouTube CMS user who is acting on |
| 275 * behalf of the content owner specified in the parameter value. This | 272 * behalf of the content owner specified in the parameter value. This |
| 276 * parameter is intended for YouTube content partners that own and manage many | 273 * parameter is intended for YouTube content partners that own and manage many |
| 277 * different YouTube channels. It allows content owners to authenticate once | 274 * different YouTube channels. It allows content owners to authenticate once |
| 278 * and get access to all their video and channel data, without having to | 275 * and get access to all their video and channel data, without having to |
| 279 * provide authentication credentials for each individual channel. The actual | 276 * provide authentication credentials for each individual channel. The actual |
| 280 * CMS account that the user authenticates with must be linked to the | 277 * CMS account that the user authenticates with must be linked to the |
| 281 * specified YouTube content owner. | 278 * specified YouTube content owner. |
| 282 * | 279 * |
| 283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 280 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 284 * error. | 281 * error. |
| 285 * | 282 * |
| 286 * If the used [http.Client] completes with an error when making a REST call, | 283 * If the used [http.Client] completes with an error when making a REST call, |
| 287 * this method will complete with the same error. | 284 * this method will complete with the same error. |
| 288 */ | 285 */ |
| 289 async.Future delete(core.String id, {core.String debugProjectIdOverride, core.
String onBehalfOf, core.String onBehalfOfContentOwner}) { | 286 async.Future delete(core.String id, {core.String onBehalfOf, core.String onBeh
alfOfContentOwner}) { |
| 290 var _url = null; | 287 var _url = null; |
| 291 var _queryParams = new core.Map(); | 288 var _queryParams = new core.Map(); |
| 292 var _uploadMedia = null; | 289 var _uploadMedia = null; |
| 293 var _uploadOptions = null; | 290 var _uploadOptions = null; |
| 294 var _downloadOptions = commons.DownloadOptions.Metadata; | 291 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 295 var _body = null; | 292 var _body = null; |
| 296 | 293 |
| 297 if (id == null) { | 294 if (id == null) { |
| 298 throw new core.ArgumentError("Parameter id is required."); | 295 throw new core.ArgumentError("Parameter id is required."); |
| 299 } | 296 } |
| 300 _queryParams["id"] = [id]; | 297 _queryParams["id"] = [id]; |
| 301 if (debugProjectIdOverride != null) { | |
| 302 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; | |
| 303 } | |
| 304 if (onBehalfOf != null) { | 298 if (onBehalfOf != null) { |
| 305 _queryParams["onBehalfOf"] = [onBehalfOf]; | 299 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 306 } | 300 } |
| 307 if (onBehalfOfContentOwner != null) { | 301 if (onBehalfOfContentOwner != null) { |
| 308 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 302 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 309 } | 303 } |
| 310 | 304 |
| 311 _downloadOptions = null; | 305 _downloadOptions = null; |
| 312 | 306 |
| 313 _url = 'captions'; | 307 _url = 'captions'; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 327 * format unless the request specifies a value for the tfmt parameter and in | 321 * format unless the request specifies a value for the tfmt parameter and in |
| 328 * its original language unless the request specifies a value for the tlang | 322 * its original language unless the request specifies a value for the tlang |
| 329 * parameter. | 323 * parameter. |
| 330 * | 324 * |
| 331 * Request parameters: | 325 * Request parameters: |
| 332 * | 326 * |
| 333 * [id] - The id parameter identifies the caption track that is being | 327 * [id] - The id parameter identifies the caption track that is being |
| 334 * retrieved. The value is a caption track ID as identified by the id property | 328 * retrieved. The value is a caption track ID as identified by the id property |
| 335 * in a caption resource. | 329 * in a caption resource. |
| 336 * | 330 * |
| 337 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be | |
| 338 * used for mimicking a request for a certain project ID | |
| 339 * | |
| 340 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 331 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 341 * be on behalf of | 332 * be on behalf of |
| 342 * | 333 * |
| 343 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 334 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
| 344 * YouTube content partners. | 335 * YouTube content partners. |
| 345 * | 336 * |
| 346 * The onBehalfOfContentOwner parameter indicates that the request's | 337 * The onBehalfOfContentOwner parameter indicates that the request's |
| 347 * authorization credentials identify a YouTube CMS user who is acting on | 338 * authorization credentials identify a YouTube CMS user who is acting on |
| 348 * behalf of the content owner specified in the parameter value. This | 339 * behalf of the content owner specified in the parameter value. This |
| 349 * parameter is intended for YouTube content partners that own and manage many | 340 * parameter is intended for YouTube content partners that own and manage many |
| (...skipping 22 matching lines...) Expand all Loading... |
| 372 * [downloadOptions] - Options for downloading. A download can be either a | 363 * [downloadOptions] - Options for downloading. A download can be either a |
| 373 * Metadata (default) or Media download. Partial Media downloads are possible | 364 * Metadata (default) or Media download. Partial Media downloads are possible |
| 374 * as well. | 365 * as well. |
| 375 * | 366 * |
| 376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 377 * error. | 368 * error. |
| 378 * | 369 * |
| 379 * If the used [http.Client] completes with an error when making a REST call, | 370 * If the used [http.Client] completes with an error when making a REST call, |
| 380 * this method will complete with the same error. | 371 * this method will complete with the same error. |
| 381 */ | 372 */ |
| 382 async.Future download(core.String id, {core.String debugProjectIdOverride, cor
e.String onBehalfOf, core.String onBehalfOfContentOwner, core.String tfmt, core.
String tlang, commons.DownloadOptions downloadOptions: commons.DownloadOptions.M
etadata}) { | 373 async.Future download(core.String id, {core.String onBehalfOf, core.String onB
ehalfOfContentOwner, core.String tfmt, core.String tlang, commons.DownloadOption
s downloadOptions: commons.DownloadOptions.Metadata}) { |
| 383 var _url = null; | 374 var _url = null; |
| 384 var _queryParams = new core.Map(); | 375 var _queryParams = new core.Map(); |
| 385 var _uploadMedia = null; | 376 var _uploadMedia = null; |
| 386 var _uploadOptions = null; | 377 var _uploadOptions = null; |
| 387 var _downloadOptions = commons.DownloadOptions.Metadata; | 378 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 388 var _body = null; | 379 var _body = null; |
| 389 | 380 |
| 390 if (id == null) { | 381 if (id == null) { |
| 391 throw new core.ArgumentError("Parameter id is required."); | 382 throw new core.ArgumentError("Parameter id is required."); |
| 392 } | 383 } |
| 393 if (debugProjectIdOverride != null) { | |
| 394 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; | |
| 395 } | |
| 396 if (onBehalfOf != null) { | 384 if (onBehalfOf != null) { |
| 397 _queryParams["onBehalfOf"] = [onBehalfOf]; | 385 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 398 } | 386 } |
| 399 if (onBehalfOfContentOwner != null) { | 387 if (onBehalfOfContentOwner != null) { |
| 400 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 388 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 401 } | 389 } |
| 402 if (tfmt != null) { | 390 if (tfmt != null) { |
| 403 _queryParams["tfmt"] = [tfmt]; | 391 _queryParams["tfmt"] = [tfmt]; |
| 404 } | 392 } |
| 405 if (tlang != null) { | 393 if (tlang != null) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 428 /** | 416 /** |
| 429 * Uploads a caption track. | 417 * Uploads a caption track. |
| 430 * | 418 * |
| 431 * [request] - The metadata request object. | 419 * [request] - The metadata request object. |
| 432 * | 420 * |
| 433 * Request parameters: | 421 * Request parameters: |
| 434 * | 422 * |
| 435 * [part] - The part parameter specifies the caption resource parts that the | 423 * [part] - The part parameter specifies the caption resource parts that the |
| 436 * API response will include. Set the parameter value to snippet. | 424 * API response will include. Set the parameter value to snippet. |
| 437 * | 425 * |
| 438 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be | |
| 439 * used for mimicking a request for a certain project ID. | |
| 440 * | |
| 441 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 426 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 442 * be on behalf of | 427 * be on behalf of |
| 443 * | 428 * |
| 444 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 429 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
| 445 * YouTube content partners. | 430 * YouTube content partners. |
| 446 * | 431 * |
| 447 * The onBehalfOfContentOwner parameter indicates that the request's | 432 * The onBehalfOfContentOwner parameter indicates that the request's |
| 448 * authorization credentials identify a YouTube CMS user who is acting on | 433 * authorization credentials identify a YouTube CMS user who is acting on |
| 449 * behalf of the content owner specified in the parameter value. This | 434 * behalf of the content owner specified in the parameter value. This |
| 450 * parameter is intended for YouTube content partners that own and manage many | 435 * parameter is intended for YouTube content partners that own and manage many |
| (...skipping 18 matching lines...) Expand all Loading... |
| 469 * length being known ahead of time is only supported via resumable uploads. | 454 * length being known ahead of time is only supported via resumable uploads. |
| 470 * | 455 * |
| 471 * Completes with a [Caption]. | 456 * Completes with a [Caption]. |
| 472 * | 457 * |
| 473 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 458 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 474 * error. | 459 * error. |
| 475 * | 460 * |
| 476 * If the used [http.Client] completes with an error when making a REST call, | 461 * If the used [http.Client] completes with an error when making a REST call, |
| 477 * this method will complete with the same error. | 462 * this method will complete with the same error. |
| 478 */ | 463 */ |
| 479 async.Future<Caption> insert(Caption request, core.String part, {core.String d
ebugProjectIdOverride, core.String onBehalfOf, core.String onBehalfOfContentOwne
r, core.bool sync, commons.UploadOptions uploadOptions : commons.UploadOptions.D
efault, commons.Media uploadMedia}) { | 464 async.Future<Caption> insert(Caption request, core.String part, {core.String o
nBehalfOf, core.String onBehalfOfContentOwner, core.bool sync, commons.UploadOpt
ions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia})
{ |
| 480 var _url = null; | 465 var _url = null; |
| 481 var _queryParams = new core.Map(); | 466 var _queryParams = new core.Map(); |
| 482 var _uploadMedia = null; | 467 var _uploadMedia = null; |
| 483 var _uploadOptions = null; | 468 var _uploadOptions = null; |
| 484 var _downloadOptions = commons.DownloadOptions.Metadata; | 469 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 485 var _body = null; | 470 var _body = null; |
| 486 | 471 |
| 487 if (request != null) { | 472 if (request != null) { |
| 488 _body = convert.JSON.encode((request).toJson()); | 473 _body = convert.JSON.encode((request).toJson()); |
| 489 } | 474 } |
| 490 if (part == null) { | 475 if (part == null) { |
| 491 throw new core.ArgumentError("Parameter part is required."); | 476 throw new core.ArgumentError("Parameter part is required."); |
| 492 } | 477 } |
| 493 _queryParams["part"] = [part]; | 478 _queryParams["part"] = [part]; |
| 494 if (debugProjectIdOverride != null) { | |
| 495 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; | |
| 496 } | |
| 497 if (onBehalfOf != null) { | 479 if (onBehalfOf != null) { |
| 498 _queryParams["onBehalfOf"] = [onBehalfOf]; | 480 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 499 } | 481 } |
| 500 if (onBehalfOfContentOwner != null) { | 482 if (onBehalfOfContentOwner != null) { |
| 501 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 483 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 502 } | 484 } |
| 503 if (sync != null) { | 485 if (sync != null) { |
| 504 _queryParams["sync"] = ["${sync}"]; | 486 _queryParams["sync"] = ["${sync}"]; |
| 505 } | 487 } |
| 506 | 488 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 534 * | 516 * |
| 535 * Request parameters: | 517 * Request parameters: |
| 536 * | 518 * |
| 537 * [part] - The part parameter specifies a comma-separated list of one or more | 519 * [part] - The part parameter specifies a comma-separated list of one or more |
| 538 * caption resource parts that the API response will include. The part names | 520 * caption resource parts that the API response will include. The part names |
| 539 * that you can include in the parameter value are id and snippet. | 521 * that you can include in the parameter value are id and snippet. |
| 540 * | 522 * |
| 541 * [videoId] - The videoId parameter specifies the YouTube video ID of the | 523 * [videoId] - The videoId parameter specifies the YouTube video ID of the |
| 542 * video for which the API should return caption tracks. | 524 * video for which the API should return caption tracks. |
| 543 * | 525 * |
| 544 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be | |
| 545 * used for mimicking a request for a certain project ID. | |
| 546 * | |
| 547 * [id] - The id parameter specifies a comma-separated list of IDs that | 526 * [id] - The id parameter specifies a comma-separated list of IDs that |
| 548 * identify the caption resources that should be retrieved. Each ID must | 527 * identify the caption resources that should be retrieved. Each ID must |
| 549 * identify a caption track associated with the specified video. | 528 * identify a caption track associated with the specified video. |
| 550 * | 529 * |
| 551 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 530 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 552 * on behalf of. | 531 * on behalf of. |
| 553 * | 532 * |
| 554 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 533 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
| 555 * YouTube content partners. | 534 * YouTube content partners. |
| 556 * | 535 * |
| 557 * The onBehalfOfContentOwner parameter indicates that the request's | 536 * The onBehalfOfContentOwner parameter indicates that the request's |
| 558 * authorization credentials identify a YouTube CMS user who is acting on | 537 * authorization credentials identify a YouTube CMS user who is acting on |
| 559 * behalf of the content owner specified in the parameter value. This | 538 * behalf of the content owner specified in the parameter value. This |
| 560 * parameter is intended for YouTube content partners that own and manage many | 539 * parameter is intended for YouTube content partners that own and manage many |
| 561 * different YouTube channels. It allows content owners to authenticate once | 540 * different YouTube channels. It allows content owners to authenticate once |
| 562 * and get access to all their video and channel data, without having to | 541 * and get access to all their video and channel data, without having to |
| 563 * provide authentication credentials for each individual channel. The actual | 542 * provide authentication credentials for each individual channel. The actual |
| 564 * CMS account that the user authenticates with must be linked to the | 543 * CMS account that the user authenticates with must be linked to the |
| 565 * specified YouTube content owner. | 544 * specified YouTube content owner. |
| 566 * | 545 * |
| 567 * Completes with a [CaptionListResponse]. | 546 * Completes with a [CaptionListResponse]. |
| 568 * | 547 * |
| 569 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 548 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 570 * error. | 549 * error. |
| 571 * | 550 * |
| 572 * If the used [http.Client] completes with an error when making a REST call, | 551 * If the used [http.Client] completes with an error when making a REST call, |
| 573 * this method will complete with the same error. | 552 * this method will complete with the same error. |
| 574 */ | 553 */ |
| 575 async.Future<CaptionListResponse> list(core.String part, core.String videoId,
{core.String debugProjectIdOverride, core.String id, core.String onBehalfOf, cor
e.String onBehalfOfContentOwner}) { | 554 async.Future<CaptionListResponse> list(core.String part, core.String videoId,
{core.String id, core.String onBehalfOf, core.String onBehalfOfContentOwner}) { |
| 576 var _url = null; | 555 var _url = null; |
| 577 var _queryParams = new core.Map(); | 556 var _queryParams = new core.Map(); |
| 578 var _uploadMedia = null; | 557 var _uploadMedia = null; |
| 579 var _uploadOptions = null; | 558 var _uploadOptions = null; |
| 580 var _downloadOptions = commons.DownloadOptions.Metadata; | 559 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 581 var _body = null; | 560 var _body = null; |
| 582 | 561 |
| 583 if (part == null) { | 562 if (part == null) { |
| 584 throw new core.ArgumentError("Parameter part is required."); | 563 throw new core.ArgumentError("Parameter part is required."); |
| 585 } | 564 } |
| 586 _queryParams["part"] = [part]; | 565 _queryParams["part"] = [part]; |
| 587 if (videoId == null) { | 566 if (videoId == null) { |
| 588 throw new core.ArgumentError("Parameter videoId is required."); | 567 throw new core.ArgumentError("Parameter videoId is required."); |
| 589 } | 568 } |
| 590 _queryParams["videoId"] = [videoId]; | 569 _queryParams["videoId"] = [videoId]; |
| 591 if (debugProjectIdOverride != null) { | |
| 592 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; | |
| 593 } | |
| 594 if (id != null) { | 570 if (id != null) { |
| 595 _queryParams["id"] = [id]; | 571 _queryParams["id"] = [id]; |
| 596 } | 572 } |
| 597 if (onBehalfOf != null) { | 573 if (onBehalfOf != null) { |
| 598 _queryParams["onBehalfOf"] = [onBehalfOf]; | 574 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 599 } | 575 } |
| 600 if (onBehalfOfContentOwner != null) { | 576 if (onBehalfOfContentOwner != null) { |
| 601 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 577 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 602 } | 578 } |
| 603 | 579 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 620 * [request] - The metadata request object. | 596 * [request] - The metadata request object. |
| 621 * | 597 * |
| 622 * Request parameters: | 598 * Request parameters: |
| 623 * | 599 * |
| 624 * [part] - The part parameter serves two purposes in this operation. It | 600 * [part] - The part parameter serves two purposes in this operation. It |
| 625 * identifies the properties that the write operation will set as well as the | 601 * identifies the properties that the write operation will set as well as the |
| 626 * properties that the API response will include. Set the property value to | 602 * properties that the API response will include. Set the property value to |
| 627 * snippet if you are updating the track's draft status. Otherwise, set the | 603 * snippet if you are updating the track's draft status. Otherwise, set the |
| 628 * property value to id. | 604 * property value to id. |
| 629 * | 605 * |
| 630 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be | |
| 631 * used for mimicking a request for a certain project ID. | |
| 632 * | |
| 633 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 606 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 634 * be on behalf of | 607 * be on behalf of |
| 635 * | 608 * |
| 636 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 609 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
| 637 * YouTube content partners. | 610 * YouTube content partners. |
| 638 * | 611 * |
| 639 * The onBehalfOfContentOwner parameter indicates that the request's | 612 * The onBehalfOfContentOwner parameter indicates that the request's |
| 640 * authorization credentials identify a YouTube CMS user who is acting on | 613 * authorization credentials identify a YouTube CMS user who is acting on |
| 641 * behalf of the content owner specified in the parameter value. This | 614 * behalf of the content owner specified in the parameter value. This |
| 642 * parameter is intended for YouTube content partners that own and manage many | 615 * parameter is intended for YouTube content partners that own and manage many |
| (...skipping 17 matching lines...) Expand all Loading... |
| 660 * length being known ahead of time is only supported via resumable uploads. | 633 * length being known ahead of time is only supported via resumable uploads. |
| 661 * | 634 * |
| 662 * Completes with a [Caption]. | 635 * Completes with a [Caption]. |
| 663 * | 636 * |
| 664 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 637 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 665 * error. | 638 * error. |
| 666 * | 639 * |
| 667 * If the used [http.Client] completes with an error when making a REST call, | 640 * If the used [http.Client] completes with an error when making a REST call, |
| 668 * this method will complete with the same error. | 641 * this method will complete with the same error. |
| 669 */ | 642 */ |
| 670 async.Future<Caption> update(Caption request, core.String part, {core.String d
ebugProjectIdOverride, core.String onBehalfOf, core.String onBehalfOfContentOwne
r, core.bool sync, commons.UploadOptions uploadOptions : commons.UploadOptions.D
efault, commons.Media uploadMedia}) { | 643 async.Future<Caption> update(Caption request, core.String part, {core.String o
nBehalfOf, core.String onBehalfOfContentOwner, core.bool sync, commons.UploadOpt
ions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia})
{ |
| 671 var _url = null; | 644 var _url = null; |
| 672 var _queryParams = new core.Map(); | 645 var _queryParams = new core.Map(); |
| 673 var _uploadMedia = null; | 646 var _uploadMedia = null; |
| 674 var _uploadOptions = null; | 647 var _uploadOptions = null; |
| 675 var _downloadOptions = commons.DownloadOptions.Metadata; | 648 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 676 var _body = null; | 649 var _body = null; |
| 677 | 650 |
| 678 if (request != null) { | 651 if (request != null) { |
| 679 _body = convert.JSON.encode((request).toJson()); | 652 _body = convert.JSON.encode((request).toJson()); |
| 680 } | 653 } |
| 681 if (part == null) { | 654 if (part == null) { |
| 682 throw new core.ArgumentError("Parameter part is required."); | 655 throw new core.ArgumentError("Parameter part is required."); |
| 683 } | 656 } |
| 684 _queryParams["part"] = [part]; | 657 _queryParams["part"] = [part]; |
| 685 if (debugProjectIdOverride != null) { | |
| 686 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; | |
| 687 } | |
| 688 if (onBehalfOf != null) { | 658 if (onBehalfOf != null) { |
| 689 _queryParams["onBehalfOf"] = [onBehalfOf]; | 659 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 690 } | 660 } |
| 691 if (onBehalfOfContentOwner != null) { | 661 if (onBehalfOfContentOwner != null) { |
| 692 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 662 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 693 } | 663 } |
| 694 if (sync != null) { | 664 if (sync != null) { |
| 695 _queryParams["sync"] = ["${sync}"]; | 665 _queryParams["sync"] = ["${sync}"]; |
| 696 } | 666 } |
| 697 | 667 |
| (...skipping 4348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5046 * resource, the snippet property contains the channelId, title, description, | 5016 * resource, the snippet property contains the channelId, title, description, |
| 5047 * tags, and categoryId properties. As such, if you set part=snippet, the API | 5017 * tags, and categoryId properties. As such, if you set part=snippet, the API |
| 5048 * response will contain all of those properties. | 5018 * response will contain all of those properties. |
| 5049 * | 5019 * |
| 5050 * [chart] - The chart parameter identifies the chart that you want to | 5020 * [chart] - The chart parameter identifies the chart that you want to |
| 5051 * retrieve. | 5021 * retrieve. |
| 5052 * Possible string values are: | 5022 * Possible string values are: |
| 5053 * - "mostPopular" : Return the most popular videos for the specified content | 5023 * - "mostPopular" : Return the most popular videos for the specified content |
| 5054 * region and video category. | 5024 * region and video category. |
| 5055 * | 5025 * |
| 5056 * [debugProjectIdOverride] - The debugProjectIdOverride parameter should be | |
| 5057 * used for mimicking a request for a certain project ID | |
| 5058 * | |
| 5059 * [hl] - The hl parameter instructs the API to retrieve localized resource | 5026 * [hl] - The hl parameter instructs the API to retrieve localized resource |
| 5060 * metadata for a specific application language that the YouTube website | 5027 * metadata for a specific application language that the YouTube website |
| 5061 * supports. The parameter value must be a language code included in the list | 5028 * supports. The parameter value must be a language code included in the list |
| 5062 * returned by the i18nLanguages.list method. | 5029 * returned by the i18nLanguages.list method. |
| 5063 * | 5030 * |
| 5064 * If localized resource details are available in that language, the | 5031 * If localized resource details are available in that language, the |
| 5065 * resource's snippet.localized object will contain the localized values. | 5032 * resource's snippet.localized object will contain the localized values. |
| 5066 * However, if localized details are not available, the snippet.localized | 5033 * However, if localized details are not available, the snippet.localized |
| 5067 * object will contain resource details in the resource's default language. | 5034 * object will contain resource details in the resource's default language. |
| 5068 * | 5035 * |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5118 * restricted to a particular category. | 5085 * restricted to a particular category. |
| 5119 * | 5086 * |
| 5120 * Completes with a [VideoListResponse]. | 5087 * Completes with a [VideoListResponse]. |
| 5121 * | 5088 * |
| 5122 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5089 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 5123 * error. | 5090 * error. |
| 5124 * | 5091 * |
| 5125 * If the used [http.Client] completes with an error when making a REST call, | 5092 * If the used [http.Client] completes with an error when making a REST call, |
| 5126 * this method will complete with the same error. | 5093 * this method will complete with the same error. |
| 5127 */ | 5094 */ |
| 5128 async.Future<VideoListResponse> list(core.String part, {core.String chart, cor
e.String debugProjectIdOverride, core.String hl, core.String id, core.String loc
ale, core.int maxResults, core.String myRating, core.String onBehalfOfContentOwn
er, core.String pageToken, core.String regionCode, core.String videoCategoryId})
{ | 5095 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}) { |
| 5129 var _url = null; | 5096 var _url = null; |
| 5130 var _queryParams = new core.Map(); | 5097 var _queryParams = new core.Map(); |
| 5131 var _uploadMedia = null; | 5098 var _uploadMedia = null; |
| 5132 var _uploadOptions = null; | 5099 var _uploadOptions = null; |
| 5133 var _downloadOptions = commons.DownloadOptions.Metadata; | 5100 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5134 var _body = null; | 5101 var _body = null; |
| 5135 | 5102 |
| 5136 if (part == null) { | 5103 if (part == null) { |
| 5137 throw new core.ArgumentError("Parameter part is required."); | 5104 throw new core.ArgumentError("Parameter part is required."); |
| 5138 } | 5105 } |
| 5139 _queryParams["part"] = [part]; | 5106 _queryParams["part"] = [part]; |
| 5140 if (chart != null) { | 5107 if (chart != null) { |
| 5141 _queryParams["chart"] = [chart]; | 5108 _queryParams["chart"] = [chart]; |
| 5142 } | 5109 } |
| 5143 if (debugProjectIdOverride != null) { | |
| 5144 _queryParams["debugProjectIdOverride"] = [debugProjectIdOverride]; | |
| 5145 } | |
| 5146 if (hl != null) { | 5110 if (hl != null) { |
| 5147 _queryParams["hl"] = [hl]; | 5111 _queryParams["hl"] = [hl]; |
| 5148 } | 5112 } |
| 5149 if (id != null) { | 5113 if (id != null) { |
| 5150 _queryParams["id"] = [id]; | 5114 _queryParams["id"] = [id]; |
| 5151 } | 5115 } |
| 5152 if (locale != null) { | 5116 if (locale != null) { |
| 5153 _queryParams["locale"] = [locale]; | 5117 _queryParams["locale"] = [locale]; |
| 5154 } | 5118 } |
| 5155 if (maxResults != null) { | 5119 if (maxResults != null) { |
| (...skipping 3489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8645 } | 8609 } |
| 8646 if (videoId != null) { | 8610 if (videoId != null) { |
| 8647 _json["videoId"] = videoId; | 8611 _json["videoId"] = videoId; |
| 8648 } | 8612 } |
| 8649 return _json; | 8613 return _json; |
| 8650 } | 8614 } |
| 8651 } | 8615 } |
| 8652 | 8616 |
| 8653 /** | 8617 /** |
| 8654 * Ratings schemes. The country-specific ratings are mostly for movies and | 8618 * Ratings schemes. The country-specific ratings are mostly for movies and |
| 8655 * shows. NEXT_ID: 65 | 8619 * shows. NEXT_ID: 66 |
| 8656 */ | 8620 */ |
| 8657 class ContentRating { | 8621 class ContentRating { |
| 8658 /** | 8622 /** |
| 8659 * Rating system in Australia - Australian Classification Board | 8623 * Rating system in Australia - Australian Classification Board |
| 8660 * Possible string values are: | 8624 * Possible string values are: |
| 8661 * - "acbC" | 8625 * - "acbC" |
| 8662 * - "acbE" | 8626 * - "acbE" |
| 8663 * - "acbG" | 8627 * - "acbG" |
| 8664 * - "acbM" | 8628 * - "acbM" |
| 8665 * - "acbMa15plus" | 8629 * - "acbMa15plus" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8824 * Possible string values are: | 8788 * Possible string values are: |
| 8825 * - "cna12" | 8789 * - "cna12" |
| 8826 * - "cna15" | 8790 * - "cna15" |
| 8827 * - "cna18" | 8791 * - "cna18" |
| 8828 * - "cna18plus" | 8792 * - "cna18plus" |
| 8829 * - "cnaAp" | 8793 * - "cnaAp" |
| 8830 * - "cnaUnrated" | 8794 * - "cnaUnrated" |
| 8831 */ | 8795 */ |
| 8832 core.String cnaRating; | 8796 core.String cnaRating; |
| 8833 /** | 8797 /** |
| 8798 * Rating system in France - Commission de classification cinematographique |
| 8799 * Possible string values are: |
| 8800 * - "cnc10" |
| 8801 * - "cnc12" |
| 8802 * - "cnc16" |
| 8803 * - "cnc18" |
| 8804 * - "cncE" |
| 8805 * - "cncT" |
| 8806 * - "cncUnrated" |
| 8807 */ |
| 8808 core.String cncRating; |
| 8809 /** |
| 8834 * Rating system for France - Conseil sup�rieur de l?audiovisuel | 8810 * Rating system for France - Conseil sup�rieur de l?audiovisuel |
| 8835 * Possible string values are: | 8811 * Possible string values are: |
| 8836 * - "csa10" | 8812 * - "csa10" |
| 8837 * - "csa12" | 8813 * - "csa12" |
| 8838 * - "csa16" | 8814 * - "csa16" |
| 8839 * - "csa18" | 8815 * - "csa18" |
| 8840 * - "csaInterdiction" | 8816 * - "csaInterdiction" |
| 8817 * - "csaT" |
| 8841 * - "csaUnrated" | 8818 * - "csaUnrated" |
| 8842 */ | 8819 */ |
| 8843 core.String csaRating; | 8820 core.String csaRating; |
| 8844 /** | 8821 /** |
| 8845 * Rating system for Luxembourg - Commission de surveillance de la | 8822 * Rating system for Luxembourg - Commission de surveillance de la |
| 8846 * classification des films | 8823 * classification des films |
| 8847 * Possible string values are: | 8824 * Possible string values are: |
| 8848 * - "cscf12" | 8825 * - "cscf12" |
| 8849 * - "cscf16" | 8826 * - "cscf16" |
| 8850 * - "cscf18" | 8827 * - "cscf18" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8931 * Administration | 8908 * Administration |
| 8932 * Possible string values are: | 8909 * Possible string values are: |
| 8933 * - "fcoI" | 8910 * - "fcoI" |
| 8934 * - "fcoIia" | 8911 * - "fcoIia" |
| 8935 * - "fcoIib" | 8912 * - "fcoIib" |
| 8936 * - "fcoIii" | 8913 * - "fcoIii" |
| 8937 * - "fcoUnrated" | 8914 * - "fcoUnrated" |
| 8938 */ | 8915 */ |
| 8939 core.String fcoRating; | 8916 core.String fcoRating; |
| 8940 /** | 8917 /** |
| 8941 * Rating system in France - French Minister of Culture | 8918 * Deprecated use CNC rating instead |
| 8942 * Possible string values are: | 8919 * Possible string values are: |
| 8943 * - "fmoc10" | 8920 * - "fmoc10" |
| 8944 * - "fmoc12" | 8921 * - "fmoc12" |
| 8945 * - "fmoc16" | 8922 * - "fmoc16" |
| 8946 * - "fmoc18" | 8923 * - "fmoc18" |
| 8947 * - "fmocE" | 8924 * - "fmocE" |
| 8948 * - "fmocU" | 8925 * - "fmocU" |
| 8949 * - "fmocUnrated" | 8926 * - "fmocUnrated" |
| 8950 */ | 8927 */ |
| 8951 core.String fmocRating; | 8928 core.String fmocRating; |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9435 } | 9412 } |
| 9436 if (_json.containsKey("chvrsRating")) { | 9413 if (_json.containsKey("chvrsRating")) { |
| 9437 chvrsRating = _json["chvrsRating"]; | 9414 chvrsRating = _json["chvrsRating"]; |
| 9438 } | 9415 } |
| 9439 if (_json.containsKey("cicfRating")) { | 9416 if (_json.containsKey("cicfRating")) { |
| 9440 cicfRating = _json["cicfRating"]; | 9417 cicfRating = _json["cicfRating"]; |
| 9441 } | 9418 } |
| 9442 if (_json.containsKey("cnaRating")) { | 9419 if (_json.containsKey("cnaRating")) { |
| 9443 cnaRating = _json["cnaRating"]; | 9420 cnaRating = _json["cnaRating"]; |
| 9444 } | 9421 } |
| 9422 if (_json.containsKey("cncRating")) { |
| 9423 cncRating = _json["cncRating"]; |
| 9424 } |
| 9445 if (_json.containsKey("csaRating")) { | 9425 if (_json.containsKey("csaRating")) { |
| 9446 csaRating = _json["csaRating"]; | 9426 csaRating = _json["csaRating"]; |
| 9447 } | 9427 } |
| 9448 if (_json.containsKey("cscfRating")) { | 9428 if (_json.containsKey("cscfRating")) { |
| 9449 cscfRating = _json["cscfRating"]; | 9429 cscfRating = _json["cscfRating"]; |
| 9450 } | 9430 } |
| 9451 if (_json.containsKey("czfilmRating")) { | 9431 if (_json.containsKey("czfilmRating")) { |
| 9452 czfilmRating = _json["czfilmRating"]; | 9432 czfilmRating = _json["czfilmRating"]; |
| 9453 } | 9433 } |
| 9454 if (_json.containsKey("djctqRating")) { | 9434 if (_json.containsKey("djctqRating")) { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9631 } | 9611 } |
| 9632 if (chvrsRating != null) { | 9612 if (chvrsRating != null) { |
| 9633 _json["chvrsRating"] = chvrsRating; | 9613 _json["chvrsRating"] = chvrsRating; |
| 9634 } | 9614 } |
| 9635 if (cicfRating != null) { | 9615 if (cicfRating != null) { |
| 9636 _json["cicfRating"] = cicfRating; | 9616 _json["cicfRating"] = cicfRating; |
| 9637 } | 9617 } |
| 9638 if (cnaRating != null) { | 9618 if (cnaRating != null) { |
| 9639 _json["cnaRating"] = cnaRating; | 9619 _json["cnaRating"] = cnaRating; |
| 9640 } | 9620 } |
| 9621 if (cncRating != null) { |
| 9622 _json["cncRating"] = cncRating; |
| 9623 } |
| 9641 if (csaRating != null) { | 9624 if (csaRating != null) { |
| 9642 _json["csaRating"] = csaRating; | 9625 _json["csaRating"] = csaRating; |
| 9643 } | 9626 } |
| 9644 if (cscfRating != null) { | 9627 if (cscfRating != null) { |
| 9645 _json["cscfRating"] = cscfRating; | 9628 _json["cscfRating"] = cscfRating; |
| 9646 } | 9629 } |
| 9647 if (czfilmRating != null) { | 9630 if (czfilmRating != null) { |
| 9648 _json["czfilmRating"] = czfilmRating; | 9631 _json["czfilmRating"] = czfilmRating; |
| 9649 } | 9632 } |
| 9650 if (djctqRating != null) { | 9633 if (djctqRating != null) { |
| (...skipping 5972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15623 * exists, this field is populated with the default snippet. (Read-only) | 15606 * exists, this field is populated with the default snippet. (Read-only) |
| 15624 */ | 15607 */ |
| 15625 VideoLocalization localized; | 15608 VideoLocalization localized; |
| 15626 /** | 15609 /** |
| 15627 * The date and time that the video was uploaded. The value is specified in | 15610 * The date and time that the video was uploaded. The value is specified in |
| 15628 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 15611 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 15629 */ | 15612 */ |
| 15630 core.DateTime publishedAt; | 15613 core.DateTime publishedAt; |
| 15631 /** | 15614 /** |
| 15632 * A list of keyword tags associated with the video. Tags may contain spaces. | 15615 * A list of keyword tags associated with the video. Tags may contain spaces. |
| 15633 * This field is only visible to the video's uploader. | |
| 15634 */ | 15616 */ |
| 15635 core.List<core.String> tags; | 15617 core.List<core.String> tags; |
| 15636 /** | 15618 /** |
| 15637 * A map of thumbnail images associated with the video. For each object in the | 15619 * A map of thumbnail images associated with the video. For each object in the |
| 15638 * map, the key is the name of the thumbnail image, and the value is an object | 15620 * map, the key is the name of the thumbnail image, and the value is an object |
| 15639 * that contains other information about the thumbnail. | 15621 * that contains other information about the thumbnail. |
| 15640 */ | 15622 */ |
| 15641 ThumbnailDetails thumbnails; | 15623 ThumbnailDetails thumbnails; |
| 15642 /** The video's title. */ | 15624 /** The video's title. */ |
| 15643 core.String title; | 15625 core.String title; |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16107 } | 16089 } |
| 16108 if (featuredPlaylistId != null) { | 16090 if (featuredPlaylistId != null) { |
| 16109 _json["featuredPlaylistId"] = featuredPlaylistId; | 16091 _json["featuredPlaylistId"] = featuredPlaylistId; |
| 16110 } | 16092 } |
| 16111 if (textColor != null) { | 16093 if (textColor != null) { |
| 16112 _json["textColor"] = textColor; | 16094 _json["textColor"] = textColor; |
| 16113 } | 16095 } |
| 16114 return _json; | 16096 return _json; |
| 16115 } | 16097 } |
| 16116 } | 16098 } |
| OLD | NEW |