UNPKG

@vectorize-io/vectorize-client

Version:
66 lines (55 loc) 1.62 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'; /** * Configuration for Dropbox (Legacy) connector * @export * @interface DROPBOXConfig */ export interface DROPBOXConfig { /** * Read from these folders (optional). Example: Enter Path: /exampleFolder/subFolder * @type {Array<string>} * @memberof DROPBOXConfig */ pathPrefix?: Array<string>; } /** * Check if a given object implements the DROPBOXConfig interface. */ export function instanceOfDROPBOXConfig(value: object): value is DROPBOXConfig { return true; } export function DROPBOXConfigFromJSON(json: any): DROPBOXConfig { return DROPBOXConfigFromJSONTyped(json, false); } export function DROPBOXConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXConfig { if (json == null) { return json; } return { 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], }; } export function DROPBOXConfigToJSON(json: any): DROPBOXConfig { return DROPBOXConfigToJSONTyped(json, false); } export function DROPBOXConfigToJSONTyped(value?: DROPBOXConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'path-prefix': value['pathPrefix'], }; }