Skip to content

Commit d4f85eb

Browse files
committed
publish jdcloud-sdk-python 1.6.86
1 parent b74870d commit d4f85eb

41 files changed

Lines changed: 912 additions & 39 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
# 更新历史
22

3-
API版本:2.2.3
3+
API版本:2.2.5
44

55
|发布时间|版本号|更新|说明|
66
|---|---|---|---|
7-
|2020-03-31|2.2.3|文档更新|* 创建文档更新|
8-
|2020-03-31|2.2.2|新增接口|* 新增接口:用户配置查询|
9-
|2020-02-11|2.2.1|功能完善|* 支持本地系统盘|
10-
|2019-11-27|2.2.0|新增接口|* 新增接口:调整原生容器实例类型配置|
7+
|2020-11-27|2.2.5|功能更新|* 支持创建打标|
8+
|2020-07-24|2.2.4|文档更新|* 文档更新|
9+
|2019-11-27|2.2.0|新增接口|* 新增接口:调整实例类型配置|
1110
|2019-08-06|2.1.0|新增接口|* 新增接口:查询实例类型|
12-
|2019-07-25|2.0.0|接口更新|* 修复已知问题|
13-
|2019-06-05|1.0.2|新增接口|* 增加内部接口:校验镜像与镜像仓库认证信息|
14-
|2019-04-29|1.0.1|功能完善|* 支持续费|
15-
|2019-04-22|1.0.0|功能完善|* 支持性能型SSD云盘设置IOPS|
16-
|2018-08-22|0.2.6|功能完善|* 支持标签|
17-
|2018-08-22|0.2.5|修订与部署|* 修复了若干参数属性错误|
18-
|2018-08-22|0.2.4|修订与部署|* 细化描述和注释相关|
19-
|2018-08-20|0.2.3|修订与部署|* SDK新增对Android系统的支持|
20-
|2018-07-25|0.2.2|修订与部署|* 容器服务改为原生容器|
21-
|2018-03-31|0.2.1|初始版本|* 初步完成所有接口|
11+
|2019-07-25|2.0.0|版本更新|* 功能完善|
12+
|2019-04-29|1.0.1|功能更新|* 支持续费|
13+
|2019-04-22|1.0.0|版本更新|* 功能完善|
14+
|2018-08-22|0.2.6|功能更新|* 支持标签|
15+
|2018-03-31|0.2.1|初始版本|* 初始版本|

jdcloud_sdk/services/nativecontainer/apis/DescribeContainersRequest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,12 @@ def setPageSize(self, pageSize):
6060
def setFilters(self, filters):
6161
"""
6262
:param filters: (Optional) containerId - 实例ID,精确匹配,支持多个
63-
privateIpAddress - 主网卡IP地址,精确匹配,支持单个
63+
privateIpAddress - 主网卡IP地址,模糊匹配,支持单个
6464
az - 可用区,精确匹配,支持多个
6565
vpcId - 私有网络ID,精确匹配,支持多个
6666
status - 容器状态,精确匹配,支持多个
6767
name - 容器名称,模糊匹配,支持单个
6868
subnetId - 子网ID,精确匹配,支持多个
69-
securityGroups - 安全组 id,精确匹配,支持多个
7069
7170
"""
7271
self.filters = filters

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

29-
super(NativecontainerClient, self).__init__(credential, config, 'nativecontainer', '2.2.3', logger)
29+
super(NativecontainerClient, self).__init__(credential, config, 'nativecontainer', '2.2.5', logger)

jdcloud_sdk/services/nativecontainer/models/ContainerSpec.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ContainerSpec(object):
2121

