From 6a518942cec1f58daefd35ec174cdec129f3ccb7 Mon Sep 17 00:00:00 2001 From: olivier-lando Date: Mon, 27 Jan 2025 11:42:00 +0000 Subject: [PATCH] Test CI --- api/openapi.yaml | 4 +++ docs/VideoCreationPayload.md | 1 + docs/VideosApi.md | 1 + .../api/models/VideoCreationPayload.java | 31 +++++++++++++++++-- 4 files changed, 35 insertions(+), 2 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index e55c2fd..c5dbd45 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -16680,6 +16680,10 @@ components: description: The title of your new video. example: Maths video type: string + subtitle: + description: A subtitle of your video. + example: This is a great subtitle. + type: string description: description: A brief description of your video. example: A video about string theory. diff --git a/docs/VideoCreationPayload.md b/docs/VideoCreationPayload.md index 3e12d92..6adcb3c 100644 --- a/docs/VideoCreationPayload.md +++ b/docs/VideoCreationPayload.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **String** | The title of your new video. | +**subtitle** | **String** | A subtitle of your video. | [optional] **description** | **String** | A brief description of your video. | [optional] **source** | **String** | You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create. | [optional] **_public** | **Boolean** | Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery/video-privacy-access-management) | [optional] diff --git a/docs/VideosApi.md b/docs/VideosApi.md index dc8709b..4c637d9 100644 --- a/docs/VideosApi.md +++ b/docs/VideosApi.md @@ -48,6 +48,7 @@ public class Example { VideoCreationPayload videoCreationPayload = new VideoCreationPayload(); // video to create videoCreationPayload.setTitle("Maths video"); // The title of your new video. + videoCreationPayload.setSubtitle("This is a great subtitle."); // A subtitle of your video. videoCreationPayload.setDescription("A video about string theory."); // A brief description of your video. videoCreationPayload.setSource("https://www.myvideo.url.com/video.mp4 OR vi4k0jvEUuaTdRAEjQ4JfOyl"); // You can either add a video already on the web, by entering the URL of the video, or you can also enter the `videoId` of one of the videos you already have on your api.video acccount, and this will generate a copy of your video. Creating a copy of a video can be especially useful if you want to keep your original video and trim or apply a watermark onto the copy you would create. videoCreationPayload.setPublic(true); // Default: True. If set to `false` the video will become private. More information on private videos can be found [here](https://docs.api.video/delivery/video-privacy-access-management) diff --git a/src/main/java/video/api/client/api/models/VideoCreationPayload.java b/src/main/java/video/api/client/api/models/VideoCreationPayload.java index a8fc83a..88d870e 100644 --- a/src/main/java/video/api/client/api/models/VideoCreationPayload.java +++ b/src/main/java/video/api/client/api/models/VideoCreationPayload.java @@ -39,6 +39,10 @@ public class VideoCreationPayload implements Serializable, DeepObject { @SerializedName(SERIALIZED_NAME_TITLE) private String title; + public static final String SERIALIZED_NAME_SUBTITLE = "subtitle"; + @SerializedName(SERIALIZED_NAME_SUBTITLE) + private String subtitle; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; @@ -277,6 +281,27 @@ public void setTitle(String title) { this.title = title; } + public VideoCreationPayload subtitle(String subtitle) { + this.subtitle = subtitle; + return this; + } + + /** + * A subtitle of your video. + * + * @return subtitle + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "This is a great subtitle.", value = "A subtitle of your video.") + + public String getSubtitle() { + return subtitle; + } + + public void setSubtitle(String subtitle) { + this.subtitle = subtitle; + } + public VideoCreationPayload description(String description) { this.description = description; return this; @@ -625,6 +650,7 @@ public boolean equals(Object o) { } VideoCreationPayload videoCreationPayload = (VideoCreationPayload) o; return Objects.equals(this.title, videoCreationPayload.title) + && Objects.equals(this.subtitle, videoCreationPayload.subtitle) && Objects.equals(this.description, videoCreationPayload.description) && Objects.equals(this.source, videoCreationPayload.source) && Objects.equals(this._public, videoCreationPayload._public) @@ -643,8 +669,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(title, description, source, _public, panoramic, mp4Support, playerId, tags, metadata, clip, - watermark, language, transcript, transcriptSummary, transcriptSummaryAttributes); + return Objects.hash(title, subtitle, description, source, _public, panoramic, mp4Support, playerId, tags, + metadata, clip, watermark, language, transcript, transcriptSummary, transcriptSummaryAttributes); } @Override @@ -652,6 +678,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VideoCreationPayload {\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" subtitle: ").append(toIndentedString(subtitle)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" _public: ").append(toIndentedString(_public)).append("\n");