Skip to content

Commit 9bf33f8

Browse files
publish jdcloud-sdk-python 1.6.308
1 parent e244b39 commit 9bf33f8

62 files changed

Lines changed: 1531 additions & 47 deletions

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/waf/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ API版本:1.0.8
1111
|2022-06-13|1.0.6|版本5|* API及分组定义基础接口|
1212
|2023-06-25|1.0.7|版本6|* API及分组定义基础接口|
1313
|2023-06-28|1.0.8|版本7|* API及分组定义基础接口|
14+
|2026-02-10|1.0.9|版本8|* API及分组定义基础接口|
1415

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 ApiEnableRequest(JDCloudRequest):
23+
"""
24+
开启/关闭api安全功能
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ApiEnableRequest, self).__init__(
29+
'/regions/{regionId}/wafInstanceIds/{wafInstanceId}/api:enable', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ApiEnableParameters(object):
34+
35+
def __init__(self,regionId, wafInstanceId, req):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param wafInstanceId: 实例Id
39+
:param req: 请求
40+
"""
41+
42+
self.regionId = regionId
43+
self.wafInstanceId = wafInstanceId
44+
self.req = req
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 ApiOperateUserRequest(JDCloudRequest):
23+
"""
24+
自定义规则批量设置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ApiOperateUserRequest, self).__init__(
29+
'/regions/{regionId}/wafInstanceIds/{wafInstanceId}/api:operateUser', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ApiOperateUserParameters(object):
34+
35+
def __init__(self,regionId, wafInstanceId, req):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param wafInstanceId: 实例Id
39+
:param req: 请求
40+
"""
41+
42+
self.regionId = regionId
43+
self.wafInstanceId = wafInstanceId
44+
self.req = req
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 GetApiEnableRequest(JDCloudRequest):
23+
"""
24+
获取api安全功能状态
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(GetApiEnableRequest, self).__init__(
29+
'/regions/{regionId}/wafInstanceIds/{wafInstanceId}/api:getEnable', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetApiEnableParameters(object):
34+
35+
def __init__(self,regionId, wafInstanceId, req):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param wafInstanceId: 实例Id
39+
:param req: 请求
40+
"""
41+
42+
self.regionId = regionId
43+
self.wafInstanceId = wafInstanceId
44+
self.req = req
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 GetApiUserCountRequest(JDCloudRequest):
23+
"""
24+
获取api自定义规则数量
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(GetApiUserCountRequest, self).__init__(
29+
'/regions/{regionId}/wafInstanceIds/{wafInstanceId}/api:getUserCount', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetApiUserCountParameters(object):
34+
35+
def __init__(self,regionId, wafInstanceId, req):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param wafInstanceId: 实例Id
39+
:param req: 请求
40+
"""
41+
42+
self.regionId = regionId
43+
self.wafInstanceId = wafInstanceId
44+
self.req = req
45+

jdcloud_sdk/services/waf/apis/GetEsLogDetailRequest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def __init__(self,regionId, start, end, pageSize, pageIndex):
5252
self.action = None
5353
self.status = None
5454
self.logType = None
55-
self.logId = None
5655
self.request_id = None
56+
self.upstreamErr = None
5757
self.start = start
5858
self.end = end
5959
self.pageSize = pageSize
@@ -119,15 +119,15 @@ def setLogType(self, logType):
119119
"""
120120
self.logType = logType
121121

122-
def setLogId(self, logId):
123-
"""
124-
:param logId: (Optional) 日志Id,检索字段
125-
"""
126-
self.logId = logId
127-
128122
def setRequest_id(self, request_id):
129123
"""
130124
:param request_id: (Optional) 请求Id,检索字段
131125
"""
132126
self.request_id = request_id
133127

128+
def setUpstreamErr(self, upstreamErr):
129+
"""
130+
:param upstreamErr: (Optional) 状态标识,检索字段
131+
"""
132+
self.upstreamErr = upstreamErr
133+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 ImportIpsetRequest(JDCloudRequest):
23+
"""
24+
导入ip集
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ImportIpsetRequest, self).__init__(
29+
'/regions/{regionId}/wafInstanceIds/{wafInstanceId}/userdefine:importIpset', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ImportIpsetParameters(object):
34+
35+
def __init__(self,regionId, wafInstanceId, req):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param wafInstanceId: 实例Id
39+
:param req: 请求
40+
"""
41+
42+
self.regionId = regionId
43+
self.wafInstanceId = wafInstanceId
44+
self.req = req
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 ListApiDetectUserRequest(JDCloudRequest):
23+
"""
24+
获取api识别自定义规则
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ListApiDetectUserRequest, self).__init__(
29+
'/regions/{regionId}/wafInstanceIds/{wafInstanceId}/api:listDetectUser', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ListApiDetectUserParameters(object):
34+
35+
def __init__(self,regionId, wafInstanceId, req):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param wafInstanceId: 实例Id
39+
:param req: 请求
40+
"""
41+
42+
self.regionId = regionId
43+
self.wafInstanceId = wafInstanceId
44+
self.req = req
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 ListApiRiskUserRequest(JDCloudRequest):
23+
"""
24+
获取风险识别自定义规则
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(ListApiRiskUserRequest, self).__init__(
29+
'/regions/{regionId}/wafInstanceIds/{wafInstanceId}/api:listRiskUser', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ListApiRiskUserParameters(object):
34+
35+
def __init__(self,regionId, wafInstanceId, req):
36+
"""
37+
:param regionId: 实例所属的地域ID
38+
:param wafInstanceId: 实例Id
39+
:param req: 请求
40+
"""
41+
42+
self.regionId = regionId
43+
self.wafInstanceId = wafInstanceId
44+
self.req = req
45+

0 commit comments

Comments
 (0)