365 lines
12 KiB
TypeScript
365 lines
12 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 {
|
|
ProtocolMapperRepresentation,
|
|
ProtocolMapperRepresentationFromJSON,
|
|
ProtocolMapperRepresentationFromJSONTyped,
|
|
ProtocolMapperRepresentationToJSON,
|
|
ResourceServerRepresentation,
|
|
ResourceServerRepresentationFromJSON,
|
|
ResourceServerRepresentationFromJSONTyped,
|
|
ResourceServerRepresentationToJSON,
|
|
} from './';
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface ClientRepresentation
|
|
*/
|
|
export interface ClientRepresentation {
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
access?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
adminUrl?: string;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
alwaysDisplayInConsole?: boolean;
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
attributes?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
authenticationFlowBindingOverrides?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
authorizationServicesEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {ResourceServerRepresentation}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
authorizationSettings?: ResourceServerRepresentation;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
baseUrl?: string;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
bearerOnly?: boolean;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
clientAuthenticatorType?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
clientId?: string;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
consentRequired?: boolean;
|
|
/**
|
|
*
|
|
* @type {Array<string>}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
defaultClientScopes?: Array<string>;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
description?: string;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
directAccessGrantsEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
enabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
frontchannelLogout?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
fullScopeAllowed?: boolean;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
id?: string;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
implicitFlowEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
name?: string;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
nodeReRegistrationTimeout?: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
notBefore?: number;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
oauth2DeviceAuthorizationGrantEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {Array<string>}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
optionalClientScopes?: Array<string>;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
origin?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
protocol?: string;
|
|
/**
|
|
*
|
|
* @type {Array<ProtocolMapperRepresentation>}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
protocolMappers?: Array<ProtocolMapperRepresentation>;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
publicClient?: boolean;
|
|
/**
|
|
*
|
|
* @type {Array<string>}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
redirectUris?: Array<string>;
|
|
/**
|
|
*
|
|
* @type {{ [key: string]: object; }}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
registeredNodes?: { [key: string]: object; };
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
registrationAccessToken?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
rootUrl?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
secret?: string;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
serviceAccountsEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
standardFlowEnabled?: boolean;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
surrogateAuthRequired?: boolean;
|
|
/**
|
|
*
|
|
* @type {Array<string>}
|
|
* @memberof ClientRepresentation
|
|
*/
|
|
webOrigins?: Array<string>;
|
|
}
|
|
|
|
export function ClientRepresentationFromJSON(json: any): ClientRepresentation {
|
|
return ClientRepresentationFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ClientRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientRepresentation {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'access': !exists(json, 'access') ? undefined : json['access'],
|
|
'adminUrl': !exists(json, 'adminUrl') ? undefined : json['adminUrl'],
|
|
'alwaysDisplayInConsole': !exists(json, 'alwaysDisplayInConsole') ? undefined : json['alwaysDisplayInConsole'],
|
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
'authenticationFlowBindingOverrides': !exists(json, 'authenticationFlowBindingOverrides') ? undefined : json['authenticationFlowBindingOverrides'],
|
|
'authorizationServicesEnabled': !exists(json, 'authorizationServicesEnabled') ? undefined : json['authorizationServicesEnabled'],
|
|
'authorizationSettings': !exists(json, 'authorizationSettings') ? undefined : ResourceServerRepresentationFromJSON(json['authorizationSettings']),
|
|
'baseUrl': !exists(json, 'baseUrl') ? undefined : json['baseUrl'],
|
|
'bearerOnly': !exists(json, 'bearerOnly') ? undefined : json['bearerOnly'],
|
|
'clientAuthenticatorType': !exists(json, 'clientAuthenticatorType') ? undefined : json['clientAuthenticatorType'],
|
|
'clientId': !exists(json, 'clientId') ? undefined : json['clientId'],
|
|
'consentRequired': !exists(json, 'consentRequired') ? undefined : json['consentRequired'],
|
|
'defaultClientScopes': !exists(json, 'defaultClientScopes') ? undefined : json['defaultClientScopes'],
|
|
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
'directAccessGrantsEnabled': !exists(json, 'directAccessGrantsEnabled') ? undefined : json['directAccessGrantsEnabled'],
|
|
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
|
'frontchannelLogout': !exists(json, 'frontchannelLogout') ? undefined : json['frontchannelLogout'],
|
|
'fullScopeAllowed': !exists(json, 'fullScopeAllowed') ? undefined : json['fullScopeAllowed'],
|
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
'implicitFlowEnabled': !exists(json, 'implicitFlowEnabled') ? undefined : json['implicitFlowEnabled'],
|
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
'nodeReRegistrationTimeout': !exists(json, 'nodeReRegistrationTimeout') ? undefined : json['nodeReRegistrationTimeout'],
|
|
'notBefore': !exists(json, 'notBefore') ? undefined : json['notBefore'],
|
|
'oauth2DeviceAuthorizationGrantEnabled': !exists(json, 'oauth2DeviceAuthorizationGrantEnabled') ? undefined : json['oauth2DeviceAuthorizationGrantEnabled'],
|
|
'optionalClientScopes': !exists(json, 'optionalClientScopes') ? undefined : json['optionalClientScopes'],
|
|
'origin': !exists(json, 'origin') ? undefined : json['origin'],
|
|
'protocol': !exists(json, 'protocol') ? undefined : json['protocol'],
|
|
'protocolMappers': !exists(json, 'protocolMappers') ? undefined : ((json['protocolMappers'] as Array<any>).map(ProtocolMapperRepresentationFromJSON)),
|
|
'publicClient': !exists(json, 'publicClient') ? undefined : json['publicClient'],
|
|
'redirectUris': !exists(json, 'redirectUris') ? undefined : json['redirectUris'],
|
|
'registeredNodes': !exists(json, 'registeredNodes') ? undefined : json['registeredNodes'],
|
|
'registrationAccessToken': !exists(json, 'registrationAccessToken') ? undefined : json['registrationAccessToken'],
|
|
'rootUrl': !exists(json, 'rootUrl') ? undefined : json['rootUrl'],
|
|
'secret': !exists(json, 'secret') ? undefined : json['secret'],
|
|
'serviceAccountsEnabled': !exists(json, 'serviceAccountsEnabled') ? undefined : json['serviceAccountsEnabled'],
|
|
'standardFlowEnabled': !exists(json, 'standardFlowEnabled') ? undefined : json['standardFlowEnabled'],
|
|
'surrogateAuthRequired': !exists(json, 'surrogateAuthRequired') ? undefined : json['surrogateAuthRequired'],
|
|
'webOrigins': !exists(json, 'webOrigins') ? undefined : json['webOrigins'],
|
|
};
|
|
}
|
|
|
|
export function ClientRepresentationToJSON(value?: ClientRepresentation | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'access': value.access,
|
|
'adminUrl': value.adminUrl,
|
|
'alwaysDisplayInConsole': value.alwaysDisplayInConsole,
|
|
'attributes': value.attributes,
|
|
'authenticationFlowBindingOverrides': value.authenticationFlowBindingOverrides,
|
|
'authorizationServicesEnabled': value.authorizationServicesEnabled,
|
|
'authorizationSettings': ResourceServerRepresentationToJSON(value.authorizationSettings),
|
|
'baseUrl': value.baseUrl,
|
|
'bearerOnly': value.bearerOnly,
|
|
'clientAuthenticatorType': value.clientAuthenticatorType,
|
|
'clientId': value.clientId,
|
|
'consentRequired': value.consentRequired,
|
|
'defaultClientScopes': value.defaultClientScopes,
|
|
'description': value.description,
|
|
'directAccessGrantsEnabled': value.directAccessGrantsEnabled,
|
|
'enabled': value.enabled,
|
|
'frontchannelLogout': value.frontchannelLogout,
|
|
'fullScopeAllowed': value.fullScopeAllowed,
|
|
'id': value.id,
|
|
'implicitFlowEnabled': value.implicitFlowEnabled,
|
|
'name': value.name,
|
|
'nodeReRegistrationTimeout': value.nodeReRegistrationTimeout,
|
|
'notBefore': value.notBefore,
|
|
'oauth2DeviceAuthorizationGrantEnabled': value.oauth2DeviceAuthorizationGrantEnabled,
|
|
'optionalClientScopes': value.optionalClientScopes,
|
|
'origin': value.origin,
|
|
'protocol': value.protocol,
|
|
'protocolMappers': value.protocolMappers === undefined ? undefined : ((value.protocolMappers as Array<any>).map(ProtocolMapperRepresentationToJSON)),
|
|
'publicClient': value.publicClient,
|
|
'redirectUris': value.redirectUris,
|
|
'registeredNodes': value.registeredNodes,
|
|
'registrationAccessToken': value.registrationAccessToken,
|
|
'rootUrl': value.rootUrl,
|
|
'secret': value.secret,
|
|
'serviceAccountsEnabled': value.serviceAccountsEnabled,
|
|
'standardFlowEnabled': value.standardFlowEnabled,
|
|
'surrogateAuthRequired': value.surrogateAuthRequired,
|
|
'webOrigins': value.webOrigins,
|
|
};
|
|
}
|
|
|
|
|