From ec156adf4dfe2c6adc029195560edeb619364d6d Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 17 Jan 2025 07:33:20 +0000 Subject: [PATCH] UpdateLoginProfile/GetLoginProfile add response param AutoDisableLoginStatus --- aliyun-java-sdk-ims/ChangeLog.txt | 4 ++ aliyun-java-sdk-ims/pom.xml | 2 +- .../v20190815/GetAccountSummaryResponse.java | 20 +++++++ .../v20190815/GetLoginProfileResponse.java | 10 ++++ .../GetSecurityPreferenceResponse.java | 43 ++++++++++++++ .../SetSecurityPreferenceRequest.java | 13 +++++ .../SetSecurityPreferenceResponse.java | 43 ++++++++++++++ .../model/v20190815/TagResourcesRequest.java | 56 +++++++++---------- .../v20190815/UpdateLoginProfileResponse.java | 10 ++++ ...GetAccountSummaryResponseUnmarshaller.java | 2 + .../GetLoginProfileResponseUnmarshaller.java | 1 + ...ecurityPreferenceResponseUnmarshaller.java | 7 +++ ...ecurityPreferenceResponseUnmarshaller.java | 7 +++ ...pdateLoginProfileResponseUnmarshaller.java | 1 + 14 files changed, 190 insertions(+), 29 deletions(-) diff --git a/aliyun-java-sdk-ims/ChangeLog.txt b/aliyun-java-sdk-ims/ChangeLog.txt index 50be3e5efa..3721031bfa 100644 --- a/aliyun-java-sdk-ims/ChangeLog.txt +++ b/aliyun-java-sdk-ims/ChangeLog.txt @@ -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 diff --git a/aliyun-java-sdk-ims/pom.xml b/aliyun-java-sdk-ims/pom.xml index c7abb0e3ef..8f6b730922 100644 --- a/aliyun-java-sdk-ims/pom.xml +++ b/aliyun-java-sdk-ims/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-ims jar - 3.3.10 + 3.3.11 aliyun-java-sdk-ims http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetAccountSummaryResponse.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetAccountSummaryResponse.java index 90074c69dc..1d22bde6c3 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetAccountSummaryResponse.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetAccountSummaryResponse.java @@ -88,6 +88,10 @@ public static class SummaryMap { private Integer mFADevicesInUse; + private Integer iPItemsPerAKPolicyQuota; + + private Integer conditionsPerAKPolicyQuota; + public Integer getMFADevices() { return this.mFADevices; } @@ -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 diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetLoginProfileResponse.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetLoginProfileResponse.java index 30ebdb75d2..d1df5b620b 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetLoginProfileResponse.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetLoginProfileResponse.java @@ -60,6 +60,8 @@ public static class LoginProfile { private String createDate; + private String autoDisableLoginStatus; + public String getStatus() { return this.status; } @@ -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 diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetSecurityPreferenceResponse.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetSecurityPreferenceResponse.java index f78b91a42a..c2d48d129f 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetSecurityPreferenceResponse.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/GetSecurityPreferenceResponse.java @@ -59,6 +59,8 @@ public static class SecurityPreference { private ApplicationLoginPreference applicationLoginPreference; + private MaxIdleDays maxIdleDays; + public AccessKeyPreference getAccessKeyPreference() { return this.accessKeyPreference; } @@ -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; @@ -136,6 +146,8 @@ public static class LoginProfilePreference { private String mFAOperationForLogin; + private Boolean allowUserToLoginWithPasskey; + public Boolean getEnableSaveMFATicket() { return this.enableSaveMFATicket; } @@ -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 { @@ -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 diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/SetSecurityPreferenceRequest.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/SetSecurityPreferenceRequest.java index 1cf89641f2..b0ffa0aae6 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/SetSecurityPreferenceRequest.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/SetSecurityPreferenceRequest.java @@ -45,6 +45,8 @@ public class SetSecurityPreferenceRequest extends RpcAcsRequest { - private List resourceIds; + private List tags; - private String resourceType; + private List resourcePrincipalNames; - private List tags; + private List resourceIds; - private List resourcePrincipalNames; + private String resourceType; public TagResourcesRequest() { super("Ims", "2019-08-15", "TagResources", "ims"); setMethod(MethodType.POST); @@ -42,30 +42,6 @@ public TagResourcesRequest() { } catch (Exception e) {} } - public List getResourceIds() { - return this.resourceIds; - } - - public void setResourceIds(List 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 getTags() { return this.tags; } @@ -93,6 +69,30 @@ public void setResourcePrincipalNames(List resourcePrincipalNames) { } } + public List getResourceIds() { + return this.resourceIds; + } + + public void setResourceIds(List 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; diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/UpdateLoginProfileResponse.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/UpdateLoginProfileResponse.java index 859746d834..f343ec59de 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/UpdateLoginProfileResponse.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/model/v20190815/UpdateLoginProfileResponse.java @@ -60,6 +60,8 @@ public static class LoginProfile { private String createDate; + private String autoDisableLoginStatus; + public String getUserPrincipalName() { return this.userPrincipalName; } @@ -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 diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetAccountSummaryResponseUnmarshaller.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetAccountSummaryResponseUnmarshaller.java index 3f2f63bbb3..08c8a4dde9 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetAccountSummaryResponseUnmarshaller.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetAccountSummaryResponseUnmarshaller.java @@ -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; diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetLoginProfileResponseUnmarshaller.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetLoginProfileResponseUnmarshaller.java index d91e1933b9..57d4647eea 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetLoginProfileResponseUnmarshaller.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetLoginProfileResponseUnmarshaller.java @@ -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; diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetSecurityPreferenceResponseUnmarshaller.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetSecurityPreferenceResponseUnmarshaller.java index 85fd9a02de..2c173a0f2b 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetSecurityPreferenceResponseUnmarshaller.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/GetSecurityPreferenceResponseUnmarshaller.java @@ -23,6 +23,7 @@ import com.aliyuncs.ims.model.v20190815.GetSecurityPreferenceResponse.SecurityPreference.ApplicationLoginPreference; import com.aliyuncs.ims.model.v20190815.GetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference; import com.aliyuncs.ims.model.v20190815.GetSecurityPreferenceResponse.SecurityPreference.MFAPreference; +import com.aliyuncs.ims.model.v20190815.GetSecurityPreferenceResponse.SecurityPreference.MaxIdleDays; import com.aliyuncs.ims.model.v20190815.GetSecurityPreferenceResponse.SecurityPreference.PersonalInfoPreference; import com.aliyuncs.ims.model.v20190815.GetSecurityPreferenceResponse.SecurityPreference.VerificationPreference; import com.aliyuncs.transform.UnmarshallerContext; @@ -48,6 +49,7 @@ public static GetSecurityPreferenceResponse unmarshall(GetSecurityPreferenceResp loginProfilePreference.setEnforceMFAForLogin(_ctx.booleanValue("GetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference.EnforceMFAForLogin")); loginProfilePreference.setOperationForRiskLogin(_ctx.stringValue("GetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference.OperationForRiskLogin")); loginProfilePreference.setMFAOperationForLogin(_ctx.stringValue("GetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference.MFAOperationForLogin")); + loginProfilePreference.setAllowUserToLoginWithPasskey(_ctx.booleanValue("GetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference.AllowUserToLoginWithPasskey")); securityPreference.setLoginProfilePreference(loginProfilePreference); MFAPreference mFAPreference = new MFAPreference(); @@ -70,6 +72,11 @@ public static GetSecurityPreferenceResponse unmarshall(GetSecurityPreferenceResp ApplicationLoginPreference applicationLoginPreference = new ApplicationLoginPreference(); applicationLoginPreference.setAllowUserLongTermLogin(_ctx.booleanValue("GetSecurityPreferenceResponse.SecurityPreference.ApplicationLoginPreference.AllowUserLongTermLogin")); securityPreference.setApplicationLoginPreference(applicationLoginPreference); + + MaxIdleDays maxIdleDays = new MaxIdleDays(); + maxIdleDays.setMaxIdleDaysForUsers(_ctx.integerValue("GetSecurityPreferenceResponse.SecurityPreference.MaxIdleDays.MaxIdleDaysForUsers")); + maxIdleDays.setMaxIdleDaysForAccessKeys(_ctx.integerValue("GetSecurityPreferenceResponse.SecurityPreference.MaxIdleDays.MaxIdleDaysForAccessKeys")); + securityPreference.setMaxIdleDays(maxIdleDays); getSecurityPreferenceResponse.setSecurityPreference(securityPreference); return getSecurityPreferenceResponse; diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/SetSecurityPreferenceResponseUnmarshaller.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/SetSecurityPreferenceResponseUnmarshaller.java index b7a1945acd..1d188ce57c 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/SetSecurityPreferenceResponseUnmarshaller.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/SetSecurityPreferenceResponseUnmarshaller.java @@ -23,6 +23,7 @@ import com.aliyuncs.ims.model.v20190815.SetSecurityPreferenceResponse.SecurityPreference.ApplicationLoginPreference; import com.aliyuncs.ims.model.v20190815.SetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference; import com.aliyuncs.ims.model.v20190815.SetSecurityPreferenceResponse.SecurityPreference.MFAPreference; +import com.aliyuncs.ims.model.v20190815.SetSecurityPreferenceResponse.SecurityPreference.MaxIdleDays; import com.aliyuncs.ims.model.v20190815.SetSecurityPreferenceResponse.SecurityPreference.PersonalInfoPreference; import com.aliyuncs.ims.model.v20190815.SetSecurityPreferenceResponse.SecurityPreference.VerificationPreference; import com.aliyuncs.transform.UnmarshallerContext; @@ -48,6 +49,7 @@ public static SetSecurityPreferenceResponse unmarshall(SetSecurityPreferenceResp loginProfilePreference.setEnforceMFAForLogin(_ctx.booleanValue("SetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference.EnforceMFAForLogin")); loginProfilePreference.setOperationForRiskLogin(_ctx.stringValue("SetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference.OperationForRiskLogin")); loginProfilePreference.setMFAOperationForLogin(_ctx.stringValue("SetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference.MFAOperationForLogin")); + loginProfilePreference.setAllowUserToLoginWithPasskey(_ctx.booleanValue("SetSecurityPreferenceResponse.SecurityPreference.LoginProfilePreference.AllowUserToLoginWithPasskey")); securityPreference.setLoginProfilePreference(loginProfilePreference); MFAPreference mFAPreference = new MFAPreference(); @@ -70,6 +72,11 @@ public static SetSecurityPreferenceResponse unmarshall(SetSecurityPreferenceResp ApplicationLoginPreference applicationLoginPreference = new ApplicationLoginPreference(); applicationLoginPreference.setAllowUserLongTermLogin(_ctx.booleanValue("SetSecurityPreferenceResponse.SecurityPreference.ApplicationLoginPreference.AllowUserLongTermLogin")); securityPreference.setApplicationLoginPreference(applicationLoginPreference); + + MaxIdleDays maxIdleDays = new MaxIdleDays(); + maxIdleDays.setMaxIdleDaysForUsers(_ctx.integerValue("SetSecurityPreferenceResponse.SecurityPreference.MaxIdleDays.MaxIdleDaysForUsers")); + maxIdleDays.setMaxIdleDaysForAccessKeys(_ctx.integerValue("SetSecurityPreferenceResponse.SecurityPreference.MaxIdleDays.MaxIdleDaysForAccessKeys")); + securityPreference.setMaxIdleDays(maxIdleDays); setSecurityPreferenceResponse.setSecurityPreference(securityPreference); return setSecurityPreferenceResponse; diff --git a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/UpdateLoginProfileResponseUnmarshaller.java b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/UpdateLoginProfileResponseUnmarshaller.java index fd425e0863..e99ee0dd53 100644 --- a/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/UpdateLoginProfileResponseUnmarshaller.java +++ b/aliyun-java-sdk-ims/src/main/java/com/aliyuncs/ims/transform/v20190815/UpdateLoginProfileResponseUnmarshaller.java @@ -33,6 +33,7 @@ public static UpdateLoginProfileResponse unmarshall(UpdateLoginProfileResponse u loginProfile.setPasswordResetRequired(_ctx.booleanValue("UpdateLoginProfileResponse.LoginProfile.PasswordResetRequired")); loginProfile.setMFABindRequired(_ctx.booleanValue("UpdateLoginProfileResponse.LoginProfile.MFABindRequired")); loginProfile.setCreateDate(_ctx.stringValue("UpdateLoginProfileResponse.LoginProfile.CreateDate")); + loginProfile.setAutoDisableLoginStatus(_ctx.stringValue("UpdateLoginProfileResponse.LoginProfile.AutoDisableLoginStatus")); updateLoginProfileResponse.setLoginProfile(loginProfile); return updateLoginProfileResponse;