Skip to content

Commit

Permalink
Supported SortBy for ListUserDevices.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 16, 2023
1 parent eaf7961 commit eb546ec
Show file tree
Hide file tree
Showing 45 changed files with 5,715 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 @@
2023-11-16 Version: 1.0.4
- Supported SortBy for ListUserDevices.

2023-08-31 Version: 1.0.3
- Supported connector visualization manage.

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.3</version>
<version>1.0.4</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
@@ -0,0 +1,260 @@
/*
* 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.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class CreateRegistrationPolicyRequest extends RpcAcsRequest<CreateRegistrationPolicyResponse> {


private String description;

private String matchMode;

@SerializedName("companyLimitCount")
private CompanyLimitCount companyLimitCount;

@SerializedName("personalLimitCount")
private PersonalLimitCount personalLimitCount;

private List<String> userGroupIds;

private List<String> whitelist;

private Long priority;

private String personalLimitType;

private String name;

private String companyLimitType;

private String status;
public CreateRegistrationPolicyRequest() {
super("csas", "2023-01-20", "CreateRegistrationPolicy");
setMethod(MethodType.POST);
}

public String getDescription() {
return this.description;
}

public void setDescription(String description) {
this.description = description;
if(description != null){
putBodyParameter("Description", description);
}
}

public String getMatchMode() {
return this.matchMode;
}

public void setMatchMode(String matchMode) {
this.matchMode = matchMode;
if(matchMode != null){
putBodyParameter("MatchMode", matchMode);
}
}

public CompanyLimitCount getCompanyLimitCount() {
return this.companyLimitCount;
}

public void setCompanyLimitCount(CompanyLimitCount companyLimitCount) {
this.companyLimitCount = companyLimitCount;
if (companyLimitCount != null) {
putBodyParameter("CompanyLimitCount" , new Gson().toJson(companyLimitCount));
}
}

public PersonalLimitCount getPersonalLimitCount() {
return this.personalLimitCount;
}

public void setPersonalLimitCount(PersonalLimitCount personalLimitCount) {
this.personalLimitCount = personalLimitCount;
if (personalLimitCount != null) {
putBodyParameter("PersonalLimitCount" , new Gson().toJson(personalLimitCount));
}
}

public List<String> getUserGroupIds() {
return this.userGroupIds;
}

public void setUserGroupIds(List<String> userGroupIds) {
this.userGroupIds = userGroupIds;
if (userGroupIds != null) {
for (int depth1 = 0; depth1 < userGroupIds.size(); depth1++) {
putBodyParameter("UserGroupIds." + (depth1 + 1) , userGroupIds.get(depth1));
}
}
}

public List<String> getWhitelist() {
return this.whitelist;
}

public void setWhitelist(List<String> whitelist) {
this.whitelist = whitelist;
if (whitelist != null) {
for (int depth1 = 0; depth1 < whitelist.size(); depth1++) {
putBodyParameter("Whitelist." + (depth1 + 1) , whitelist.get(depth1));
}
}
}

public Long getPriority() {
return this.priority;
}

public void setPriority(Long priority) {
this.priority = priority;
if(priority != null){
putBodyParameter("Priority", priority.toString());
}
}

public String getPersonalLimitType() {
return this.personalLimitType;
}

public void setPersonalLimitType(String personalLimitType) {
this.personalLimitType = personalLimitType;
if(personalLimitType != null){
putBodyParameter("PersonalLimitType", personalLimitType);
}
}

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

public void setName(String name) {
this.name = name;
if(name != null){
putBodyParameter("Name", name);
}
}

public String getCompanyLimitType() {
return this.companyLimitType;
}

public void setCompanyLimitType(String companyLimitType) {
this.companyLimitType = companyLimitType;
if(companyLimitType != null){
putBodyParameter("CompanyLimitType", companyLimitType);
}
}

public String getStatus() {
return this.status;
}

public void setStatus(String status) {
this.status = status;
if(status != null){
putBodyParameter("Status", status);
}
}

public static class CompanyLimitCount {

@SerializedName("All")
private Integer all;

@SerializedName("PC")
private Integer pC;

@SerializedName("Mobile")
private Integer mobile;

public Integer getAll() {
return this.all;
}

public void setAll(Integer all) {
this.all = all;
}

public Integer getPC() {
return this.pC;
}

public void setPC(Integer pC) {
this.pC = pC;
}

public Integer getMobile() {
return this.mobile;
}

public void setMobile(Integer mobile) {
this.mobile = mobile;
}
}

public static class PersonalLimitCount {

@SerializedName("All")
private Integer all;

@SerializedName("PC")
private Integer pC;

@SerializedName("Mobile")
private Integer mobile;

public Integer getAll() {
return this.all;
}

public void setAll(Integer all) {
this.all = all;
}

public Integer getPC() {
return this.pC;
}

public void setPC(Integer pC) {
this.pC = pC;
}

public Integer getMobile() {
return this.mobile;
}

public void setMobile(Integer mobile) {
this.mobile = mobile;
}
}

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

}
Loading

0 comments on commit eb546ec

Please sign in to comment.