diff --git a/patches/model_utils.patch b/patches/model_utils.patch
deleted file mode 100644
index 840f2c8..0000000
--- a/patches/model_utils.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff --git a/shotstack_sdk/model_utils.py b/shotstack_sdk/model_utils.py
-index bb97211..eb381f6 100644
---- a/shotstack_sdk/model_utils.py
-+++ b/shotstack_sdk/model_utils.py
-@@ -250,6 +250,7 @@ class OpenApiModel(object):
- # Get the name and value of the discriminator property.
- # The discriminator name is obtained from the discriminator meta-data
- # and the discriminator value is obtained from the input data.
-+
- discr_propertyname_py = list(cls.discriminator.keys())[0]
- discr_propertyname_js = cls.attribute_map[discr_propertyname_py]
- if discr_propertyname_js in kwargs:
-@@ -372,7 +373,12 @@ class OpenApiModel(object):
- # The discriminator name is obtained from the discriminator meta-data
- # and the discriminator value is obtained from the input data.
- discr_propertyname_py = list(cls.discriminator.keys())[0]
-+ if not discr_propertyname_py in cls.attribute_map:
-+ return None
-+
- discr_propertyname_js = cls.attribute_map[discr_propertyname_py]
-+
-+
- if discr_propertyname_js in kwargs:
- discr_value = kwargs[discr_propertyname_js]
- elif discr_propertyname_py in kwargs:
diff --git a/patches/render_response_data.patch b/patches/render_response_data.patch
deleted file mode 100644
index 55e08b9..0000000
--- a/patches/render_response_data.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/shotstack_sdk/model/render_response_data.py b/shotstack_sdk/model/render_response_data.py
-index 49d7a25..8696157 100644
---- a/shotstack_sdk/model/render_response_data.py
-+++ b/shotstack_sdk/model/render_response_data.py
-@@ -224,7 +224,7 @@ class RenderResponseData(ModelNormal):
- if var_name not in self.attribute_map and \
- self._configuration is not None and \
- self._configuration.discard_unknown_keys and \
-- self.additional_properties_type is None:
-+ self.additional_properties_type is None or var_value is None:
- # discard variable.
- continue
- setattr(self, var_name, var_value)
diff --git a/setup.py b/setup.py
index a2585b8..fb0c5a6 100644
--- a/setup.py
+++ b/setup.py
@@ -1,17 +1,7 @@
-"""
- Shotstack
-
- Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: https://api.shotstack.io/{version} The Serve API base URL is: https://api.shotstack.io/serve/{version} # noqa: E501
-
- The version of the OpenAPI document: v1
- Generated by: https://openapi-generator.tech
-"""
-
-
from setuptools import setup, find_packages # noqa: H301
NAME = "shotstack-sdk"
-VERSION = "0.2.2"
+VERSION = "0.2.5"
# To install the library, run the following
#
# python setup.py install
@@ -30,13 +20,21 @@
description="Shotstack",
author="Shotstack",
author_email="pypi@shotstack.io",
- url="https://shotstack.io",
- keywords=["Shotstack"],
+ url="https://shotstack.io/product/sdk/python/",
+ keywords=["shotstack", "video", "video editing", "video editor", "video editing api", "video generation", "video manipulation", "ffmpeg"],
python_requires=">=3.6",
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
+ long_description_content_type="text/markdown",
long_description="""\
- Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b> # noqa: E501
+ Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON
+ and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file
+ location when complete.
+
+ For more details visit [shotstack.io](https://shotstack.io) or checkout our
+ [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
+
+ View the GitHub repo for full [SDK documentation](https://github.com/shotstack/shotstack-sdk-python/).
"""
)
diff --git a/shotstack_sdk/model/asset.py b/shotstack_sdk/model/asset.py
index dfec024..5972be3 100644
--- a/shotstack_sdk/model/asset.py
+++ b/shotstack_sdk/model/asset.py
@@ -225,13 +225,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
trim (float): The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached.. [optional] # noqa: E501
- volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] if omitted the server will use the default value of 1 # noqa: E501
+ volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] # noqa: E501
crop (Crop): [optional] # noqa: E501
style (str): Uses a preset to apply font properties and styling to the title.
- `minimal`
- `blockbuster`
- `vogue`
- `sketchy`
- `skinny`
- `chunk`
- `chunkLight`
- `marker`
- `future`
- `subtitle`
. [optional] # noqa: E501
- color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "#ffffff" # noqa: E501
- size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. - `xx-small`
- `x-small`
- `small`
- `medium`
- `large`
- `x-large`
- `xx-large`
. [optional] if omitted the server will use the default value of "medium" # noqa: E501
- background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "transparent" # noqa: E501
- position (str): Place the HTML in one of nine predefined positions within the HTML area. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] if omitted the server will use the default value of "center" # noqa: E501
+ color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
+ size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. - `xx-small`
- `x-small`
- `small`
- `medium`
- `large`
- `x-large`
- `xx-large`
. [optional] # noqa: E501
+ background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
+ position (str): Place the HTML in one of nine predefined positions within the HTML area. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] # noqa: E501
offset (Offset): [optional] # noqa: E501
css (str): The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-css-properties).. [optional] # noqa: E501
width (int): Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.. [optional] # noqa: E501
@@ -341,13 +341,13 @@ def __init__(self, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
trim (float): The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached.. [optional] # noqa: E501
- volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] if omitted the server will use the default value of 1 # noqa: E501
+ volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] # noqa: E501
crop (Crop): [optional] # noqa: E501
style (str): Uses a preset to apply font properties and styling to the title. - `minimal`
- `blockbuster`
- `vogue`
- `sketchy`
- `skinny`
- `chunk`
- `chunkLight`
- `marker`
- `future`
- `subtitle`
. [optional] # noqa: E501
- color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "#ffffff" # noqa: E501
- size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. - `xx-small`
- `x-small`
- `small`
- `medium`
- `large`
- `x-large`
- `xx-large`
. [optional] if omitted the server will use the default value of "medium" # noqa: E501
- background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "transparent" # noqa: E501
- position (str): Place the HTML in one of nine predefined positions within the HTML area. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] if omitted the server will use the default value of "center" # noqa: E501
+ color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
+ size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. - `xx-small`
- `x-small`
- `small`
- `medium`
- `large`
- `x-large`
- `xx-large`
. [optional] # noqa: E501
+ background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
+ position (str): Place the HTML in one of nine predefined positions within the HTML area. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] # noqa: E501
offset (Offset): [optional] # noqa: E501
css (str): The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-css-properties).. [optional] # noqa: E501
width (int): Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.. [optional] # noqa: E501
diff --git a/shotstack_sdk/model/asset_response_attributes.py b/shotstack_sdk/model/asset_response_attributes.py
index 2784a9d..7decff0 100644
--- a/shotstack_sdk/model/asset_response_attributes.py
+++ b/shotstack_sdk/model/asset_response_attributes.py
@@ -89,14 +89,14 @@ def openapi_types():
return {
'id': (str,), # noqa: E501
'owner': (str,), # noqa: E501
- 'filename': (str,), # noqa: E501
'status': (str,), # noqa: E501
- 'created': (str,), # noqa: E501
- 'updated': (str,), # noqa: E501
'region': (str,), # noqa: E501
'render_id': (str,), # noqa: E501
'provider_id': (str,), # noqa: E501
+ 'filename': (str,), # noqa: E501
'url': (str,), # noqa: E501
+ 'created': (str,), # noqa: E501
+ 'updated': (str,), # noqa: E501
}
@cached_property
@@ -107,14 +107,14 @@ def discriminator():
attribute_map = {
'id': 'id', # noqa: E501
'owner': 'owner', # noqa: E501
- 'filename': 'filename', # noqa: E501
'status': 'status', # noqa: E501
- 'created': 'created', # noqa: E501
- 'updated': 'updated', # noqa: E501
'region': 'region', # noqa: E501
'render_id': 'renderId', # noqa: E501
'provider_id': 'providerId', # noqa: E501
+ 'filename': 'filename', # noqa: E501
'url': 'url', # noqa: E501
+ 'created': 'created', # noqa: E501
+ 'updated': 'updated', # noqa: E501
}
read_only_vars = {
@@ -124,16 +124,13 @@ def discriminator():
@classmethod
@convert_js_args_to_python_args
- def _from_openapi_data(cls, id, owner, filename, status, created, updated, *args, **kwargs): # noqa: E501
+ def _from_openapi_data(cls, id, owner, status, *args, **kwargs): # noqa: E501
"""AssetResponseAttributes - a model defined in OpenAPI
Args:
id (str): The unique id of the hosted asset in UUID format.
owner (str): The owner id of the render task.
- filename (str): The asset file name.
status (str): The status of the asset. - `importing` - the asset is being copied to the hosting service
- `ready` - the asset is ready to be served to users
- `failed` - the asset failed to copy or delete
- `deleted` - the asset has been deleted
- created (str): The time the asset was created.
- updated (str): The time the asset status was last updated.
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
@@ -169,7 +166,10 @@ def _from_openapi_data(cls, id, owner, filename, status, created, updated, *args
region (str): The region the asset is hosted, currently only `au` (Australia).. [optional] # noqa: E501
render_id (str): The original render id that created the asset in UUID format. Multiple assets can share the same render id.. [optional] # noqa: E501
provider_id (str): The third party id of an asset transferred to an external provider, i.e. Mux, YouTube or S3. If the provider is Shotstack, the providerID is the same as the asset id.. [optional] # noqa: E501
+ filename (str): The asset file name.. [optional] # noqa: E501
url (str): The asset file name.. [optional] # noqa: E501
+ created (str): The time the asset was created.. [optional] # noqa: E501
+ updated (str): The time the asset status was last updated.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -199,10 +199,7 @@ def _from_openapi_data(cls, id, owner, filename, status, created, updated, *args
self.id = id
self.owner = owner
- self.filename = filename
self.status = status
- self.created = created
- self.updated = updated
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
@@ -223,16 +220,13 @@ def _from_openapi_data(cls, id, owner, filename, status, created, updated, *args
])
@convert_js_args_to_python_args
- def __init__(self, id, owner, filename, status, created, updated, *args, **kwargs): # noqa: E501
+ def __init__(self, id, owner, status, *args, **kwargs): # noqa: E501
"""AssetResponseAttributes - a model defined in OpenAPI
Args:
id (str): The unique id of the hosted asset in UUID format.
owner (str): The owner id of the render task.
- filename (str): The asset file name.
status (str): The status of the asset. - `importing` - the asset is being copied to the hosting service
- `ready` - the asset is ready to be served to users
- `failed` - the asset failed to copy or delete
- `deleted` - the asset has been deleted
- created (str): The time the asset was created.
- updated (str): The time the asset status was last updated.
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
@@ -268,7 +262,10 @@ def __init__(self, id, owner, filename, status, created, updated, *args, **kwarg
region (str): The region the asset is hosted, currently only `au` (Australia).. [optional] # noqa: E501
render_id (str): The original render id that created the asset in UUID format. Multiple assets can share the same render id.. [optional] # noqa: E501
provider_id (str): The third party id of an asset transferred to an external provider, i.e. Mux, YouTube or S3. If the provider is Shotstack, the providerID is the same as the asset id.. [optional] # noqa: E501
+ filename (str): The asset file name.. [optional] # noqa: E501
url (str): The asset file name.. [optional] # noqa: E501
+ created (str): The time the asset was created.. [optional] # noqa: E501
+ updated (str): The time the asset status was last updated.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -296,10 +293,7 @@ def __init__(self, id, owner, filename, status, created, updated, *args, **kwarg
self.id = id
self.owner = owner
- self.filename = filename
self.status = status
- self.created = created
- self.updated = updated
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
diff --git a/shotstack_sdk/model/audio_asset.py b/shotstack_sdk/model/audio_asset.py
index 1e9ac22..26caaf7 100644
--- a/shotstack_sdk/model/audio_asset.py
+++ b/shotstack_sdk/model/audio_asset.py
@@ -152,7 +152,7 @@ def _from_openapi_data(cls, src, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
trim (float): The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the in trim point. The audio will play until the file ends or the Clip length is reached.. [optional] # noqa: E501
- volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] if omitted the server will use the default value of 1 # noqa: E501
+ volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] # noqa: E501
effect (str): The effect to apply to the audio asset - `fadeIn` - fade volume in only
- `fadeOut` - fade volume out only
- `fadeInFadeOut` - fade volume in and out
. [optional] # noqa: E501
"""
@@ -243,7 +243,7 @@ def __init__(self, src, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
trim (float): The start trim point of the audio clip, in seconds (defaults to 0). Audio will start from the in trim point. The audio will play until the file ends or the Clip length is reached.. [optional] # noqa: E501
- volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] if omitted the server will use the default value of 1 # noqa: E501
+ volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] # noqa: E501
effect (str): The effect to apply to the audio asset - `fadeIn` - fade volume in only
- `fadeOut` - fade volume out only
- `fadeInFadeOut` - fade volume in and out
. [optional] # noqa: E501
"""
diff --git a/shotstack_sdk/model/clip.py b/shotstack_sdk/model/clip.py
index 7329034..894d129 100644
--- a/shotstack_sdk/model/clip.py
+++ b/shotstack_sdk/model/clip.py
@@ -207,14 +207,14 @@ def _from_openapi_data(cls, asset, start, length, *args, **kwargs): # noqa: E50
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
- fit (str): Set how the asset should be scaled to fit the viewport using one of the following options: - `cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.
- `contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.
- `crop` - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.
- `none` - preserves the original asset dimensions and does not apply any scaling.
. [optional] if omitted the server will use the default value of "crop" # noqa: E501
+ fit (str): Set how the asset should be scaled to fit the viewport using one of the following options: - `cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.
- `contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.
- `crop` (default) - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.
- `none` - preserves the original asset dimensions and does not apply any scaling.
. [optional] # noqa: E501
scale (float): Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks.. [optional] # noqa: E501
- position (str): Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] if omitted the server will use the default value of "center" # noqa: E501
+ position (str): Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] # noqa: E501
offset (Offset): [optional] # noqa: E501
transition (Transition): [optional] # noqa: E501
effect (str): A motion effect to apply to the Clip. - `zoomIn` - slow zoom in
- `zoomOut` - slow zoom out
- `slideLeft` - slow slide (pan) left
- `slideRight` - slow slide (pan) right
- `slideUp` - slow slide (pan) up
- `slideDown` - slow slide (pan) down
. [optional] # noqa: E501
filter (str): A filter effect to apply to the Clip. - `boost` - boost contrast and saturation
- `contrast` - increase contrast
- `darken` - darken the scene
- `greyscale` - remove colour
- `lighten` - lighten the scene
- `muted` - reduce saturation and contrast
- `invert` - invert colors
. [optional] # noqa: E501
- opacity (float): Sets the opacity of the Clip where 1 is opaque and 0 is transparent.. [optional] if omitted the server will use the default value of 1 # noqa: E501
+ opacity (float): Sets the opacity of the Clip where 1 is opaque and 0 is transparent.. [optional] # noqa: E501
transform (Transformation): [optional] # noqa: E501
"""
@@ -305,14 +305,14 @@ def __init__(self, asset, start, length, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
- fit (str): Set how the asset should be scaled to fit the viewport using one of the following options: - `cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.
- `contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.
- `crop` - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.
- `none` - preserves the original asset dimensions and does not apply any scaling.
. [optional] if omitted the server will use the default value of "crop" # noqa: E501
+ fit (str): Set how the asset should be scaled to fit the viewport using one of the following options: - `cover` - stretch the asset to fill the viewport without maintaining the aspect ratio.
- `contain` - fit the entire asset within the viewport while maintaining the original aspect ratio.
- `crop` (default) - scale the asset to fill the viewport while maintaining the aspect ratio. The asset will be cropped if it exceeds the bounds of the viewport.
- `none` - preserves the original asset dimensions and does not apply any scaling.
. [optional] # noqa: E501
scale (float): Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks.. [optional] # noqa: E501
- position (str): Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] if omitted the server will use the default value of "center" # noqa: E501
+ position (str): Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] # noqa: E501
offset (Offset): [optional] # noqa: E501
transition (Transition): [optional] # noqa: E501
effect (str): A motion effect to apply to the Clip. - `zoomIn` - slow zoom in
- `zoomOut` - slow zoom out
- `slideLeft` - slow slide (pan) left
- `slideRight` - slow slide (pan) right
- `slideUp` - slow slide (pan) up
- `slideDown` - slow slide (pan) down
. [optional] # noqa: E501
filter (str): A filter effect to apply to the Clip. - `boost` - boost contrast and saturation
- `contrast` - increase contrast
- `darken` - darken the scene
- `greyscale` - remove colour
- `lighten` - lighten the scene
- `muted` - reduce saturation and contrast
- `invert` - invert colors
. [optional] # noqa: E501
- opacity (float): Sets the opacity of the Clip where 1 is opaque and 0 is transparent.. [optional] if omitted the server will use the default value of 1 # noqa: E501
+ opacity (float): Sets the opacity of the Clip where 1 is opaque and 0 is transparent.. [optional] # noqa: E501
transform (Transformation): [optional] # noqa: E501
"""
diff --git a/shotstack_sdk/model/destinations.py b/shotstack_sdk/model/destinations.py
index bfaf571..828d121 100644
--- a/shotstack_sdk/model/destinations.py
+++ b/shotstack_sdk/model/destinations.py
@@ -152,7 +152,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
- exclude (bool): Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.. [optional] if omitted the server will use the default value of False # noqa: E501
+ exclude (bool): Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.. [optional] # noqa: E501
options (MuxDestinationOptions): [optional] # noqa: E501
provider (str): The destination to send rendered assets to - set to `mux` for Mux.. [optional] if omitted the server will use the default value of "mux" # noqa: E501
"""
@@ -254,7 +254,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,)
- exclude (bool): Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.. [optional] if omitted the server will use the default value of False # noqa: E501
+ exclude (bool): Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.. [optional] # noqa: E501
options (MuxDestinationOptions): [optional] # noqa: E501
provider (str): The destination to send rendered assets to - set to `mux` for Mux.. [optional] if omitted the server will use the default value of "mux" # noqa: E501
"""
diff --git a/shotstack_sdk/model/edit.py b/shotstack_sdk/model/edit.py
index 194442b..6a3a0a9 100644
--- a/shotstack_sdk/model/edit.py
+++ b/shotstack_sdk/model/edit.py
@@ -162,7 +162,7 @@ def _from_openapi_data(cls, timeline, output, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
merge ([MergeField]): An array of key/value pairs that provides an easy way to create templates with placeholders. The placeholders can be used to find and replace keys with values. For example you can search for the placeholder `{{NAME}}` and replace it with the value `Jane`. . [optional] # noqa: E501
callback (str): An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.io/docs/guide/architecting-an-application/webhooks) for more details.. [optional] # noqa: E501
- disk (str): The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. - `local` - optimized for high speed rendering with up to 512MB storage
- `mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render
. [optional] if omitted the server will use the default value of "local" # noqa: E501
+ disk (str): The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. - `local` - optimized for high speed rendering with up to 512MB storage
- `mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render
. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -252,7 +252,7 @@ def __init__(self, timeline, output, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
merge ([MergeField]): An array of key/value pairs that provides an easy way to create templates with placeholders. The placeholders can be used to find and replace keys with values. For example you can search for the placeholder `{{NAME}}` and replace it with the value `Jane`. . [optional] # noqa: E501
callback (str): An optional webhook callback URL used to receive status notifications when a render completes or fails. See [webhooks](https://shotstack.io/docs/guide/architecting-an-application/webhooks) for more details.. [optional] # noqa: E501
- disk (str): The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. - `local` - optimized for high speed rendering with up to 512MB storage
- `mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render
. [optional] if omitted the server will use the default value of "local" # noqa: E501
+ disk (str): The disk type to use for storing footage and assets for each render. See [disk types](https://shotstack.io/docs/guide/architecting-an-application/disk-types) for more details. - `local` - optimized for high speed rendering with up to 512MB storage
- `mount` - optimized for larger file sizes and longer videos with 5GB for source footage and 512MB for output render
. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
diff --git a/shotstack_sdk/model/flip_transformation.py b/shotstack_sdk/model/flip_transformation.py
index 566c11c..8804f78 100644
--- a/shotstack_sdk/model/flip_transformation.py
+++ b/shotstack_sdk/model/flip_transformation.py
@@ -136,8 +136,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
- horizontal (bool): Flip a clip horizontally.. [optional] if omitted the server will use the default value of False # noqa: E501
- vertical (bool): Flip a clip vertically.. [optional] if omitted the server will use the default value of False # noqa: E501
+ horizontal (bool): Flip a clip horizontally.. [optional] # noqa: E501
+ vertical (bool): Flip a clip vertically.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -219,8 +219,8 @@ 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,)
- horizontal (bool): Flip a clip horizontally.. [optional] if omitted the server will use the default value of False # noqa: E501
- vertical (bool): Flip a clip vertically.. [optional] if omitted the server will use the default value of False # noqa: E501
+ horizontal (bool): Flip a clip horizontally.. [optional] # noqa: E501
+ vertical (bool): Flip a clip vertically.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
diff --git a/shotstack_sdk/model/html_asset.py b/shotstack_sdk/model/html_asset.py
index 9c26514..9464c35 100644
--- a/shotstack_sdk/model/html_asset.py
+++ b/shotstack_sdk/model/html_asset.py
@@ -164,8 +164,8 @@ def _from_openapi_data(cls, html, *args, **kwargs): # noqa: E501
css (str): The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-css-properties).. [optional] # noqa: E501
width (int): Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.. [optional] # noqa: E501
height (int): Set the width of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box.. [optional] # noqa: E501
- background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "transparent" # noqa: E501
- position (str): Place the HTML in one of nine predefined positions within the HTML area. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] if omitted the server will use the default value of "center" # noqa: E501
+ background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
+ position (str): Place the HTML in one of nine predefined positions within the HTML area. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] # noqa: E501
"""
type = kwargs.get('type', "html")
@@ -257,8 +257,8 @@ def __init__(self, html, *args, **kwargs): # noqa: E501
css (str): The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-css-properties).. [optional] # noqa: E501
width (int): Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.. [optional] # noqa: E501
height (int): Set the width of the HTML asset bounding box in pixels. Text and elements will be masked if they exceed the height of the bounding box.. [optional] # noqa: E501
- background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "transparent" # noqa: E501
- position (str): Place the HTML in one of nine predefined positions within the HTML area. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] if omitted the server will use the default value of "center" # noqa: E501
+ background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
+ position (str): Place the HTML in one of nine predefined positions within the HTML area. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] # noqa: E501
"""
type = kwargs.get('type', "html")
diff --git a/shotstack_sdk/model/offset.py b/shotstack_sdk/model/offset.py
index 31701ca..8533a8d 100644
--- a/shotstack_sdk/model/offset.py
+++ b/shotstack_sdk/model/offset.py
@@ -144,8 +144,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
- x (float): Offset an asset on the horizontal axis (left or right), range varies from -1 to 1. Positive numbers move the asset right, negative left. For all assets except titles the distance moved is relative to the width of the viewport - i.e. an X offset of 0.5 will move the asset half the screen width to the right.. [optional] if omitted the server will use the default value of 0 # noqa: E501
- y (float): Offset an asset on the vertical axis (up or down), range varies from -1 to 1. Positive numbers move the asset up, negative down. For all assets except titles the distance moved is relative to the height of the viewport - i.e. an Y offset of 0.5 will move the asset up half the screen height.. [optional] if omitted the server will use the default value of 0 # noqa: E501
+ x (float): Offset an asset on the horizontal axis (left or right), range varies from -1 to 1. Positive numbers move the asset right, negative left. For all assets except titles the distance moved is relative to the width of the viewport - i.e. an X offset of 0.5 will move the asset half the screen width to the right.. [optional] # noqa: E501
+ y (float): Offset an asset on the vertical axis (up or down), range varies from -1 to 1. Positive numbers move the asset up, negative down. For all assets except titles the distance moved is relative to the height of the viewport - i.e. an Y offset of 0.5 will move the asset up half the screen height.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -227,8 +227,8 @@ 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,)
- x (float): Offset an asset on the horizontal axis (left or right), range varies from -1 to 1. Positive numbers move the asset right, negative left. For all assets except titles the distance moved is relative to the width of the viewport - i.e. an X offset of 0.5 will move the asset half the screen width to the right.. [optional] if omitted the server will use the default value of 0 # noqa: E501
- y (float): Offset an asset on the vertical axis (up or down), range varies from -1 to 1. Positive numbers move the asset up, negative down. For all assets except titles the distance moved is relative to the height of the viewport - i.e. an Y offset of 0.5 will move the asset up half the screen height.. [optional] if omitted the server will use the default value of 0 # noqa: E501
+ x (float): Offset an asset on the horizontal axis (left or right), range varies from -1 to 1. Positive numbers move the asset right, negative left. For all assets except titles the distance moved is relative to the width of the viewport - i.e. an X offset of 0.5 will move the asset half the screen width to the right.. [optional] # noqa: E501
+ y (float): Offset an asset on the vertical axis (up or down), range varies from -1 to 1. Positive numbers move the asset up, negative down. For all assets except titles the distance moved is relative to the height of the viewport - i.e. an Y offset of 0.5 will move the asset up half the screen height.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
diff --git a/shotstack_sdk/model/output.py b/shotstack_sdk/model/output.py
index 1fafe72..d41c45c 100644
--- a/shotstack_sdk/model/output.py
+++ b/shotstack_sdk/model/output.py
@@ -217,12 +217,12 @@ def _from_openapi_data(cls, format, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
resolution (str): The output resolution of the video or image. - `preview` - 512px x 288px @ 15fps
- `mobile` - 640px x 360px @ 25fps
- `sd` - 1024px x 576px @ 25fps
- `hd` - 1280px x 720px @ 25fps
- `1080` - 1920px x 1080px @ 25fps
. [optional] # noqa: E501
- aspect_ratio (str): The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are: - `16:9` - regular landscape/horizontal aspect ratio (default)
- `9:16` - vertical/portrait aspect ratio
- `1:1` - square aspect ratio
- `4:5` - short vertical/portrait aspect ratio
- `4:3` - legacy TV aspect ratio
. [optional] # noqa: E501
+ aspect_ratio (str): The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are: - `16:9` (default) - regular landscape/horizontal aspect ratio
- `9:16` - vertical/portrait aspect ratio
- `1:1` - square aspect ratio
- `4:5` - short vertical/portrait aspect ratio
- `4:3` - legacy TV aspect ratio
. [optional] # noqa: E501
size (Size): [optional] # noqa: E501
- fps (float): Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. - `12` - 12fps
- `15` - 15fps
- `24` - 24fps
- `23.976` - 23.976fps
- `25` - 25fps
- `29.97` - 29.97fps
- `30` - 30fps
. [optional] # noqa: E501
+ fps (float): Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. - `12` - 12fps
- `15` - 15fps
- `24` - 24fps
- `23.976` - 23.976fps
- `25` (default) - 25fps
- `29.97` - 29.97fps
- `30` - 30fps
. [optional] # noqa: E501
scale_to (str): Override the resolution and scale the video or image to render at a different size. When using scaleTo the asset should be edited at the resolution dimensions, i.e. use font sizes that look best at HD, then use scaleTo to output the file at SD and the text will be scaled to the correct size. This is useful if you want to create multiple asset sizes. - `preview` - 512px x 288px @ 15fps
- `mobile` - 640px x 360px @ 25fps
- `sd` - 1024px x 576px @25fps
- `hd` - 1280px x 720px @25fps
- `1080` - 1920px x 1080px @25fps
. [optional] # noqa: E501
- quality (str): Adjust the output quality of the video, image or audio. Adjusting quality affects render speed, download speeds and storage requirements due to file size. The default `medium` provides the most optimized choice for all three factors. - `low` - slightly reduced quality, smaller file size
- `medium` - optimized quality, render speeds and file size
- `high` - slightly increased quality, larger file size
. [optional] if omitted the server will use the default value of "medium" # noqa: E501
- repeat (bool): Loop settings for gif files. Set to `true` to loop, `false` to play only once.. [optional] if omitted the server will use the default value of True # noqa: E501
+ quality (str): Adjust the output quality of the video, image or audio. Adjusting quality affects render speed, download speeds and storage requirements due to file size. The default `medium` provides the most optimized choice for all three factors. - `low` - slightly reduced quality, smaller file size
- `medium` (default) - optimized quality, render speeds and file size
- `high` - slightly increased quality, larger file size
. [optional] # noqa: E501
+ repeat (bool): Loop settings for gif files. Set to `true` to loop, `false` to play only once.. [optional] # noqa: E501
range (Range): [optional] # noqa: E501
poster (Poster): [optional] # noqa: E501
thumbnail (Thumbnail): [optional] # noqa: E501
@@ -313,12 +313,12 @@ def __init__(self, format, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
resolution (str): The output resolution of the video or image. - `preview` - 512px x 288px @ 15fps
- `mobile` - 640px x 360px @ 25fps
- `sd` - 1024px x 576px @ 25fps
- `hd` - 1280px x 720px @ 25fps
- `1080` - 1920px x 1080px @ 25fps
. [optional] # noqa: E501
- aspect_ratio (str): The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are: - `16:9` - regular landscape/horizontal aspect ratio (default)
- `9:16` - vertical/portrait aspect ratio
- `1:1` - square aspect ratio
- `4:5` - short vertical/portrait aspect ratio
- `4:3` - legacy TV aspect ratio
. [optional] # noqa: E501
+ aspect_ratio (str): The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are: - `16:9` (default) - regular landscape/horizontal aspect ratio
- `9:16` - vertical/portrait aspect ratio
- `1:1` - square aspect ratio
- `4:5` - short vertical/portrait aspect ratio
- `4:3` - legacy TV aspect ratio
. [optional] # noqa: E501
size (Size): [optional] # noqa: E501
- fps (float): Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. - `12` - 12fps
- `15` - 15fps
- `24` - 24fps
- `23.976` - 23.976fps
- `25` - 25fps
- `29.97` - 29.97fps
- `30` - 30fps
. [optional] # noqa: E501
+ fps (float): Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. - `12` - 12fps
- `15` - 15fps
- `24` - 24fps
- `23.976` - 23.976fps
- `25` (default) - 25fps
- `29.97` - 29.97fps
- `30` - 30fps
. [optional] # noqa: E501
scale_to (str): Override the resolution and scale the video or image to render at a different size. When using scaleTo the asset should be edited at the resolution dimensions, i.e. use font sizes that look best at HD, then use scaleTo to output the file at SD and the text will be scaled to the correct size. This is useful if you want to create multiple asset sizes. - `preview` - 512px x 288px @ 15fps
- `mobile` - 640px x 360px @ 25fps
- `sd` - 1024px x 576px @25fps
- `hd` - 1280px x 720px @25fps
- `1080` - 1920px x 1080px @25fps
. [optional] # noqa: E501
- quality (str): Adjust the output quality of the video, image or audio. Adjusting quality affects render speed, download speeds and storage requirements due to file size. The default `medium` provides the most optimized choice for all three factors. - `low` - slightly reduced quality, smaller file size
- `medium` - optimized quality, render speeds and file size
- `high` - slightly increased quality, larger file size
. [optional] if omitted the server will use the default value of "medium" # noqa: E501
- repeat (bool): Loop settings for gif files. Set to `true` to loop, `false` to play only once.. [optional] if omitted the server will use the default value of True # noqa: E501
+ quality (str): Adjust the output quality of the video, image or audio. Adjusting quality affects render speed, download speeds and storage requirements due to file size. The default `medium` provides the most optimized choice for all three factors. - `low` - slightly reduced quality, smaller file size
- `medium` (default) - optimized quality, render speeds and file size
- `high` - slightly increased quality, larger file size
. [optional] # noqa: E501
+ repeat (bool): Loop settings for gif files. Set to `true` to loop, `false` to play only once.. [optional] # noqa: E501
range (Range): [optional] # noqa: E501
poster (Poster): [optional] # noqa: E501
thumbnail (Thumbnail): [optional] # noqa: E501
diff --git a/shotstack_sdk/model/render_response_data.py b/shotstack_sdk/model/render_response_data.py
index 49d7a25..27e5951 100644
--- a/shotstack_sdk/model/render_response_data.py
+++ b/shotstack_sdk/model/render_response_data.py
@@ -98,16 +98,16 @@ def openapi_types():
'id': (str,), # noqa: E501
'owner': (str,), # noqa: E501
'status': (str,), # noqa: E501
- 'data': (Edit,), # noqa: E501
- 'created': (str,), # noqa: E501
- 'updated': (str,), # noqa: E501
'plan': (str,), # noqa: E501
'error': (str,), # noqa: E501
'duration': (float,), # noqa: E501
'render_time': (float,), # noqa: E501
'url': (str,), # noqa: E501
- 'poster': (str,), # noqa: E501
- 'thumbnail': (str,), # noqa: E501
+ 'poster': (str, none_type,), # noqa: E501
+ 'thumbnail': (str, none_type,), # noqa: E501
+ 'data': (Edit,), # noqa: E501
+ 'created': (str,), # noqa: E501
+ 'updated': (str,), # noqa: E501
}
@cached_property
@@ -119,9 +119,6 @@ def discriminator():
'id': 'id', # noqa: E501
'owner': 'owner', # noqa: E501
'status': 'status', # noqa: E501
- 'data': 'data', # noqa: E501
- 'created': 'created', # noqa: E501
- 'updated': 'updated', # noqa: E501
'plan': 'plan', # noqa: E501
'error': 'error', # noqa: E501
'duration': 'duration', # noqa: E501
@@ -129,6 +126,9 @@ def discriminator():
'url': 'url', # noqa: E501
'poster': 'poster', # noqa: E501
'thumbnail': 'thumbnail', # noqa: E501
+ 'data': 'data', # noqa: E501
+ 'created': 'created', # noqa: E501
+ 'updated': 'updated', # noqa: E501
}
read_only_vars = {
@@ -138,16 +138,13 @@ def discriminator():
@classmethod
@convert_js_args_to_python_args
- def _from_openapi_data(cls, id, owner, status, data, created, updated, *args, **kwargs): # noqa: E501
+ def _from_openapi_data(cls, id, owner, status, *args, **kwargs): # noqa: E501
"""RenderResponseData - a model defined in OpenAPI
Args:
id (str): The id of the render task in UUID format.
owner (str): The owner id of the render task.
status (str): The status of the render task. - `queued` - render is queued waiting to be rendered
- `fetching` - assets are being fetched
- `rendering` - the asset is being rendered
- `saving` - the final asset is being saved to storage
- `done` - the asset is ready to be downloaded
- `failed` - there was an error rendering the asset
- data (Edit):
- created (str): The time the render task was initially queued.
- updated (str): The time the render status was last updated.
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
@@ -185,8 +182,11 @@ def _from_openapi_data(cls, id, owner, status, data, created, updated, *args, **
duration (float): The output video or audio length in seconds.. [optional] # noqa: E501
render_time (float): The time taken to render the asset in milliseconds.. [optional] # noqa: E501
url (str): The URL of the final asset. This will only be available if status is done. This is a temporary URL and will be deleted after 24 hours. By default all assets are copied to the Shotstack hosting and CDN destination.. [optional] # noqa: E501
- poster (str): The URL of the poster image if requested. This will only be available if status is done.. [optional] # noqa: E501
- thumbnail (str): The URL of the thumbnail image if requested. This will only be available if status is done.. [optional] # noqa: E501
+ poster (str, none_type): The URL of the poster image if requested. This will only be available if status is done.. [optional] # noqa: E501
+ thumbnail (str, none_type): The URL of the thumbnail image if requested. This will only be available if status is done.. [optional] # noqa: E501
+ data (Edit): [optional] # noqa: E501
+ created (str): The time the render task was initially queued.. [optional] # noqa: E501
+ updated (str): The time the render status was last updated.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -217,9 +217,6 @@ def _from_openapi_data(cls, id, owner, status, data, created, updated, *args, **
self.id = id
self.owner = owner
self.status = status
- self.data = data
- self.created = created
- self.updated = updated
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
@@ -240,16 +237,13 @@ def _from_openapi_data(cls, id, owner, status, data, created, updated, *args, **
])
@convert_js_args_to_python_args
- def __init__(self, id, owner, status, data, created, updated, *args, **kwargs): # noqa: E501
+ def __init__(self, id, owner, status, *args, **kwargs): # noqa: E501
"""RenderResponseData - a model defined in OpenAPI
Args:
id (str): The id of the render task in UUID format.
owner (str): The owner id of the render task.
status (str): The status of the render task. - `queued` - render is queued waiting to be rendered
- `fetching` - assets are being fetched
- `rendering` - the asset is being rendered
- `saving` - the final asset is being saved to storage
- `done` - the asset is ready to be downloaded
- `failed` - there was an error rendering the asset
- data (Edit):
- created (str): The time the render task was initially queued.
- updated (str): The time the render status was last updated.
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
@@ -287,8 +281,11 @@ def __init__(self, id, owner, status, data, created, updated, *args, **kwargs):
duration (float): The output video or audio length in seconds.. [optional] # noqa: E501
render_time (float): The time taken to render the asset in milliseconds.. [optional] # noqa: E501
url (str): The URL of the final asset. This will only be available if status is done. This is a temporary URL and will be deleted after 24 hours. By default all assets are copied to the Shotstack hosting and CDN destination.. [optional] # noqa: E501
- poster (str): The URL of the poster image if requested. This will only be available if status is done.. [optional] # noqa: E501
- thumbnail (str): The URL of the thumbnail image if requested. This will only be available if status is done.. [optional] # noqa: E501
+ poster (str, none_type): The URL of the poster image if requested. This will only be available if status is done.. [optional] # noqa: E501
+ thumbnail (str, none_type): The URL of the thumbnail image if requested. This will only be available if status is done.. [optional] # noqa: E501
+ data (Edit): [optional] # noqa: E501
+ created (str): The time the render task was initially queued.. [optional] # noqa: E501
+ updated (str): The time the render status was last updated.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -317,9 +314,6 @@ def __init__(self, id, owner, status, data, created, updated, *args, **kwargs):
self.id = id
self.owner = owner
self.status = status
- self.data = data
- self.created = created
- self.updated = updated
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
diff --git a/shotstack_sdk/model/rotate_transformation.py b/shotstack_sdk/model/rotate_transformation.py
index fa01a55..0fef5c4 100644
--- a/shotstack_sdk/model/rotate_transformation.py
+++ b/shotstack_sdk/model/rotate_transformation.py
@@ -134,7 +134,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
- angle (int): The angle to rotate the clip. Can be 0 to 360, or 0 to -360. Using a positive number rotates the clip clockwise, negative numbers counter-clockwise.. [optional] if omitted the server will use the default value of 0 # noqa: E501
+ angle (int): The angle to rotate the clip. Can be 0 to 360, or 0 to -360. Using a positive number rotates the clip clockwise, negative numbers counter-clockwise.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -216,7 +216,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,)
- angle (int): The angle to rotate the clip. Can be 0 to 360, or 0 to -360. Using a positive number rotates the clip clockwise, negative numbers counter-clockwise.. [optional] if omitted the server will use the default value of 0 # noqa: E501
+ angle (int): The angle to rotate the clip. Can be 0 to 360, or 0 to -360. Using a positive number rotates the clip clockwise, negative numbers counter-clockwise.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
diff --git a/shotstack_sdk/model/shotstack_destination.py b/shotstack_sdk/model/shotstack_destination.py
index 0490397..b2d22fc 100644
--- a/shotstack_sdk/model/shotstack_destination.py
+++ b/shotstack_sdk/model/shotstack_destination.py
@@ -139,7 +139,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
- exclude (bool): Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.. [optional] if omitted the server will use the default value of False # noqa: E501
+ exclude (bool): Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.. [optional] # noqa: E501
"""
provider = kwargs.get('provider', "shotstack")
@@ -226,7 +226,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,)
- exclude (bool): Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.. [optional] if omitted the server will use the default value of False # noqa: E501
+ exclude (bool): Set to `true` to opt-out from the Shotstack hosting and CDN service. All files must be downloaded within 24 hours of rendering.. [optional] # noqa: E501
"""
provider = kwargs.get('provider', "shotstack")
diff --git a/shotstack_sdk/model/skew_transformation.py b/shotstack_sdk/model/skew_transformation.py
index c21f4d7..875a69d 100644
--- a/shotstack_sdk/model/skew_transformation.py
+++ b/shotstack_sdk/model/skew_transformation.py
@@ -136,8 +136,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
- x (float): Skew the clip along it's x axis.. [optional] if omitted the server will use the default value of 0 # noqa: E501
- y (float): Skew the clip along it's y axis.. [optional] if omitted the server will use the default value of 0 # noqa: E501
+ x (float): Skew the clip along it's x axis.. [optional] # noqa: E501
+ y (float): Skew the clip along it's y axis.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -219,8 +219,8 @@ 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,)
- x (float): Skew the clip along it's x axis.. [optional] if omitted the server will use the default value of 0 # noqa: E501
- y (float): Skew the clip along it's y axis.. [optional] if omitted the server will use the default value of 0 # noqa: E501
+ x (float): Skew the clip along it's x axis.. [optional] # noqa: E501
+ y (float): Skew the clip along it's y axis.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
diff --git a/shotstack_sdk/model/soundtrack.py b/shotstack_sdk/model/soundtrack.py
index a3c9626..fe6b254 100644
--- a/shotstack_sdk/model/soundtrack.py
+++ b/shotstack_sdk/model/soundtrack.py
@@ -147,7 +147,7 @@ def _from_openapi_data(cls, src, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
effect (str): The effect to apply to the audio file - `fadeIn` - fade volume in only
- `fadeOut` - fade volume out only
- `fadeInFadeOut` - fade volume in and out
. [optional] # noqa: E501
- volume (float): Set the volume for the soundtrack between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] if omitted the server will use the default value of 1 # noqa: E501
+ volume (float): Set the volume for the soundtrack between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -234,7 +234,7 @@ def __init__(self, src, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
effect (str): The effect to apply to the audio file - `fadeIn` - fade volume in only
- `fadeOut` - fade volume out only
- `fadeInFadeOut` - fade volume in and out
. [optional] # noqa: E501
- volume (float): Set the volume for the soundtrack between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] if omitted the server will use the default value of 1 # noqa: E501
+ volume (float): Set the volume for the soundtrack between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
diff --git a/shotstack_sdk/model/template_list_response_item.py b/shotstack_sdk/model/template_list_response_item.py
index 0c6904b..23059a3 100644
--- a/shotstack_sdk/model/template_list_response_item.py
+++ b/shotstack_sdk/model/template_list_response_item.py
@@ -106,14 +106,12 @@ def discriminator():
@classmethod
@convert_js_args_to_python_args
- def _from_openapi_data(cls, id, name, created, updated, *args, **kwargs): # noqa: E501
+ def _from_openapi_data(cls, id, name, *args, **kwargs): # noqa: E501
"""TemplateListResponseItem - a model defined in OpenAPI
Args:
id (str): The unique id of the template in UUID format.
name (str): The template name
- created (str): The time the template was created.
- updated (str): The time the template was last updated.
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
@@ -146,6 +144,8 @@ def _from_openapi_data(cls, id, name, created, updated, *args, **kwargs): # noq
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
+ created (str): The time the template was created.. [optional] # noqa: E501
+ updated (str): The time the template was last updated.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -175,8 +175,6 @@ def _from_openapi_data(cls, id, name, created, updated, *args, **kwargs): # noq
self.id = id
self.name = name
- self.created = created
- self.updated = updated
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
@@ -197,14 +195,12 @@ def _from_openapi_data(cls, id, name, created, updated, *args, **kwargs): # noq
])
@convert_js_args_to_python_args
- def __init__(self, id, name, created, updated, *args, **kwargs): # noqa: E501
+ def __init__(self, id, name, *args, **kwargs): # noqa: E501
"""TemplateListResponseItem - a model defined in OpenAPI
Args:
id (str): The unique id of the template in UUID format.
name (str): The template name
- created (str): The time the template was created.
- updated (str): The time the template was last updated.
Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
@@ -237,6 +233,8 @@ def __init__(self, id, name, created, updated, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
+ created (str): The time the template was created.. [optional] # noqa: E501
+ updated (str): The time the template was last updated.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -264,8 +262,6 @@ def __init__(self, id, name, created, updated, *args, **kwargs): # noqa: E501
self.id = id
self.name = name
- self.created = created
- self.updated = updated
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
diff --git a/shotstack_sdk/model/timeline.py b/shotstack_sdk/model/timeline.py
index 7eb3283..e2ce7c0 100644
--- a/shotstack_sdk/model/timeline.py
+++ b/shotstack_sdk/model/timeline.py
@@ -156,9 +156,9 @@ def _from_openapi_data(cls, tracks, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
soundtrack (Soundtrack): [optional] # noqa: E501
- background (str): A hexadecimal value for the timeline background colour. Defaults to #000000 (black).. [optional] if omitted the server will use the default value of "#000000" # noqa: E501
+ background (str): A hexadecimal value for the timeline background colour. Defaults to #000000 (black).. [optional] # noqa: E501
fonts ([Font]): An array of custom fonts to be downloaded for use by the HTML assets.. [optional] # noqa: E501
- cache (bool): Disable the caching of ingested source footage and assets. See [caching](https://shotstack.io/docs/guide/architecting-an-application/caching) for more details.. [optional] if omitted the server will use the default value of True # noqa: E501
+ cache (bool): Disable the caching of ingested source footage and assets. See [caching](https://shotstack.io/docs/guide/architecting-an-application/caching) for more details.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
@@ -245,9 +245,9 @@ def __init__(self, tracks, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
soundtrack (Soundtrack): [optional] # noqa: E501
- background (str): A hexadecimal value for the timeline background colour. Defaults to #000000 (black).. [optional] if omitted the server will use the default value of "#000000" # noqa: E501
+ background (str): A hexadecimal value for the timeline background colour. Defaults to #000000 (black).. [optional] # noqa: E501
fonts ([Font]): An array of custom fonts to be downloaded for use by the HTML assets.. [optional] # noqa: E501
- cache (bool): Disable the caching of ingested source footage and assets. See [caching](https://shotstack.io/docs/guide/architecting-an-application/caching) for more details.. [optional] if omitted the server will use the default value of True # noqa: E501
+ cache (bool): Disable the caching of ingested source footage and assets. See [caching](https://shotstack.io/docs/guide/architecting-an-application/caching) for more details.. [optional] # noqa: E501
"""
_check_type = kwargs.pop('_check_type', True)
diff --git a/shotstack_sdk/model/title_asset.py b/shotstack_sdk/model/title_asset.py
index 74836d9..f642350 100644
--- a/shotstack_sdk/model/title_asset.py
+++ b/shotstack_sdk/model/title_asset.py
@@ -191,10 +191,10 @@ def _from_openapi_data(cls, text, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
style (str): Uses a preset to apply font properties and styling to the title. - `minimal`
- `blockbuster`
- `vogue`
- `sketchy`
- `skinny`
- `chunk`
- `chunkLight`
- `marker`
- `future`
- `subtitle`
. [optional] # noqa: E501
- color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "#ffffff" # noqa: E501
- size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. - `xx-small`
- `x-small`
- `small`
- `medium`
- `large`
- `x-large`
- `xx-large`
. [optional] if omitted the server will use the default value of "medium" # noqa: E501
+ color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
+ size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. - `xx-small`
- `x-small`
- `small`
- `medium`
- `large`
- `x-large`
- `xx-large`
. [optional] # noqa: E501
background (str): Apply a background color behind the text. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency. Omit to use transparent background.. [optional] # noqa: E501
- position (str): Place the title in one of nine predefined positions of the viewport. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] if omitted the server will use the default value of "center" # noqa: E501
+ position (str): Place the title in one of nine predefined positions of the viewport. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] # noqa: E501
offset (Offset): [optional] # noqa: E501
"""
@@ -285,10 +285,10 @@ def __init__(self, text, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
style (str): Uses a preset to apply font properties and styling to the title. - `minimal`
- `blockbuster`
- `vogue`
- `sketchy`
- `skinny`
- `chunk`
- `chunkLight`
- `marker`
- `future`
- `subtitle`
. [optional] # noqa: E501
- color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "#ffffff" # noqa: E501
- size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. - `xx-small`
- `x-small`
- `small`
- `medium`
- `large`
- `x-large`
- `xx-large`
. [optional] if omitted the server will use the default value of "medium" # noqa: E501
+ color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
+ size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. - `xx-small`
- `x-small`
- `small`
- `medium`
- `large`
- `x-large`
- `xx-large`
. [optional] # noqa: E501
background (str): Apply a background color behind the text. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency. Omit to use transparent background.. [optional] # noqa: E501
- position (str): Place the title in one of nine predefined positions of the viewport. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] if omitted the server will use the default value of "center" # noqa: E501
+ position (str): Place the title in one of nine predefined positions of the viewport. - `top` - top (center)
- `topRight` - top right
- `right` - right (center)
- `bottomRight` - bottom right
- `bottom` - bottom (center)
- `bottomLeft` - bottom left
- `left` - left (center)
- `topLeft` - top left
- `center` - center
. [optional] # noqa: E501
offset (Offset): [optional] # noqa: E501
"""
diff --git a/shotstack_sdk/model_utils.py b/shotstack_sdk/model_utils.py
index bb97211..051028d 100644
--- a/shotstack_sdk/model_utils.py
+++ b/shotstack_sdk/model_utils.py
@@ -372,6 +372,11 @@ def _new_from_openapi_data(cls, *args, **kwargs):
# The discriminator name is obtained from the discriminator meta-data
# and the discriminator value is obtained from the input data.
discr_propertyname_py = list(cls.discriminator.keys())[0]
+
+ # DO NOT REMOVE #
+ if not discr_propertyname_py in cls.attribute_map:
+ return None
+
discr_propertyname_js = cls.attribute_map[discr_propertyname_py]
if discr_propertyname_js in kwargs:
discr_value = kwargs[discr_propertyname_js]