vapi_client/models/
update_azure_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 UpdateAzureCredentialDto {
16    /// This is the service being used in Azure.
17    #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
18    pub service: Option<ServiceTrue>,
19    /// This is the region of the Azure resource.
20    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
21    pub region: Option<RegionTrue>,
22    /// This is not returned in the API.
23    #[serde(rename = "apiKey", skip_serializing_if = "Option::is_none")]
24    pub api_key: Option<String>,
25    /// This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.
26    #[serde(rename = "fallbackIndex", skip_serializing_if = "Option::is_none")]
27    pub fallback_index: Option<f64>,
28    /// This is the name of credential. This is just for your reference.
29    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
30    pub name: Option<String>,
31    /// This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage.
32    #[serde(rename = "bucketPlan", skip_serializing_if = "Option::is_none")]
33    pub bucket_plan: Option<models::AzureBlobStorageBucketPlan>,
34}
35
36impl UpdateAzureCredentialDto {
37    pub fn new() -> UpdateAzureCredentialDto {
38        UpdateAzureCredentialDto {
39            service: None,
40            region: None,
41            api_key: None,
42            fallback_index: None,
43            name: None,
44            bucket_plan: None,
45        }
46    }
47}
48/// This is the service being used in Azure.
49#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
50pub enum ServiceTrue {
51    #[serde(rename = "speech")]
52    Speech,
53    #[serde(rename = "blob_storage")]
54    BlobStorage,
55}
56
57impl Default for ServiceTrue {
58    fn default() -> ServiceTrue {
59        Self::Speech
60    }
61}
62/// This is the region of the Azure resource.
63#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
64pub enum RegionTrue {
65    #[serde(rename = "australia")]
66    Australia,
67    #[serde(rename = "canadaeast")]
68    Canadaeast,
69    #[serde(rename = "canadacentral")]
70    Canadacentral,
71    #[serde(rename = "eastus2")]
72    Eastus2,
73    #[serde(rename = "eastus")]
74    Eastus,
75    #[serde(rename = "france")]
76    France,
77    #[serde(rename = "india")]
78    India,
79    #[serde(rename = "japaneast")]
80    Japaneast,
81    #[serde(rename = "japanwest")]
82    Japanwest,
83    #[serde(rename = "uaenorth")]
84    Uaenorth,
85    #[serde(rename = "northcentralus")]
86    Northcentralus,
87    #[serde(rename = "norway")]
88    Norway,
89    #[serde(rename = "southcentralus")]
90    Southcentralus,
91    #[serde(rename = "swedencentral")]
92    Swedencentral,
93    #[serde(rename = "switzerland")]
94    Switzerland,
95    #[serde(rename = "uk")]
96    Uk,
97    #[serde(rename = "westus")]
98    Westus,
99    #[serde(rename = "westus3")]
100    Westus3,
101}
102
103impl Default for RegionTrue {
104    fn default() -> RegionTrue {
105        Self::Australia
106    }
107}