Skip to content

Commit

Permalink
Add some open api.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 30, 2023
1 parent 35cfdbf commit ff0b21b
Show file tree
Hide file tree
Showing 10 changed files with 435 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-sddp/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-08-30 Version: 1.0.12
- Add some open api.

2023-07-07 Version: 1.0.11
- Add some api version2.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-sddp/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-sddp</artifactId>
<packaging>jar</packaging>
<version>1.0.11</version>
<version>1.0.12</version>
<name>aliyun-java-sdk-sddp</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 @@ -25,6 +25,8 @@
public class DescribeDataObjectsRequest extends RpcAcsRequest<DescribeDataObjectsResponse> {


private Long fileType;

private String riskLevels;

private String queryName;
Expand All @@ -45,7 +47,11 @@ public class DescribeDataObjectsRequest extends RpcAcsRequest<DescribeDataObject

private Integer currentPage;

private Long templateId;
private Long templateId;

private String instanceId;

private String modelIds;
public DescribeDataObjectsRequest() {
super("Sddp", "2019-01-03", "DescribeDataObjects", "sddp");
setMethod(MethodType.POST);
Expand All @@ -55,6 +61,17 @@ public DescribeDataObjectsRequest() {
} catch (Exception e) {}
}

public Long getFileType() {
return this.fileType;
}

public void setFileType(Long fileType) {
this.fileType = fileType;
if(fileType != null){
putQueryParameter("FileType", fileType.toString());
}
}

public String getRiskLevels() {
return this.riskLevels;
}
Expand Down Expand Up @@ -174,6 +191,28 @@ public void setTemplateId(Long templateId) {
if(templateId != null){
putQueryParameter("TemplateId", templateId.toString());
}
}

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

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}

public String getModelIds() {
return this.modelIds;
}

public void setModelIds(String modelIds) {
this.modelIds = modelIds;
if(modelIds != null){
putQueryParameter("ModelIds", modelIds);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* 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.sddp.model.v20190103;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.sddp.Endpoint;

/**
* @author auto create
* @version
*/
public class DescribeDocTypesRequest extends RpcAcsRequest<DescribeDocTypesResponse> {


private String lang;
public DescribeDocTypesRequest() {
super("Sddp", "2019-01-03", "DescribeDocTypes", "sddp");
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 String getLang() {
return this.lang;
}

public void setLang(String lang) {
this.lang = lang;
if(lang != null){
putQueryParameter("Lang", lang);
}
}

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

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

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.sddp.transform.v20190103.DescribeDocTypesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private List<DocType> docTypeList;

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

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

public List<DocType> getDocTypeList() {
return this.docTypeList;
}

public void setDocTypeList(List<DocType> docTypeList) {
this.docTypeList = docTypeList;
}

public static class DocType {

private Long code;

private String name;

private Long id;

public Long getCode() {
return this.code;
}

public void setCode(Long code) {
this.code = code;
}

public String getName() {
return this.name;
}

public void setName(String name) {
this.name = name;
}

public Long getId() {
return this.id;
}

public void setId(Long id) {
this.id = id;
}
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public class DescribeRulesRequest extends RpcAcsRequest<DescribeRulesResponse> {

private Boolean keywordCompatible;

private Integer supportForm;

private Integer ruleType;

private String groupId;
Expand Down Expand Up @@ -153,6 +155,17 @@ public void setKeywordCompatible(Boolean keywordCompatible) {
}
}

public Integer getSupportForm() {
return this.supportForm;
}

public void setSupportForm(Integer supportForm) {
this.supportForm = supportForm;
if(supportForm != null){
putQueryParameter("SupportForm", supportForm.toString());
}
}

public Integer getRuleType() {
return this.ruleType;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* 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.sddp.model.v20190103;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.sddp.Endpoint;

/**
* @author auto create
* @version
*/
public class DescribeTemplateAllRulesRequest extends RpcAcsRequest<DescribeTemplateAllRulesResponse> {


private Long templateId;

private String lang;
public DescribeTemplateAllRulesRequest() {
super("Sddp", "2019-01-03", "DescribeTemplateAllRules", "sddp");
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 getTemplateId() {
return this.templateId;
}

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

public String getLang() {
return this.lang;
}

public void setLang(String lang) {
this.lang = lang;
if(lang != null){
putQueryParameter("Lang", lang);
}
}

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

}
Loading

0 comments on commit ff0b21b

Please sign in to comment.