-
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.
Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTableb…
…aseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.
- Loading branch information
Showing
78 changed files
with
6,325 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
144 changes: 144 additions & 0 deletions
144
...in/java/com/aliyuncs/dms_enterprise/model/v20181101/AddAuthorityTemplateItemsRequest.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,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; | ||
} | ||
|
||
} |
81 changes: 81 additions & 0 deletions
81
...n/java/com/aliyuncs/dms_enterprise/model/v20181101/AddAuthorityTemplateItemsResponse.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,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); | ||
} | ||
} |
108 changes: 108 additions & 0 deletions
108
...main/java/com/aliyuncs/dms_enterprise/model/v20181101/CreateAbacAuthorizationRequest.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,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; | ||
} | ||
|
||
} |
Oops, something went wrong.