diff --git a/api/openapi.yaml b/api/openapi.yaml index 17dbc7b..90c5b49 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -15887,6 +15887,7 @@ components: - vi - zh example: fr + nullable: true type: string transcript: description: "Use this parameter to enable transcription. \n\n- When `true`,\ @@ -16042,6 +16043,7 @@ components: - vi - zh example: fr + nullable: true type: string transcript: description: "Use this parameter to enable transcription. \n\n- When `true`,\ diff --git a/docs/VideoCreationPayload.md b/docs/VideoCreationPayload.md index 98f1e03..6b26626 100644 --- a/docs/VideoCreationPayload.md +++ b/docs/VideoCreationPayload.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **Metadata** | Pointer to [**[]Metadata**](Metadata.md) | A list of key value pairs that you use to provide metadata for your video. | [optional] **Clip** | Pointer to [**VideoClip**](VideoClip.md) | | [optional] **Watermark** | Pointer to [**VideoWatermark**](VideoWatermark.md) | | [optional] -**Language** | Pointer to **string** | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional] +**Language** | Pointer to **NullableString** | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional] **Transcript** | Pointer to **bool** | Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. | [optional] ## Methods @@ -332,6 +332,16 @@ SetLanguage sets Language field to given value. HasLanguage returns a boolean if a field has been set. +### SetLanguageNil + +`func (o *VideoCreationPayload) SetLanguageNil(b bool)` + + SetLanguageNil sets the value for Language to be an explicit nil + +### UnsetLanguage +`func (o *VideoCreationPayload) UnsetLanguage()` + +UnsetLanguage ensures that no value is present for Language, not even an explicit nil ### GetTranscript `func (o *VideoCreationPayload) GetTranscript() bool` diff --git a/docs/VideoUpdatePayload.md b/docs/VideoUpdatePayload.md index 52019d1..c3c2ec2 100644 --- a/docs/VideoUpdatePayload.md +++ b/docs/VideoUpdatePayload.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **Mp4Support** | Pointer to **bool** | Whether the player supports the mp4 format. | [optional] **Tags** | Pointer to **[]string** | A list of terms or words you want to tag the video with. Make sure the list includes all the tags you want as whatever you send in this list will overwrite the existing list for the video. | [optional] **Metadata** | Pointer to [**[]Metadata**](Metadata.md) | A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. | [optional] -**Language** | Pointer to **string** | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional] +**Language** | Pointer to **NullableString** | Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. | [optional] **Transcript** | Pointer to **bool** | Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. | [optional] ## Methods @@ -269,6 +269,16 @@ SetLanguage sets Language field to given value. HasLanguage returns a boolean if a field has been set. +### SetLanguageNil + +`func (o *VideoUpdatePayload) SetLanguageNil(b bool)` + + SetLanguageNil sets the value for Language to be an explicit nil + +### UnsetLanguage +`func (o *VideoUpdatePayload) UnsetLanguage()` + +UnsetLanguage ensures that no value is present for Language, not even an explicit nil ### GetTranscript `func (o *VideoUpdatePayload) GetTranscript() bool` diff --git a/model_video_creation_payload.go b/model_video_creation_payload.go index f84d8a2..98dc33a 100644 --- a/model_video_creation_payload.go +++ b/model_video_creation_payload.go @@ -37,7 +37,7 @@ type VideoCreationPayload struct { Clip *VideoClip `json:"clip,omitempty"` Watermark *VideoWatermark `json:"watermark,omitempty"` // Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. - Language *string `json:"language,omitempty"` + Language *NullableString `json:"language,omitempty"` // Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. Transcript *bool `json:"transcript,omitempty"` } @@ -416,36 +416,47 @@ func (o *VideoCreationPayload) SetWatermark(v VideoWatermark) { o.Watermark = &v } -// GetLanguage returns the Language field value if set, zero value otherwise. +// GetLanguage returns the Language field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VideoCreationPayload) GetLanguage() string { - if o == nil || o.Language == nil { + if o == nil || o.Language.Get() == nil { var ret string return ret } - return *o.Language + return *o.Language.Get() } // GetLanguageOk returns a tuple with the Language field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VideoCreationPayload) GetLanguageOk() (*string, bool) { - if o == nil || o.Language == nil { + if o == nil { return nil, false } - return o.Language, true + return o.Language.Get(), o.Language.IsSet() } // HasLanguage returns a boolean if a field has been set. func (o *VideoCreationPayload) HasLanguage() bool { - if o != nil && o.Language != nil { + if o != nil && o.Language.IsSet() { return true } return false } -// SetLanguage gets a reference to the given string and assigns it to the Language field. +// SetLanguage gets a reference to the given NullableString and assigns it to the Language field. func (o *VideoCreationPayload) SetLanguage(v string) { - o.Language = &v + o.Language.Set(&v) +} + +// SetLanguageNil sets the value for Language to be an explicit nil +func (o *VideoCreationPayload) SetLanguageNil() { + o.Language.Set(nil) +} + +// UnsetLanguage ensures that no value is present for Language, not even an explicit nil +func (o *VideoCreationPayload) UnsetLanguage() { + o.Language.Unset() } // GetTranscript returns the Transcript field value if set, zero value otherwise. diff --git a/model_video_update_payload.go b/model_video_update_payload.go index 8366164..cf074e1 100644 --- a/model_video_update_payload.go +++ b/model_video_update_payload.go @@ -33,7 +33,7 @@ type VideoUpdatePayload struct { // A list (array) of dictionaries where each dictionary contains a key value pair that describes the video. As with tags, you must send the complete list of metadata you want as whatever you send here will overwrite the existing metadata for the video. Metadata *[]Metadata `json:"metadata,omitempty"` // Use this parameter to set the language of the video. When this parameter is set, the API creates a transcript of the video using the language you specify. You must use the [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. `language` is a permanent attribute of the video. You can update it to another language using the [`PATCH /videos/{videoId}`](https://docs.api.video/reference/api/Videos#update-a-video-object) operation. This triggers the API to generate a new transcript using a different language. - Language *string `json:"language,omitempty"` + Language *NullableString `json:"language,omitempty"` // Use this parameter to enable transcription. - When `true`, the API generates a transcript for the video. - The default value is `false`. - If you define a video language using the `language` parameter, the API uses that language to transcribe the video. If you do not define a language, the API detects it based on the video. - When the API generates a transcript, it will be available as a caption for the video. Transcript *bool `json:"transcript,omitempty"` } @@ -322,36 +322,47 @@ func (o *VideoUpdatePayload) SetMetadata(v []Metadata) { o.Metadata = &v } -// GetLanguage returns the Language field value if set, zero value otherwise. +// GetLanguage returns the Language field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VideoUpdatePayload) GetLanguage() string { - if o == nil || o.Language == nil { + if o == nil || o.Language.Get() == nil { var ret string return ret } - return *o.Language + return *o.Language.Get() } // GetLanguageOk returns a tuple with the Language field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *VideoUpdatePayload) GetLanguageOk() (*string, bool) { - if o == nil || o.Language == nil { + if o == nil { return nil, false } - return o.Language, true + return o.Language.Get(), o.Language.IsSet() } // HasLanguage returns a boolean if a field has been set. func (o *VideoUpdatePayload) HasLanguage() bool { - if o != nil && o.Language != nil { + if o != nil && o.Language.IsSet() { return true } return false } -// SetLanguage gets a reference to the given string and assigns it to the Language field. +// SetLanguage gets a reference to the given NullableString and assigns it to the Language field. func (o *VideoUpdatePayload) SetLanguage(v string) { - o.Language = &v + o.Language.Set(&v) +} + +// SetLanguageNil sets the value for Language to be an explicit nil +func (o *VideoUpdatePayload) SetLanguageNil() { + o.Language.Set(nil) +} + +// UnsetLanguage ensures that no value is present for Language, not even an explicit nil +func (o *VideoUpdatePayload) UnsetLanguage() { + o.Language.Unset() } // GetTranscript returns the Transcript field value if set, zero value otherwise.