YoutubeInsertVideosCommand constructor

YoutubeInsertVideosCommand()

Implementation

YoutubeInsertVideosCommand() {
  argParser
    ..addOption('part',
        defaultsTo: 'snippet,contentDetails,status',
        help:
            '''The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.

Note that not all parts contain properties that can be set when inserting or updating a video. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response.

The following list contains the part names that you can include in the parameter value:
contentDetails, fileDetails, id, liveStreamingDetails, localizations, player, processingDetails, recordingDetails, snippet, statistics, status, suggestions, topicDetails''')
    ..addOption('notify-subscribers',
        mandatory: true,
        valueHelp: 'bool',
        help:
            'The notifySubscribers parameter indicates whether YouTube should send a notification about the new video to users who subscribe to the video\'s channel. A parameter value of True indicates that subscribers will be notified of newly uploaded videos. However, a channel owner who is uploading many videos might prefer to set the value to False to avoid sending a notification about each new video to the channel\'s subscribers. The default value is True.')
    ..addOption('video-file',
        mandatory: true,
        help: '''Uploaded files must conform to these constraints:

Maximum file size: 128GB
Accepted Media MIME types: video/*, application/octet-stream''')
    ..addOption('body',
        mandatory: true,
        help:
            'Provide a video resource [https://developers.google.com/youtube/v3/docs/videos#resource] in the request body.');
}