-
Notifications
You must be signed in to change notification settings - Fork 35
/
PodSpecMetadataConfig.ts
65 lines (56 loc) · 1.99 KB
/
PodSpecMetadataConfig.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* tslint:disable */
/* eslint-disable */
/**
* Pinecone Control Plane API
* Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors.
*
* The version of the OpenAPI document: v1
* Contact: support@pinecone.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
/**
* Configuration for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `metadata_config` is present, only specified metadata fields are indexed. These configurations are only valid for use with pod-based indexes.
* @export
* @interface PodSpecMetadataConfig
*/
export interface PodSpecMetadataConfig {
/**
* By default, all metadata is indexed; to change this behavior, use this property to specify an array of metadata fields that should be indexed.
* @type {Array<string>}
* @memberof PodSpecMetadataConfig
*/
indexed?: Array<string>;
}
/**
* Check if a given object implements the PodSpecMetadataConfig interface.
*/
export function instanceOfPodSpecMetadataConfig(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PodSpecMetadataConfigFromJSON(json: any): PodSpecMetadataConfig {
return PodSpecMetadataConfigFromJSONTyped(json, false);
}
export function PodSpecMetadataConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PodSpecMetadataConfig {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'indexed': !exists(json, 'indexed') ? undefined : json['indexed'],
};
}
export function PodSpecMetadataConfigToJSON(value?: PodSpecMetadataConfig | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'indexed': value.indexed,
};
}