Skip to content

Commit 45abc96

Browse files
committed
Update ListAgent.
1 parent d67ffb3 commit 45abc96

File tree

821 files changed

+88
-1047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

821 files changed

+88
-1047
lines changed

chatbot-20220408/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-03-21 Version: 1.0.6
2+
- Update ListAgent.
3+
14
2022-12-26 Version: 1.0.5
25
- ListDsAnswer api-add DialogName for return Object.
36
- Update RequestId mapping.

chatbot-20220408/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0modelVersion>
44
<groupId>com.aliyungroupId>
55
<artifactId>alibabacloud-chatbot20220408artifactId>
6-
<version>1.0.5version>
6+
<version>1.0.6version>
77
<packaging>jarpackaging>
88
<name>alibabacloud-chatbot20220408name>
99
<description>Alibaba Cloud Chatbot (20220408) Async SDK for Java
@@ -41,7 +41,7 @@
4141
<java.version>1.8java.version>
4242
<maven.compiler.source>8maven.compiler.source>
4343
<maven.compiler.target>8maven.compiler.target>
44-
<service.version>0.1.8-betaservice.version>
44+
<service.version>0.1.12-betaservice.version>
4545
properties>
4646
<dependencies>
4747
<dependency>

chatbot-20220408/src/main/java/com/aliyun/sdk/service/chatbot20220408/models/CancelPublishTaskRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public Builder agentKey(String agentKey) {
100100
}
101101

