Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subtitle in video creation payload #110

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apivideo/model/video_creation_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def openapi_types():
lazy_import()
return {
'title': (str,), # noqa: E501
'subtitle': (str,), # noqa: E501
'description': (str,), # noqa: E501
'source': (str,), # noqa: E501
'public': (bool,), # noqa: E501
Expand All @@ -144,6 +145,7 @@ def discriminator():

attribute_map = {
'title': 'title', # noqa: E501
'subtitle': 'subtitle', # noqa: E501
'description': 'description', # noqa: E501
'source': 'source', # noqa: E501
'public': 'public', # noqa: E501
Expand Down Expand Up @@ -209,6 +211,7 @@ def __init__(self, title, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
subtitle (str): A subtitle for your video.. [optional] # noqa: E501
description (str): A brief description of your video.. [optional] # noqa: E501
source (str): 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] # noqa: E501
public (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] if omitted the server will use the default value of True # noqa: E501
Expand Down
1 change: 1 addition & 0 deletions docs/VideoCreationPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**title** | **str** | The title of your new video. |
**subtitle** | **str** | A subtitle for your video. | [optional]
**description** | **str** | A brief description of your video. | [optional]
**source** | **str** | 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** | **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] if omitted the server will use the default value of True
Expand Down
1 change: 1 addition & 0 deletions docs/VideosApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ with apivideo.AuthenticatedApiClient(__API_KEY__) as api_client:
api_instance = videos_api.VideosApi(api_client)
video_creation_payload = VideoCreationPayload(
title="Maths video",
subtitle="A great subtitle.",
description="A video about string theory.",
source="https://www.myvideo.url.com/video.mp4 OR vi4k0jvEUuaTdRAEjQ4JfOyl",
public=True,
Expand Down
1 change: 1 addition & 0 deletions test/test_videos_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def test_create(self):
kwargs = {
'video_creation_payload': VideoCreationPayload(
title="Maths video",
subtitle="A great subtitle.",
description="A video about string theory.",
source="https://www.myvideo.url.com/video.mp4 OR vi4k0jvEUuaTdRAEjQ4JfOyl",
public=True,
Expand Down
Loading