byteplus-sdk 1.0.42__tar.gz → 1.0.50__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/PKG-INFO +1 -1
- byteplus-sdk-1.0.50/byteplus_sdk/__init__.py +2 -0
- byteplus-sdk-1.0.50/byteplus_sdk/example/visual/cv_get_result.py +19 -0
- byteplus-sdk-1.0.50/byteplus_sdk/example/visual/cv_process.py +20 -0
- byteplus-sdk-1.0.50/byteplus_sdk/example/visual/cv_submit_task.py +19 -0
- byteplus-sdk-1.0.50/byteplus_sdk/example/visual/cv_sync2async_get_result.py +20 -0
- byteplus-sdk-1.0.50/byteplus_sdk/example/visual/cv_sync2async_submit_task.py +20 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/visual/VisualService.py +57 -2
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/VodService.py +158 -0
- byteplus-sdk-1.0.50/byteplus_sdk/vod/VodServiceConfig.py +130 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_apps_manage_pb2.py +2 -2
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_cdn_pb2.py +67 -47
- byteplus-sdk-1.0.50/byteplus_sdk/vod/models/business/vod_common_pb2.py +322 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_media_pb2.py +143 -93
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_play_pb2.py +11 -1
- byteplus-sdk-1.0.50/byteplus_sdk/vod/models/business/vod_project_pb2.py +45 -0
- byteplus-sdk-1.0.50/byteplus_sdk/vod/models/business/vod_quality_platform_pb2.py +46 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/request/request_vod_pb2.py +330 -219
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/response/response_vod_pb2.py +313 -211
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk.egg-info/PKG-INFO +1 -1
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk.egg-info/SOURCES.txt +7 -0
- byteplus-sdk-1.0.42/byteplus_sdk/__init__.py +0 -2
- byteplus-sdk-1.0.42/byteplus_sdk/vod/VodServiceConfig.py +0 -219
- byteplus-sdk-1.0.42/byteplus_sdk/vod/models/business/vod_common_pb2.py +0 -255
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/LICENSE +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/README.md +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/ApiInfo.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/Credentials.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/Policy.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/ServiceInfo.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/ServiceInfoHttps.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/auth/MetaData.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/auth/SignerV4.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/auth/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/base/Request.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/base/Service.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/base/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/base/models/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/base/models/base/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/base/models/base/base_pb2.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/cdn/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/cdn/service.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/const/Const.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/const/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/add_cdn_certificate.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/add_cdn_domain.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/add_template_domain.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/create_cipher_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/create_rule_engine_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/create_service_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/delete_cdn_domain.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/delete_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_accounting_data.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_access_log.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_config.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_data.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_data_detail.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_detail.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_origin_data.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_region_and_isp.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_service.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cdn_upper_ip.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_cipher_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_content_block_tasks.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_content_quota.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_content_tasks.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_edge_nrt_data_summary.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_edge_statistical_data.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_edge_top_nrt_data.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_edge_top_statistical_data.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_edge_top_status_code.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_ip_info.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_ip_list_info.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_origin_nrt_data_summary.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_origin_top_nrt_data.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_origin_top_status_code.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_rule_engine_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_service_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_template_domains.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/describe_templates.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/duplicate_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/list_cdn_cert_info.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/list_cdn_domains.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/list_cert_info.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/lock_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/release_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/start_cdn_domain.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/stop_cdn_domain.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/submit_block_task.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/submit_preload_task.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/submit_refresh_task.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/submit_unblock_task.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/update_cdn_config.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/update_cipher_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/update_rule_engine_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/update_service_template.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/cdn/update_template_domain.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/live/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/rtc/RtcService.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/rtc/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/rtc/example_get_record_task.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/rtc/example_start_record.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/visual/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/example/visual/example_common.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/iam/IamService.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/iam/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/LiveService.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/v20200801/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/v20200801/live_config.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/v20200801/live_service.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/v20200801/live_trait.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/v20230101/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/v20230101/live_config.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/v20230101/live_service.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/live/v20230101/live_trait.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/sms/SmsService.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/sms/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/util/Functions.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/util/Util.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/util/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/visual/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_callback_pb2.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_edit_pb2.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_measure_pb2.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_smart_strategy_pb2.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_space_pb2.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_upload_pb2.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_workflow_pb2.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/request/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/response/__init__.py +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk.egg-info/dependency_links.txt +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk.egg-info/requires.txt +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk.egg-info/top_level.txt +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/setup.cfg +0 -0
- {byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/setup.py +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# coding:utf-8
|
|
2
|
+
from __future__ import print_function
|
|
3
|
+
|
|
4
|
+
from byteplus_sdk import visual
|
|
5
|
+
from byteplus_sdk.visual.VisualService import VisualService
|
|
6
|
+
|
|
7
|
+
if __name__ == '__main__':
|
|
8
|
+
visual_service = VisualService()
|
|
9
|
+
|
|
10
|
+
# call below method if you don't set ak and sk in $HOME/.volc/config
|
|
11
|
+
visual_service.set_ak('AK')
|
|
12
|
+
visual_service.set_sk('Sk')
|
|
13
|
+
|
|
14
|
+
form = {
|
|
15
|
+
"req_key": "xxx",
|
|
16
|
+
"task_id": "xxx"
|
|
17
|
+
}
|
|
18
|
+
resp = visual_service.cv_get_result(form)
|
|
19
|
+
print(resp)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# coding:utf-8
|
|
2
|
+
from __future__ import print_function
|
|
3
|
+
|
|
4
|
+
from byteplus_sdk import visual
|
|
5
|
+
from byteplus_sdk.visual.VisualService import VisualService
|
|
6
|
+
|
|
7
|
+
if __name__ == '__main__':
|
|
8
|
+
visual_service = VisualService()
|
|
9
|
+
|
|
10
|
+
# call below method if you don't set ak and sk in $HOME/.volc/config
|
|
11
|
+
visual_service.set_ak('AK')
|
|
12
|
+
visual_service.set_sk('SK')
|
|
13
|
+
|
|
14
|
+
form = {
|
|
15
|
+
"req_key": "xxx",
|
|
16
|
+
# ...
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
resp = visual_service.cv_process(form)
|
|
20
|
+
print(resp)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# coding:utf-8
|
|
2
|
+
from __future__ import print_function
|
|
3
|
+
|
|
4
|
+
from byteplus_sdk import visual
|
|
5
|
+
from byteplus_sdk.visual.VisualService import VisualService
|
|
6
|
+
|
|
7
|
+
if __name__ == '__main__':
|
|
8
|
+
visual_service = VisualService()
|
|
9
|
+
|
|
10
|
+
# call below method if you don't set ak and sk in $HOME/.volc/config
|
|
11
|
+
visual_service.set_ak('AK')
|
|
12
|
+
visual_service.set_sk('SK')
|
|
13
|
+
|
|
14
|
+
form = {
|
|
15
|
+
"req_key": "xxx",
|
|
16
|
+
# ....
|
|
17
|
+
}
|
|
18
|
+
resp = visual_service.cv_submit_task( form)
|
|
19
|
+
print(resp)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# coding:utf-8
|
|
2
|
+
from __future__ import print_function
|
|
3
|
+
|
|
4
|
+
from byteplus_sdk import visual
|
|
5
|
+
from byteplus_sdk.visual.VisualService import VisualService
|
|
6
|
+
|
|
7
|
+
if __name__ == '__main__':
|
|
8
|
+
visual_service = VisualService()
|
|
9
|
+
|
|
10
|
+
# call below method if you don't set ak and sk in $HOME/.volc/config
|
|
11
|
+
visual_service.set_ak('AK')
|
|
12
|
+
visual_service.set_sk('SK')
|
|
13
|
+
|
|
14
|
+
form = {
|
|
15
|
+
"req_key": "xxx",
|
|
16
|
+
"task_id": "xxx",
|
|
17
|
+
"req_json": "{\"logo_info\":{\"add_logo\":true,\"position\":1, \"language\":1,\"opacity\":0.5}}"
|
|
18
|
+
}
|
|
19
|
+
resp = visual_service.cv_sync2async_get_result(form)
|
|
20
|
+
print(resp)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# coding:utf-8
|
|
2
|
+
from __future__ import print_function
|
|
3
|
+
|
|
4
|
+
from byteplus_sdk import visual
|
|
5
|
+
from byteplus_sdk.visual.VisualService import VisualService
|
|
6
|
+
|
|
7
|
+
if __name__ == '__main__':
|
|
8
|
+
visual_service = VisualService()
|
|
9
|
+
|
|
10
|
+
# call below method if you don't set ak and sk in $HOME/.volc/config
|
|
11
|
+
visual_service.set_ak('AK')
|
|
12
|
+
visual_service.set_sk('SK')
|
|
13
|
+
|
|
14
|
+
form = {
|
|
15
|
+
"req_key": "xxx",
|
|
16
|
+
# ...
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
resp = visual_service.cv_sync2async_submit_task(form)
|
|
20
|
+
print(resp)
|
|
@@ -25,8 +25,8 @@ class VisualService(Service):
|
|
|
25
25
|
|
|
26
26
|
@staticmethod
|
|
27
27
|
def get_service_info():
|
|
28
|
-
service_info = ServiceInfo("
|
|
29
|
-
Credentials('', '', 'cv', 'ap-singapore-1'),
|
|
28
|
+
service_info = ServiceInfo("cv.byteplusapi.com", {'Accept': 'application/json'},
|
|
29
|
+
Credentials('', '', 'cv', 'ap-singapore-1'), 30, 30, "https")
|
|
30
30
|
return service_info
|
|
31
31
|
|
|
32
32
|
@staticmethod
|
|
@@ -34,6 +34,11 @@ class VisualService(Service):
|
|
|
34
34
|
api_info = {
|
|
35
35
|
"ComicPortrait": ApiInfo("POST", "/", {"Action": "ComicPortrait", "Version": "2022-08-24"}, {}, {}),
|
|
36
36
|
"PortraitFusion": ApiInfo("POST", "/", {"Action": "PortraitFusion", "Version": "2022-08-24"}, {}, {}),
|
|
37
|
+
"CVProcess": ApiInfo("POST", "/", {"Action": "CVProcess", "Version": "2024-06-06"}, {}, {}),
|
|
38
|
+
"CVSubmitTask": ApiInfo("POST", "/", {"Action": "CVSubmitTask", "Version": "2024-06-06"}, {}, {}),
|
|
39
|
+
"CVGetResult": ApiInfo("POST", "/", {"Action": "CVGetResult", "Version": "2024-06-06"}, {}, {}),
|
|
40
|
+
"CVSync2AsyncSubmitTask": ApiInfo("POST", "/",{"Action": "CVSync2AsyncSubmitTask", "Version": "2024-06-06"}, {}, {}),
|
|
41
|
+
"CVSync2AsyncGetResult": ApiInfo("POST", "/", {"Action": "CVSync2AsyncGetResult", "Version": "2024-06-06"},{}, {}),
|
|
37
42
|
}
|
|
38
43
|
return api_info
|
|
39
44
|
|
|
@@ -64,6 +69,56 @@ class VisualService(Service):
|
|
|
64
69
|
except:
|
|
65
70
|
raise Exception(str(e))
|
|
66
71
|
|
|
72
|
+
def common_json_handler(self, api, body):
|
|
73
|
+
params = dict()
|
|
74
|
+
try:
|
|
75
|
+
res = self.json(api, params, body)
|
|
76
|
+
res_json = json.loads(res)
|
|
77
|
+
|
|
78
|
+
return res_json
|
|
79
|
+
except Exception as e:
|
|
80
|
+
res = str(e)
|
|
81
|
+
try:
|
|
82
|
+
res_json = json.loads(res)
|
|
83
|
+
return res_json
|
|
84
|
+
except:
|
|
85
|
+
raise Exception(str(e))
|
|
86
|
+
|
|
87
|
+
def cv_process(self, body):
|
|
88
|
+
try:
|
|
89
|
+
res_json = self.common_json_handler("CVProcess", body)
|
|
90
|
+
return res_json
|
|
91
|
+
except Exception as e:
|
|
92
|
+
raise Exception(str(e))
|
|
93
|
+
|
|
94
|
+
def cv_submit_task(self, body):
|
|
95
|
+
try:
|
|
96
|
+
res_json = self.common_json_handler("CVSubmitTask", body)
|
|
97
|
+
return res_json
|
|
98
|
+
except Exception as e:
|
|
99
|
+
raise Exception(str(e))
|
|
100
|
+
|
|
101
|
+
def cv_get_result(self, body):
|
|
102
|
+
try:
|
|
103
|
+
res_json = self.common_json_handler("CVGetResult", body)
|
|
104
|
+
return res_json
|
|
105
|
+
except Exception as e:
|
|
106
|
+
raise Exception(str(e))
|
|
107
|
+
|
|
108
|
+
def cv_sync2async_submit_task(self, body):
|
|
109
|
+
try:
|
|
110
|
+
res_json = self.common_json_handler("CVSync2AsyncSubmitTask", body)
|
|
111
|
+
return res_json
|
|
112
|
+
except Exception as e:
|
|
113
|
+
raise Exception(str(e))
|
|
114
|
+
|
|
115
|
+
def cv_sync2async_get_result(self, body):
|
|
116
|
+
try:
|
|
117
|
+
res_json = self.common_json_handler("CVSync2AsyncGetResult", body)
|
|
118
|
+
return res_json
|
|
119
|
+
except Exception as e:
|
|
120
|
+
raise Exception(str(e))
|
|
121
|
+
|
|
67
122
|
def comic_portrait(self, form):
|
|
68
123
|
try:
|
|
69
124
|
res_json = self.common_handler("ComicPortrait", form)
|
|
@@ -440,6 +440,26 @@ class VodService(VodServiceConfig):
|
|
|
440
440
|
else:
|
|
441
441
|
return res
|
|
442
442
|
|
|
443
|
+
#
|
|
444
|
+
# GetVodMediaPlayData.
|
|
445
|
+
#
|
|
446
|
+
# @param request GetVodMediaPlayDataRequest
|
|
447
|
+
# @return GetVodMediaPlayDataResponse
|
|
448
|
+
# @raise Exception
|
|
449
|
+
def get_vod_media_play_data(self, request):
|
|
450
|
+
try:
|
|
451
|
+
jsonData = MessageToJson(request, False, True)
|
|
452
|
+
params = json.loads(jsonData)
|
|
453
|
+
res = self.json("GetVodMediaPlayData",{},params)
|
|
454
|
+
except Exception as Argument:
|
|
455
|
+
try:
|
|
456
|
+
resp = Parse(Argument.__str__(), GetVodMediaPlayDataResponse(), True)
|
|
457
|
+
except Exception:
|
|
458
|
+
raise Argument
|
|
459
|
+
else:
|
|
460
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
461
|
+
else:
|
|
462
|
+
return Parse(res, GetVodMediaPlayDataResponse(), True)
|
|
443
463
|
|
|
444
464
|
#
|
|
445
465
|
# GetPlayInfo.
|
|
@@ -509,6 +529,40 @@ class VodService(VodServiceConfig):
|
|
|
509
529
|
else:
|
|
510
530
|
return Parse(res, VodGetPrivateDrmPlayAuthResponse(), True)
|
|
511
531
|
|
|
532
|
+
#
|
|
533
|
+
# CreateHlsDecryptionKey.
|
|
534
|
+
#
|
|
535
|
+
# @param request VodCreateHlsDecryptionKeyRequest
|
|
536
|
+
# @return VodCreateHlsDecryptionKeyResponse
|
|
537
|
+
# @raise Exception
|
|
538
|
+
def create_hls_decryption_key(self, request):
|
|
539
|
+
try:
|
|
540
|
+
if sys.version_info[0] == 3:
|
|
541
|
+
jsonData = MessageToJson(request, False, True)
|
|
542
|
+
params = json.loads(jsonData)
|
|
543
|
+
for k, v in params.items():
|
|
544
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
545
|
+
continue
|
|
546
|
+
else:
|
|
547
|
+
params[k] = json.dumps(v)
|
|
548
|
+
else:
|
|
549
|
+
params = MessageToDict(request, False, True)
|
|
550
|
+
for k, v in params.items():
|
|
551
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
552
|
+
continue
|
|
553
|
+
else:
|
|
554
|
+
params[k] = json.dumps(v)
|
|
555
|
+
res = self.get("CreateHlsDecryptionKey", params)
|
|
556
|
+
except Exception as Argument:
|
|
557
|
+
try:
|
|
558
|
+
resp = Parse(Argument.__str__(), VodCreateHlsDecryptionKeyResponse(), True)
|
|
559
|
+
except Exception:
|
|
560
|
+
raise Argument
|
|
561
|
+
else:
|
|
562
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
563
|
+
else:
|
|
564
|
+
return Parse(res, VodCreateHlsDecryptionKeyResponse(), True)
|
|
565
|
+
|
|
512
566
|
#
|
|
513
567
|
# GetPlayInfoWithLiveTimeShiftScene.
|
|
514
568
|
#
|
|
@@ -680,6 +734,41 @@ class VodService(VodServiceConfig):
|
|
|
680
734
|
else:
|
|
681
735
|
return Parse(res, VodCommitUploadInfoResponse(), True)
|
|
682
736
|
|
|
737
|
+
#
|
|
738
|
+
# ListFileMetaInfosByFileNames.
|
|
739
|
+
#
|
|
740
|
+
# @param request VodListFileMetaInfosByFileNamesRequest
|
|
741
|
+
# @return VodListFileMetaInfosByFileNamesResponse
|
|
742
|
+
# @raise Exception
|
|
743
|
+
def list_file_meta_infos_by_file_names(self, request):
|
|
744
|
+
try:
|
|
745
|
+
if sys.version_info[0] == 3:
|
|
746
|
+
jsonData = MessageToJson(request, False, True)
|
|
747
|
+
params = json.loads(jsonData)
|
|
748
|
+
for k, v in params.items():
|
|
749
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
750
|
+
continue
|
|
751
|
+
else:
|
|
752
|
+
params[k] = json.dumps(v)
|
|
753
|
+
else:
|
|
754
|
+
params = MessageToDict(request, False, True)
|
|
755
|
+
for k, v in params.items():
|
|
756
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
757
|
+
continue
|
|
758
|
+
else:
|
|
759
|
+
params[k] = json.dumps(v)
|
|
760
|
+
res = self.post("ListFileMetaInfosByFileNames",{},params)
|
|
761
|
+
except Exception as Argument:
|
|
762
|
+
try:
|
|
763
|
+
resp = Parse(Argument.__str__(), VodListFileMetaInfosByFileNamesResponse(), True)
|
|
764
|
+
except Exception:
|
|
765
|
+
raise Argument
|
|
766
|
+
else:
|
|
767
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
768
|
+
else:
|
|
769
|
+
return Parse(res, VodListFileMetaInfosByFileNamesResponse(), True)
|
|
770
|
+
|
|
771
|
+
|
|
683
772
|
#
|
|
684
773
|
# UpdateMediaInfo.
|
|
685
774
|
#
|
|
@@ -918,6 +1007,75 @@ class VodService(VodServiceConfig):
|
|
|
918
1007
|
else:
|
|
919
1008
|
return Parse(res, VodDeleteTranscodesResponse(), True)
|
|
920
1009
|
|
|
1010
|
+
#
|
|
1011
|
+
# GetFileInfos.
|
|
1012
|
+
#
|
|
1013
|
+
# @param request VodGetFileInfosRequest
|
|
1014
|
+
# @return VodGetFileInfosResponse
|
|
1015
|
+
# @raise Exception
|
|
1016
|
+
def get_file_infos(self, request):
|
|
1017
|
+
try:
|
|
1018
|
+
if sys.version_info[0] == 3:
|
|
1019
|
+
jsonData = MessageToJson(request, False, True)
|
|
1020
|
+
params = json.loads(jsonData)
|
|
1021
|
+
for k, v in params.items():
|
|
1022
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
1023
|
+
continue
|
|
1024
|
+
else:
|
|
1025
|
+
params[k] = json.dumps(v)
|
|
1026
|
+
else:
|
|
1027
|
+
params = MessageToDict(request, False, True)
|
|
1028
|
+
for k, v in params.items():
|
|
1029
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
1030
|
+
continue
|
|
1031
|
+
else:
|
|
1032
|
+
params[k] = json.dumps(v)
|
|
1033
|
+
res = self.get("GetFileInfos", params)
|
|
1034
|
+
except Exception as Argument:
|
|
1035
|
+
try:
|
|
1036
|
+
resp = Parse(Argument.__str__(), VodGetFileInfosResponse(), True)
|
|
1037
|
+
except Exception:
|
|
1038
|
+
raise Argument
|
|
1039
|
+
else:
|
|
1040
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
1041
|
+
else:
|
|
1042
|
+
return Parse(res, VodGetFileInfosResponse(), True)
|
|
1043
|
+
|
|
1044
|
+
#
|
|
1045
|
+
# DeleteMediaTosFile.
|
|
1046
|
+
#
|
|
1047
|
+
# @param request VodDeleteMediaTosFileRequest
|
|
1048
|
+
# @return VodDeleteMediaTosFileResponse
|
|
1049
|
+
# @raise Exception
|
|
1050
|
+
def delete_media_tos_file(self, request):
|
|
1051
|
+
try:
|
|
1052
|
+
if sys.version_info[0] == 3:
|
|
1053
|
+
jsonData = MessageToJson(request, False, True)
|
|
1054
|
+
params = json.loads(jsonData)
|
|
1055
|
+
for k, v in params.items():
|
|
1056
|
+
if isinstance(v, (int, float, bool, str)) is True:
|
|
1057
|
+
continue
|
|
1058
|
+
else:
|
|
1059
|
+
params[k] = json.dumps(v)
|
|
1060
|
+
else:
|
|
1061
|
+
params = MessageToDict(request, False, True)
|
|
1062
|
+
for k, v in params.items():
|
|
1063
|
+
if isinstance(v, (int, float, bool, str, unicode)) is True:
|
|
1064
|
+
continue
|
|
1065
|
+
else:
|
|
1066
|
+
params[k] = json.dumps(v)
|
|
1067
|
+
res = self.post("DeleteMediaTosFile",{},params)
|
|
1068
|
+
except Exception as Argument:
|
|
1069
|
+
try:
|
|
1070
|
+
resp = Parse(Argument.__str__(), VodDeleteMediaTosFileResponse(), True)
|
|
1071
|
+
except Exception:
|
|
1072
|
+
raise Argument
|
|
1073
|
+
else:
|
|
1074
|
+
raise Exception(resp.ResponseMetadata.Error.Code)
|
|
1075
|
+
else:
|
|
1076
|
+
return Parse(res, VodDeleteMediaTosFileResponse(), True)
|
|
1077
|
+
|
|
1078
|
+
|
|
921
1079
|
#
|
|
922
1080
|
# GetMediaList.
|
|
923
1081
|
#
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# coding:utf-8
|
|
2
|
+
|
|
3
|
+
from __future__ import print_function
|
|
4
|
+
|
|
5
|
+
import threading
|
|
6
|
+
from zlib import crc32
|
|
7
|
+
|
|
8
|
+
from byteplus_sdk.ApiInfo import ApiInfo
|
|
9
|
+
from byteplus_sdk.Credentials import Credentials
|
|
10
|
+
from byteplus_sdk.ServiceInfo import ServiceInfo
|
|
11
|
+
from byteplus_sdk.base.Service import Service
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class VodServiceConfig(Service):
|
|
15
|
+
_instance_lock = threading.Lock()
|
|
16
|
+
|
|
17
|
+
def __new__(cls, *args, **kwargs):
|
|
18
|
+
if not hasattr(cls, "_instance"):
|
|
19
|
+
with cls._instance_lock:
|
|
20
|
+
if not hasattr(cls, "_instance"):
|
|
21
|
+
cls._instance = object.__new__(cls)
|
|
22
|
+
return cls._instance
|
|
23
|
+
|
|
24
|
+
def __init__(self, region='ap-singapore-1'):
|
|
25
|
+
self.service_info = VodServiceConfig.get_service_info(region)
|
|
26
|
+
self.api_info = VodServiceConfig.get_api_info()
|
|
27
|
+
self.domain_cache = {}
|
|
28
|
+
self.fallback_domain_weights = {}
|
|
29
|
+
self.update_interval = 10
|
|
30
|
+
self.lock = threading.Lock()
|
|
31
|
+
super(VodServiceConfig, self).__init__(self.service_info, self.api_info)
|
|
32
|
+
|
|
33
|
+
@staticmethod
|
|
34
|
+
def get_service_info(region):
|
|
35
|
+
service_info_map = {
|
|
36
|
+
'ap-singapore-1': ServiceInfo("vod.byteplusapi.com", {'Accept': 'application/json'},
|
|
37
|
+
Credentials('', '', 'vod', 'ap-singapore-1'), 60, 60,"https"),
|
|
38
|
+
'ap-southeast-1': ServiceInfo("vod.byteplusapi.com", {'Accept': 'application/json'},
|
|
39
|
+
Credentials('', '', 'vod', 'ap-southeast-1'), 60, 60, "https"),
|
|
40
|
+
}
|
|
41
|
+
service_info = service_info_map.get(region, None)
|
|
42
|
+
if not service_info:
|
|
43
|
+
raise Exception('Cant find the region, please check it carefully')
|
|
44
|
+
|
|
45
|
+
return service_info
|
|
46
|
+
|
|
47
|
+
@staticmethod
|
|
48
|
+
def get_api_info():
|
|
49
|
+
api_info = {
|
|
50
|
+
# 播放
|
|
51
|
+
"GetPlayInfo": ApiInfo("GET", "/", {"Action": "GetPlayInfo", "Version": "2023-01-01"}, {}, {}),
|
|
52
|
+
"GetPrivateDrmPlayAuth": ApiInfo("GET", "/", {"Action": "GetPrivateDrmPlayAuth", "Version": "2023-01-01"},
|
|
53
|
+
{}, {}),
|
|
54
|
+
"CreateHlsDecryptionKey": ApiInfo("GET", "/",
|
|
55
|
+
{"Action": "CreateHlsDecryptionKey", "Version": "2023-07-01"}, {},
|
|
56
|
+
{}),
|
|
57
|
+
"GetHlsDecryptionKey": ApiInfo("GET", "/", {"Action": "GetHlsDecryptionKey", "Version": "2023-01-01"},
|
|
58
|
+
{}, {}),
|
|
59
|
+
# 上传
|
|
60
|
+
"UploadMediaByUrl": ApiInfo("POST", "/", {"Action": "UploadMediaByUrl", "Version": "2023-01-01"}, {}, {}),
|
|
61
|
+
"QueryUploadTaskInfo": ApiInfo("GET", "/", {"Action": "QueryUploadTaskInfo", "Version": "2023-01-01"}, {}, {}),
|
|
62
|
+
"ApplyUploadInfo": ApiInfo("GET", "/", {"Action": "ApplyUploadInfo", "Version": "2023-01-01"}, {}, {}),
|
|
63
|
+
"CommitUploadInfo": ApiInfo("GET", "/", {"Action": "CommitUploadInfo", "Version": "2023-01-01"}, {}, {}),
|
|
64
|
+
# 媒资
|
|
65
|
+
"UpdateMediaInfo": ApiInfo("GET", "/", {"Action": "UpdateMediaInfo", "Version": "2023-01-01"}, {}, {}),
|
|
66
|
+
"UpdateMediaPublishStatus": ApiInfo("GET", "/", {"Action": "UpdateMediaPublishStatus", "Version": "2023-01-01"}, {}, {}),
|
|
67
|
+
"GetMediaInfos": ApiInfo("GET", "/", {"Action": "GetMediaInfos", "Version": "2023-01-01"}, {}, {}),
|
|
68
|
+
"DeleteMedia": ApiInfo("GET", "/", {"Action": "DeleteMedia", "Version": "2023-01-01"}, {}, {}),
|
|
69
|
+
"DeleteTranscodes": ApiInfo("GET", "/", {"Action": "DeleteTranscodes", "Version": "2023-01-01"}, {}, {}),
|
|
70
|
+
"GetMediaList": ApiInfo("GET", "/", {"Action": "GetMediaList", "Version": "2023-01-01"}, {}, {}),
|
|
71
|
+
"GetSubtitleInfoList": ApiInfo("GET", "/", {"Action": "GetSubtitleInfoList", "Version": "2023-01-01"}, {}, {}),
|
|
72
|
+
"UpdateSubtitleStatus": ApiInfo("GET", "/", {"Action": "UpdateSubtitleStatus", "Version": "2023-01-01"}, {}, {}),
|
|
73
|
+
"UpdateSubtitleInfo": ApiInfo("GET", "/", {"Action": "UpdateSubtitleInfo", "Version": "2023-01-01"}, {}, {}),
|
|
74
|
+
"ListVideoClassifications": ApiInfo("GET", "/",{"Action": "ListVideoClassifications", "Version": "2023-01-01"}, {},{}),
|
|
75
|
+
"CreatePlaylist": ApiInfo("GET", "/",{"Action": "CreatePlaylist", "Version": "2023-01-01"}, {},{}),
|
|
76
|
+
"GetPlaylists": ApiInfo("GET", "/",{"Action": "GetPlaylists", "Version": "2023-01-01"}, {},{}),
|
|
77
|
+
"UpdatePlaylist": ApiInfo("GET", "/",{"Action": "UpdatePlaylist", "Version": "2023-01-01"}, {},{}),
|
|
78
|
+
"DeletePlaylist": ApiInfo("GET", "/",{"Action": "DeletePlaylist", "Version": "2023-01-01"}, {},{}),
|
|
79
|
+
"GetFileInfos": ApiInfo("GET", "/", {"Action": "GetFileInfos", "Version": "2023-07-01"}, {}, {}),
|
|
80
|
+
"DeleteMediaTosFile": ApiInfo("POST", "/", {"Action": "DeleteMediaTosFile", "Version": "2023-07-01"}, {}, {}),
|
|
81
|
+
"ListFileMetaInfosByFileNames": ApiInfo("POST", "/", {"Action": "ListFileMetaInfosByFileNames", "Version": "2023-07-01"}, {}, {}),
|
|
82
|
+
|
|
83
|
+
# 转码
|
|
84
|
+
"StartWorkflow": ApiInfo("GET", "/", {"Action": "StartWorkflow", "Version": "2023-01-01"}, {}, {}),
|
|
85
|
+
"RetrieveTranscodeResult": ApiInfo("GET", "/", {"Action": "RetrieveTranscodeResult", "Version": "2023-01-01"}, {}, {}),
|
|
86
|
+
"GetWorkflowExecution": ApiInfo("GET", "/", {"Action": "GetWorkflowExecution", "Version": "2023-01-01"}, {}, {}),
|
|
87
|
+
# 空间管理
|
|
88
|
+
"CreateSpace": ApiInfo("GET", "/", {"Action": "CreateSpace", "Version": "2023-01-01"}, {}, {}),
|
|
89
|
+
"ListSpace": ApiInfo("GET", "/", {"Action": "ListSpace", "Version": "2023-07-01"}, {}, {}),
|
|
90
|
+
"GetSpaceDetail": ApiInfo("GET", "/", {"Action": "GetSpaceDetail", "Version": "2023-07-01"}, {}, {}),
|
|
91
|
+
"UpdateSpaceUploadConfig": ApiInfo("GET", "/", {"Action": "UpdateSpaceUploadConfig", "Version": "2023-01-01"}, {}, {}),
|
|
92
|
+
"DescribeVodSpaceStorageData": ApiInfo("GET", "/", {"Action": "DescribeVodSpaceStorageData", "Version": "2023-01-01"},{}, {}),
|
|
93
|
+
# 分发加速
|
|
94
|
+
"ListDomain": ApiInfo("GET", "/", {"Action": "ListDomain", "Version": "2023-01-01"}, {}, {}),
|
|
95
|
+
"CreateCdnRefreshTask": ApiInfo("GET", "/", {"Action": "CreateCdnRefreshTask", "Version": "2023-01-01"}, {}, {}),
|
|
96
|
+
"CreateCdnPreloadTask": ApiInfo("GET", "/", {"Action": "CreateCdnPreloadTask", "Version": "2023-01-01"}, {}, {}),
|
|
97
|
+
"ListCdnTasks": ApiInfo("GET", "/", {"Action": "ListCDNTasks", "Version": "2023-01-01"}, {}, {}),
|
|
98
|
+
"ListCdnAccessLog": ApiInfo("GET", "/", {"Action": "ListCdnAccessLog", "Version": "2023-01-01"}, {}, {}),
|
|
99
|
+
"ListCdnTopAccessUrl": ApiInfo("GET", "/", {"Action": "ListCdnTopAccessUrl", "Version": "2023-01-01"}, {}, {}),
|
|
100
|
+
"DescribeVodDomainBandwidthData": ApiInfo("GET", "/", {"Action": "DescribeVodDomainBandwidthData", "Version": "2023-01-01"}, {}, {}),
|
|
101
|
+
"DescribeVodDomainTrafficData": ApiInfo("GET", "/", {"Action": "DescribeVodDomainTrafficData", "Version": "2023-01-01"}, {}, {}),
|
|
102
|
+
"ListCdnUsageData": ApiInfo("GET", "/", {"Action": "ListCdnUsageData", "Version": "2023-01-01"}, {}, {}),
|
|
103
|
+
"ListCdnStatusData": ApiInfo("GET", "/", {"Action": "ListCdnStatusData", "Version": "2023-01-01"}, {}, {}),
|
|
104
|
+
"DescribeIpInfo": ApiInfo("GET", "/", {"Action": "DescribeIpInfo", "Version": "2023-01-01"}, {}, {}),
|
|
105
|
+
"ListCdnPvData": ApiInfo("GET", "/", {"Action": "ListCdnPvData", "Version": "2023-01-01"}, {}, {}),
|
|
106
|
+
# 回调管理
|
|
107
|
+
"AddCallbackSubscription": ApiInfo("GET", "/", {"Action": "AddCallbackSubscription", "Version": "2023-01-01"}, {}, {}),
|
|
108
|
+
"SetCallbackEvent": ApiInfo("GET", "/", {"Action": "SetCallbackEvent", "Version": "2023-01-01"}, {}, {}),
|
|
109
|
+
# 计量计费
|
|
110
|
+
"DescribeVodSpaceTranscodeData": ApiInfo("GET", "/", {"Action": "DescribeVodSpaceTranscodeData", "Version": "2023-01-01"}, {}, {}),
|
|
111
|
+
"DescribeVodSnapshotData": ApiInfo("GET", "/", {"Action": "DescribeVodSnapshotData", "Version": "2023-01-01"}, {}, {}),
|
|
112
|
+
"DescribeVodEnhanceImageData": ApiInfo("GET", "/", {"Action": "DescribeVodEnhanceImageData", "Version": "2023-01-01"}, {}, {}),
|
|
113
|
+
"DescribeVodSpaceSubtitleStatisData": ApiInfo("GET", "/", {"Action": "DescribeVodSpaceSubtitleStatisData", "Version": "2023-01-01"}, {}, {}),
|
|
114
|
+
"DescribeVodPlayedStatisData": ApiInfo("GET", "/", {"Action": "DescribeVodPlayedStatisData", "Version": "2023-01-01"}, {}, {}),
|
|
115
|
+
"DescribeVodMostPlayedStatisData": ApiInfo("GET", "/", {"Action": "DescribeVodMostPlayedStatisData", "Version": "2023-01-01"}, {}, {}),
|
|
116
|
+
"DescribeVodRealtimeMediaData": ApiInfo("GET", "/", {"Action": "DescribeVodRealtimeMediaData", "Version": "2023-01-01"}, {}, {}),
|
|
117
|
+
# 商业drm
|
|
118
|
+
"GetDrmLicense": ApiInfo("POST", "/", {"Action": "GetDrmLicense", "Version": "2023-01-01"}, {}, {}),
|
|
119
|
+
"GetFairPlayCert": ApiInfo("GET", "/", {"Action": "GetFairPlayCert", "Version": "2023-01-01"}, {}, {}),
|
|
120
|
+
# 质量平台
|
|
121
|
+
"GetVodMediaPlayData": ApiInfo("POST", "/", {"Action": "GetVodMediaPlayData", "Version": "2025-04-01"}, {}, {}),
|
|
122
|
+
}
|
|
123
|
+
return api_info
|
|
124
|
+
|
|
125
|
+
@staticmethod
|
|
126
|
+
def crc32(file_path):
|
|
127
|
+
prev = 0
|
|
128
|
+
for eachLine in open(file_path, "rb"):
|
|
129
|
+
prev = crc32(eachLine, prev)
|
|
130
|
+
return prev & 0xFFFFFFFF
|
{byteplus-sdk-1.0.42 → byteplus-sdk-1.0.50}/byteplus_sdk/vod/models/business/vod_apps_manage_pb2.py
RENAMED
|
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+byteplus/vod/business/vod_apps_manage.proto\x12\x1c\x42yteplus.Vod.Models.Business\"
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+byteplus/vod/business/vod_apps_manage.proto\x12\x1c\x42yteplus.Vod.Models.Business\"k\n\x13VodGetAppInfoResult\x12\r\n\x05\x41ppId\x18\x01 \x01(\x04\x12\x0e\n\x06Scheme\x18\x02 \x01(\t\x12\x11\n\tAppEnName\x18\x03 \x01(\t\x12\x11\n\tAppCnName\x18\x04 \x01(\t\x12\x0f\n\x07Project\x18\x05 \x01(\tB\xdd\x01\n\'com.byteplus.service.vod.model.businessB\rVodAppsManageP\x01ZGgithub.com/byteplus-sdk/byteplus-sdk-golang/service/vod/models/business\xa0\x01\x01\xd8\x01\x01\xc2\x02\x00\xca\x02$Byteplus\\Service\\Vod\\Models\\Business\xe2\x02\'Byteplus\\Service\\Vod\\Models\\GPBMetadatab\x06proto3')
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -31,5 +31,5 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
31
31
|
DESCRIPTOR._options = None
|
|
32
32
|
DESCRIPTOR._serialized_options = b'\n\'com.byteplus.service.vod.model.businessB\rVodAppsManageP\001ZGgithub.com/byteplus-sdk/byteplus-sdk-golang/service/vod/models/business\240\001\001\330\001\001\302\002\000\312\002$Byteplus\\Service\\Vod\\Models\\Business\342\002\'Byteplus\\Service\\Vod\\Models\\GPBMetadata'
|
|
33
33
|
_VODGETAPPINFORESULT._serialized_start=77
|
|
34
|
-
_VODGETAPPINFORESULT._serialized_end=
|
|
34
|
+
_VODGETAPPINFORESULT._serialized_end=184
|
|
35
35
|
# @@protoc_insertion_point(module_scope)
|