102102
/**
103-
* 任务ID
103+
* 发布任务Id
104104
*/
105105
public Builder id(Long id) {
106106
this.putQueryParameter("Id", id);

chatbot-20220408/src/main/java/com/aliyun/sdk/service/chatbot20220408/models/CancelPublishTaskResponseBody.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ public Builder createTime(String createTime) {
138138
}
139139

140140
/**
141-
* job失败信息
141+
* 发布任务失败信息
142142
*/
143143
public Builder error(String error) {
144144
this.error = error;
145145
return this;
146146
}
147147

148148
/**
149-
* 任务Id
149+
* 发布任务Id
150150
*/
151151
public Builder id(Long id) {
152152
this.id = id;
@@ -170,15 +170,15 @@ public Builder requestId(String requestId) {
170170
}
171171

172172
/**
173-
* 任务Id
173+
* 发布任务Id,冗余字段,建议使用Id字段获取发布任务Id
174174
*/
175175
public Builder response(String response) {
176176
this.response = response;
177177
return this;
178178
}
179179

180180
/**
181-
* 任务状态
181+
* 任务状态( FE_RUNNING:正在发布中 FE_SUCCESS:发布成功 FE_FAILED:发布失败 FE_ABORTED:发布取消)
182182
*/
183183
public Builder status(String status) {
184184
this.status = status;

chatbot-20220408/src/main/java/com/aliyun/sdk/service/chatbot20220408/models/CreatePublishTaskRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public Builder regionId(String regionId) {
105105
}
106106

107107
/**
108-
* 业务空间key,不设置则访问默认业务空间,key值在主账号业务管理页面获取
108+
* 业务空间key,若不指定则请求默认业务空间,key值在主账号业务管理页面获取
109109
*/
110110
public Builder agentKey(String agentKey) {
111111
this.putQueryParameter("AgentKey", agentKey);
@@ -114,7 +114,7 @@ public Builder agentKey(String agentKey) {
114114
}
115115

116116
/**
117-
* 发布单元类型,机器人发布请使用 CreateInstancePublishTask API
117+
* 发布任务的业务类型,若发布机器人请使用 CreateInstancePublishTask API
118118
*/
119119
public Builder bizType(String bizType) {
120120
this.putQueryParameter("BizType", bizType);
@@ -123,7 +123,7 @@ public Builder bizType(String bizType) {
123123
}
124124

125125
/**
126-
* 附加发布信息,当前支持:如果BizType是faq,此字段填写类目Id,表示只发布这些类目下面的知识
126+
* 业务类型附加信息,当前仅支持BizType为faq的传参,此字段指定faq类目Id列表,表示只发布指定类目下面的faq知识
127127
*/
128128
public Builder dataIdList(java.util.List < String > dataIdList) {
129129
String dataIdListShrink = shrink(dataIdList, "DataIdList", "json");

chatbot-20220408/src/main/java/com/aliyun/sdk/service/chatbot20220408/models/CreatePublishTaskResponseBody.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ public Builder createTime(String createTime) {
138138
}
139139

140140
/**
141-
* job失败信息
141+
* 发布任务失败信息
142142
*/
143143
public Builder error(String error) {
144144
this.error = error;
145145
return this;
146146
}
147147

148148
/**
149-
* 任务Id
149+
* 发布任务Id
150150
*/
151151
public Builder id(Long id) {
152152
this.id = id;
@@ -170,15 +170,15 @@ public Builder requestId(String requestId) {
170170
}
171171

172172
/**
173-
* 任务Id
173+
* 发布任务Id,冗余字段,建议使用Id字段获取发布任务Id
174174
*/
175175
public Builder response(String response) {
176176
this.response = response;
177177
return this;
178178
}
179179

180180
/**
181-
* 任务状态
181+
* 任务状态( FE_RUNNING:正在发布中 FE_SUCCESS:发布成功 FE_FAILED:发布失败 FE_ABORTED:发布取消)
182182
*/
183183
public Builder status(String status) {
184184
this.status = status;

chatbot-20220408/src/main/java/com/aliyun/sdk/service/chatbot20220408/models/GetPublishTaskStateRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public Builder agentKey(String agentKey) {
100100
}
101101

102102
/**
103-
* 任务ID
103+
* 发布任务Id
104104
*/
105105
public Builder id(Long id) {
106106
this.putQueryParameter("Id", id);

chatbot-20220408/src/main/java/com/aliyun/sdk/service/chatbot20220408/models/GetPublishTaskStateResponseBody.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public Builder createTime(String createTime) {
162162
}
163163

164164
/**
165-
* job失败信息
165+
* 发布任务失败信息
166166
*/
167167
public Builder error(String error) {
168168
this.error = error;
@@ -178,7 +178,7 @@ public Builder errors(java.util.Map < String, ? > errors) {
178178
}
179179

180180
/**
181-
* 任务Id
181+
* 发布任务Id
182182
*/
183183
public Builder id(Long id) {
184184
this.id = id;
@@ -202,15 +202,15 @@ public Builder requestId(String requestId) {
202202
}
203203

204204
/**
205-
* 任务Id
205+
* 发布任务Id,冗余字段,建议使用Id字段获取发布任务Id
206206
*/
207207
public Builder response(String response) {
208208
this.response = response;
209209
return this;
210210
}
211211

212212
/**
213-
* 任务状态
213+
* 任务状态( FE_RUNNING:正在发布中 FE_SUCCESS:发布成功 FE_FAILED:发布失败 FE_ABORTED:发布取消)
214214
*/
215215
public Builder status(String status) {
216216
this.status = status;

chatbot-20220408/src/main/java/com/aliyun/sdk/service/chatbot20220408/models/ListAgentRequest.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
*

ListAgentRequest

1313
*/
1414
public class ListAgentRequest extends Request {
15+
@Query
16+
@NameInMap("AgentName")
17+
private String agentName;
18+
19+
@Query
20+
@NameInMap("GoodsCodes")
21+
private String goodsCodes;
22+
1523
@Query
1624
@NameInMap("PageNumber")
1725
private Integer pageNumber;
@@ -22,6 +30,8 @@ public class ListAgentRequest extends Request {
2230

2331
private ListAgentRequest(Builder builder) {
2432
super(builder);
33+
this.agentName = builder.agentName;
34+
this.goodsCodes = builder.goodsCodes;
2535
this.pageNumber = builder.pageNumber;
2636
this.pageSize = builder.pageSize;
2737
}
@@ -39,6 +49,20 @@ public Builder toBuilder() {
3949
return new Builder(this);
4050
}
4151

52+
/**
53+
* @return agentName
54+
*/
55+
public String getAgentName() {
56+
return this.agentName;
57+
}
58+
59+
/**
60+
* @return goodsCodes
61+
*/
62+
public String getGoodsCodes() {
63+
return this.goodsCodes;
64+
}
65+
4266
/**
4367
* @return pageNumber
4468
*/
@@ -54,6 +78,8 @@ public Integer getPageSize() {
5478
}
5579

5680
public static final class Builder extends Request.Builder<ListAgentRequest, Builder> {
81+
private String agentName;
82+
private String goodsCodes;
5783
private Integer pageNumber;
5884
private Integer pageSize;
5985

@@ -63,10 +89,30 @@ private Builder() {
6389

6490
private Builder(ListAgentRequest request) {
6591
super(request);
92+
this.agentName = request.agentName;
93+
this.goodsCodes = request.goodsCodes;
6694
this.pageNumber = request.pageNumber;
6795
this.pageSize = request.pageSize;
6896
}
6997

98+
/**
99+
* AgentName.
100+
*/
101+
public Builder agentName(String agentName) {
102+
this.putQueryParameter("AgentName", agentName);
103+
this.agentName = agentName;
104+
return this;
105+
}
106+
107+
/**
108+
* GoodsCodes.
109+
*/
110+
public Builder goodsCodes(String goodsCodes) {
111+
this.putQueryParameter("GoodsCodes", goodsCodes);
112+
this.goodsCodes = goodsCodes;
113+
return this;
114+
}
115+
70116
/**
71117
* PageNumber.
72118
*/

chatbot-20220408/src/main/java/com/aliyun/sdk/service/chatbot20220408/models/ListAgentResponseBody.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,14 @@ public static class Data extends TeaModel {
141141
@NameInMap("AgentName")
142142
private String agentName;
143143

144+
@NameInMap("InstanceInfos")
145+
private java.util.Map < String, ? > instanceInfos;
146+
144147
private Data(Builder builder) {
145148
this.agentId = builder.agentId;
146149
this.agentKey = builder.agentKey;
147150
this.agentName = builder.agentName;
151+
this.instanceInfos = builder.instanceInfos;
148152
}
149153

150154
public static Builder builder() {
@@ -176,10 +180,18 @@ public String getAgentName() {
176180
return this.agentName;
177181
}
178182

183+
/**
184+
* @return instanceInfos
185+
*/
186+
public java.util.Map < String, ? > getInstanceInfos() {
187+
return this.instanceInfos;
188+
}
189+
179190
public static final class Builder {
180191
private Long agentId;
181192
private String agentKey;
182193
private String agentName;
194+
private java.util.Map < String, ? > instanceInfos;
183195

184196
/**
185197
* AgentId.
@@ -205,6 +217,14 @@ public Builder agentName(String agentName) {
205217
return this;
206218
}
207219

220+
/**
221+
* InstanceInfos.
222+
*/
223+
public Builder instanceInfos(java.util.Map < String, ? > instanceInfos) {
224+
this.instanceInfos = instanceInfos;
225+
return this;
226+
}
227+
208228
public Data build() {
209229
return new Data(this);
210230
}
Binary file not shown.

0 commit comments

Comments
 (0)