@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 { WEBCRAWLERAuthConfig } from './WEBCRAWLERAuthConfig';
import {
WEBCRAWLERAuthConfigFromJSON,
WEBCRAWLERAuthConfigFromJSONTyped,
WEBCRAWLERAuthConfigToJSON,
WEBCRAWLERAuthConfigToJSONTyped,
} from './WEBCRAWLERAuthConfig';
/**
*
* @export
* @interface WebCrawler1
*/
export interface WebCrawler1 {
/**
*
* @type {WEBCRAWLERAuthConfig}
* @memberof WebCrawler1
*/
config?: WEBCRAWLERAuthConfig;
}
/**
* Check if a given object implements the WebCrawler1 interface.
*/
export function instanceOfWebCrawler1(value: object): value is WebCrawler1 {
return true;
}
export function WebCrawler1FromJSON(json: any): WebCrawler1 {
return WebCrawler1FromJSONTyped(json, false);
}
export function WebCrawler1FromJSONTyped(json: any, ignoreDiscriminator: boolean): WebCrawler1 {
if (json == null) {
return json;
}
return {
'config': json['config'] == null ? undefined : WEBCRAWLERAuthConfigFromJSON(json['config']),
};
}
export function WebCrawler1ToJSON(json: any): WebCrawler1 {
return WebCrawler1ToJSONTyped(json, false);
}
export function WebCrawler1ToJSONTyped(value?: WebCrawler1 | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'config': WEBCRAWLERAuthConfigToJSON(value['config']),
};
}