82 lines
2.1 KiB
TypeScript
82 lines
2.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 UserConsentRepresentation
|
|
*/
|
|
export interface UserConsentRepresentation {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof UserConsentRepresentation
|
|
*/
|
|
clientId?: string;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof UserConsentRepresentation
|
|
*/
|
|
createdDate?: number;
|
|
/**
|
|
*
|
|
* @type {Array<string>}
|
|
* @memberof UserConsentRepresentation
|
|
*/
|
|
grantedClientScopes?: Array<string>;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof UserConsentRepresentation
|
|
*/
|
|
lastUpdatedDate?: number;
|
|
}
|
|
|
|
export function UserConsentRepresentationFromJSON(json: any): UserConsentRepresentation {
|
|
return UserConsentRepresentationFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function UserConsentRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserConsentRepresentation {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'clientId': !exists(json, 'clientId') ? undefined : json['clientId'],
|
|
'createdDate': !exists(json, 'createdDate') ? undefined : json['createdDate'],
|
|
'grantedClientScopes': !exists(json, 'grantedClientScopes') ? undefined : json['grantedClientScopes'],
|
|
'lastUpdatedDate': !exists(json, 'lastUpdatedDate') ? undefined : json['lastUpdatedDate'],
|
|
};
|
|
}
|
|
|
|
export function UserConsentRepresentationToJSON(value?: UserConsentRepresentation | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'clientId': value.clientId,
|
|
'createdDate': value.createdDate,
|
|
'grantedClientScopes': value.grantedClientScopes,
|
|
'lastUpdatedDate': value.lastUpdatedDate,
|
|
};
|
|
}
|
|
|
|
|