Skip to content

Commit

Permalink
Merge pull request #17 from apivideo/remove-publishedat-in-creation-p…
Browse files Browse the repository at this point in the history
…ayload

Remove publishedAt in video creation payload
  • Loading branch information
bot-api-video authored Sep 23, 2021
2 parents 6156f64 + 229d240 commit 5aa2253
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 10 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.14"
__version__ = "0.0.15"

# 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.14; )"'
self.user_agent = '"api.video client (python; v:0.0.15; )"'

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.14".\
"SDK Package Version: 0.0.15".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
3 changes: 0 additions & 3 deletions apivideo/model/video_creation_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def openapi_types():
'player_id': (str,), # noqa: E501
'tags': ([str],), # noqa: E501
'metadata': ([Metadata],), # noqa: E501
'published_at': (datetime,), # noqa: E501
}

@cached_property
Expand All @@ -103,7 +102,6 @@ def discriminator():
'player_id': 'playerId', # noqa: E501
'tags': 'tags', # noqa: E501
'metadata': 'metadata', # noqa: E501
'published_at': 'publishedAt', # noqa: E501
}

_composed_schemas = {}
Expand Down Expand Up @@ -163,7 +161,6 @@ def __init__(self, title, *args, **kwargs): # noqa: E501
player_id (str): The unique identification number for your video player.. [optional] # noqa: E501
tags ([str]): A list of tags you want to use to describe your video.. [optional] # noqa: E501
metadata ([Metadata]): A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos.. [optional] # noqa: E501
published_at (datetime): The API uses ISO-8601 format for time, and includes 3 places for milliseconds.. [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down
1 change: 0 additions & 1 deletion docs/VideoCreationPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Name | Type | Description | Notes
**player_id** | **str** | The unique identification number for your video player. | [optional]
**tags** | **[str]** | A list of tags you want to use to describe your video. | [optional]
**metadata** | [**[Metadata]**](Metadata.md) | A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos. | [optional]
**published_at** | **datetime** | The API uses ISO-8601 format for time, and includes 3 places for milliseconds. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 0 additions & 1 deletion docs/VideosApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ with apivideo.AuthenticatedApiClient(__API_KEY__) as api_client:
value="Green",
),
],
published_at=dateutil_parser('2020-07-14T23:36:18.598Z'),
) # VideoCreationPayload | video to create

# example passing only required values which don't have defaults set
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.14"
VERSION = "0.0.15"
# To install the library, run the following
#
# python setup.py install
Expand Down
1 change: 0 additions & 1 deletion test/test_videos_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def test_create(self):
value="Green",
),
],
published_at=dateutil_parser('2020-07-14T23:36:18.598Z'),
),
}
url = '/videos'.format(**kwargs)
Expand Down

0 comments on commit 5aa2253

Please sign in to comment.