UNPKG

@vectorize-io/vectorize-client

Version:
103 lines (88 loc) 2.24 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 { GCSAuthConfig } from './GCSAuthConfig'; import { GCSAuthConfigFromJSON, GCSAuthConfigFromJSONTyped, GCSAuthConfigToJSON, GCSAuthConfigToJSONTyped, } from './GCSAuthConfig'; /** * * @export * @interface Gcs */ export interface Gcs { /** * Name of the connector * @type {string} * @memberof Gcs */ name: string; /** * Connector type (must be "GCS") * @type {string} * @memberof Gcs */ type: GcsTypeEnum; /** * * @type {GCSAuthConfig} * @memberof Gcs */ config: GCSAuthConfig; } /** * @export */ export const GcsTypeEnum = { Gcs: 'GCS' } as const; export type GcsTypeEnum = typeof GcsTypeEnum[keyof typeof GcsTypeEnum]; /** * Check if a given object implements the Gcs interface. */ export function instanceOfGcs(value: object): value is Gcs { 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 GcsFromJSON(json: any): Gcs { return GcsFromJSONTyped(json, false); } export function GcsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gcs { if (json == null) { return json; } return { 'name': json['name'], 'type': json['type'], 'config': GCSAuthConfigFromJSON(json['config']), }; } export function GcsToJSON(json: any): Gcs { return GcsToJSONTyped(json, false); } export function GcsToJSONTyped(value?: Gcs | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'type': value['type'], 'config': GCSAuthConfigToJSON(value['config']), }; }