@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
74 lines (62 loc) • 1.76 kB
text/typescript
/* 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 { POSTGRESQLAuthConfig } from './POSTGRESQLAuthConfig';
import {
POSTGRESQLAuthConfigFromJSON,
POSTGRESQLAuthConfigFromJSONTyped,
POSTGRESQLAuthConfigToJSON,
POSTGRESQLAuthConfigToJSONTyped,
} from './POSTGRESQLAuthConfig';
/**
*
* @export
* @interface Postgresql1
*/
export interface Postgresql1 {
/**
*
* @type {POSTGRESQLAuthConfig}
* @memberof Postgresql1
*/
config?: POSTGRESQLAuthConfig;
}
/**
* Check if a given object implements the Postgresql1 interface.
*/
export function instanceOfPostgresql1(value: object): value is Postgresql1 {
return true;
}
export function Postgresql1FromJSON(json: any): Postgresql1 {
return Postgresql1FromJSONTyped(json, false);
}
export function Postgresql1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Postgresql1 {
if (json == null) {
return json;
}
return {
'config': json['config'] == null ? undefined : POSTGRESQLAuthConfigFromJSON(json['config']),
};
}
export function Postgresql1ToJSON(json: any): Postgresql1 {
return Postgresql1ToJSONTyped(json, false);
}
export function Postgresql1ToJSONTyped(value?: Postgresql1 | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'config': POSTGRESQLAuthConfigToJSON(value['config']),
};
}