Skip to main content

akeyless_api/models/
configure.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 Configure {
16    /// Access ID
17    #[serde(rename = "access-id", skip_serializing_if = "Option::is_none")]
18    pub access_id: Option<String>,
19    /// Access Key
20    #[serde(rename = "access-key", skip_serializing_if = "Option::is_none")]
21    pub access_key: Option<String>,
22    /// Access Type (access_key/password/azure_ad/saml/oidc/aws_iam/gcp/k8s/cert)
23    #[serde(rename = "access-type", skip_serializing_if = "Option::is_none")]
24    pub access_type: Option<String>,
25    /// Account id (relevant only for access-type=password where the email address is associated with more than one account)
26    #[serde(rename = "account-id", skip_serializing_if = "Option::is_none")]
27    pub account_id: Option<String>,
28    /// Email (relevant only for access-type=password)
29    #[serde(rename = "admin-email", skip_serializing_if = "Option::is_none")]
30    pub admin_email: Option<String>,
31    /// Password (relevant only for access-type=password)
32    #[serde(rename = "admin-password", skip_serializing_if = "Option::is_none")]
33    pub admin_password: Option<String>,
34    /// Azure Active Directory ObjectId (relevant only for access-type=azure_ad)
35    #[serde(rename = "azure-ad-object-id", skip_serializing_if = "Option::is_none")]
36    pub azure_ad_object_id: Option<String>,
37    /// Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
38    #[serde(rename = "azure-cloud", skip_serializing_if = "Option::is_none")]
39    pub azure_cloud: Option<String>,
40    /// Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert in Curl Context)
41    #[serde(rename = "cert-data", skip_serializing_if = "Option::is_none")]
42    pub cert_data: Option<String>,
43    /// Certificate Issuer Name
44    #[serde(rename = "cert-issuer-name", skip_serializing_if = "Option::is_none")]
45    pub cert_issuer_name: Option<String>,
46    /// The username to sign in the SSH certificate (use a comma-separated list for more than one username)
47    #[serde(rename = "cert-username", skip_serializing_if = "Option::is_none")]
48    pub cert_username: Option<String>,
49    /// Default path prefix for name of items, targets and auth methods
50    #[serde(rename = "default-location-prefix", skip_serializing_if = "Option::is_none")]
51    pub default_location_prefix: Option<String>,
52    /// Disable the FAST negotiation in the Kerberos authentication method
53    #[serde(rename = "disable-pafxfast", skip_serializing_if = "Option::is_none")]
54    pub disable_pafxfast: Option<String>,
55    /// The service principal name of the gateway as registered in LDAP (i.e., HTTP/gateway)
56    #[serde(rename = "gateway-spn", skip_serializing_if = "Option::is_none")]
57    pub gateway_spn: Option<String>,
58    /// GCP JWT audience
59    #[serde(rename = "gcp-audience", skip_serializing_if = "Option::is_none")]
60    pub gcp_audience: Option<String>,
61    /// Set output format to JSON
62    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
63    pub json: Option<bool>,
64    /// The K8S Auth config name (relevant only for access-type=k8s)
65    #[serde(rename = "k8s-auth-config-name", skip_serializing_if = "Option::is_none")]
66    pub k8s_auth_config_name: Option<String>,
67    /// KerberosToken represents a Kerberos token generated for the gateway SPN (Service Principal Name).
68    #[serde(rename = "kerberos-token", skip_serializing_if = "Option::is_none")]
69    pub kerberos_token: Option<String>,
70    /// TThe username for the entry within the keytab to authenticate via Kerberos
71    #[serde(rename = "kerberos-username", skip_serializing_if = "Option::is_none")]
72    pub kerberos_username: Option<String>,
73    /// Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert in Curl Context)
74    #[serde(rename = "key-data", skip_serializing_if = "Option::is_none")]
75    pub key_data: Option<String>,
76    /// Base64-encoded content of a valid keytab file, containing the service account's entry.
77    #[serde(rename = "keytab-data", skip_serializing_if = "Option::is_none")]
78    pub keytab_data: Option<String>,
79    /// Base64-encoded content of a valid krb5.conf file, specifying the settings and parameters required for Kerberos authentication.
80    #[serde(rename = "krb5-conf-data", skip_serializing_if = "Option::is_none")]
81    pub krb5_conf_data: Option<String>,
82    /// Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the certificate.
83    #[serde(rename = "legacy-signing-alg-name", skip_serializing_if = "Option::is_none")]
84    pub legacy_signing_alg_name: Option<bool>,
85    /// The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci)
86    #[serde(rename = "oci-auth-type", skip_serializing_if = "Option::is_none")]
87    pub oci_auth_type: Option<String>,
88    /// A list of Oracle Cloud IDs groups (relevant only for access-type=oci)
89    #[serde(rename = "oci-group-ocid", skip_serializing_if = "Option::is_none")]
90    pub oci_group_ocid: Option<Vec<String>>,
91}
92
93impl Configure {
94    pub fn new() -> Configure {
95        Configure {
96            access_id: None,
97            access_key: None,
98            access_type: None,
99            account_id: None,
100            admin_email: None,
101            admin_password: None,
102            azure_ad_object_id: None,
103            azure_cloud: None,
104            cert_data: None,
105            cert_issuer_name: None,
106            cert_username: None,
107            default_location_prefix: None,
108            disable_pafxfast: None,
109            gateway_spn: None,
110            gcp_audience: None,
111            json: None,
112            k8s_auth_config_name: None,
113            kerberos_token: None,
114            kerberos_username: None,
115            key_data: None,
116            keytab_data: None,
117            krb5_conf_data: None,
118            legacy_signing_alg_name: None,
119            oci_auth_type: None,
120            oci_group_ocid: None,
121        }
122    }
123}
124