vapi_client/models/
update_gcp_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 UpdateGcpCredentialDto {
16    /// This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order.
17    #[serde(rename = "fallbackIndex", skip_serializing_if = "Option::is_none")]
18    pub fallback_index: Option<f64>,
19    /// This is the name of credential. This is just for your reference.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// 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.
23    #[serde(rename = "gcpKey", skip_serializing_if = "Option::is_none")]
24    pub gcp_key: Option<models::GcpKey>,
25    /// This is the region of the GCP resource.
26    #[serde(rename = "region", skip_serializing_if = "Option::is_none")]
27    pub region: Option<String>,
28    #[serde(rename = "bucketPlan", skip_serializing_if = "Option::is_none")]
29    pub bucket_plan: Option<models::BucketPlan>,
30}
31
32impl UpdateGcpCredentialDto {
33    pub fn new() -> UpdateGcpCredentialDto {
34        UpdateGcpCredentialDto {
35            fallback_index: None,
36            name: None,
37            gcp_key: None,
38            region: None,
39            bucket_plan: None,
40        }
41    }
42}