Skip to main content

akeyless_api/models/
dynamic_secret_create_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/// DynamicSecretCreateGithub : dynamicSecretCreateGithub is a command that creates github dynamic secret
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DynamicSecretCreateGithub {
17    /// Protection from accidental deletion of this object [true/false]
18    #[serde(rename = "delete_protection", skip_serializing_if = "Option::is_none")]
19    pub delete_protection: 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    /// GitHub application installation id
33    #[serde(rename = "installation-id", skip_serializing_if = "Option::is_none")]
34    pub installation_id: Option<i64>,
35    /// Optional, mutually exclusive with installation id, GitHub organization name
36    #[serde(rename = "installation-organization", skip_serializing_if = "Option::is_none")]
37    pub installation_organization: Option<String>,
38    /// Optional, mutually exclusive with installation id, GitHub repository '<owner>/<repo-name>'
39    #[serde(rename = "installation-repository", skip_serializing_if = "Option::is_none")]
40    pub installation_repository: Option<String>,
41    /// Additional custom fields to associate with the item
42    #[serde(rename = "item-custom-fields", skip_serializing_if = "Option::is_none")]
43    pub item_custom_fields: Option<std::collections::HashMap<String, String>>,
44    /// Set output format to JSON
45    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
46    pub json: Option<bool>,
47    /// Dynamic secret name
48    #[serde(rename = "name")]
49    pub name: String,
50    /// Add tags attached to this object
51    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
52    pub tags: Option<Vec<String>>,
53    /// Target name
54    #[serde(rename = "target-name", skip_serializing_if = "Option::is_none")]
55    pub target_name: Option<String>,
56    /// Authentication token (see `/auth` and `/configure`)
57    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
58    pub token: Option<String>,
59    /// Optional - installation token's allowed permissions
60    #[serde(rename = "token-permissions", skip_serializing_if = "Option::is_none")]
61    pub token_permissions: Option<Vec<String>>,
62    /// Optional - installation token's allowed repositories
63    #[serde(rename = "token-repositories", skip_serializing_if = "Option::is_none")]
64    pub token_repositories: Option<Vec<String>>,
65    /// Token TTL
66    #[serde(rename = "token-ttl", skip_serializing_if = "Option::is_none")]
67    pub token_ttl: Option<String>,
68    /// The universal identity token, Required only for universal_identity authentication
69    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
70    pub uid_token: Option<String>,
71}
72
73impl DynamicSecretCreateGithub {
74    /// dynamicSecretCreateGithub is a command that creates github dynamic secret
75    pub fn new(name: String) -> DynamicSecretCreateGithub {
76        DynamicSecretCreateGithub {
77            delete_protection: None,
78            description: None,
79            github_app_id: None,
80            github_app_private_key: None,
81            github_base_url: None,
82            installation_id: None,
83            installation_organization: None,
84            installation_repository: None,
85            item_custom_fields: None,
86            json: None,
87            name,
88            tags: None,
89            target_name: None,
90            token: None,
91            token_permissions: None,
92            token_repositories: None,
93            token_ttl: None,
94            uid_token: None,
95        }
96    }
97}
98