131 lines
3.7 KiB
TypeScript
131 lines
3.7 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';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
export interface KeysMetadataRepresentationKeyMetadataRepresentation {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
algorithm?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
certificate?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
kid?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
providerId?: string;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
providerPriority?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
publicKey?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
status?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
type?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
|
*/
|
|
use?: KeysMetadataRepresentationKeyMetadataRepresentationUseEnum;
|
|
}
|
|
|
|
export function KeysMetadataRepresentationKeyMetadataRepresentationFromJSON(json: any): KeysMetadataRepresentationKeyMetadataRepresentation {
|
|
return KeysMetadataRepresentationKeyMetadataRepresentationFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function KeysMetadataRepresentationKeyMetadataRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeysMetadataRepresentationKeyMetadataRepresentation {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'algorithm': !exists(json, 'algorithm') ? undefined : json['algorithm'],
|
|
'certificate': !exists(json, 'certificate') ? undefined : json['certificate'],
|
|
'kid': !exists(json, 'kid') ? undefined : json['kid'],
|
|
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
|
'providerPriority': !exists(json, 'providerPriority') ? undefined : json['providerPriority'],
|
|
'publicKey': !exists(json, 'publicKey') ? undefined : json['publicKey'],
|
|
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
'use': !exists(json, 'use') ? undefined : json['use'],
|
|
};
|
|
}
|
|
|
|
export function KeysMetadataRepresentationKeyMetadataRepresentationToJSON(value?: KeysMetadataRepresentationKeyMetadataRepresentation | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'algorithm': value.algorithm,
|
|
'certificate': value.certificate,
|
|
'kid': value.kid,
|
|
'providerId': value.providerId,
|
|
'providerPriority': value.providerPriority,
|
|
'publicKey': value.publicKey,
|
|
'status': value.status,
|
|
'type': value.type,
|
|
'use': value.use,
|
|
};
|
|
}
|
|
|
|
/**
|
|
* @export
|
|
* @enum {string}
|
|
*/
|
|
export enum KeysMetadataRepresentationKeyMetadataRepresentationUseEnum {
|
|
SIG = 'SIG',
|
|
ENC = 'ENC'
|
|
}
|
|
|
|
|