Skip to main content

akeyless_api/models/
update_github_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/// UpdateGithubTarget : updateGithubTarget is a command that updates a new target. [Deprecated: Use target-update-github command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateGithubTarget {
17    /// Deprecated - use description
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20    /// Description of the object
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// Github app id
24    #[serde(rename = "github-app-id", skip_serializing_if = "Option::is_none")]
25    pub github_app_id: Option<i64>,
26    /// App private key
27    #[serde(rename = "github-app-private-key", skip_serializing_if = "Option::is_none")]
28    pub github_app_private_key: Option<String>,
29    /// Base URL
30    #[serde(rename = "github-base-url", skip_serializing_if = "Option::is_none")]
31    pub github_base_url: Option<String>,
32    /// Set output format to JSON
33    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
34    pub json: Option<bool>,
35    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
36    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
37    pub keep_prev_version: Option<String>,
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    /// New target name
48    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
49    pub new_name: Option<String>,
50    /// Authentication token (see `/auth` and `/configure`)
51    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
52    pub token: Option<String>,
53    /// The universal identity token, Required only for universal_identity authentication
54    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
55    pub uid_token: Option<String>,
56    /// Deprecated
57    #[serde(rename = "update-version", skip_serializing_if = "Option::is_none")]
58    pub update_version: Option<bool>,
59}
60
61impl UpdateGithubTarget {
62    /// updateGithubTarget is a command that updates a new target. [Deprecated: Use target-update-github command]
63    pub fn new(name: String) -> UpdateGithubTarget {
64        UpdateGithubTarget {
65            comment: None,
66            description: None,
67            github_app_id: None,
68            github_app_private_key: None,
69            github_base_url: None,
70            json: None,
71            keep_prev_version: None,
72            key: None,
73            max_versions: None,
74            name,
75            new_name: None,
76            token: None,
77            uid_token: None,
78            update_version: None,
79        }
80    }
81}
82