pinecone_sdk/openapi/models/configure_index_request_spec_pod.rs
1/*
2 * Pinecone Control Plane API
3 *
4 * Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors.
5 *
6 * The version of the OpenAPI document: 2024-07
7 * Contact: support@pinecone.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::openapi::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ConfigureIndexRequestSpecPod {
16 /// The number of replicas. Replicas duplicate your index. They provide higher availability and throughput. Replicas can be scaled up or down as your needs change.
17 #[serde(rename = "replicas", skip_serializing_if = "Option::is_none")]
18 pub replicas: Option<i32>,
19 /// The type of pod to use. One of `s1`, `p1`, or `p2` appended with `.` and one of `x1`, `x2`, `x4`, or `x8`.
20 #[serde(rename = "pod_type", skip_serializing_if = "Option::is_none")]
21 pub pod_type: Option<String>,
22}
23
24impl ConfigureIndexRequestSpecPod {
25 pub fn new() -> ConfigureIndexRequestSpecPod {
26 ConfigureIndexRequestSpecPod {
27 replicas: None,
28 pod_type: None,
29 }
30 }
31}
32