pinecone_sdk/openapi/models/
configure_index_request.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/// ConfigureIndexRequest : Configuration used to scale an index.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ConfigureIndexRequest {
17    #[serde(rename = "spec", skip_serializing_if = "Option::is_none")]
18    pub spec: Option<Box<models::ConfigureIndexRequestSpec>>,
19    #[serde(rename = "deletion_protection", skip_serializing_if = "Option::is_none")]
20    pub deletion_protection: Option<models::DeletionProtection>,
21}
22
23impl ConfigureIndexRequest {
24    /// Configuration used to scale an index.
25    pub fn new() -> ConfigureIndexRequest {
26        ConfigureIndexRequest {
27            spec: None,
28            deletion_protection: None,
29        }
30    }
31}
32