UNPKG

@vectorize-io/vectorize-client

Version:
67 lines (56 loc) 1.85 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'; /** * Authentication configuration for Google Drive (Service Account) * @export * @interface GOOGLEDRIVEAuthConfig */ export interface GOOGLEDRIVEAuthConfig { /** * Service Account JSON. Example: Enter the JSON key file for the service account * @type {string} * @memberof GOOGLEDRIVEAuthConfig */ serviceAccountJson: string; } /** * Check if a given object implements the GOOGLEDRIVEAuthConfig interface. */ export function instanceOfGOOGLEDRIVEAuthConfig(value: object): value is GOOGLEDRIVEAuthConfig { if (!('serviceAccountJson' in value) || value['serviceAccountJson'] === undefined) return false; return true; } export function GOOGLEDRIVEAuthConfigFromJSON(json: any): GOOGLEDRIVEAuthConfig { return GOOGLEDRIVEAuthConfigFromJSONTyped(json, false); } export function GOOGLEDRIVEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEAuthConfig { if (json == null) { return json; } return { 'serviceAccountJson': json['service-account-json'], }; } export function GOOGLEDRIVEAuthConfigToJSON(json: any): GOOGLEDRIVEAuthConfig { return GOOGLEDRIVEAuthConfigToJSONTyped(json, false); } export function GOOGLEDRIVEAuthConfigToJSONTyped(value?: GOOGLEDRIVEAuthConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'service-account-json': value['serviceAccountJson'], }; }