Skip to content

Commit f8d2629

Browse files
authored
Merge pull request #100 from Tanc009/master
publish jdcloud-sdk-python 1.6.66
2 parents 64b78d1 + 0b361ac commit f8d2629

13 files changed

Lines changed: 358 additions & 86 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+

jdcloud_sdk/services/hufu/apis/ModifyRouterByLowerRequest.py renamed to jdcloud_sdk/services/hufu/apis/DescribeDeploymentRequest.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,25 @@
1919
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
2020

2121

22-
class ModifyRouterByLowerRequest(JDCloudRequest):
22+
class DescribeDeploymentRequest(JDCloudRequest):
2323
"""
24-
下游更新路由信息
24+
查询该版本的部署详情
2525
"""
2626

2727
def __init__(self, parameters, header=None, version="v1"):
28-
super(ModifyRouterByLowerRequest, self).__init__(
29-
'/accesses/{accessId}:update', 'POST', header, version)
28+
super(DescribeDeploymentRequest, self).__init__(
29+
'/scenes/{sceneId}/deployments/{deploymentId}', 'GET', header, version)
3030
self.parameters = parameters
3131

3232

33-
class ModifyRouterByLowerParameters(object):
33+
class DescribeDeploymentParameters(object):
3434

35-
def __init__(self, accessId, customerId, backendUrl):
35+
def __init__(self, sceneId, deploymentId, ):
3636
"""
37-
:param accessId: 申请接入id
38-
:param customerId: 商家编码
39-
:param backendUrl: 商家服务后端地址
37+
:param sceneId: 场景ID
38+
:param deploymentId: 部署ID
4039
"""
4140

42-
self.accessId = accessId
43-
self.customerId = customerId
44-
self.backendUrl = backendUrl
41+
self.sceneId = sceneId
42+
self.deploymentId = deploymentId
4543

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/apis/QueryApisRequest.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

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

0 commit comments

Comments
 (0)