1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* 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 UpdateGcpCredentialDto {
/// 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>,
/// This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details/<service-account-id>/keys. The schema is identical to the JSON that GCP outputs.
#[serde(rename = "gcpKey", skip_serializing_if = "Option::is_none")]
pub gcp_key: Option<models::GcpKey>,
/// This is the region of the GCP resource.
#[serde(rename = "region", skip_serializing_if = "Option::is_none")]
pub region: Option<String>,
#[serde(rename = "bucketPlan", skip_serializing_if = "Option::is_none")]
pub bucket_plan: Option<models::BucketPlan>,
}
impl UpdateGcpCredentialDto {
pub fn new() -> UpdateGcpCredentialDto {
UpdateGcpCredentialDto {
fallback_index: None,
name: None,
gcp_key: None,
region: None,
bucket_plan: None,
}
}
}