UNPKG

@vectorize-io/vectorize-client

Version:
74 lines (62 loc) 1.68 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 { ELASTICAuthConfig } from './ELASTICAuthConfig'; import { ELASTICAuthConfigFromJSON, ELASTICAuthConfigFromJSONTyped, ELASTICAuthConfigToJSON, ELASTICAuthConfigToJSONTyped, } from './ELASTICAuthConfig'; /** * * @export * @interface Elastic1 */ export interface Elastic1 { /** * * @type {ELASTICAuthConfig} * @memberof Elastic1 */ config?: ELASTICAuthConfig; } /** * Check if a given object implements the Elastic1 interface. */ export function instanceOfElastic1(value: object): value is Elastic1 { return true; } export function Elastic1FromJSON(json: any): Elastic1 { return Elastic1FromJSONTyped(json, false); } export function Elastic1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Elastic1 { if (json == null) { return json; } return { 'config': json['config'] == null ? undefined : ELASTICAuthConfigFromJSON(json['config']), }; } export function Elastic1ToJSON(json: any): Elastic1 { return Elastic1ToJSONTyped(json, false); } export function Elastic1ToJSONTyped(value?: Elastic1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'config': ELASTICAuthConfigToJSON(value['config']), }; }