UNPKG

@vectorize-io/vectorize-client

Version:
68 lines (67 loc) 2.28 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSINGLESTOREAuthConfig = instanceOfSINGLESTOREAuthConfig; exports.SINGLESTOREAuthConfigFromJSON = SINGLESTOREAuthConfigFromJSON; exports.SINGLESTOREAuthConfigFromJSONTyped = SINGLESTOREAuthConfigFromJSONTyped; exports.SINGLESTOREAuthConfigToJSON = SINGLESTOREAuthConfigToJSON; exports.SINGLESTOREAuthConfigToJSONTyped = SINGLESTOREAuthConfigToJSONTyped; /** * Check if a given object implements the SINGLESTOREAuthConfig interface. */ function instanceOfSINGLESTOREAuthConfig(value) { if (!('host' in value) || value['host'] === undefined) return false; if (!('port' in value) || value['port'] === undefined) return false; if (!('database' in value) || value['database'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; return true; } function SINGLESTOREAuthConfigFromJSON(json) { return SINGLESTOREAuthConfigFromJSONTyped(json, false); } function SINGLESTOREAuthConfigFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'host': json['host'], 'port': json['port'], 'database': json['database'], 'username': json['username'], 'password': json['password'], }; } function SINGLESTOREAuthConfigToJSON(json) { return SINGLESTOREAuthConfigToJSONTyped(json, false); } function SINGLESTOREAuthConfigToJSONTyped(value, ignoreDiscriminator) { if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; } if (value == null) { return value; } return { 'host': value['host'], 'port': value['port'], 'database': value['database'], 'username': value['username'], 'password': value['password'], }; }