Skip to content

Commit d30e531

Browse files
committed
publish jdcloud-sdk-python 1.6.66
1 parent 8b587ec commit d30e531

12 files changed

Lines changed: 391 additions & 5 deletions
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# 更新历史 #
2-
API版本:1.0.2
2+
API版本:1.0.7
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2020-06-24 |1.0.7 |新增接口 | * 增加判断字符串是否是虎符密文接口
7+
|2020-06-24 |1.0.6 |新增接口 | * 增加虎符商业化相关接口
8+
|2020-06-04 |1.0.5 |修改接口 | * 修改查询日志接口-增加host参数
9+
|2020-05-20 |1.0.4 |新增接口 | * 增加日志相关接口
10+
|2020-05-19 |1.0.3 |新增接口 | * 增加部署相关接口
611
|2019-11-08 |1.0.2 |新增接口 | * 增加加密相关接口
712
|2019-11-08 |1.0.1 |新增接口 | * 增加部署相关接口<br> * 增加场景相关接口<br> * 增加版本号相关接口<br> * 增加api相关接口<br>
813
|2019-11-08 |1.0.0 |新增接口 | * 增加wms接入确认接口<br> * 增加erp接入申请驳回接口<br> * 增加customerId校验接口<br> * 增加wms应用secretKey重置接口
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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 DeployRequest(JDCloudRequest):
23+
"""
24+
发布版本
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DeployRequest, self).__init__(
29+
'/scenes/{sceneId}/deployments', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeployParameters(object):
34+
35+
def __init__(self, sceneId, revision, environment, ):
36+
"""
37+
:param sceneId: 场景ID
38+
:param revision: 发布的修订版本号
39+
:param environment: 环境:test、preview、online
40+
"""
41+
42+
self.sceneId = sceneId
43+
self.revision = revision
44+
self.environment = environment
45+
self.backendServiceType = None
46+
self.backendUrl = None
47+
self.description = None
48+
self.jdsfName = None
49+
self.jdsfRegistryName = None
50+
self.jdsfId = None
51+
52+
def setBackendServiceType(self, backendServiceType):
53+
"""
54+
:param backendServiceType: (Optional) 后端服务类型:mock、unique、vpc
55+
"""
56+
self.backendServiceType = backendServiceType
57+
58+
def setBackendUrl(self, backendUrl):
59+
"""
60+
:param backendUrl: (Optional) 后端地址
61+
"""
62+
self.backendUrl = backendUrl
63+
64+
def setDescription(self, description):
65+
"""
66+
:param description: (Optional) 描述
67+
"""
68+
self.description = description
69+
70+
def setJdsfName(self, jdsfName):
71+
"""
72+
:param jdsfName: (Optional) 微服务网关名称
73+
"""
74+
self.jdsfName = jdsfName
75+
76+
def setJdsfRegistryName(self, jdsfRegistryName):
77+
"""
78+
:param jdsfRegistryName: (Optional) 微服务注册中心ID
79+
"""
80+
self.jdsfRegistryName = jdsfRegistryName
81+
82+
def setJdsfId(self, jdsfId):
83+
"""
84+
:param jdsfId: (Optional) 微服务ID
85+
"""
86+
self.jdsfId = jdsfId
87+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 DescribeDeploymentRequest(JDCloudRequest):
23+
"""
24+
查询该版本的部署详情
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DescribeDeploymentRequest, self).__init__(
29+
'/scenes/{sceneId}/deployments/{deploymentId}', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeDeploymentParameters(object):
34+
35+
def __init__(self, sceneId, deploymentId, ):
36+
"""
37+
:param sceneId: 场景ID
38+
:param deploymentId: 部署ID
39+
"""
40+
41+
self.sceneId = sceneId
42+
self.deploymentId = deploymentId
43+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 IsEncryptDataRequest(JDCloudRequest):
23+
"""
24+
加密
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(IsEncryptDataRequest, self).__init__(
29+
'/isEncryptData', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class IsEncryptDataParameters(object):
34+
35+
def __init__(self, ):
36+
"""
37+
"""
38+
39+
self.cipher = None
40+
41+
def setCipher(self, cipher):
42+
"""
43+
:param cipher: (Optional) 密文
44+
"""
45+
self.cipher = cipher
46+
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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 QueryAccessLogRequest(JDCloudRequest):
23+
"""
24+
查询access日志
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(QueryAccessLogRequest, self).__init__(
29+
'/access', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryAccessLogParameters(object):
34+
35+
def __init__(self, startTime, endTime, ):
36+
"""
37+
:param startTime: 开始时间,utc格式,例如:2020-05-19T00:00:05+0800
38+
:param endTime: 结束时间,utc格式,例如:2020-05-19T00:00:05+0800
39+
"""
40+
41+
self.call_pin = None
42+
self.response_status = None
43+
self.api_name = None
44+
self.access_key = None
45+
self.host = None
46+
self.startTime = startTime
47+
self.endTime = endTime
48+
self.pageNumber = None
49+
self.pageSize = None
50+
51+
def setCall_pin(self, call_pin):
52+
"""
53+
:param call_pin: (Optional) 调用者pin
54+
"""
55+
self.call_pin = call_pin
56+
57+
def setResponse_status(self, response_status):
58+
"""
59+
:param response_status: (Optional) 响应码
60+
"""
61+
self.response_status = response_status
62+
63+
def setApi_name(self, api_name):
64+
"""
65+
:param api_name: (Optional) api名称
66+
"""
67+
self.api_name = api_name
68+
69+
def setAccess_key(self, access_key):
70+
"""
71+
:param access_key: (Optional) 调用者accessKey
72+
"""
73+
self.access_key = access_key
74+
75+
def setHost(self, host):
76+
"""
77+
:param host: (Optional) 请求虎符网关的域名
78+
"""
79+
self.host = host
80+
81+
def setPageNumber(self, pageNumber):
82+
"""
83+
:param pageNumber: (Optional) 页码
84+
"""
85+
self.pageNumber = pageNumber
86+
87+
def setPageSize(self, pageSize):
88+
"""
89+
:param pageSize: (Optional) 分页大小
90+
"""
91+
self.pageSize = pageSize
92+

jdcloud_sdk/services/hufu/client/HufuClient.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('hufu.jdcloud-api.com')
2828

29-
super(HufuClient, self).__init__(credential, config, 'hufu', '1.0.2', logger)
29+
super(HufuClient, self).__init__(credential, config, 'hufu', '1.0.7', 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 AccessLog(object):
21+
22+
def __init__(self, time=None, content=None):
23+
"""
24+
:param time: (Optional) 请求时间
25+
:param content: (Optional) 日志内容
26+
"""
27+
28+
self.time = time
29+
self.content = content

jdcloud_sdk/services/hufu/models/Api.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919

2020
class Api(object):
2121

22-
def __init__(self, apiId=None, apiGroupId=None, apiName=None, action=None, path=None, backServiceType=None, description=None, reqParams=None, reqBody=None, resBody=None, reqBodyType=None, resBodyType=None, apiBackendConfig=None, hufuAppTypeId=None, deploymentEnvironment=None, editableReqBodyType=None, editableResBodyType=None):
22+
def __init__(self, apiId=None, apiGroupId=None, apiName=None, action=None, path=None, matchType=None, backServiceType=None, description=None, reqParams=None, reqBody=None, resBody=None, reqBodyType=None, resBodyType=None, apiBackendConfig=None, hufuAppTypeId=None, deploymentEnvironment=None, editableReqBodyType=None, editableResBodyType=None, wafStatus=None, reqBodyFormatType=None, resBodyFormatType=None):
2323
"""
2424
:param apiId: (Optional) apiId
2525
:param apiGroupId: (Optional) 分组ID
2626
:param apiName: (Optional) 名称
2727
:param action: (Optional) 动作
2828
:param path: (Optional) 请求路径
29+
:param matchType: (Optional) 匹配模式:1."absolute"(绝对匹配); 2."prefix"(前缀匹配);
2930
:param backServiceType: (Optional) 后端类型,为空或null时前端显示未设置
3031
:param description: (Optional) 描述
3132
:param reqParams: (Optional) 请求参数列表
@@ -38,13 +39,17 @@ def __init__(self, apiId=None, apiGroupId=None, apiName=None, action=None, path=
3839
:param deploymentEnvironment: (Optional) 当前分组版本,发布的环境信息
3940
:param editableReqBodyType: (Optional) 请求格式类型,当reqBodyType等于3时,使用该请求格式类型
4041
:param editableResBodyType: (Optional) 响应格式类型,当resBodyType等于3时,使用该响应格式类型
42+
:param wafStatus: (Optional) waf状态,如:observe,deny,off
43+
:param reqBodyFormatType: (Optional) 请求体格式类型,1代表jsonschema,2代表swagger,默认为1
44+
:param resBodyFormatType: (Optional) 返回体格式类型,1代表jsonschema,2代表swagger,默认为1
4145
"""
4246

4347
self.apiId = apiId
4448
self.apiGroupId = apiGroupId
4549
self.apiName = apiName
4650
self.action = action
4751
self.path = path
52+
self.matchType = matchType
4853
self.backServiceType = backServiceType
4954
self.description = description
5055
self.reqParams = reqParams
@@ -57,3 +62,6 @@ def __init__(self, apiId=None, apiGroupId=None, apiName=None, action=None, path=
5762
self.deploymentEnvironment = deploymentEnvironment
5863
self.editableReqBodyType = editableReqBodyType
5964
self.editableResBodyType = editableResBodyType
65+
self.wafStatus = wafStatus
66+
self.reqBodyFormatType = reqBodyFormatType
67+
self.resBodyFormatType = resBodyFormatType

0 commit comments

Comments
 (0)