@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
83 lines (71 loc) • 2.33 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';
import type { AIPlatform } from './AIPlatform';
import {
AIPlatformFromJSON,
AIPlatformFromJSONTyped,
AIPlatformToJSON,
AIPlatformToJSONTyped,
} from './AIPlatform';
/**
*
* @export
* @interface UpdatedAIPlatformConnectorData
*/
export interface UpdatedAIPlatformConnectorData {
/**
*
* @type {AIPlatform}
* @memberof UpdatedAIPlatformConnectorData
*/
updatedConnector: AIPlatform;
/**
*
* @type {Array<string>}
* @memberof UpdatedAIPlatformConnectorData
*/
pipelineIds?: Array<string>;
}
/**
* Check if a given object implements the UpdatedAIPlatformConnectorData interface.
*/
export function instanceOfUpdatedAIPlatformConnectorData(value: object): value is UpdatedAIPlatformConnectorData {
if (!('updatedConnector' in value) || value['updatedConnector'] === undefined) return false;
return true;
}
export function UpdatedAIPlatformConnectorDataFromJSON(json: any): UpdatedAIPlatformConnectorData {
return UpdatedAIPlatformConnectorDataFromJSONTyped(json, false);
}
export function UpdatedAIPlatformConnectorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatedAIPlatformConnectorData {
if (json == null) {
return json;
}
return {
'updatedConnector': AIPlatformFromJSON(json['updatedConnector']),
'pipelineIds': json['pipelineIds'] == null ? undefined : json['pipelineIds'],
};
}
export function UpdatedAIPlatformConnectorDataToJSON(json: any): UpdatedAIPlatformConnectorData {
return UpdatedAIPlatformConnectorDataToJSONTyped(json, false);
}
export function UpdatedAIPlatformConnectorDataToJSONTyped(value?: UpdatedAIPlatformConnectorData | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'updatedConnector': AIPlatformToJSON(value['updatedConnector']),
'pipelineIds': value['pipelineIds'],
};
}