@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
84 lines (72 loc) • 2.4 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 { CreatedSourceConnector } from './CreatedSourceConnector';
import {
CreatedSourceConnectorFromJSON,
CreatedSourceConnectorFromJSONTyped,
CreatedSourceConnectorToJSON,
CreatedSourceConnectorToJSONTyped,
} from './CreatedSourceConnector';
/**
*
* @export
* @interface CreateSourceConnectorResponse
*/
export interface CreateSourceConnectorResponse {
/**
*
* @type {string}
* @memberof CreateSourceConnectorResponse
*/
message: string;
/**
*
* @type {CreatedSourceConnector}
* @memberof CreateSourceConnectorResponse
*/
connector: CreatedSourceConnector;
}
/**
* Check if a given object implements the CreateSourceConnectorResponse interface.
*/
export function instanceOfCreateSourceConnectorResponse(value: object): value is CreateSourceConnectorResponse {
if (!('message' in value) || value['message'] === undefined) return false;
if (!('connector' in value) || value['connector'] === undefined) return false;
return true;
}
export function CreateSourceConnectorResponseFromJSON(json: any): CreateSourceConnectorResponse {
return CreateSourceConnectorResponseFromJSONTyped(json, false);
}
export function CreateSourceConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSourceConnectorResponse {
if (json == null) {
return json;
}
return {
'message': json['message'],
'connector': CreatedSourceConnectorFromJSON(json['connector']),
};
}
export function CreateSourceConnectorResponseToJSON(json: any): CreateSourceConnectorResponse {
return CreateSourceConnectorResponseToJSONTyped(json, false);
}
export function CreateSourceConnectorResponseToJSONTyped(value?: CreateSourceConnectorResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'message': value['message'],
'connector': CreatedSourceConnectorToJSON(value['connector']),
};
}