diff --git a/CHANGELOG b/CHANGELOG index c37064082..6a3a9256b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2024-08-07 Version: 2.1.8 +- Add QueryData, ModifyCopilotEmbedConfig, QueryCopilotEmbedConfig and QueryDataRange APIs. + 2024-08-01 Version: 1.0.1 - add openapi for Personalized Text to Image ablity init version. diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/ModifyCopilotEmbedConfigRequest.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/ModifyCopilotEmbedConfigRequest.cs new file mode 100644 index 000000000..e14bd1bc7 --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/ModifyCopilotEmbedConfigRequest.cs @@ -0,0 +1,108 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.quickbi_public.Transform; +using Aliyun.Acs.quickbi_public.Transform.V20220101; + +namespace Aliyun.Acs.quickbi_public.Model.V20220101 +{ + public class ModifyCopilotEmbedConfigRequest : RpcAcsRequest + { + public ModifyCopilotEmbedConfigRequest() + : base("quickbi-public", "2022-01-01", "ModifyCopilotEmbedConfig", "2.2.0", "openAPI") + { + Method = MethodType.POST; + } + + private string copilotId; + + private string agentName; + + private string dataRange; + + private string moduleName; + + public string CopilotId + { + get + { + return copilotId; + } + set + { + copilotId = value; + DictionaryUtil.Add(QueryParameters, "CopilotId", value); + } + } + + public string AgentName + { + get + { + return agentName; + } + set + { + agentName = value; + DictionaryUtil.Add(QueryParameters, "AgentName", value); + } + } + + public string DataRange + { + get + { + return dataRange; + } + set + { + dataRange = value; + DictionaryUtil.Add(QueryParameters, "DataRange", value); + } + } + + public string ModuleName + { + get + { + return moduleName; + } + set + { + moduleName = value; + DictionaryUtil.Add(QueryParameters, "ModuleName", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override ModifyCopilotEmbedConfigResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return ModifyCopilotEmbedConfigResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/ModifyCopilotEmbedConfigResponse.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/ModifyCopilotEmbedConfigResponse.cs new file mode 100644 index 000000000..a7d4c5817 --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/ModifyCopilotEmbedConfigResponse.cs @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.quickbi_public.Model.V20220101 +{ + public class ModifyCopilotEmbedConfigResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private bool? result; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public bool? Result + { + get + { + return result; + } + set + { + result = value; + } + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryCopilotEmbedConfigRequest.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryCopilotEmbedConfigRequest.cs new file mode 100644 index 000000000..2f9ee664c --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryCopilotEmbedConfigRequest.cs @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.quickbi_public.Transform; +using Aliyun.Acs.quickbi_public.Transform.V20220101; + +namespace Aliyun.Acs.quickbi_public.Model.V20220101 +{ + public class QueryCopilotEmbedConfigRequest : RpcAcsRequest + { + public QueryCopilotEmbedConfigRequest() + : base("quickbi-public", "2022-01-01", "QueryCopilotEmbedConfig", "2.2.0", "openAPI") + { + Method = MethodType.POST; + } + + private string keyword; + + public string Keyword + { + get + { + return keyword; + } + set + { + keyword = value; + DictionaryUtil.Add(QueryParameters, "Keyword", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override QueryCopilotEmbedConfigResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return QueryCopilotEmbedConfigResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryCopilotEmbedConfigResponse.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryCopilotEmbedConfigResponse.cs new file mode 100644 index 000000000..a500d384b --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryCopilotEmbedConfigResponse.cs @@ -0,0 +1,246 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.quickbi_public.Model.V20220101 +{ + public class QueryCopilotEmbedConfigResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private List result; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public List Result + { + get + { + return result; + } + set + { + result = value; + } + } + + public class QueryCopilotEmbedConfig_ResultItem + { + + private string copilotId; + + private string showName; + + private string createUser; + + private string createUserName; + + private string modifyUser; + + private string moduleName; + + private string agentName; + + private QueryCopilotEmbedConfig_DataRange dataRange; + + public string CopilotId + { + get + { + return copilotId; + } + set + { + copilotId = value; + } + } + + public string ShowName + { + get + { + return showName; + } + set + { + showName = value; + } + } + + public string CreateUser + { + get + { + return createUser; + } + set + { + createUser = value; + } + } + + public string CreateUserName + { + get + { + return createUserName; + } + set + { + createUserName = value; + } + } + + public string ModifyUser + { + get + { + return modifyUser; + } + set + { + modifyUser = value; + } + } + + public string ModuleName + { + get + { + return moduleName; + } + set + { + moduleName = value; + } + } + + public string AgentName + { + get + { + return agentName; + } + set + { + agentName = value; + } + } + + public QueryCopilotEmbedConfig_DataRange DataRange + { + get + { + return dataRange; + } + set + { + dataRange = value; + } + } + + public class QueryCopilotEmbedConfig_DataRange + { + + private bool? allTheme; + + private bool? allCube; + + private List themes; + + private List llmCubes; + + public bool? AllTheme + { + get + { + return allTheme; + } + set + { + allTheme = value; + } + } + + public bool? AllCube + { + get + { + return allCube; + } + set + { + allCube = value; + } + } + + public List Themes + { + get + { + return themes; + } + set + { + themes = value; + } + } + + public List LlmCubes + { + get + { + return llmCubes; + } + set + { + llmCubes = value; + } + } + } + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRangeRequest.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRangeRequest.cs new file mode 100644 index 000000000..73416f429 --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRangeRequest.cs @@ -0,0 +1,79 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.quickbi_public.Transform; +using Aliyun.Acs.quickbi_public.Transform.V20220101; + +namespace Aliyun.Acs.quickbi_public.Model.V20220101 +{ + public class QueryDataRangeRequest : RpcAcsRequest + { + public QueryDataRangeRequest() + : base("quickbi-public", "2022-01-01", "QueryDataRange", "2.2.0", "openAPI") + { + Protocol = ProtocolType.HTTPS; + Method = MethodType.POST; + } + + private string type; + + private string keyword; + + public string Type + { + get + { + return type; + } + set + { + type = value; + DictionaryUtil.Add(QueryParameters, "Type", value); + } + } + + public string Keyword + { + get + { + return keyword; + } + set + { + keyword = value; + DictionaryUtil.Add(QueryParameters, "Keyword", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override QueryDataRangeResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return QueryDataRangeResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRangeResponse.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRangeResponse.cs new file mode 100644 index 000000000..b2d486a94 --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRangeResponse.cs @@ -0,0 +1,254 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.quickbi_public.Model.V20220101 +{ + public class QueryDataRangeResponse : AcsResponse + { + + private string requestId; + + private bool? success; + + private QueryDataRange_Result result; + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public QueryDataRange_Result Result + { + get + { + return result; + } + set + { + result = value; + } + } + + public class QueryDataRange_Result + { + + private List apiCopilotLlmCubeModels; + + private List apiCopilotThemeModels; + + public List ApiCopilotLlmCubeModels + { + get + { + return apiCopilotLlmCubeModels; + } + set + { + apiCopilotLlmCubeModels = value; + } + } + + public List ApiCopilotThemeModels + { + get + { + return apiCopilotThemeModels; + } + set + { + apiCopilotThemeModels = value; + } + } + + public class QueryDataRange_ApiCopilotLlmCubeModelsItem + { + + private string llmCubeId; + + private string alias; + + private string createUser; + + public string LlmCubeId + { + get + { + return llmCubeId; + } + set + { + llmCubeId = value; + } + } + + public string Alias + { + get + { + return alias; + } + set + { + alias = value; + } + } + + public string CreateUser + { + get + { + return createUser; + } + set + { + createUser = value; + } + } + } + + public class QueryDataRange_ApiCopilotThemeModelsItem + { + + private string themeId; + + private string themeName; + + private string createUser; + + private List apiCopilotLlmCubeModels1; + + public string ThemeId + { + get + { + return themeId; + } + set + { + themeId = value; + } + } + + public string ThemeName + { + get + { + return themeName; + } + set + { + themeName = value; + } + } + + public string CreateUser + { + get + { + return createUser; + } + set + { + createUser = value; + } + } + + public List ApiCopilotLlmCubeModels1 + { + get + { + return apiCopilotLlmCubeModels1; + } + set + { + apiCopilotLlmCubeModels1 = value; + } + } + + public class QueryDataRange_ApiCopilotLlmCubeModelsItem2 + { + + private string llmCubeId; + + private string alias; + + private string createUser; + + public string LlmCubeId + { + get + { + return llmCubeId; + } + set + { + llmCubeId = value; + } + } + + public string Alias + { + get + { + return alias; + } + set + { + alias = value; + } + } + + public string CreateUser + { + get + { + return createUser; + } + set + { + createUser = value; + } + } + } + } + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRequest.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRequest.cs new file mode 100644 index 000000000..6771c8df7 --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataRequest.cs @@ -0,0 +1,108 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.quickbi_public.Transform; +using Aliyun.Acs.quickbi_public.Transform.V20220101; + +namespace Aliyun.Acs.quickbi_public.Model.V20220101 +{ + public class QueryDataRequest : RpcAcsRequest + { + public QueryDataRequest() + : base("quickbi-public", "2022-01-01", "QueryData", "2.2.0", "openAPI") + { + Method = MethodType.POST; + } + + private string returnFields; + + private string conditions; + + private string userId; + + private string apiId; + + public string ReturnFields + { + get + { + return returnFields; + } + set + { + returnFields = value; + DictionaryUtil.Add(QueryParameters, "ReturnFields", value); + } + } + + public string Conditions + { + get + { + return conditions; + } + set + { + conditions = value; + DictionaryUtil.Add(QueryParameters, "Conditions", value); + } + } + + public string UserId + { + get + { + return userId; + } + set + { + userId = value; + DictionaryUtil.Add(QueryParameters, "UserId", value); + } + } + + public string ApiId + { + get + { + return apiId; + } + set + { + apiId = value; + DictionaryUtil.Add(QueryParameters, "ApiId", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override QueryDataResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return QueryDataResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataResponse.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataResponse.cs new file mode 100644 index 000000000..985098f5a --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Model/V20220101/QueryDataResponse.cs @@ -0,0 +1,204 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.quickbi_public.Model.V20220101 +{ + public class QueryDataResponse : AcsResponse + { + + private bool? success; + + private string requestId; + + private QueryData_Result result; + + public bool? Success + { + get + { + return success; + } + set + { + success = value; + } + } + + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + public QueryData_Result Result + { + get + { + return result; + } + set + { + result = value; + } + } + + public class QueryData_Result + { + + private string sql; + + private List headers; + + private List> values; + + public string Sql + { + get + { + return sql; + } + set + { + sql = value; + } + } + + public List Headers + { + get + { + return headers; + } + set + { + headers = value; + } + } + + public List> Values + { + get + { + return values; + } + set + { + values = value; + } + } + + public class QueryData_HeadersItem + { + + private string type; + + private string dataType; + + private string granularity; + + private string label; + + private string column; + + private string aggregator; + + public string Type + { + get + { + return type; + } + set + { + type = value; + } + } + + public string DataType + { + get + { + return dataType; + } + set + { + dataType = value; + } + } + + public string Granularity + { + get + { + return granularity; + } + set + { + granularity = value; + } + } + + public string Label + { + get + { + return label; + } + set + { + label = value; + } + } + + public string Column + { + get + { + return column; + } + set + { + column = value; + } + } + + public string Aggregator + { + get + { + return aggregator; + } + set + { + aggregator = value; + } + } + } + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/ModifyCopilotEmbedConfigResponseUnmarshaller.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/ModifyCopilotEmbedConfigResponseUnmarshaller.cs new file mode 100644 index 000000000..40f6c1c08 --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/ModifyCopilotEmbedConfigResponseUnmarshaller.cs @@ -0,0 +1,41 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.quickbi_public.Model.V20220101; + +namespace Aliyun.Acs.quickbi_public.Transform.V20220101 +{ + public class ModifyCopilotEmbedConfigResponseUnmarshaller + { + public static ModifyCopilotEmbedConfigResponse Unmarshall(UnmarshallerContext _ctx) + { + ModifyCopilotEmbedConfigResponse modifyCopilotEmbedConfigResponse = new ModifyCopilotEmbedConfigResponse(); + + modifyCopilotEmbedConfigResponse.HttpResponse = _ctx.HttpResponse; + modifyCopilotEmbedConfigResponse.RequestId = _ctx.StringValue("ModifyCopilotEmbedConfig.RequestId"); + modifyCopilotEmbedConfigResponse.Success = _ctx.BooleanValue("ModifyCopilotEmbedConfig.Success"); + modifyCopilotEmbedConfigResponse.Result = _ctx.BooleanValue("ModifyCopilotEmbedConfig.Result"); + + return modifyCopilotEmbedConfigResponse; + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryCopilotEmbedConfigResponseUnmarshaller.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryCopilotEmbedConfigResponseUnmarshaller.cs new file mode 100644 index 000000000..d8ac640dd --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryCopilotEmbedConfigResponseUnmarshaller.cs @@ -0,0 +1,72 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.quickbi_public.Model.V20220101; + +namespace Aliyun.Acs.quickbi_public.Transform.V20220101 +{ + public class QueryCopilotEmbedConfigResponseUnmarshaller + { + public static QueryCopilotEmbedConfigResponse Unmarshall(UnmarshallerContext _ctx) + { + QueryCopilotEmbedConfigResponse queryCopilotEmbedConfigResponse = new QueryCopilotEmbedConfigResponse(); + + queryCopilotEmbedConfigResponse.HttpResponse = _ctx.HttpResponse; + queryCopilotEmbedConfigResponse.RequestId = _ctx.StringValue("QueryCopilotEmbedConfig.RequestId"); + queryCopilotEmbedConfigResponse.Success = _ctx.BooleanValue("QueryCopilotEmbedConfig.Success"); + + List queryCopilotEmbedConfigResponse_result = new List(); + for (int i = 0; i < _ctx.Length("QueryCopilotEmbedConfig.Result.Length"); i++) { + QueryCopilotEmbedConfigResponse.QueryCopilotEmbedConfig_ResultItem resultItem = new QueryCopilotEmbedConfigResponse.QueryCopilotEmbedConfig_ResultItem(); + resultItem.CopilotId = _ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].CopilotId"); + resultItem.ShowName = _ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].ShowName"); + resultItem.CreateUser = _ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].CreateUser"); + resultItem.CreateUserName = _ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].CreateUserName"); + resultItem.ModifyUser = _ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].ModifyUser"); + resultItem.ModuleName = _ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].ModuleName"); + resultItem.AgentName = _ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].AgentName"); + + QueryCopilotEmbedConfigResponse.QueryCopilotEmbedConfig_ResultItem.QueryCopilotEmbedConfig_DataRange dataRange = new QueryCopilotEmbedConfigResponse.QueryCopilotEmbedConfig_ResultItem.QueryCopilotEmbedConfig_DataRange(); + dataRange.AllTheme = _ctx.BooleanValue("QueryCopilotEmbedConfig.Result["+ i +"].DataRange.AllTheme"); + dataRange.AllCube = _ctx.BooleanValue("QueryCopilotEmbedConfig.Result["+ i +"].DataRange.AllCube"); + + List dataRange_themes = new List(); + for (int j = 0; j < _ctx.Length("QueryCopilotEmbedConfig.Result["+ i +"].DataRange.Themes.Length"); j++) { + dataRange_themes.Add(_ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].DataRange.Themes["+ j +"]")); + } + dataRange.Themes = dataRange_themes; + + List dataRange_llmCubes = new List(); + for (int j = 0; j < _ctx.Length("QueryCopilotEmbedConfig.Result["+ i +"].DataRange.LlmCubes.Length"); j++) { + dataRange_llmCubes.Add(_ctx.StringValue("QueryCopilotEmbedConfig.Result["+ i +"].DataRange.LlmCubes["+ j +"]")); + } + dataRange.LlmCubes = dataRange_llmCubes; + resultItem.DataRange = dataRange; + + queryCopilotEmbedConfigResponse_result.Add(resultItem); + } + queryCopilotEmbedConfigResponse.Result = queryCopilotEmbedConfigResponse_result; + + return queryCopilotEmbedConfigResponse; + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryDataRangeResponseUnmarshaller.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryDataRangeResponseUnmarshaller.cs new file mode 100644 index 000000000..317fa44a8 --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryDataRangeResponseUnmarshaller.cs @@ -0,0 +1,76 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.quickbi_public.Model.V20220101; + +namespace Aliyun.Acs.quickbi_public.Transform.V20220101 +{ + public class QueryDataRangeResponseUnmarshaller + { + public static QueryDataRangeResponse Unmarshall(UnmarshallerContext _ctx) + { + QueryDataRangeResponse queryDataRangeResponse = new QueryDataRangeResponse(); + + queryDataRangeResponse.HttpResponse = _ctx.HttpResponse; + queryDataRangeResponse.RequestId = _ctx.StringValue("QueryDataRange.RequestId"); + queryDataRangeResponse.Success = _ctx.BooleanValue("QueryDataRange.Success"); + + QueryDataRangeResponse.QueryDataRange_Result result = new QueryDataRangeResponse.QueryDataRange_Result(); + + List result_apiCopilotLlmCubeModels = new List(); + for (int i = 0; i < _ctx.Length("QueryDataRange.Result.ApiCopilotLlmCubeModels.Length"); i++) { + QueryDataRangeResponse.QueryDataRange_Result.QueryDataRange_ApiCopilotLlmCubeModelsItem apiCopilotLlmCubeModelsItem = new QueryDataRangeResponse.QueryDataRange_Result.QueryDataRange_ApiCopilotLlmCubeModelsItem(); + apiCopilotLlmCubeModelsItem.LlmCubeId = _ctx.StringValue("QueryDataRange.Result.ApiCopilotLlmCubeModels["+ i +"].LlmCubeId"); + apiCopilotLlmCubeModelsItem.Alias = _ctx.StringValue("QueryDataRange.Result.ApiCopilotLlmCubeModels["+ i +"].Alias"); + apiCopilotLlmCubeModelsItem.CreateUser = _ctx.StringValue("QueryDataRange.Result.ApiCopilotLlmCubeModels["+ i +"].CreateUser"); + + result_apiCopilotLlmCubeModels.Add(apiCopilotLlmCubeModelsItem); + } + result.ApiCopilotLlmCubeModels = result_apiCopilotLlmCubeModels; + + List result_apiCopilotThemeModels = new List(); + for (int i = 0; i < _ctx.Length("QueryDataRange.Result.ApiCopilotThemeModels.Length"); i++) { + QueryDataRangeResponse.QueryDataRange_Result.QueryDataRange_ApiCopilotThemeModelsItem apiCopilotThemeModelsItem = new QueryDataRangeResponse.QueryDataRange_Result.QueryDataRange_ApiCopilotThemeModelsItem(); + apiCopilotThemeModelsItem.ThemeId = _ctx.StringValue("QueryDataRange.Result.ApiCopilotThemeModels["+ i +"].ThemeId"); + apiCopilotThemeModelsItem.ThemeName = _ctx.StringValue("QueryDataRange.Result.ApiCopilotThemeModels["+ i +"].ThemeName"); + apiCopilotThemeModelsItem.CreateUser = _ctx.StringValue("QueryDataRange.Result.ApiCopilotThemeModels["+ i +"].CreateUser"); + + List apiCopilotThemeModelsItem_apiCopilotLlmCubeModels1 = new List(); + for (int j = 0; j < _ctx.Length("QueryDataRange.Result.ApiCopilotThemeModels["+ i +"].ApiCopilotLlmCubeModels.Length"); j++) { + QueryDataRangeResponse.QueryDataRange_Result.QueryDataRange_ApiCopilotThemeModelsItem.QueryDataRange_ApiCopilotLlmCubeModelsItem2 apiCopilotLlmCubeModelsItem2 = new QueryDataRangeResponse.QueryDataRange_Result.QueryDataRange_ApiCopilotThemeModelsItem.QueryDataRange_ApiCopilotLlmCubeModelsItem2(); + apiCopilotLlmCubeModelsItem2.LlmCubeId = _ctx.StringValue("QueryDataRange.Result.ApiCopilotThemeModels["+ i +"].ApiCopilotLlmCubeModels["+ j +"].LlmCubeId"); + apiCopilotLlmCubeModelsItem2.Alias = _ctx.StringValue("QueryDataRange.Result.ApiCopilotThemeModels["+ i +"].ApiCopilotLlmCubeModels["+ j +"].Alias"); + apiCopilotLlmCubeModelsItem2.CreateUser = _ctx.StringValue("QueryDataRange.Result.ApiCopilotThemeModels["+ i +"].ApiCopilotLlmCubeModels["+ j +"].CreateUser"); + + apiCopilotThemeModelsItem_apiCopilotLlmCubeModels1.Add(apiCopilotLlmCubeModelsItem2); + } + apiCopilotThemeModelsItem.ApiCopilotLlmCubeModels1 = apiCopilotThemeModelsItem_apiCopilotLlmCubeModels1; + + result_apiCopilotThemeModels.Add(apiCopilotThemeModelsItem); + } + result.ApiCopilotThemeModels = result_apiCopilotThemeModels; + queryDataRangeResponse.Result = result; + + return queryDataRangeResponse; + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryDataResponseUnmarshaller.cs b/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryDataResponseUnmarshaller.cs new file mode 100644 index 000000000..f47dfd878 --- /dev/null +++ b/aliyun-net-sdk-quickbi-public/Quickbi_public/Transform/V20220101/QueryDataResponseUnmarshaller.cs @@ -0,0 +1,73 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.quickbi_public.Model.V20220101; + +namespace Aliyun.Acs.quickbi_public.Transform.V20220101 +{ + public class QueryDataResponseUnmarshaller + { + public static QueryDataResponse Unmarshall(UnmarshallerContext _ctx) + { + QueryDataResponse queryDataResponse = new QueryDataResponse(); + + queryDataResponse.HttpResponse = _ctx.HttpResponse; + queryDataResponse.Success = _ctx.BooleanValue("QueryData.Success"); + queryDataResponse.RequestId = _ctx.StringValue("QueryData.RequestId"); + + QueryDataResponse.QueryData_Result result = new QueryDataResponse.QueryData_Result(); + result.Sql = _ctx.StringValue("QueryData.Result.Sql"); + + List> result_values = new List>(); + for (int i = 0; i < _ctx.Length("QueryData.Result.Values.Length"); i++) { + Dictionary tmp = new Dictionary() { }; + foreach (var _item in _ctx.ResponseDictionary){ + string prefix = "QueryData.Result.Values["+ i +"]."; + if (_item.Key.IndexOf(prefix) == 0){ + tmp.Add(_item.Key.Substring(prefix.Length), _item.Value); + } + } + if (tmp.Count > 0){ + result_values.Add(tmp); + } + } + result.Values = result_values; + + List result_headers = new List(); + for (int i = 0; i < _ctx.Length("QueryData.Result.Headers.Length"); i++) { + QueryDataResponse.QueryData_Result.QueryData_HeadersItem headersItem = new QueryDataResponse.QueryData_Result.QueryData_HeadersItem(); + headersItem.Type = _ctx.StringValue("QueryData.Result.Headers["+ i +"].Type"); + headersItem.DataType = _ctx.StringValue("QueryData.Result.Headers["+ i +"].DataType"); + headersItem.Granularity = _ctx.StringValue("QueryData.Result.Headers["+ i +"].Granularity"); + headersItem.Label = _ctx.StringValue("QueryData.Result.Headers["+ i +"].Label"); + headersItem.Column = _ctx.StringValue("QueryData.Result.Headers["+ i +"].Column"); + headersItem.Aggregator = _ctx.StringValue("QueryData.Result.Headers["+ i +"].Aggregator"); + + result_headers.Add(headersItem); + } + result.Headers = result_headers; + queryDataResponse.Result = result; + + return queryDataResponse; + } + } +} diff --git a/aliyun-net-sdk-quickbi-public/aliyun-net-sdk-quickbi-public.vs2017.csproj b/aliyun-net-sdk-quickbi-public/aliyun-net-sdk-quickbi-public.vs2017.csproj index 54c13ecaf..28ffad99d 100644 --- a/aliyun-net-sdk-quickbi-public/aliyun-net-sdk-quickbi-public.vs2017.csproj +++ b/aliyun-net-sdk-quickbi-public/aliyun-net-sdk-quickbi-public.vs2017.csproj @@ -3,7 +3,7 @@ netstandard2.0;net45 Aliyun.Acs.quickbi_public - 2.1.7 + 2.1.8 Alibaba Cloud ©2009-2019 Alibaba Cloud false