Skip to main content

akeyless_api/models/
gateway_create_producer_redshift.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/// GatewayCreateProducerRedshift : gatewayCreateProducerRedshift is a command that creates redshift producer [Deprecated: Use dynamic-secret-create-redshift command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GatewayCreateProducerRedshift {
17    /// Redshift Creation statements
18    #[serde(rename = "creation-statements", skip_serializing_if = "Option::is_none")]
19    pub creation_statements: Option<String>,
20    /// Customize how temporary usernames are generated using go template
21    #[serde(rename = "custom-username-template", skip_serializing_if = "Option::is_none")]
22    pub custom_username_template: Option<String>,
23    /// Protection from accidental deletion of this object [true/false]
24    #[serde(rename = "delete_protection", skip_serializing_if = "Option::is_none")]
25    pub delete_protection: Option<String>,
26    /// Additional custom fields to associate with the item
27    #[serde(rename = "item-custom-fields", skip_serializing_if = "Option::is_none")]
28    pub item_custom_fields: Option<std::collections::HashMap<String, String>>,
29    /// Set output format to JSON
30    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
31    pub json: Option<bool>,
32    /// Dynamic secret name
33    #[serde(rename = "name")]
34    pub name: String,
35    /// The length of the password to be generated
36    #[serde(rename = "password-length", skip_serializing_if = "Option::is_none")]
37    pub password_length: Option<String>,
38    /// Dynamic producer encryption key
39    #[serde(rename = "producer-encryption-key", skip_serializing_if = "Option::is_none")]
40    pub producer_encryption_key: Option<String>,
41    /// Redshift DB Name
42    #[serde(rename = "redshift-db-name", skip_serializing_if = "Option::is_none")]
43    pub redshift_db_name: Option<String>,
44    /// Redshift Host
45    #[serde(rename = "redshift-host", skip_serializing_if = "Option::is_none")]
46    pub redshift_host: Option<String>,
47    /// Redshift Password
48    #[serde(rename = "redshift-password", skip_serializing_if = "Option::is_none")]
49    pub redshift_password: Option<String>,
50    /// Redshift Port
51    #[serde(rename = "redshift-port", skip_serializing_if = "Option::is_none")]
52    pub redshift_port: Option<String>,
53    /// Redshift Username
54    #[serde(rename = "redshift-username", skip_serializing_if = "Option::is_none")]
55    pub redshift_username: Option<String>,
56    /// Enable/Disable secure remote access [true/false]
57    #[serde(rename = "secure-access-enable", skip_serializing_if = "Option::is_none")]
58    pub secure_access_enable: Option<String>,
59    /// Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
60    #[serde(rename = "secure-access-host", skip_serializing_if = "Option::is_none")]
61    pub secure_access_host: Option<Vec<String>>,
62    /// Enable/Disable SSL [true/false]
63    #[serde(rename = "ssl", skip_serializing_if = "Option::is_none")]
64    pub ssl: Option<bool>,
65    /// Add tags attached to this object
66    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
67    pub tags: Option<Vec<String>>,
68    /// Target name
69    #[serde(rename = "target-name", skip_serializing_if = "Option::is_none")]
70    pub target_name: Option<String>,
71    /// Authentication token (see `/auth` and `/configure`)
72    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
73    pub token: Option<String>,
74    /// The universal identity token, Required only for universal_identity authentication
75    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
76    pub uid_token: Option<String>,
77    /// User TTL
78    #[serde(rename = "user-ttl", skip_serializing_if = "Option::is_none")]
79    pub user_ttl: Option<String>,
80}
81
82impl GatewayCreateProducerRedshift {
83    /// gatewayCreateProducerRedshift is a command that creates redshift producer [Deprecated: Use dynamic-secret-create-redshift command]
84    pub fn new(name: String) -> GatewayCreateProducerRedshift {
85        GatewayCreateProducerRedshift {
86            creation_statements: None,
87            custom_username_template: None,
88            delete_protection: None,
89            item_custom_fields: None,
90            json: None,
91            name,
92            password_length: None,
93            producer_encryption_key: None,
94            redshift_db_name: None,
95            redshift_host: None,
96            redshift_password: None,
97            redshift_port: None,
98            redshift_username: None,
99            secure_access_enable: None,
100            secure_access_host: None,
101            ssl: None,
102            tags: None,
103            target_name: None,
104            token: None,
105            uid_token: None,
106            user_ttl: None,
107        }
108    }
109}
110