-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
294 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
.../src/main/java/com/aliyuncs/quickbi_public/model/v20220101/SmartqQueryAbilityRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.aliyuncs.quickbi_public.model.v20220101; | ||
|
||
import com.aliyuncs.RpcAcsRequest; | ||
import com.aliyuncs.http.ProtocolType; | ||
import com.aliyuncs.http.MethodType; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class SmartqQueryAbilityRequest extends RpcAcsRequest<SmartqQueryAbilityResponse> { | ||
|
||
|
||
private String userId; | ||
|
||
private String userQuestion; | ||
|
||
private String cubeId; | ||
public SmartqQueryAbilityRequest() { | ||
super("quickbi-public", "2022-01-01", "SmartqQueryAbility", "2.2.0"); | ||
setProtocol(ProtocolType.HTTPS); | ||
setMethod(MethodType.POST); | ||
} | ||
|
||
public String getUserId() { | ||
return this.userId; | ||
} | ||
|
||
public void setUserId(String userId) { | ||
this.userId = userId; | ||
if(userId != null){ | ||
putQueryParameter("UserId", userId); | ||
} | ||
} | ||
|
||
public String getUserQuestion() { | ||
return this.userQuestion; | ||
} | ||
|
||
public void setUserQuestion(String userQuestion) { | ||
this.userQuestion = userQuestion; | ||
if(userQuestion != null){ | ||
putQueryParameter("UserQuestion", userQuestion); | ||
} | ||
} | ||
|
||
public String getCubeId() { | ||
return this.cubeId; | ||
} | ||
|
||
public void setCubeId(String cubeId) { | ||
this.cubeId = cubeId; | ||
if(cubeId != null){ | ||
putQueryParameter("CubeId", cubeId); | ||
} | ||
} | ||
|
||
@Override | ||
public Class<SmartqQueryAbilityResponse> getResponseClass() { | ||
return SmartqQueryAbilityResponse.class; | ||
} | ||
|
||
} |
136 changes: 136 additions & 0 deletions
136
...src/main/java/com/aliyuncs/quickbi_public/model/v20220101/SmartqQueryAbilityResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.aliyuncs.quickbi_public.model.v20220101; | ||
|
||
import java.util.List; | ||
import com.aliyuncs.AcsResponse; | ||
import com.aliyuncs.quickbi_public.transform.v20220101.SmartqQueryAbilityResponseUnmarshaller; | ||
import com.aliyuncs.transform.UnmarshallerContext; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class SmartqQueryAbilityResponse extends AcsResponse { | ||
|
||
private String requestId; | ||
|
||
private Boolean success; | ||
|
||
private Result result; | ||
|
||
public String getRequestId() { | ||
return this.requestId; | ||
} | ||
|
||
public void setRequestId(String requestId) { | ||
this.requestId = requestId; | ||
} | ||
|
||
public Boolean getSuccess() { | ||
return this.success; | ||
} | ||
|
||
public void setSuccess(Boolean success) { | ||
this.success = success; | ||
} | ||
|
||
public Result getResult() { | ||
return this.result; | ||
} | ||
|
||
public void setResult(Result result) { | ||
this.result = result; | ||
} | ||
|
||
public static class Result { | ||
|
||
private String chartType; | ||
|
||
private List<MetaTypeItem> metaType; | ||
|
||
private List<ValuesItem> values; | ||
|
||
public String getChartType() { | ||
return this.chartType; | ||
} | ||
|
||
public void setChartType(String chartType) { | ||
this.chartType = chartType; | ||
} | ||
|
||
public List<MetaTypeItem> getMetaType() { | ||
return this.metaType; | ||
} | ||
|
||
public void setMetaType(List<MetaTypeItem> metaType) { | ||
this.metaType = metaType; | ||
} | ||
|
||
public List<ValuesItem> getValues() { | ||
return this.values; | ||
} | ||
|
||
public void setValues(List<ValuesItem> values) { | ||
this.values = values; | ||
} | ||
|
||
public static class MetaTypeItem { | ||
|
||
private String key; | ||
|
||
private String value; | ||
|
||
public String getKey() { | ||
return this.key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getValue() { | ||
return this.value; | ||
} | ||
|
||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
} | ||
|
||
public static class ValuesItem { | ||
|
||
private List<String> row; | ||
|
||
public List<String> getRow() { | ||
return this.row; | ||
} | ||
|
||
public void setRow(List<String> row) { | ||
this.row = row; | ||
} | ||
} | ||
} | ||
|
||
@Override | ||
public SmartqQueryAbilityResponse getInstance(UnmarshallerContext context) { | ||
return SmartqQueryAbilityResponseUnmarshaller.unmarshall(this, context); | ||
} | ||
|
||
@Override | ||
public boolean checkShowJsonItemName() { | ||
return false; | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
...m/aliyuncs/quickbi_public/transform/v20220101/SmartqQueryAbilityResponseUnmarshaller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.aliyuncs.quickbi_public.transform.v20220101; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import com.aliyuncs.quickbi_public.model.v20220101.SmartqQueryAbilityResponse; | ||
import com.aliyuncs.quickbi_public.model.v20220101.SmartqQueryAbilityResponse.Result; | ||
import com.aliyuncs.quickbi_public.model.v20220101.SmartqQueryAbilityResponse.Result.MetaTypeItem; | ||
import com.aliyuncs.quickbi_public.model.v20220101.SmartqQueryAbilityResponse.Result.ValuesItem; | ||
import com.aliyuncs.transform.UnmarshallerContext; | ||
|
||
|
||
public class SmartqQueryAbilityResponseUnmarshaller { | ||
|
||
public static SmartqQueryAbilityResponse unmarshall(SmartqQueryAbilityResponse smartqQueryAbilityResponse, UnmarshallerContext _ctx) { | ||
|
||
smartqQueryAbilityResponse.setRequestId(_ctx.stringValue("SmartqQueryAbilityResponse.RequestId")); | ||
smartqQueryAbilityResponse.setSuccess(_ctx.booleanValue("SmartqQueryAbilityResponse.Success")); | ||
|
||
Result result = new Result(); | ||
result.setChartType(_ctx.stringValue("SmartqQueryAbilityResponse.Result.ChartType")); | ||
|
||
List<MetaTypeItem> metaType = new ArrayList<MetaTypeItem>(); | ||
for (int i = 0; i < _ctx.lengthValue("SmartqQueryAbilityResponse.Result.MetaType.Length"); i++) { | ||
MetaTypeItem metaTypeItem = new MetaTypeItem(); | ||
metaTypeItem.setKey(_ctx.stringValue("SmartqQueryAbilityResponse.Result.MetaType["+ i +"].Key")); | ||
metaTypeItem.setValue(_ctx.stringValue("SmartqQueryAbilityResponse.Result.MetaType["+ i +"].Value")); | ||
|
||
metaType.add(metaTypeItem); | ||
} | ||
result.setMetaType(metaType); | ||
|
||
List<ValuesItem> values = new ArrayList<ValuesItem>(); | ||
for (int i = 0; i < _ctx.lengthValue("SmartqQueryAbilityResponse.Result.Values.Length"); i++) { | ||
ValuesItem valuesItem = new ValuesItem(); | ||
|
||
List<String> row = new ArrayList<String>(); | ||
for (int j = 0; j < _ctx.lengthValue("SmartqQueryAbilityResponse.Result.Values["+ i +"].Row.Length"); j++) { | ||
row.add(_ctx.stringValue("SmartqQueryAbilityResponse.Result.Values["+ i +"].Row["+ j +"]")); | ||
} | ||
valuesItem.setRow(row); | ||
|
||
values.add(valuesItem); | ||
} | ||
result.setValues(values); | ||
smartqQueryAbilityResponse.setResult(result); | ||
|
||
return smartqQueryAbilityResponse; | ||
} | ||
} |