Commit ef890f30 authored by Rigel Kent's avatar Rigel Kent
Browse files

Minor update kotlin

parent 2988dcbd
......@@ -14,11 +14,12 @@ Name | Type | Description | Notes
**licence** | **kotlin.String** | Video licence | [optional]
**language** | **kotlin.Int** | Video language | [optional]
**description** | **kotlin.String** | Video description | [optional]
**waitTranscoding** | **kotlin.String** | Whether or not we wait transcoding before publish the video | [optional]
**waitTranscoding** | **kotlin.Boolean** | Whether or not we wait transcoding before publish the video | [optional]
**support** | **kotlin.String** | A text tell the audience how to support the video creator | [optional]
**nsfw** | **kotlin.Boolean** | Whether or not this video contains sensitive content | [optional]
**tags** | **kotlin.collections.Set<kotlin.String>** | Video tags (maximum 5 tags each between 2 and 30 characters) | [optional]
**commentsEnabled** | **kotlin.Boolean** | Enable or disable comments for this video | [optional]
**downloadEnabled** | **kotlin.Boolean** | Enable or disable downloading for this video | [optional]
**originallyPublishedAt** | [**java.time.OffsetDateTime**](java.time.OffsetDateTime.md) | Date when the content was originally published | [optional]
**scheduleUpdate** | [**VideoScheduledUpdate**](VideoScheduledUpdate.md) | | [optional]
......
......@@ -16,11 +16,12 @@ Name | Type | Description | Notes
**licence** | **kotlin.String** | Video licence | [optional]
**language** | **kotlin.String** | Video language | [optional]
**description** | **kotlin.String** | Video description | [optional]
**waitTranscoding** | **kotlin.String** | Whether or not we wait transcoding before publish the video | [optional]
**waitTranscoding** | **kotlin.Boolean** | Whether or not we wait transcoding before publish the video | [optional]
**support** | **kotlin.String** | A text tell the audience how to support the video creator | [optional]
**nsfw** | **kotlin.String** | Whether or not this video contains sensitive content | [optional]
**nsfw** | **kotlin.Boolean** | Whether or not this video contains sensitive content | [optional]
**tags** | **kotlin.Array<kotlin.String>** | Video tags (maximum 5 tags each between 2 and 30 characters) | [optional]
**commentsEnabled** | **kotlin.String** | Enable or disable comments for this video | [optional]
**commentsEnabled** | **kotlin.Boolean** | Enable or disable comments for this video | [optional]
**downloadEnabled** | **kotlin.Boolean** | Enable or disable downloading for this video | [optional]
**scheduleUpdate** | [**VideoScheduledUpdate**](VideoScheduledUpdate.md) | | [optional]
......
......@@ -567,7 +567,7 @@ Configure OAuth2:
<a name="videosImportsPost"></a>
# **videosImportsPost**
> VideoUploadResponse videosImportsPost(channelId, name, torrentfile, targetUrl, magnetUri, thumbnailfile, previewfile, privacy, category, licence, language, description, waitTranscoding, support, nsfw, tags, commentsEnabled, scheduleUpdate)
> VideoUploadResponse videosImportsPost(channelId, name, torrentfile, targetUrl, magnetUri, thumbnailfile, previewfile, privacy, category, licence, language, description, waitTranscoding, support, nsfw, tags, commentsEnabled, downloadEnabled, scheduleUpdate)
Import a video
......@@ -592,14 +592,15 @@ val category : kotlin.String = category_example // kotlin.String | Video categor
val licence : kotlin.String = licence_example // kotlin.String | Video licence
val language : kotlin.String = language_example // kotlin.String | Video language
val description : kotlin.String = description_example // kotlin.String | Video description
val waitTranscoding : kotlin.String = waitTranscoding_example // kotlin.String | Whether or not we wait transcoding before publish the video
val waitTranscoding : kotlin.Boolean = true // kotlin.Boolean | Whether or not we wait transcoding before publish the video
val support : kotlin.String = support_example // kotlin.String | A text tell the audience how to support the video creator
val nsfw : kotlin.String = nsfw_example // kotlin.String | Whether or not this video contains sensitive content
val nsfw : kotlin.Boolean = true // kotlin.Boolean | Whether or not this video contains sensitive content
val tags : kotlin.Array<kotlin.String> = tags_example // kotlin.Array<kotlin.String> | Video tags (maximum 5 tags each between 2 and 30 characters)
val commentsEnabled : kotlin.String = commentsEnabled_example // kotlin.String | Enable or disable comments for this video
val commentsEnabled : kotlin.Boolean = true // kotlin.Boolean | Enable or disable comments for this video
val downloadEnabled : kotlin.Boolean = true // kotlin.Boolean | Enable or disable downloading for this video
val scheduleUpdate : VideoScheduledUpdate = // VideoScheduledUpdate |
try {
val result : VideoUploadResponse = apiInstance.videosImportsPost(channelId, name, torrentfile, targetUrl, magnetUri, thumbnailfile, previewfile, privacy, category, licence, language, description, waitTranscoding, support, nsfw, tags, commentsEnabled, scheduleUpdate)
val result : VideoUploadResponse = apiInstance.videosImportsPost(channelId, name, torrentfile, targetUrl, magnetUri, thumbnailfile, previewfile, privacy, category, licence, language, description, waitTranscoding, support, nsfw, tags, commentsEnabled, downloadEnabled, scheduleUpdate)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoApi#videosImportsPost")
......@@ -626,11 +627,12 @@ Name | Type | Description | Notes
**licence** | **kotlin.String**| Video licence | [optional]
**language** | **kotlin.String**| Video language | [optional]
**description** | **kotlin.String**| Video description | [optional]
**waitTranscoding** | **kotlin.String**| Whether or not we wait transcoding before publish the video | [optional]
**waitTranscoding** | **kotlin.Boolean**| Whether or not we wait transcoding before publish the video | [optional]
**support** | **kotlin.String**| A text tell the audience how to support the video creator | [optional]
**nsfw** | **kotlin.String**| Whether or not this video contains sensitive content | [optional]
**nsfw** | **kotlin.Boolean**| Whether or not this video contains sensitive content | [optional]
**tags** | [**kotlin.Array&lt;kotlin.String&gt;**](kotlin.String.md)| Video tags (maximum 5 tags each between 2 and 30 characters) | [optional]
**commentsEnabled** | **kotlin.String**| Enable or disable comments for this video | [optional]
**commentsEnabled** | **kotlin.Boolean**| Enable or disable comments for this video | [optional]
**downloadEnabled** | **kotlin.Boolean**| Enable or disable downloading for this video | [optional]
**scheduleUpdate** | [**VideoScheduledUpdate**](VideoScheduledUpdate.md)| | [optional]
### Return type
......@@ -773,7 +775,7 @@ No authorization required
<a name="videosUploadPost"></a>
# **videosUploadPost**
> VideoUploadResponse videosUploadPost(videofile, channelId, name, thumbnailfile, previewfile, privacy, category, licence, language, description, waitTranscoding, support, nsfw, tags, commentsEnabled, originallyPublishedAt, scheduleUpdate)
> VideoUploadResponse videosUploadPost(videofile, channelId, name, thumbnailfile, previewfile, privacy, category, licence, language, description, waitTranscoding, support, nsfw, tags, commentsEnabled, downloadEnabled, originallyPublishedAt, scheduleUpdate)
Upload a video
......@@ -794,15 +796,16 @@ val category : kotlin.Int = 56 // kotlin.Int | Video category
val licence : kotlin.String = licence_example // kotlin.String | Video licence
val language : kotlin.Int = 56 // kotlin.Int | Video language
val description : kotlin.String = description_example // kotlin.String | Video description
val waitTranscoding : kotlin.String = waitTranscoding_example // kotlin.String | Whether or not we wait transcoding before publish the video
val waitTranscoding : kotlin.Boolean = true // kotlin.Boolean | Whether or not we wait transcoding before publish the video
val support : kotlin.String = support_example // kotlin.String | A text tell the audience how to support the video creator
val nsfw : kotlin.Boolean = true // kotlin.Boolean | Whether or not this video contains sensitive content
val tags : kotlin.collections.Set<kotlin.String> = tags_example // kotlin.collections.Set<kotlin.String> | Video tags (maximum 5 tags each between 2 and 30 characters)
val commentsEnabled : kotlin.Boolean = true // kotlin.Boolean | Enable or disable comments for this video
val downloadEnabled : kotlin.Boolean = true // kotlin.Boolean | Enable or disable downloading for this video
val originallyPublishedAt : java.time.OffsetDateTime = 2013-10-20T19:20:30+01:00 // java.time.OffsetDateTime | Date when the content was originally published
val scheduleUpdate : VideoScheduledUpdate = // VideoScheduledUpdate |
try {
val result : VideoUploadResponse = apiInstance.videosUploadPost(videofile, channelId, name, thumbnailfile, previewfile, privacy, category, licence, language, description, waitTranscoding, support, nsfw, tags, commentsEnabled, originallyPublishedAt, scheduleUpdate)
val result : VideoUploadResponse = apiInstance.videosUploadPost(videofile, channelId, name, thumbnailfile, previewfile, privacy, category, licence, language, description, waitTranscoding, support, nsfw, tags, commentsEnabled, downloadEnabled, originallyPublishedAt, scheduleUpdate)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoApi#videosUploadPost")
......@@ -827,11 +830,12 @@ Name | Type | Description | Notes
**licence** | **kotlin.String**| Video licence | [optional]
**language** | **kotlin.Int**| Video language | [optional]
**description** | **kotlin.String**| Video description | [optional]
**waitTranscoding** | **kotlin.String**| Whether or not we wait transcoding before publish the video | [optional]
**waitTranscoding** | **kotlin.Boolean**| Whether or not we wait transcoding before publish the video | [optional]
**support** | **kotlin.String**| A text tell the audience how to support the video creator | [optional]
**nsfw** | **kotlin.Boolean**| Whether or not this video contains sensitive content | [optional]
**tags** | [**kotlin.collections.Set&lt;kotlin.String&gt;**](kotlin.String.md)| Video tags (maximum 5 tags each between 2 and 30 characters) | [optional]
**commentsEnabled** | **kotlin.Boolean**| Enable or disable comments for this video | [optional]
**downloadEnabled** | **kotlin.Boolean**| Enable or disable downloading for this video | [optional]
**originallyPublishedAt** | **java.time.OffsetDateTime**| Date when the content was originally published | [optional]
**scheduleUpdate** | [**VideoScheduledUpdate**](VideoScheduledUpdate.md)| | [optional]
......
......@@ -619,6 +619,7 @@ class VideoApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath)
* @param nsfw Whether or not this video contains sensitive content (optional)
* @param tags Video tags (maximum 5 tags each between 2 and 30 characters) (optional)
* @param commentsEnabled Enable or disable comments for this video (optional)
* @param downloadEnabled Enable or disable downloading for this video (optional)
* @param scheduleUpdate (optional)
* @return VideoUploadResponse
* @throws UnsupportedOperationException If the API returns an informational or redirection response
......@@ -627,8 +628,8 @@ class VideoApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath)
*/
@Suppress("UNCHECKED_CAST")
@Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class)
fun videosImportsPost(channelId: kotlin.Int, name: kotlin.String, torrentfile: java.io.File?, targetUrl: kotlin.String?, magnetUri: kotlin.String?, thumbnailfile: java.io.File?, previewfile: java.io.File?, privacy: VideoPrivacySet?, category: kotlin.String?, licence: kotlin.String?, language: kotlin.String?, description: kotlin.String?, waitTranscoding: kotlin.String?, support: kotlin.String?, nsfw: kotlin.String?, tags: kotlin.Array<kotlin.String>?, commentsEnabled: kotlin.String?, scheduleUpdate: VideoScheduledUpdate?) : VideoUploadResponse {
val localVariableBody: kotlin.Any? = mapOf("torrentfile" to torrentfile, "targetUrl" to targetUrl, "magnetUri" to magnetUri, "channelId" to channelId, "thumbnailfile" to thumbnailfile, "previewfile" to previewfile, "privacy" to privacy, "category" to category, "licence" to licence, "language" to language, "description" to description, "waitTranscoding" to waitTranscoding, "support" to support, "nsfw" to nsfw, "name" to name, "tags" to tags, "commentsEnabled" to commentsEnabled, "scheduleUpdate" to scheduleUpdate)
fun videosImportsPost(channelId: kotlin.Int, name: kotlin.String, torrentfile: java.io.File?, targetUrl: kotlin.String?, magnetUri: kotlin.String?, thumbnailfile: java.io.File?, previewfile: java.io.File?, privacy: VideoPrivacySet?, category: kotlin.String?, licence: kotlin.String?, language: kotlin.String?, description: kotlin.String?, waitTranscoding: kotlin.Boolean?, support: kotlin.String?, nsfw: kotlin.Boolean?, tags: kotlin.Array<kotlin.String>?, commentsEnabled: kotlin.Boolean?, downloadEnabled: kotlin.Boolean?, scheduleUpdate: VideoScheduledUpdate?) : VideoUploadResponse {
val localVariableBody: kotlin.Any? = mapOf("torrentfile" to torrentfile, "targetUrl" to targetUrl, "magnetUri" to magnetUri, "channelId" to channelId, "thumbnailfile" to thumbnailfile, "previewfile" to previewfile, "privacy" to privacy, "category" to category, "licence" to licence, "language" to language, "description" to description, "waitTranscoding" to waitTranscoding, "support" to support, "nsfw" to nsfw, "name" to name, "tags" to tags, "commentsEnabled" to commentsEnabled, "downloadEnabled" to downloadEnabled, "scheduleUpdate" to scheduleUpdate)
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf("Content-Type" to "multipart/form-data")
val localVariableConfig = RequestConfig(
......@@ -795,6 +796,7 @@ class VideoApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath)
* @param nsfw Whether or not this video contains sensitive content (optional)
* @param tags Video tags (maximum 5 tags each between 2 and 30 characters) (optional)
* @param commentsEnabled Enable or disable comments for this video (optional)
* @param downloadEnabled Enable or disable downloading for this video (optional)
* @param originallyPublishedAt Date when the content was originally published (optional)
* @param scheduleUpdate (optional)
* @return VideoUploadResponse
......@@ -804,8 +806,8 @@ class VideoApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath)
*/
@Suppress("UNCHECKED_CAST")
@Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class)
fun videosUploadPost(videofile: java.io.File, channelId: kotlin.Int, name: kotlin.String, thumbnailfile: java.io.File?, previewfile: java.io.File?, privacy: VideoPrivacySet?, category: kotlin.Int?, licence: kotlin.String?, language: kotlin.Int?, description: kotlin.String?, waitTranscoding: kotlin.String?, support: kotlin.String?, nsfw: kotlin.Boolean?, tags: kotlin.collections.Set<kotlin.String>?, commentsEnabled: kotlin.Boolean?, originallyPublishedAt: java.time.OffsetDateTime?, scheduleUpdate: VideoScheduledUpdate?) : VideoUploadResponse {
val localVariableBody: kotlin.Any? = mapOf("videofile" to videofile, "channelId" to channelId, "thumbnailfile" to thumbnailfile, "previewfile" to previewfile, "privacy" to privacy, "category" to category, "licence" to licence, "language" to language, "description" to description, "waitTranscoding" to waitTranscoding, "support" to support, "nsfw" to nsfw, "name" to name, "tags" to tags, "commentsEnabled" to commentsEnabled, "originallyPublishedAt" to originallyPublishedAt, "scheduleUpdate" to scheduleUpdate)
fun videosUploadPost(videofile: java.io.File, channelId: kotlin.Int, name: kotlin.String, thumbnailfile: java.io.File?, previewfile: java.io.File?, privacy: VideoPrivacySet?, category: kotlin.Int?, licence: kotlin.String?, language: kotlin.Int?, description: kotlin.String?, waitTranscoding: kotlin.Boolean?, support: kotlin.String?, nsfw: kotlin.Boolean?, tags: kotlin.collections.Set<kotlin.String>?, commentsEnabled: kotlin.Boolean?, downloadEnabled: kotlin.Boolean?, originallyPublishedAt: java.time.OffsetDateTime?, scheduleUpdate: VideoScheduledUpdate?) : VideoUploadResponse {
val localVariableBody: kotlin.Any? = mapOf("videofile" to videofile, "channelId" to channelId, "thumbnailfile" to thumbnailfile, "previewfile" to previewfile, "privacy" to privacy, "category" to category, "licence" to licence, "language" to language, "description" to description, "waitTranscoding" to waitTranscoding, "support" to support, "nsfw" to nsfw, "name" to name, "tags" to tags, "commentsEnabled" to commentsEnabled, "downloadEnabled" to downloadEnabled, "originallyPublishedAt" to originallyPublishedAt, "scheduleUpdate" to scheduleUpdate)
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf("Content-Type" to "multipart/form-data")
val localVariableConfig = RequestConfig(
......
......@@ -32,6 +32,7 @@ import com.squareup.moshi.Json
* @param nsfw Whether or not this video contains sensitive content
* @param tags Video tags (maximum 5 tags each between 2 and 30 characters)
* @param commentsEnabled Enable or disable comments for this video
* @param downloadEnabled Enable or disable downloading for this video
* @param originallyPublishedAt Date when the content was originally published
* @param scheduleUpdate
*/
......@@ -68,7 +69,7 @@ data class InlineObject7 (
val description: kotlin.String? = null,
/* Whether or not we wait transcoding before publish the video */
@Json(name = "waitTranscoding")
val waitTranscoding: kotlin.String? = null,
val waitTranscoding: kotlin.Boolean? = null,
/* A text tell the audience how to support the video creator */
@Json(name = "support")
val support: kotlin.String? = null,
......@@ -81,6 +82,9 @@ data class InlineObject7 (
/* Enable or disable comments for this video */
@Json(name = "commentsEnabled")
val commentsEnabled: kotlin.Boolean? = null,
/* Enable or disable downloading for this video */
@Json(name = "downloadEnabled")
val downloadEnabled: kotlin.Boolean? = null,
/* Date when the content was originally published */
@Json(name = "originallyPublishedAt")
val originallyPublishedAt: java.time.OffsetDateTime? = null,
......
......@@ -34,6 +34,7 @@ import com.squareup.moshi.Json
* @param nsfw Whether or not this video contains sensitive content
* @param tags Video tags (maximum 5 tags each between 2 and 30 characters)
* @param commentsEnabled Enable or disable comments for this video
* @param downloadEnabled Enable or disable downloading for this video
* @param scheduleUpdate
*/
......@@ -75,19 +76,22 @@ data class InlineObject8 (
val description: kotlin.String? = null,
/* Whether or not we wait transcoding before publish the video */
@Json(name = "waitTranscoding")
val waitTranscoding: kotlin.String? = null,
val waitTranscoding: kotlin.Boolean? = null,
/* A text tell the audience how to support the video creator */
@Json(name = "support")
val support: kotlin.String? = null,
/* Whether or not this video contains sensitive content */
@Json(name = "nsfw")
val nsfw: kotlin.String? = null,
val nsfw: kotlin.Boolean? = null,
/* Video tags (maximum 5 tags each between 2 and 30 characters) */
@Json(name = "tags")
val tags: kotlin.Array<kotlin.String>? = null,
/* Enable or disable comments for this video */
@Json(name = "commentsEnabled")
val commentsEnabled: kotlin.String? = null,
val commentsEnabled: kotlin.Boolean? = null,
/* Enable or disable downloading for this video */
@Json(name = "downloadEnabled")
val downloadEnabled: kotlin.Boolean? = null,
@Json(name = "scheduleUpdate")
val scheduleUpdate: VideoScheduledUpdate? = null
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment