Skip to content

Commit

Permalink
Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTableb…
Browse files Browse the repository at this point in the history
…aseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.
  • Loading branch information
sdk-team committed Nov 27, 2024
1 parent 84e6d64 commit f074b76
Show file tree
Hide file tree
Showing 78 changed files with 6,325 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-dms-enterprise/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-11-27 Version: 1.53.14
- Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTablebaseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.

2024-08-02 Version: 1.53.13
- Support switch login user

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-dms-enterprise/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-dms-enterprise</artifactId>
<packaging>jar</packaging>
<version>1.53.13</version>
<version>1.53.14</version>
<name>aliyun-java-sdk-dms-enterprise</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
@@ -0,0 +1,144 @@
/*
* 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.dms_enterprise.model.v20181101;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dms_enterprise.Endpoint;

/**
* @author auto create
* @version
*/
public class AddAuthorityTemplateItemsRequest extends RpcAcsRequest<AddAuthorityTemplateItemsResponse> {


private Long tid;

private Long templateId;

@SerializedName("items")
private List<Items> items;
public AddAuthorityTemplateItemsRequest() {
super("dms-enterprise", "2018-11-01", "AddAuthorityTemplateItems", "dms-enterprise");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public Long getTid() {
return this.tid;
}

public void setTid(Long tid) {
this.tid = tid;
if(tid != null){
putQueryParameter("Tid", tid.toString());
}
}

public Long getTemplateId() {
return this.templateId;
}

public void setTemplateId(Long templateId) {
this.templateId = templateId;
if(templateId != null){
putQueryParameter("TemplateId", templateId.toString());
}
}

public List<Items> getItems() {
return this.items;
}

public void setItems(List<Items> items) {
this.items = items;
if (items != null) {
putQueryParameter("Items" , new Gson().toJson(items));
}
}

public static class Items {

@SerializedName("InstanceId")
private Integer instanceId;

@SerializedName("DbId")
private Integer dbId;

@SerializedName("PermissionTypes")
private List<String> permissionTypes;

@SerializedName("TableName")
private String tableName;

@SerializedName("ResourceType")
private String resourceType;

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

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

public Integer getDbId() {
return this.dbId;
}

public void setDbId(Integer dbId) {
this.dbId = dbId;
}

public List<String> getPermissionTypes() {
return this.permissionTypes;
}

public void setPermissionTypes(List<String> permissionTypes) {
this.permissionTypes = permissionTypes;
}

public String getTableName() {
return this.tableName;
}

public void setTableName(String tableName) {
this.tableName = tableName;
}

public String getResourceType() {
return this.resourceType;
}

public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
* 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.dms_enterprise.model.v20181101;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.dms_enterprise.transform.v20181101.AddAuthorityTemplateItemsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class AddAuthorityTemplateItemsResponse extends AcsResponse {

private String requestId;

private String errorCode;

private String errorMessage;

private Boolean data;

private Boolean success;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getErrorCode() {
return this.errorCode;
}

public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}

public String getErrorMessage() {
return this.errorMessage;
}

public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}

public Boolean getData() {
return this.data;
}

public void setData(Boolean data) {
this.data = data;
}

public Boolean getSuccess() {
return this.success;
}

public void setSuccess(Boolean success) {
this.success = success;
}

@Override
public AddAuthorityTemplateItemsResponse getInstance(UnmarshallerContext context) {
return AddAuthorityTemplateItemsResponseUnmarshaller.unmarshall(this, context);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/*
* 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.dms_enterprise.model.v20181101;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dms_enterprise.Endpoint;

/**
* @author auto create
* @version
*/
public class CreateAbacAuthorizationRequest extends RpcAcsRequest<CreateAbacAuthorizationResponse> {


private Long roleId;

private Long userId;

private Long tid;

private Long policyId;

private String identityType;
public CreateAbacAuthorizationRequest() {
super("dms-enterprise", "2018-11-01", "CreateAbacAuthorization", "dms-enterprise");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public Long getRoleId() {
return this.roleId;
}

public void setRoleId(Long roleId) {
this.roleId = roleId;
if(roleId != null){
putQueryParameter("RoleId", roleId.toString());
}
}

public Long getUserId() {
return this.userId;
}

public void setUserId(Long userId) {
this.userId = userId;
if(userId != null){
putQueryParameter("UserId", userId.toString());
}
}

public Long getTid() {
return this.tid;
}

public void setTid(Long tid) {
this.tid = tid;
if(tid != null){
putQueryParameter("Tid", tid.toString());
}
}

public Long getPolicyId() {
return this.policyId;
}

public void setPolicyId(Long policyId) {
this.policyId = policyId;
if(policyId != null){
putQueryParameter("PolicyId", policyId.toString());
}
}

public String getIdentityType() {
return this.identityType;
}

public void setIdentityType(String identityType) {
this.identityType = identityType;
if(identityType != null){
putQueryParameter("IdentityType", identityType);
}
}

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

}
Loading

0 comments on commit f074b76

Please sign in to comment.