Skip to content

Commit fcb0617

Browse files
publish jdcloud-sdk-python 1.6.311
1 parent b884d64 commit fcb0617

17 files changed

Lines changed: 478 additions & 1 deletion

jdcloud_sdk/services/conversationalai/__init__.py

Whitespace-only changes.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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 QueryConvoAgentListRequest(JDCloudRequest):
23+
"""
24+
分页查询智能体列表,支持多条件过滤
25+
允许通过条件过滤查询,支持的过滤字段如下:
26+
- appId[eq] JRTC appID
27+
- roomId[eq] JRTC 房间号
28+
- userId[eq] 用户Id
29+
- agentName[eq] 智能体名称
30+
- agentId[eq] 智能体Id
31+
- status[eq] 在线状态 智能体状态,0-未启动 1-启动 2-停止 3-异常
32+
- startTime[eq] 用户加入时间段开始时间-UTC时间 startTime,endTime同时有值时生效
33+
- endTime[eq] 用户加入时间段结束时间-UTC时间 startTime,endTime同时有值时生效
34+
35+
"""
36+
37+
def __init__(self, parameters, header=None, version="v1"):
38+
super(QueryConvoAgentListRequest, self).__init__(
39+
'/queryConvoAgentList', 'GET', header, version)
40+
self.parameters = parameters
41+
42+
43+
class QueryConvoAgentListParameters(object):
44+
45+
def __init__(self,):
46+
"""
47+
"""
48+
49+
self.pageNumber = None
50+
self.pageSize = None
51+
self.filters = None
52+
53+
def setPageNumber(self, pageNumber):
54+
"""
55+
:param pageNumber: (Optional) 页码;默认值为 1
56+
"""
57+
self.pageNumber = pageNumber
58+
59+
def setPageSize(self, pageSize):
60+
"""
61+
:param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100]
62+
"""
63+
self.pageSize = pageSize
64+
65+
def setFilters(self, filters):
66+
"""
67+
:param filters: (Optional) 传参字段描述:
68+
- appId[eq] JRTC appID
69+
- roomId[eq] JRTC 房间号
70+
- userId[eq] 用户Id
71+
- agentName[eq] 智能体名称
72+
- agentId[eq] 智能体Id
73+
- status[eq] 在线状态 智能体状态,0-未启动 1-启动 2-停止 3-异常
74+
- startTime[eq] 用户加入时间段开始时间-UTC时间 startTime,endTime同时有值时生效
75+
- endTime[eq] 用户加入时间段结束时间-UTC时间 startTime,endTime同时有值时生效
76+
77+
"""
78+
self.filters = filters
79+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 QueryConvoAgentStatusRequest(JDCloudRequest):
23+
"""
24+
根据智能体ID查询单个智能体的状态信息
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(QueryConvoAgentStatusRequest, self).__init__(
29+
'/queryConvoAgentStatus', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class QueryConvoAgentStatusParameters(object):
34+
35+
def __init__(self,agentId):
36+
"""
37+
:param agentId: 智能体ID
38+
"""
39+
40+
self.agentId = agentId
41+

jdcloud_sdk/services/conversationalai/apis/__init__.py

Whitespace-only changes.
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+
from jdcloud_sdk.core.jdcloudclient import JDCloudClient
20+
from jdcloud_sdk.core.config import Config
21+
22+
23+
class ConversationalaiClient(JDCloudClient):
24+
25+
def __init__(self, credential, config=None, logger=None):
26+
if config is None:
27+
config = Config('conversationalai.jdcloud-api.com')
28+
29+
super(ConversationalaiClient, self).__init__(credential, config, 'conversationalai', '1.0.0', logger)

jdcloud_sdk/services/conversationalai/client/__init__.py

Whitespace-only changes.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 AgentJoinRoomParams(object):
21+
22+
def __init__(self, appId, userRoomId, userId, timestamp, nonce, token, ):
23+
"""
24+
:param appId: JRTC 应用ID
25+
:param userRoomId: JRTC 用户房间号
26+
:param userId: JRTC 用户ID
27+
:param timestamp: 计算鉴权时间戳
28+
:param nonce: 计算鉴权随机数
29+
:param token: 计算鉴权签名
30+
"""
31+
32+
self.appId = appId
33+
self.userRoomId = userRoomId
34+
self.userId = userId
35+
self.timestamp = timestamp
36+
self.nonce = nonce
37+
self.token = token
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+
20+
class ConvoAgentStatusInfo(object):
21+
22+
def __init__(self, agentName=None, agentId=None, appId=None, userPin=None, userRoomId=None, userId=None, status=None, errorMsg=None, createTime=None, updateTime=None):
23+
"""
24+
:param agentName: (Optional) 数字人智能体名称
25+
:param agentId: (Optional) 智能体ID
26+
:param appId: (Optional) JRTC应用ID
27+
:param userPin: (Optional) 用户注册京东云的pin
28+
:param userRoomId: (Optional) JRTC用户房间号
29+
:param userId: (Optional) JRTC用户ID
30+
:param status: (Optional) 智能体状态,0-未启动 1-启动 2-停止 3-异常
31+
:param errorMsg: (Optional) status=3时的异常信息
32+
:param createTime: (Optional) 创建时间 UTC时间格式:YYYY-MM-DDThh:mm:ssZ
33+
:param updateTime: (Optional) 更新时间 UTC时间格式:YYYY-MM-DDThh:mm:ssZ
34+
"""
35+
36+
self.agentName = agentName
37+
self.agentId = agentId
38+
self.appId = appId
39+
self.userPin = userPin
40+
self.userRoomId = userRoomId
41+
self.userId = userId
42+
self.status = status
43+
self.errorMsg = errorMsg
44+
self.createTime = createTime
45+
self.updateTime = updateTime
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 Filter(object):
21+
22+
def __init__(self, name, values, operator=None):
23+
"""
24+
:param name: 过滤器属性名
25+
:param operator: (Optional) 过滤器操作符,默认值为 eq
26+
enum:
27+
- eq
28+
29+
:param values: 过滤器属性值
30+
"""
31+
32+
self.name = name
33+
self.operator = operator
34+
self.values = values
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 QueryConvoAgentListContent(object):
21+
22+
def __init__(self, pageNumber=None, pageSize=None, totalElements=None, totalPages=None, content=None):
23+
"""
24+
:param pageNumber: (Optional) 当前页码
25+
:param pageSize: (Optional) 每页数量
26+
:param totalElements: (Optional) 查询总数
27+
:param totalPages: (Optional) 总页数
28+
:param content: (Optional) 智能体状态
29+
"""
30+
31+
self.pageNumber = pageNumber
32+
self.pageSize = pageSize
33+
self.totalElements = totalElements
34+
self.totalPages = totalPages
35+
self.content = content

0 commit comments

Comments
 (0)