Skip to content

Commit

Permalink
UpdateLoginProfile/GetLoginProfile add response param AutoDisableLogi…
Browse files Browse the repository at this point in the history
…nStatus
  • Loading branch information
sdk-team committed Jan 17, 2025
1 parent 01ed0d0 commit ec156ad
Show file tree
Hide file tree
Showing 14 changed files with 190 additions and 29 deletions.
4 changes: 4 additions & 0 deletions aliyun-java-sdk-ims/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2025-01-17 Version: 3.3.11
- UpdateLoginProfile/GetLoginProfile add response param AutoDisableLoginStatus
- SetSecurityPreference/GetSecurityPreference add response param MaxIdleDays

2024-12-10 Version: 3.3.10
- SetUserSsoSettings add request param and response param SsoLoginWithDomain
- GetUserSsoSettings add request param SsoLoginWithDomain
Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ims/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-ims</artifactId>
<packaging>jar</packaging>
<version>3.3.10</version>
<version>3.3.11</version>
<name>aliyun-java-sdk-ims</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 @@ -88,6 +88,10 @@ public static class SummaryMap {

private Integer mFADevicesInUse;

private Integer iPItemsPerAKPolicyQuota;

private Integer conditionsPerAKPolicyQuota;

public Integer getMFADevices() {
return this.mFADevices;
}
Expand Down Expand Up @@ -255,6 +259,22 @@ public Integer getMFADevicesInUse() {
public void setMFADevicesInUse(Integer mFADevicesInUse) {
this.mFADevicesInUse = mFADevicesInUse;
}

public Integer getIPItemsPerAKPolicyQuota() {
return this.iPItemsPerAKPolicyQuota;
}

public void setIPItemsPerAKPolicyQuota(Integer iPItemsPerAKPolicyQuota) {
this.iPItemsPerAKPolicyQuota = iPItemsPerAKPolicyQuota;
}

public Integer getConditionsPerAKPolicyQuota() {
return this.conditionsPerAKPolicyQuota;
}

public void setConditionsPerAKPolicyQuota(Integer conditionsPerAKPolicyQuota) {
this.conditionsPerAKPolicyQuota = conditionsPerAKPolicyQuota;
}
}

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

private String createDate;

private String autoDisableLoginStatus;

public String getStatus() {
return this.status;
}
Expand Down Expand Up @@ -115,6 +117,14 @@ public String getCreateDate() {
public void setCreateDate(String createDate) {
this.createDate = createDate;
}

public String getAutoDisableLoginStatus() {
return this.autoDisableLoginStatus;
}

public void setAutoDisableLoginStatus(String autoDisableLoginStatus) {
this.autoDisableLoginStatus = autoDisableLoginStatus;
}
}

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

private ApplicationLoginPreference applicationLoginPreference;

private MaxIdleDays maxIdleDays;

public AccessKeyPreference getAccessKeyPreference() {
return this.accessKeyPreference;
}
Expand Down Expand Up @@ -107,6 +109,14 @@ public void setApplicationLoginPreference(ApplicationLoginPreference application
this.applicationLoginPreference = applicationLoginPreference;
}

public MaxIdleDays getMaxIdleDays() {
return this.maxIdleDays;
}

public void setMaxIdleDays(MaxIdleDays maxIdleDays) {
this.maxIdleDays = maxIdleDays;
}

public static class AccessKeyPreference {

private Boolean allowUserToManageAccessKeys;
Expand Down Expand Up @@ -136,6 +146,8 @@ public static class LoginProfilePreference {

private String mFAOperationForLogin;

private Boolean allowUserToLoginWithPasskey;

public Boolean getEnableSaveMFATicket() {
return this.enableSaveMFATicket;
}
Expand Down Expand Up @@ -191,6 +203,14 @@ public String getMFAOperationForLogin() {
public void setMFAOperationForLogin(String mFAOperationForLogin) {
this.mFAOperationForLogin = mFAOperationForLogin;
}

public Boolean getAllowUserToLoginWithPasskey() {
return this.allowUserToLoginWithPasskey;
}

public void setAllowUserToLoginWithPasskey(Boolean allowUserToLoginWithPasskey) {
this.allowUserToLoginWithPasskey = allowUserToLoginWithPasskey;
}
}

public static class MFAPreference {
Expand Down Expand Up @@ -244,6 +264,29 @@ public void setAllowUserLongTermLogin(Boolean allowUserLongTermLogin) {
this.allowUserLongTermLogin = allowUserLongTermLogin;
}
}

public static class MaxIdleDays {

private Integer maxIdleDaysForUsers;

private Integer maxIdleDaysForAccessKeys;

public Integer getMaxIdleDaysForUsers() {
return this.maxIdleDaysForUsers;
}

public void setMaxIdleDaysForUsers(Integer maxIdleDaysForUsers) {
this.maxIdleDaysForUsers = maxIdleDaysForUsers;
}

public Integer getMaxIdleDaysForAccessKeys() {
return this.maxIdleDaysForAccessKeys;
}

public void setMaxIdleDaysForAccessKeys(Integer maxIdleDaysForAccessKeys) {
this.maxIdleDaysForAccessKeys = maxIdleDaysForAccessKeys;
}
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public class SetSecurityPreferenceRequest extends RpcAcsRequest<SetSecurityPrefe

private String operationForRiskLogin;

private Boolean allowUserToLoginWithPasskey;

private String mFAOperationForLogin;

private Boolean allowUserToManagePersonalDingTalk;
Expand Down Expand Up @@ -145,6 +147,17 @@ public void setOperationForRiskLogin(String operationForRiskLogin) {
}
}

public Boolean getAllowUserToLoginWithPasskey() {
return this.allowUserToLoginWithPasskey;
}

public void setAllowUserToLoginWithPasskey(Boolean allowUserToLoginWithPasskey) {
this.allowUserToLoginWithPasskey = allowUserToLoginWithPasskey;
if(allowUserToLoginWithPasskey != null){
putQueryParameter("AllowUserToLoginWithPasskey", allowUserToLoginWithPasskey.toString());
}
}

public String getMFAOperationForLogin() {
return this.mFAOperationForLogin;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public static class SecurityPreference {

private ApplicationLoginPreference applicationLoginPreference;

private MaxIdleDays maxIdleDays;

public AccessKeyPreference getAccessKeyPreference() {
return this.accessKeyPreference;
}
Expand Down Expand Up @@ -107,6 +109,14 @@ public void setApplicationLoginPreference(ApplicationLoginPreference application
this.applicationLoginPreference = applicationLoginPreference;
}

public MaxIdleDays getMaxIdleDays() {
return this.maxIdleDays;
}

public void setMaxIdleDays(MaxIdleDays maxIdleDays) {
this.maxIdleDays = maxIdleDays;
}

public static class AccessKeyPreference {

private Boolean allowUserToManageAccessKeys;
Expand Down Expand Up @@ -136,6 +146,8 @@ public static class LoginProfilePreference {

private String mFAOperationForLogin;

private Boolean allowUserToLoginWithPasskey;

public Boolean getEnableSaveMFATicket() {
return this.enableSaveMFATicket;
}
Expand Down Expand Up @@ -191,6 +203,14 @@ public String getMFAOperationForLogin() {
public void setMFAOperationForLogin(String mFAOperationForLogin) {
this.mFAOperationForLogin = mFAOperationForLogin;
}

public Boolean getAllowUserToLoginWithPasskey() {
return this.allowUserToLoginWithPasskey;
}

public void setAllowUserToLoginWithPasskey(Boolean allowUserToLoginWithPasskey) {
this.allowUserToLoginWithPasskey = allowUserToLoginWithPasskey;
}
}

public static class MFAPreference {
Expand Down Expand Up @@ -244,6 +264,29 @@ public void setAllowUserLongTermLogin(Boolean allowUserLongTermLogin) {
this.allowUserLongTermLogin = allowUserLongTermLogin;
}
}

public static class MaxIdleDays {

private Integer maxIdleDaysForUsers;

private Integer maxIdleDaysForAccessKeys;

public Integer getMaxIdleDaysForUsers() {
return this.maxIdleDaysForUsers;
}

public void setMaxIdleDaysForUsers(Integer maxIdleDaysForUsers) {
this.maxIdleDaysForUsers = maxIdleDaysForUsers;
}

public Integer getMaxIdleDaysForAccessKeys() {
return this.maxIdleDaysForAccessKeys;
}

public void setMaxIdleDaysForAccessKeys(Integer maxIdleDaysForAccessKeys) {
this.maxIdleDaysForAccessKeys = maxIdleDaysForAccessKeys;
}
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
public class TagResourcesRequest extends RpcAcsRequest<TagResourcesResponse> {


private List<String> resourceIds;
private List<Tag> tags;

private String resourceType;
private List<String> resourcePrincipalNames;

private List<Tag> tags;
private List<String> resourceIds;

private List<String> resourcePrincipalNames;
private String resourceType;
public TagResourcesRequest() {
super("Ims", "2019-08-15", "TagResources", "ims");
setMethod(MethodType.POST);
Expand All @@ -42,30 +42,6 @@ public TagResourcesRequest() {
} catch (Exception e) {}
}

public List<String> getResourceIds() {
return this.resourceIds;
}

public void setResourceIds(List<String> resourceIds) {
this.resourceIds = resourceIds;
if (resourceIds != null) {
for (int i = 0; i < resourceIds.size(); i++) {
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
}
}
}

public String getResourceType() {
return this.resourceType;
}

public void setResourceType(String resourceType) {
this.resourceType = resourceType;
if(resourceType != null){
putQueryParameter("ResourceType", resourceType);
}
}

public List<Tag> getTags() {
return this.tags;
}
Expand Down Expand Up @@ -93,6 +69,30 @@ public void setResourcePrincipalNames(List<String> resourcePrincipalNames) {
}
}

public List<String> getResourceIds() {
return this.resourceIds;
}

public void setResourceIds(List<String> resourceIds) {
this.resourceIds = resourceIds;
if (resourceIds != null) {
for (int i = 0; i < resourceIds.size(); i++) {
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
}
}
}

public String getResourceType() {
return this.resourceType;
}

public void setResourceType(String resourceType) {
this.resourceType = resourceType;
if(resourceType != null){
putQueryParameter("ResourceType", resourceType);
}
}

public static class Tag {

private String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public static class LoginProfile {

private String createDate;

private String autoDisableLoginStatus;

public String getUserPrincipalName() {
return this.userPrincipalName;
}
Expand Down Expand Up @@ -115,6 +117,14 @@ public String getCreateDate() {
public void setCreateDate(String createDate) {
this.createDate = createDate;
}

public String getAutoDisableLoginStatus() {
return this.autoDisableLoginStatus;
}

public void setAutoDisableLoginStatus(String autoDisableLoginStatus) {
this.autoDisableLoginStatus = autoDisableLoginStatus;
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public static GetAccountSummaryResponse unmarshall(GetAccountSummaryResponse get
summaryMap.setPolicies(_ctx.integerValue("GetAccountSummaryResponse.SummaryMap.Policies"));
summaryMap.setUsers(_ctx.integerValue("GetAccountSummaryResponse.SummaryMap.Users"));
summaryMap.setMFADevicesInUse(_ctx.integerValue("GetAccountSummaryResponse.SummaryMap.MFADevicesInUse"));
summaryMap.setIPItemsPerAKPolicyQuota(_ctx.integerValue("GetAccountSummaryResponse.SummaryMap.IPItemsPerAKPolicyQuota"));
summaryMap.setConditionsPerAKPolicyQuota(_ctx.integerValue("GetAccountSummaryResponse.SummaryMap.ConditionsPerAKPolicyQuota"));
getAccountSummaryResponse.setSummaryMap(summaryMap);

return getAccountSummaryResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static GetLoginProfileResponse unmarshall(GetLoginProfileResponse getLogi
loginProfile.setPasswordResetRequired(_ctx.booleanValue("GetLoginProfileResponse.LoginProfile.PasswordResetRequired"));
loginProfile.setMFABindRequired(_ctx.booleanValue("GetLoginProfileResponse.LoginProfile.MFABindRequired"));
loginProfile.setCreateDate(_ctx.stringValue("GetLoginProfileResponse.LoginProfile.CreateDate"));
loginProfile.setAutoDisableLoginStatus(_ctx.stringValue("GetLoginProfileResponse.LoginProfile.AutoDisableLoginStatus"));
getLoginProfileResponse.setLoginProfile(loginProfile);

return getLoginProfileResponse;
Expand Down
Loading

0 comments on commit ec156ad

Please sign in to comment.