Skip to content

Commit

Permalink
Generated 2023-01-20 for csas.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Apr 15, 2024
1 parent fcdd3a8 commit 14a0292
Show file tree
Hide file tree
Showing 18 changed files with 770 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-csas/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-04-15 Version: 1.0.5
- Generated 2023-01-20 for `csas`.

2023-11-16 Version: 1.0.4
- Supported SortBy for ListUserDevices.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-csas/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-csas</artifactId>
<packaging>jar</packaging>
<version>1.0.4</version>
<version>1.0.5</version>
<name>aliyun-java-sdk-csas</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 @@ -31,6 +31,8 @@ public class CreatePrivateAccessPolicyRequest extends RpcAcsRequest<CreatePrivat

private List<String> tagIds;

private String deviceAttributeId;

private List<String> userGroupIds;

private String policyAction;
Expand Down Expand Up @@ -94,6 +96,17 @@ public void setTagIds(List<String> tagIds) {
}
}

public String getDeviceAttributeId() {
return this.deviceAttributeId;
}

public void setDeviceAttributeId(String deviceAttributeId) {
this.deviceAttributeId = deviceAttributeId;
if(deviceAttributeId != null){
putBodyParameter("DeviceAttributeId", deviceAttributeId);
}
}

public List<String> getUserGroupIds() {
return this.userGroupIds;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public static class Policy {

private String applicationType;

private String deviceAttributeId;

private List<CustomUserAttribute> customUserAttributes;

private List<String> userGroupIds;
Expand Down Expand Up @@ -145,6 +147,14 @@ public void setApplicationType(String applicationType) {
this.applicationType = applicationType;
}

public String getDeviceAttributeId() {
return this.deviceAttributeId;
}

public void setDeviceAttributeId(String deviceAttributeId) {
this.deviceAttributeId = deviceAttributeId;
}

public List<CustomUserAttribute> getCustomUserAttributes() {
return this.customUserAttributes;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* 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.csas.model.v20230120;

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

/**
* @author auto create
* @version
*/
public class ListPopTrafficStatisticsRequest extends RpcAcsRequest<ListPopTrafficStatisticsResponse> {


private String endTime;

private String startTime;

private String region;
public ListPopTrafficStatisticsRequest() {
super("csas", "2023-01-20", "ListPopTrafficStatistics");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.GET);
}

public String getEndTime() {
return this.endTime;
}

public void setEndTime(String endTime) {
this.endTime = endTime;
if(endTime != null){
putQueryParameter("EndTime", endTime);
}
}

public String getStartTime() {
return this.startTime;
}

public void setStartTime(String startTime) {
this.startTime = startTime;
if(startTime != null){
putQueryParameter("StartTime", startTime);
}
}

public String getRegion() {
return this.region;
}

public void setRegion(String region) {
this.region = region;
if(region != null){
putQueryParameter("Region", region);
}
}

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

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

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.csas.transform.v20230120.ListPopTrafficStatisticsResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private List<Data> trafficData;

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

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

public List<Data> getTrafficData() {
return this.trafficData;
}

public void setTrafficData(List<Data> trafficData) {
this.trafficData = trafficData;
}

public static class Data {

private String metricName;

private List<Point> datapoints;

public String getMetricName() {
return this.metricName;
}

public void setMetricName(String metricName) {
this.metricName = metricName;
}

public List<Point> getDatapoints() {
return this.datapoints;
}

public void setDatapoints(List<Point> datapoints) {
this.datapoints = datapoints;
}

public static class Point {

private String dateTime;

private Double average;

public String getDateTime() {
return this.dateTime;
}

public void setDateTime(String dateTime) {
this.dateTime = dateTime;
}

public Double getAverage() {
return this.average;
}

public void setAverage(Double average) {
this.average = average;
}
}
}

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

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

private List<String> policyIds;

private String tagName;

private Integer pageSize;

private String applicationId;
Expand All @@ -39,6 +41,8 @@ public class ListPrivateAccessPolicesRequest extends RpcAcsRequest<ListPrivateAc

private String policyAction;

private String applicationName;

private String name;

private String status;
Expand All @@ -60,6 +64,17 @@ public void setPolicyIds(List<String> policyIds) {
}
}

public String getTagName() {
return this.tagName;
}

public void setTagName(String tagName) {
this.tagName = tagName;
if(tagName != null){
putQueryParameter("TagName", tagName);
}
}

public Integer getPageSize() {
return this.pageSize;
}
Expand Down Expand Up @@ -126,6 +141,17 @@ public void setPolicyAction(String policyAction) {
}
}

public String getApplicationName() {
return this.applicationName;
}

public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
if(applicationName != null){
putQueryParameter("ApplicationName", applicationName);
}
}

public String getName() {
return this.name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public static class Policy {

private String applicationType;

private String deviceAttributeId;

private List<CustomUserAttribute> customUserAttributes;

private List<String> userGroupIds;
Expand Down Expand Up @@ -155,6 +157,14 @@ public void setApplicationType(String applicationType) {
this.applicationType = applicationType;
}

public String getDeviceAttributeId() {
return this.deviceAttributeId;
}

public void setDeviceAttributeId(String deviceAttributeId) {
this.deviceAttributeId = deviceAttributeId;
}

public List<CustomUserAttribute> getCustomUserAttributes() {
return this.customUserAttributes;
}
Expand Down
Loading

0 comments on commit 14a0292

Please sign in to comment.