vapi_client/models/
update_s3_credential_dto.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 UpdateS3CredentialDto {
16    /// AWS access key ID.
17    #[serde(rename = "awsAccessKeyId", skip_serializing_if = "Option::is_none")]
18    pub aws_access_key_id: Option<String>,
19    /// AWS access key secret. This is not returned in the API.
20    #[serde(rename = "awsSecretAccessKey", skip_serializing_if = "Option::is_none")]
21    pub aws_secret_access_key: Option<String>,
22    /// AWS region in which the S3 bucket is located.
23    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
24    pub region: Option<String>,
25    /// AWS S3 bucket name.
26    #[serde(rename = "s3BucketName", skip_serializing_if = "Option::is_none")]
27    pub s3_bucket_name: Option<String>,
28    /// The path prefix for the uploaded recording. Ex. \"recordings/\"
29    #[serde(rename = "s3PathPrefix", skip_serializing_if = "Option::is_none")]
30    pub s3_path_prefix: Option<String>,
31    /// This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.
32    #[serde(rename = "fallbackIndex", skip_serializing_if = "Option::is_none")]
33    pub fallback_index: Option<f64>,
34    /// This is the name of credential. This is just for your reference.
35    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
36    pub name: Option<String>,
37}
38
39impl UpdateS3CredentialDto {
40    pub fn new() -> UpdateS3CredentialDto {
41        UpdateS3CredentialDto {
42            aws_access_key_id: None,
43            aws_secret_access_key: None,
44            region: None,
45            s3_bucket_name: None,
46            s3_path_prefix: None,
47            fallback_index: None,
48            name: None,
49        }
50    }
51}