Skip to content

Commit 9299ca3

Browse files
authored
Merge pull request #110 from Tanc009/master
publish jdcloud-sdk-python 1.6.75
2 parents 848968f + cd80c60 commit 9299ca3

174 files changed

Lines changed: 6996 additions & 52 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

jdcloud_sdk/services/cdn/ChangeLog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# 更新历史 #
2-
API版本:0.10.20
2+
API版本:0.10.22
33

44

55

66

77
| 发布时间 | 版本号 | 更新 | 说明 |
88
| ---------- | ------ | ---------------------------------------------------------- | ---- |
9+
| 2020-08-25 | 0.10.22 |点播域名创建支持指定模板 |
10+
| 2020-08-14 | 0.10.21 |增加头条回源鉴权参数配置和dash鉴权参数配置接口|
911
| 2020-08-06 | 0.10.20 |增加查询用户相关信息接口|
1012
| 2020-07-24 | 0.10.19 |海外配置增加修改加速区域接口,刷新预热任务增加是否包含海外或全球域名字段 |
1113
| 2020-07-22 | 0.10.18 |修改ssl证书详情返回字段,修改查询证书列表说明信息 |

jdcloud_sdk/services/cdn/apis/BatchCreateRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def __init__(self, ):
5252
self.domainSource = None
5353
self.ossSource = None
5454
self.accelerateRegion = None
55+
self.tempInstId = None
5556

5657
def setDomains(self, domains):
5758
"""
@@ -149,3 +150,9 @@ def setAccelerateRegion(self, accelerateRegion):
149150
"""
150151
self.accelerateRegion = accelerateRegion
151152

153+
def setTempInstId(self, tempInstId):
154+
"""
155+
:param tempInstId: (Optional)
156+
"""
157+
self.tempInstId = tempInstId
158+

jdcloud_sdk/services/cdn/apis/CreateDomainRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(self, domain, ):
5353
self.domainSource = None
5454
self.ossSource = None
5555
self.accelerateRegion = None
56+
self.tempInstId = None
5657

5758
def setSourceType(self, sourceType):
5859
"""
@@ -144,3 +145,9 @@ def setAccelerateRegion(self, accelerateRegion):
144145
"""
145146
self.accelerateRegion = accelerateRegion
146147

148+
def setTempInstId(self, tempInstId):
149+
"""
150+
:param tempInstId: (Optional)
151+
"""
152+
self.tempInstId = tempInstId
153+

jdcloud_sdk/services/cdn/apis/QueryJDBoxStatisticsDataRequest.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ def __init__(self, ):
4242
self.area = None
4343
self.isp = None
4444
self.period = None
45-
self.groupBy = None
4645
self.category = None
4746
self.macAddr = None
47+
self.pluginPin = None
4848

4949
def setStartTime(self, startTime):
5050
"""
51-
:param startTime: (Optional) 查询起始时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2018-10-21T10:00:00Z
51+
:param startTime: (Optional) 查询起始时间,时间戳
5252
"""
5353
self.startTime = startTime
5454

5555
def setEndTime(self, endTime):
5656
"""
57-
:param endTime: (Optional) 查询截止时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2018-10-21T10:00:00Z
57+
:param endTime: (Optional) 查询截止时间,时间戳
5858
"""
5959
self.endTime = endTime
6060

6161
def setFields(self, fields):
6262
"""
63-
:param fields: (Optional) 查询的字段,决定了查询结果中出现哪些字段,取值范围见"统计字段说明"。多个用逗号分隔。默认为空,表示查询带宽流量 pv
63+
:param fields: (Optional) 查询的字段,取值范围(avgbandwidth,pv,flow)。多个用逗号分隔。默认为空,表示查询带宽流量
6464
"""
6565
self.fields = fields
6666

@@ -78,16 +78,10 @@ def setIsp(self, isp):
7878

7979
def setPeriod(self, period):
8080
"""
81-
:param period: (Optional) 查询周期,当前取值范围:“oneMin,fiveMin,halfHour,hour,twoHour,sixHour,day,followTime”,分别表示1min,5min,半小时,1小时,2小时,6小时,1天,跟随时间。默认为空,表示fiveMin。当传入followTime时,表示按Endtime-StartTime的周期,只返回一个点
81+
:param period: (Optional) 查询周期,当前取值范围:“oneMin,fiveMin”,分别表示1min,5min。默认为空,表示fiveMin
8282
"""
8383
self.period = period
8484

85-
def setGroupBy(self, groupBy):
86-
"""
87-
:param groupBy: (Optional) 取值范围[area,isp,mac_addr,category] 按区域、运营商、设备、业务类型分组,默认为isp
88-
"""
89-
self.groupBy = groupBy
90-
9185
def setCategory(self, category):
9286
"""
9387
:param category: (Optional) 业务类型
@@ -100,3 +94,9 @@ def setMacAddr(self, macAddr):
10094
"""
10195
self.macAddr = macAddr
10296

