Switched kc_sdk to fetch
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
/* 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 {
|
||||
ClientPolicyExecutorRepresentation,
|
||||
ClientPolicyExecutorRepresentationFromJSON,
|
||||
ClientPolicyExecutorRepresentationFromJSONTyped,
|
||||
ClientPolicyExecutorRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientProfileRepresentation
|
||||
*/
|
||||
export interface ClientProfileRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientProfileRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ClientPolicyExecutorRepresentation>}
|
||||
* @memberof ClientProfileRepresentation
|
||||
*/
|
||||
executors?: Array<ClientPolicyExecutorRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientProfileRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export function ClientProfileRepresentationFromJSON(json: any): ClientProfileRepresentation {
|
||||
return ClientProfileRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientProfileRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientProfileRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'executors': !exists(json, 'executors') ? undefined : ((json['executors'] as Array<any>).map(ClientPolicyExecutorRepresentationFromJSON)),
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientProfileRepresentationToJSON(value?: ClientProfileRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'description': value.description,
|
||||
'executors': value.executors === undefined ? undefined : ((value.executors as Array<any>).map(ClientPolicyExecutorRepresentationToJSON)),
|
||||
'name': value.name,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user