Skip to content

Commit 3810cd4

Browse files
Merge pull request #150 from jdcloud-apigateway/master
update openapi
2 parents 2639fcf + 1bbd490 commit 3810cd4

9 files changed

Lines changed: 178 additions & 4 deletions

File tree

jdcloud_sdk/services/iotlink/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# 更新历史 #
22

3-
API版本:1.0.4
3+
API版本:1.0.5
44

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
| ---------- | ------ | -------- | ------------------------------------------------------------ |
7+
| 2021-12-14 | 1.0.5 | 接口完善 | 新增通过IMSI参数进行流量查询、开关机查询、上网状态查询、生命周期查询接口 |
78
| 2020-03-18 | 1.0.4 | 接口完善 | 增加卡查询与卡操作通用接口,IMEI查询接口 |
89
| 2019-11-18 | 1.0.3 | 接口完善 | 开关机状态、生命周期、GPRS状态查询接口返回结果增加imsi字段 |
910
| 2019-10-12 | 1.0.2 | host完善 | 更新host |
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 GprsRealtimeInfoByIMSIRequest(JDCloudRequest):
23+
"""
24+
根据物联网卡imsi查询该卡的当月套餐内的GPRS实时使用量
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(GprsRealtimeInfoByIMSIRequest, self).__init__(
29+
'/regions/{regionId}/gprsRealtimeInfoByIMSI', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GprsRealtimeInfoByIMSIParameters(object):
34+
35+
def __init__(self, regionId, imsi):
36+
"""
37+
:param regionId: Region ID
38+
:param imsi: 物联网卡imsi
39+
"""
40+
41+
self.regionId = regionId
42+
self.imsi = imsi
43+
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 GprsStatusByIMSIRequest(JDCloudRequest):
23+
"""
24+
根据物联网卡IMSI查询该卡的GPRS状态信息
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(GprsStatusByIMSIRequest, self).__init__(
29+
'/regions/{regionId}/gprsStatusByIMSI', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GprsStatusByIMSIParameters(object):
34+
35+
def __init__(self, regionId, imsi):
36+
"""
37+
:param regionId: Region ID
38+
:param imsi: 物联网卡IMSI
39+
"""
40+
41+
self.regionId = regionId
42+
self.imsi = imsi
43+
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 LifeStatusByIMSIRequest(JDCloudRequest):
23+
"""
24+
根据物联网卡imsi查询该卡的生命周期信息
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(LifeStatusByIMSIRequest, self).__init__(
29+
'/regions/{regionId}/lifeStatusByIMSI', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class LifeStatusByIMSIParameters(object):
34+
35+
def __init__(self, regionId, imsi):
36+
"""
37+
:param regionId: Region ID
38+
:param imsi: 物联网卡imsi
39+
"""
40+
41+
self.regionId = regionId
42+
self.imsi = imsi
43+
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 OnOffStatusByIMSIRequest(JDCloudRequest):
23+
"""
24+
根据物联网卡imsi查询该卡的开关机状态信息
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(OnOffStatusByIMSIRequest, self).__init__(
29+
'/regions/{regionId}/onOffStatusByIMSI', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class OnOffStatusByIMSIParameters(object):
34+
35+
def __init__(self, regionId, imsi):
36+
"""
37+
:param regionId: Region ID
38+
:param imsi: 物联网卡imsi
39+
"""
40+
41+
self.regionId = regionId
42+
self.imsi = imsi
43+

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

29-
super(IotlinkClient, self).__init__(credential, config, 'iotlink', '1.0.4', logger)
29+
super(IotlinkClient, self).__init__(credential, config, 'iotlink', '1.0.5', logger)

jdcloud_sdk/services/live/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ API 版本:1.0.21
33

44
|发布时间|版本号|更新|说明|
55
|------------|-------|------|-------|
6+
|2021-12-08|1.0.22| 添加接口| 修改直播拉流转推创建任务接口返回参数|
67
|2021-08-31|1.0.21| 添加接口| 添加直播拉流转推相关接口|
78
|2021-06-29|1.0.20| 添加接口| 添加直播翻译相关接口|
89
|2020-12-31|1.0.19| 添加接口| 添加查询推流、播放信息分页接口|

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

29-
super(LiveClient, self).__init__(credential, config, 'live', '1.0.21', logger)
29+
super(LiveClient, self).__init__(credential, config, 'live', '1.0.22', logger)

setup.py

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

1010
setup(
1111
name='jdcloud_sdk',
12-
version="1.6.125",
12+
version="1.6.127",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)