UNPKG

@vectorize-io/vectorize-client

Version:
149 lines (138 loc) 4.11 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'; /** * * @export * @interface AIPlatformConnector */ export interface AIPlatformConnector { /** * * @type {string} * @memberof AIPlatformConnector */ id: string; /** * * @type {string} * @memberof AIPlatformConnector */ type: string; /** * * @type {string} * @memberof AIPlatformConnector */ name: string; /** * * @type {{ [key: string]: any | null; }} * @memberof AIPlatformConnector */ configDoc?: { [key: string]: any | null; }; /** * * @type {string} * @memberof AIPlatformConnector */ createdAt?: string | null; /** * * @type {string} * @memberof AIPlatformConnector */ createdById?: string; /** * * @type {string} * @memberof AIPlatformConnector */ lastUpdatedById?: string; /** * * @type {string} * @memberof AIPlatformConnector */ createdByEmail?: string; /** * * @type {string} * @memberof AIPlatformConnector */ lastUpdatedByEmail?: string; /** * * @type {string} * @memberof AIPlatformConnector */ errorMessage?: string; /** * * @type {string} * @memberof AIPlatformConnector */ verificationStatus?: string; } /** * Check if a given object implements the AIPlatformConnector interface. */ export function instanceOfAIPlatformConnector(value: object): value is AIPlatformConnector { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function AIPlatformConnectorFromJSON(json: any): AIPlatformConnector { return AIPlatformConnectorFromJSONTyped(json, false); } export function AIPlatformConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformConnector { if (json == null) { return json; } return { 'id': json['id'], 'type': json['type'], 'name': json['name'], 'configDoc': json['configDoc'] == null ? undefined : json['configDoc'], 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'], 'createdById': json['createdById'] == null ? undefined : json['createdById'], 'lastUpdatedById': json['lastUpdatedById'] == null ? undefined : json['lastUpdatedById'], 'createdByEmail': json['createdByEmail'] == null ? undefined : json['createdByEmail'], 'lastUpdatedByEmail': json['lastUpdatedByEmail'] == null ? undefined : json['lastUpdatedByEmail'], 'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'], 'verificationStatus': json['verificationStatus'] == null ? undefined : json['verificationStatus'], }; } export function AIPlatformConnectorToJSON(json: any): AIPlatformConnector { return AIPlatformConnectorToJSONTyped(json, false); } export function AIPlatformConnectorToJSONTyped(value?: AIPlatformConnector | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'type': value['type'], 'name': value['name'], 'configDoc': value['configDoc'], 'createdAt': value['createdAt'], 'createdById': value['createdById'], 'lastUpdatedById': value['lastUpdatedById'], 'createdByEmail': value['createdByEmail'], 'lastUpdatedByEmail': value['lastUpdatedByEmail'], 'errorMessage': value['errorMessage'], 'verificationStatus': value['verificationStatus'], }; }