-
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 12, 2024
1 parent
0721ac8
commit 1e25e08
Showing
63 changed files
with
4,643 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from bitmovin_api_sdk.encoding.infrastructure.akamai.akamai_api import AkamaiApi | ||
from bitmovin_api_sdk.encoding.infrastructure.akamai.regions.regions_api import RegionsApi | ||
from bitmovin_api_sdk.encoding.infrastructure.akamai.akamai_account_list_query_params import AkamaiAccountListQueryParams |
25 changes: 25 additions & 0 deletions
25
bitmovin_api_sdk/encoding/infrastructure/akamai/akamai_account_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 AkamaiAccountListQueryParams(object): | ||
def __init__(self, offset=None, limit=None): | ||
# type: (int, int) -> None | ||
super(AkamaiAccountListQueryParams, 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 |
100 changes: 100 additions & 0 deletions
100
bitmovin_api_sdk/encoding/infrastructure/akamai/akamai_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,100 @@ | ||
# 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.akamai_account import AkamaiAccount | ||
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope | ||
from bitmovin_api_sdk.models.response_error import ResponseError | ||
from bitmovin_api_sdk.encoding.infrastructure.akamai.regions.regions_api import RegionsApi | ||
from bitmovin_api_sdk.encoding.infrastructure.akamai.akamai_account_list_query_params import AkamaiAccountListQueryParams | ||
|
||
|
||
class AkamaiApi(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(AkamaiApi, self).__init__( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
self.regions = RegionsApi( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
def create(self, akamai_account, **kwargs): | ||
# type: (AkamaiAccount, dict) -> AkamaiAccount | ||
"""Add Akamai account | ||
:param akamai_account: The Akamai account to be added | ||
:type akamai_account: AkamaiAccount, required | ||
:return: Akamai account | ||
:rtype: AkamaiAccount | ||
""" | ||
|
||
return self.api_client.post( | ||
'/encoding/infrastructure/akamai', | ||
akamai_account, | ||
type=AkamaiAccount, | ||
**kwargs | ||
) | ||
|
||
def delete(self, infrastructure_id, **kwargs): | ||
# type: (string_types, dict) -> AkamaiAccount | ||
"""Delete Akamai account | ||
:param infrastructure_id: Id of the Akamai account | ||
:type infrastructure_id: string_types, required | ||
:return: Akamai account | ||
:rtype: AkamaiAccount | ||
""" | ||
|
||
return self.api_client.delete( | ||
'/encoding/infrastructure/akamai/{infrastructure_id}', | ||
path_params={'infrastructure_id': infrastructure_id}, | ||
type=AkamaiAccount, | ||
**kwargs | ||
) | ||
|
||
def get(self, infrastructure_id, **kwargs): | ||
# type: (string_types, dict) -> AkamaiAccount | ||
"""Akamai account details | ||
:param infrastructure_id: Id of the Akamai account | ||
:type infrastructure_id: string_types, required | ||
:return: Akamai account | ||
:rtype: AkamaiAccount | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/infrastructure/akamai/{infrastructure_id}', | ||
path_params={'infrastructure_id': infrastructure_id}, | ||
type=AkamaiAccount, | ||
**kwargs | ||
) | ||
|
||
def list(self, query_params=None, **kwargs): | ||
# type: (AkamaiAccountListQueryParams, dict) -> AkamaiAccount | ||
"""List Akamai accounts | ||
:param query_params: Query parameters | ||
:type query_params: AkamaiAccountListQueryParams | ||
:return: List of Akamai accounts | ||
:rtype: AkamaiAccount | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/infrastructure/akamai', | ||
query_params=query_params, | ||
pagination_response=True, | ||
type=AkamaiAccount, | ||
**kwargs | ||
) |
2 changes: 2 additions & 0 deletions
2
bitmovin_api_sdk/encoding/infrastructure/akamai/regions/__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.infrastructure.akamai.regions.regions_api import RegionsApi | ||
from bitmovin_api_sdk.encoding.infrastructure.akamai.regions.akamai_account_region_settings_list_query_params import AkamaiAccountRegionSettingsListQueryParams |
25 changes: 25 additions & 0 deletions
25
...ncoding/infrastructure/akamai/regions/akamai_account_region_settings_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 AkamaiAccountRegionSettingsListQueryParams(object): | ||
def __init__(self, offset=None, limit=None): | ||
# type: (int, int) -> None | ||
super(AkamaiAccountRegionSettingsListQueryParams, 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 |
105 changes: 105 additions & 0 deletions
105
bitmovin_api_sdk/encoding/infrastructure/akamai/regions/regions_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,105 @@ | ||
# 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.akamai_account_region_settings import AkamaiAccountRegionSettings | ||
from bitmovin_api_sdk.models.akamai_cloud_region import AkamaiCloudRegion | ||
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope | ||
from bitmovin_api_sdk.models.response_error import ResponseError | ||
from bitmovin_api_sdk.encoding.infrastructure.akamai.regions.akamai_account_region_settings_list_query_params import AkamaiAccountRegionSettingsListQueryParams | ||
|
||
|
||
class RegionsApi(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(RegionsApi, self).__init__( | ||
api_key=api_key, | ||
tenant_org_id=tenant_org_id, | ||
base_url=base_url, | ||
logger=logger | ||
) | ||
|
||
def create(self, infrastructure_id, region, akamai_account_region_settings, **kwargs): | ||
# type: (string_types, AkamaiCloudRegion, AkamaiAccountRegionSettings, dict) -> AkamaiAccountRegionSettings | ||
"""Add Akamai account region settings | ||
:param infrastructure_id: Id of the Akamai account | ||
:type infrastructure_id: string_types, required | ||
:param region: Akamai region | ||
:type region: AkamaiCloudRegion, required | ||
:param akamai_account_region_settings: The Akamai account region settings to be added | ||
:type akamai_account_region_settings: AkamaiAccountRegionSettings, required | ||
:return: Akamai account region settings | ||
:rtype: AkamaiAccountRegionSettings | ||
""" | ||
|
||
return self.api_client.post( | ||
'/encoding/infrastructure/akamai/{infrastructure_id}/regions/{region}', | ||
akamai_account_region_settings, | ||
path_params={'infrastructure_id': infrastructure_id, 'region': region}, | ||
type=AkamaiAccountRegionSettings, | ||
**kwargs | ||
) | ||
|
||
def delete(self, infrastructure_id, region, **kwargs): | ||
# type: (string_types, AkamaiCloudRegion, dict) -> AkamaiAccountRegionSettings | ||
"""Delete Akamai account region settings | ||
:param infrastructure_id: Id of the Akamai account | ||
:type infrastructure_id: string_types, required | ||
:param region: Akamai region | ||
:type region: AkamaiCloudRegion, required | ||
:return: Akamai account region settings | ||
:rtype: AkamaiAccountRegionSettings | ||
""" | ||
|
||
return self.api_client.delete( | ||
'/encoding/infrastructure/akamai/{infrastructure_id}/regions/{region}', | ||
path_params={'infrastructure_id': infrastructure_id, 'region': region}, | ||
type=AkamaiAccountRegionSettings, | ||
**kwargs | ||
) | ||
|
||
def get(self, infrastructure_id, region, **kwargs): | ||
# type: (string_types, AkamaiCloudRegion, dict) -> AkamaiAccountRegionSettings | ||
"""Akamai account region settings details | ||
:param infrastructure_id: Id of the Akamai account | ||
:type infrastructure_id: string_types, required | ||
:param region: Akamai region | ||
:type region: AkamaiCloudRegion, required | ||
:return: Region settings for specified region | ||
:rtype: AkamaiAccountRegionSettings | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/infrastructure/akamai/{infrastructure_id}/regions/{region}', | ||
path_params={'infrastructure_id': infrastructure_id, 'region': region}, | ||
type=AkamaiAccountRegionSettings, | ||
**kwargs | ||
) | ||
|
||
def list(self, infrastructure_id, query_params=None, **kwargs): | ||
# type: (string_types, AkamaiAccountRegionSettingsListQueryParams, dict) -> AkamaiAccountRegionSettings | ||
"""List Akamai account region settings | ||
:param infrastructure_id: Id of the Akamai account | ||
:type infrastructure_id: string_types, required | ||
:param query_params: Query parameters | ||
:type query_params: AkamaiAccountRegionSettingsListQueryParams | ||
:return: List of Akamai account region settings | ||
:rtype: AkamaiAccountRegionSettings | ||
""" | ||
|
||
return self.api_client.get( | ||
'/encoding/infrastructure/akamai/{infrastructure_id}/regions', | ||
path_params={'infrastructure_id': infrastructure_id}, | ||
query_params=query_params, | ||
pagination_response=True, | ||
type=AkamaiAccountRegionSettings, | ||
**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
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 +1,2 @@ | ||
from bitmovin_api_sdk.encoding.templates.templates_api import TemplatesApi | ||
from bitmovin_api_sdk.encoding.templates.encoding_template_response_list_query_params import EncodingTemplateResponseListQueryParams |
Oops, something went wrong.