/* tslint:disable */ /* eslint-disable */ /** * authentik Blueprint Registry * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * Contact: hello@goauthentik.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface BlueprintVersionRequest */ export interface BlueprintVersionRequest { /** * * @type {number} * @memberof BlueprintVersionRequest */ blueprint: number; /** * * @type {number} * @memberof BlueprintVersionRequest */ version: number; /** * * @type {string} * @memberof BlueprintVersionRequest */ description?: string; /** * * @type {string} * @memberof BlueprintVersionRequest */ changelog?: string; /** * * @type {string} * @memberof BlueprintVersionRequest */ definition: string; /** * * @type {Array} * @memberof BlueprintVersionRequest */ compatibleAuthentikVersions?: Array; } /** * Check if a given object implements the BlueprintVersionRequest interface. */ export function instanceOfBlueprintVersionRequest(value: object): value is BlueprintVersionRequest { if (!('blueprint' in value) || value['blueprint'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; if (!('definition' in value) || value['definition'] === undefined) return false; return true; } export function BlueprintVersionRequestFromJSON(json: any): BlueprintVersionRequest { return BlueprintVersionRequestFromJSONTyped(json, false); } export function BlueprintVersionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintVersionRequest { if (json == null) { return json; } return { 'blueprint': json['blueprint'], 'version': json['version'], 'description': json['description'] == null ? undefined : json['description'], 'changelog': json['changelog'] == null ? undefined : json['changelog'], 'definition': json['definition'], 'compatibleAuthentikVersions': json['compatible_authentik_versions'] == null ? undefined : json['compatible_authentik_versions'], }; } export function BlueprintVersionRequestToJSON(json: any): BlueprintVersionRequest { return BlueprintVersionRequestToJSONTyped(json, false); } export function BlueprintVersionRequestToJSONTyped(value?: BlueprintVersionRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'blueprint': value['blueprint'], 'version': value['version'], 'description': value['description'], 'changelog': value['changelog'], 'definition': value['definition'], 'compatible_authentik_versions': value['compatibleAuthentikVersions'], }; }