Skip to content

Commit 5a5afdf

Browse files
committed
publish jdcloud-sdk-python 1.6.87
1 parent d4f85eb commit 5a5afdf

File tree

9 files changed

+230
-16
lines changed

9 files changed

+230
-16
lines changed

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.18
2+
API 版本:1.0.19
33

44
|发布时间|版本号|更新|说明|
55
|------------|-------|------|-------|
6+
|2020-12-31|1.0.19| 添加接口| 添加查询推流、播放信息分页接口|
67
|2020-10-12|1.0.18| 添加接口| 添加oss录制文件删除接口|
78
|2020-02-23|1.0.17| 接口更新| 查询流分组统计数据接口更新查询条件为非必填|
89
|2020-01-14|1.0.16| 添加接口| 添加直播账单管理相关接口|

jdcloud_sdk/services/live/apis/DescribeLiveSnapshotDataRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def __init__(self, startTime, ):
4545
self.publishDomain = None
4646
self.appName = None
4747
self.streamName = None
48+
self.shotMode = None
4849
self.startTime = startTime
4950
self.endTime = None
5051

@@ -66,6 +67,12 @@ def setStreamName(self, streamName):
6667
"""
6768
self.streamName = streamName
6869

70+
def setShotMode(self, shotMode):
71+
"""
72+
:param shotMode: (Optional) 截图模式:1表示采样截图;2表示关键帧截图(默认为2)
73+
"""
74+
self.shotMode = shotMode
75+
6976
def setEndTime(self, endTime):
7077
"""
7178
:param endTime: (Optional) 结束时间:
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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 DescribeLiveStreamPlayInfoByPageRequest(JDCloudRequest):
23+
"""
24+
查询观看人数
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeLiveStreamPlayInfoByPageRequest, self).__init__(
29+
'/describeLiveStreamPlayInfoByPage', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeLiveStreamPlayInfoByPageParameters(object):
34+
35+
def __init__(self, domainName, startTime, ):
36+
"""
37+
:param domainName: 推流域名
38+
:param startTime: 起始时间
39+
- UTC时间
40+
格式:yyyy-MM-dd'T'HH:mm:ss'Z'
41+
示例:2018-10-21T10:00:00Z
42+
43+
"""
44+
45+
self.domainName = domainName
46+
self.appName = None
47+
self.streamName = None
48+
self.startTime = startTime
49+
self.endTime = None
50+
self.pageNumber = None
51+
self.pageSize = None
52+
53+
def setAppName(self, appName):
54+
"""
55+
:param appName: (Optional) 应用名称
56+
"""
57+
self.appName = appName
58+
59+
def setStreamName(self, streamName):
60+
"""
61+
:param streamName: (Optional) 流名称
62+
"""
63+
self.streamName = streamName
64+
65+
def setEndTime(self, endTime):
66+
"""
67+
:param endTime: (Optional) 结束时间:
68+
- UTC时间
69+
格式:yyyy-MM-dd'T'HH:mm:ss'Z'
70+
示例:2018-10-21T10:00:00Z
71+
- 为空,默认为当前时间
72+
73+
"""
74+
self.endTime = endTime
75+
76+
def setPageNumber(self, pageNumber):
77+
"""
78+
:param pageNumber: (Optional) 页码,起始页码1
79+
80+
"""
81+
self.pageNumber = pageNumber
82+
83+
def setPageSize(self, pageSize):
84+
"""
85+
:param pageSize: (Optional) 每页最大记录数,取值:[10,1000],默认:100
86+
87+
"""
88+
self.pageSize = pageSize
89+
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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 DescribeLiveStreamPublishInfoByPageRequest(JDCloudRequest):
23+
"""
24+
查询推流码率、帧率
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeLiveStreamPublishInfoByPageRequest, self).__init__(
29+
'/describeLiveStreamPublishInfoByPage', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeLiveStreamPublishInfoByPageParameters(object):
34+
35+
def __init__(self, domainName, startTime, ):
36+
"""
37+
:param domainName: 推流域名
38+
:param startTime: 起始时间
39+
- UTC时间
40+
格式:yyyy-MM-dd'T'HH:mm:ss'Z'
41+
示例:2018-10-21T10:00:00Z
42+
43+
"""
44+
45+
self.domainName = domainName
46+
self.appName = None
47+
self.streamName = None
48+
self.startTime = startTime
49+
self.endTime = None
50+
self.pageNumber = None
51+
self.pageSize = None
52+
53+
def setAppName(self, appName):
54+
"""
55+
:param appName: (Optional) 应用名称
56+
"""
57+
self.appName = appName
58+
59+
def setStreamName(self, streamName):
60+
"""
61+
:param streamName: (Optional) 流名称
62+
"""
63+
self.streamName = streamName
64+
65+
def setEndTime(self, endTime):
66+
"""
67+
:param endTime: (Optional) 结束时间:
68+
- UTC时间
69+
格式:yyyy-MM-dd'T'HH:mm:ss'Z'
70+
示例:2018-10-21T10:00:00Z
71+
- 为空,默认为当前时间
72+
73+
"""
74+
self.endTime = endTime
75+
76+
def setPageNumber(self, pageNumber):
77+
"""
78+
:param pageNumber: (Optional) 页码,起始页码1
79+
80+
"""
81+
self.pageNumber = pageNumber
82+
83+
def setPageSize(self, pageSize):
84+
"""
85+
:param pageSize: (Optional) 每页最大记录数,取值:[10,1000],默认:100
86+
87+
"""
88+
self.pageSize = pageSize
89+

jdcloud_sdk/services/live/client/LiveClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('live.jdcloud-api.com')
2828

29-
super(LiveClient, self).__init__(credential, config, 'live', '1.0.18', logger)
29+
super(LiveClient, self).__init__(credential, config, 'live', '1.0.19', logger)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
20+
class LiveStreamPlayInfo(object):
21+
22+
def __init__(self, startTime=None, appName=None, streamName=None, playerCount=None):
23+
"""
24+
:param startTime: (Optional) 流起始时间
25+
:param appName: (Optional) 应用名称
26+
:param streamName: (Optional) 流名称
27+
:param playerCount: (Optional) 观看人数
28+
"""
29+
30+
self.startTime = startTime
31+
self.appName = appName
32+
self.streamName = streamName
33+
self.playerCount = playerCount

jdcloud_sdk/services/live/models/LiveStreamPublishInfo.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,17 @@
1919

2020
class LiveStreamPublishInfo(object):
2121

22-
def __init__(self, publishDomain=None, appName=None, streamName=None, publishUpTime=None, publishDownTime=None):
22+
def __init__(self, startTime=None, appName=None, streamName=None, bitrate=None, framerate=None):
2323
"""
24-
:param publishDomain: (Optional) 推流域名
24+
:param startTime: (Optional) 流起始时间
2525
:param appName: (Optional) 应用名称
2626
:param streamName: (Optional) 流名称
27-
:param publishUpTime: (Optional) 推流开始时间
28-
- UTC时间
29-
格式:yyyy-MM-dd'T'HH:mm:ss'Z'
30-
31-
:param publishDownTime: (Optional) 推流结束时刻
32-
- UTC时间
33-
格式:yyyy-MM-dd'T'HH:mm:ss'Z'
34-
27+
:param bitrate: (Optional) 码率
28+
:param framerate: (Optional) 帧率
3529
"""
3630

37-
self.publishDomain = publishDomain
31+
self.startTime = startTime
3832
self.appName = appName
3933
self.streamName = streamName
40-
self.publishUpTime = publishUpTime
41-
self.publishDownTime = publishDownTime
34+
self.bitrate = bitrate
35+
self.framerate = framerate

jdcloud_sdk/services/live/models/RankingUrlResultRankData.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def __init__(self, uv=None, bandwidth=None, pv=None, flow=None):
2828
:param pv: (Optional) 访问次数
2929
3030
:param flow: (Optional) 流量,单位:Byte
31+
3132
"""
3233

3334
self.uv = uv

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='jdcloud_sdk',
12-
version="1.6.86",
12+
version="1.6.87",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)