Skip to content

Commit

Permalink
Updated Python client to v1.212.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitmovin OpenApi Bot committed Nov 19, 2024
1 parent 1e25e08 commit 369f62e
Show file tree
Hide file tree
Showing 73 changed files with 8,802 additions and 304 deletions.
23 changes: 21 additions & 2 deletions bitmovin_api_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,14 @@
from bitmovin_api_sdk.encoding.live.stream_keys.stream_keys_api import StreamKeyListQueryParams
from bitmovin_api_sdk.encoding.live.stream_keys.actions.actions_api import ActionsApi

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.encodings.encodings_api import LiveStandbyPoolEncodingListQueryParams
from bitmovin_api_sdk.encoding.live.standby_pools.logs.logs_api import LogsApi
from bitmovin_api_sdk.encoding.live.standby_pools.logs.logs_api import LiveStandbyPoolEventLogListQueryParams
from bitmovin_api_sdk.encoding.manifests.manifests_api import ManifestsApi
from bitmovin_api_sdk.encoding.manifests.manifests_api import ManifestListQueryParams
from bitmovin_api_sdk.encoding.manifests.type.type_api import TypeApi
Expand Down Expand Up @@ -1524,6 +1532,18 @@
from bitmovin_api_sdk.models.live_options_statistics import LiveOptionsStatistics
from bitmovin_api_sdk.models.live_options_summary import LiveOptionsSummary
from bitmovin_api_sdk.models.live_options_type import LiveOptionsType
from bitmovin_api_sdk.models.live_standby_pool_details import LiveStandbyPoolDetails
from bitmovin_api_sdk.models.live_standby_pool_encoding import LiveStandbyPoolEncoding
from bitmovin_api_sdk.models.live_standby_pool_encoding_ingest_point import LiveStandbyPoolEncodingIngestPoint
from bitmovin_api_sdk.models.live_standby_pool_encoding_manifest import LiveStandbyPoolEncodingManifest
from bitmovin_api_sdk.models.live_standby_pool_encoding_manifest_type import LiveStandbyPoolEncodingManifestType
from bitmovin_api_sdk.models.live_standby_pool_encoding_status import LiveStandbyPoolEncodingStatus
from bitmovin_api_sdk.models.live_standby_pool_event_log import LiveStandbyPoolEventLog
from bitmovin_api_sdk.models.live_standby_pool_event_log_type import LiveStandbyPoolEventLogType
from bitmovin_api_sdk.models.live_standby_pool_request import LiveStandbyPoolRequest
from bitmovin_api_sdk.models.live_standby_pool_response import LiveStandbyPoolResponse
from bitmovin_api_sdk.models.live_standby_pool_status import LiveStandbyPoolStatus
from bitmovin_api_sdk.models.live_standby_pool_update import LiveStandbyPoolUpdate
from bitmovin_api_sdk.models.local_input import LocalInput
from bitmovin_api_sdk.models.local_output import LocalOutput
from bitmovin_api_sdk.models.manifest import Manifest
Expand Down Expand Up @@ -1817,7 +1837,6 @@
from bitmovin_api_sdk.models.thumbnail_aspect_mode import ThumbnailAspectMode
from bitmovin_api_sdk.models.thumbnail_unit import ThumbnailUnit
from bitmovin_api_sdk.models.time_based_trimming_input_stream import TimeBasedTrimmingInputStream
from bitmovin_api_sdk.models.time_code import TimeCode
from bitmovin_api_sdk.models.time_span import TimeSpan
from bitmovin_api_sdk.models.timecode_track_trimming_input_stream import TimecodeTrackTrimmingInputStream
from bitmovin_api_sdk.models.transfer_retry import TransferRetry
Expand Down Expand Up @@ -1881,4 +1900,4 @@
from bitmovin_api_sdk.models.zixi_input import ZixiInput


__version__ = "1.211.0"
__version__ = "1.212.0"
2 changes: 1 addition & 1 deletion bitmovin_api_sdk/common/rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RestClient(object):
HTTP_HEADERS = {
'Content-Type': 'application/json',
'X-Api-Client': 'bitmovin-api-sdk-python',
'X-Api-Client-Version': '1.211.0'
'X-Api-Client-Version': '1.212.0'
}

DELETE = 'DELETE'
Expand Down
1 change: 1 addition & 0 deletions bitmovin_api_sdk/encoding/live/__init__.py
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
8 changes: 8 additions & 0 deletions bitmovin_api_sdk/encoding/live/live_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase
from bitmovin_api_sdk.common.poscheck import poscheck_except
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


class LiveApi(BaseApi):
Expand All @@ -25,3 +26,10 @@ def __init__(self, api_key, tenant_org_id=None, base_url=None, logger=None):
base_url=base_url,
logger=logger
)

self.standby_pools = StandbyPoolsApi(
api_key=api_key,
tenant_org_id=tenant_org_id,
base_url=base_url,
logger=logger
)
4 changes: 4 additions & 0 deletions bitmovin_api_sdk/encoding/live/standby_pools/__init__.py
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
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
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
)
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
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
)
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 bitmovin_api_sdk/encoding/live/standby_pools/logs/__init__.py
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
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 bitmovin_api_sdk/encoding/live/standby_pools/logs/logs_api.py
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
)
Loading

0 comments on commit 369f62e

Please sign in to comment.