vapi_client/models/
cloudflare_r2_bucket_plan.rs

1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CloudflareR2BucketPlan {
16    /// Cloudflare R2 Access key ID.
17    #[serde(rename = "accessKeyId", skip_serializing_if = "Option::is_none")]
18    pub access_key_id: Option<String>,
19    /// Cloudflare R2 access key secret. This is not returned in the API.
20    #[serde(rename = "secretAccessKey", skip_serializing_if = "Option::is_none")]
21    pub secret_access_key: Option<String>,
22    /// Cloudflare R2 base url.
23    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
24    pub url: Option<String>,
25    /// This is the name of the bucket.
26    #[serde(rename = "name")]
27    pub name: String,
28    /// This is the path where call artifacts will be stored.  Usage: - To store call artifacts in a specific folder, set this to the full path. Eg. \"/folder-name1/folder-name2\". - To store call artifacts in the root of the bucket, leave this blank.  @default \"/\"
29    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
30    pub path: Option<String>,
31}
32
33impl CloudflareR2BucketPlan {
34    pub fn new(name: String) -> CloudflareR2BucketPlan {
35        CloudflareR2BucketPlan {
36            access_key_id: None,
37            secret_access_key: None,
38            url: None,
39            name,
40            path: None,
41        }
42    }
43}