/* 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'; import type { OrganizationRequest } from './OrganizationRequest'; import { OrganizationRequestFromJSON, OrganizationRequestFromJSONTyped, OrganizationRequestToJSON, OrganizationRequestToJSONTyped, } from './OrganizationRequest'; import type { BlueprintVersionRequest } from './BlueprintVersionRequest'; import { BlueprintVersionRequestFromJSON, BlueprintVersionRequestFromJSONTyped, BlueprintVersionRequestToJSON, BlueprintVersionRequestToJSONTyped, } from './BlueprintVersionRequest'; import type { UserRequest } from './UserRequest'; import { UserRequestFromJSON, UserRequestFromJSONTyped, UserRequestToJSON, UserRequestToJSONTyped, } from './UserRequest'; /** * * @export * @interface PatchedBlueprintRequest */ export interface PatchedBlueprintRequest { /** * * @type {string} * @memberof PatchedBlueprintRequest */ ownerOrg?: string | null; /** * * @type {OrganizationRequest} * @memberof PatchedBlueprintRequest */ ownerOrgObj?: OrganizationRequest; /** * * @type {string} * @memberof PatchedBlueprintRequest */ ownerUser?: string | null; /** * * @type {UserRequest} * @memberof PatchedBlueprintRequest */ ownerUserObj?: UserRequest; /** * * @type {string} * @memberof PatchedBlueprintRequest */ slug?: string; /** * * @type {string} * @memberof PatchedBlueprintRequest */ summary?: string; /** * * @type {BlueprintVersionRequest} * @memberof PatchedBlueprintRequest */ latestVersion?: BlueprintVersionRequest; /** * * @type {Array} * @memberof PatchedBlueprintRequest */ tags?: Array; } /** * Check if a given object implements the PatchedBlueprintRequest interface. */ export function instanceOfPatchedBlueprintRequest(value: object): value is PatchedBlueprintRequest { return true; } export function PatchedBlueprintRequestFromJSON(json: any): PatchedBlueprintRequest { return PatchedBlueprintRequestFromJSONTyped(json, false); } export function PatchedBlueprintRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedBlueprintRequest { if (json == null) { return json; } return { 'ownerOrg': json['owner_org'] == null ? undefined : json['owner_org'], 'ownerOrgObj': json['owner_org_obj'] == null ? undefined : OrganizationRequestFromJSON(json['owner_org_obj']), 'ownerUser': json['owner_user'] == null ? undefined : json['owner_user'], 'ownerUserObj': json['owner_user_obj'] == null ? undefined : UserRequestFromJSON(json['owner_user_obj']), 'slug': json['slug'] == null ? undefined : json['slug'], 'summary': json['summary'] == null ? undefined : json['summary'], 'latestVersion': json['latest_version'] == null ? undefined : BlueprintVersionRequestFromJSON(json['latest_version']), 'tags': json['tags'] == null ? undefined : json['tags'], }; } export function PatchedBlueprintRequestToJSON(json: any): PatchedBlueprintRequest { return PatchedBlueprintRequestToJSONTyped(json, false); } export function PatchedBlueprintRequestToJSONTyped(value?: PatchedBlueprintRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'owner_org': value['ownerOrg'], 'owner_org_obj': OrganizationRequestToJSON(value['ownerOrgObj']), 'owner_user': value['ownerUser'], 'owner_user_obj': UserRequestToJSON(value['ownerUserObj']), 'slug': value['slug'], 'summary': value['summary'], 'latest_version': BlueprintVersionRequestToJSON(value['latestVersion']), 'tags': value['tags'], }; }