122 lines
3.1 KiB
TypeScript
122 lines
3.1 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 CredentialRepresentation
|
|
*/
|
|
export interface CredentialRepresentation {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
createdDate?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
credentialData?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
id?: string;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
priority?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
secretData?: string;
|
|
/**
|
|
*
|
|
* @type {boolean}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
temporary?: boolean;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
type?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
userLabel?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof CredentialRepresentation
|
|
*/
|
|
value?: string;
|
|
}
|
|
|
|
export function CredentialRepresentationFromJSON(json: any): CredentialRepresentation {
|
|
return CredentialRepresentationFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function CredentialRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialRepresentation {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'createdDate': !exists(json, 'createdDate') ? undefined : json['createdDate'],
|
|
'credentialData': !exists(json, 'credentialData') ? undefined : json['credentialData'],
|
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
'priority': !exists(json, 'priority') ? undefined : json['priority'],
|
|
'secretData': !exists(json, 'secretData') ? undefined : json['secretData'],
|
|
'temporary': !exists(json, 'temporary') ? undefined : json['temporary'],
|
|
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
'userLabel': !exists(json, 'userLabel') ? undefined : json['userLabel'],
|
|
'value': !exists(json, 'value') ? undefined : json['value'],
|
|
};
|
|
}
|
|
|
|
export function CredentialRepresentationToJSON(value?: CredentialRepresentation | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'createdDate': value.createdDate,
|
|
'credentialData': value.credentialData,
|
|
'id': value.id,
|
|
'priority': value.priority,
|
|
'secretData': value.secretData,
|
|
'temporary': value.temporary,
|
|
'type': value.type,
|
|
'userLabel': value.userLabel,
|
|
'value': value.value,
|
|
};
|
|
}
|
|
|
|
|