Skip to content

Commit b2989e5

Browse files
publish jdcloud-sdk-python 1.6.120
1 parent 0e5edb1 commit b2989e5

220 files changed

Lines changed: 9088 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 更新历史 #
2+
API版本:0.0.1
3+
4+
| 发布时间 | 版本号 | 更新 | 说明 |
5+
| ---------- | ------ | ------------- | -------------- |
6+
| 2021-10-28 | 0.0.1 | starshield | * 初始版本 |

jdcloud_sdk/services/starshield/__init__.py

Whitespace-only changes.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 Change0_RTTSessionResumptionSettingRequest(JDCloudRequest):
23+
"""
24+
开启/关闭 0-RTT
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(Change0_RTTSessionResumptionSettingRequest, self).__init__(
29+
'/zones/{zone_identifier}/settings$$0rtt', 'PATCH', header, version)
30+
self.parameters = parameters
31+
32+
33+
class Change0_RTTSessionResumptionSettingParameters(object):
34+
35+
def __init__(self, zone_identifier, ):
36+
"""
37+
:param zone_identifier:
38+
"""
39+
40+
self.zone_identifier = zone_identifier
41+
self.value = None
42+
43+
def setValue(self, value):
44+
"""
45+
:param value: (Optional) on - 开启;off - 关闭
46+
"""
47+
self.value = value
48+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 ChangeAlwaysOnlineSettingRequest(JDCloudRequest):
23+
"""
24+
当开启时,在你的源站离线期间,星盾会提供已缓存过的页面。
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ChangeAlwaysOnlineSettingRequest, self).__init__(
29+
'/zones/{zone_identifier}/settings$$always_online', 'PATCH', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ChangeAlwaysOnlineSettingParameters(object):
34+
35+
def __init__(self, zone_identifier, ):
36+
"""
37+
:param zone_identifier:
38+
"""
39+
40+
self.zone_identifier = zone_identifier
41+
self.value = None
42+
43+
def setValue(self, value):
44+
"""
45+
:param value: (Optional) on - 开启;off - 关闭
46+
"""
47+
self.value = value
48+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 ChangeAlwaysUseHTTPSSettingRequest(JDCloudRequest):
23+
"""
24+
对所有使用"http"的URL的请求,用301重定向到相应的 "https" URL。如果你只想对一个子集的请求进行重定向,可以考虑创建一个"Always use HTTPS"的页面规则。
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(ChangeAlwaysUseHTTPSSettingRequest, self).__init__(
30+
'/zones/{zone_identifier}/settings$$always_use_https', 'PATCH', header, version)
31+
self.parameters = parameters
32+
33+
34+
class ChangeAlwaysUseHTTPSSettingParameters(object):
35+
36+
def __init__(self, zone_identifier, ):
37+
"""
38+
:param zone_identifier:
39+
"""
40+
41+
self.zone_identifier = zone_identifier
42+
self.value = None
43+
44+
def setValue(self, value):
45+
"""
46+
:param value: (Optional) on - 开启;off - 关闭
47+
"""
48+
self.value = value
49+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 ChangeAutomaticHTTPSRewritesSettingRequest(JDCloudRequest):
23+
"""
24+
为该域启用自动HTTPS重写功能。
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ChangeAutomaticHTTPSRewritesSettingRequest, self).__init__(
29+
'/zones/{zone_identifier}/settings$$automatic_https_rewrites', 'PATCH', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ChangeAutomaticHTTPSRewritesSettingParameters(object):
34+
35+
def __init__(self, zone_identifier, ):
36+
"""
37+
:param zone_identifier:
38+
"""
39+
40+
self.zone_identifier = zone_identifier
41+
self.value = None
42+
43+
def setValue(self, value):
44+
"""
45+
:param value: (Optional) on - 开启;off - 关闭
46+
"""
47+
self.value = value
48+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 ChangeBrotliSettingRequest(JDCloudRequest):
23+
"""
24+
当请求资产的客户端支持brotli压缩算法时,星盾将提供资产的brotli压缩版本。
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ChangeBrotliSettingRequest, self).__init__(
29+
'/zones/{zone_identifier}/settings$$brotli', 'PATCH', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ChangeBrotliSettingParameters(object):
34+
35+
def __init__(self, zone_identifier, ):
36+
"""
37+
:param zone_identifier:
38+
"""
39+
40+
self.zone_identifier = zone_identifier
41+
self.value = None
42+
43+
def setValue(self, value):
44+
"""
45+
:param value: (Optional) on - 开启;off - 关闭
46+
"""
47+
self.value = value
48+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 ChangeBrowserCacheTTLSettingRequest(JDCloudRequest):
23+
"""
24+
浏览器缓存TTL(以秒为单位)指定星盾缓存资源将在访问者的计算机上保留多长时间。星盾将遵守服务器指定的任何更长时间。
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(ChangeBrowserCacheTTLSettingRequest, self).__init__(
30+
'/zones/{zone_identifier}/settings$$browser_cache_ttl', 'PATCH', header, version)
31+
self.parameters = parameters
32+
33+
34+
class ChangeBrowserCacheTTLSettingParameters(object):
35+
36+
def __init__(self, zone_identifier, ):
37+
"""
38+
:param zone_identifier:
39+
"""
40+
41+
self.zone_identifier = zone_identifier
42+
self.value = None
43+
44+
def setValue(self, value):
45+
"""
46+
:param value: (Optional) 该设置的有效值
47+
"""
48+
self.value = value
49+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 ChangeBrowserCheckSettingRequest(JDCloudRequest):
23+
"""
24+
浏览器完整性检查与不良行为检查类似,寻找最常被垃圾邮件发送者滥用的常见HTTP头,并拒绝他们访问您的页面。它还会对没有用户代理或非标准用户代理(也是滥用机器人、爬虫或访客常用的)的访客提出挑战质询。
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(ChangeBrowserCheckSettingRequest, self).__init__(
30+
'/zones/{zone_identifier}/settings$$browser_check', 'PATCH', header, version)
31+
self.parameters = parameters
32+
33+
34+
class ChangeBrowserCheckSettingParameters(object):
35+
36+
def __init__(self, zone_identifier, ):
37+
"""
38+
:param zone_identifier:
39+
"""
40+
41+
self.zone_identifier = zone_identifier
42+
self.value = None
43+
44+
def setValue(self, value):
45+
"""
46+
:param value: (Optional) on - 开启;off - 关闭
47+
"""
48+
self.value = value
49+

0 commit comments

Comments
 (0)