Skip to main content

akeyless_api/models/
target_update_github.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 TargetUpdateGithub {
16    /// Description of the object
17    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18    pub description: Option<String>,
19    /// Github app id
20    #[serde(rename = "github-app-id", skip_serializing_if = "Option::is_none")]
21    pub github_app_id: Option<i64>,
22    /// App private key
23    #[serde(rename = "github-app-private-key", skip_serializing_if = "Option::is_none")]
24    pub github_app_private_key: Option<String>,
25    /// Base URL
26    #[serde(rename = "github-base-url", skip_serializing_if = "Option::is_none")]
27    pub github_base_url: Option<String>,
28    /// Set output format to JSON
29    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
30    pub json: Option<bool>,
31    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
32    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
33    pub keep_prev_version: Option<String>,
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    /// New target name
44    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
45    pub new_name: Option<String>,
46    /// Authentication token (see `/auth` and `/configure`)
47    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
48    pub token: Option<String>,
49    /// The universal identity token, Required only for universal_identity authentication
50    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
51    pub uid_token: Option<String>,
52}
53
54impl TargetUpdateGithub {
55    pub fn new(name: String) -> TargetUpdateGithub {
56        TargetUpdateGithub {
57            description: None,
58            github_app_id: None,
59            github_app_private_key: None,
60            github_base_url: None,
61            json: None,
62            keep_prev_version: None,
63            key: None,
64            max_versions: None,
65            name,
66            new_name: None,
67            token: None,
68            uid_token: None,
69        }
70    }
71}
72