Skip to main content

akeyless_api/models/
target_create_gcp.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
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 TargetCreateGcp {
16    /// Description of the object
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19    /// Base64-encoded service account private key text
20    #[serde(rename = "gcp-key", skip_serializing_if = "Option::is_none")]
21    pub gcp_key: Option<String>,
22    /// Set output format to JSON
23    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
24    pub json: Option<bool>,
25    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
26    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
27    pub key: Option<String>,
28    /// Set the maximum number of versions, limited by the account settings defaults.
29    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
30    pub max_versions: Option<String>,
31    /// Target name
32    #[serde(rename = "name")]
33    pub name: String,
34    /// Authentication token (see `/auth` and `/configure`)
35    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
36    pub token: Option<String>,
37    /// The universal identity token, Required only for universal_identity authentication
38    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
39    pub uid_token: Option<String>,
40    #[serde(rename = "use-gw-cloud-identity", skip_serializing_if = "Option::is_none")]
41    pub use_gw_cloud_identity: Option<bool>,
42}
43
44impl TargetCreateGcp {
45    pub fn new(name: String) -> TargetCreateGcp {
46        TargetCreateGcp {
47            description: None,
48            gcp_key: None,
49            json: None,
50            key: None,
51            max_versions: None,
52            name,
53            token: None,
54            uid_token: None,
55            use_gw_cloud_identity: None,
56        }
57    }
58}
59