UNPKG

@vectorize-io/vectorize-client

Version:
103 lines (88 loc) 2.5 kB
/* tslint:disable */ /* eslint-disable */ /** * Vectorize API * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.1.2 * * * 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 { CONFLUENCEAuthConfig } from './CONFLUENCEAuthConfig'; import { CONFLUENCEAuthConfigFromJSON, CONFLUENCEAuthConfigFromJSONTyped, CONFLUENCEAuthConfigToJSON, CONFLUENCEAuthConfigToJSONTyped, } from './CONFLUENCEAuthConfig'; /** * * @export * @interface Confluence */ export interface Confluence { /** * Name of the connector * @type {string} * @memberof Confluence */ name: string; /** * Connector type (must be "CONFLUENCE") * @type {string} * @memberof Confluence */ type: ConfluenceTypeEnum; /** * * @type {CONFLUENCEAuthConfig} * @memberof Confluence */ config: CONFLUENCEAuthConfig; } /** * @export */ export const ConfluenceTypeEnum = { Confluence: 'CONFLUENCE' } as const; export type ConfluenceTypeEnum = typeof ConfluenceTypeEnum[keyof typeof ConfluenceTypeEnum]; /** * Check if a given object implements the Confluence interface. */ export function instanceOfConfluence(value: object): value is Confluence { if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('config' in value) || value['config'] === undefined) return false; return true; } export function ConfluenceFromJSON(json: any): Confluence { return ConfluenceFromJSONTyped(json, false); } export function ConfluenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Confluence { if (json == null) { return json; } return { 'name': json['name'], 'type': json['type'], 'config': CONFLUENCEAuthConfigFromJSON(json['config']), }; } export function ConfluenceToJSON(json: any): Confluence { return ConfluenceToJSONTyped(json, false); } export function ConfluenceToJSONTyped(value?: Confluence | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'type': value['type'], 'config': CONFLUENCEAuthConfigToJSON(value['config']), }; }