Skip to content

Commit 821b8df

Browse files
publish jdcloud-sdk-python 1.6.136
1 parent 85cfbaa commit 821b8df

117 files changed

Lines changed: 246 additions & 116 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# 更新历史 #
2-
API版本:0.10.28
2+
API版本:0.10.29
33

44

55

66

77
| 发布时间 | 版本号 | 更新 | 说明 |
88
| ---------- | ------ | ---------------------------------------------------------- | ---- |
9+
| 2022-01-17 | 0.10.29 |设置、查询回源改写批量配置|
910
| 2021-09-17 | 0.10.28 |设置、删除、查询httpHeader支持区分边缘和回源|
1011
| 2021-06-30 | 0.10.27 |deeplog日志收集接口增加pin参数|
1112
| 2021-02-01 | 0.10.26 |统计查询新增cacheType |

jdcloud_sdk/services/cdn/apis/BatchSetExtraCacheTimeRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class BatchSetExtraCacheTimeParameters(object):
3434

35-
def __init__(self, domain, ):
35+
def __init__(self, domain,):
3636
"""
3737
:param domain: 用户域名
3838
"""

jdcloud_sdk/services/cdn/apis/CheckWhetherIpBelongToJCloudRequest.py

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

2222
class CheckWhetherIpBelongToJCloudRequest(JDCloudRequest):
2323
"""
24-
获取所有上层节点的ip,仅支持中国境内上层节点IP地址查询
24+
查询IP归属,适用于查询边缘节点,仅支持中国境内IP地址查询
2525
"""
2626

2727
def __init__(self, parameters, header=None, version="v1"):

jdcloud_sdk/services/cdn/apis/ConfigBackSourcePathRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class ConfigBackSourcePathParameters(object):
3434

35-
def __init__(self, domain, ):
35+
def __init__(self, domain,):
3636
"""
3737
:param domain: 用户域名
3838
"""

jdcloud_sdk/services/cdn/apis/ConfigBackSourceRuleRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class ConfigBackSourceRuleParameters(object):
3434

35-
def __init__(self, domain, ):
35+
def __init__(self, domain,):
3636
"""
3737
:param domain: 用户域名
3838
"""
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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 ConfigBackSourceRulesRequest(JDCloudRequest):
23+
"""
24+
回源改写批量配置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ConfigBackSourceRulesRequest, self).__init__(
29+
'/domain/{domain}/configBackSourceRules', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ConfigBackSourceRulesParameters(object):
34+
35+
def __init__(self, domain,):
36+
"""
37+
:param domain: 用户域名
38+
"""
39+
40+
self.domain = domain
41+
self.status = None
42+
self.rules = None
43+
44+
def setStatus(self, status):
45+
"""
46+
:param status: (Optional) on/off,若为off则数组需为空,若为on则数组不可为空
47+
"""
48+
self.status = status
49+
50+
def setRules(self, rules):
51+
"""
52+
:param rules: (Optional)
53+
"""
54+
self.rules = rules
55+

jdcloud_sdk/services/cdn/apis/ConfigHttp2Request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class ConfigHttp2Parameters(object):
3434

35-
def __init__(self, domain, ):
35+
def __init__(self, domain,):
3636
"""
3737
:param domain: 用户域名
3838
"""

jdcloud_sdk/services/cdn/apis/ConfigUrlRuleRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class ConfigUrlRuleParameters(object):
3434

35-
def __init__(self, domain, ):
35+
def __init__(self, domain,):
3636
"""
3737
:param domain: 用户域名
3838
"""

jdcloud_sdk/services/cdn/apis/CreateCCProtectRuleRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class CreateCCProtectRuleParameters(object):
3434

35-
def __init__(self, domain, ):
35+
def __init__(self, domain,):
3636
"""
3737
:param domain: 用户域名
3838
"""

jdcloud_sdk/services/cdn/apis/CreateCacheRuleRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, parameters, header=None, version="v1"):
3232

3333
class CreateCacheRuleParameters(object):
3434

35-
def __init__(self, domain, ):
35+
def __init__(self, domain,):
3636
"""
3737
:param domain: 用户域名
3838
"""

0 commit comments

Comments
 (0)