/* 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 * as runtime from '../runtime'; export interface RealmClientRegistrationPolicyProvidersGetRequest { realm: string; } /** * */ export class ClientRegistrationPolicyApi extends runtime.BaseAPI { /** * Base path for retrieve providers with the configProperties properly filled */ async realmClientRegistrationPolicyProvidersGetRaw(requestParameters: RealmClientRegistrationPolicyProvidersGetRequest): Promise>> { if (requestParameters.realm === null || requestParameters.realm === undefined) { throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientRegistrationPolicyProvidersGet.'); } const queryParameters: runtime.HTTPQuery = {}; const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.accessToken) { const token = this.configuration.accessToken; const tokenString = typeof token === 'function' ? token("access_token", []) : token; if (tokenString) { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } const response = await this.request({ path: `/{realm}/client-registration-policy/providers`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))), method: 'GET', headers: headerParameters, query: queryParameters, }); return new runtime.JSONApiResponse(response); } /** * Base path for retrieve providers with the configProperties properly filled */ async realmClientRegistrationPolicyProvidersGet(requestParameters: RealmClientRegistrationPolicyProvidersGetRequest): Promise> { const response = await this.realmClientRegistrationPolicyProvidersGetRaw(requestParameters); return await response.value(); } }