Skip to main content

akeyless_api/models/
target_create_azure.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 TargetCreateAzure {
16    /// Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
17    #[serde(rename = "azure-cloud", skip_serializing_if = "Option::is_none")]
18    pub azure_cloud: Option<String>,
19    /// Azure client/application id
20    #[serde(rename = "client-id", skip_serializing_if = "Option::is_none")]
21    pub client_id: Option<String>,
22    /// Azure client secret
23    #[serde(rename = "client-secret", skip_serializing_if = "Option::is_none")]
24    pub client_secret: Option<String>,
25    /// Type of connection [credentials/cloud-identity]
26    #[serde(rename = "connection-type", skip_serializing_if = "Option::is_none")]
27    pub connection_type: Option<String>,
28    /// Description of the object
29    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
30    pub description: Option<String>,
31    /// Set output format to JSON
32    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
33    pub json: Option<bool>,
34    /// The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
35    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
36    pub key: Option<String>,
37    /// Set the maximum number of versions, limited by the account settings defaults.
38    #[serde(rename = "max-versions", skip_serializing_if = "Option::is_none")]
39    pub max_versions: Option<String>,
40    /// Target name
41    #[serde(rename = "name")]
42    pub name: String,
43    /// The Resource Group name in your Azure subscription
44    #[serde(rename = "resource-group-name", skip_serializing_if = "Option::is_none")]
45    pub resource_group_name: Option<String>,
46    /// The name of the relevant Resource
47    #[serde(rename = "resource-name", skip_serializing_if = "Option::is_none")]
48    pub resource_name: Option<String>,
49    /// Azure Subscription Id
50    #[serde(rename = "subscription-id", skip_serializing_if = "Option::is_none")]
51    pub subscription_id: Option<String>,
52    /// Azure tenant id
53    #[serde(rename = "tenant-id", skip_serializing_if = "Option::is_none")]
54    pub tenant_id: Option<String>,
55    /// Authentication token (see `/auth` and `/configure`)
56    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
57    pub token: Option<String>,
58    /// The universal identity token, Required only for universal_identity authentication
59    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
60    pub uid_token: Option<String>,
61    /// Use the GW's Cloud IAM [Deprecated: Use connection-type=cloud-identity]
62    #[serde(rename = "use-gw-cloud-identity", skip_serializing_if = "Option::is_none")]
63    pub use_gw_cloud_identity: Option<bool>,
64}
65
66impl TargetCreateAzure {
67    pub fn new(name: String) -> TargetCreateAzure {
68        TargetCreateAzure {
69            azure_cloud: None,
70            client_id: None,
71            client_secret: None,
72            connection_type: None,
73            description: None,
74            json: None,
75            key: None,
76            max_versions: None,
77            name,
78            resource_group_name: None,
79            resource_name: None,
80            subscription_id: None,
81            tenant_id: None,
82            token: None,
83            uid_token: None,
84            use_gw_cloud_identity: None,
85        }
86    }
87}
88