Skip to content

Commit 03fc9f3

Browse files
publish jdcloud-sdk-python 1.6.104
1 parent cc0453e commit 03fc9f3

18 files changed

Lines changed: 747 additions & 3 deletions

jdcloud_sdk/services/live/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# 更新历史 #
2-
API 版本:1.0.19
2+
API 版本:1.0.20
33

44
|发布时间|版本号|更新|说明|
55
|------------|-------|------|-------|
6+
|2021-06-29|1.0.20| 添加接口| 添加直播翻译相关接口|
67
|2020-12-31|1.0.19| 添加接口| 添加查询推流、播放信息分页接口|
78
|2020-10-12|1.0.18| 添加接口| 添加oss录制文件删除接口|
89
|2020-02-23|1.0.17| 接口更新| 查询流分组统计数据接口更新查询条件为非必填|
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class AddLiveStreamAppTranslateRequest(JDCloudRequest):
23+
"""
24+
添加应用翻译配置
25+
- 添加应用级别的翻译模板配置
26+
- 一个应用最多可绑定一个翻译模板
27+
- 重新推流后生效
28+
29+
"""
30+
31+
def __init__(self, parameters, header=None, version="v1"):
32+
super(AddLiveStreamAppTranslateRequest, self).__init__(
33+
'/translateApps:config', 'POST', header, version)
34+
self.parameters = parameters
35+
36+
37+
class AddLiveStreamAppTranslateParameters(object):
38+
39+
def __init__(self, publishDomain, appName, template):
40+
"""
41+
:param publishDomain: 推流域名
42+
:param appName: 应用名称
43+
:param template: 翻译模版
44+
- 取值范围: 系统标准翻译模板, 用户自定义翻译模板
45+
- 系统标准翻译模板
46+
system-zh-en (中译英)
47+
system-en-zh (英译中)
48+
49+
"""
50+
51+
self.publishDomain = publishDomain
52+
self.appName = appName
53+
self.template = template
54+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class AddLiveStreamDomainTranslateRequest(JDCloudRequest):
23+
"""
24+
添加域名翻译配置
25+
- 添加域名级别的翻译模板配置
26+
- 一个域名最多可绑定一个翻译模板
27+
- 重新推流后生效
28+
29+
"""
30+
31+
def __init__(self, parameters, header=None, version="v1"):
32+
super(AddLiveStreamDomainTranslateRequest, self).__init__(
33+
'/translateDomains:config', 'POST', header, version)
34+
self.parameters = parameters
35+
36+
37+
class AddLiveStreamDomainTranslateParameters(object):
38+
39+
def __init__(self, publishDomain, template):
40+
"""
41+
:param publishDomain: 直播的推流域名
42+
:param template: 翻译模版
43+
- 取值范围: 系统标准翻译模板, 用户自定义翻译模板
44+
- 系统标准翻译模板
45+
system-zh-en (中译英)
46+
system-en-zh (英译中)
47+
48+
"""
49+
50+
self.publishDomain = publishDomain
51+
self.template = template
52+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class AddLiveStreamTranslateRequest(JDCloudRequest):
23+
"""
24+
添加流翻译配置
25+
- 添加流级别的翻译模板配置
26+
- 一个流最多可绑定一个翻译模板
27+
- 重新推流后生效
28+
29+
"""
30+
31+
def __init__(self, parameters, header=None, version="v1"):
32+
super(AddLiveStreamTranslateRequest, self).__init__(
33+
'/translateStream:config', 'POST', header, version)
34+
self.parameters = parameters
35+
36+
37+
class AddLiveStreamTranslateParameters(object):
38+
39+
def __init__(self, publishDomain, appName, streamName, template):
40+
"""
41+
:param publishDomain: 推流域名
42+
:param appName: 应用名称
43+
:param streamName: 流名称
44+
:param template: 翻译模版
45+
- 取值范围: 系统标准翻译模板, 用户自定义翻译模板
46+
- 系统标准翻译模板
47+
system-zh-en (中译英)
48+
system-en-zh (英译中)
49+
50+
"""
51+
52+
self.publishDomain = publishDomain
53+
self.appName = appName
54+
self.streamName = streamName
55+
self.template = template
56+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DeleteLiveStreamAppTranslateRequest(JDCloudRequest):
23+
"""
24+
删除应用的翻译模板配置
25+
- 删除应用级别的翻译模板配置,重新推流后生效
26+
27+
"""
28+
29+
def __init__(self, parameters, header=None, version="v1"):
30+
super(DeleteLiveStreamAppTranslateRequest, self).__init__(
31+
'/translateApps/{publishDomain}/appNames/{appName}/templates/{template}', 'DELETE', header, version)
32+
self.parameters = parameters
33+
34+
35+
class DeleteLiveStreamAppTranslateParameters(object):
36+
37+
def __init__(self, publishDomain, appName, template, ):
38+
"""
39+
:param publishDomain: 推流域名
40+
:param appName: 应用名称
41+
:param template: 翻译模板
42+
"""
43+
44+
self.publishDomain = publishDomain
45+
self.appName = appName
46+
self.template = template
47+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DeleteLiveStreamDomainTranslateRequest(JDCloudRequest):
23+
"""
24+
删除域名的翻译模板配置
25+
- 删除域名级别翻译模板配置,重新推流后生效
26+
27+
"""
28+
29+
def __init__(self, parameters, header=None, version="v1"):
30+
super(DeleteLiveStreamDomainTranslateRequest, self).__init__(
31+
'/translateDomains/{publishDomain}/templates/{template}:config', 'DELETE', header, version)
32+
self.parameters = parameters
33+
34+
35+
class DeleteLiveStreamDomainTranslateParameters(object):
36+
37+
def __init__(self, publishDomain, template, ):
38+
"""
39+
:param publishDomain: 推流域名
40+
:param template: 翻译模板
41+
"""
42+
43+
self.publishDomain = publishDomain
44+
self.template = template
45+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DeleteLiveStreamTranslateRequest(JDCloudRequest):
23+
"""
24+
删除流的翻译模板配置
25+
- 删除流级别翻译模板配置,重新推流后生效
26+
27+
"""
28+
29+
def __init__(self, parameters, header=None, version="v1"):
30+
super(DeleteLiveStreamTranslateRequest, self).__init__(
31+
'/translateStream/{publishDomain}/appNames/{appName}/streams/{streamName}/templates/{template}', 'DELETE', header, version)
32+
self.parameters = parameters
33+
34+
35+
class DeleteLiveStreamTranslateParameters(object):
36+
37+
def __init__(self, publishDomain, appName, streamName, template, ):
38+
"""
39+
:param publishDomain: 推流域名
40+
:param appName: 应用名称
41+
:param streamName: 流名称
42+
:param template: 翻译模板
43+
"""
44+
45+
self.publishDomain = publishDomain
46+
self.appName = appName
47+
self.streamName = streamName
48+
self.template = template
49+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeLiveDomainTranslateConfigRequest(JDCloudRequest):
23+
"""
24+
查询域名下的翻译模板配置
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeLiveDomainTranslateConfigRequest, self).__init__(
30+
'/translateTemplates:domain', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeLiveDomainTranslateConfigParameters(object):
35+
36+
def __init__(self, ):
37+
"""
38+
"""
39+
40+
self.filters = None
41+
42+
def setFilters(self, filters):
43+
"""
44+
:param filters: (Optional) 模板配置查询过滤条件:
45+
- name: publishDomain 必填(推流域名)
46+
- value: 参数
47+
- name: level 非必填(Level)
48+
- value: 参数,取值:domain,app,stream
49+
50+
"""
51+
self.filters = filters
52+

0 commit comments

Comments
 (0)