UNPKG

@vectorize-io/vectorize-client

Version:
103 lines (88 loc) 2.54 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 { GOOGLEDRIVEAuthConfig } from './GOOGLEDRIVEAuthConfig'; import { GOOGLEDRIVEAuthConfigFromJSON, GOOGLEDRIVEAuthConfigFromJSONTyped, GOOGLEDRIVEAuthConfigToJSON, GOOGLEDRIVEAuthConfigToJSONTyped, } from './GOOGLEDRIVEAuthConfig'; /** * * @export * @interface GoogleDrive */ export interface GoogleDrive { /** * Name of the connector * @type {string} * @memberof GoogleDrive */ name: string; /** * Connector type (must be "GOOGLE_DRIVE") * @type {string} * @memberof GoogleDrive */ type: GoogleDriveTypeEnum; /** * * @type {GOOGLEDRIVEAuthConfig} * @memberof GoogleDrive */ config: GOOGLEDRIVEAuthConfig; } /** * @export */ export const GoogleDriveTypeEnum = { GoogleDrive: 'GOOGLE_DRIVE' } as const; export type GoogleDriveTypeEnum = typeof GoogleDriveTypeEnum[keyof typeof GoogleDriveTypeEnum]; /** * Check if a given object implements the GoogleDrive interface. */ export function instanceOfGoogleDrive(value: object): value is GoogleDrive { 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 GoogleDriveFromJSON(json: any): GoogleDrive { return GoogleDriveFromJSONTyped(json, false); } export function GoogleDriveFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDrive { if (json == null) { return json; } return { 'name': json['name'], 'type': json['type'], 'config': GOOGLEDRIVEAuthConfigFromJSON(json['config']), }; } export function GoogleDriveToJSON(json: any): GoogleDrive { return GoogleDriveToJSONTyped(json, false); } export function GoogleDriveToJSONTyped(value?: GoogleDrive | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'type': value['type'], 'config': GOOGLEDRIVEAuthConfigToJSON(value['config']), }; }