Skip to content

Commit 7ab5fcb

Browse files
committed
Add api request parameters and error code.
1 parent ae615b9 commit 7ab5fcb

10 files changed

+299
-1
lines changed

CHANGELOG

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-05-24 Version: 1.0.0
25
- Generated 2025-04-29 for `WebsiteBuild`.
36

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.quickbi_public.Transform;
26+
using Aliyun.Acs.quickbi_public.Transform.V20220101;
27+
28+
namespace Aliyun.Acs.quickbi_public.Model.V20220101
29+
{
30+
public class DataInterpretationRequest : RpcAcsRequest<DataInterpretationResponse>
31+
{
32+
public DataInterpretationRequest()
33+
: base("quickbi-public", "2022-01-01", "DataInterpretation", "2.2.0", "openAPI")
34+
{
35+
Protocol = ProtocolType.HTTPS;
36+
Method = MethodType.POST;
37+
}
38+
39+
private bool? promptForceOverride;
40+
41+
private string data;
42+
43+
private string userQuestion;
44+
45+
private string userPrompt;
46+
47+
private string modelCode;
48+
49+
public bool? PromptForceOverride
50+
{
51+
get
52+
{
53+
return promptForceOverride;
54+
}
55+
set
56+
{
57+
promptForceOverride = value;
58+
DictionaryUtil.Add(QueryParameters, "PromptForceOverride", value.ToString());
59+
}
60+
}
61+
62+
public string Data
63+
{
64+
get
65+
{
66+
return data;
67+
}
68+
set
69+
{
70+
data = value;
71+
DictionaryUtil.Add(QueryParameters, "Data", value);
72+
}
73+
}
74+
75+
public string UserQuestion
76+
{
77+
get
78+
{
79+
return userQuestion;
80+
}
81+
set
82+
{
83+
userQuestion = value;
84+
DictionaryUtil.Add(QueryParameters, "UserQuestion", value);
85+
}
86+
}
87+
88+
public string UserPrompt
89+
{
90+
get
91+
{
92+
return userPrompt;
93+
}
94+
set
95+
{
96+
userPrompt = value;
97+
DictionaryUtil.Add(QueryParameters, "UserPrompt", value);
98+
}
99+
}
100+
101+
public string ModelCode
102+
{
103+
get
104+
{
105+
return modelCode;
106+
}
107+
set
108+
{
109+
modelCode = value;
110+
DictionaryUtil.Add(QueryParameters, "ModelCode", value);
111+
}
112+
}
113+
114+
public override bool CheckShowJsonItemName()
115+
{
116+
return false;
117+
}
118+
119+
public override DataInterpretationResponse GetResponse(UnmarshallerContext unmarshallerContext)
120+
{
121+
return DataInterpretationResponseUnmarshaller.Unmarshall(unmarshallerContext);
122+
}
123+
}
124+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.quickbi_public.Model.V20220101
24+
{
25+
public class DataInterpretationResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private string result;
31+
32+
private bool? success;
33+
34+
public string RequestId
35+
{
36+
get
37+
{
38+
return requestId;
39+
}
40+
set
41+
{
42+
requestId = value;
43+
}
44+
}
45+
46+
public string Result
47+
{
48+
get
49+
{
50+
return result;
51+
}
52+
set
53+
{
54+
result = value;
55+
}
56+
}
57+
58+
public bool? Success
59+
{
60+
get
61+
{
62+
return success;
63+
}
64+
set
65+
{
66+
success = value;
67+
}
68+
}
69+
}
70+
}

aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDatasetInfoResponse.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ public class QueryDatasetInfo_DimensionListItem
461461

462462
private string uid;
463463

464+
private string expressionV2;
465+
464466
public string Caption
465467
{
466468
get
@@ -580,6 +582,18 @@ public string Uid
580582
uid = value;
581583
}
582584
}
585+
586+
public string ExpressionV2
587+
{
588+
get
589+
{
590+
return expressionV2;
591+
}
592+
set
593+
{
594+
expressionV2 = value;
595+
}
596+
}
583597
}
584598

585599
public class QueryDatasetInfo_MeasureListItem
@@ -601,6 +615,8 @@ public class QueryDatasetInfo_MeasureListItem
601615

602616
private string uid;
603617

618+
private string expressionV2;
619+
604620
public string Caption
605621
{
606622
get
@@ -696,6 +712,18 @@ public string Uid
696712
uid = value;
697713
}
698714
}
715+
716+
public string ExpressionV2
717+
{
718+
get
719+
{
720+
return expressionV2;
721+
}
722+
set
723+
{
724+
expressionV2 = value;
725+
}
726+
}
699727
}
700728

701729
public class QueryDatasetInfo_Directory

aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/SmartqAuthorizeRequest.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public SmartqAuthorizeRequest()
4040

