Skip to content

Commit 4a1c7d1

Browse files
Merge pull request #165 from jdcloud-apigateway/master
publish jdcloud-sdk-python 1.6.156
2 parents 95f18bd + 3641164 commit 4a1c7d1

5 files changed

Lines changed: 128 additions & 3 deletions

File tree

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

44

55

66

77
| 发布时间 | 版本号 | 更新 | 说明 |
88
| ---------- | ------ | ---------------------------------------------------------- | ---- |
9+
| 2022-04-08 | 0.10.31 |增加查询、设置回源OSS鉴权定制接口|
910
| 2022-01-17 | 0.10.29 |设置、查询回源改写批量配置|
1011
| 2021-09-17 | 0.10.28 |设置、删除、查询httpHeader支持区分边缘和回源|
1112
| 2021-06-30 | 0.10.27 |deeplog日志收集接口增加pin参数|
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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 ConfigBackSourceOssRequest(JDCloudRequest):
23+
"""
24+
设置回源OSS鉴权
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ConfigBackSourceOssRequest, self).__init__(
29+
'/domain/{domain}/configBackSourceOss', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ConfigBackSourceOssParameters(object):
34+
35+
def __init__(self, domain,):
36+
"""
37+
:param domain: 用户域名
38+
"""
39+
40+
self.domain = domain
41+
self.status = None
42+
self.accessKey = None
43+
self.secretKey = None
44+
self.bucket = None
45+
self.suffix = None
46+
self.domain2 = None
47+
48+
def setStatus(self, status):
49+
"""
50+
:param status: (Optional) on/off,若为on则以下必传参数不可为空[accessKey,secretKey,bucket,domain2],若为off则以下参数均不能有值[accessKey,secretKey,bucket,suffix,domain2]
51+
"""
52+
self.status = status
53+
54+
def setAccessKey(self, accessKey):
55+
"""
56+
:param accessKey: (Optional) status 为on时必填
57+
"""
58+
self.accessKey = accessKey
59+
60+
def setSecretKey(self, secretKey):
61+
"""
62+
:param secretKey: (Optional) status 为on时必填
63+
"""
64+
self.secretKey = secretKey
65+
66+
def setBucket(self, bucket):
67+
"""
68+
:param bucket: (Optional) oss桶名,status 为on时必填
69+
"""
70+
self.bucket = bucket
71+
72+
def setSuffix(self, suffix):
73+
"""
74+
:param suffix: (Optional) oss后缀,status 为on时选填
75+
"""
76+
self.suffix = suffix
77+
78+
def setDomain2(self, domain2):
79+
"""
80+
:param domain2: (Optional) status 为on时必填
81+
"""
82+
self.domain2 = domain2
83+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 QueryBackSourceOssRequest(JDCloudRequest):
23+
"""
24+
查询回源OSS鉴权配置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(QueryBackSourceOssRequest, self).__init__(
29+
'/domain/{domain}/queryBackSourceOss', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryBackSourceOssParameters(object):
34+
35+
def __init__(self, domain,):
36+
"""
37+
:param domain: 用户域名
38+
"""
39+
40+
self.domain = domain
41+

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.29', logger)
29+
super(CdnClient, self).__init__(credential, config, 'cdn', '0.10.31', logger)

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

0 commit comments

Comments
 (0)