-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bitmovin OpenApi Bot
committed
Oct 15, 2024
1 parent
25cc9ca
commit 00659f0
Showing
566 changed files
with
12,042 additions
and
8,523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
bitmovin_api_sdk/encoding/encodings/streams/captions/cea/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.cea_api import CeaApi | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.scc.scc_api import SccApi | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.srt.srt_api import SrtApi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
bitmovin_api_sdk/encoding/encodings/streams/captions/cea/srt/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.srt.srt_api import SrtApi | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.srt.customdata.customdata_api import CustomdataApi | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.srt.srt_to_cea608708_caption_list_query_params import SrtToCea608708CaptionListQueryParams |
1 change: 1 addition & 0 deletions
1
bitmovin_api_sdk/encoding/encodings/streams/captions/cea/srt/customdata/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.srt.customdata.customdata_api import CustomdataApi |
43 changes: 43 additions & 0 deletions
43
bitmovin_api_sdk/encoding/encodings/streams/captions/cea/srt/customdata/customdata_api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase | ||
from bitmovin_api_sdk.common.poscheck import poscheck_except | ||
from bitmovin_api_sdk.models.custom_data import CustomData | ||
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope | ||
from bitmovin_api_sdk.models.response_error import ResponseError | ||
|
||
|
||
class CustomdataApi(BaseApi): | ||
@poscheck_except(2) | ||
def __init__(self, api_key, tenant_org_id=None, base_url=None, logger=None): | ||
# type: (str, str, str, BitmovinApiLoggerBase) -> None | ||
|
||
super(CustomdataApi, self).__init__( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
def get(self, encoding_id, stream_id, captions_id, **kwargs): | ||
# type: (string_types, string_types, string_types, dict) -> CustomData | ||
"""Embed SRT captions as 608/708 Custom Data | ||
:param encoding_id: Id of the encoding. | ||
:type encoding_id: string_types, required | ||
:param stream_id: Id of the stream. | ||
:type stream_id: string_types, required | ||
:param captions_id: Id of the caption. | ||
:type captions_id: string_types, required | ||
:return: Caption custom data | ||
:rtype: CustomData | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/encodings/{encoding_id}/streams/{stream_id}/captions/608-708/srt/{captions_id}/customData', | ||
path_params={'encoding_id': encoding_id, 'stream_id': stream_id, 'captions_id': captions_id}, | ||
type=CustomData, | ||
**kwargs | ||
) |
119 changes: 119 additions & 0 deletions
119
bitmovin_api_sdk/encoding/encodings/streams/captions/cea/srt/srt_api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase | ||
from bitmovin_api_sdk.common.poscheck import poscheck_except | ||
from bitmovin_api_sdk.models.bitmovin_response import BitmovinResponse | ||
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope | ||
from bitmovin_api_sdk.models.response_error import ResponseError | ||
from bitmovin_api_sdk.models.srt_to_cea608708_caption import SrtToCea608708Caption | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.srt.customdata.customdata_api import CustomdataApi | ||
from bitmovin_api_sdk.encoding.encodings.streams.captions.cea.srt.srt_to_cea608708_caption_list_query_params import SrtToCea608708CaptionListQueryParams | ||
|
||
|
||
class SrtApi(BaseApi): | ||
@poscheck_except(2) | ||
def __init__(self, api_key, tenant_org_id=None, base_url=None, logger=None): | ||
# type: (str, str, str, BitmovinApiLoggerBase) -> None | ||
|
||
super(SrtApi, self).__init__( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
self.customdata = CustomdataApi( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
def create(self, encoding_id, stream_id, srt_to_cea608708_caption, **kwargs): | ||
# type: (string_types, string_types, SrtToCea608708Caption, dict) -> SrtToCea608708Caption | ||
"""Embed SRT captions as 608/708 into Stream | ||
:param encoding_id: Id of the encoding. | ||
:type encoding_id: string_types, required | ||
:param stream_id: Id of the stream. | ||
:type stream_id: string_types, required | ||
:param srt_to_cea608708_caption: The SRT captions to be embedded as 607/708 into Stream | ||
:type srt_to_cea608708_caption: SrtToCea608708Caption, required | ||
:return: Caption resource | ||
:rtype: SrtToCea608708Caption | ||
""" | ||
|
||
return self.api_client.post( | ||
'/encoding/encodings/{encoding_id}/streams/{stream_id}/captions/608-708/srt', | ||
srt_to_cea608708_caption, | ||
path_params={'encoding_id': encoding_id, 'stream_id': stream_id}, | ||
type=SrtToCea608708Caption, | ||
**kwargs | ||
) | ||
|
||
def delete(self, encoding_id, stream_id, captions_id, **kwargs): | ||
# type: (string_types, string_types, string_types, dict) -> BitmovinResponse | ||
"""Delete SRT captions as 608/708 from Stream | ||
:param encoding_id: Id of the encoding. | ||
:type encoding_id: string_types, required | ||
:param stream_id: Id of the stream. | ||
:type stream_id: string_types, required | ||
:param captions_id: Id of the caption. | ||
:type captions_id: string_types, required | ||
:return: Id of the caption | ||
:rtype: BitmovinResponse | ||
""" | ||
|
||
return self.api_client.delete( | ||
'/encoding/encodings/{encoding_id}/streams/{stream_id}/captions/608-708/srt/{captions_id}', | ||
path_params={'encoding_id': encoding_id, 'stream_id': stream_id, 'captions_id': captions_id}, | ||
type=BitmovinResponse, | ||
**kwargs | ||
) | ||
|
||
def get(self, encoding_id, stream_id, captions_id, **kwargs): | ||
# type: (string_types, string_types, string_types, dict) -> SrtToCea608708Caption | ||
"""Embed SRT captions as 608/708 Details | ||
:param encoding_id: Id of the encoding. | ||
:type encoding_id: string_types, required | ||
:param stream_id: Id of the stream. | ||
:type stream_id: string_types, required | ||
:param captions_id: Id of the caption. | ||
:type captions_id: string_types, required | ||
:return: Caption | ||
:rtype: SrtToCea608708Caption | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/encodings/{encoding_id}/streams/{stream_id}/captions/608-708/srt/{captions_id}', | ||
path_params={'encoding_id': encoding_id, 'stream_id': stream_id, 'captions_id': captions_id}, | ||
type=SrtToCea608708Caption, | ||
**kwargs | ||
) | ||
|
||
def list(self, encoding_id, stream_id, query_params=None, **kwargs): | ||
# type: (string_types, string_types, SrtToCea608708CaptionListQueryParams, dict) -> SrtToCea608708Caption | ||
"""List SRT captions as 608/708 from Stream | ||
:param encoding_id: Id of the encoding. | ||
:type encoding_id: string_types, required | ||
:param stream_id: Id of the stream. | ||
:type stream_id: string_types, required | ||
:param query_params: Query parameters | ||
:type query_params: SrtToCea608708CaptionListQueryParams | ||
:return: List of caption configurations | ||
:rtype: SrtToCea608708Caption | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/encodings/{encoding_id}/streams/{stream_id}/captions/608-708/srt', | ||
path_params={'encoding_id': encoding_id, 'stream_id': stream_id}, | ||
query_params=query_params, | ||
pagination_response=True, | ||
type=SrtToCea608708Caption, | ||
**kwargs | ||
) |
25 changes: 25 additions & 0 deletions
25
...encoding/encodings/streams/captions/cea/srt/srt_to_cea608708_caption_list_query_params.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class SrtToCea608708CaptionListQueryParams(object): | ||
def __init__(self, offset=None, limit=None): | ||
# type: (int, int) -> None | ||
super(SrtToCea608708CaptionListQueryParams, self).__init__() | ||
|
||
self.offset = offset | ||
self.limit = limit | ||
|
||
@property | ||
def openapi_types(self): | ||
types = { | ||
'offset': 'int', | ||
'limit': 'int' | ||
} | ||
|
||
return types | ||
|
||
@property | ||
def attribute_map(self): | ||
attributes = { | ||
'offset': 'offset', | ||
'limit': 'limit' | ||
} | ||
|
||
return attributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from bitmovin_api_sdk.encoding.templates.templates_api import TemplatesApi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import absolute_import | ||
|
||
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase | ||
from bitmovin_api_sdk.common.poscheck import poscheck_except | ||
from bitmovin_api_sdk.models.encoding_template_request import EncodingTemplateRequest | ||
from bitmovin_api_sdk.models.encoding_template_start_response import EncodingTemplateStartResponse | ||
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope | ||
from bitmovin_api_sdk.models.response_error import ResponseError | ||
|
||
|
||
class TemplatesApi(BaseApi): | ||
@poscheck_except(2) | ||
def __init__(self, api_key, tenant_org_id=None, base_url=None, logger=None): | ||
# type: (str, str, str, BitmovinApiLoggerBase) -> None | ||
|
||
super(TemplatesApi, self).__init__( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
def start(self, encoding_template_request, **kwargs): | ||
# type: (object, dict) -> EncodingTemplateStartResponse | ||
"""BETA: Start an Encoding defined with an Encoding Template | ||
:param encoding_template_request: The Encoding Template to start an Encoding from | ||
:type encoding_template_request: EncodingTemplateRequest, required | ||
:return: | ||
:rtype: EncodingTemplateStartResponse | ||
""" | ||
|
||
return self.api_client.post( | ||
'/encoding/templates/start', | ||
encoding_template_request, | ||
type=EncodingTemplateStartResponse, | ||
**kwargs | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# coding: utf-8 | ||
|
||
|
||
from six import string_types, iteritems | ||
from bitmovin_api_sdk.common.poscheck import poscheck_model | ||
import pprint | ||
|
||
|
||
class EncodingTemplateRequest(object): | ||
|
||
def to_dict(self): | ||
"""Returns the model properties as a dict""" | ||
result = {} | ||
|
||
return result | ||
|
||
def to_str(self): | ||
"""Returns the string representation of the model""" | ||
return pprint.pformat(self.to_dict()) | ||
|
||
def __repr__(self): | ||
"""For `print` and `pprint`""" | ||
return self.to_str() | ||
|
||
def __eq__(self, other): | ||
"""Returns true if both objects are equal""" | ||
if not isinstance(other, EncodingTemplateRequest): | ||
return False | ||
|
||
return self.__dict__ == other.__dict__ | ||
|
||
def __ne__(self, other): | ||
"""Returns true if both objects are not equal""" | ||
return not self == other |
Oops, something went wrong.