Skip to content

Commit

Permalink
Supported tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 8, 2023
1 parent 774ba91 commit 02886b1
Show file tree
Hide file tree
Showing 11 changed files with 114 additions and 2 deletions.
9 changes: 9 additions & 0 deletions aliyun-java-sdk-sas/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2023-07-08 Version: 1.1.36
- Supported tag.
- Support RAM action.
- Support NextToken.
- Fixed bugs for os statistics.
- Support api for vul auth.
- Add GetCheckSale.
- Add Vul,CSPM,RASP.

2023-07-01 Version: 1.1.35
- Supported API For ECS.
- Service online.
Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-sas/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-sas</artifactId>
<packaging>jar</packaging>
<version>1.1.35</version>
<version>1.1.36</version>
<name>aliyun-java-sdk-sas</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 @@ -29,12 +29,16 @@ public class DescribeCloudCenterInstancesRequest extends RpcAcsRequest<DescribeC

private Integer importance;

private String nextToken;

private Integer pageSize;

private String logicalExp;

private String lang;

private Boolean useNextToken;

private Integer currentPage;

private String machineTypes;
Expand Down Expand Up @@ -71,6 +75,17 @@ public void setImportance(Integer importance) {
}
}

public String getNextToken() {
return this.nextToken;
}

public void setNextToken(String nextToken) {
this.nextToken = nextToken;
if(nextToken != null){
putQueryParameter("NextToken", nextToken);
}
}

public Integer getPageSize() {
return this.pageSize;
}
Expand Down Expand Up @@ -104,6 +119,17 @@ public void setLang(String lang) {
}
}

public Boolean getUseNextToken() {
return this.useNextToken;
}

public void setUseNextToken(Boolean useNextToken) {
this.useNextToken = useNextToken;
if(useNextToken != null){
putQueryParameter("UseNextToken", useNextToken.toString());
}
}

