-
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
Nov 19, 2024
1 parent
1e25e08
commit 369f62e
Showing
73 changed files
with
8,802 additions
and
304 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from bitmovin_api_sdk.encoding.live.live_api import LiveApi | ||
from bitmovin_api_sdk.encoding.live.stream_keys.stream_keys_api import StreamKeysApi | ||
from bitmovin_api_sdk.encoding.live.standby_pools.standby_pools_api import StandbyPoolsApi |
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,4 @@ | ||
from bitmovin_api_sdk.encoding.live.standby_pools.standby_pools_api import StandbyPoolsApi | ||
from bitmovin_api_sdk.encoding.live.standby_pools.actions.actions_api import ActionsApi | ||
from bitmovin_api_sdk.encoding.live.standby_pools.encodings.encodings_api import EncodingsApi | ||
from bitmovin_api_sdk.encoding.live.standby_pools.logs.logs_api import LogsApi |
1 change: 1 addition & 0 deletions
1
bitmovin_api_sdk/encoding/live/standby_pools/actions/__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.live.standby_pools.actions.actions_api import ActionsApi |
56 changes: 56 additions & 0 deletions
56
bitmovin_api_sdk/encoding/live/standby_pools/actions/actions_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,56 @@ | ||
# 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.live_standby_pool_encoding import LiveStandbyPoolEncoding | ||
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope | ||
from bitmovin_api_sdk.models.response_error import ResponseError | ||
|
||
|
||
class ActionsApi(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(ActionsApi, self).__init__( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
def acquire_encoding(self, pool_id, **kwargs): | ||
# type: (string_types, dict) -> LiveStandbyPoolEncoding | ||
"""Acquire an encoding from a standby pool | ||
:param pool_id: Id of the standby pool | ||
:type pool_id: string_types, required | ||
:return: | ||
:rtype: LiveStandbyPoolEncoding | ||
""" | ||
|
||
return self.api_client.post( | ||
'/encoding/live/standby-pools/{pool_id}/actions/acquire-encoding', | ||
path_params={'pool_id': pool_id}, | ||
type=LiveStandbyPoolEncoding, | ||
**kwargs | ||
) | ||
|
||
def delete_error_encodings(self, pool_id, **kwargs): | ||
# type: (string_types, dict) -> LiveStandbyPoolEncoding | ||
"""Delete error encodings from the standby pool | ||
:param pool_id: Id of the standby pool | ||
:type pool_id: string_types, required | ||
:return: | ||
:rtype: LiveStandbyPoolEncoding | ||
""" | ||
|
||
return self.api_client.post( | ||
'/encoding/live/standby-pools/{pool_id}/actions/delete-error-encodings', | ||
path_params={'pool_id': pool_id}, | ||
type=LiveStandbyPoolEncoding, | ||
**kwargs | ||
) |
2 changes: 2 additions & 0 deletions
2
bitmovin_api_sdk/encoding/live/standby_pools/encodings/__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,2 @@ | ||
from bitmovin_api_sdk.encoding.live.standby_pools.encodings.encodings_api import EncodingsApi | ||
from bitmovin_api_sdk.encoding.live.standby_pools.encodings.live_standby_pool_encoding_list_query_params import LiveStandbyPoolEncodingListQueryParams |
64 changes: 64 additions & 0 deletions
64
bitmovin_api_sdk/encoding/live/standby_pools/encodings/encodings_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,64 @@ | ||
# 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.live_standby_pool_encoding import LiveStandbyPoolEncoding | ||
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope | ||
from bitmovin_api_sdk.models.response_error import ResponseError | ||
from bitmovin_api_sdk.encoding.live.standby_pools.encodings.live_standby_pool_encoding_list_query_params import LiveStandbyPoolEncodingListQueryParams | ||
|
||
|
||
class EncodingsApi(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(EncodingsApi, self).__init__( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
def delete(self, pool_id, id, **kwargs): | ||
# type: (string_types, string_types, dict) -> BitmovinResponse | ||
"""Delete encoding from pool by id | ||
:param pool_id: Id of the standby pool | ||
:type pool_id: string_types, required | ||
:param id: Id of the standby pool encoding | ||
:type id: string_types, required | ||
:return: Id of the encoding from the pool that was deleted | ||
:rtype: BitmovinResponse | ||
""" | ||
|
||
return self.api_client.delete( | ||
'/encoding/live/standby-pools/{pool_id}/encodings/{id}', | ||
path_params={'pool_id': pool_id, 'id': id}, | ||
type=BitmovinResponse, | ||
**kwargs | ||
) | ||
|
||
def list(self, pool_id, query_params=None, **kwargs): | ||
# type: (string_types, LiveStandbyPoolEncodingListQueryParams, dict) -> LiveStandbyPoolEncoding | ||
"""List encodings from a standby pool | ||
:param pool_id: Id of the standby pool | ||
:type pool_id: string_types, required | ||
:param query_params: Query parameters | ||
:type query_params: LiveStandbyPoolEncodingListQueryParams | ||
:return: Standby pool encodings list response | ||
:rtype: LiveStandbyPoolEncoding | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/live/standby-pools/{pool_id}/encodings', | ||
path_params={'pool_id': pool_id}, | ||
query_params=query_params, | ||
pagination_response=True, | ||
type=LiveStandbyPoolEncoding, | ||
**kwargs | ||
) |
31 changes: 31 additions & 0 deletions
31
...sdk/encoding/live/standby_pools/encodings/live_standby_pool_encoding_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,31 @@ | ||
class LiveStandbyPoolEncodingListQueryParams(object): | ||
def __init__(self, offset=None, limit=None, sort=None, status=None): | ||
# type: (int, int, string_types, string_types) -> None | ||
super(LiveStandbyPoolEncodingListQueryParams, self).__init__() | ||
|
||
self.offset = offset | ||
self.limit = limit | ||
self.sort = sort | ||
self.status = status | ||
|
||
@property | ||
def openapi_types(self): | ||
types = { | ||
'offset': 'int', | ||
'limit': 'int', | ||
'sort': 'string_types', | ||
'status': 'string_types' | ||
} | ||
|
||
return types | ||
|
||
@property | ||
def attribute_map(self): | ||
attributes = { | ||
'offset': 'offset', | ||
'limit': 'limit', | ||
'sort': 'sort', | ||
'status': 'status' | ||
} | ||
|
||
return attributes |
2 changes: 2 additions & 0 deletions
2
bitmovin_api_sdk/encoding/live/standby_pools/logs/__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,2 @@ | ||
from bitmovin_api_sdk.encoding.live.standby_pools.logs.logs_api import LogsApi | ||
from bitmovin_api_sdk.encoding.live.standby_pools.logs.live_standby_pool_event_log_list_query_params import LiveStandbyPoolEventLogListQueryParams |
31 changes: 31 additions & 0 deletions
31
...api_sdk/encoding/live/standby_pools/logs/live_standby_pool_event_log_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,31 @@ | ||
class LiveStandbyPoolEventLogListQueryParams(object): | ||
def __init__(self, offset=None, limit=None, sort=None, event_type=None): | ||
# type: (int, int, string_types, string_types) -> None | ||
super(LiveStandbyPoolEventLogListQueryParams, self).__init__() | ||
|
||
self.offset = offset | ||
self.limit = limit | ||
self.sort = sort | ||
self.event_type = event_type | ||
|
||
@property | ||
def openapi_types(self): | ||
types = { | ||
'offset': 'int', | ||
'limit': 'int', | ||
'sort': 'string_types', | ||
'event_type': 'string_types' | ||
} | ||
|
||
return types | ||
|
||
@property | ||
def attribute_map(self): | ||
attributes = { | ||
'offset': 'offset', | ||
'limit': 'limit', | ||
'sort': 'sort', | ||
'event_type': 'eventType' | ||
} | ||
|
||
return attributes |
43 changes: 43 additions & 0 deletions
43
bitmovin_api_sdk/encoding/live/standby_pools/logs/logs_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.live_standby_pool_event_log import LiveStandbyPoolEventLog | ||
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope | ||
from bitmovin_api_sdk.encoding.live.standby_pools.logs.live_standby_pool_event_log_list_query_params import LiveStandbyPoolEventLogListQueryParams | ||
|
||
|
||
class LogsApi(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(LogsApi, self).__init__( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
def list(self, pool_id, query_params=None, **kwargs): | ||
# type: (string_types, LiveStandbyPoolEventLogListQueryParams, dict) -> LiveStandbyPoolEventLog | ||
"""List event logs for a standby pool | ||
:param pool_id: Id of the standby pool | ||
:type pool_id: string_types, required | ||
:param query_params: Query parameters | ||
:type query_params: LiveStandbyPoolEventLogListQueryParams | ||
:return: Standby pool event logs list response | ||
:rtype: LiveStandbyPoolEventLog | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/live/standby-pools/{pool_id}/logs', | ||
path_params={'pool_id': pool_id}, | ||
query_params=query_params, | ||
pagination_response=True, | ||
type=LiveStandbyPoolEventLog, | ||
**kwargs | ||
) |
Oops, something went wrong.