Skip to content

Commit f074b76

Browse files
committed
Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTablebaseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.
1 parent 84e6d64 commit f074b76

File tree

78 files changed

+6325
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+6325
-1
lines changed

aliyun-java-sdk-dms-enterprise/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-27 Version: 1.53.14
2+
- Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTablebaseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.
3+
14
2024-08-02 Version: 1.53.13
25
- Support switch login user
36

aliyun-java-sdk-dms-enterprise/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-dms-enterprise</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.53.13</version>
7+
<version>1.53.14</version>
88
<name>aliyun-java-sdk-dms-enterprise</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.dms_enterprise.model.v20181101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.google.gson.Gson;
20+
import com.google.gson.annotations.SerializedName;
21+
import com.aliyuncs.http.ProtocolType;
22+
import com.aliyuncs.http.MethodType;
23+
import com.aliyuncs.dms_enterprise.Endpoint;
24+
25+
/**
26+
* @author auto create
27+
* @version
28+
*/
29+
public class AddAuthorityTemplateItemsRequest extends RpcAcsRequest<AddAuthorityTemplateItemsResponse> {
30+
31+
32+
private Long tid;
33+
34+
private Long templateId;
35+
36+
@SerializedName("items")
37+
private List<Items> items;
38+
public AddAuthorityTemplateItemsRequest() {
39+
super("dms-enterprise", "2018-11-01", "AddAuthorityTemplateItems", "dms-enterprise");
40+
setProtocol(ProtocolType.HTTPS);
41+
setMethod(MethodType.POST);
42+
try {
43+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
44+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
45+
} catch (Exception e) {}
46+
}
47+
48+
public Long getTid() {
49+
return this.tid;
50+
}
51+
52+
public void setTid(Long tid) {
53+
this.tid = tid;
54+
if(tid != null){
55+
putQueryParameter("Tid", tid.toString());
56+
}
57+
}
58+
59+
public Long getTemplateId() {
60+
return this.templateId;
61+
}
62+
63+
public void setTemplateId(Long templateId) {
64+
this.templateId = templateId;
65+
if(templateId != null){
66+
putQueryParameter("TemplateId", templateId.toString());
67+
}
68+
}
69+
70+
public List<Items> getItems() {
71+
return this.items;
72+
}
73+
74+
public void setItems(List<Items> items) {
75+
this.items = items;
76+
if (items != null) {
77+
putQueryParameter("Items" , new Gson().toJson(items));
78+
}
79+
}
80+
81+
public static class Items {
82+
83+
@SerializedName("InstanceId")
84+
private Integer instanceId;
85+
86+
@SerializedName("DbId")
87+
private Integer dbId;
88+
89+
@SerializedName("PermissionTypes")
90+
private List<String> permissionTypes;
91+
92+
@SerializedName("TableName")
93+
private String tableName;
94+
95+
@SerializedName("ResourceType")
96+
private String resourceType;
97+
98+
public Integer getInstanceId() {
99+
return this.instanceId;
100+
}
101+
102+
public void setInstanceId(Integer instanceId) {
103+
this.instanceId = instanceId;
104+
}
105+
106+
public Integer getDbId() {
107+
return this.dbId;
108+
}
109+
110+
public void setDbId(Integer dbId) {
111+
this.dbId = dbId;
112+
}
113+
114+
public List<String> getPermissionTypes() {
115+
return this.permissionTypes;
116+
}
117+
118+
public void setPermissionTypes(List<String> permissionTypes) {
119+
this.permissionTypes = permissionTypes;
120+
}
121+
122+
public String getTableName() {
123+
return this.tableName;
124+
}
125+
126+
public void setTableName(String tableName) {
127+
this.tableName = tableName;
128+
}
129+
130+
public String getResourceType() {
131+
return this.resourceType;
132+
}
133+
134+
public void setResourceType(String resourceType) {
135+
this.resourceType = resourceType;
136+
}
137+
}
138+
139+
@Override
140+
public Class<AddAuthorityTemplateItemsResponse> getResponseClass() {
141+
return AddAuthorityTemplateItemsResponse.class;
142+
}
143+
144+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.dms_enterprise.model.v20181101;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.dms_enterprise.transform.v20181101.AddAuthorityTemplateItemsResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class AddAuthorityTemplateItemsResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String errorCode;
30+
31+
private String errorMessage;
32+
33+
private Boolean data;
34+
35+
private Boolean success;
36+
37+
public String getRequestId() {
38+
return this.requestId;
39+
}
40+
41+
public void setRequestId(String requestId) {
42+
this.requestId = requestId;
43+
}
44+
45+
public String getErrorCode() {
46+
return this.errorCode;
47+
}
48+
49+
public void setErrorCode(String errorCode) {
50+
this.errorCode = errorCode;
51+
}
52+
53+
public String getErrorMessage() {
54+
return this.errorMessage;
55+
}
56+
57+
public void setErrorMessage(String errorMessage) {
58+
this.errorMessage = errorMessage;
59+
}
60+
61+
public Boolean getData() {
62+
return this.data;
63+
}
64+
65+
public void setData(Boolean data) {
66+
this.data = data;
67+
}
68+
69+
public Boolean getSuccess() {
70+
return this.success;
71+
}
72+
73+
public void setSuccess(Boolean success) {
74+
this.success = success;
75+
}
76+
77+
@Override
78+
public AddAuthorityTemplateItemsResponse getInstance(UnmarshallerContext context) {
79+
return AddAuthorityTemplateItemsResponseUnmarshaller.unmarshall(this, context);
80+
}
81+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.dms_enterprise.model.v20181101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.dms_enterprise.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class CreateAbacAuthorizationRequest extends RpcAcsRequest<CreateAbacAuthorizationResponse> {
27+
28+
29+
private Long roleId;
30+
31+
private Long userId;
32+
33+
private Long tid;
34+
35+
private Long policyId;
36+
37+
private String identityType;
38+
public CreateAbacAuthorizationRequest() {
39+
super("dms-enterprise", "2018-11-01", "CreateAbacAuthorization", "dms-enterprise");
40+
setProtocol(ProtocolType.HTTPS);
41+
setMethod(MethodType.POST);
42+
try {
43+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
44+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
45+
} catch (Exception e) {}
46+
}
47+
48+
public Long getRoleId() {
49+
return this.roleId;
50+
}
51+
52+
public void setRoleId(Long roleId) {
53+
this.roleId = roleId;
54+
if(roleId != null){
55+
putQueryParameter("RoleId", roleId.toString());
56+
}
57+
}
58+
59+
public Long getUserId() {
60+
return this.userId;
61+
}
62+
63+
public void setUserId(Long userId) {
64+
this.userId = userId;
65+
if(userId != null){
66+
putQueryParameter("UserId", userId.toString());
67+
}
68+
}
69+
70+
public Long getTid() {
71+
return this.tid;
72+
}
73+
74+
public void setTid(Long tid) {
75+
this.tid = tid;
76+
if(tid != null){
77+
putQueryParameter("Tid", tid.toString());
78+
}
79+
}
80+
81+
public Long getPolicyId() {
82+
return this.policyId;
83+
}
84+
85+
public void setPolicyId(Long policyId) {
86+
this.policyId = policyId;
87+
if(policyId != null){
88+
putQueryParameter("PolicyId", policyId.toString());
89+
}
90+
}
91+
92+
public String getIdentityType() {
93+
return this.identityType;
94+
}
95+
96+
public void setIdentityType(String identityType) {
97+
this.identityType = identityType;
98+
if(identityType != null){
99+
putQueryParameter("IdentityType", identityType);
100+
}
101+
}
102+
103+
@Override
104+
public Class<CreateAbacAuthorizationResponse> getResponseClass() {
105+
return CreateAbacAuthorizationResponse.class;
106+
}
107+
108+
}

0 commit comments

Comments
 (0)