vapi_client/models/
gcp_key.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 GcpKey {
16    /// This is the type of the key. Most likely, this is \"service_account\".
17    #[serde(rename = "type")]
18    pub r#type: String,
19    /// This is the ID of the Google Cloud project associated with this key.
20    #[serde(rename = "projectId")]
21    pub project_id: String,
22    /// This is the unique identifier for the private key.
23    #[serde(rename = "privateKeyId")]
24    pub private_key_id: String,
25    /// This is the private key in PEM format.  Note: This is not returned in the API.
26    #[serde(rename = "privateKey")]
27    pub private_key: String,
28    /// This is the email address associated with the service account.
29    #[serde(rename = "clientEmail")]
30    pub client_email: String,
31    /// This is the unique identifier for the client.
32    #[serde(rename = "clientId")]
33    pub client_id: String,
34    /// This is the URI for the auth provider's authorization endpoint.
35    #[serde(rename = "authUri")]
36    pub auth_uri: String,
37    /// This is the URI for the auth provider's token endpoint.
38    #[serde(rename = "tokenUri")]
39    pub token_uri: String,
40    /// This is the URL of the public x509 certificate for the auth provider.
41    #[serde(rename = "authProviderX509CertUrl")]
42    pub auth_provider_x509_cert_url: String,
43    /// This is the URL of the public x509 certificate for the client.
44    #[serde(rename = "clientX509CertUrl")]
45    pub client_x509_cert_url: String,
46    /// This is the domain associated with the universe this service account belongs to.
47    #[serde(rename = "universeDomain")]
48    pub universe_domain: String,
49}
50
51impl GcpKey {
52    pub fn new(r#type: String, project_id: String, private_key_id: String, private_key: String, client_email: String, client_id: String, auth_uri: String, token_uri: String, auth_provider_x509_cert_url: String, client_x509_cert_url: String, universe_domain: String) -> GcpKey {
53        GcpKey {
54            r#type,
55            project_id,
56            private_key_id,
57            private_key,
58            client_email,
59            client_id,
60            auth_uri,
61            token_uri,
62            auth_provider_x509_cert_url,
63            client_x509_cert_url,
64            universe_domain,
65        }
66    }
67}
68