/* 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 Google Drive OAuth connector * @export * @interface GOOGLEDRIVEOAUTHConfig */ export interface GOOGLEDRIVEOAUTHConfig { /** * File Extensions * @type {Array} * @memberof GOOGLEDRIVEOAUTHConfig */ fileExtensions: GOOGLEDRIVEOAUTHConfigFileExtensionsEnum; /** * Polling Interval (seconds). Example: Enter polling interval in seconds * @type {number} * @memberof GOOGLEDRIVEOAUTHConfig */ idleTime?: number; } /** * @export */ export const GOOGLEDRIVEOAUTHConfigFileExtensionsEnum = { Pdf: 'pdf', Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', Pptpptxgslides: 'ppt,pptx,gslides', Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', Emlmsg: 'eml,msg', Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', Csv: 'csv' } as const; export type GOOGLEDRIVEOAUTHConfigFileExtensionsEnum = typeof GOOGLEDRIVEOAUTHConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEOAUTHConfigFileExtensionsEnum]; /** * Check if a given object implements the GOOGLEDRIVEOAUTHConfig interface. */ export function instanceOfGOOGLEDRIVEOAUTHConfig(value: object): value is GOOGLEDRIVEOAUTHConfig { if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; return true; } export function GOOGLEDRIVEOAUTHConfigFromJSON(json: any): GOOGLEDRIVEOAUTHConfig { return GOOGLEDRIVEOAUTHConfigFromJSONTyped(json, false); } export function GOOGLEDRIVEOAUTHConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHConfig { if (json == null) { return json; } return { 'fileExtensions': json['file-extensions'], 'idleTime': json['idle-time'] == null ? undefined : json['idle-time'], }; } export function GOOGLEDRIVEOAUTHConfigToJSON(json: any): GOOGLEDRIVEOAUTHConfig { return GOOGLEDRIVEOAUTHConfigToJSONTyped(json, false); } export function GOOGLEDRIVEOAUTHConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'file-extensions': value['fileExtensions'], 'idle-time': value['idleTime'], }; }