vapi-client 0.4.2

Unofficial crate for Vapi - Voice AI for developers.
Documentation
/*
 * Vapi API
 *
 * Voice AI for developers.
 *
 * The version of the OpenAPI document: 1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateS3CredentialDto {
    /// AWS access key ID.
    #[serde(rename = "awsAccessKeyId", skip_serializing_if = "Option::is_none")]
    pub aws_access_key_id: Option<String>,
    /// AWS access key secret. This is not returned in the API.
    #[serde(rename = "awsSecretAccessKey", skip_serializing_if = "Option::is_none")]
    pub aws_secret_access_key: Option<String>,
    /// AWS region in which the S3 bucket is located.
    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
    pub region: Option<String>,
    /// AWS S3 bucket name.
    #[serde(rename = "s3BucketName", skip_serializing_if = "Option::is_none")]
    pub s3_bucket_name: Option<String>,
    /// The path prefix for the uploaded recording. Ex. \"recordings/\"
    #[serde(rename = "s3PathPrefix", skip_serializing_if = "Option::is_none")]
    pub s3_path_prefix: Option<String>,
    /// This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.
    #[serde(rename = "fallbackIndex", skip_serializing_if = "Option::is_none")]
    pub fallback_index: Option<f64>,
    /// This is the name of credential. This is just for your reference.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

impl UpdateS3CredentialDto {
    pub fn new() -> UpdateS3CredentialDto {
        UpdateS3CredentialDto {
            aws_access_key_id: None,
            aws_secret_access_key: None,
            region: None,
            s3_bucket_name: None,
            s3_path_prefix: None,
            fallback_index: None,
            name: None,
        }
    }
}