Skip to content

Commit

Permalink
Merge pull request #20 from apivideo/fix-python-get-status-error
Browse files Browse the repository at this point in the history
fix: add 'type' attribute in getStatus qualities
  • Loading branch information
bot-api-video authored Oct 4, 2021
2 parents 4662ef5 + 32fe708 commit 3457c47
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apivideo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""


__version__ = "0.0.15"
__version__ = "0.0.16"

# import ApiVideoClient
from apivideo.auth_api_client import AuthenticatedApiClient
Expand Down
2 changes: 1 addition & 1 deletion apivideo/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = '"api.video client (python; v:0.0.15; )"'
self.user_agent = '"api.video client (python; v:0.0.16; )"'

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion apivideo/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1\n"\
"SDK Package Version: 0.0.15".\
"SDK Package Version: 0.0.16".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
7 changes: 7 additions & 0 deletions apivideo/model/quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class Quality(ModelNormal):
"""

allowed_values = {
('type',): {
'HLS': "hls",
'MP4': "mp4",
},
('quality',): {
'240P': "240p",
'360P': "360p",
Expand Down Expand Up @@ -85,6 +89,7 @@ def openapi_types():
and the value is attribute type.
"""
return {
'type': (str,), # noqa: E501
'quality': (str,), # noqa: E501
'status': (str,), # noqa: E501
}
Expand All @@ -95,6 +100,7 @@ def discriminator():


attribute_map = {
'type': 'type', # noqa: E501
'quality': 'quality', # noqa: E501
'status': 'status', # noqa: E501
}
Expand Down Expand Up @@ -145,6 +151,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
type (str): The type of video (hls or mp4).. [optional] # noqa: E501
quality (str): The quality of the video you have, in pixels. Choices include 360p, 480p, 720p, 1080p, and 2160p.. [optional] # noqa: E501
status (str): The status of your video. Statuses include waiting - the video is waiting to be encoded. encoding - the video is in the process of being encoded. encoded - the video was successfully encoded. failed - the video failed to be encoded.. [optional] # noqa: E501
"""
Expand Down
1 change: 1 addition & 0 deletions docs/Quality.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **str** | The type of video (hls or mp4). | [optional]
**quality** | **str** | The quality of the video you have, in pixels. Choices include 360p, 480p, 720p, 1080p, and 2160p. | [optional]
**status** | **str** | The status of your video. Statuses include waiting - the video is waiting to be encoded. encoding - the video is in the process of being encoded. encoded - the video was successfully encoded. failed - the video failed to be encoded. | [optional]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "api.video"
VERSION = "0.0.15"
VERSION = "0.0.16"
# To install the library, run the following
#
# python setup.py install
Expand Down

0 comments on commit 3457c47

Please sign in to comment.