Skip to content

Commit 9b461e8

Browse files
committed
publish jdcloud-sdk-python 1.6.84
1 parent 818f707 commit 9b461e8

9 files changed

Lines changed: 225 additions & 5 deletions

jdcloud_sdk/services/cdn/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# 更新历史 #
2-
API版本:0.10.23
2+
API版本:0.10.24
33

44

55

66

77
| 发布时间 | 版本号 | 更新 | 说明 |
88
| ---------- | ------ | ---------------------------------------------------------- | ---- |
9+
| 2020-11-05 | 0.10.24 |增加控制台获取地域运行商新接口 |
910
| 2020-10-14 | 0.10.23 |增加子账号设置与查询刷新预热额度接口 |
1011
| 2020-08-25 | 0.10.22 |点播域名创建支持指定模板 |
1112
| 2020-08-14 | 0.10.21 |增加头条回源鉴权参数配置和dash鉴权参数配置接口|
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 QueryAreaIspListV2Request(JDCloudRequest):
23+
"""
24+
查找地域运营商列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(QueryAreaIspListV2Request, self).__init__(
29+
'/console:areaIspListV2', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryAreaIspListV2Parameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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 QueryCustomizedDirBandWidthRequest(JDCloudRequest):
23+
"""
24+
查询定制的目录带宽,仅有部分用户支持该功能
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(QueryCustomizedDirBandWidthRequest, self).__init__(
29+
'/statistics:queryCustomizedDirBandWidth', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryCustomizedDirBandWidthParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.startTime = None
40+
self.endTime = None
41+
self.domain = None
42+
self.dir = None
43+
44+
def setStartTime(self, startTime):
45+
"""
46+
:param startTime: (Optional) 查询起始时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:00:00Z
47+
"""
48+
self.startTime = startTime
49+
50+
def setEndTime(self, endTime):
51+
"""
52+
:param endTime: (Optional) 查询截止时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:20:00Z,开始时间和结束时间跨度 不能超过4个小时
53+
"""
54+
self.endTime = endTime
55+
56+
def setDomain(self, domain):
57+
"""
58+
:param domain: (Optional) 需要查询的域名, 必须为用户pin下有权限的域名,该接口仅支持单域名查询
59+
"""
60+
self.domain = domain
61+
62+
def setDir(self, dir):
63+
"""
64+
:param dir: (Optional) 需要过滤的目录,以正斜线(/)开头,不填表示查询所有目录。查询目录同时需要以正斜线(/)结尾。 如:/path1/path2/path3/
65+
"""
66+
self.dir = dir
67+
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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 QueryJBoxAvgBandwidthRequest(JDCloudRequest):
23+
"""
24+
查询平均带宽
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(QueryJBoxAvgBandwidthRequest, self).__init__(
29+
'/jdbox:queryAvgBandwidth', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryJBoxAvgBandwidthParameters(object):
34+
35+
def __init__(self, starttime, stoptime, pluginPin, ):
36+
"""
37+
:param starttime: 指定查询开始时间(格式:201906011000),返回数据包含该时间点。
38+
:param stoptime: 指定查询结束时间(格式:201906011100),返回数据不包含该时间点
39+
:param pluginPin: 插件pin,多个用,隔开
40+
"""
41+
42+
self.starttime = starttime
43+
self.stoptime = stoptime
44+
self.pluginPin = pluginPin
45+
self.clientid = None
46+
self.page = None
47+
self.size = None
48+
49+
def setClientid(self, clientid):
50+
"""
51+
:param clientid: (Optional) 按照设备ID查询设备带宽,即macaddr,多个用,隔开
52+
"""
53+
self.clientid = clientid
54+
55+
def setPage(self, page):
56+
"""
57+
:param page: (Optional) 用于支持分页查询,默认为1,表示第几页。
58+
"""
59+
self.page = page
60+
61+
def setSize(self, size):
62+
"""
63+
:param size: (Optional) 用于支持分页查询,表示每页返回多少条数据,默认每页返回10条数据,size必须是10的整数倍,并且最大值是100。
64+
"""
65+
self.size = size
66+

jdcloud_sdk/services/cdn/apis/QueryRefreshTaskRequest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def __init__(self, ):
4444
self.taskType = None
4545
self.pageNumber = None
4646
self.pageSize = None
47+
self.accountType = None
48+
self.subUsers = None
4749

4850
def setStartTime(self, startTime):
4951
"""
@@ -93,3 +95,15 @@ def setPageSize(self, pageSize):
9395
"""
9496
self.pageSize = pageSize
9597

98+
def setAccountType(self, accountType):
99+
"""
100+
:param accountType: (Optional) 查询的账号范围
101+
"""
102+
self.accountType = accountType
103+
104+
def setSubUsers(self, subUsers):
105+
"""
106+
:param subUsers: (Optional) 查询的子账号,多个用逗号隔开
107+
"""
108+
self.subUsers = subUsers
109+

jdcloud_sdk/services/cdn/client/CdnClient.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('cdn.jdcloud-api.com')
2828

29-
super(CdnClient, self).__init__(credential, config, 'cdn', '0.10.23', logger)
29+
super(CdnClient, self).__init__(credential, config, 'cdn', '0.10.24', 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 FlowItem(object):
21+
22+
def __init__(self, time=None, flow=None, dir=None, pv=None):
23+
"""
24+
:param time: (Optional) 时间点,2020-12-08 00:00
25+
:param flow: (Optional) 目录流量(Byte)
26+
:param dir: (Optional) 目录
27+
:param pv: (Optional) 目录访问次数
28+
"""
29+
30+
self.time = time
31+
self.flow = flow
32+
self.dir = dir
33+
self.pv = pv

jdcloud_sdk/services/cdn/models/QueryAvgBandwidthItem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class QueryAvgBandwidthItem(object):
2121

2222
def __init__(self, startTime=None, avgbandwidth=None, isp=None):
2323
"""
24-
:param startTime: (Optional)
25-
:param avgbandwidth: (Optional)
24+
:param startTime: (Optional) 五分钟序列,202003021100 表示 从 2020-03-02 11:00 到 2020-03-02 11:05 这个时段
25+
:param avgbandwidth: (Optional) 平均带宽kbps
2626
:param isp: (Optional)
2727
"""
2828

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.83",
12+
version="1.6.84",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)