Skip to content

Commit c05ad52

Browse files
committed
Add api request parameters and error code.
1 parent 4f18298 commit c05ad52

File tree

10 files changed

+250
-1
lines changed

10 files changed

+250
-1
lines changed

aliyun-java-sdk-quickbi-public/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-05-28 Version: 2.1.15
2+
- Add api request parameters and error code.
3+
14
2025-04-14 Version: 2.1.14
25
- Add SmartqQueryAbility api request parameters.
36

aliyun-java-sdk-quickbi-public/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-quickbi-public</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.1.14</version>
7+
<version>2.1.15</version>
88
<name>aliyun-java-sdk-quickbi-public</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.quickbi_public.model.v20220101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DataInterpretationRequest extends RpcAcsRequest<DataInterpretationResponse> {
26+
27+
28+
private Boolean promptForceOverride;
29+
30+
private String data;
31+
32+
private String userQuestion;
33+
34+
private String userPrompt;
35+
36+
private String modelCode;
37+
public DataInterpretationRequest() {
38+
super("quickbi-public", "2022-01-01", "DataInterpretation", "2.2.0");
39+
setProtocol(ProtocolType.HTTPS);
40+
setMethod(MethodType.POST);
41+
}
42+
43+
public Boolean getPromptForceOverride() {
44+
return this.promptForceOverride;
45+
}
46+
47+
public void setPromptForceOverride(Boolean promptForceOverride) {
48+
this.promptForceOverride = promptForceOverride;
49+
if(promptForceOverride != null){
50+
putQueryParameter("PromptForceOverride", promptForceOverride.toString());
51+
}
52+
}
53+
54+
public String getData() {
55+
return this.data;
56+
}
57+
58+
public void setData(String data) {
59+
this.data = data;
60+
if(data != null){
61+
putQueryParameter("Data", data);
62+
}
63+
}
64+
65+
public String getUserQuestion() {
66+
return this.userQuestion;
67+
}
68+
69+
public void setUserQuestion(String userQuestion) {
70+
this.userQuestion = userQuestion;
71+
if(userQuestion != null){
72+
putQueryParameter("UserQuestion", userQuestion);
73+
}
74+
}
75+
76+
public String getUserPrompt() {
77+
return this.userPrompt;
78+
}
79+
80+
public void setUserPrompt(String userPrompt) {
81+
this.userPrompt = userPrompt;
82+
if(userPrompt != null){
83+
putQueryParameter("UserPrompt", userPrompt);
84+
}
85+
}
86+
87+
public String getModelCode() {
88+
return this.modelCode;
89+
}
90+
91+
public void setModelCode(String modelCode) {
92+
this.modelCode = modelCode;
93+
if(modelCode != null){
94+
putQueryParameter("ModelCode", modelCode);
95+
}
96+
}
97+
98+
@Override
99+
public Class<DataInterpretationResponse> getResponseClass() {
100+
return DataInterpretationResponse.class;
101+
}
102+
103+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.quickbi_public.model.v20220101;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.quickbi_public.transform.v20220101.DataInterpretationResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DataInterpretationResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String result;
30+
31+
private Boolean success;
32+
33+
public String getRequestId() {
34+
return this.requestId;
35+
}
36+
37+
public void setRequestId(String requestId) {
38+
this.requestId = requestId;
39+
}
40+
41+
public String getResult() {
42+
return this.result;
43+
}
44+
45+
public void setResult(String result) {
46+
this.result = result;
47+
}
48+
49+
public Boolean getSuccess() {
50+
return this.success;
51+
}
52+
53+
public void setSuccess(Boolean success) {
54+
this.success = success;
55+
}
56+
57+
@Override
58+
public DataInterpretationResponse getInstance(UnmarshallerContext context) {
59+
return DataInterpretationResponseUnmarshaller.unmarshall(this, context);
60+
}
61+
62+
@Override
63+
public boolean checkShowJsonItemName() {
64+
return false;
65+
}
66+
}

