vapi_client/models/
update_azure_credential_dto.rs

1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct UpdateAzureCredentialDto {
19    /// This is the service being used in Azure.
20    #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
21    pub service: Option<Service>,
22    /// This is the region of the Azure resource.
23    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
24    pub region: Option<Region>,
25    /// This is not returned in the API.
26    #[serde(rename = "apiKey", skip_serializing_if = "Option::is_none")]
27    pub api_key: Option<String>,
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            name: None,
43            bucket_plan: None,
44        }
45    }
46}
47/// This is the service being used in Azure.
48#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, ToSchema)]
49pub enum Service {
50    #[serde(rename = "speech")]
51    Speech,
52    #[serde(rename = "blob_storage")]
53    BlobStorage,
54}
55
56impl Default for Service {
57    fn default() -> Service {
58        Self::Speech
59    }
60}
61/// This is the region of the Azure resource.
62#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, ToSchema)]
63pub enum Region {
64    #[serde(rename = "australia")]
65    Australia,
66    #[serde(rename = "canadaeast")]
67    Canadaeast,
68    #[serde(rename = "canadacentral")]
69    Canadacentral,
70    #[serde(rename = "eastus2")]
71    Eastus2,
72    #[serde(rename = "eastus")]
73    Eastus,
74    #[serde(rename = "france")]
75    France,
76    #[serde(rename = "india")]
77    India,
78    #[serde(rename = "japaneast")]
79    Japaneast,
80    #[serde(rename = "japanwest")]
81    Japanwest,
82    #[serde(rename = "uaenorth")]
83    Uaenorth,
84    #[serde(rename = "northcentralus")]
85    Northcentralus,
86    #[serde(rename = "norway")]
87    Norway,
88    #[serde(rename = "southcentralus")]
89    Southcentralus,
90    #[serde(rename = "swedencentral")]
91    Swedencentral,
92    #[serde(rename = "switzerland")]
93    Switzerland,
94    #[serde(rename = "uk")]
95    Uk,
96    #[serde(rename = "westus")]
97    Westus,
98    #[serde(rename = "westus3")]
99    Westus3,
100}
101
102impl Default for Region {
103    fn default() -> Region {
104        Self::Australia
105    }
106}