UNPKG

@vectorize-io/vectorize-client

Version:
85 lines (74 loc) 2.38 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 Couchbase Capella * @export * @interface CAPELLAAuthConfig */ export interface CAPELLAAuthConfig { /** * Cluster Access Name. Example: Enter your cluster access name * @type {string} * @memberof CAPELLAAuthConfig */ username: string; /** * Cluster Access Password. Example: Enter your cluster access password * @type {string} * @memberof CAPELLAAuthConfig */ password: string; /** * Connection String. Example: Enter your connection string * @type {string} * @memberof CAPELLAAuthConfig */ connectionString: string; } /** * Check if a given object implements the CAPELLAAuthConfig interface. */ export function instanceOfCAPELLAAuthConfig(value: object): value is CAPELLAAuthConfig { if (!('username' in value) || value['username'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; if (!('connectionString' in value) || value['connectionString'] === undefined) return false; return true; } export function CAPELLAAuthConfigFromJSON(json: any): CAPELLAAuthConfig { return CAPELLAAuthConfigFromJSONTyped(json, false); } export function CAPELLAAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CAPELLAAuthConfig { if (json == null) { return json; } return { 'username': json['username'], 'password': json['password'], 'connectionString': json['connection-string'], }; } export function CAPELLAAuthConfigToJSON(json: any): CAPELLAAuthConfig { return CAPELLAAuthConfigToJSONTyped(json, false); } export function CAPELLAAuthConfigToJSONTyped(value?: CAPELLAAuthConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'username': value['username'], 'password': value['password'], 'connection-string': value['connectionString'], }; }