aliyun-java-sdk-quickbi-public/src/main/java/com/aliyuncs/quickbi_public/model/v20220101/QueryDatasetInfoResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ public static class DimensionListItem {
342342

343343
private String uid;
344344

345+
private String expressionV2;
346+
345347
public String getCaption() {
346348
return this.caption;
347349
}
@@ -421,6 +423,14 @@ public String getUid() {
421423
public void setUid(String uid) {
422424
this.uid = uid;
423425
}
426+
427+
public String getExpressionV2() {
428+
return this.expressionV2;
429+
}
430+
431+
public void setExpressionV2(String expressionV2) {
432+
this.expressionV2 = expressionV2;
433+
}
424434
}
425435

426436
public static class MeasureListItem {
@@ -441,6 +451,8 @@ public static class MeasureListItem {
441451

442452
private String uid;
443453

454+
private String expressionV2;
455+
444456
public String getCaption() {
445457
return this.caption;
446458
}
@@ -504,6 +516,14 @@ public String getUid() {
504516
public void setUid(String uid) {
505517
this.uid = uid;
506518
}
519+
520+
public String getExpressionV2() {
521+
return this.expressionV2;
522+
}
523+
524+
public void setExpressionV2(String expressionV2) {
525+
this.expressionV2 = expressionV2;
526+
}
507527
}
508528

509529
public static class Directory {

aliyun-java-sdk-quickbi-public/src/main/java/com/aliyuncs/quickbi_public/model/v20220101/SmartqAuthorizeRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public class SmartqAuthorizeRequest extends RpcAcsRequest<SmartqAuthorizeRespons
2929

3030
private String llmCubes;
3131

32+
private String cubeIds;
33+
3234
private Integer operationType;
3335

3436
private String expireDay;
@@ -62,6 +64,17 @@ public void setLlmCubes(String llmCubes) {
6264
}
6365
}
6466

67+
public String getCubeIds() {
68+
return this.cubeIds;
69+
}
70+
71+
public void setCubeIds(String cubeIds) {
72+
this.cubeIds = cubeIds;
73+
if(cubeIds != null){
74+
putQueryParameter("CubeIds", cubeIds);
75+
}
76+
}
77+
6578
public Integer getOperationType() {
6679
return this.operationType;
6780
}

aliyun-java-sdk-quickbi-public/src/main/java/com/aliyuncs/quickbi_public/model/v20220101/SmartqQueryAbilityResponse.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ public static class MetaTypeItem {
113113

114114
private String value;
115115

116+
private String type;
117+
116118
public String getKey() {
117119
return this.key;
118120
}
@@ -128,6 +130,14 @@ public String getValue() {
128130
public void setValue(String value) {
129131
this.value = value;
130132
}
133+
134+
public String getType() {
135+
return this.type;
136+
}
137+
138+
public void setType(String type) {
139+
this.type = type;
140+
}
131141
}
132142

133143
public static class ValuesItem {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.quickbi_public.transform.v20220101;
16+
17+
import com.aliyuncs.quickbi_public.model.v20220101.DataInterpretationResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class DataInterpretationResponseUnmarshaller {
22+
23+
public static DataInterpretationResponse unmarshall(DataInterpretationResponse dataInterpretationResponse, UnmarshallerContext _ctx) {
24+
25+
dataInterpretationResponse.setRequestId(_ctx.stringValue("DataInterpretationResponse.RequestId"));
26+
dataInterpretationResponse.setResult(_ctx.stringValue("DataInterpretationResponse.Result"));
27+
dataInterpretationResponse.setSuccess(_ctx.booleanValue("DataInterpretationResponse.Success"));
28+
29+
return dataInterpretationResponse;
30+
}
31+
}

aliyun-java-sdk-quickbi-public/src/main/java/com/aliyuncs/quickbi_public/transform/v20220101/QueryDatasetInfoResponseUnmarshaller.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public static QueryDatasetInfoResponse unmarshall(QueryDatasetInfoResponse query
8585
dimensionListItem.setRefUid(_ctx.stringValue("QueryDatasetInfoResponse.Result.DimensionList["+ i +"].RefUid"));
8686
dimensionListItem.setTableUniqueId(_ctx.stringValue("QueryDatasetInfoResponse.Result.DimensionList["+ i +"].TableUniqueId"));
8787
dimensionListItem.setUid(_ctx.stringValue("QueryDatasetInfoResponse.Result.DimensionList["+ i +"].Uid"));
88+
dimensionListItem.setExpressionV2(_ctx.stringValue("QueryDatasetInfoResponse.Result.DimensionList["+ i +"].ExpressionV2"));
8889

8990
dimensionList.add(dimensionListItem);
9091
}
@@ -101,6 +102,7 @@ public static QueryDatasetInfoResponse unmarshall(QueryDatasetInfoResponse query
101102
measureListItem.setMeasureType(_ctx.stringValue("QueryDatasetInfoResponse.Result.MeasureList["+ i +"].MeasureType"));
102103
measureListItem.setTableUniqueId(_ctx.stringValue("QueryDatasetInfoResponse.Result.MeasureList["+ i +"].TableUniqueId"));
103104
measureListItem.setUid(_ctx.stringValue("QueryDatasetInfoResponse.Result.MeasureList["+ i +"].Uid"));
105+
measureListItem.setExpressionV2(_ctx.stringValue("QueryDatasetInfoResponse.Result.MeasureList["+ i +"].ExpressionV2"));
104106

105107
measureList.add(measureListItem);
106108
}

aliyun-java-sdk-quickbi-public/src/main/java/com/aliyuncs/quickbi_public/transform/v20220101/SmartqQueryAbilityResponseUnmarshaller.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public static SmartqQueryAbilityResponse unmarshall(SmartqQueryAbilityResponse s
4141
MetaTypeItem metaTypeItem = new MetaTypeItem();
4242
metaTypeItem.setKey(_ctx.stringValue("SmartqQueryAbilityResponse.Result.MetaType["+ i +"].Key"));
4343
metaTypeItem.setValue(_ctx.stringValue("SmartqQueryAbilityResponse.Result.MetaType["+ i +"].Value"));
44+
metaTypeItem.setType(_ctx.stringValue("SmartqQueryAbilityResponse.Result.MetaType["+ i +"].Type"));
4445

4546
metaType.add(metaTypeItem);
4647
}

0 commit comments

Comments
 (0)