Switched kc_sdk to fetch
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
/* 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 {
|
||||
PolicyRepresentation,
|
||||
PolicyRepresentationFromJSON,
|
||||
PolicyRepresentationFromJSONTyped,
|
||||
PolicyRepresentationToJSON,
|
||||
ResourceRepresentation,
|
||||
ResourceRepresentationFromJSON,
|
||||
ResourceRepresentationFromJSONTyped,
|
||||
ResourceRepresentationToJSON,
|
||||
ScopeRepresentation,
|
||||
ScopeRepresentationFromJSON,
|
||||
ScopeRepresentationFromJSONTyped,
|
||||
ScopeRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResourceServerRepresentation
|
||||
*/
|
||||
export interface ResourceServerRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
allowRemoteResourceManagement?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
clientId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
decisionStrategy?: ResourceServerRepresentationDecisionStrategyEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<PolicyRepresentation>}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
policies?: Array<PolicyRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
policyEnforcementMode?: ResourceServerRepresentationPolicyEnforcementModeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ResourceRepresentation>}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
resources?: Array<ResourceRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ScopeRepresentation>}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
scopes?: Array<ScopeRepresentation>;
|
||||
}
|
||||
|
||||
export function ResourceServerRepresentationFromJSON(json: any): ResourceServerRepresentation {
|
||||
return ResourceServerRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ResourceServerRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceServerRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'allowRemoteResourceManagement': !exists(json, 'allowRemoteResourceManagement') ? undefined : json['allowRemoteResourceManagement'],
|
||||
'clientId': !exists(json, 'clientId') ? undefined : json['clientId'],
|
||||
'decisionStrategy': !exists(json, 'decisionStrategy') ? undefined : json['decisionStrategy'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'policies': !exists(json, 'policies') ? undefined : ((json['policies'] as Array<any>).map(PolicyRepresentationFromJSON)),
|
||||
'policyEnforcementMode': !exists(json, 'policyEnforcementMode') ? undefined : json['policyEnforcementMode'],
|
||||
'resources': !exists(json, 'resources') ? undefined : ((json['resources'] as Array<any>).map(ResourceRepresentationFromJSON)),
|
||||
'scopes': !exists(json, 'scopes') ? undefined : ((json['scopes'] as Array<any>).map(ScopeRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ResourceServerRepresentationToJSON(value?: ResourceServerRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'allowRemoteResourceManagement': value.allowRemoteResourceManagement,
|
||||
'clientId': value.clientId,
|
||||
'decisionStrategy': value.decisionStrategy,
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
'policies': value.policies === undefined ? undefined : ((value.policies as Array<any>).map(PolicyRepresentationToJSON)),
|
||||
'policyEnforcementMode': value.policyEnforcementMode,
|
||||
'resources': value.resources === undefined ? undefined : ((value.resources as Array<any>).map(ResourceRepresentationToJSON)),
|
||||
'scopes': value.scopes === undefined ? undefined : ((value.scopes as Array<any>).map(ScopeRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum ResourceServerRepresentationDecisionStrategyEnum {
|
||||
AFFIRMATIVE = 'AFFIRMATIVE',
|
||||
UNANIMOUS = 'UNANIMOUS',
|
||||
CONSENSUS = 'CONSENSUS'
|
||||
}
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum ResourceServerRepresentationPolicyEnforcementModeEnum {
|
||||
ENFORCING = 'ENFORCING',
|
||||
PERMISSIVE = 'PERMISSIVE',
|
||||
DISABLED = 'DISABLED'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user