@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
84 lines (72 loc) • 2.54 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 { CreatedDestinationConnector } from './CreatedDestinationConnector';
import {
CreatedDestinationConnectorFromJSON,
CreatedDestinationConnectorFromJSONTyped,
CreatedDestinationConnectorToJSON,
CreatedDestinationConnectorToJSONTyped,
} from './CreatedDestinationConnector';
/**
*
* @export
* @interface CreateDestinationConnectorResponse
*/
export interface CreateDestinationConnectorResponse {
/**
*
* @type {string}
* @memberof CreateDestinationConnectorResponse
*/
message: string;
/**
*
* @type {CreatedDestinationConnector}
* @memberof CreateDestinationConnectorResponse
*/
connector: CreatedDestinationConnector;
}
/**
* Check if a given object implements the CreateDestinationConnectorResponse interface.
*/
export function instanceOfCreateDestinationConnectorResponse(value: object): value is CreateDestinationConnectorResponse {
if (!('message' in value) || value['message'] === undefined) return false;
if (!('connector' in value) || value['connector'] === undefined) return false;
return true;
}
export function CreateDestinationConnectorResponseFromJSON(json: any): CreateDestinationConnectorResponse {
return CreateDestinationConnectorResponseFromJSONTyped(json, false);
}
export function CreateDestinationConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDestinationConnectorResponse {
if (json == null) {
return json;
}
return {
'message': json['message'],
'connector': CreatedDestinationConnectorFromJSON(json['connector']),
};
}
export function CreateDestinationConnectorResponseToJSON(json: any): CreateDestinationConnectorResponse {
return CreateDestinationConnectorResponseToJSONTyped(json, false);
}
export function CreateDestinationConnectorResponseToJSONTyped(value?: CreateDestinationConnectorResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'message': value['message'],
'connector': CreatedDestinationConnectorToJSON(value['connector']),
};
}