vapi_client/models/
supabase_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 SupabaseBucketPlan {
16    /// This is the S3 Region. It should look like us-east-1 It should be one of the supabase regions defined in the SUPABASE_REGION enum Check https://supabase.com/docs/guides/platform/regions for up to date regions
17    #[serde(rename = "region")]
18    pub region: RegionTrue,
19    /// This is the S3 compatible URL for Supabase S3 This should look like https://<project-ID>.supabase.co/storage/v1/s3
20    #[serde(rename = "url")]
21    pub url: String,
22    /// This is the Supabase S3 Access Key ID. The user creates this in the Supabase project Storage settings
23    #[serde(rename = "accessKeyId")]
24    pub access_key_id: String,
25    /// This is the Supabase S3 Secret Access Key. The user creates this in the Supabase project Storage settings along with the access key id
26    #[serde(rename = "secretAccessKey")]
27    pub secret_access_key: String,
28    /// This is the Supabase S3 Bucket Name. The user must create this in Supabase under Storage > Buckets A bucket that does not exist will not be checked now, but file uploads will fail
29    #[serde(rename = "name")]
30    pub name: String,
31    /// This is the Supabase S3 Bucket Folder Path. The user can create this in Supabase under Storage > Buckets A path that does not exist will not be checked now, but file uploads will fail A Path is like a folder in the bucket Eg. If the bucket is called \"my-bucket\" and the path is \"my-folder\", the full path is \"my-bucket/my-folder\"
32    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
33    pub path: Option<String>,
34}
35
36impl SupabaseBucketPlan {
37    pub fn new(
38        region: RegionTrue,
39        url: String,
40        access_key_id: String,
41        secret_access_key: String,
42        name: String,
43    ) -> SupabaseBucketPlan {
44        SupabaseBucketPlan {
45            region,
46            url,
47            access_key_id,
48            secret_access_key,
49            name,
50            path: None,
51        }
52    }
53}
54/// This is the S3 Region. It should look like us-east-1 It should be one of the supabase regions defined in the SUPABASE_REGION enum Check https://supabase.com/docs/guides/platform/regions for up to date regions
55#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
56pub enum RegionTrue {
57    #[serde(rename = "us-west-1")]
58    UsWest1,
59    #[serde(rename = "us-east-1")]
60    UsEast1,
61    #[serde(rename = "us-east-2")]
62    UsEast2,
63    #[serde(rename = "ca-central-1")]
64    CaCentral1,
65    #[serde(rename = "eu-west-1")]
66    EuWest1,
67    #[serde(rename = "eu-west-2")]
68    EuWest2,
69    #[serde(rename = "eu-west-3")]
70    EuWest3,
71    #[serde(rename = "eu-central-1")]
72    EuCentral1,
73    #[serde(rename = "eu-central-2")]
74    EuCentral2,
75    #[serde(rename = "eu-north-1")]
76    EuNorth1,
77    #[serde(rename = "ap-south-1")]
78    ApSouth1,
79    #[serde(rename = "ap-southeast-1")]
80    ApSoutheast1,
81    #[serde(rename = "ap-northeast-1")]
82    ApNortheast1,
83    #[serde(rename = "ap-northeast-2")]
84    ApNortheast2,
85    #[serde(rename = "ap-southeast-2")]
86    ApSoutheast2,
87    #[serde(rename = "sa-east-1")]
88    SaEast1,
89}
90
91impl Default for RegionTrue {
92    fn default() -> RegionTrue {
93        Self::UsWest1
94    }
95}