97+
def setPluginPin(self, pluginPin):
98+
"""
99+
:param pluginPin: (Optional) 插件pin
100+
"""
101+
self.pluginPin = pluginPin
102+
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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 SetAuthConfigRequest(JDCloudRequest):
23+
"""
24+
dash鉴权设置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(SetAuthConfigRequest, self).__init__(
29+
'/domain/{domain}/setAuthConfig', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class SetAuthConfigParameters(object):
34+
35+
def __init__(self, domain, ):
36+
"""
37+
:param domain: 用户域名
38+
"""
39+
40+
self.domain = domain
41+
self.enableUrlAuth = None
42+
self.authKey = None
43+
self.age = None
44+
self.encAlgorithm = None
45+
self.timeFormat = None
46+
self.uriType = None
47+
self.rule = None
48+
49+
def setEnableUrlAuth(self, enableUrlAuth):
50+
"""
51+
:param enableUrlAuth: (Optional) 是否开启鉴权[on,off]
52+
"""
53+
self.enableUrlAuth = enableUrlAuth
54+
55+
def setAuthKey(self, authKey):
56+
"""
57+
:param authKey: (Optional) 鉴权key
58+
"""
59+
self.authKey = authKey
60+
61+
def setAge(self, age):
62+
"""
63+
:param age: (Optional) 鉴权时间戳过期时间,默认为0
64+
"""
65+
self.age = age
66+
67+
def setEncAlgorithm(self, encAlgorithm):
68+
"""
69+
:param encAlgorithm: (Optional) 鉴权参数加密算法,默认为md5且只支持md5
70+
"""
71+
self.encAlgorithm = encAlgorithm
72+
73+
def setTimeFormat(self, timeFormat):
74+
"""
75+
:param timeFormat: (Optional) 时间戳格式[hex,dec]
76+
"""
77+
self.timeFormat = timeFormat
78+
79+
def setUriType(self, uriType):
80+
"""
81+
:param uriType: (Optional) 加密算法版本[dash,dashv2,video],默认dashv2
82+
"""
83+
self.uriType = uriType
84+
85+
def setRule(self, rule):
86+
"""
87+
:param rule: (Optional) 鉴权key生成顺序
88+
"""
89+
self.rule = rule
90+
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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 SetSourceAuthConfigRequest(JDCloudRequest):
23+
"""
24+
回源鉴权设置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(SetSourceAuthConfigRequest, self).__init__(
29+
'/domain/{domain}/setSourceAuthConfig', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class SetSourceAuthConfigParameters(object):
34+
35+
def __init__(self, domain, ):
36+
"""
37+
:param domain: 用户域名
38+
"""
39+
40+
self.domain = domain
41+
self.enable = None
42+
self.originRole = None
43+
self.authType = None
44+
self.tosAuthInfo = None
45+
self.ossAuthInfo = None
46+
47+
def setEnable(self, enable):
48+
"""
49+
:param enable: (Optional) 是否开启鉴权[on,off]
50+
"""
51+
self.enable = enable
52+
53+
def setOriginRole(self, originRole):
54+
"""
55+
:param originRole: (Optional) 回源为主/备[master,slave]
56+
"""
57+
self.originRole = originRole
58+
59+
def setAuthType(self, authType):
60+
"""
61+
:param authType: (Optional) 鉴权类型[oss,aws,tos],aws暂不支持
62+
"""
63+
self.authType = authType
64+
65+
def setTosAuthInfo(self, tosAuthInfo):
66+
"""
67+
:param tosAuthInfo: (Optional) tos类型鉴权参数,authType为tos是不能为空
68+
"""
69+
self.tosAuthInfo = tosAuthInfo
70+
71+
def setOssAuthInfo(self, ossAuthInfo):
72+
"""
73+
:param ossAuthInfo: (Optional) oss类型鉴权参数,authType为oss是不能为空
74+
"""
75+
self.ossAuthInfo = ossAuthInfo
76+

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.20', logger)
29+
super(CdnClient, self).__init__(credential, config, 'cdn', '0.10.22', logger)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 HdrCtrl(object):
21+
22+
def __init__(self, name=None, value=None):
23+
"""
24+
:param name: (Optional) 名称
25+
:param value: (Optional) 值
26+
"""
27+
28+
self.name = name
29+
self.value = value
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 OSSAuthInfo(object):
21+
22+
def __init__(self, accessKey=None, secretKey=None, bucketName=None, objectName=None):
23+
"""
24+
:param accessKey: (Optional) 密钥
25+
:param secretKey: (Optional) 密钥的加密密钥
26+
:param bucketName: (Optional) 默认为/tt-video
27+
:param objectName: (Optional)
28+
"""
29+
30+
self.accessKey = accessKey
31+
self.secretKey = secretKey
32+
self.bucketName = bucketName
33+
self.objectName = objectName
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 TOSAuthInfo(object):
21+
22+
def __init__(self, accessKey=None, secretKey=None, authVersion=None, authHeaders=None, expireTime=None):
23+
"""
24+
:param accessKey: (Optional) 密钥
25+
:param secretKey: (Optional) 密钥的加密密钥
26+
:param authVersion: (Optional) 版本[v1,v2]
27+
:param authHeaders: (Optional)
28+
:param expireTime: (Optional) 单位s,默认 900
29+
"""
30+
31+
self.accessKey = accessKey
32+
self.secretKey = secretKey
33+
self.authVersion = authVersion
34+
self.authHeaders = authHeaders
35+
self.expireTime = expireTime

0 commit comments

Comments
 (0)