4141
private string llmCubes;
4242

43+
private string cubeIds;
44+
4345
private int? operationType;
4446

4547
private string expireDay;
@@ -72,6 +74,19 @@ public string LlmCubes
7274
}
7375
}
7476

77+
public string CubeIds
78+
{
79+
get
80+
{
81+
return cubeIds;
82+
}
83+
set
84+
{
85+
cubeIds = value;
86+
DictionaryUtil.Add(QueryParameters, "CubeIds", value);
87+
}
88+
}
89+
7590
public int? OperationType
7691
{
7792
get

aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/SmartqQueryAbilityResponse.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public class SmartqQueryAbility_MetaTypeItem
147147

148148
private string _value;
149149

150+
private string type;
151+
150152
public string Key
151153
{
152154
get
@@ -170,6 +172,18 @@ public string _Value
170172
_value = value;
171173
}
172174
}
175+
176+
public string Type
177+
{
178+
get
179+
{
180+
return type;
181+
}
182+
set
183+
{
184+
type = value;
185+
}
186+
}
173187
}
174188

175189
public class SmartqQueryAbility_ValuesItem
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
22+
using Aliyun.Acs.Core.Transform;
23+
using Aliyun.Acs.quickbi_public.Model.V20220101;
24+
25+
namespace Aliyun.Acs.quickbi_public.Transform.V20220101
26+
{
27+
public class DataInterpretationResponseUnmarshaller
28+
{
29+
public static DataInterpretationResponse Unmarshall(UnmarshallerContext _ctx)
30+
{
31+
DataInterpretationResponse dataInterpretationResponse = new DataInterpretationResponse();
32+
33+
dataInterpretationResponse.HttpResponse = _ctx.HttpResponse;
34+
dataInterpretationResponse.RequestId = _ctx.StringValue("DataInterpretation.RequestId");
35+
dataInterpretationResponse.Result = _ctx.StringValue("DataInterpretation.Result");
36+
dataInterpretationResponse.Success = _ctx.BooleanValue("DataInterpretation.Success");
37+
38+
return dataInterpretationResponse;
39+
}
40+
}
41+
}

aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryDatasetInfoResponseUnmarshaller.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public static QueryDatasetInfoResponse Unmarshall(UnmarshallerContext _ctx)
8686
dimensionListItem.RefUid = _ctx.StringValue("QueryDatasetInfo.Result.DimensionList["+ i +"].RefUid");
8787
dimensionListItem.TableUniqueId = _ctx.StringValue("QueryDatasetInfo.Result.DimensionList["+ i +"].TableUniqueId");
8888
dimensionListItem.Uid = _ctx.StringValue("QueryDatasetInfo.Result.DimensionList["+ i +"].Uid");
89+
dimensionListItem.ExpressionV2 = _ctx.StringValue("QueryDatasetInfo.Result.DimensionList["+ i +"].ExpressionV2");
8990

9091
result_dimensionList.Add(dimensionListItem);
9192
}
@@ -102,6 +103,7 @@ public static QueryDatasetInfoResponse Unmarshall(UnmarshallerContext _ctx)
102103
measureListItem.MeasureType = _ctx.StringValue("QueryDatasetInfo.Result.MeasureList["+ i +"].MeasureType");
103104
measureListItem.TableUniqueId = _ctx.StringValue("QueryDatasetInfo.Result.MeasureList["+ i +"].TableUniqueId");
104105
measureListItem.Uid = _ctx.StringValue("QueryDatasetInfo.Result.MeasureList["+ i +"].Uid");
106+
measureListItem.ExpressionV2 = _ctx.StringValue("QueryDatasetInfo.Result.MeasureList["+ i +"].ExpressionV2");
105107

106108
result_measureList.Add(measureListItem);
107109
}

aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/SmartqQueryAbilityResponseUnmarshaller.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public static SmartqQueryAbilityResponse Unmarshall(UnmarshallerContext _ctx)
4444
SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem metaTypeItem = new SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem();
4545
metaTypeItem.Key = _ctx.StringValue("SmartqQueryAbility.Result.MetaType["+ i +"].Key");
4646
metaTypeItem._Value = _ctx.StringValue("SmartqQueryAbility.Result.MetaType["+ i +"].Value");
47+
metaTypeItem.Type = _ctx.StringValue("SmartqQueryAbility.Result.MetaType["+ i +"].Type");
4748

4849
result_metaType.Add(metaTypeItem);
4950
}

aliyun-net-sdk-quickbi-public/aliyun-net-sdk-quickbi-public.vs2017.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
55
<RootNamespace>Aliyun.Acs.quickbi_public</RootNamespace>
6-
<Version>2.1.14</Version>
6+
<Version>2.1.15</Version>
77
<Authors>Alibaba Cloud</Authors>
88
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
99
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

0 commit comments

Comments
 (0)