Skip to content

Commit 934abc2

Browse files
committed
Add SmartqQueryAbility api.
1 parent 882becb commit 934abc2

File tree

6 files changed

+347
-1
lines changed

6 files changed

+347
-1
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-26 Version: 2.1.11
2+
- Add SmartqQueryAbility api.
3+
14
2024-11-26 Version: 2.0.31
25
- Update DescribeApiMetering API.
36

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

+15
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public AddUserRequest()
3737

3838
private bool? adminUser;
3939

40+
private string accountId;
41+
4042
private string roleIds;
4143

4244
private string accountName;
@@ -60,6 +62,19 @@ public bool? AdminUser
6062
}
6163
}
6264

65+
public string AccountId
66+
{
67+
get
68+
{
69+
return accountId;
70+
}
71+
set
72+
{
73+
accountId = value;
74+
DictionaryUtil.Add(QueryParameters, "AccountId", value);
75+
}
76+
}
77+
6378
public string RoleIds
6479
{
6580
get
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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 SmartqQueryAbilityRequest : RpcAcsRequest<SmartqQueryAbilityResponse>
31+
{
32+
public SmartqQueryAbilityRequest()
33+
: base("quickbi-public", "2022-01-01", "SmartqQueryAbility", "2.2.0", "openAPI")
34+
{
35+
Protocol = ProtocolType.HTTPS;
36+
Method = MethodType.POST;
37+
}
38+
39+
private string userId;
40+
41+
private string userQuestion;
42+
43+
private string cubeId;
44+
45+
public string UserId
46+
{
47+
get
48+
{
49+
return userId;
50+
}
51+
set
52+
{
53+
userId = value;
54+
DictionaryUtil.Add(QueryParameters, "UserId", value);
55+
}
56+
}
57+
58+
public string UserQuestion
59+
{
60+
get
61+
{
62+
return userQuestion;
63+
}
64+
set
65+
{
66+
userQuestion = value;
67+
DictionaryUtil.Add(QueryParameters, "UserQuestion", value);
68+
}
69+
}
70+
71+
public string CubeId
72+
{
73+
get
74+
{
75+
return cubeId;
76+
}
77+
set
78+
{
79+
cubeId = value;
80+
DictionaryUtil.Add(QueryParameters, "CubeId", value);
81+
}
82+
}
83+
84+
public override bool CheckShowJsonItemName()
85+
{
86+
return false;
87+
}
88+
89+
public override SmartqQueryAbilityResponse GetResponse(UnmarshallerContext unmarshallerContext)
90+
{
91+
return SmartqQueryAbilityResponseUnmarshaller.Unmarshall(unmarshallerContext);
92+
}
93+
}
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
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 SmartqQueryAbilityResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private bool? success;
31+
32+
private SmartqQueryAbility_Result result;
33+
34+
public string RequestId
35+
{
36+
get
37+
{
38+
return requestId;
39+
}
40+
set
41+
{
42+
requestId = value;
43+
}
44+
}
45+
46+
public bool? Success
47+
{
48+
get
49+
{
50+
return success;
51+
}
52+
set
53+
{
54+
success = value;
55+
}
56+
}
57+
58+
public SmartqQueryAbility_Result Result
59+
{
60+
get
61+
{
62+
return result;
63+
}
64+
set
65+
{
66+
result = value;
67+
}
68+
}
69+
70+
public class SmartqQueryAbility_Result
71+
{
72+
73+
private string chartType;
74+
75+
private List<SmartqQueryAbility_MetaTypeItem> metaType;
76+
77+
private List<SmartqQueryAbility_ValuesItem> values;
78+
79+
public string ChartType
80+
{
81+
get
82+
{
83+
return chartType;
84+
}
85+
set
86+
{
87+
chartType = value;
88+
}
89+
}
90+
91+
public List<SmartqQueryAbility_MetaTypeItem> MetaType
92+
{
93+
get
94+
{
95+
return metaType;
96+
}
97+
set
98+
{
99+
metaType = value;
100+
}
101+
}
102+
103+
public List<SmartqQueryAbility_ValuesItem> Values
104+
{
105+
get
106+
{
107+
return values;
108+
}
109+
set
110+
{
111+
values = value;
112+
}
113+
}
114+
115+
public class SmartqQueryAbility_MetaTypeItem
116+
{
117+
118+
private string key;
119+
120+
private string _value;
121+
122+
public string Key
123+
{
124+
get
125+
{
126+
return key;
127+
}
128+
set
129+
{
130+
key = value;
131+
}
132+
}
133+
134+
public string _Value
135+
{
136+
get
137+
{
138+
return _value;
139+
}
140+
set
141+
{
142+
_value = value;
143+
}
144+
}
145+
}
146+
147+
public class SmartqQueryAbility_ValuesItem
148+
{
149+
150+
private List<string> row;
151+
152+
public List<string> Row
153+
{
154+
get
155+
{
156+
return row;
157+
}
158+
set
159+
{
160+
row = value;
161+
}
162+
}
163+
}
164+
}
165+
}
166+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 SmartqQueryAbilityResponseUnmarshaller
28+
{
29+
public static SmartqQueryAbilityResponse Unmarshall(UnmarshallerContext _ctx)
30+
{
31+
SmartqQueryAbilityResponse smartqQueryAbilityResponse = new SmartqQueryAbilityResponse();
32+
33+
smartqQueryAbilityResponse.HttpResponse = _ctx.HttpResponse;
34+
smartqQueryAbilityResponse.RequestId = _ctx.StringValue("SmartqQueryAbility.RequestId");
35+
smartqQueryAbilityResponse.Success = _ctx.BooleanValue("SmartqQueryAbility.Success");
36+
37+
SmartqQueryAbilityResponse.SmartqQueryAbility_Result result = new SmartqQueryAbilityResponse.SmartqQueryAbility_Result();
38+
result.ChartType = _ctx.StringValue("SmartqQueryAbility.Result.ChartType");
39+
40+
List<SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem> result_metaType = new List<SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem>();
41+
for (int i = 0; i < _ctx.Length("SmartqQueryAbility.Result.MetaType.Length"); i++) {
42+
SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem metaTypeItem = new SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem();
43+
metaTypeItem.Key = _ctx.StringValue("SmartqQueryAbility.Result.MetaType["+ i +"].Key");
44+
metaTypeItem._Value = _ctx.StringValue("SmartqQueryAbility.Result.MetaType["+ i +"].Value");
45+
46+
result_metaType.Add(metaTypeItem);
47+
}
48+
result.MetaType = result_metaType;
49+
50+
List<SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_ValuesItem> result_values = new List<SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_ValuesItem>();
51+
for (int i = 0; i < _ctx.Length("SmartqQueryAbility.Result.Values.Length"); i++) {
52+
SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_ValuesItem valuesItem = new SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_ValuesItem();
53+
54+
List<string> valuesItem_row = new List<string>();
55+
for (int j = 0; j < _ctx.Length("SmartqQueryAbility.Result.Values["+ i +"].Row.Length"); j++) {
56+
valuesItem_row.Add(_ctx.StringValue("SmartqQueryAbility.Result.Values["+ i +"].Row["+ j +"]"));
57+
}
58+
valuesItem.Row = valuesItem_row;
59+
60+
result_values.Add(valuesItem);
61+
}
62+
result.Values = result_values;
63+
smartqQueryAbilityResponse.Result = result;
64+
65+
return smartqQueryAbilityResponse;
66+
}
67+
}
68+
}

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

+1-1
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.10</Version>
6+
<Version>2.1.11</Version>
77
<Authors>Alibaba Cloud</Authors>
88
<Copyright>©2009-2019 Alibaba Cloud</Copyright>
99
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>

0 commit comments

Comments
 (0)