@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
76 lines (65 loc) • 1.85 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Vectorize API (Beta)
* API for Vectorize services
*
* The version of the OpenAPI document: 0.0.1
*
*
* 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';
/**
*
* @export
* @interface CreatedSourceConnector
*/
export interface CreatedSourceConnector {
/**
*
* @type {string}
* @memberof CreatedSourceConnector
*/
name: string;
/**
*
* @type {string}
* @memberof CreatedSourceConnector
*/
id: string;
}
/**
* Check if a given object implements the CreatedSourceConnector interface.
*/
export function instanceOfCreatedSourceConnector(value: object): value is CreatedSourceConnector {
if (!('name' in value) || value['name'] === undefined) return false;
if (!('id' in value) || value['id'] === undefined) return false;
return true;
}
export function CreatedSourceConnectorFromJSON(json: any): CreatedSourceConnector {
return CreatedSourceConnectorFromJSONTyped(json, false);
}
export function CreatedSourceConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedSourceConnector {
if (json == null) {
return json;
}
return {
'name': json['name'],
'id': json['id'],
};
}
export function CreatedSourceConnectorToJSON(json: any): CreatedSourceConnector {
return CreatedSourceConnectorToJSONTyped(json, false);
}
export function CreatedSourceConnectorToJSONTyped(value?: CreatedSourceConnector | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'id': value['id'],
};
}