diff --git a/aliyun-java-sdk-eiam/ChangeLog.txt b/aliyun-java-sdk-eiam/ChangeLog.txt index ee21d6ab72..9856702d5a 100644 --- a/aliyun-java-sdk-eiam/ChangeLog.txt +++ b/aliyun-java-sdk-eiam/ChangeLog.txt @@ -1,3 +1,6 @@ +2025-01-09 Version: 1.0.9 +- Supported GetInstanceLicense. + 2024-11-01 Version: 1.0.8 - Support API DeleteOrganizationalUnitChildren. - Update API CreateOrganizationalUnit: update param OrganizationalUnitName Max Length. diff --git a/aliyun-java-sdk-eiam/pom.xml b/aliyun-java-sdk-eiam/pom.xml index bcf19344c4..15e68772d6 100644 --- a/aliyun-java-sdk-eiam/pom.xml +++ b/aliyun-java-sdk-eiam/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-eiam jar - 1.0.8 + 1.0.9 aliyun-java-sdk-eiam http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/CreateIdentityProviderRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/CreateIdentityProviderRequest.java new file mode 100644 index 0000000000..4b48b3fdcb --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/CreateIdentityProviderRequest.java @@ -0,0 +1,1037 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class CreateIdentityProviderRequest extends RpcAcsRequest { + + + private DingtalkAppConfig dingtalkAppConfig; + + private String networkAccessEndpointId; + + private AutoUpdateUserConfig autoUpdateUserConfig; + + private String logoUrl; + + private UdPullConfig udPullConfig; + + private LarkConfig larkConfig; + + private WeComConfig weComConfig; + + private AutoCreateUserConfig autoCreateUserConfig; + + private AuthnConfig authnConfig; + + private BindingConfig bindingConfig; + + private String identityProviderName; + + private LdapConfig ldapConfig; + + private String instanceId; + + private UdPushConfig udPushConfig; + + private String identityProviderType; + + private OidcConfig oidcConfig; + public CreateIdentityProviderRequest() { + super("Eiam", "2021-12-01", "CreateIdentityProvider", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public DingtalkAppConfig getDingtalkAppConfig() { + return this.dingtalkAppConfig; + } + + public void setDingtalkAppConfig(DingtalkAppConfig dingtalkAppConfig) { + this.dingtalkAppConfig = dingtalkAppConfig; + if (dingtalkAppConfig != null) { + + putQueryParameter("DingtalkAppConfig.CorpId" , dingtalkAppConfig.getCorpId()); + putQueryParameter("DingtalkAppConfig.DingtalkVersion" , dingtalkAppConfig.getDingtalkVersion()); + putQueryParameter("DingtalkAppConfig.AppSecret" , dingtalkAppConfig.getAppSecret()); + putQueryParameter("DingtalkAppConfig.AppKey" , dingtalkAppConfig.getAppKey()); + } + } + + public String getNetworkAccessEndpointId() { + return this.networkAccessEndpointId; + } + + public void setNetworkAccessEndpointId(String networkAccessEndpointId) { + this.networkAccessEndpointId = networkAccessEndpointId; + if(networkAccessEndpointId != null){ + putQueryParameter("NetworkAccessEndpointId", networkAccessEndpointId); + } + } + + public AutoUpdateUserConfig getAutoUpdateUserConfig() { + return this.autoUpdateUserConfig; + } + + public void setAutoUpdateUserConfig(AutoUpdateUserConfig autoUpdateUserConfig) { + this.autoUpdateUserConfig = autoUpdateUserConfig; + if (autoUpdateUserConfig != null) { + + putQueryParameter("AutoUpdateUserConfig.AutoUpdateUserStatus" , autoUpdateUserConfig.getAutoUpdateUserStatus()); + } + } + + public String getLogoUrl() { + return this.logoUrl; + } + + public void setLogoUrl(String logoUrl) { + this.logoUrl = logoUrl; + if(logoUrl != null){ + putQueryParameter("LogoUrl", logoUrl); + } + } + + public UdPullConfig getUdPullConfig() { + return this.udPullConfig; + } + + public void setUdPullConfig(UdPullConfig udPullConfig) { + this.udPullConfig = udPullConfig; + if (udPullConfig != null) { + + putQueryParameter("UdPullConfig.GroupSyncStatus" , udPullConfig.getGroupSyncStatus()); + if (udPullConfig.getUdSyncScopeConfig() != null) { + + putQueryParameter("UdPullConfig.UdSyncScopeConfig.TargetScope" , udPullConfig.getUdSyncScopeConfig().getTargetScope()); + if (udPullConfig.getUdSyncScopeConfig().getSourceScopes() != null) { + for (int depth1 = 0; depth1 < udPullConfig.getUdSyncScopeConfig().getSourceScopes().size(); depth1++) { + putQueryParameter("UdPullConfig.UdSyncScopeConfig.SourceScopes." + (depth1 + 1) , udPullConfig.getUdSyncScopeConfig().getSourceScopes().get(depth1)); + } + } + } + putQueryParameter("UdPullConfig.PeriodicSyncStatus" , udPullConfig.getPeriodicSyncStatus()); + putQueryParameter("UdPullConfig.IncrementalCallbackStatus" , udPullConfig.getIncrementalCallbackStatus()); + } + } + + public LarkConfig getLarkConfig() { + return this.larkConfig; + } + + public void setLarkConfig(LarkConfig larkConfig) { + this.larkConfig = larkConfig; + if (larkConfig != null) { + + putQueryParameter("LarkConfig.EnterpriseNumber" , larkConfig.getEnterpriseNumber()); + putQueryParameter("LarkConfig.AppId" , larkConfig.getAppId()); + putQueryParameter("LarkConfig.AppSecret" , larkConfig.getAppSecret()); + } + } + + public WeComConfig getWeComConfig() { + return this.weComConfig; + } + + public void setWeComConfig(WeComConfig weComConfig) { + this.weComConfig = weComConfig; + if (weComConfig != null) { + + putQueryParameter("WeComConfig.AgentId" , weComConfig.getAgentId()); + putQueryParameter("WeComConfig.CorpId" , weComConfig.getCorpId()); + putQueryParameter("WeComConfig.CorpSecret" , weComConfig.getCorpSecret()); + putQueryParameter("WeComConfig.AuthorizeCallbackDomain" , weComConfig.getAuthorizeCallbackDomain()); + putQueryParameter("WeComConfig.TrustableDomain" , weComConfig.getTrustableDomain()); + } + } + + public AutoCreateUserConfig getAutoCreateUserConfig() { + return this.autoCreateUserConfig; + } + + public void setAutoCreateUserConfig(AutoCreateUserConfig autoCreateUserConfig) { + this.autoCreateUserConfig = autoCreateUserConfig; + if (autoCreateUserConfig != null) { + + putQueryParameter("AutoCreateUserConfig.AutoCreateUserStatus" , autoCreateUserConfig.getAutoCreateUserStatus()); + if (autoCreateUserConfig.getTargetOrganizationalUnitIds() != null) { + for (int depth1 = 0; depth1 < autoCreateUserConfig.getTargetOrganizationalUnitIds().size(); depth1++) { + putQueryParameter("AutoCreateUserConfig.TargetOrganizationalUnitIds." + (depth1 + 1) , autoCreateUserConfig.getTargetOrganizationalUnitIds().get(depth1)); + } + } + } + } + + public AuthnConfig getAuthnConfig() { + return this.authnConfig; + } + + public void setAuthnConfig(AuthnConfig authnConfig) { + this.authnConfig = authnConfig; + if (authnConfig != null) { + + putQueryParameter("AuthnConfig.AuthnStatus" , authnConfig.getAuthnStatus()); + putQueryParameter("AuthnConfig.AutoUpdatePasswordStatus" , authnConfig.getAutoUpdatePasswordStatus()); + } + } + + public BindingConfig getBindingConfig() { + return this.bindingConfig; + } + + public void setBindingConfig(BindingConfig bindingConfig) { + this.bindingConfig = bindingConfig; + if (bindingConfig != null) { + + if (bindingConfig.getAutoMatchUserProfileExpressions() != null) { + for (int depth1 = 0; depth1 < bindingConfig.getAutoMatchUserProfileExpressions().size(); depth1++) { + if (bindingConfig.getAutoMatchUserProfileExpressions().get(depth1) != null) { + + putQueryParameter("BindingConfig.AutoMatchUserProfileExpressions." + (depth1 + 1) + ".SourceValueExpression" , bindingConfig.getAutoMatchUserProfileExpressions().get(depth1).getSourceValueExpression()); + putQueryParameter("BindingConfig.AutoMatchUserProfileExpressions." + (depth1 + 1) + ".TargetFieldDescription" , bindingConfig.getAutoMatchUserProfileExpressions().get(depth1).getTargetFieldDescription()); + putQueryParameter("BindingConfig.AutoMatchUserProfileExpressions." + (depth1 + 1) + ".TargetField" , bindingConfig.getAutoMatchUserProfileExpressions().get(depth1).getTargetField()); + putQueryParameter("BindingConfig.AutoMatchUserProfileExpressions." + (depth1 + 1) + ".ExpressionMappingType" , bindingConfig.getAutoMatchUserProfileExpressions().get(depth1).getExpressionMappingType()); + } + } + } + putQueryParameter("BindingConfig.MappingBindingStatus" , bindingConfig.getMappingBindingStatus()); + putQueryParameter("BindingConfig.AutoMatchUserStatus" , bindingConfig.getAutoMatchUserStatus()); + } + } + + public String getIdentityProviderName() { + return this.identityProviderName; + } + + public void setIdentityProviderName(String identityProviderName) { + this.identityProviderName = identityProviderName; + if(identityProviderName != null){ + putQueryParameter("IdentityProviderName", identityProviderName); + } + } + + public LdapConfig getLdapConfig() { + return this.ldapConfig; + } + + public void setLdapConfig(LdapConfig ldapConfig) { + this.ldapConfig = ldapConfig; + if (ldapConfig != null) { + + putQueryParameter("LdapConfig.GroupMemberAttributeName" , ldapConfig.getGroupMemberAttributeName()); + putQueryParameter("LdapConfig.StartTlsStatus" , ldapConfig.getStartTlsStatus()); + putQueryParameter("LdapConfig.LdapServerHost" , ldapConfig.getLdapServerHost()); + putQueryParameter("LdapConfig.GroupObjectClass" , ldapConfig.getGroupObjectClass()); + putQueryParameter("LdapConfig.UserObjectClass" , ldapConfig.getUserObjectClass()); + putQueryParameter("LdapConfig.UserObjectClassCustomFilter" , ldapConfig.getUserObjectClassCustomFilter()); + if (ldapConfig.getCertificateFingerprints() != null) { + for (int depth1 = 0; depth1 < ldapConfig.getCertificateFingerprints().size(); depth1++) { + putQueryParameter("LdapConfig.CertificateFingerprints." + (depth1 + 1) , ldapConfig.getCertificateFingerprints().get(depth1)); + } + } + putQueryParameter("LdapConfig.LdapProtocol" , ldapConfig.getLdapProtocol()); + putQueryParameter("LdapConfig.GroupObjectClassCustomFilter" , ldapConfig.getGroupObjectClassCustomFilter()); + putQueryParameter("LdapConfig.OrganizationUnitObjectClass" , ldapConfig.getOrganizationUnitObjectClass()); + putQueryParameter("LdapConfig.AdministratorUsername" , ldapConfig.getAdministratorUsername()); + putQueryParameter("LdapConfig.UserLoginIdentifier" , ldapConfig.getUserLoginIdentifier()); + putQueryParameter("LdapConfig.AdministratorPassword" , ldapConfig.getAdministratorPassword()); + putQueryParameter("LdapConfig.CertificateFingerprintStatus" , ldapConfig.getCertificateFingerprintStatus()); + putQueryParameter("LdapConfig.LdapServerPort" , ldapConfig.getLdapServerPort()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public UdPushConfig getUdPushConfig() { + return this.udPushConfig; + } + + public void setUdPushConfig(UdPushConfig udPushConfig) { + this.udPushConfig = udPushConfig; + if (udPushConfig != null) { + + putQueryParameter("UdPushConfig.PeriodicSyncStatus" , udPushConfig.getPeriodicSyncStatus()); + putQueryParameter("UdPushConfig.IncrementalCallbackStatus" , udPushConfig.getIncrementalCallbackStatus()); + if (udPushConfig.getUdSyncScopeConfigs() != null) { + for (int depth1 = 0; depth1 < udPushConfig.getUdSyncScopeConfigs().size(); depth1++) { + if (udPushConfig.getUdSyncScopeConfigs().get(depth1) != null) { + + putQueryParameter("UdPushConfig.UdSyncScopeConfigs." + (depth1 + 1) + ".TargetScope" , udPushConfig.getUdSyncScopeConfigs().get(depth1).getTargetScope()); + if (udPushConfig.getUdSyncScopeConfigs().get(depth1).getSourceScopes() != null) { + for (int depth2 = 0; depth2 < udPushConfig.getUdSyncScopeConfigs().get(depth1).getSourceScopes().size(); depth2++) { + putQueryParameter("UdPushConfig.UdSyncScopeConfigs." + (depth1 + 1) + ".SourceScopes." + (depth2 + 1) , udPushConfig.getUdSyncScopeConfigs().get(depth1).getSourceScopes().get(depth2)); + } + } + } + } + } + } + } + + public String getIdentityProviderType() { + return this.identityProviderType; + } + + public void setIdentityProviderType(String identityProviderType) { + this.identityProviderType = identityProviderType; + if(identityProviderType != null){ + putQueryParameter("IdentityProviderType", identityProviderType); + } + } + + public OidcConfig getOidcConfig() { + return this.oidcConfig; + } + + public void setOidcConfig(OidcConfig oidcConfig) { + this.oidcConfig = oidcConfig; + if (oidcConfig != null) { + + if (oidcConfig.getGrantScopes() != null) { + for (int depth1 = 0; depth1 < oidcConfig.getGrantScopes().size(); depth1++) { + putQueryParameter("OidcConfig.GrantScopes." + (depth1 + 1) , oidcConfig.getGrantScopes().get(depth1)); + } + } + if (oidcConfig.getEndpointConfig() != null) { + + putQueryParameter("OidcConfig.EndpointConfig.UserinfoEndpoint" , oidcConfig.getEndpointConfig().getUserinfoEndpoint()); + putQueryParameter("OidcConfig.EndpointConfig.AuthorizationEndpoint" , oidcConfig.getEndpointConfig().getAuthorizationEndpoint()); + putQueryParameter("OidcConfig.EndpointConfig.JwksUri" , oidcConfig.getEndpointConfig().getJwksUri()); + putQueryParameter("OidcConfig.EndpointConfig.TokenEndpoint" , oidcConfig.getEndpointConfig().getTokenEndpoint()); + putQueryParameter("OidcConfig.EndpointConfig.Issuer" , oidcConfig.getEndpointConfig().getIssuer()); + } + putQueryParameter("OidcConfig.PkceChallengeMethod" , oidcConfig.getPkceChallengeMethod()); + putQueryParameter("OidcConfig.PkceRequired" , oidcConfig.getPkceRequired()); + if (oidcConfig.getAuthnParam() != null) { + + putQueryParameter("OidcConfig.AuthnParam.ClientId" , oidcConfig.getAuthnParam().getClientId()); + putQueryParameter("OidcConfig.AuthnParam.ClientSecret" , oidcConfig.getAuthnParam().getClientSecret()); + putQueryParameter("OidcConfig.AuthnParam.AuthnMethod" , oidcConfig.getAuthnParam().getAuthnMethod()); + } + putQueryParameter("OidcConfig.GrantType" , oidcConfig.getGrantType()); + } + } + + public static class DingtalkAppConfig { + + private String corpId; + + private String dingtalkVersion; + + private String appSecret; + + private String appKey; + + public String getCorpId() { + return this.corpId; + } + + public void setCorpId(String corpId) { + this.corpId = corpId; + } + + public String getDingtalkVersion() { + return this.dingtalkVersion; + } + + public void setDingtalkVersion(String dingtalkVersion) { + this.dingtalkVersion = dingtalkVersion; + } + + public String getAppSecret() { + return this.appSecret; + } + + public void setAppSecret(String appSecret) { + this.appSecret = appSecret; + } + + public String getAppKey() { + return this.appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + } + + public static class AutoUpdateUserConfig { + + private String autoUpdateUserStatus; + + public String getAutoUpdateUserStatus() { + return this.autoUpdateUserStatus; + } + + public void setAutoUpdateUserStatus(String autoUpdateUserStatus) { + this.autoUpdateUserStatus = autoUpdateUserStatus; + } + } + + public static class UdPullConfig { + + private String groupSyncStatus; + + private UdSyncScopeConfig udSyncScopeConfig; + + private String periodicSyncStatus; + + private String incrementalCallbackStatus; + + public String getGroupSyncStatus() { + return this.groupSyncStatus; + } + + public void setGroupSyncStatus(String groupSyncStatus) { + this.groupSyncStatus = groupSyncStatus; + } + + public UdSyncScopeConfig getUdSyncScopeConfig() { + return this.udSyncScopeConfig; + } + + public void setUdSyncScopeConfig(UdSyncScopeConfig udSyncScopeConfig) { + this.udSyncScopeConfig = udSyncScopeConfig; + } + + public String getPeriodicSyncStatus() { + return this.periodicSyncStatus; + } + + public void setPeriodicSyncStatus(String periodicSyncStatus) { + this.periodicSyncStatus = periodicSyncStatus; + } + + public String getIncrementalCallbackStatus() { + return this.incrementalCallbackStatus; + } + + public void setIncrementalCallbackStatus(String incrementalCallbackStatus) { + this.incrementalCallbackStatus = incrementalCallbackStatus; + } + + public static class UdSyncScopeConfig { + + private String targetScope; + + private List sourceScopes; + + public String getTargetScope() { + return this.targetScope; + } + + public void setTargetScope(String targetScope) { + this.targetScope = targetScope; + } + + public List getSourceScopes() { + return this.sourceScopes; + } + + public void setSourceScopes(List sourceScopes) { + this.sourceScopes = sourceScopes; + } + } + } + + public static class LarkConfig { + + private String enterpriseNumber; + + private String appId; + + private String appSecret; + + public String getEnterpriseNumber() { + return this.enterpriseNumber; + } + + public void setEnterpriseNumber(String enterpriseNumber) { + this.enterpriseNumber = enterpriseNumber; + } + + public String getAppId() { + return this.appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getAppSecret() { + return this.appSecret; + } + + public void setAppSecret(String appSecret) { + this.appSecret = appSecret; + } + } + + public static class WeComConfig { + + private String agentId; + + private String corpId; + + private String corpSecret; + + private String authorizeCallbackDomain; + + private String trustableDomain; + + public String getAgentId() { + return this.agentId; + } + + public void setAgentId(String agentId) { + this.agentId = agentId; + } + + public String getCorpId() { + return this.corpId; + } + + public void setCorpId(String corpId) { + this.corpId = corpId; + } + + public String getCorpSecret() { + return this.corpSecret; + } + + public void setCorpSecret(String corpSecret) { + this.corpSecret = corpSecret; + } + + public String getAuthorizeCallbackDomain() { + return this.authorizeCallbackDomain; + } + + public void setAuthorizeCallbackDomain(String authorizeCallbackDomain) { + this.authorizeCallbackDomain = authorizeCallbackDomain; + } + + public String getTrustableDomain() { + return this.trustableDomain; + } + + public void setTrustableDomain(String trustableDomain) { + this.trustableDomain = trustableDomain; + } + } + + public static class AutoCreateUserConfig { + + private String autoCreateUserStatus; + + private List targetOrganizationalUnitIds; + + public String getAutoCreateUserStatus() { + return this.autoCreateUserStatus; + } + + public void setAutoCreateUserStatus(String autoCreateUserStatus) { + this.autoCreateUserStatus = autoCreateUserStatus; + } + + public List getTargetOrganizationalUnitIds() { + return this.targetOrganizationalUnitIds; + } + + public void setTargetOrganizationalUnitIds(List targetOrganizationalUnitIds) { + this.targetOrganizationalUnitIds = targetOrganizationalUnitIds; + } + } + + public static class AuthnConfig { + + private String authnStatus; + + private String autoUpdatePasswordStatus; + + public String getAuthnStatus() { + return this.authnStatus; + } + + public void setAuthnStatus(String authnStatus) { + this.authnStatus = authnStatus; + } + + public String getAutoUpdatePasswordStatus() { + return this.autoUpdatePasswordStatus; + } + + public void setAutoUpdatePasswordStatus(String autoUpdatePasswordStatus) { + this.autoUpdatePasswordStatus = autoUpdatePasswordStatus; + } + } + + public static class BindingConfig { + + private List autoMatchUserProfileExpressions; + + private String mappingBindingStatus; + + private String autoMatchUserStatus; + + public List getAutoMatchUserProfileExpressions() { + return this.autoMatchUserProfileExpressions; + } + + public void setAutoMatchUserProfileExpressions(List autoMatchUserProfileExpressions) { + this.autoMatchUserProfileExpressions = autoMatchUserProfileExpressions; + } + + public String getMappingBindingStatus() { + return this.mappingBindingStatus; + } + + public void setMappingBindingStatus(String mappingBindingStatus) { + this.mappingBindingStatus = mappingBindingStatus; + } + + public String getAutoMatchUserStatus() { + return this.autoMatchUserStatus; + } + + public void setAutoMatchUserStatus(String autoMatchUserStatus) { + this.autoMatchUserStatus = autoMatchUserStatus; + } + + public static class AutoMatchUserProfileExpressionsItem { + + private String sourceValueExpression; + + private String targetFieldDescription; + + private String targetField; + + private String expressionMappingType; + + public String getSourceValueExpression() { + return this.sourceValueExpression; + } + + public void setSourceValueExpression(String sourceValueExpression) { + this.sourceValueExpression = sourceValueExpression; + } + + public String getTargetFieldDescription() { + return this.targetFieldDescription; + } + + public void setTargetFieldDescription(String targetFieldDescription) { + this.targetFieldDescription = targetFieldDescription; + } + + public String getTargetField() { + return this.targetField; + } + + public void setTargetField(String targetField) { + this.targetField = targetField; + } + + public String getExpressionMappingType() { + return this.expressionMappingType; + } + + public void setExpressionMappingType(String expressionMappingType) { + this.expressionMappingType = expressionMappingType; + } + } + } + + public static class LdapConfig { + + private String groupMemberAttributeName; + + private String startTlsStatus; + + private String ldapServerHost; + + private String groupObjectClass; + + private String userObjectClass; + + private String userObjectClassCustomFilter; + + private List certificateFingerprints; + + private String ldapProtocol; + + private String groupObjectClassCustomFilter; + + private String organizationUnitObjectClass; + + private String administratorUsername; + + private String userLoginIdentifier; + + private String administratorPassword; + + private String certificateFingerprintStatus; + + private Integer ldapServerPort; + + public String getGroupMemberAttributeName() { + return this.groupMemberAttributeName; + } + + public void setGroupMemberAttributeName(String groupMemberAttributeName) { + this.groupMemberAttributeName = groupMemberAttributeName; + } + + public String getStartTlsStatus() { + return this.startTlsStatus; + } + + public void setStartTlsStatus(String startTlsStatus) { + this.startTlsStatus = startTlsStatus; + } + + public String getLdapServerHost() { + return this.ldapServerHost; + } + + public void setLdapServerHost(String ldapServerHost) { + this.ldapServerHost = ldapServerHost; + } + + public String getGroupObjectClass() { + return this.groupObjectClass; + } + + public void setGroupObjectClass(String groupObjectClass) { + this.groupObjectClass = groupObjectClass; + } + + public String getUserObjectClass() { + return this.userObjectClass; + } + + public void setUserObjectClass(String userObjectClass) { + this.userObjectClass = userObjectClass; + } + + public String getUserObjectClassCustomFilter() { + return this.userObjectClassCustomFilter; + } + + public void setUserObjectClassCustomFilter(String userObjectClassCustomFilter) { + this.userObjectClassCustomFilter = userObjectClassCustomFilter; + } + + public List getCertificateFingerprints() { + return this.certificateFingerprints; + } + + public void setCertificateFingerprints(List certificateFingerprints) { + this.certificateFingerprints = certificateFingerprints; + } + + public String getLdapProtocol() { + return this.ldapProtocol; + } + + public void setLdapProtocol(String ldapProtocol) { + this.ldapProtocol = ldapProtocol; + } + + public String getGroupObjectClassCustomFilter() { + return this.groupObjectClassCustomFilter; + } + + public void setGroupObjectClassCustomFilter(String groupObjectClassCustomFilter) { + this.groupObjectClassCustomFilter = groupObjectClassCustomFilter; + } + + public String getOrganizationUnitObjectClass() { + return this.organizationUnitObjectClass; + } + + public void setOrganizationUnitObjectClass(String organizationUnitObjectClass) { + this.organizationUnitObjectClass = organizationUnitObjectClass; + } + + public String getAdministratorUsername() { + return this.administratorUsername; + } + + public void setAdministratorUsername(String administratorUsername) { + this.administratorUsername = administratorUsername; + } + + public String getUserLoginIdentifier() { + return this.userLoginIdentifier; + } + + public void setUserLoginIdentifier(String userLoginIdentifier) { + this.userLoginIdentifier = userLoginIdentifier; + } + + public String getAdministratorPassword() { + return this.administratorPassword; + } + + public void setAdministratorPassword(String administratorPassword) { + this.administratorPassword = administratorPassword; + } + + public String getCertificateFingerprintStatus() { + return this.certificateFingerprintStatus; + } + + public void setCertificateFingerprintStatus(String certificateFingerprintStatus) { + this.certificateFingerprintStatus = certificateFingerprintStatus; + } + + public Integer getLdapServerPort() { + return this.ldapServerPort; + } + + public void setLdapServerPort(Integer ldapServerPort) { + this.ldapServerPort = ldapServerPort; + } + } + + public static class UdPushConfig { + + private String periodicSyncStatus; + + private String incrementalCallbackStatus; + + private List udSyncScopeConfigs; + + public String getPeriodicSyncStatus() { + return this.periodicSyncStatus; + } + + public void setPeriodicSyncStatus(String periodicSyncStatus) { + this.periodicSyncStatus = periodicSyncStatus; + } + + public String getIncrementalCallbackStatus() { + return this.incrementalCallbackStatus; + } + + public void setIncrementalCallbackStatus(String incrementalCallbackStatus) { + this.incrementalCallbackStatus = incrementalCallbackStatus; + } + + public List getUdSyncScopeConfigs() { + return this.udSyncScopeConfigs; + } + + public void setUdSyncScopeConfigs(List udSyncScopeConfigs) { + this.udSyncScopeConfigs = udSyncScopeConfigs; + } + + public static class UdSyncScopeConfigsItem { + + private String targetScope; + + private List sourceScopes; + + public String getTargetScope() { + return this.targetScope; + } + + public void setTargetScope(String targetScope) { + this.targetScope = targetScope; + } + + public List getSourceScopes() { + return this.sourceScopes; + } + + public void setSourceScopes(List sourceScopes) { + this.sourceScopes = sourceScopes; + } + } + } + + public static class OidcConfig { + + private List grantScopes; + + private EndpointConfig endpointConfig; + + private String pkceChallengeMethod; + + private Boolean pkceRequired; + + private AuthnParam authnParam; + + private String grantType; + + public List getGrantScopes() { + return this.grantScopes; + } + + public void setGrantScopes(List grantScopes) { + this.grantScopes = grantScopes; + } + + public EndpointConfig getEndpointConfig() { + return this.endpointConfig; + } + + public void setEndpointConfig(EndpointConfig endpointConfig) { + this.endpointConfig = endpointConfig; + } + + public String getPkceChallengeMethod() { + return this.pkceChallengeMethod; + } + + public void setPkceChallengeMethod(String pkceChallengeMethod) { + this.pkceChallengeMethod = pkceChallengeMethod; + } + + public Boolean getPkceRequired() { + return this.pkceRequired; + } + + public void setPkceRequired(Boolean pkceRequired) { + this.pkceRequired = pkceRequired; + } + + public AuthnParam getAuthnParam() { + return this.authnParam; + } + + public void setAuthnParam(AuthnParam authnParam) { + this.authnParam = authnParam; + } + + public String getGrantType() { + return this.grantType; + } + + public void setGrantType(String grantType) { + this.grantType = grantType; + } + + public static class EndpointConfig { + + private String userinfoEndpoint; + + private String authorizationEndpoint; + + private String jwksUri; + + private String tokenEndpoint; + + private String issuer; + + public String getUserinfoEndpoint() { + return this.userinfoEndpoint; + } + + public void setUserinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + } + + public String getAuthorizationEndpoint() { + return this.authorizationEndpoint; + } + + public void setAuthorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + } + + public String getJwksUri() { + return this.jwksUri; + } + + public void setJwksUri(String jwksUri) { + this.jwksUri = jwksUri; + } + + public String getTokenEndpoint() { + return this.tokenEndpoint; + } + + public void setTokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + } + + public String getIssuer() { + return this.issuer; + } + + public void setIssuer(String issuer) { + this.issuer = issuer; + } + } + + public static class AuthnParam { + + private String clientId; + + private String clientSecret; + + private String authnMethod; + + public String getClientId() { + return this.clientId; + } + + public void setClientId(String clientId) { + this.clientId = clientId; + } + + public String getClientSecret() { + return this.clientSecret; + } + + public void setClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + } + + public String getAuthnMethod() { + return this.authnMethod; + } + + public void setAuthnMethod(String authnMethod) { + this.authnMethod = authnMethod; + } + } + } + + @Override + public Class getResponseClass() { + return CreateIdentityProviderResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/CreateIdentityProviderResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/CreateIdentityProviderResponse.java new file mode 100644 index 0000000000..836d081c17 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/CreateIdentityProviderResponse.java @@ -0,0 +1,56 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.CreateIdentityProviderResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateIdentityProviderResponse extends AcsResponse { + + private String requestId; + + private String identityProviderId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + } + + @Override + public CreateIdentityProviderResponse getInstance(UnmarshallerContext context) { + return CreateIdentityProviderResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DeleteIdentityProviderRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DeleteIdentityProviderRequest.java new file mode 100644 index 0000000000..b0231bbd9b --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DeleteIdentityProviderRequest.java @@ -0,0 +1,64 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DeleteIdentityProviderRequest extends RpcAcsRequest { + + + private String instanceId; + + private String identityProviderId; + public DeleteIdentityProviderRequest() { + super("Eiam", "2021-12-01", "DeleteIdentityProvider", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + if(identityProviderId != null){ + putQueryParameter("IdentityProviderId", identityProviderId); + } + } + + @Override + public Class getResponseClass() { + return DeleteIdentityProviderResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DeleteIdentityProviderResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DeleteIdentityProviderResponse.java new file mode 100644 index 0000000000..20c2babf91 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DeleteIdentityProviderResponse.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.eiam.model.v20211201; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.DeleteIdentityProviderResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteIdentityProviderResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DeleteIdentityProviderResponse getInstance(UnmarshallerContext context) { + return DeleteIdentityProviderResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DisableIdentityProviderUdPullRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DisableIdentityProviderUdPullRequest.java new file mode 100644 index 0000000000..0aa06225a6 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DisableIdentityProviderUdPullRequest.java @@ -0,0 +1,64 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DisableIdentityProviderUdPullRequest extends RpcAcsRequest { + + + private String instanceId; + + private String identityProviderId; + public DisableIdentityProviderUdPullRequest() { + super("Eiam", "2021-12-01", "DisableIdentityProviderUdPull", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + if(identityProviderId != null){ + putQueryParameter("IdentityProviderId", identityProviderId); + } + } + + @Override + public Class getResponseClass() { + return DisableIdentityProviderUdPullResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DisableIdentityProviderUdPullResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DisableIdentityProviderUdPullResponse.java new file mode 100644 index 0000000000..0d5c1aab33 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/DisableIdentityProviderUdPullResponse.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.eiam.model.v20211201; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.DisableIdentityProviderUdPullResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DisableIdentityProviderUdPullResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public DisableIdentityProviderUdPullResponse getInstance(UnmarshallerContext context) { + return DisableIdentityProviderUdPullResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/EnableIdentityProviderUdPullRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/EnableIdentityProviderUdPullRequest.java new file mode 100644 index 0000000000..afb53477cf --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/EnableIdentityProviderUdPullRequest.java @@ -0,0 +1,64 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class EnableIdentityProviderUdPullRequest extends RpcAcsRequest { + + + private String instanceId; + + private String identityProviderId; + public EnableIdentityProviderUdPullRequest() { + super("Eiam", "2021-12-01", "EnableIdentityProviderUdPull", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + if(identityProviderId != null){ + putQueryParameter("IdentityProviderId", identityProviderId); + } + } + + @Override + public Class getResponseClass() { + return EnableIdentityProviderUdPullResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/EnableIdentityProviderUdPullResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/EnableIdentityProviderUdPullResponse.java new file mode 100644 index 0000000000..deea17a0b9 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/EnableIdentityProviderUdPullResponse.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.eiam.model.v20211201; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.EnableIdentityProviderUdPullResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class EnableIdentityProviderUdPullResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public EnableIdentityProviderUdPullResponse getInstance(UnmarshallerContext context) { + return EnableIdentityProviderUdPullResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetApplicationSsoConfigResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetApplicationSsoConfigResponse.java index e910b415c1..9a07450ecb 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetApplicationSsoConfigResponse.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetApplicationSsoConfigResponse.java @@ -129,6 +129,8 @@ public static class SamlSsoConfig { private List attributeStatements; + private List optionalRelayStates; + public String getSpSsoAcsUrl() { return this.spSsoAcsUrl; } @@ -209,6 +211,14 @@ public void setAttributeStatements(List attributeStatements) this.attributeStatements = attributeStatements; } + public List getOptionalRelayStates() { + return this.optionalRelayStates; + } + + public void setOptionalRelayStates(List optionalRelayStates) { + this.optionalRelayStates = optionalRelayStates; + } + public static class AttributeStatement { private String attributeName; @@ -231,6 +241,29 @@ public void setAttributeValueExpression(String attributeValueExpression) { this.attributeValueExpression = attributeValueExpression; } } + + public static class OptionalRelayStatesItem { + + private String relayState; + + private String displayName; + + public String getRelayState() { + return this.relayState; + } + + public void setRelayState(String relayState) { + this.relayState = relayState; + } + + public String getDisplayName() { + return this.displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + } } public static class OidcSsoConfig { diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderRequest.java new file mode 100644 index 0000000000..e17ab99d75 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderRequest.java @@ -0,0 +1,64 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class GetIdentityProviderRequest extends RpcAcsRequest { + + + private String instanceId; + + private String identityProviderId; + public GetIdentityProviderRequest() { + super("Eiam", "2021-12-01", "GetIdentityProvider", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + if(identityProviderId != null){ + putQueryParameter("IdentityProviderId", identityProviderId); + } + } + + @Override + public Class getResponseClass() { + return GetIdentityProviderResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderResponse.java new file mode 100644 index 0000000000..a64bbe3067 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderResponse.java @@ -0,0 +1,872 @@ +/* + * 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.eiam.model.v20211201; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.GetIdentityProviderResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetIdentityProviderResponse extends AcsResponse { + + private String requestId; + + private IdentityProviderDetail identityProviderDetail; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public IdentityProviderDetail getIdentityProviderDetail() { + return this.identityProviderDetail; + } + + public void setIdentityProviderDetail(IdentityProviderDetail identityProviderDetail) { + this.identityProviderDetail = identityProviderDetail; + } + + public static class IdentityProviderDetail { + + private String advancedStatus; + + private String authnSourceSupplier; + + private String authnSourceType; + + private String authnStatus; + + private Long createTime; + + private String description; + + private String identityProviderExternalId; + + private String identityProviderId; + + private String identityProviderName; + + private String identityProviderType; + + private String instanceId; + + private String lastStatusCheckJobResult; + + private String lockReason; + + private String networkAccessEndpointId; + + private String udPullStatus; + + private String udPushStatus; + + private Long updateTime; + + private String logoUrl; + + private DingtalkAppConfig dingtalkAppConfig; + + private DingtalkProvisioningConfig dingtalkProvisioningConfig; + + private LarkConfig larkConfig; + + private LdapConfig ldapConfig; + + private OidcConfig oidcConfig; + + private UdPullConfig udPullConfig; + + private UdPushConfig udPushConfig; + + private WeComConfig weComConfig; + + public String getAdvancedStatus() { + return this.advancedStatus; + } + + public void setAdvancedStatus(String advancedStatus) { + this.advancedStatus = advancedStatus; + } + + public String getAuthnSourceSupplier() { + return this.authnSourceSupplier; + } + + public void setAuthnSourceSupplier(String authnSourceSupplier) { + this.authnSourceSupplier = authnSourceSupplier; + } + + public String getAuthnSourceType() { + return this.authnSourceType; + } + + public void setAuthnSourceType(String authnSourceType) { + this.authnSourceType = authnSourceType; + } + + public String getAuthnStatus() { + return this.authnStatus; + } + + public void setAuthnStatus(String authnStatus) { + this.authnStatus = authnStatus; + } + + public Long getCreateTime() { + return this.createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getIdentityProviderExternalId() { + return this.identityProviderExternalId; + } + + public void setIdentityProviderExternalId(String identityProviderExternalId) { + this.identityProviderExternalId = identityProviderExternalId; + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + } + + public String getIdentityProviderName() { + return this.identityProviderName; + } + + public void setIdentityProviderName(String identityProviderName) { + this.identityProviderName = identityProviderName; + } + + public String getIdentityProviderType() { + return this.identityProviderType; + } + + public void setIdentityProviderType(String identityProviderType) { + this.identityProviderType = identityProviderType; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getLastStatusCheckJobResult() { + return this.lastStatusCheckJobResult; + } + + public void setLastStatusCheckJobResult(String lastStatusCheckJobResult) { + this.lastStatusCheckJobResult = lastStatusCheckJobResult; + } + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + } + + public String getNetworkAccessEndpointId() { + return this.networkAccessEndpointId; + } + + public void setNetworkAccessEndpointId(String networkAccessEndpointId) { + this.networkAccessEndpointId = networkAccessEndpointId; + } + + public String getUdPullStatus() { + return this.udPullStatus; + } + + public void setUdPullStatus(String udPullStatus) { + this.udPullStatus = udPullStatus; + } + + public String getUdPushStatus() { + return this.udPushStatus; + } + + public void setUdPushStatus(String udPushStatus) { + this.udPushStatus = udPushStatus; + } + + public Long getUpdateTime() { + return this.updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public String getLogoUrl() { + return this.logoUrl; + } + + public void setLogoUrl(String logoUrl) { + this.logoUrl = logoUrl; + } + + public DingtalkAppConfig getDingtalkAppConfig() { + return this.dingtalkAppConfig; + } + + public void setDingtalkAppConfig(DingtalkAppConfig dingtalkAppConfig) { + this.dingtalkAppConfig = dingtalkAppConfig; + } + + public DingtalkProvisioningConfig getDingtalkProvisioningConfig() { + return this.dingtalkProvisioningConfig; + } + + public void setDingtalkProvisioningConfig(DingtalkProvisioningConfig dingtalkProvisioningConfig) { + this.dingtalkProvisioningConfig = dingtalkProvisioningConfig; + } + + public LarkConfig getLarkConfig() { + return this.larkConfig; + } + + public void setLarkConfig(LarkConfig larkConfig) { + this.larkConfig = larkConfig; + } + + public LdapConfig getLdapConfig() { + return this.ldapConfig; + } + + public void setLdapConfig(LdapConfig ldapConfig) { + this.ldapConfig = ldapConfig; + } + + public OidcConfig getOidcConfig() { + return this.oidcConfig; + } + + public void setOidcConfig(OidcConfig oidcConfig) { + this.oidcConfig = oidcConfig; + } + + public UdPullConfig getUdPullConfig() { + return this.udPullConfig; + } + + public void setUdPullConfig(UdPullConfig udPullConfig) { + this.udPullConfig = udPullConfig; + } + + public UdPushConfig getUdPushConfig() { + return this.udPushConfig; + } + + public void setUdPushConfig(UdPushConfig udPushConfig) { + this.udPushConfig = udPushConfig; + } + + public WeComConfig getWeComConfig() { + return this.weComConfig; + } + + public void setWeComConfig(WeComConfig weComConfig) { + this.weComConfig = weComConfig; + } + + public static class DingtalkAppConfig { + + private String appKey; + + private String appSecret; + + private String corpId; + + private String dingtalkVersion; + + public String getAppKey() { + return this.appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + + public String getAppSecret() { + return this.appSecret; + } + + public void setAppSecret(String appSecret) { + this.appSecret = appSecret; + } + + public String getCorpId() { + return this.corpId; + } + + public void setCorpId(String corpId) { + this.corpId = corpId; + } + + public String getDingtalkVersion() { + return this.dingtalkVersion; + } + + public void setDingtalkVersion(String dingtalkVersion) { + this.dingtalkVersion = dingtalkVersion; + } + } + + public static class DingtalkProvisioningConfig { + + private String corpId; + + private String corpName; + + private List authedDepartmentIds; + + private List authedUsers; + + public String getCorpId() { + return this.corpId; + } + + public void setCorpId(String corpId) { + this.corpId = corpId; + } + + public String getCorpName() { + return this.corpName; + } + + public void setCorpName(String corpName) { + this.corpName = corpName; + } + + public List getAuthedDepartmentIds() { + return this.authedDepartmentIds; + } + + public void setAuthedDepartmentIds(List authedDepartmentIds) { + this.authedDepartmentIds = authedDepartmentIds; + } + + public List getAuthedUsers() { + return this.authedUsers; + } + + public void setAuthedUsers(List authedUsers) { + this.authedUsers = authedUsers; + } + + public static class AuthedDepartmentId { + + private String deptId; + + private String deptName; + + public String getDeptId() { + return this.deptId; + } + + public void setDeptId(String deptId) { + this.deptId = deptId; + } + + public String getDeptName() { + return this.deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + } + + public static class AuthedUser { + + private String name; + + private String userId; + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public String getUserId() { + return this.userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + } + } + + public static class LarkConfig { + + private String appId; + + private String appSecret; + + private String enterpriseNumber; + + public String getAppId() { + return this.appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getAppSecret() { + return this.appSecret; + } + + public void setAppSecret(String appSecret) { + this.appSecret = appSecret; + } + + public String getEnterpriseNumber() { + return this.enterpriseNumber; + } + + public void setEnterpriseNumber(String enterpriseNumber) { + this.enterpriseNumber = enterpriseNumber; + } + } + + public static class LdapConfig { + + private String administratorPassword; + + private String administratorUsername; + + private String certificateFingerprintStatus; + + private String ldapProtocol; + + private String ldapServerHost; + + private Integer ldapServerPort; + + private String startTlsStatus; + + private List certificateFingerprints; + + public String getAdministratorPassword() { + return this.administratorPassword; + } + + public void setAdministratorPassword(String administratorPassword) { + this.administratorPassword = administratorPassword; + } + + public String getAdministratorUsername() { + return this.administratorUsername; + } + + public void setAdministratorUsername(String administratorUsername) { + this.administratorUsername = administratorUsername; + } + + public String getCertificateFingerprintStatus() { + return this.certificateFingerprintStatus; + } + + public void setCertificateFingerprintStatus(String certificateFingerprintStatus) { + this.certificateFingerprintStatus = certificateFingerprintStatus; + } + + public String getLdapProtocol() { + return this.ldapProtocol; + } + + public void setLdapProtocol(String ldapProtocol) { + this.ldapProtocol = ldapProtocol; + } + + public String getLdapServerHost() { + return this.ldapServerHost; + } + + public void setLdapServerHost(String ldapServerHost) { + this.ldapServerHost = ldapServerHost; + } + + public Integer getLdapServerPort() { + return this.ldapServerPort; + } + + public void setLdapServerPort(Integer ldapServerPort) { + this.ldapServerPort = ldapServerPort; + } + + public String getStartTlsStatus() { + return this.startTlsStatus; + } + + public void setStartTlsStatus(String startTlsStatus) { + this.startTlsStatus = startTlsStatus; + } + + public List getCertificateFingerprints() { + return this.certificateFingerprints; + } + + public void setCertificateFingerprints(List certificateFingerprints) { + this.certificateFingerprints = certificateFingerprints; + } + } + + public static class OidcConfig { + + private String grantType; + + private String pkceChallengeMethod; + + private Boolean pkceRequired; + + private List grantScopes; + + private AuthnParam authnParam; + + private EndpointConfig endpointConfig; + + public String getGrantType() { + return this.grantType; + } + + public void setGrantType(String grantType) { + this.grantType = grantType; + } + + public String getPkceChallengeMethod() { + return this.pkceChallengeMethod; + } + + public void setPkceChallengeMethod(String pkceChallengeMethod) { + this.pkceChallengeMethod = pkceChallengeMethod; + } + + public Boolean getPkceRequired() { + return this.pkceRequired; + } + + public void setPkceRequired(Boolean pkceRequired) { + this.pkceRequired = pkceRequired; + } + + public List getGrantScopes() { + return this.grantScopes; + } + + public void setGrantScopes(List grantScopes) { + this.grantScopes = grantScopes; + } + + public AuthnParam getAuthnParam() { + return this.authnParam; + } + + public void setAuthnParam(AuthnParam authnParam) { + this.authnParam = authnParam; + } + + public EndpointConfig getEndpointConfig() { + return this.endpointConfig; + } + + public void setEndpointConfig(EndpointConfig endpointConfig) { + this.endpointConfig = endpointConfig; + } + + public static class AuthnParam { + + private String authnMethod; + + private String clientId; + + private String clientSecret; + + public String getAuthnMethod() { + return this.authnMethod; + } + + public void setAuthnMethod(String authnMethod) { + this.authnMethod = authnMethod; + } + + public String getClientId() { + return this.clientId; + } + + public void setClientId(String clientId) { + this.clientId = clientId; + } + + public String getClientSecret() { + return this.clientSecret; + } + + public void setClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + } + } + + public static class EndpointConfig { + + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private String tokenEndpoint; + + private String userinfoEndpoint; + + public String getAuthorizationEndpoint() { + return this.authorizationEndpoint; + } + + public void setAuthorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + } + + public String getIssuer() { + return this.issuer; + } + + public void setIssuer(String issuer) { + this.issuer = issuer; + } + + public String getJwksUri() { + return this.jwksUri; + } + + public void setJwksUri(String jwksUri) { + this.jwksUri = jwksUri; + } + + public String getTokenEndpoint() { + return this.tokenEndpoint; + } + + public void setTokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + } + + public String getUserinfoEndpoint() { + return this.userinfoEndpoint; + } + + public void setUserinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + } + } + } + + public static class UdPullConfig { + + private String groupSyncStatus; + + private String incrementalCallbackStatus; + + private UdSyncScopeConfig udSyncScopeConfig; + + public String getGroupSyncStatus() { + return this.groupSyncStatus; + } + + public void setGroupSyncStatus(String groupSyncStatus) { + this.groupSyncStatus = groupSyncStatus; + } + + public String getIncrementalCallbackStatus() { + return this.incrementalCallbackStatus; + } + + public void setIncrementalCallbackStatus(String incrementalCallbackStatus) { + this.incrementalCallbackStatus = incrementalCallbackStatus; + } + + public UdSyncScopeConfig getUdSyncScopeConfig() { + return this.udSyncScopeConfig; + } + + public void setUdSyncScopeConfig(UdSyncScopeConfig udSyncScopeConfig) { + this.udSyncScopeConfig = udSyncScopeConfig; + } + + public static class UdSyncScopeConfig { + + private String targetScope; + + private List sourceScopes; + + public String getTargetScope() { + return this.targetScope; + } + + public void setTargetScope(String targetScope) { + this.targetScope = targetScope; + } + + public List getSourceScopes() { + return this.sourceScopes; + } + + public void setSourceScopes(List sourceScopes) { + this.sourceScopes = sourceScopes; + } + } + } + + public static class UdPushConfig { + + private String incrementalCallbackStatus; + + private List udSyncScopeConfigs; + + public String getIncrementalCallbackStatus() { + return this.incrementalCallbackStatus; + } + + public void setIncrementalCallbackStatus(String incrementalCallbackStatus) { + this.incrementalCallbackStatus = incrementalCallbackStatus; + } + + public List getUdSyncScopeConfigs() { + return this.udSyncScopeConfigs; + } + + public void setUdSyncScopeConfigs(List udSyncScopeConfigs) { + this.udSyncScopeConfigs = udSyncScopeConfigs; + } + + public static class UdSyncScopeConfig1 { + + private String targetScope; + + private List sourceScopes2; + + public String getTargetScope() { + return this.targetScope; + } + + public void setTargetScope(String targetScope) { + this.targetScope = targetScope; + } + + public List getSourceScopes2() { + return this.sourceScopes2; + } + + public void setSourceScopes2(List sourceScopes2) { + this.sourceScopes2 = sourceScopes2; + } + } + } + + public static class WeComConfig { + + private String agentId; + + private String authorizeCallbackDomain; + + private String corpId; + + private String corpSecret; + + private String trustableDomain; + + public String getAgentId() { + return this.agentId; + } + + public void setAgentId(String agentId) { + this.agentId = agentId; + } + + public String getAuthorizeCallbackDomain() { + return this.authorizeCallbackDomain; + } + + public void setAuthorizeCallbackDomain(String authorizeCallbackDomain) { + this.authorizeCallbackDomain = authorizeCallbackDomain; + } + + public String getCorpId() { + return this.corpId; + } + + public void setCorpId(String corpId) { + this.corpId = corpId; + } + + public String getCorpSecret() { + return this.corpSecret; + } + + public void setCorpSecret(String corpSecret) { + this.corpSecret = corpSecret; + } + + public String getTrustableDomain() { + return this.trustableDomain; + } + + public void setTrustableDomain(String trustableDomain) { + this.trustableDomain = trustableDomain; + } + } + } + + @Override + public GetIdentityProviderResponse getInstance(UnmarshallerContext context) { + return GetIdentityProviderResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderUdPullConfigurationRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderUdPullConfigurationRequest.java new file mode 100644 index 0000000000..997390bc90 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderUdPullConfigurationRequest.java @@ -0,0 +1,64 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class GetIdentityProviderUdPullConfigurationRequest extends RpcAcsRequest { + + + private String instanceId; + + private String identityProviderId; + public GetIdentityProviderUdPullConfigurationRequest() { + super("Eiam", "2021-12-01", "GetIdentityProviderUdPullConfiguration", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + if(identityProviderId != null){ + putQueryParameter("IdentityProviderId", identityProviderId); + } + } + + @Override + public Class getResponseClass() { + return GetIdentityProviderUdPullConfigurationResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderUdPullConfigurationResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderUdPullConfigurationResponse.java new file mode 100644 index 0000000000..93857bdbdc --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetIdentityProviderUdPullConfigurationResponse.java @@ -0,0 +1,259 @@ +/* + * 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.eiam.model.v20211201; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.GetIdentityProviderUdPullConfigurationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetIdentityProviderUdPullConfigurationResponse extends AcsResponse { + + private String requestId; + + private UdPullConfiguration udPullConfiguration; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public UdPullConfiguration getUdPullConfiguration() { + return this.udPullConfiguration; + } + + public void setUdPullConfiguration(UdPullConfiguration udPullConfiguration) { + this.udPullConfiguration = udPullConfiguration; + } + + public static class UdPullConfiguration { + + private String instanceId; + + private String identityProviderId; + + private String incrementalCallbackStatus; + + private String periodicSyncStatus; + + private String groupSyncStatus; + + private UdSyncScopeConfig udSyncScopeConfig; + + private PullProtectedRule pullProtectedRule; + + private LdapUdPullConfig ldapUdPullConfig; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + } + + public String getIncrementalCallbackStatus() { + return this.incrementalCallbackStatus; + } + + public void setIncrementalCallbackStatus(String incrementalCallbackStatus) { + this.incrementalCallbackStatus = incrementalCallbackStatus; + } + + public String getPeriodicSyncStatus() { + return this.periodicSyncStatus; + } + + public void setPeriodicSyncStatus(String periodicSyncStatus) { + this.periodicSyncStatus = periodicSyncStatus; + } + + public String getGroupSyncStatus() { + return this.groupSyncStatus; + } + + public void setGroupSyncStatus(String groupSyncStatus) { + this.groupSyncStatus = groupSyncStatus; + } + + public UdSyncScopeConfig getUdSyncScopeConfig() { + return this.udSyncScopeConfig; + } + + public void setUdSyncScopeConfig(UdSyncScopeConfig udSyncScopeConfig) { + this.udSyncScopeConfig = udSyncScopeConfig; + } + + public PullProtectedRule getPullProtectedRule() { + return this.pullProtectedRule; + } + + public void setPullProtectedRule(PullProtectedRule pullProtectedRule) { + this.pullProtectedRule = pullProtectedRule; + } + + public LdapUdPullConfig getLdapUdPullConfig() { + return this.ldapUdPullConfig; + } + + public void setLdapUdPullConfig(LdapUdPullConfig ldapUdPullConfig) { + this.ldapUdPullConfig = ldapUdPullConfig; + } + + public static class UdSyncScopeConfig { + + private String targetScope; + + private List sourceScopes; + + public String getTargetScope() { + return this.targetScope; + } + + public void setTargetScope(String targetScope) { + this.targetScope = targetScope; + } + + public List getSourceScopes() { + return this.sourceScopes; + } + + public void setSourceScopes(List sourceScopes) { + this.sourceScopes = sourceScopes; + } + } + + public static class PullProtectedRule { + + private Integer userDeletedThreshold; + + private Integer organizationalUnitDeletedThreshold; + + private Integer groupDeletedThreshold; + + public Integer getUserDeletedThreshold() { + return this.userDeletedThreshold; + } + + public void setUserDeletedThreshold(Integer userDeletedThreshold) { + this.userDeletedThreshold = userDeletedThreshold; + } + + public Integer getOrganizationalUnitDeletedThreshold() { + return this.organizationalUnitDeletedThreshold; + } + + public void setOrganizationalUnitDeletedThreshold(Integer organizationalUnitDeletedThreshold) { + this.organizationalUnitDeletedThreshold = organizationalUnitDeletedThreshold; + } + + public Integer getGroupDeletedThreshold() { + return this.groupDeletedThreshold; + } + + public void setGroupDeletedThreshold(Integer groupDeletedThreshold) { + this.groupDeletedThreshold = groupDeletedThreshold; + } + } + + public static class LdapUdPullConfig { + + private String userObjectClass; + + private String organizationUnitObjectClass; + + private String userObjectClassCustomFilter; + + private String groupObjectClass; + + private String groupMemberAttributeName; + + private String groupObjectClassCustomFilter; + + public String getUserObjectClass() { + return this.userObjectClass; + } + + public void setUserObjectClass(String userObjectClass) { + this.userObjectClass = userObjectClass; + } + + public String getOrganizationUnitObjectClass() { + return this.organizationUnitObjectClass; + } + + public void setOrganizationUnitObjectClass(String organizationUnitObjectClass) { + this.organizationUnitObjectClass = organizationUnitObjectClass; + } + + public String getUserObjectClassCustomFilter() { + return this.userObjectClassCustomFilter; + } + + public void setUserObjectClassCustomFilter(String userObjectClassCustomFilter) { + this.userObjectClassCustomFilter = userObjectClassCustomFilter; + } + + public String getGroupObjectClass() { + return this.groupObjectClass; + } + + public void setGroupObjectClass(String groupObjectClass) { + this.groupObjectClass = groupObjectClass; + } + + public String getGroupMemberAttributeName() { + return this.groupMemberAttributeName; + } + + public void setGroupMemberAttributeName(String groupMemberAttributeName) { + this.groupMemberAttributeName = groupMemberAttributeName; + } + + public String getGroupObjectClassCustomFilter() { + return this.groupObjectClassCustomFilter; + } + + public void setGroupObjectClassCustomFilter(String groupObjectClassCustomFilter) { + this.groupObjectClassCustomFilter = groupObjectClassCustomFilter; + } + } + } + + @Override + public GetIdentityProviderUdPullConfigurationResponse getInstance(UnmarshallerContext context) { + return GetIdentityProviderUdPullConfigurationResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetInstanceLicenseRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetInstanceLicenseRequest.java new file mode 100644 index 0000000000..4cb396a89c --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetInstanceLicenseRequest.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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class GetInstanceLicenseRequest extends RpcAcsRequest { + + + private String instanceId; + public GetInstanceLicenseRequest() { + super("Eiam", "2021-12-01", "GetInstanceLicense", "eiam"); + setMethod(MethodType.POST); + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return GetInstanceLicenseResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetInstanceLicenseResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetInstanceLicenseResponse.java new file mode 100644 index 0000000000..6bcfe3045e --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetInstanceLicenseResponse.java @@ -0,0 +1,169 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.GetInstanceLicenseResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetInstanceLicenseResponse extends AcsResponse { + + private String requestId; + + private License license; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public License getLicense() { + return this.license; + } + + public void setLicense(License license) { + this.license = license; + } + + public static class License { + + private String licenseId; + + private String licenseStatus; + + private String licenseChargeType; + + private String licenseConfigJson; + + private Long licenseCreateTime; + + private String purchaseChannel; + + private String purchaseInstanceId; + + private String edition; + + private Long userQuota; + + private Long startTime; + + private Long endTime; + + public String getLicenseId() { + return this.licenseId; + } + + public void setLicenseId(String licenseId) { + this.licenseId = licenseId; + } + + public String getLicenseStatus() { + return this.licenseStatus; + } + + public void setLicenseStatus(String licenseStatus) { + this.licenseStatus = licenseStatus; + } + + public String getLicenseChargeType() { + return this.licenseChargeType; + } + + public void setLicenseChargeType(String licenseChargeType) { + this.licenseChargeType = licenseChargeType; + } + + public String getLicenseConfigJson() { + return this.licenseConfigJson; + } + + public void setLicenseConfigJson(String licenseConfigJson) { + this.licenseConfigJson = licenseConfigJson; + } + + public Long getLicenseCreateTime() { + return this.licenseCreateTime; + } + + public void setLicenseCreateTime(Long licenseCreateTime) { + this.licenseCreateTime = licenseCreateTime; + } + + public String getPurchaseChannel() { + return this.purchaseChannel; + } + + public void setPurchaseChannel(String purchaseChannel) { + this.purchaseChannel = purchaseChannel; + } + + public String getPurchaseInstanceId() { + return this.purchaseInstanceId; + } + + public void setPurchaseInstanceId(String purchaseInstanceId) { + this.purchaseInstanceId = purchaseInstanceId; + } + + public String getEdition() { + return this.edition; + } + + public void setEdition(String edition) { + this.edition = edition; + } + + public Long getUserQuota() { + return this.userQuota; + } + + public void setUserQuota(Long userQuota) { + this.userQuota = userQuota; + } + + public Long getStartTime() { + return this.startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public Long getEndTime() { + return this.endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + } + + @Override + public GetInstanceLicenseResponse getInstance(UnmarshallerContext context) { + return GetInstanceLicenseResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetPasswordExpirationConfigurationResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetPasswordExpirationConfigurationResponse.java index 665180f64d..2dbb9baa37 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetPasswordExpirationConfigurationResponse.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/GetPasswordExpirationConfigurationResponse.java @@ -61,6 +61,8 @@ public static class PasswordExpirationConfiguration { private List passwordExpirationNotificationChannels; + private List effectiveAuthenticationSourceIds; + public String getPasswordExpirationStatus() { return this.passwordExpirationStatus; } @@ -116,6 +118,14 @@ public List getPasswordExpirationNotificationChannels() { public void setPasswordExpirationNotificationChannels(List passwordExpirationNotificationChannels) { this.passwordExpirationNotificationChannels = passwordExpirationNotificationChannels; } + + public List getEffectiveAuthenticationSourceIds() { + return this.effectiveAuthenticationSourceIds; + } + + public void setEffectiveAuthenticationSourceIds(List effectiveAuthenticationSourceIds) { + this.effectiveAuthenticationSourceIds = effectiveAuthenticationSourceIds; + } } @Override diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListIdentityProvidersRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListIdentityProvidersRequest.java new file mode 100644 index 0000000000..40f2cf466b --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListIdentityProvidersRequest.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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class ListIdentityProvidersRequest extends RpcAcsRequest { + + + private Long pageNumber; + + private Long pageSize; + + private String instanceId; + public ListIdentityProvidersRequest() { + super("Eiam", "2021-12-01", "ListIdentityProviders", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public Long getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Long pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public Long getPageSize() { + return this.pageSize; + } + + public void setPageSize(Long pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return ListIdentityProvidersResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListIdentityProvidersResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListIdentityProvidersResponse.java new file mode 100644 index 0000000000..5ec3a48b62 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListIdentityProvidersResponse.java @@ -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.eiam.model.v20211201; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.ListIdentityProvidersResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListIdentityProvidersResponse extends AcsResponse { + + private String requestId; + + private Long totalCount; + + private List identityProviders; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Long getTotalCount() { + return this.totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getIdentityProviders() { + return this.identityProviders; + } + + public void setIdentityProviders(List identityProviders) { + this.identityProviders = identityProviders; + } + + public static class IdentityProvider { + + private String instanceId; + + private String identityProviderId; + + private String identityProviderExternalId; + + private String description; + + private String identityProviderName; + + private String udPullStatus; + + private String authnSourceType; + + private String authnSourceSupplier; + + private String authnStatus; + + private String incrementalCallbackStatus; + + private String udPullTargetScope; + + private String identityProviderType; + + private String advancedStatus; + + private String udPushStatus; + + private String lockReason; + + private String lastStatusCheckJobResult; + + private Long createTime; + + private Long updateTime; + + private String logoUrl; + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + } + + public String getIdentityProviderExternalId() { + return this.identityProviderExternalId; + } + + public void setIdentityProviderExternalId(String identityProviderExternalId) { + this.identityProviderExternalId = identityProviderExternalId; + } + + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getIdentityProviderName() { + return this.identityProviderName; + } + + public void setIdentityProviderName(String identityProviderName) { + this.identityProviderName = identityProviderName; + } + + public String getUdPullStatus() { + return this.udPullStatus; + } + + public void setUdPullStatus(String udPullStatus) { + this.udPullStatus = udPullStatus; + } + + public String getAuthnSourceType() { + return this.authnSourceType; + } + + public void setAuthnSourceType(String authnSourceType) { + this.authnSourceType = authnSourceType; + } + + public String getAuthnSourceSupplier() { + return this.authnSourceSupplier; + } + + public void setAuthnSourceSupplier(String authnSourceSupplier) { + this.authnSourceSupplier = authnSourceSupplier; + } + + public String getAuthnStatus() { + return this.authnStatus; + } + + public void setAuthnStatus(String authnStatus) { + this.authnStatus = authnStatus; + } + + public String getIncrementalCallbackStatus() { + return this.incrementalCallbackStatus; + } + + public void setIncrementalCallbackStatus(String incrementalCallbackStatus) { + this.incrementalCallbackStatus = incrementalCallbackStatus; + } + + public String getUdPullTargetScope() { + return this.udPullTargetScope; + } + + public void setUdPullTargetScope(String udPullTargetScope) { + this.udPullTargetScope = udPullTargetScope; + } + + public String getIdentityProviderType() { + return this.identityProviderType; + } + + public void setIdentityProviderType(String identityProviderType) { + this.identityProviderType = identityProviderType; + } + + public String getAdvancedStatus() { + return this.advancedStatus; + } + + public void setAdvancedStatus(String advancedStatus) { + this.advancedStatus = advancedStatus; + } + + public String getUdPushStatus() { + return this.udPushStatus; + } + + public void setUdPushStatus(String udPushStatus) { + this.udPushStatus = udPushStatus; + } + + public String getLockReason() { + return this.lockReason; + } + + public void setLockReason(String lockReason) { + this.lockReason = lockReason; + } + + public String getLastStatusCheckJobResult() { + return this.lastStatusCheckJobResult; + } + + public void setLastStatusCheckJobResult(String lastStatusCheckJobResult) { + this.lastStatusCheckJobResult = lastStatusCheckJobResult; + } + + public Long getCreateTime() { + return this.createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public Long getUpdateTime() { + return this.updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public String getLogoUrl() { + return this.logoUrl; + } + + public void setLogoUrl(String logoUrl) { + this.logoUrl = logoUrl; + } + } + + @Override + public ListIdentityProvidersResponse getInstance(UnmarshallerContext context) { + return ListIdentityProvidersResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListSynchronizationJobsRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListSynchronizationJobsRequest.java index 7b01b99426..4381574233 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListSynchronizationJobsRequest.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListSynchronizationJobsRequest.java @@ -42,6 +42,8 @@ public class ListSynchronizationJobsRequest extends RpcAcsRequest filters; + private String instanceId; private Long maxResults; @@ -143,6 +145,27 @@ public void setEndTime(Long endTime) { } } + public List getFilters() { + return this.filters; + } + + public void setFilters(List filters) { + this.filters = filters; + if (filters != null) { + for (int depth1 = 0; depth1 < filters.size(); depth1++) { + if (filters.get(depth1) != null) { + + if (filters.get(depth1).getValues() != null) { + for (int depth2 = 0; depth2 < filters.get(depth1).getValues().size(); depth2++) { + putQueryParameter("Filters." + (depth1 + 1) + ".Values." + (depth2 + 1) , filters.get(depth1).getValues().get(depth2)); + } + } + putQueryParameter("Filters." + (depth1 + 1) + ".Key" , filters.get(depth1).getKey()); + } + } + } + } + public String getInstanceId() { return this.instanceId; } @@ -174,6 +197,29 @@ public void setStatus(String status) { if(status != null){ putQueryParameter("Status", status); } + } + + public static class Filters { + + private List values; + + private String key; + + public List getValues() { + return this.values; + } + + public void setValues(List values) { + this.values = values; + } + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } } @Override diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListSynchronizationJobsResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListSynchronizationJobsResponse.java index 834e26bd6d..c54699cbce 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListSynchronizationJobsResponse.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/ListSynchronizationJobsResponse.java @@ -83,6 +83,8 @@ public static class SynchronizationJob { private String status; + private String description; + private Result result; public String getSynchronizationJobId() { @@ -149,6 +151,14 @@ public void setStatus(String status) { this.status = status; } + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + } + public Result getResult() { return this.result; } @@ -233,6 +243,8 @@ public static class UserStatistics { private Pushed pushed; + private Exported exported; + public Created getCreated() { return this.created; } @@ -281,6 +293,14 @@ public void setPushed(Pushed pushed) { this.pushed = pushed; } + public Exported getExported() { + return this.exported; + } + + public void setExported(Exported exported) { + this.exported = exported; + } + public static class Created { private Long total; @@ -538,6 +558,49 @@ public void setSkipped(Long skipped) { this.skipped = skipped; } } + + public static class Exported { + + private Long total; + + private Long success; + + private Long failed; + + private Long skipped; + + public Long getTotal() { + return this.total; + } + + public void setTotal(Long total) { + this.total = total; + } + + public Long getSuccess() { + return this.success; + } + + public void setSuccess(Long success) { + this.success = success; + } + + public Long getFailed() { + return this.failed; + } + + public void setFailed(Long failed) { + this.failed = failed; + } + + public Long getSkipped() { + return this.skipped; + } + + public void setSkipped(Long skipped) { + this.skipped = skipped; + } + } } public static class OrganizationalUnitStatistics { diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/RunSynchronizationJobRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/RunSynchronizationJobRequest.java index f5c890d91d..1484d71f48 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/RunSynchronizationJobRequest.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/RunSynchronizationJobRequest.java @@ -15,6 +15,7 @@ package com.aliyuncs.eiam.model.v20211201; import com.aliyuncs.RpcAcsRequest; +import java.util.List; import com.aliyuncs.http.ProtocolType; import com.aliyuncs.http.MethodType; @@ -29,7 +30,15 @@ public class RunSynchronizationJobRequest extends RpcAcsRequest userIdentityTypes; public RunSynchronizationJobRequest() { super("Eiam", "2021-12-01", "RunSynchronizationJob", "eiam"); setProtocol(ProtocolType.HTTPS); @@ -58,6 +67,43 @@ public void setTargetType(String targetType) { } } + public String getDescription() { + return this.description; + } + + public void setDescription(String description) { + this.description = description; + if(description != null){ + putQueryParameter("Description", description); + } + } + + public SynchronizationScopeConfig getSynchronizationScopeConfig() { + return this.synchronizationScopeConfig; + } + + public void setSynchronizationScopeConfig(SynchronizationScopeConfig synchronizationScopeConfig) { + this.synchronizationScopeConfig = synchronizationScopeConfig; + if (synchronizationScopeConfig != null) { + + if (synchronizationScopeConfig.getOrganizationalUnitIds() != null) { + for (int depth1 = 0; depth1 < synchronizationScopeConfig.getOrganizationalUnitIds().size(); depth1++) { + putQueryParameter("SynchronizationScopeConfig.OrganizationalUnitIds." + (depth1 + 1) , synchronizationScopeConfig.getOrganizationalUnitIds().get(depth1)); + } + } + if (synchronizationScopeConfig.getUserIds() != null) { + for (int depth1 = 0; depth1 < synchronizationScopeConfig.getUserIds().size(); depth1++) { + putQueryParameter("SynchronizationScopeConfig.UserIds." + (depth1 + 1) , synchronizationScopeConfig.getUserIds().get(depth1)); + } + } + if (synchronizationScopeConfig.getGroupIds() != null) { + for (int depth1 = 0; depth1 < synchronizationScopeConfig.getGroupIds().size(); depth1++) { + putQueryParameter("SynchronizationScopeConfig.GroupIds." + (depth1 + 1) , synchronizationScopeConfig.getGroupIds().get(depth1)); + } + } + } + } + public String getInstanceId() { return this.instanceId; } @@ -67,6 +113,63 @@ public void setInstanceId(String instanceId) { if(instanceId != null){ putQueryParameter("InstanceId", instanceId); } + } + + public Boolean getPasswordInitialization() { + return this.passwordInitialization; + } + + public void setPasswordInitialization(Boolean passwordInitialization) { + this.passwordInitialization = passwordInitialization; + if(passwordInitialization != null){ + putQueryParameter("PasswordInitialization", passwordInitialization.toString()); + } + } + + public List getUserIdentityTypes() { + return this.userIdentityTypes; + } + + public void setUserIdentityTypes(List userIdentityTypes) { + this.userIdentityTypes = userIdentityTypes; + if (userIdentityTypes != null) { + for (int depth1 = 0; depth1 < userIdentityTypes.size(); depth1++) { + putQueryParameter("UserIdentityTypes." + (depth1 + 1) , userIdentityTypes.get(depth1)); + } + } + } + + public static class SynchronizationScopeConfig { + + private List organizationalUnitIds; + + private List userIds; + + private List groupIds; + + public List getOrganizationalUnitIds() { + return this.organizationalUnitIds; + } + + public void setOrganizationalUnitIds(List organizationalUnitIds) { + this.organizationalUnitIds = organizationalUnitIds; + } + + public List getUserIds() { + return this.userIds; + } + + public void setUserIds(List userIds) { + this.userIds = userIds; + } + + public List getGroupIds() { + return this.groupIds; + } + + public void setGroupIds(List groupIds) { + this.groupIds = groupIds; + } } @Override diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetApplicationSsoConfigRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetApplicationSsoConfigRequest.java index 3ca2e1fff9..87928fecb2 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetApplicationSsoConfigRequest.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetApplicationSsoConfigRequest.java @@ -26,6 +26,8 @@ public class SetApplicationSsoConfigRequest extends RpcAcsRequest { + private String clientToken; + private String applicationId; private String initLoginUrl; @@ -43,6 +45,17 @@ public SetApplicationSsoConfigRequest() { setMethod(MethodType.POST); } + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putQueryParameter("ClientToken", clientToken); + } + } + public String getApplicationId() { return this.applicationId; } @@ -170,6 +183,15 @@ public void setSamlSsoConfig(SamlSsoConfig samlSsoConfig) { } putQueryParameter("SamlSsoConfig.DefaultRelayState" , samlSsoConfig.getDefaultRelayState()); putQueryParameter("SamlSsoConfig.SpEntityId" , samlSsoConfig.getSpEntityId()); + if (samlSsoConfig.getOptionalRelayStates() != null) { + for (int depth1 = 0; depth1 < samlSsoConfig.getOptionalRelayStates().size(); depth1++) { + if (samlSsoConfig.getOptionalRelayStates().get(depth1) != null) { + + putQueryParameter("SamlSsoConfig.OptionalRelayStates." + (depth1 + 1) + ".RelayState" , samlSsoConfig.getOptionalRelayStates().get(depth1).getRelayState()); + putQueryParameter("SamlSsoConfig.OptionalRelayStates." + (depth1 + 1) + ".DisplayName" , samlSsoConfig.getOptionalRelayStates().get(depth1).getDisplayName()); + } + } + } putQueryParameter("SamlSsoConfig.ResponseSigned" , samlSsoConfig.getResponseSigned()); } } @@ -370,6 +392,8 @@ public static class SamlSsoConfig { private String spEntityId; + private List optionalRelayStates; + private Boolean responseSigned; public String getSignatureAlgorithm() { @@ -444,6 +468,14 @@ public void setSpEntityId(String spEntityId) { this.spEntityId = spEntityId; } + public List getOptionalRelayStates() { + return this.optionalRelayStates; + } + + public void setOptionalRelayStates(List optionalRelayStates) { + this.optionalRelayStates = optionalRelayStates; + } + public Boolean getResponseSigned() { return this.responseSigned; } @@ -474,6 +506,29 @@ public void setAttributeName(String attributeName) { this.attributeName = attributeName; } } + + public static class OptionalRelayStatesItem { + + private String relayState; + + private String displayName; + + public String getRelayState() { + return this.relayState; + } + + public void setRelayState(String relayState) { + this.relayState = relayState; + } + + public String getDisplayName() { + return this.displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + } } @Override diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetIdentityProviderUdPullConfigurationRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetIdentityProviderUdPullConfigurationRequest.java new file mode 100644 index 0000000000..831be40ae1 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetIdentityProviderUdPullConfigurationRequest.java @@ -0,0 +1,277 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class SetIdentityProviderUdPullConfigurationRequest extends RpcAcsRequest { + + + private String groupSyncStatus; + + private UdSyncScopeConfig udSyncScopeConfig; + + private String periodicSyncStatus; + + private LdapUdPullConfig ldapUdPullConfig; + + private String identityProviderId; + + private String instanceId; + + private PullProtectedRule pullProtectedRule; + + private String incrementalCallbackStatus; + public SetIdentityProviderUdPullConfigurationRequest() { + super("Eiam", "2021-12-01", "SetIdentityProviderUdPullConfiguration", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGroupSyncStatus() { + return this.groupSyncStatus; + } + + public void setGroupSyncStatus(String groupSyncStatus) { + this.groupSyncStatus = groupSyncStatus; + if(groupSyncStatus != null){ + putQueryParameter("GroupSyncStatus", groupSyncStatus); + } + } + + public UdSyncScopeConfig getUdSyncScopeConfig() { + return this.udSyncScopeConfig; + } + + public void setUdSyncScopeConfig(UdSyncScopeConfig udSyncScopeConfig) { + this.udSyncScopeConfig = udSyncScopeConfig; + if (udSyncScopeConfig != null) { + + putQueryParameter("UdSyncScopeConfig.TargetScope" , udSyncScopeConfig.getTargetScope()); + if (udSyncScopeConfig.getSourceScopes() != null) { + for (int depth1 = 0; depth1 < udSyncScopeConfig.getSourceScopes().size(); depth1++) { + putQueryParameter("UdSyncScopeConfig.SourceScopes." + (depth1 + 1) , udSyncScopeConfig.getSourceScopes().get(depth1)); + } + } + } + } + + public String getPeriodicSyncStatus() { + return this.periodicSyncStatus; + } + + public void setPeriodicSyncStatus(String periodicSyncStatus) { + this.periodicSyncStatus = periodicSyncStatus; + if(periodicSyncStatus != null){ + putQueryParameter("PeriodicSyncStatus", periodicSyncStatus); + } + } + + public LdapUdPullConfig getLdapUdPullConfig() { + return this.ldapUdPullConfig; + } + + public void setLdapUdPullConfig(LdapUdPullConfig ldapUdPullConfig) { + this.ldapUdPullConfig = ldapUdPullConfig; + if (ldapUdPullConfig != null) { + + putQueryParameter("LdapUdPullConfig.GroupMemberAttributeName" , ldapUdPullConfig.getGroupMemberAttributeName()); + putQueryParameter("LdapUdPullConfig.UserObjectClass" , ldapUdPullConfig.getUserObjectClass()); + putQueryParameter("LdapUdPullConfig.UserObjectClassCustomFilter" , ldapUdPullConfig.getUserObjectClassCustomFilter()); + putQueryParameter("LdapUdPullConfig.GroupObjectClass" , ldapUdPullConfig.getGroupObjectClass()); + putQueryParameter("LdapUdPullConfig.GroupObjectClassCustomFilter" , ldapUdPullConfig.getGroupObjectClassCustomFilter()); + putQueryParameter("LdapUdPullConfig.OrganizationUnitObjectClass" , ldapUdPullConfig.getOrganizationUnitObjectClass()); + } + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + if(identityProviderId != null){ + putQueryParameter("IdentityProviderId", identityProviderId); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public PullProtectedRule getPullProtectedRule() { + return this.pullProtectedRule; + } + + public void setPullProtectedRule(PullProtectedRule pullProtectedRule) { + this.pullProtectedRule = pullProtectedRule; + if (pullProtectedRule != null) { + + putQueryParameter("PullProtectedRule.UserDeletedThreshold" , pullProtectedRule.getUserDeletedThreshold()); + putQueryParameter("PullProtectedRule.GroupDeletedThreshold" , pullProtectedRule.getGroupDeletedThreshold()); + putQueryParameter("PullProtectedRule.OrganizationalUnitDeletedThreshold" , pullProtectedRule.getOrganizationalUnitDeletedThreshold()); + } + } + + public String getIncrementalCallbackStatus() { + return this.incrementalCallbackStatus; + } + + public void setIncrementalCallbackStatus(String incrementalCallbackStatus) { + this.incrementalCallbackStatus = incrementalCallbackStatus; + if(incrementalCallbackStatus != null){ + putQueryParameter("IncrementalCallbackStatus", incrementalCallbackStatus); + } + } + + public static class UdSyncScopeConfig { + + private String targetScope; + + private List sourceScopes; + + public String getTargetScope() { + return this.targetScope; + } + + public void setTargetScope(String targetScope) { + this.targetScope = targetScope; + } + + public List getSourceScopes() { + return this.sourceScopes; + } + + public void setSourceScopes(List sourceScopes) { + this.sourceScopes = sourceScopes; + } + } + + public static class LdapUdPullConfig { + + private String groupMemberAttributeName; + + private String userObjectClass; + + private String userObjectClassCustomFilter; + + private String groupObjectClass; + + private String groupObjectClassCustomFilter; + + private String organizationUnitObjectClass; + + public String getGroupMemberAttributeName() { + return this.groupMemberAttributeName; + } + + public void setGroupMemberAttributeName(String groupMemberAttributeName) { + this.groupMemberAttributeName = groupMemberAttributeName; + } + + public String getUserObjectClass() { + return this.userObjectClass; + } + + public void setUserObjectClass(String userObjectClass) { + this.userObjectClass = userObjectClass; + } + + public String getUserObjectClassCustomFilter() { + return this.userObjectClassCustomFilter; + } + + public void setUserObjectClassCustomFilter(String userObjectClassCustomFilter) { + this.userObjectClassCustomFilter = userObjectClassCustomFilter; + } + + public String getGroupObjectClass() { + return this.groupObjectClass; + } + + public void setGroupObjectClass(String groupObjectClass) { + this.groupObjectClass = groupObjectClass; + } + + public String getGroupObjectClassCustomFilter() { + return this.groupObjectClassCustomFilter; + } + + public void setGroupObjectClassCustomFilter(String groupObjectClassCustomFilter) { + this.groupObjectClassCustomFilter = groupObjectClassCustomFilter; + } + + public String getOrganizationUnitObjectClass() { + return this.organizationUnitObjectClass; + } + + public void setOrganizationUnitObjectClass(String organizationUnitObjectClass) { + this.organizationUnitObjectClass = organizationUnitObjectClass; + } + } + + public static class PullProtectedRule { + + private Integer userDeletedThreshold; + + private Integer groupDeletedThreshold; + + private Integer organizationalUnitDeletedThreshold; + + public Integer getUserDeletedThreshold() { + return this.userDeletedThreshold; + } + + public void setUserDeletedThreshold(Integer userDeletedThreshold) { + this.userDeletedThreshold = userDeletedThreshold; + } + + public Integer getGroupDeletedThreshold() { + return this.groupDeletedThreshold; + } + + public void setGroupDeletedThreshold(Integer groupDeletedThreshold) { + this.groupDeletedThreshold = groupDeletedThreshold; + } + + public Integer getOrganizationalUnitDeletedThreshold() { + return this.organizationalUnitDeletedThreshold; + } + + public void setOrganizationalUnitDeletedThreshold(Integer organizationalUnitDeletedThreshold) { + this.organizationalUnitDeletedThreshold = organizationalUnitDeletedThreshold; + } + } + + @Override + public Class getResponseClass() { + return SetIdentityProviderUdPullConfigurationResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetIdentityProviderUdPullConfigurationResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetIdentityProviderUdPullConfigurationResponse.java new file mode 100644 index 0000000000..07f2d9a5a7 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetIdentityProviderUdPullConfigurationResponse.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.eiam.model.v20211201; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.SetIdentityProviderUdPullConfigurationResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class SetIdentityProviderUdPullConfigurationResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public SetIdentityProviderUdPullConfigurationResponse getInstance(UnmarshallerContext context) { + return SetIdentityProviderUdPullConfigurationResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetPasswordExpirationConfigurationRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetPasswordExpirationConfigurationRequest.java index 916a260136..8cc94d11ee 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetPasswordExpirationConfigurationRequest.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/SetPasswordExpirationConfigurationRequest.java @@ -28,6 +28,8 @@ public class SetPasswordExpirationConfigurationRequest extends RpcAcsRequest effectiveAuthenticationSourceIds; + private Integer passwordExpirationNotificationDuration; private String passwordExpirationStatus; @@ -58,6 +60,19 @@ public void setPasswordForcedUpdateDuration(Integer passwordForcedUpdateDuration } } + public List getEffectiveAuthenticationSourceIds() { + return this.effectiveAuthenticationSourceIds; + } + + public void setEffectiveAuthenticationSourceIds(List effectiveAuthenticationSourceIds) { + this.effectiveAuthenticationSourceIds = effectiveAuthenticationSourceIds; + if (effectiveAuthenticationSourceIds != null) { + for (int depth1 = 0; depth1 < effectiveAuthenticationSourceIds.size(); depth1++) { + putQueryParameter("EffectiveAuthenticationSourceIds." + (depth1 + 1) , effectiveAuthenticationSourceIds.get(depth1)); + } + } + } + public Integer getPasswordExpirationNotificationDuration() { return this.passwordExpirationNotificationDuration; } diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/UpdateIdentityProviderRequest.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/UpdateIdentityProviderRequest.java new file mode 100644 index 0000000000..70fb6633e2 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/UpdateIdentityProviderRequest.java @@ -0,0 +1,521 @@ +/* + * 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.eiam.model.v20211201; + +import com.aliyuncs.RpcAcsRequest; +import java.util.List; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class UpdateIdentityProviderRequest extends RpcAcsRequest { + + + private DingtalkAppConfig dingtalkAppConfig; + + private String networkAccessEndpointId; + + private String logoUrl; + + private String identityProviderId; + + private LarkConfig larkConfig; + + private WeComConfig weComConfig; + + private String identityProviderName; + + private LdapConfig ldapConfig; + + private String instanceId; + + private OidcConfig oidcConfig; + public UpdateIdentityProviderRequest() { + super("Eiam", "2021-12-01", "UpdateIdentityProvider", "eiam"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public DingtalkAppConfig getDingtalkAppConfig() { + return this.dingtalkAppConfig; + } + + public void setDingtalkAppConfig(DingtalkAppConfig dingtalkAppConfig) { + this.dingtalkAppConfig = dingtalkAppConfig; + if (dingtalkAppConfig != null) { + + putQueryParameter("DingtalkAppConfig.AppSecret" , dingtalkAppConfig.getAppSecret()); + putQueryParameter("DingtalkAppConfig.AppKey" , dingtalkAppConfig.getAppKey()); + } + } + + public String getNetworkAccessEndpointId() { + return this.networkAccessEndpointId; + } + + public void setNetworkAccessEndpointId(String networkAccessEndpointId) { + this.networkAccessEndpointId = networkAccessEndpointId; + if(networkAccessEndpointId != null){ + putQueryParameter("NetworkAccessEndpointId", networkAccessEndpointId); + } + } + + public String getLogoUrl() { + return this.logoUrl; + } + + public void setLogoUrl(String logoUrl) { + this.logoUrl = logoUrl; + if(logoUrl != null){ + putQueryParameter("LogoUrl", logoUrl); + } + } + + public String getIdentityProviderId() { + return this.identityProviderId; + } + + public void setIdentityProviderId(String identityProviderId) { + this.identityProviderId = identityProviderId; + if(identityProviderId != null){ + putQueryParameter("IdentityProviderId", identityProviderId); + } + } + + public LarkConfig getLarkConfig() { + return this.larkConfig; + } + + public void setLarkConfig(LarkConfig larkConfig) { + this.larkConfig = larkConfig; + if (larkConfig != null) { + + putQueryParameter("LarkConfig.AppId" , larkConfig.getAppId()); + putQueryParameter("LarkConfig.AppSecret" , larkConfig.getAppSecret()); + } + } + + public WeComConfig getWeComConfig() { + return this.weComConfig; + } + + public void setWeComConfig(WeComConfig weComConfig) { + this.weComConfig = weComConfig; + if (weComConfig != null) { + + putQueryParameter("WeComConfig.AgentId" , weComConfig.getAgentId()); + putQueryParameter("WeComConfig.CorpSecret" , weComConfig.getCorpSecret()); + putQueryParameter("WeComConfig.AuthorizeCallbackDomain" , weComConfig.getAuthorizeCallbackDomain()); + putQueryParameter("WeComConfig.TrustableDomain" , weComConfig.getTrustableDomain()); + } + } + + public String getIdentityProviderName() { + return this.identityProviderName; + } + + public void setIdentityProviderName(String identityProviderName) { + this.identityProviderName = identityProviderName; + if(identityProviderName != null){ + putQueryParameter("IdentityProviderName", identityProviderName); + } + } + + public LdapConfig getLdapConfig() { + return this.ldapConfig; + } + + public void setLdapConfig(LdapConfig ldapConfig) { + this.ldapConfig = ldapConfig; + if (ldapConfig != null) { + + putQueryParameter("LdapConfig.StartTlsStatus" , ldapConfig.getStartTlsStatus()); + putQueryParameter("LdapConfig.LdapServerHost" , ldapConfig.getLdapServerHost()); + putQueryParameter("LdapConfig.AdministratorUsername" , ldapConfig.getAdministratorUsername()); + if (ldapConfig.getCertificateFingerprints() != null) { + for (int depth1 = 0; depth1 < ldapConfig.getCertificateFingerprints().size(); depth1++) { + putQueryParameter("LdapConfig.CertificateFingerprints." + (depth1 + 1) , ldapConfig.getCertificateFingerprints().get(depth1)); + } + } + putQueryParameter("LdapConfig.LdapProtocol" , ldapConfig.getLdapProtocol()); + putQueryParameter("LdapConfig.AdministratorPassword" , ldapConfig.getAdministratorPassword()); + putQueryParameter("LdapConfig.CertificateFingerprintStatus" , ldapConfig.getCertificateFingerprintStatus()); + putQueryParameter("LdapConfig.LdapServerPort" , ldapConfig.getLdapServerPort()); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putQueryParameter("InstanceId", instanceId); + } + } + + public OidcConfig getOidcConfig() { + return this.oidcConfig; + } + + public void setOidcConfig(OidcConfig oidcConfig) { + this.oidcConfig = oidcConfig; + if (oidcConfig != null) { + + if (oidcConfig.getGrantScopes() != null) { + for (int depth1 = 0; depth1 < oidcConfig.getGrantScopes().size(); depth1++) { + putQueryParameter("OidcConfig.GrantScopes." + (depth1 + 1) , oidcConfig.getGrantScopes().get(depth1)); + } + } + if (oidcConfig.getEndpointConfig() != null) { + + putQueryParameter("OidcConfig.EndpointConfig.UserinfoEndpoint" , oidcConfig.getEndpointConfig().getUserinfoEndpoint()); + putQueryParameter("OidcConfig.EndpointConfig.AuthorizationEndpoint" , oidcConfig.getEndpointConfig().getAuthorizationEndpoint()); + putQueryParameter("OidcConfig.EndpointConfig.JwksUri" , oidcConfig.getEndpointConfig().getJwksUri()); + putQueryParameter("OidcConfig.EndpointConfig.TokenEndpoint" , oidcConfig.getEndpointConfig().getTokenEndpoint()); + putQueryParameter("OidcConfig.EndpointConfig.Issuer" , oidcConfig.getEndpointConfig().getIssuer()); + } + putQueryParameter("OidcConfig.PkceChallengeMethod" , oidcConfig.getPkceChallengeMethod()); + putQueryParameter("OidcConfig.PkceRequired" , oidcConfig.getPkceRequired()); + if (oidcConfig.getAuthnParam() != null) { + + putQueryParameter("OidcConfig.AuthnParam.ClientSecret" , oidcConfig.getAuthnParam().getClientSecret()); + putQueryParameter("OidcConfig.AuthnParam.AuthnMethod" , oidcConfig.getAuthnParam().getAuthnMethod()); + } + putQueryParameter("OidcConfig.GrantType" , oidcConfig.getGrantType()); + } + } + + public static class DingtalkAppConfig { + + private String appSecret; + + private String appKey; + + public String getAppSecret() { + return this.appSecret; + } + + public void setAppSecret(String appSecret) { + this.appSecret = appSecret; + } + + public String getAppKey() { + return this.appKey; + } + + public void setAppKey(String appKey) { + this.appKey = appKey; + } + } + + public static class LarkConfig { + + private String appId; + + private String appSecret; + + public String getAppId() { + return this.appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public String getAppSecret() { + return this.appSecret; + } + + public void setAppSecret(String appSecret) { + this.appSecret = appSecret; + } + } + + public static class WeComConfig { + + private String agentId; + + private String corpSecret; + + private String authorizeCallbackDomain; + + private String trustableDomain; + + public String getAgentId() { + return this.agentId; + } + + public void setAgentId(String agentId) { + this.agentId = agentId; + } + + public String getCorpSecret() { + return this.corpSecret; + } + + public void setCorpSecret(String corpSecret) { + this.corpSecret = corpSecret; + } + + public String getAuthorizeCallbackDomain() { + return this.authorizeCallbackDomain; + } + + public void setAuthorizeCallbackDomain(String authorizeCallbackDomain) { + this.authorizeCallbackDomain = authorizeCallbackDomain; + } + + public String getTrustableDomain() { + return this.trustableDomain; + } + + public void setTrustableDomain(String trustableDomain) { + this.trustableDomain = trustableDomain; + } + } + + public static class LdapConfig { + + private String startTlsStatus; + + private String ldapServerHost; + + private String administratorUsername; + + private List certificateFingerprints; + + private String ldapProtocol; + + private String administratorPassword; + + private String certificateFingerprintStatus; + + private Integer ldapServerPort; + + public String getStartTlsStatus() { + return this.startTlsStatus; + } + + public void setStartTlsStatus(String startTlsStatus) { + this.startTlsStatus = startTlsStatus; + } + + public String getLdapServerHost() { + return this.ldapServerHost; + } + + public void setLdapServerHost(String ldapServerHost) { + this.ldapServerHost = ldapServerHost; + } + + public String getAdministratorUsername() { + return this.administratorUsername; + } + + public void setAdministratorUsername(String administratorUsername) { + this.administratorUsername = administratorUsername; + } + + public List getCertificateFingerprints() { + return this.certificateFingerprints; + } + + public void setCertificateFingerprints(List certificateFingerprints) { + this.certificateFingerprints = certificateFingerprints; + } + + public String getLdapProtocol() { + return this.ldapProtocol; + } + + public void setLdapProtocol(String ldapProtocol) { + this.ldapProtocol = ldapProtocol; + } + + public String getAdministratorPassword() { + return this.administratorPassword; + } + + public void setAdministratorPassword(String administratorPassword) { + this.administratorPassword = administratorPassword; + } + + public String getCertificateFingerprintStatus() { + return this.certificateFingerprintStatus; + } + + public void setCertificateFingerprintStatus(String certificateFingerprintStatus) { + this.certificateFingerprintStatus = certificateFingerprintStatus; + } + + public Integer getLdapServerPort() { + return this.ldapServerPort; + } + + public void setLdapServerPort(Integer ldapServerPort) { + this.ldapServerPort = ldapServerPort; + } + } + + public static class OidcConfig { + + private List grantScopes; + + private EndpointConfig endpointConfig; + + private String pkceChallengeMethod; + + private Boolean pkceRequired; + + private AuthnParam authnParam; + + private String grantType; + + public List getGrantScopes() { + return this.grantScopes; + } + + public void setGrantScopes(List grantScopes) { + this.grantScopes = grantScopes; + } + + public EndpointConfig getEndpointConfig() { + return this.endpointConfig; + } + + public void setEndpointConfig(EndpointConfig endpointConfig) { + this.endpointConfig = endpointConfig; + } + + public String getPkceChallengeMethod() { + return this.pkceChallengeMethod; + } + + public void setPkceChallengeMethod(String pkceChallengeMethod) { + this.pkceChallengeMethod = pkceChallengeMethod; + } + + public Boolean getPkceRequired() { + return this.pkceRequired; + } + + public void setPkceRequired(Boolean pkceRequired) { + this.pkceRequired = pkceRequired; + } + + public AuthnParam getAuthnParam() { + return this.authnParam; + } + + public void setAuthnParam(AuthnParam authnParam) { + this.authnParam = authnParam; + } + + public String getGrantType() { + return this.grantType; + } + + public void setGrantType(String grantType) { + this.grantType = grantType; + } + + public static class EndpointConfig { + + private String userinfoEndpoint; + + private String authorizationEndpoint; + + private String jwksUri; + + private String tokenEndpoint; + + private String issuer; + + public String getUserinfoEndpoint() { + return this.userinfoEndpoint; + } + + public void setUserinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + } + + public String getAuthorizationEndpoint() { + return this.authorizationEndpoint; + } + + public void setAuthorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + } + + public String getJwksUri() { + return this.jwksUri; + } + + public void setJwksUri(String jwksUri) { + this.jwksUri = jwksUri; + } + + public String getTokenEndpoint() { + return this.tokenEndpoint; + } + + public void setTokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + } + + public String getIssuer() { + return this.issuer; + } + + public void setIssuer(String issuer) { + this.issuer = issuer; + } + } + + public static class AuthnParam { + + private String clientSecret; + + private String authnMethod; + + public String getClientSecret() { + return this.clientSecret; + } + + public void setClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + } + + public String getAuthnMethod() { + return this.authnMethod; + } + + public void setAuthnMethod(String authnMethod) { + this.authnMethod = authnMethod; + } + } + } + + @Override + public Class getResponseClass() { + return UpdateIdentityProviderResponse.class; + } + +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/UpdateIdentityProviderResponse.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/UpdateIdentityProviderResponse.java new file mode 100644 index 0000000000..65c2b9a1a9 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/model/v20211201/UpdateIdentityProviderResponse.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.eiam.model.v20211201; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eiam.transform.v20211201.UpdateIdentityProviderResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UpdateIdentityProviderResponse extends AcsResponse { + + private String requestId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public UpdateIdentityProviderResponse getInstance(UnmarshallerContext context) { + return UpdateIdentityProviderResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/CreateIdentityProviderResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/CreateIdentityProviderResponseUnmarshaller.java new file mode 100644 index 0000000000..47194da09d --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/CreateIdentityProviderResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * 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.eiam.transform.v20211201; + +import com.aliyuncs.eiam.model.v20211201.CreateIdentityProviderResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateIdentityProviderResponseUnmarshaller { + + public static CreateIdentityProviderResponse unmarshall(CreateIdentityProviderResponse createIdentityProviderResponse, UnmarshallerContext _ctx) { + + createIdentityProviderResponse.setRequestId(_ctx.stringValue("CreateIdentityProviderResponse.RequestId")); + createIdentityProviderResponse.setIdentityProviderId(_ctx.stringValue("CreateIdentityProviderResponse.IdentityProviderId")); + + return createIdentityProviderResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/DeleteIdentityProviderResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/DeleteIdentityProviderResponseUnmarshaller.java new file mode 100644 index 0000000000..7f6aa97833 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/DeleteIdentityProviderResponseUnmarshaller.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.eiam.transform.v20211201; + +import com.aliyuncs.eiam.model.v20211201.DeleteIdentityProviderResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteIdentityProviderResponseUnmarshaller { + + public static DeleteIdentityProviderResponse unmarshall(DeleteIdentityProviderResponse deleteIdentityProviderResponse, UnmarshallerContext _ctx) { + + deleteIdentityProviderResponse.setRequestId(_ctx.stringValue("DeleteIdentityProviderResponse.RequestId")); + + return deleteIdentityProviderResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/DisableIdentityProviderUdPullResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/DisableIdentityProviderUdPullResponseUnmarshaller.java new file mode 100644 index 0000000000..62841d5f61 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/DisableIdentityProviderUdPullResponseUnmarshaller.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.eiam.transform.v20211201; + +import com.aliyuncs.eiam.model.v20211201.DisableIdentityProviderUdPullResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DisableIdentityProviderUdPullResponseUnmarshaller { + + public static DisableIdentityProviderUdPullResponse unmarshall(DisableIdentityProviderUdPullResponse disableIdentityProviderUdPullResponse, UnmarshallerContext _ctx) { + + disableIdentityProviderUdPullResponse.setRequestId(_ctx.stringValue("DisableIdentityProviderUdPullResponse.RequestId")); + + return disableIdentityProviderUdPullResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/EnableIdentityProviderUdPullResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/EnableIdentityProviderUdPullResponseUnmarshaller.java new file mode 100644 index 0000000000..49fa936000 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/EnableIdentityProviderUdPullResponseUnmarshaller.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.eiam.transform.v20211201; + +import com.aliyuncs.eiam.model.v20211201.EnableIdentityProviderUdPullResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class EnableIdentityProviderUdPullResponseUnmarshaller { + + public static EnableIdentityProviderUdPullResponse unmarshall(EnableIdentityProviderUdPullResponse enableIdentityProviderUdPullResponse, UnmarshallerContext _ctx) { + + enableIdentityProviderUdPullResponse.setRequestId(_ctx.stringValue("EnableIdentityProviderUdPullResponse.RequestId")); + + return enableIdentityProviderUdPullResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetApplicationSsoConfigResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetApplicationSsoConfigResponseUnmarshaller.java index 1208fd280a..5334a8eec3 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetApplicationSsoConfigResponseUnmarshaller.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetApplicationSsoConfigResponseUnmarshaller.java @@ -23,7 +23,8 @@ import com.aliyuncs.eiam.model.v20211201.GetApplicationSsoConfigResponse.ApplicationSsoConfig.OidcSsoConfig.CustomClaim; import com.aliyuncs.eiam.model.v20211201.GetApplicationSsoConfigResponse.ApplicationSsoConfig.ProtocolEndpointDomain; import com.aliyuncs.eiam.model.v20211201.GetApplicationSsoConfigResponse.ApplicationSsoConfig.SamlSsoConfig; -import com.aliyuncs.eiam.model.v20211201.GetApplicationSsoConfigResponse.ApplicationSsoConfig.SamlSsoConfig.AttributeStatement; +import com.aliyuncs.eiam.model.v20211201.GetApplicationSsoConfigResponse.ApplicationSsoConfig.SamlSsoConfig.AttributeStatement; +import com.aliyuncs.eiam.model.v20211201.GetApplicationSsoConfigResponse.ApplicationSsoConfig.SamlSsoConfig.OptionalRelayStatesItem; import com.aliyuncs.transform.UnmarshallerContext; @@ -58,6 +59,16 @@ public static GetApplicationSsoConfigResponse unmarshall(GetApplicationSsoConfig attributeStatements.add(attributeStatement); } samlSsoConfig.setAttributeStatements(attributeStatements); + + List optionalRelayStates = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetApplicationSsoConfigResponse.ApplicationSsoConfig.SamlSsoConfig.OptionalRelayStates.Length"); i++) { + OptionalRelayStatesItem optionalRelayStatesItem = new OptionalRelayStatesItem(); + optionalRelayStatesItem.setRelayState(_ctx.stringValue("GetApplicationSsoConfigResponse.ApplicationSsoConfig.SamlSsoConfig.OptionalRelayStates["+ i +"].RelayState")); + optionalRelayStatesItem.setDisplayName(_ctx.stringValue("GetApplicationSsoConfigResponse.ApplicationSsoConfig.SamlSsoConfig.OptionalRelayStates["+ i +"].DisplayName")); + + optionalRelayStates.add(optionalRelayStatesItem); + } + samlSsoConfig.setOptionalRelayStates(optionalRelayStates); applicationSsoConfig.setSamlSsoConfig(samlSsoConfig); OidcSsoConfig oidcSsoConfig = new OidcSsoConfig(); diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetIdentityProviderResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetIdentityProviderResponseUnmarshaller.java new file mode 100644 index 0000000000..2336c59e0a --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetIdentityProviderResponseUnmarshaller.java @@ -0,0 +1,190 @@ +/* + * 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.eiam.transform.v20211201; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.DingtalkAppConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.AuthedDepartmentId; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.AuthedUser; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.LarkConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.AuthnParam; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.EndpointConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.UdPullConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.UdPullConfig.UdSyncScopeConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.UdPushConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.UdPushConfig.UdSyncScopeConfig1; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderResponse.IdentityProviderDetail.WeComConfig; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetIdentityProviderResponseUnmarshaller { + + public static GetIdentityProviderResponse unmarshall(GetIdentityProviderResponse getIdentityProviderResponse, UnmarshallerContext _ctx) { + + getIdentityProviderResponse.setRequestId(_ctx.stringValue("GetIdentityProviderResponse.RequestId")); + + IdentityProviderDetail identityProviderDetail = new IdentityProviderDetail(); + identityProviderDetail.setAdvancedStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.AdvancedStatus")); + identityProviderDetail.setAuthnSourceSupplier(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.AuthnSourceSupplier")); + identityProviderDetail.setAuthnSourceType(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.AuthnSourceType")); + identityProviderDetail.setAuthnStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.AuthnStatus")); + identityProviderDetail.setCreateTime(_ctx.longValue("GetIdentityProviderResponse.IdentityProviderDetail.CreateTime")); + identityProviderDetail.setDescription(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.Description")); + identityProviderDetail.setIdentityProviderExternalId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.IdentityProviderExternalId")); + identityProviderDetail.setIdentityProviderId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.IdentityProviderId")); + identityProviderDetail.setIdentityProviderName(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.IdentityProviderName")); + identityProviderDetail.setIdentityProviderType(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.IdentityProviderType")); + identityProviderDetail.setInstanceId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.InstanceId")); + identityProviderDetail.setLastStatusCheckJobResult(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LastStatusCheckJobResult")); + identityProviderDetail.setLockReason(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LockReason")); + identityProviderDetail.setNetworkAccessEndpointId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.NetworkAccessEndpointId")); + identityProviderDetail.setUdPullStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPullStatus")); + identityProviderDetail.setUdPushStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPushStatus")); + identityProviderDetail.setUpdateTime(_ctx.longValue("GetIdentityProviderResponse.IdentityProviderDetail.UpdateTime")); + identityProviderDetail.setLogoUrl(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LogoUrl")); + + DingtalkAppConfig dingtalkAppConfig = new DingtalkAppConfig(); + dingtalkAppConfig.setAppKey(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkAppConfig.AppKey")); + dingtalkAppConfig.setAppSecret(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkAppConfig.AppSecret")); + dingtalkAppConfig.setCorpId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkAppConfig.CorpId")); + dingtalkAppConfig.setDingtalkVersion(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkAppConfig.DingtalkVersion")); + identityProviderDetail.setDingtalkAppConfig(dingtalkAppConfig); + + DingtalkProvisioningConfig dingtalkProvisioningConfig = new DingtalkProvisioningConfig(); + dingtalkProvisioningConfig.setCorpId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.CorpId")); + dingtalkProvisioningConfig.setCorpName(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.CorpName")); + + List authedDepartmentIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.AuthedDepartmentIds.Length"); i++) { + AuthedDepartmentId authedDepartmentId = new AuthedDepartmentId(); + authedDepartmentId.setDeptId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.AuthedDepartmentIds["+ i +"].DeptId")); + authedDepartmentId.setDeptName(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.AuthedDepartmentIds["+ i +"].DeptName")); + + authedDepartmentIds.add(authedDepartmentId); + } + dingtalkProvisioningConfig.setAuthedDepartmentIds(authedDepartmentIds); + + List authedUsers = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.AuthedUsers.Length"); i++) { + AuthedUser authedUser = new AuthedUser(); + authedUser.setName(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.AuthedUsers["+ i +"].Name")); + authedUser.setUserId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.DingtalkProvisioningConfig.AuthedUsers["+ i +"].UserId")); + + authedUsers.add(authedUser); + } + dingtalkProvisioningConfig.setAuthedUsers(authedUsers); + identityProviderDetail.setDingtalkProvisioningConfig(dingtalkProvisioningConfig); + + LarkConfig larkConfig = new LarkConfig(); + larkConfig.setAppId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LarkConfig.AppId")); + larkConfig.setAppSecret(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LarkConfig.AppSecret")); + larkConfig.setEnterpriseNumber(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LarkConfig.EnterpriseNumber")); + identityProviderDetail.setLarkConfig(larkConfig); + + LdapConfig ldapConfig = new LdapConfig(); + ldapConfig.setAdministratorPassword(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.AdministratorPassword")); + ldapConfig.setAdministratorUsername(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.AdministratorUsername")); + ldapConfig.setCertificateFingerprintStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.CertificateFingerprintStatus")); + ldapConfig.setLdapProtocol(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.LdapProtocol")); + ldapConfig.setLdapServerHost(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.LdapServerHost")); + ldapConfig.setLdapServerPort(_ctx.integerValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.LdapServerPort")); + ldapConfig.setStartTlsStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.StartTlsStatus")); + + List certificateFingerprints = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.CertificateFingerprints.Length"); i++) { + certificateFingerprints.add(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.LdapConfig.CertificateFingerprints["+ i +"]")); + } + ldapConfig.setCertificateFingerprints(certificateFingerprints); + identityProviderDetail.setLdapConfig(ldapConfig); + + OidcConfig oidcConfig = new OidcConfig(); + oidcConfig.setGrantType(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.GrantType")); + oidcConfig.setPkceChallengeMethod(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.PkceChallengeMethod")); + oidcConfig.setPkceRequired(_ctx.booleanValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.PkceRequired")); + + List grantScopes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.GrantScopes.Length"); i++) { + grantScopes.add(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.GrantScopes["+ i +"]")); + } + oidcConfig.setGrantScopes(grantScopes); + + AuthnParam authnParam = new AuthnParam(); + authnParam.setAuthnMethod(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.AuthnParam.AuthnMethod")); + authnParam.setClientId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.AuthnParam.ClientId")); + authnParam.setClientSecret(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.AuthnParam.ClientSecret")); + oidcConfig.setAuthnParam(authnParam); + + EndpointConfig endpointConfig = new EndpointConfig(); + endpointConfig.setAuthorizationEndpoint(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.EndpointConfig.AuthorizationEndpoint")); + endpointConfig.setIssuer(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.EndpointConfig.Issuer")); + endpointConfig.setJwksUri(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.EndpointConfig.JwksUri")); + endpointConfig.setTokenEndpoint(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.EndpointConfig.TokenEndpoint")); + endpointConfig.setUserinfoEndpoint(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.OidcConfig.EndpointConfig.UserinfoEndpoint")); + oidcConfig.setEndpointConfig(endpointConfig); + identityProviderDetail.setOidcConfig(oidcConfig); + + UdPullConfig udPullConfig = new UdPullConfig(); + udPullConfig.setGroupSyncStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPullConfig.GroupSyncStatus")); + udPullConfig.setIncrementalCallbackStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPullConfig.IncrementalCallbackStatus")); + + UdSyncScopeConfig udSyncScopeConfig = new UdSyncScopeConfig(); + udSyncScopeConfig.setTargetScope(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPullConfig.UdSyncScopeConfig.TargetScope")); + + List sourceScopes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPullConfig.UdSyncScopeConfig.SourceScopes.Length"); i++) { + sourceScopes.add(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPullConfig.UdSyncScopeConfig.SourceScopes["+ i +"]")); + } + udSyncScopeConfig.setSourceScopes(sourceScopes); + udPullConfig.setUdSyncScopeConfig(udSyncScopeConfig); + identityProviderDetail.setUdPullConfig(udPullConfig); + + UdPushConfig udPushConfig = new UdPushConfig(); + udPushConfig.setIncrementalCallbackStatus(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPushConfig.IncrementalCallbackStatus")); + + List udSyncScopeConfigs = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPushConfig.UdSyncScopeConfigs.Length"); i++) { + UdSyncScopeConfig1 udSyncScopeConfig1 = new UdSyncScopeConfig1(); + udSyncScopeConfig1.setTargetScope(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPushConfig.UdSyncScopeConfigs["+ i +"].TargetScope")); + + List sourceScopes2 = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPushConfig.UdSyncScopeConfigs["+ i +"].SourceScopes.Length"); j++) { + sourceScopes2.add(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.UdPushConfig.UdSyncScopeConfigs["+ i +"].SourceScopes["+ j +"]")); + } + udSyncScopeConfig1.setSourceScopes2(sourceScopes2); + + udSyncScopeConfigs.add(udSyncScopeConfig1); + } + udPushConfig.setUdSyncScopeConfigs(udSyncScopeConfigs); + identityProviderDetail.setUdPushConfig(udPushConfig); + + WeComConfig weComConfig = new WeComConfig(); + weComConfig.setAgentId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.WeComConfig.AgentId")); + weComConfig.setAuthorizeCallbackDomain(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.WeComConfig.AuthorizeCallbackDomain")); + weComConfig.setCorpId(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.WeComConfig.CorpId")); + weComConfig.setCorpSecret(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.WeComConfig.CorpSecret")); + weComConfig.setTrustableDomain(_ctx.stringValue("GetIdentityProviderResponse.IdentityProviderDetail.WeComConfig.TrustableDomain")); + identityProviderDetail.setWeComConfig(weComConfig); + getIdentityProviderResponse.setIdentityProviderDetail(identityProviderDetail); + + return getIdentityProviderResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetIdentityProviderUdPullConfigurationResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetIdentityProviderUdPullConfigurationResponseUnmarshaller.java new file mode 100644 index 0000000000..930b601423 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetIdentityProviderUdPullConfigurationResponseUnmarshaller.java @@ -0,0 +1,69 @@ +/* + * 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.eiam.transform.v20211201; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderUdPullConfigurationResponse; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.LdapUdPullConfig; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.PullProtectedRule; +import com.aliyuncs.eiam.model.v20211201.GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.UdSyncScopeConfig; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetIdentityProviderUdPullConfigurationResponseUnmarshaller { + + public static GetIdentityProviderUdPullConfigurationResponse unmarshall(GetIdentityProviderUdPullConfigurationResponse getIdentityProviderUdPullConfigurationResponse, UnmarshallerContext _ctx) { + + getIdentityProviderUdPullConfigurationResponse.setRequestId(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.RequestId")); + + UdPullConfiguration udPullConfiguration = new UdPullConfiguration(); + udPullConfiguration.setInstanceId(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.InstanceId")); + udPullConfiguration.setIdentityProviderId(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.IdentityProviderId")); + udPullConfiguration.setIncrementalCallbackStatus(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.IncrementalCallbackStatus")); + udPullConfiguration.setPeriodicSyncStatus(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.PeriodicSyncStatus")); + udPullConfiguration.setGroupSyncStatus(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.GroupSyncStatus")); + + UdSyncScopeConfig udSyncScopeConfig = new UdSyncScopeConfig(); + udSyncScopeConfig.setTargetScope(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.UdSyncScopeConfig.TargetScope")); + + List sourceScopes = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.UdSyncScopeConfig.SourceScopes.Length"); i++) { + sourceScopes.add(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.UdSyncScopeConfig.SourceScopes["+ i +"]")); + } + udSyncScopeConfig.setSourceScopes(sourceScopes); + udPullConfiguration.setUdSyncScopeConfig(udSyncScopeConfig); + + PullProtectedRule pullProtectedRule = new PullProtectedRule(); + pullProtectedRule.setUserDeletedThreshold(_ctx.integerValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.PullProtectedRule.UserDeletedThreshold")); + pullProtectedRule.setOrganizationalUnitDeletedThreshold(_ctx.integerValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.PullProtectedRule.OrganizationalUnitDeletedThreshold")); + pullProtectedRule.setGroupDeletedThreshold(_ctx.integerValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.PullProtectedRule.GroupDeletedThreshold")); + udPullConfiguration.setPullProtectedRule(pullProtectedRule); + + LdapUdPullConfig ldapUdPullConfig = new LdapUdPullConfig(); + ldapUdPullConfig.setUserObjectClass(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.LdapUdPullConfig.UserObjectClass")); + ldapUdPullConfig.setOrganizationUnitObjectClass(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.LdapUdPullConfig.OrganizationUnitObjectClass")); + ldapUdPullConfig.setUserObjectClassCustomFilter(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.LdapUdPullConfig.UserObjectClassCustomFilter")); + ldapUdPullConfig.setGroupObjectClass(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.LdapUdPullConfig.GroupObjectClass")); + ldapUdPullConfig.setGroupMemberAttributeName(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.LdapUdPullConfig.GroupMemberAttributeName")); + ldapUdPullConfig.setGroupObjectClassCustomFilter(_ctx.stringValue("GetIdentityProviderUdPullConfigurationResponse.UdPullConfiguration.LdapUdPullConfig.GroupObjectClassCustomFilter")); + udPullConfiguration.setLdapUdPullConfig(ldapUdPullConfig); + getIdentityProviderUdPullConfigurationResponse.setUdPullConfiguration(udPullConfiguration); + + return getIdentityProviderUdPullConfigurationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetInstanceLicenseResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetInstanceLicenseResponseUnmarshaller.java new file mode 100644 index 0000000000..1e2905b923 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetInstanceLicenseResponseUnmarshaller.java @@ -0,0 +1,44 @@ +/* + * 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.eiam.transform.v20211201; + +import com.aliyuncs.eiam.model.v20211201.GetInstanceLicenseResponse; +import com.aliyuncs.eiam.model.v20211201.GetInstanceLicenseResponse.License; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetInstanceLicenseResponseUnmarshaller { + + public static GetInstanceLicenseResponse unmarshall(GetInstanceLicenseResponse getInstanceLicenseResponse, UnmarshallerContext _ctx) { + + getInstanceLicenseResponse.setRequestId(_ctx.stringValue("GetInstanceLicenseResponse.RequestId")); + + License license = new License(); + license.setLicenseId(_ctx.stringValue("GetInstanceLicenseResponse.License.LicenseId")); + license.setLicenseStatus(_ctx.stringValue("GetInstanceLicenseResponse.License.LicenseStatus")); + license.setLicenseChargeType(_ctx.stringValue("GetInstanceLicenseResponse.License.LicenseChargeType")); + license.setLicenseConfigJson(_ctx.stringValue("GetInstanceLicenseResponse.License.LicenseConfigJson")); + license.setLicenseCreateTime(_ctx.longValue("GetInstanceLicenseResponse.License.LicenseCreateTime")); + license.setPurchaseChannel(_ctx.stringValue("GetInstanceLicenseResponse.License.PurchaseChannel")); + license.setPurchaseInstanceId(_ctx.stringValue("GetInstanceLicenseResponse.License.PurchaseInstanceId")); + license.setEdition(_ctx.stringValue("GetInstanceLicenseResponse.License.Edition")); + license.setUserQuota(_ctx.longValue("GetInstanceLicenseResponse.License.UserQuota")); + license.setStartTime(_ctx.longValue("GetInstanceLicenseResponse.License.StartTime")); + license.setEndTime(_ctx.longValue("GetInstanceLicenseResponse.License.EndTime")); + getInstanceLicenseResponse.setLicense(license); + + return getInstanceLicenseResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetPasswordExpirationConfigurationResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetPasswordExpirationConfigurationResponseUnmarshaller.java index 5ba2d5a0f5..df866e7974 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetPasswordExpirationConfigurationResponseUnmarshaller.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/GetPasswordExpirationConfigurationResponseUnmarshaller.java @@ -41,6 +41,12 @@ public static GetPasswordExpirationConfigurationResponse unmarshall(GetPasswordE passwordExpirationNotificationChannels.add(_ctx.stringValue("GetPasswordExpirationConfigurationResponse.PasswordExpirationConfiguration.PasswordExpirationNotificationChannels["+ i +"]")); } passwordExpirationConfiguration.setPasswordExpirationNotificationChannels(passwordExpirationNotificationChannels); + + List effectiveAuthenticationSourceIds = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetPasswordExpirationConfigurationResponse.PasswordExpirationConfiguration.EffectiveAuthenticationSourceIds.Length"); i++) { + effectiveAuthenticationSourceIds.add(_ctx.stringValue("GetPasswordExpirationConfigurationResponse.PasswordExpirationConfiguration.EffectiveAuthenticationSourceIds["+ i +"]")); + } + passwordExpirationConfiguration.setEffectiveAuthenticationSourceIds(effectiveAuthenticationSourceIds); getPasswordExpirationConfigurationResponse.setPasswordExpirationConfiguration(passwordExpirationConfiguration); return getPasswordExpirationConfigurationResponse; diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/ListIdentityProvidersResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/ListIdentityProvidersResponseUnmarshaller.java new file mode 100644 index 0000000000..a566fb244d --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/ListIdentityProvidersResponseUnmarshaller.java @@ -0,0 +1,61 @@ +/* + * 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.eiam.transform.v20211201; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.eiam.model.v20211201.ListIdentityProvidersResponse; +import com.aliyuncs.eiam.model.v20211201.ListIdentityProvidersResponse.IdentityProvider; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListIdentityProvidersResponseUnmarshaller { + + public static ListIdentityProvidersResponse unmarshall(ListIdentityProvidersResponse listIdentityProvidersResponse, UnmarshallerContext _ctx) { + + listIdentityProvidersResponse.setRequestId(_ctx.stringValue("ListIdentityProvidersResponse.RequestId")); + listIdentityProvidersResponse.setTotalCount(_ctx.longValue("ListIdentityProvidersResponse.TotalCount")); + + List identityProviders = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListIdentityProvidersResponse.IdentityProviders.Length"); i++) { + IdentityProvider identityProvider = new IdentityProvider(); + identityProvider.setInstanceId(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].InstanceId")); + identityProvider.setIdentityProviderId(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].IdentityProviderId")); + identityProvider.setIdentityProviderExternalId(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].IdentityProviderExternalId")); + identityProvider.setDescription(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].Description")); + identityProvider.setIdentityProviderName(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].IdentityProviderName")); + identityProvider.setUdPullStatus(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].UdPullStatus")); + identityProvider.setAuthnSourceType(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].AuthnSourceType")); + identityProvider.setAuthnSourceSupplier(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].AuthnSourceSupplier")); + identityProvider.setAuthnStatus(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].AuthnStatus")); + identityProvider.setIncrementalCallbackStatus(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].IncrementalCallbackStatus")); + identityProvider.setUdPullTargetScope(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].UdPullTargetScope")); + identityProvider.setIdentityProviderType(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].IdentityProviderType")); + identityProvider.setAdvancedStatus(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].AdvancedStatus")); + identityProvider.setUdPushStatus(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].UdPushStatus")); + identityProvider.setLockReason(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].LockReason")); + identityProvider.setLastStatusCheckJobResult(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].LastStatusCheckJobResult")); + identityProvider.setCreateTime(_ctx.longValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].CreateTime")); + identityProvider.setUpdateTime(_ctx.longValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].UpdateTime")); + identityProvider.setLogoUrl(_ctx.stringValue("ListIdentityProvidersResponse.IdentityProviders["+ i +"].LogoUrl")); + + identityProviders.add(identityProvider); + } + listIdentityProvidersResponse.setIdentityProviders(identityProviders); + + return listIdentityProvidersResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/ListSynchronizationJobsResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/ListSynchronizationJobsResponseUnmarshaller.java index 7e30896bf0..1ed88f6f52 100644 --- a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/ListSynchronizationJobsResponseUnmarshaller.java +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/ListSynchronizationJobsResponseUnmarshaller.java @@ -45,6 +45,7 @@ import com.aliyuncs.eiam.model.v20211201.ListSynchronizationJobsResponse.SynchronizationJob.Result.UserStatistics.Binded; import com.aliyuncs.eiam.model.v20211201.ListSynchronizationJobsResponse.SynchronizationJob.Result.UserStatistics.Created; import com.aliyuncs.eiam.model.v20211201.ListSynchronizationJobsResponse.SynchronizationJob.Result.UserStatistics.Deleted; +import com.aliyuncs.eiam.model.v20211201.ListSynchronizationJobsResponse.SynchronizationJob.Result.UserStatistics.Exported; import com.aliyuncs.eiam.model.v20211201.ListSynchronizationJobsResponse.SynchronizationJob.Result.UserStatistics.Pushed; import com.aliyuncs.eiam.model.v20211201.ListSynchronizationJobsResponse.SynchronizationJob.Result.UserStatistics.Same; import com.aliyuncs.eiam.model.v20211201.ListSynchronizationJobsResponse.SynchronizationJob.Result.UserStatistics.Updated; @@ -70,6 +71,7 @@ public static ListSynchronizationJobsResponse unmarshall(ListSynchronizationJobs synchronizationJob.setEndTime(_ctx.longValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].EndTime")); synchronizationJob.setTriggerType(_ctx.stringValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].TriggerType")); synchronizationJob.setStatus(_ctx.stringValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Status")); + synchronizationJob.setDescription(_ctx.stringValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Description")); Result result = new Result(); result.setErrorMessage(_ctx.stringValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Result.ErrorMessage")); @@ -118,6 +120,13 @@ public static ListSynchronizationJobsResponse unmarshall(ListSynchronizationJobs pushed.setFailed(_ctx.longValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Result.UserStatistics.Pushed.Failed")); pushed.setSkipped(_ctx.longValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Result.UserStatistics.Pushed.Skipped")); userStatistics.setPushed(pushed); + + Exported exported = new Exported(); + exported.setTotal(_ctx.longValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Result.UserStatistics.Exported.Total")); + exported.setSuccess(_ctx.longValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Result.UserStatistics.Exported.Success")); + exported.setFailed(_ctx.longValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Result.UserStatistics.Exported.Failed")); + exported.setSkipped(_ctx.longValue("ListSynchronizationJobsResponse.SynchronizationJobs["+ i +"].Result.UserStatistics.Exported.Skipped")); + userStatistics.setExported(exported); result.setUserStatistics(userStatistics); OrganizationalUnitStatistics organizationalUnitStatistics = new OrganizationalUnitStatistics(); diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/SetIdentityProviderUdPullConfigurationResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/SetIdentityProviderUdPullConfigurationResponseUnmarshaller.java new file mode 100644 index 0000000000..d09bfaee39 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/SetIdentityProviderUdPullConfigurationResponseUnmarshaller.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.eiam.transform.v20211201; + +import com.aliyuncs.eiam.model.v20211201.SetIdentityProviderUdPullConfigurationResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class SetIdentityProviderUdPullConfigurationResponseUnmarshaller { + + public static SetIdentityProviderUdPullConfigurationResponse unmarshall(SetIdentityProviderUdPullConfigurationResponse setIdentityProviderUdPullConfigurationResponse, UnmarshallerContext _ctx) { + + setIdentityProviderUdPullConfigurationResponse.setRequestId(_ctx.stringValue("SetIdentityProviderUdPullConfigurationResponse.RequestId")); + + return setIdentityProviderUdPullConfigurationResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/UpdateIdentityProviderResponseUnmarshaller.java b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/UpdateIdentityProviderResponseUnmarshaller.java new file mode 100644 index 0000000000..2efdae1f94 --- /dev/null +++ b/aliyun-java-sdk-eiam/src/main/java/com/aliyuncs/eiam/transform/v20211201/UpdateIdentityProviderResponseUnmarshaller.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.eiam.transform.v20211201; + +import com.aliyuncs.eiam.model.v20211201.UpdateIdentityProviderResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UpdateIdentityProviderResponseUnmarshaller { + + public static UpdateIdentityProviderResponse unmarshall(UpdateIdentityProviderResponse updateIdentityProviderResponse, UnmarshallerContext _ctx) { + + updateIdentityProviderResponse.setRequestId(_ctx.stringValue("UpdateIdentityProviderResponse.RequestId")); + + return updateIdentityProviderResponse; + } +} \ No newline at end of file