Files
auth/backend/keycloak/kc-client/models/RealmRepresentation.ts
2022-09-05 17:02:45 +02:00

1105 lines
44 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/**
* Keycloak Admin REST API
* This is a REST API reference for the Keycloak Admin
*
* The version of the OpenAPI document: 1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
import {
AuthenticationFlowRepresentation,
AuthenticationFlowRepresentationFromJSON,
AuthenticationFlowRepresentationFromJSONTyped,
AuthenticationFlowRepresentationToJSON,
AuthenticatorConfigRepresentation,
AuthenticatorConfigRepresentationFromJSON,
AuthenticatorConfigRepresentationFromJSONTyped,
AuthenticatorConfigRepresentationToJSON,
ClientRepresentation,
ClientRepresentationFromJSON,
ClientRepresentationFromJSONTyped,
ClientRepresentationToJSON,
ClientScopeRepresentation,
ClientScopeRepresentationFromJSON,
ClientScopeRepresentationFromJSONTyped,
ClientScopeRepresentationToJSON,
GroupRepresentation,
GroupRepresentationFromJSON,
GroupRepresentationFromJSONTyped,
GroupRepresentationToJSON,
IdentityProviderMapperRepresentation,
IdentityProviderMapperRepresentationFromJSON,
IdentityProviderMapperRepresentationFromJSONTyped,
IdentityProviderMapperRepresentationToJSON,
IdentityProviderRepresentation,
IdentityProviderRepresentationFromJSON,
IdentityProviderRepresentationFromJSONTyped,
IdentityProviderRepresentationToJSON,
JsonNode,
JsonNodeFromJSON,
JsonNodeFromJSONTyped,
JsonNodeToJSON,
MultivaluedHashMap,
MultivaluedHashMapFromJSON,
MultivaluedHashMapFromJSONTyped,
MultivaluedHashMapToJSON,
ProtocolMapperRepresentation,
ProtocolMapperRepresentationFromJSON,
ProtocolMapperRepresentationFromJSONTyped,
ProtocolMapperRepresentationToJSON,
RequiredActionProviderRepresentation,
RequiredActionProviderRepresentationFromJSON,
RequiredActionProviderRepresentationFromJSONTyped,
RequiredActionProviderRepresentationToJSON,
RoleRepresentation,
RoleRepresentationFromJSON,
RoleRepresentationFromJSONTyped,
RoleRepresentationToJSON,
RolesRepresentation,
RolesRepresentationFromJSON,
RolesRepresentationFromJSONTyped,
RolesRepresentationToJSON,
ScopeMappingRepresentation,
ScopeMappingRepresentationFromJSON,
ScopeMappingRepresentationFromJSONTyped,
ScopeMappingRepresentationToJSON,
UserFederationMapperRepresentation,
UserFederationMapperRepresentationFromJSON,
UserFederationMapperRepresentationFromJSONTyped,
UserFederationMapperRepresentationToJSON,
UserFederationProviderRepresentation,
UserFederationProviderRepresentationFromJSON,
UserFederationProviderRepresentationFromJSONTyped,
UserFederationProviderRepresentationToJSON,
UserRepresentation,
UserRepresentationFromJSON,
UserRepresentationFromJSONTyped,
UserRepresentationToJSON,
} from './';
/**
*
* @export
* @interface RealmRepresentation
*/
export interface RealmRepresentation {
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
accessCodeLifespan?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
accessCodeLifespanLogin?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
accessCodeLifespanUserAction?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
accessTokenLifespan?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
accessTokenLifespanForImplicitFlow?: number;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
accountTheme?: string;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
actionTokenGeneratedByAdminLifespan?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
actionTokenGeneratedByUserLifespan?: number;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
adminEventsDetailsEnabled?: boolean;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
adminEventsEnabled?: boolean;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
adminTheme?: string;
/**
*
* @type {{ [key: string]: object; }}
* @memberof RealmRepresentation
*/
attributes?: { [key: string]: object; };
/**
*
* @type {Array<AuthenticationFlowRepresentation>}
* @memberof RealmRepresentation
*/
authenticationFlows?: Array<AuthenticationFlowRepresentation>;
/**
*
* @type {Array<AuthenticatorConfigRepresentation>}
* @memberof RealmRepresentation
*/
authenticatorConfig?: Array<AuthenticatorConfigRepresentation>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
browserFlow?: string;
/**
*
* @type {{ [key: string]: object; }}
* @memberof RealmRepresentation
*/
browserSecurityHeaders?: { [key: string]: object; };
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
bruteForceProtected?: boolean;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
clientAuthenticationFlow?: string;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
clientOfflineSessionIdleTimeout?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
clientOfflineSessionMaxLifespan?: number;
/**
*
* @type {JsonNode}
* @memberof RealmRepresentation
*/
clientPolicies?: JsonNode;
/**
*
* @type {JsonNode}
* @memberof RealmRepresentation
*/
clientProfiles?: JsonNode;
/**
*
* @type {{ [key: string]: object; }}
* @memberof RealmRepresentation
*/
clientScopeMappings?: { [key: string]: object; };
/**
*
* @type {Array<ClientScopeRepresentation>}
* @memberof RealmRepresentation
*/
clientScopes?: Array<ClientScopeRepresentation>;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
clientSessionIdleTimeout?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
clientSessionMaxLifespan?: number;
/**
*
* @type {Array<ClientRepresentation>}
* @memberof RealmRepresentation
*/
clients?: Array<ClientRepresentation>;
/**
*
* @type {MultivaluedHashMap}
* @memberof RealmRepresentation
*/
components?: MultivaluedHashMap;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
defaultDefaultClientScopes?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
defaultGroups?: Array<string>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
defaultLocale?: string;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
defaultOptionalClientScopes?: Array<string>;
/**
*
* @type {RoleRepresentation}
* @memberof RealmRepresentation
*/
defaultRole?: RoleRepresentation;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
defaultSignatureAlgorithm?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
directGrantFlow?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
displayName?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
displayNameHtml?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
dockerAuthenticationFlow?: string;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
duplicateEmailsAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
editUsernameAllowed?: boolean;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
emailTheme?: string;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
enabled?: boolean;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
enabledEventTypes?: Array<string>;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
eventsEnabled?: boolean;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
eventsExpiration?: number;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
eventsListeners?: Array<string>;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
failureFactor?: number;
/**
*
* @type {Array<UserRepresentation>}
* @memberof RealmRepresentation
*/
federatedUsers?: Array<UserRepresentation>;
/**
*
* @type {Array<GroupRepresentation>}
* @memberof RealmRepresentation
*/
groups?: Array<GroupRepresentation>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
id?: string;
/**
*
* @type {Array<IdentityProviderMapperRepresentation>}
* @memberof RealmRepresentation
*/
identityProviderMappers?: Array<IdentityProviderMapperRepresentation>;
/**
*
* @type {Array<IdentityProviderRepresentation>}
* @memberof RealmRepresentation
*/
identityProviders?: Array<IdentityProviderRepresentation>;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
internationalizationEnabled?: boolean;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
keycloakVersion?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
loginTheme?: string;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
loginWithEmailAllowed?: boolean;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
maxDeltaTimeSeconds?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
maxFailureWaitSeconds?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
minimumQuickLoginWaitSeconds?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
notBefore?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
oAuth2DeviceCodeLifespan?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
oAuth2DevicePollingInterval?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
oauth2DeviceCodeLifespan?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
oauth2DevicePollingInterval?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
offlineSessionIdleTimeout?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
offlineSessionMaxLifespan?: number;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
offlineSessionMaxLifespanEnabled?: boolean;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
otpPolicyAlgorithm?: string;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
otpPolicyDigits?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
otpPolicyInitialCounter?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
otpPolicyLookAheadWindow?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
otpPolicyPeriod?: number;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
otpPolicyType?: string;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
otpSupportedApplications?: Array<string>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
passwordPolicy?: string;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
permanentLockout?: boolean;
/**
*
* @type {Array<ProtocolMapperRepresentation>}
* @memberof RealmRepresentation
*/
protocolMappers?: Array<ProtocolMapperRepresentation>;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
quickLoginCheckMilliSeconds?: number;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
realm?: string;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
refreshTokenMaxReuse?: number;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
registrationAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
registrationEmailAsUsername?: boolean;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
registrationFlow?: string;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
rememberMe?: boolean;
/**
*
* @type {Array<RequiredActionProviderRepresentation>}
* @memberof RealmRepresentation
*/
requiredActions?: Array<RequiredActionProviderRepresentation>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
resetCredentialsFlow?: string;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
resetPasswordAllowed?: boolean;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
revokeRefreshToken?: boolean;
/**
*
* @type {RolesRepresentation}
* @memberof RealmRepresentation
*/
roles?: RolesRepresentation;
/**
*
* @type {Array<ScopeMappingRepresentation>}
* @memberof RealmRepresentation
*/
scopeMappings?: Array<ScopeMappingRepresentation>;
/**
*
* @type {{ [key: string]: object; }}
* @memberof RealmRepresentation
*/
smtpServer?: { [key: string]: object; };
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
sslRequired?: string;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
ssoSessionIdleTimeout?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
ssoSessionIdleTimeoutRememberMe?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
ssoSessionMaxLifespan?: number;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
ssoSessionMaxLifespanRememberMe?: number;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
supportedLocales?: Array<string>;
/**
*
* @type {Array<UserFederationMapperRepresentation>}
* @memberof RealmRepresentation
*/
userFederationMappers?: Array<UserFederationMapperRepresentation>;
/**
*
* @type {Array<UserFederationProviderRepresentation>}
* @memberof RealmRepresentation
*/
userFederationProviders?: Array<UserFederationProviderRepresentation>;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
userManagedAccessAllowed?: boolean;
/**
*
* @type {Array<UserRepresentation>}
* @memberof RealmRepresentation
*/
users?: Array<UserRepresentation>;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
verifyEmail?: boolean;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
waitIncrementSeconds?: number;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
webAuthnPolicyAcceptableAaguids?: Array<string>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyAttestationConveyancePreference?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyAuthenticatorAttachment?: string;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
webAuthnPolicyAvoidSameAuthenticatorRegister?: boolean;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
webAuthnPolicyCreateTimeout?: number;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessAcceptableAaguids?: Array<string>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessAttestationConveyancePreference?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessAuthenticatorAttachment?: string;
/**
*
* @type {boolean}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister?: boolean;
/**
*
* @type {number}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessCreateTimeout?: number;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessRequireResidentKey?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessRpEntityName?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessRpId?: string;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessSignatureAlgorithms?: Array<string>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyPasswordlessUserVerificationRequirement?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyRequireResidentKey?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyRpEntityName?: string;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyRpId?: string;
/**
*
* @type {Array<string>}
* @memberof RealmRepresentation
*/
webAuthnPolicySignatureAlgorithms?: Array<string>;
/**
*
* @type {string}
* @memberof RealmRepresentation
*/
webAuthnPolicyUserVerificationRequirement?: string;
}
export function RealmRepresentationFromJSON(json: any): RealmRepresentation {
return RealmRepresentationFromJSONTyped(json, false);
}
export function RealmRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RealmRepresentation {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'accessCodeLifespan': !exists(json, 'accessCodeLifespan') ? undefined : json['accessCodeLifespan'],
'accessCodeLifespanLogin': !exists(json, 'accessCodeLifespanLogin') ? undefined : json['accessCodeLifespanLogin'],
'accessCodeLifespanUserAction': !exists(json, 'accessCodeLifespanUserAction') ? undefined : json['accessCodeLifespanUserAction'],
'accessTokenLifespan': !exists(json, 'accessTokenLifespan') ? undefined : json['accessTokenLifespan'],
'accessTokenLifespanForImplicitFlow': !exists(json, 'accessTokenLifespanForImplicitFlow') ? undefined : json['accessTokenLifespanForImplicitFlow'],
'accountTheme': !exists(json, 'accountTheme') ? undefined : json['accountTheme'],
'actionTokenGeneratedByAdminLifespan': !exists(json, 'actionTokenGeneratedByAdminLifespan') ? undefined : json['actionTokenGeneratedByAdminLifespan'],
'actionTokenGeneratedByUserLifespan': !exists(json, 'actionTokenGeneratedByUserLifespan') ? undefined : json['actionTokenGeneratedByUserLifespan'],
'adminEventsDetailsEnabled': !exists(json, 'adminEventsDetailsEnabled') ? undefined : json['adminEventsDetailsEnabled'],
'adminEventsEnabled': !exists(json, 'adminEventsEnabled') ? undefined : json['adminEventsEnabled'],
'adminTheme': !exists(json, 'adminTheme') ? undefined : json['adminTheme'],
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
'authenticationFlows': !exists(json, 'authenticationFlows') ? undefined : ((json['authenticationFlows'] as Array<any>).map(AuthenticationFlowRepresentationFromJSON)),
'authenticatorConfig': !exists(json, 'authenticatorConfig') ? undefined : ((json['authenticatorConfig'] as Array<any>).map(AuthenticatorConfigRepresentationFromJSON)),
'browserFlow': !exists(json, 'browserFlow') ? undefined : json['browserFlow'],
'browserSecurityHeaders': !exists(json, 'browserSecurityHeaders') ? undefined : json['browserSecurityHeaders'],
'bruteForceProtected': !exists(json, 'bruteForceProtected') ? undefined : json['bruteForceProtected'],
'clientAuthenticationFlow': !exists(json, 'clientAuthenticationFlow') ? undefined : json['clientAuthenticationFlow'],
'clientOfflineSessionIdleTimeout': !exists(json, 'clientOfflineSessionIdleTimeout') ? undefined : json['clientOfflineSessionIdleTimeout'],
'clientOfflineSessionMaxLifespan': !exists(json, 'clientOfflineSessionMaxLifespan') ? undefined : json['clientOfflineSessionMaxLifespan'],
'clientPolicies': !exists(json, 'clientPolicies') ? undefined : JsonNodeFromJSON(json['clientPolicies']),
'clientProfiles': !exists(json, 'clientProfiles') ? undefined : JsonNodeFromJSON(json['clientProfiles']),
'clientScopeMappings': !exists(json, 'clientScopeMappings') ? undefined : json['clientScopeMappings'],
'clientScopes': !exists(json, 'clientScopes') ? undefined : ((json['clientScopes'] as Array<any>).map(ClientScopeRepresentationFromJSON)),
'clientSessionIdleTimeout': !exists(json, 'clientSessionIdleTimeout') ? undefined : json['clientSessionIdleTimeout'],
'clientSessionMaxLifespan': !exists(json, 'clientSessionMaxLifespan') ? undefined : json['clientSessionMaxLifespan'],
'clients': !exists(json, 'clients') ? undefined : ((json['clients'] as Array<any>).map(ClientRepresentationFromJSON)),
'components': !exists(json, 'components') ? undefined : MultivaluedHashMapFromJSON(json['components']),
'defaultDefaultClientScopes': !exists(json, 'defaultDefaultClientScopes') ? undefined : json['defaultDefaultClientScopes'],
'defaultGroups': !exists(json, 'defaultGroups') ? undefined : json['defaultGroups'],
'defaultLocale': !exists(json, 'defaultLocale') ? undefined : json['defaultLocale'],
'defaultOptionalClientScopes': !exists(json, 'defaultOptionalClientScopes') ? undefined : json['defaultOptionalClientScopes'],
'defaultRole': !exists(json, 'defaultRole') ? undefined : RoleRepresentationFromJSON(json['defaultRole']),
'defaultSignatureAlgorithm': !exists(json, 'defaultSignatureAlgorithm') ? undefined : json['defaultSignatureAlgorithm'],
'directGrantFlow': !exists(json, 'directGrantFlow') ? undefined : json['directGrantFlow'],
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
'displayNameHtml': !exists(json, 'displayNameHtml') ? undefined : json['displayNameHtml'],
'dockerAuthenticationFlow': !exists(json, 'dockerAuthenticationFlow') ? undefined : json['dockerAuthenticationFlow'],
'duplicateEmailsAllowed': !exists(json, 'duplicateEmailsAllowed') ? undefined : json['duplicateEmailsAllowed'],
'editUsernameAllowed': !exists(json, 'editUsernameAllowed') ? undefined : json['editUsernameAllowed'],
'emailTheme': !exists(json, 'emailTheme') ? undefined : json['emailTheme'],
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
'enabledEventTypes': !exists(json, 'enabledEventTypes') ? undefined : json['enabledEventTypes'],
'eventsEnabled': !exists(json, 'eventsEnabled') ? undefined : json['eventsEnabled'],
'eventsExpiration': !exists(json, 'eventsExpiration') ? undefined : json['eventsExpiration'],
'eventsListeners': !exists(json, 'eventsListeners') ? undefined : json['eventsListeners'],
'failureFactor': !exists(json, 'failureFactor') ? undefined : json['failureFactor'],
'federatedUsers': !exists(json, 'federatedUsers') ? undefined : ((json['federatedUsers'] as Array<any>).map(UserRepresentationFromJSON)),
'groups': !exists(json, 'groups') ? undefined : ((json['groups'] as Array<any>).map(GroupRepresentationFromJSON)),
'id': !exists(json, 'id') ? undefined : json['id'],
'identityProviderMappers': !exists(json, 'identityProviderMappers') ? undefined : ((json['identityProviderMappers'] as Array<any>).map(IdentityProviderMapperRepresentationFromJSON)),
'identityProviders': !exists(json, 'identityProviders') ? undefined : ((json['identityProviders'] as Array<any>).map(IdentityProviderRepresentationFromJSON)),
'internationalizationEnabled': !exists(json, 'internationalizationEnabled') ? undefined : json['internationalizationEnabled'],
'keycloakVersion': !exists(json, 'keycloakVersion') ? undefined : json['keycloakVersion'],
'loginTheme': !exists(json, 'loginTheme') ? undefined : json['loginTheme'],
'loginWithEmailAllowed': !exists(json, 'loginWithEmailAllowed') ? undefined : json['loginWithEmailAllowed'],
'maxDeltaTimeSeconds': !exists(json, 'maxDeltaTimeSeconds') ? undefined : json['maxDeltaTimeSeconds'],
'maxFailureWaitSeconds': !exists(json, 'maxFailureWaitSeconds') ? undefined : json['maxFailureWaitSeconds'],
'minimumQuickLoginWaitSeconds': !exists(json, 'minimumQuickLoginWaitSeconds') ? undefined : json['minimumQuickLoginWaitSeconds'],
'notBefore': !exists(json, 'notBefore') ? undefined : json['notBefore'],
'oAuth2DeviceCodeLifespan': !exists(json, 'oAuth2DeviceCodeLifespan') ? undefined : json['oAuth2DeviceCodeLifespan'],
'oAuth2DevicePollingInterval': !exists(json, 'oAuth2DevicePollingInterval') ? undefined : json['oAuth2DevicePollingInterval'],
'oauth2DeviceCodeLifespan': !exists(json, 'oauth2DeviceCodeLifespan') ? undefined : json['oauth2DeviceCodeLifespan'],
'oauth2DevicePollingInterval': !exists(json, 'oauth2DevicePollingInterval') ? undefined : json['oauth2DevicePollingInterval'],
'offlineSessionIdleTimeout': !exists(json, 'offlineSessionIdleTimeout') ? undefined : json['offlineSessionIdleTimeout'],
'offlineSessionMaxLifespan': !exists(json, 'offlineSessionMaxLifespan') ? undefined : json['offlineSessionMaxLifespan'],
'offlineSessionMaxLifespanEnabled': !exists(json, 'offlineSessionMaxLifespanEnabled') ? undefined : json['offlineSessionMaxLifespanEnabled'],
'otpPolicyAlgorithm': !exists(json, 'otpPolicyAlgorithm') ? undefined : json['otpPolicyAlgorithm'],
'otpPolicyDigits': !exists(json, 'otpPolicyDigits') ? undefined : json['otpPolicyDigits'],
'otpPolicyInitialCounter': !exists(json, 'otpPolicyInitialCounter') ? undefined : json['otpPolicyInitialCounter'],
'otpPolicyLookAheadWindow': !exists(json, 'otpPolicyLookAheadWindow') ? undefined : json['otpPolicyLookAheadWindow'],
'otpPolicyPeriod': !exists(json, 'otpPolicyPeriod') ? undefined : json['otpPolicyPeriod'],
'otpPolicyType': !exists(json, 'otpPolicyType') ? undefined : json['otpPolicyType'],
'otpSupportedApplications': !exists(json, 'otpSupportedApplications') ? undefined : json['otpSupportedApplications'],
'passwordPolicy': !exists(json, 'passwordPolicy') ? undefined : json['passwordPolicy'],
'permanentLockout': !exists(json, 'permanentLockout') ? undefined : json['permanentLockout'],
'protocolMappers': !exists(json, 'protocolMappers') ? undefined : ((json['protocolMappers'] as Array<any>).map(ProtocolMapperRepresentationFromJSON)),
'quickLoginCheckMilliSeconds': !exists(json, 'quickLoginCheckMilliSeconds') ? undefined : json['quickLoginCheckMilliSeconds'],
'realm': !exists(json, 'realm') ? undefined : json['realm'],
'refreshTokenMaxReuse': !exists(json, 'refreshTokenMaxReuse') ? undefined : json['refreshTokenMaxReuse'],
'registrationAllowed': !exists(json, 'registrationAllowed') ? undefined : json['registrationAllowed'],
'registrationEmailAsUsername': !exists(json, 'registrationEmailAsUsername') ? undefined : json['registrationEmailAsUsername'],
'registrationFlow': !exists(json, 'registrationFlow') ? undefined : json['registrationFlow'],
'rememberMe': !exists(json, 'rememberMe') ? undefined : json['rememberMe'],
'requiredActions': !exists(json, 'requiredActions') ? undefined : ((json['requiredActions'] as Array<any>).map(RequiredActionProviderRepresentationFromJSON)),
'resetCredentialsFlow': !exists(json, 'resetCredentialsFlow') ? undefined : json['resetCredentialsFlow'],
'resetPasswordAllowed': !exists(json, 'resetPasswordAllowed') ? undefined : json['resetPasswordAllowed'],
'revokeRefreshToken': !exists(json, 'revokeRefreshToken') ? undefined : json['revokeRefreshToken'],
'roles': !exists(json, 'roles') ? undefined : RolesRepresentationFromJSON(json['roles']),
'scopeMappings': !exists(json, 'scopeMappings') ? undefined : ((json['scopeMappings'] as Array<any>).map(ScopeMappingRepresentationFromJSON)),
'smtpServer': !exists(json, 'smtpServer') ? undefined : json['smtpServer'],
'sslRequired': !exists(json, 'sslRequired') ? undefined : json['sslRequired'],
'ssoSessionIdleTimeout': !exists(json, 'ssoSessionIdleTimeout') ? undefined : json['ssoSessionIdleTimeout'],
'ssoSessionIdleTimeoutRememberMe': !exists(json, 'ssoSessionIdleTimeoutRememberMe') ? undefined : json['ssoSessionIdleTimeoutRememberMe'],
'ssoSessionMaxLifespan': !exists(json, 'ssoSessionMaxLifespan') ? undefined : json['ssoSessionMaxLifespan'],
'ssoSessionMaxLifespanRememberMe': !exists(json, 'ssoSessionMaxLifespanRememberMe') ? undefined : json['ssoSessionMaxLifespanRememberMe'],
'supportedLocales': !exists(json, 'supportedLocales') ? undefined : json['supportedLocales'],
'userFederationMappers': !exists(json, 'userFederationMappers') ? undefined : ((json['userFederationMappers'] as Array<any>).map(UserFederationMapperRepresentationFromJSON)),
'userFederationProviders': !exists(json, 'userFederationProviders') ? undefined : ((json['userFederationProviders'] as Array<any>).map(UserFederationProviderRepresentationFromJSON)),
'userManagedAccessAllowed': !exists(json, 'userManagedAccessAllowed') ? undefined : json['userManagedAccessAllowed'],
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(UserRepresentationFromJSON)),
'verifyEmail': !exists(json, 'verifyEmail') ? undefined : json['verifyEmail'],
'waitIncrementSeconds': !exists(json, 'waitIncrementSeconds') ? undefined : json['waitIncrementSeconds'],
'webAuthnPolicyAcceptableAaguids': !exists(json, 'webAuthnPolicyAcceptableAaguids') ? undefined : json['webAuthnPolicyAcceptableAaguids'],
'webAuthnPolicyAttestationConveyancePreference': !exists(json, 'webAuthnPolicyAttestationConveyancePreference') ? undefined : json['webAuthnPolicyAttestationConveyancePreference'],
'webAuthnPolicyAuthenticatorAttachment': !exists(json, 'webAuthnPolicyAuthenticatorAttachment') ? undefined : json['webAuthnPolicyAuthenticatorAttachment'],
'webAuthnPolicyAvoidSameAuthenticatorRegister': !exists(json, 'webAuthnPolicyAvoidSameAuthenticatorRegister') ? undefined : json['webAuthnPolicyAvoidSameAuthenticatorRegister'],
'webAuthnPolicyCreateTimeout': !exists(json, 'webAuthnPolicyCreateTimeout') ? undefined : json['webAuthnPolicyCreateTimeout'],
'webAuthnPolicyPasswordlessAcceptableAaguids': !exists(json, 'webAuthnPolicyPasswordlessAcceptableAaguids') ? undefined : json['webAuthnPolicyPasswordlessAcceptableAaguids'],
'webAuthnPolicyPasswordlessAttestationConveyancePreference': !exists(json, 'webAuthnPolicyPasswordlessAttestationConveyancePreference') ? undefined : json['webAuthnPolicyPasswordlessAttestationConveyancePreference'],
'webAuthnPolicyPasswordlessAuthenticatorAttachment': !exists(json, 'webAuthnPolicyPasswordlessAuthenticatorAttachment') ? undefined : json['webAuthnPolicyPasswordlessAuthenticatorAttachment'],
'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister': !exists(json, 'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister') ? undefined : json['webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister'],
'webAuthnPolicyPasswordlessCreateTimeout': !exists(json, 'webAuthnPolicyPasswordlessCreateTimeout') ? undefined : json['webAuthnPolicyPasswordlessCreateTimeout'],
'webAuthnPolicyPasswordlessRequireResidentKey': !exists(json, 'webAuthnPolicyPasswordlessRequireResidentKey') ? undefined : json['webAuthnPolicyPasswordlessRequireResidentKey'],
'webAuthnPolicyPasswordlessRpEntityName': !exists(json, 'webAuthnPolicyPasswordlessRpEntityName') ? undefined : json['webAuthnPolicyPasswordlessRpEntityName'],
'webAuthnPolicyPasswordlessRpId': !exists(json, 'webAuthnPolicyPasswordlessRpId') ? undefined : json['webAuthnPolicyPasswordlessRpId'],
'webAuthnPolicyPasswordlessSignatureAlgorithms': !exists(json, 'webAuthnPolicyPasswordlessSignatureAlgorithms') ? undefined : json['webAuthnPolicyPasswordlessSignatureAlgorithms'],
'webAuthnPolicyPasswordlessUserVerificationRequirement': !exists(json, 'webAuthnPolicyPasswordlessUserVerificationRequirement') ? undefined : json['webAuthnPolicyPasswordlessUserVerificationRequirement'],
'webAuthnPolicyRequireResidentKey': !exists(json, 'webAuthnPolicyRequireResidentKey') ? undefined : json['webAuthnPolicyRequireResidentKey'],
'webAuthnPolicyRpEntityName': !exists(json, 'webAuthnPolicyRpEntityName') ? undefined : json['webAuthnPolicyRpEntityName'],
'webAuthnPolicyRpId': !exists(json, 'webAuthnPolicyRpId') ? undefined : json['webAuthnPolicyRpId'],
'webAuthnPolicySignatureAlgorithms': !exists(json, 'webAuthnPolicySignatureAlgorithms') ? undefined : json['webAuthnPolicySignatureAlgorithms'],
'webAuthnPolicyUserVerificationRequirement': !exists(json, 'webAuthnPolicyUserVerificationRequirement') ? undefined : json['webAuthnPolicyUserVerificationRequirement'],
};
}
export function RealmRepresentationToJSON(value?: RealmRepresentation | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'accessCodeLifespan': value.accessCodeLifespan,
'accessCodeLifespanLogin': value.accessCodeLifespanLogin,
'accessCodeLifespanUserAction': value.accessCodeLifespanUserAction,
'accessTokenLifespan': value.accessTokenLifespan,
'accessTokenLifespanForImplicitFlow': value.accessTokenLifespanForImplicitFlow,
'accountTheme': value.accountTheme,
'actionTokenGeneratedByAdminLifespan': value.actionTokenGeneratedByAdminLifespan,
'actionTokenGeneratedByUserLifespan': value.actionTokenGeneratedByUserLifespan,
'adminEventsDetailsEnabled': value.adminEventsDetailsEnabled,
'adminEventsEnabled': value.adminEventsEnabled,
'adminTheme': value.adminTheme,
'attributes': value.attributes,
'authenticationFlows': value.authenticationFlows === undefined ? undefined : ((value.authenticationFlows as Array<any>).map(AuthenticationFlowRepresentationToJSON)),
'authenticatorConfig': value.authenticatorConfig === undefined ? undefined : ((value.authenticatorConfig as Array<any>).map(AuthenticatorConfigRepresentationToJSON)),
'browserFlow': value.browserFlow,
'browserSecurityHeaders': value.browserSecurityHeaders,
'bruteForceProtected': value.bruteForceProtected,
'clientAuthenticationFlow': value.clientAuthenticationFlow,
'clientOfflineSessionIdleTimeout': value.clientOfflineSessionIdleTimeout,
'clientOfflineSessionMaxLifespan': value.clientOfflineSessionMaxLifespan,
'clientPolicies': JsonNodeToJSON(value.clientPolicies),
'clientProfiles': JsonNodeToJSON(value.clientProfiles),
'clientScopeMappings': value.clientScopeMappings,
'clientScopes': value.clientScopes === undefined ? undefined : ((value.clientScopes as Array<any>).map(ClientScopeRepresentationToJSON)),
'clientSessionIdleTimeout': value.clientSessionIdleTimeout,
'clientSessionMaxLifespan': value.clientSessionMaxLifespan,
'clients': value.clients === undefined ? undefined : ((value.clients as Array<any>).map(ClientRepresentationToJSON)),
'components': MultivaluedHashMapToJSON(value.components),
'defaultDefaultClientScopes': value.defaultDefaultClientScopes,
'defaultGroups': value.defaultGroups,
'defaultLocale': value.defaultLocale,
'defaultOptionalClientScopes': value.defaultOptionalClientScopes,
'defaultRole': RoleRepresentationToJSON(value.defaultRole),
'defaultSignatureAlgorithm': value.defaultSignatureAlgorithm,
'directGrantFlow': value.directGrantFlow,
'displayName': value.displayName,
'displayNameHtml': value.displayNameHtml,
'dockerAuthenticationFlow': value.dockerAuthenticationFlow,
'duplicateEmailsAllowed': value.duplicateEmailsAllowed,
'editUsernameAllowed': value.editUsernameAllowed,
'emailTheme': value.emailTheme,
'enabled': value.enabled,
'enabledEventTypes': value.enabledEventTypes,
'eventsEnabled': value.eventsEnabled,
'eventsExpiration': value.eventsExpiration,
'eventsListeners': value.eventsListeners,
'failureFactor': value.failureFactor,
'federatedUsers': value.federatedUsers === undefined ? undefined : ((value.federatedUsers as Array<any>).map(UserRepresentationToJSON)),
'groups': value.groups === undefined ? undefined : ((value.groups as Array<any>).map(GroupRepresentationToJSON)),
'id': value.id,
'identityProviderMappers': value.identityProviderMappers === undefined ? undefined : ((value.identityProviderMappers as Array<any>).map(IdentityProviderMapperRepresentationToJSON)),
'identityProviders': value.identityProviders === undefined ? undefined : ((value.identityProviders as Array<any>).map(IdentityProviderRepresentationToJSON)),
'internationalizationEnabled': value.internationalizationEnabled,
'keycloakVersion': value.keycloakVersion,
'loginTheme': value.loginTheme,
'loginWithEmailAllowed': value.loginWithEmailAllowed,
'maxDeltaTimeSeconds': value.maxDeltaTimeSeconds,
'maxFailureWaitSeconds': value.maxFailureWaitSeconds,
'minimumQuickLoginWaitSeconds': value.minimumQuickLoginWaitSeconds,
'notBefore': value.notBefore,
'oAuth2DeviceCodeLifespan': value.oAuth2DeviceCodeLifespan,
'oAuth2DevicePollingInterval': value.oAuth2DevicePollingInterval,
'oauth2DeviceCodeLifespan': value.oauth2DeviceCodeLifespan,
'oauth2DevicePollingInterval': value.oauth2DevicePollingInterval,
'offlineSessionIdleTimeout': value.offlineSessionIdleTimeout,
'offlineSessionMaxLifespan': value.offlineSessionMaxLifespan,
'offlineSessionMaxLifespanEnabled': value.offlineSessionMaxLifespanEnabled,
'otpPolicyAlgorithm': value.otpPolicyAlgorithm,
'otpPolicyDigits': value.otpPolicyDigits,
'otpPolicyInitialCounter': value.otpPolicyInitialCounter,
'otpPolicyLookAheadWindow': value.otpPolicyLookAheadWindow,
'otpPolicyPeriod': value.otpPolicyPeriod,
'otpPolicyType': value.otpPolicyType,
'otpSupportedApplications': value.otpSupportedApplications,
'passwordPolicy': value.passwordPolicy,
'permanentLockout': value.permanentLockout,
'protocolMappers': value.protocolMappers === undefined ? undefined : ((value.protocolMappers as Array<any>).map(ProtocolMapperRepresentationToJSON)),
'quickLoginCheckMilliSeconds': value.quickLoginCheckMilliSeconds,
'realm': value.realm,
'refreshTokenMaxReuse': value.refreshTokenMaxReuse,
'registrationAllowed': value.registrationAllowed,
'registrationEmailAsUsername': value.registrationEmailAsUsername,
'registrationFlow': value.registrationFlow,
'rememberMe': value.rememberMe,
'requiredActions': value.requiredActions === undefined ? undefined : ((value.requiredActions as Array<any>).map(RequiredActionProviderRepresentationToJSON)),
'resetCredentialsFlow': value.resetCredentialsFlow,
'resetPasswordAllowed': value.resetPasswordAllowed,
'revokeRefreshToken': value.revokeRefreshToken,
'roles': RolesRepresentationToJSON(value.roles),
'scopeMappings': value.scopeMappings === undefined ? undefined : ((value.scopeMappings as Array<any>).map(ScopeMappingRepresentationToJSON)),
'smtpServer': value.smtpServer,
'sslRequired': value.sslRequired,
'ssoSessionIdleTimeout': value.ssoSessionIdleTimeout,
'ssoSessionIdleTimeoutRememberMe': value.ssoSessionIdleTimeoutRememberMe,
'ssoSessionMaxLifespan': value.ssoSessionMaxLifespan,
'ssoSessionMaxLifespanRememberMe': value.ssoSessionMaxLifespanRememberMe,
'supportedLocales': value.supportedLocales,
'userFederationMappers': value.userFederationMappers === undefined ? undefined : ((value.userFederationMappers as Array<any>).map(UserFederationMapperRepresentationToJSON)),
'userFederationProviders': value.userFederationProviders === undefined ? undefined : ((value.userFederationProviders as Array<any>).map(UserFederationProviderRepresentationToJSON)),
'userManagedAccessAllowed': value.userManagedAccessAllowed,
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(UserRepresentationToJSON)),
'verifyEmail': value.verifyEmail,
'waitIncrementSeconds': value.waitIncrementSeconds,
'webAuthnPolicyAcceptableAaguids': value.webAuthnPolicyAcceptableAaguids,
'webAuthnPolicyAttestationConveyancePreference': value.webAuthnPolicyAttestationConveyancePreference,
'webAuthnPolicyAuthenticatorAttachment': value.webAuthnPolicyAuthenticatorAttachment,
'webAuthnPolicyAvoidSameAuthenticatorRegister': value.webAuthnPolicyAvoidSameAuthenticatorRegister,
'webAuthnPolicyCreateTimeout': value.webAuthnPolicyCreateTimeout,
'webAuthnPolicyPasswordlessAcceptableAaguids': value.webAuthnPolicyPasswordlessAcceptableAaguids,
'webAuthnPolicyPasswordlessAttestationConveyancePreference': value.webAuthnPolicyPasswordlessAttestationConveyancePreference,
'webAuthnPolicyPasswordlessAuthenticatorAttachment': value.webAuthnPolicyPasswordlessAuthenticatorAttachment,
'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister': value.webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister,
'webAuthnPolicyPasswordlessCreateTimeout': value.webAuthnPolicyPasswordlessCreateTimeout,
'webAuthnPolicyPasswordlessRequireResidentKey': value.webAuthnPolicyPasswordlessRequireResidentKey,
'webAuthnPolicyPasswordlessRpEntityName': value.webAuthnPolicyPasswordlessRpEntityName,
'webAuthnPolicyPasswordlessRpId': value.webAuthnPolicyPasswordlessRpId,
'webAuthnPolicyPasswordlessSignatureAlgorithms': value.webAuthnPolicyPasswordlessSignatureAlgorithms,
'webAuthnPolicyPasswordlessUserVerificationRequirement': value.webAuthnPolicyPasswordlessUserVerificationRequirement,
'webAuthnPolicyRequireResidentKey': value.webAuthnPolicyRequireResidentKey,
'webAuthnPolicyRpEntityName': value.webAuthnPolicyRpEntityName,
'webAuthnPolicyRpId': value.webAuthnPolicyRpId,
'webAuthnPolicySignatureAlgorithms': value.webAuthnPolicySignatureAlgorithms,
'webAuthnPolicyUserVerificationRequirement': value.webAuthnPolicyUserVerificationRequirement,
};
}