Skip to content

Commit

Permalink
Add SmartQ APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 30, 2024
1 parent 748d18d commit 9b9b28c
Show file tree
Hide file tree
Showing 29 changed files with 1,615 additions and 25 deletions.
4 changes: 4 additions & 0 deletions aliyun-java-sdk-quickbi-public/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-12-30 Version: 2.1.12
- Add SmartQ APIs.
- Add GetDataSourceConnectionInfo, QueryDatasetList APIs.

2024-11-26 Version: 2.1.11
- Add SmartqQueryAbility api.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-quickbi-public/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-quickbi-public</artifactId>
<packaging>jar</packaging>
<version>2.1.11</version>
<version>2.1.12</version>
<name>aliyun-java-sdk-quickbi-public</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public class CancelAuthorizationMenuRequest extends RpcAcsRequest<CancelAuthoriz

private String dataPortalId;

private String userGroupIds;
private String menuIds;

private String userIds;
private String userGroupIds;

private String menuIds;
private String userIds;
public CancelAuthorizationMenuRequest() {
super("quickbi-public", "2022-01-01", "CancelAuthorizationMenu", "2.2.0");
setMethod(MethodType.POST);
Expand All @@ -47,6 +47,17 @@ public void setDataPortalId(String dataPortalId) {
}
}

public String getMenuIds() {
return this.menuIds;
}

public void setMenuIds(String menuIds) {
this.menuIds = menuIds;
if(menuIds != null){
putQueryParameter("MenuIds", menuIds);
}
}

public String getUserGroupIds() {
return this.userGroupIds;
}
Expand All @@ -67,17 +78,6 @@ public void setUserIds(String userIds) {
if(userIds != null){
putQueryParameter("UserIds", userIds);
}
}

public String getMenuIds() {
return this.menuIds;
}

public void setMenuIds(String menuIds) {
this.menuIds = menuIds;
if(menuIds != null){
putQueryParameter("MenuIds", menuIds);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* 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 GetDataSourceConnectionInfoRequest extends RpcAcsRequest<GetDataSourceConnectionInfoResponse> {


private String dsId;
public GetDataSourceConnectionInfoRequest() {
super("quickbi-public", "2022-01-01", "GetDataSourceConnectionInfo", "2.2.0");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public String getDsId() {
return this.dsId;
}

public void setDsId(String dsId) {
this.dsId = dsId;
if(dsId != null){
putQueryParameter("DsId", dsId);
}
}

@Override
public Class<GetDataSourceConnectionInfoResponse> getResponseClass() {
return GetDataSourceConnectionInfoResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
/*
* 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.AcsResponse;
import com.aliyuncs.quickbi_public.transform.v20220101.GetDataSourceConnectionInfoResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class GetDataSourceConnectionInfoResponse 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 address;

private String authLevel;

private String creatorId;

private String dsId;

private String dsType;

private String dsVersion;

private String instance;

private String instanceId;

private String modifyUser;

private Boolean noSasl;

private String parentDsType;

private String port;

private String project;

private String schema;

private String showName;

private String workspaceId;

public String getAddress() {
return this.address;
}

public void setAddress(String address) {
this.address = address;
}

public String getAuthLevel() {
return this.authLevel;
}

public void setAuthLevel(String authLevel) {
this.authLevel = authLevel;
}

public String getCreatorId() {
return this.creatorId;
}

public void setCreatorId(String creatorId) {
this.creatorId = creatorId;
}

public String getDsId() {
return this.dsId;
}

public void setDsId(String dsId) {
this.dsId = dsId;
}

public String getDsType() {
return this.dsType;
}

public void setDsType(String dsType) {
this.dsType = dsType;
}

public String getDsVersion() {
return this.dsVersion;
}

public void setDsVersion(String dsVersion) {
this.dsVersion = dsVersion;
}

public String getInstance() {
return this.instance;
}

public void setInstance(String instance) {
this.instance = instance;
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}

public String getModifyUser() {
return this.modifyUser;
}

public void setModifyUser(String modifyUser) {
this.modifyUser = modifyUser;
}

public Boolean getNoSasl() {
return this.noSasl;
}

public void setNoSasl(Boolean noSasl) {
this.noSasl = noSasl;
}

public String getParentDsType() {
return this.parentDsType;
}

public void setParentDsType(String parentDsType) {
this.parentDsType = parentDsType;
}

public String getPort() {
return this.port;
}

public void setPort(String port) {
this.port = port;
}

public String getProject() {
return this.project;
}

public void setProject(String project) {
this.project = project;
}

public String getSchema() {
return this.schema;
}

public void setSchema(String schema) {
this.schema = schema;
}

public String getShowName() {
return this.showName;
}

public void setShowName(String showName) {
this.showName = showName;
}

public String getWorkspaceId() {
return this.workspaceId;
}

public void setWorkspaceId(String workspaceId) {
this.workspaceId = workspaceId;
}
}

@Override
public GetDataSourceConnectionInfoResponse getInstance(UnmarshallerContext context) {
return GetDataSourceConnectionInfoResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit 9b9b28c

Please sign in to comment.