Skip to main content

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