diff --git a/aliyun-java-sdk-csas/ChangeLog.txt b/aliyun-java-sdk-csas/ChangeLog.txt index 6fac2d4f97..7816e06f66 100644 --- a/aliyun-java-sdk-csas/ChangeLog.txt +++ b/aliyun-java-sdk-csas/ChangeLog.txt @@ -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. diff --git a/aliyun-java-sdk-csas/pom.xml b/aliyun-java-sdk-csas/pom.xml index 4857f38bdf..5de6e1f99c 100644 --- a/aliyun-java-sdk-csas/pom.xml +++ b/aliyun-java-sdk-csas/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-csas jar - 1.0.4 + 1.0.5 aliyun-java-sdk-csas http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/CreatePrivateAccessPolicyRequest.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/CreatePrivateAccessPolicyRequest.java index 714672824c..dacbb99743 100644 --- a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/CreatePrivateAccessPolicyRequest.java +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/CreatePrivateAccessPolicyRequest.java @@ -31,6 +31,8 @@ public class CreatePrivateAccessPolicyRequest extends RpcAcsRequest tagIds; + private String deviceAttributeId; + private List userGroupIds; private String policyAction; @@ -94,6 +96,17 @@ public void setTagIds(List tagIds) { } } + public String getDeviceAttributeId() { + return this.deviceAttributeId; + } + + public void setDeviceAttributeId(String deviceAttributeId) { + this.deviceAttributeId = deviceAttributeId; + if(deviceAttributeId != null){ + putBodyParameter("DeviceAttributeId", deviceAttributeId); + } + } + public List getUserGroupIds() { return this.userGroupIds; } diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/GetPrivateAccessPolicyResponse.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/GetPrivateAccessPolicyResponse.java index aeb8ef73cc..e47170917a 100644 --- a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/GetPrivateAccessPolicyResponse.java +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/GetPrivateAccessPolicyResponse.java @@ -65,6 +65,8 @@ public static class Policy { private String applicationType; + private String deviceAttributeId; + private List customUserAttributes; private List userGroupIds; @@ -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 getCustomUserAttributes() { return this.customUserAttributes; } diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPopTrafficStatisticsRequest.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPopTrafficStatisticsRequest.java new file mode 100644 index 0000000000..e9f0252642 --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPopTrafficStatisticsRequest.java @@ -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 { + + + 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 getResponseClass() { + return ListPopTrafficStatisticsResponse.class; + } + +} diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPopTrafficStatisticsResponse.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPopTrafficStatisticsResponse.java new file mode 100644 index 0000000000..e7752859fc --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPopTrafficStatisticsResponse.java @@ -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 trafficData; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public List getTrafficData() { + return this.trafficData; + } + + public void setTrafficData(List trafficData) { + this.trafficData = trafficData; + } + + public static class Data { + + private String metricName; + + private List datapoints; + + public String getMetricName() { + return this.metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public List getDatapoints() { + return this.datapoints; + } + + public void setDatapoints(List 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; + } +} diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPrivateAccessPolicesRequest.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPrivateAccessPolicesRequest.java index ddd0c2e66e..ecc8abf6fc 100644 --- a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPrivateAccessPolicesRequest.java +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPrivateAccessPolicesRequest.java @@ -27,6 +27,8 @@ public class ListPrivateAccessPolicesRequest extends RpcAcsRequest policyIds; + private String tagName; + private Integer pageSize; private String applicationId; @@ -39,6 +41,8 @@ public class ListPrivateAccessPolicesRequest extends RpcAcsRequest 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; } @@ -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; } diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPrivateAccessPolicesResponse.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPrivateAccessPolicesResponse.java index 992e6d6678..70826e528b 100644 --- a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPrivateAccessPolicesResponse.java +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListPrivateAccessPolicesResponse.java @@ -75,6 +75,8 @@ public static class Policy { private String applicationType; + private String deviceAttributeId; + private List customUserAttributes; private List userGroupIds; @@ -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 getCustomUserAttributes() { return this.customUserAttributes; } diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListUsersRequest.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListUsersRequest.java new file mode 100644 index 0000000000..29f33b0b3c --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListUsersRequest.java @@ -0,0 +1,130 @@ +/* + * 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 java.util.List; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class ListUsersRequest extends RpcAcsRequest { + + + private String fuzzyUsername; + + private Long pageSize; + + private String department; + + private Long currentPage; + + private String preciseUsername; + + private List saseUserIds; + + private String status; + public ListUsersRequest() { + super("csas", "2023-01-20", "ListUsers"); + setMethod(MethodType.GET); + } + + public String getFuzzyUsername() { + return this.fuzzyUsername; + } + + public void setFuzzyUsername(String fuzzyUsername) { + this.fuzzyUsername = fuzzyUsername; + if(fuzzyUsername != null){ + putQueryParameter("FuzzyUsername", fuzzyUsername); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getDepartment() { + return this.department; + } + + public void setDepartment(String department) { + this.department = department; + if(department != null){ + putQueryParameter("Department", department); + } + } + + public Long getCurrentPage() { + return this.currentPage; + } + + public void setCurrentPage(Long currentPage) { + this.currentPage = currentPage; + if(currentPage != null){ + putQueryParameter("CurrentPage", currentPage.toString()); + } + } + + public String getPreciseUsername() { + return this.preciseUsername; + } + + public void setPreciseUsername(String preciseUsername) { + this.preciseUsername = preciseUsername; + if(preciseUsername != null){ + putQueryParameter("PreciseUsername", preciseUsername); + } + } + + public List getSaseUserIds() { + return this.saseUserIds; + } + + public void setSaseUserIds(List saseUserIds) { + this.saseUserIds = saseUserIds; + if (saseUserIds != null) { + for (int depth1 = 0; depth1 < saseUserIds.size(); depth1++) { + putQueryParameter("SaseUserIds." + (depth1 + 1) , saseUserIds.get(depth1)); + } + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + @Override + public Class getResponseClass() { + return ListUsersResponse.class; + } + +} diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListUsersResponse.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListUsersResponse.java new file mode 100644 index 0000000000..4474aa0a58 --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/ListUsersResponse.java @@ -0,0 +1,140 @@ +/* + * 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.ListUsersResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListUsersResponse extends AcsResponse { + + private String requestId; + + private String totalNum; + + private List users; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTotalNum() { + return this.totalNum; + } + + public void setTotalNum(String totalNum) { + this.totalNum = totalNum; + } + + public List getUsers() { + return this.users; + } + + public void setUsers(List users) { + this.users = users; + } + + public static class DataList { + + private String username; + + private String saseUserId; + + private String department; + + private String email; + + private String phone; + + private String status; + + private String idpName; + + public String getUsername() { + return this.username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getSaseUserId() { + return this.saseUserId; + } + + public void setSaseUserId(String saseUserId) { + this.saseUserId = saseUserId; + } + + public String getDepartment() { + return this.department; + } + + public void setDepartment(String department) { + this.department = department; + } + + public String getEmail() { + return this.email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getPhone() { + return this.phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getIdpName() { + return this.idpName; + } + + public void setIdpName(String idpName) { + this.idpName = idpName; + } + } + + @Override + public ListUsersResponse getInstance(UnmarshallerContext context) { + return ListUsersResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdatePrivateAccessPolicyRequest.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdatePrivateAccessPolicyRequest.java index 9e61e3943a..dc01a3b1b2 100644 --- a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdatePrivateAccessPolicyRequest.java +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdatePrivateAccessPolicyRequest.java @@ -33,6 +33,8 @@ public class UpdatePrivateAccessPolicyRequest extends RpcAcsRequest tagIds; + private String deviceAttributeId; + private List userGroupIds; private String policyAction; @@ -107,6 +109,17 @@ public void setTagIds(List tagIds) { } } + public String getDeviceAttributeId() { + return this.deviceAttributeId; + } + + public void setDeviceAttributeId(String deviceAttributeId) { + this.deviceAttributeId = deviceAttributeId; + if(deviceAttributeId != null){ + putBodyParameter("DeviceAttributeId", deviceAttributeId); + } + } + public List getUserGroupIds() { return this.userGroupIds; } diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdateUsersStatusRequest.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdateUsersStatusRequest.java new file mode 100644 index 0000000000..92501d9fee --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdateUsersStatusRequest.java @@ -0,0 +1,65 @@ +/* + * 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 java.util.List; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class UpdateUsersStatusRequest extends RpcAcsRequest { + + + private List saseUserIds; + + private String status; + public UpdateUsersStatusRequest() { + super("csas", "2023-01-20", "UpdateUsersStatus"); + setMethod(MethodType.POST); + } + + public List getSaseUserIds() { + return this.saseUserIds; + } + + public void setSaseUserIds(List saseUserIds) { + this.saseUserIds = saseUserIds; + if (saseUserIds != null) { + for (int depth1 = 0; depth1 < saseUserIds.size(); depth1++) { + putQueryParameter("SaseUserIds." + (depth1 + 1) , saseUserIds.get(depth1)); + } + } + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + if(status != null){ + putQueryParameter("Status", status); + } + } + + @Override + public Class getResponseClass() { + return UpdateUsersStatusResponse.class; + } + +} diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdateUsersStatusResponse.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdateUsersStatusResponse.java new file mode 100644 index 0000000000..3ef495ade2 --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/model/v20230120/UpdateUsersStatusResponse.java @@ -0,0 +1,46 @@ +/* + * 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.AcsResponse; +import com.aliyuncs.csas.transform.v20230120.UpdateUsersStatusResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UpdateUsersStatusResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public UpdateUsersStatusResponse getInstance(UnmarshallerContext context) { + return UpdateUsersStatusResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/GetPrivateAccessPolicyResponseUnmarshaller.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/GetPrivateAccessPolicyResponseUnmarshaller.java index 7b0e36867c..0adf65af66 100644 --- a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/GetPrivateAccessPolicyResponseUnmarshaller.java +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/GetPrivateAccessPolicyResponseUnmarshaller.java @@ -39,6 +39,7 @@ public static GetPrivateAccessPolicyResponse unmarshall(GetPrivateAccessPolicyRe policy.setCreateTime(_ctx.stringValue("GetPrivateAccessPolicyResponse.Policy.CreateTime")); policy.setUserGroupMode(_ctx.stringValue("GetPrivateAccessPolicyResponse.Policy.UserGroupMode")); policy.setApplicationType(_ctx.stringValue("GetPrivateAccessPolicyResponse.Policy.ApplicationType")); + policy.setDeviceAttributeId(_ctx.stringValue("GetPrivateAccessPolicyResponse.Policy.DeviceAttributeId")); List userGroupIds = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("GetPrivateAccessPolicyResponse.Policy.UserGroupIds.Length"); i++) { diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListPopTrafficStatisticsResponseUnmarshaller.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListPopTrafficStatisticsResponseUnmarshaller.java new file mode 100644 index 0000000000..80dcfb4e3b --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListPopTrafficStatisticsResponseUnmarshaller.java @@ -0,0 +1,53 @@ +/* + * 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.transform.v20230120; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.csas.model.v20230120.ListPopTrafficStatisticsResponse; +import com.aliyuncs.csas.model.v20230120.ListPopTrafficStatisticsResponse.Data; +import com.aliyuncs.csas.model.v20230120.ListPopTrafficStatisticsResponse.Data.Point; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListPopTrafficStatisticsResponseUnmarshaller { + + public static ListPopTrafficStatisticsResponse unmarshall(ListPopTrafficStatisticsResponse listPopTrafficStatisticsResponse, UnmarshallerContext _ctx) { + + listPopTrafficStatisticsResponse.setRequestId(_ctx.stringValue("ListPopTrafficStatisticsResponse.RequestId")); + + List trafficData = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListPopTrafficStatisticsResponse.TrafficData.Length"); i++) { + Data data = new Data(); + data.setMetricName(_ctx.stringValue("ListPopTrafficStatisticsResponse.TrafficData["+ i +"].MetricName")); + + List datapoints = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("ListPopTrafficStatisticsResponse.TrafficData["+ i +"].Datapoints.Length"); j++) { + Point point = new Point(); + point.setDateTime(_ctx.stringValue("ListPopTrafficStatisticsResponse.TrafficData["+ i +"].Datapoints["+ j +"].DateTime")); + point.setAverage(_ctx.doubleValue("ListPopTrafficStatisticsResponse.TrafficData["+ i +"].Datapoints["+ j +"].Average")); + + datapoints.add(point); + } + data.setDatapoints(datapoints); + + trafficData.add(data); + } + listPopTrafficStatisticsResponse.setTrafficData(trafficData); + + return listPopTrafficStatisticsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListPrivateAccessPolicesResponseUnmarshaller.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListPrivateAccessPolicesResponseUnmarshaller.java index 10c1540b0b..30ba4ee459 100644 --- a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListPrivateAccessPolicesResponseUnmarshaller.java +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListPrivateAccessPolicesResponseUnmarshaller.java @@ -42,6 +42,7 @@ public static ListPrivateAccessPolicesResponse unmarshall(ListPrivateAccessPolic policy.setCreateTime(_ctx.stringValue("ListPrivateAccessPolicesResponse.Polices["+ i +"].CreateTime")); policy.setUserGroupMode(_ctx.stringValue("ListPrivateAccessPolicesResponse.Polices["+ i +"].UserGroupMode")); policy.setApplicationType(_ctx.stringValue("ListPrivateAccessPolicesResponse.Polices["+ i +"].ApplicationType")); + policy.setDeviceAttributeId(_ctx.stringValue("ListPrivateAccessPolicesResponse.Polices["+ i +"].DeviceAttributeId")); List userGroupIds = new ArrayList(); for (int j = 0; j < _ctx.lengthValue("ListPrivateAccessPolicesResponse.Polices["+ i +"].UserGroupIds.Length"); j++) { diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListUsersResponseUnmarshaller.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListUsersResponseUnmarshaller.java new file mode 100644 index 0000000000..bce8104052 --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/ListUsersResponseUnmarshaller.java @@ -0,0 +1,49 @@ +/* + * 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.transform.v20230120; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.csas.model.v20230120.ListUsersResponse; +import com.aliyuncs.csas.model.v20230120.ListUsersResponse.DataList; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListUsersResponseUnmarshaller { + + public static ListUsersResponse unmarshall(ListUsersResponse listUsersResponse, UnmarshallerContext _ctx) { + + listUsersResponse.setRequestId(_ctx.stringValue("ListUsersResponse.RequestId")); + listUsersResponse.setTotalNum(_ctx.stringValue("ListUsersResponse.TotalNum")); + + List users = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListUsersResponse.Users.Length"); i++) { + DataList dataList = new DataList(); + dataList.setUsername(_ctx.stringValue("ListUsersResponse.Users["+ i +"].Username")); + dataList.setSaseUserId(_ctx.stringValue("ListUsersResponse.Users["+ i +"].SaseUserId")); + dataList.setDepartment(_ctx.stringValue("ListUsersResponse.Users["+ i +"].Department")); + dataList.setEmail(_ctx.stringValue("ListUsersResponse.Users["+ i +"].Email")); + dataList.setPhone(_ctx.stringValue("ListUsersResponse.Users["+ i +"].Phone")); + dataList.setStatus(_ctx.stringValue("ListUsersResponse.Users["+ i +"].Status")); + dataList.setIdpName(_ctx.stringValue("ListUsersResponse.Users["+ i +"].IdpName")); + + users.add(dataList); + } + listUsersResponse.setUsers(users); + + return listUsersResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/UpdateUsersStatusResponseUnmarshaller.java b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/UpdateUsersStatusResponseUnmarshaller.java new file mode 100644 index 0000000000..b987304ef9 --- /dev/null +++ b/aliyun-java-sdk-csas/src/main/java/com/aliyuncs/csas/transform/v20230120/UpdateUsersStatusResponseUnmarshaller.java @@ -0,0 +1,29 @@ +/* + * 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.transform.v20230120; + +import com.aliyuncs.csas.model.v20230120.UpdateUsersStatusResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UpdateUsersStatusResponseUnmarshaller { + + public static UpdateUsersStatusResponse unmarshall(UpdateUsersStatusResponse updateUsersStatusResponse, UnmarshallerContext _ctx) { + + updateUsersStatusResponse.setRequestId(_ctx.stringValue("UpdateUsersStatusResponse.RequestId")); + + return updateUsersStatusResponse; + } +} \ No newline at end of file