public Integer getCurrentPage() {
return this.currentPage;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ public static class PageInfo {

private Integer count;

private String nextToken;

public Integer getCurrentPage() {
return this.currentPage;
}
Expand Down Expand Up @@ -579,6 +581,14 @@ public Integer getCount() {
public void setCount(Integer count) {
this.count = count;
}

public String getNextToken() {
return this.nextToken;
}

public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public static class Instance {

private Integer authVersionCheckCount;

private String os;

private List<String> groupPath;

public Long getAsapVulInstanceCount() {
Expand Down Expand Up @@ -139,6 +141,14 @@ public void setAuthVersionCheckCount(Integer authVersionCheckCount) {
this.authVersionCheckCount = authVersionCheckCount;
}

public String getOs() {
return this.os;
}

public void setOs(String os) {
this.os = os;
}

public List<String> getGroupPath() {
return this.groupPath;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class DescribeUuidsByVulNamesResponse extends AcsResponse {

private String requestId;

private Integer vulCount;

private List<MachineInfoStatistic> machineInfoStatistics;

public String getRequestId() {
Expand All @@ -37,6 +39,14 @@ public void setRequestId(String requestId) {
this.requestId = requestId;
}

public Integer getVulCount() {
return this.vulCount;
}

public void setVulCount(Integer vulCount) {
this.vulCount = vulCount;
}

public List<MachineInfoStatistic> getMachineInfoStatistics() {
return this.machineInfoStatistics;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ public class DescribeVersionConfigResponse extends AcsResponse {

private Long threatAnalysisCapacity;

private Long cspmCapacity;

private Long vulFixCapacity;

private Long raspCapacity;

private Long agentlessCapacity;

public Integer getMVAuthCount() {
return this.mVAuthCount;
}
Expand Down Expand Up @@ -384,6 +392,38 @@ public void setThreatAnalysisCapacity(Long threatAnalysisCapacity) {
this.threatAnalysisCapacity = threatAnalysisCapacity;
}

public Long getCspmCapacity() {
return this.cspmCapacity;
}

public void setCspmCapacity(Long cspmCapacity) {
this.cspmCapacity = cspmCapacity;
}

public Long getVulFixCapacity() {
return this.vulFixCapacity;
}

public void setVulFixCapacity(Long vulFixCapacity) {
this.vulFixCapacity = vulFixCapacity;
}

public Long getRaspCapacity() {
return this.raspCapacity;
}

public void setRaspCapacity(Long raspCapacity) {
this.raspCapacity = raspCapacity;
}

public Long getAgentlessCapacity() {
return this.agentlessCapacity;
}

public void setAgentlessCapacity(Long agentlessCapacity) {
this.agentlessCapacity = agentlessCapacity;
}

@Override
public DescribeVersionConfigResponse getInstance(UnmarshallerContext context) {
return DescribeVersionConfigResponseUnmarshaller.unmarshall(this, context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static DescribeCloudCenterInstancesResponse unmarshall(DescribeCloudCente
pageInfo.setPageSize(_ctx.integerValue("DescribeCloudCenterInstancesResponse.PageInfo.PageSize"));
pageInfo.setTotalCount(_ctx.integerValue("DescribeCloudCenterInstancesResponse.PageInfo.TotalCount"));
pageInfo.setCount(_ctx.integerValue("DescribeCloudCenterInstancesResponse.PageInfo.Count"));
pageInfo.setNextToken(_ctx.stringValue("DescribeCloudCenterInstancesResponse.PageInfo.NextToken"));
describeCloudCenterInstancesResponse.setPageInfo(pageInfo);

List<Instance> instances = new ArrayList<Instance>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static DescribeGroupedInstancesResponse unmarshall(DescribeGroupedInstanc
instance.setRiskInstanceCount(_ctx.stringValue("DescribeGroupedInstancesResponse.Instances["+ i +"].RiskInstanceCount"));
instance.setGroupFlag(_ctx.integerValue("DescribeGroupedInstancesResponse.Instances["+ i +"].GroupFlag"));
instance.setAuthVersionCheckCount(_ctx.integerValue("DescribeGroupedInstancesResponse.Instances["+ i +"].AuthVersionCheckCount"));
instance.setOs(_ctx.stringValue("DescribeGroupedInstancesResponse.Instances["+ i +"].Os"));

List<String> groupPath = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("DescribeGroupedInstancesResponse.Instances["+ i +"].GroupPath.Length"); j++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class DescribeUuidsByVulNamesResponseUnmarshaller {
public static DescribeUuidsByVulNamesResponse unmarshall(DescribeUuidsByVulNamesResponse describeUuidsByVulNamesResponse, UnmarshallerContext _ctx) {

describeUuidsByVulNamesResponse.setRequestId(_ctx.stringValue("DescribeUuidsByVulNamesResponse.RequestId"));
describeUuidsByVulNamesResponse.setVulCount(_ctx.integerValue("DescribeUuidsByVulNamesResponse.VulCount"));

List<MachineInfoStatistic> machineInfoStatistics = new ArrayList<MachineInfoStatistic>();
for (int i = 0; i < _ctx.lengthValue("DescribeUuidsByVulNamesResponse.MachineInfoStatistics.Length"); i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ public static DescribeVersionConfigResponse unmarshall(DescribeVersionConfigResp
describeVersionConfigResponse.setOpenTime(_ctx.longValue("DescribeVersionConfigResponse.OpenTime"));
describeVersionConfigResponse.setIsNewContainerVersion(_ctx.booleanValue("DescribeVersionConfigResponse.IsNewContainerVersion"));
describeVersionConfigResponse.setIsNewMultiVersion(_ctx.booleanValue("DescribeVersionConfigResponse.IsNewMultiVersion"));
describeVersionConfigResponse.setThreatAnalysisCapacity(_ctx.longValue("DescribeVersionConfigResponse.ThreatAnalysisCapacity"));
describeVersionConfigResponse.setThreatAnalysisCapacity(_ctx.longValue("DescribeVersionConfigResponse.ThreatAnalysisCapacity"));
describeVersionConfigResponse.setCspmCapacity(_ctx.longValue("DescribeVersionConfigResponse.CspmCapacity"));
describeVersionConfigResponse.setVulFixCapacity(_ctx.longValue("DescribeVersionConfigResponse.VulFixCapacity"));
describeVersionConfigResponse.setRaspCapacity(_ctx.longValue("DescribeVersionConfigResponse.RaspCapacity"));
describeVersionConfigResponse.setAgentlessCapacity(_ctx.longValue("DescribeVersionConfigResponse.AgentlessCapacity"));

return describeVersionConfigResponse;
}
Expand Down

0 comments on commit 02886b1

Please sign in to comment.