22-
def __init__(self, instanceType, az, name, image, rootVolume, primaryNetworkInterface, hostAliases=None, hostname=None, command=None, args=None, envs=None, secret=None, tty=None, workingDir=None, dataVolumes=None, elasticIp=None, logConfiguration=None, description=None, charge=None):
22+
def __init__(self, instanceType, az, name, image, rootVolume, primaryNetworkInterface, hostAliases=None, hostname=None, command=None, args=None, envs=None, secret=None, tty=None, workingDir=None, dataVolumes=None, elasticIp=None, logConfiguration=None, description=None, charge=None, userTags=None):
2323
"""
2424
:param instanceType: 实例类型;参考[文档](https://www.jdcloud.com/help/detail/1992/isCatalog/1)
2525
:param az: 容器所属可用区
@@ -40,6 +40,7 @@ def __init__(self, instanceType, az, name, image, rootVolume, primaryNetworkInte
4040
:param logConfiguration: (Optional) 容器日志配置信息;默认会在本地分配10MB的存储空间
4141
:param description: (Optional) 容器描述
4242
:param charge: (Optional) 计费配置;如不指定,默认计费类型是后付费-按使用时常付费
43+
:param userTags: (Optional) 用户普通标签集合
4344
"""
4445

4546
self.instanceType = instanceType
@@ -61,3 +62,4 @@ def __init__(self, instanceType, az, name, image, rootVolume, primaryNetworkInte
6162
self.logConfiguration = logConfiguration
6263
self.description = description
6364
self.charge = charge
65+
self.userTags = userTags
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 更新历史 #
2+
API版本:1.0.0
3+
4+
|发布时间|版本号|更新|说明|
5+
|---|---|---|---|
6+
|2020-11-30 |1.0.0 |初始化版本 |* 音视频融合rtc openApi |
7+

jdcloud_sdk/services/openjrtc/__init__.py

Whitespace-only changes.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 CreateRoomRequest(JDCloudRequest):
23+
"""
24+
创建房间
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(CreateRoomRequest, self).__init__(
30+
'/createRoom', 'POST', header, version)
31+
self.parameters = parameters
32+
33+
34+
class CreateRoomParameters(object):
35+
36+
def __init__(self, ):
37+
"""
38+
"""
39+
40+
self.roomName = None
41+
self.appId = None
42+
self.peerId = None
43+
44+
def setRoomName(self, roomName):
45+
"""
46+
:param roomName: (Optional) 房间名称
47+
"""
48+
self.roomName = roomName
49+
50+
def setAppId(self, appId):
51+
"""
52+
:param appId: (Optional) 应用ID
53+
"""
54+
self.appId = appId
55+
56+
def setPeerId(self, peerId):
57+
"""
58+
:param peerId: (Optional) JRtc用户ID(创建者ID)
59+
"""
60+
self.peerId = peerId
61+
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 CreateUserRequest(JDCloudRequest):
23+
"""
24+
创建JRtc用户
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(CreateUserRequest, self).__init__(
30+
'/createUser', 'POST', header, version)
31+
self.parameters = parameters
32+
33+
34+
class CreateUserParameters(object):
35+
36+
def __init__(self, ):
37+
"""
38+
"""
39+
40+
self.appId = None
41+
self.userName = None
42+
self.userId = None
43+
self.temporary = None
44+
45+
def setAppId(self, appId):
46+
"""
47+
:param appId: (Optional) 应用ID
48+
"""
49+
self.appId = appId
50+
51+
def setUserName(self, userName):
52+
"""
53+
:param userName: (Optional) 用户名称
54+
"""
55+
self.userName = userName
56+
57+
def setUserId(self, userId):
58+
"""
59+
:param userId: (Optional) 业务接入方的用户ID
60+
"""
61+
self.userId = userId
62+
63+
def setTemporary(self, temporary):
64+
"""
65+
:param temporary: (Optional) 是否临时用户
66+
"""
67+
self.temporary = temporary
68+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 DescribeRoomOnlineUserNumRequest(JDCloudRequest):
23+
"""
24+
查询房间实时在线人数:
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeRoomOnlineUserNumRequest, self).__init__(
30+
'/describeRoomOnlineUserNum/{roomId}', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeRoomOnlineUserNumParameters(object):
35+
36+
def __init__(self, roomId, ):
37+
"""
38+
:param roomId: 房间ID
39+
"""
40+
41+
self.roomId = roomId
42+

jdcloud_sdk/services/openjrtc/apis/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)