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