Skip to content

Commit

Permalink
Merge pull request #99 from apivideo/add-nullable-to-language-parameter
Browse files Browse the repository at this point in the history
Add nullable property
  • Loading branch information
bot-api-video authored Oct 9, 2024
2 parents 49d2cff + cdbe3a9 commit a7f4922
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 20 deletions.
2 changes: 2 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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`,\
Expand Down Expand Up @@ -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`,\
Expand Down
12 changes: 11 additions & 1 deletion docs/VideoCreationPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`
Expand Down
12 changes: 11 additions & 1 deletion docs/VideoUpdatePayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`
Expand Down
29 changes: 20 additions & 9 deletions model_video_creation_payload.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 20 additions & 9 deletions model_video_update_payload.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7f4922

Please sign in to comment.