diff --git a/api/openapi.yaml b/api/openapi.yaml index de2c5bd..ee55442 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -16598,6 +16598,10 @@ components: description: The title of your new video. example: Maths video type: string + subtitle: + description: A subtitle for your video. + example: 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 846e294..889c97c 100644 --- a/docs/VideoCreationPayload.md +++ b/docs/VideoCreationPayload.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Title** | **string** | The title of your new video. | +**Subtitle** | Pointer to **string** | A subtitle for your video. | [optional] **Description** | Pointer to **string** | A brief description of your video. | [optional] **Source** | Pointer to **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** | Pointer to **bool** | 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] [default to true] @@ -59,6 +60,31 @@ and a boolean to check if the value has been set. SetTitle sets Title field to given value. +### GetSubtitle + +`func (o *VideoCreationPayload) GetSubtitle() string` + +GetSubtitle returns the Subtitle field if non-nil, zero value otherwise. + +### GetSubtitleOk + +`func (o *VideoCreationPayload) GetSubtitleOk() (*string, bool)` + +GetSubtitleOk returns a tuple with the Subtitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubtitle + +`func (o *VideoCreationPayload) SetSubtitle(v string)` + +SetSubtitle sets Subtitle field to given value. + +### HasSubtitle + +`func (o *VideoCreationPayload) HasSubtitle() bool` + +HasSubtitle returns a boolean if a field has been set. + ### GetDescription `func (o *VideoCreationPayload) GetDescription() string` diff --git a/model_video_creation_payload.go b/model_video_creation_payload.go index f1047c0..326c388 100644 --- a/model_video_creation_payload.go +++ b/model_video_creation_payload.go @@ -18,6 +18,8 @@ import ( type VideoCreationPayload struct { // The title of your new video. Title string `json:"title"` + // A subtitle for your video. + Subtitle *string `json:"subtitle,omitempty"` // A brief description of your video. Description *string `json:"description,omitempty"` // 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. @@ -100,6 +102,38 @@ func (o *VideoCreationPayload) SetTitle(v string) { o.Title = v } +// GetSubtitle returns the Subtitle field value if set, zero value otherwise. +func (o *VideoCreationPayload) GetSubtitle() string { + if o == nil || o.Subtitle == nil { + var ret string + return ret + } + return *o.Subtitle +} + +// GetSubtitleOk returns a tuple with the Subtitle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VideoCreationPayload) GetSubtitleOk() (*string, bool) { + if o == nil || o.Subtitle == nil { + return nil, false + } + return o.Subtitle, true +} + +// HasSubtitle returns a boolean if a field has been set. +func (o *VideoCreationPayload) HasSubtitle() bool { + if o != nil && o.Subtitle != nil { + return true + } + + return false +} + +// SetSubtitle gets a reference to the given string and assigns it to the Subtitle field. +func (o *VideoCreationPayload) SetSubtitle(v string) { + o.Subtitle = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VideoCreationPayload) GetDescription() string { if o == nil || o.Description == nil {