Skip to main content

akeyless_api/models/
gateway_update_producer_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/// GatewayUpdateProducerGithub : gatewayUpdateProducerGithub is a command that updates github producer [Deprecated: Use dynamic-secret-update-github command]
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GatewayUpdateProducerGithub {
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    /// Github app id
21    #[serde(rename = "github-app-id", skip_serializing_if = "Option::is_none")]
22    pub github_app_id: Option<i64>,
23    /// App private key
24    #[serde(rename = "github-app-private-key", skip_serializing_if = "Option::is_none")]
25    pub github_app_private_key: Option<String>,
26    /// Base URL
27    #[serde(rename = "github-base-url", skip_serializing_if = "Option::is_none")]
28    pub github_base_url: Option<String>,
29    /// GitHub application installation id
30    #[serde(rename = "installation-id", skip_serializing_if = "Option::is_none")]
31    pub installation_id: Option<i64>,
32    /// Optional, mutually exclusive with installation id, GitHub organization name
33    #[serde(rename = "installation-organization", skip_serializing_if = "Option::is_none")]
34    pub installation_organization: Option<String>,
35    /// Optional, mutually exclusive with installation id, GitHub repository '<owner>/<repo-name>'
36    #[serde(rename = "installation-repository", skip_serializing_if = "Option::is_none")]
37    pub installation_repository: Option<String>,
38    /// Additional custom fields to associate with the item
39    #[serde(rename = "item-custom-fields", skip_serializing_if = "Option::is_none")]
40    pub item_custom_fields: Option<std::collections::HashMap<String, String>>,
41    /// Set output format to JSON
42    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
43    pub json: Option<bool>,
44    /// Dynamic secret name
45    #[serde(rename = "name")]
46    pub name: String,
47    /// Dynamic secret name
48    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
49    pub new_name: Option<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 GatewayUpdateProducerGithub {
74    /// gatewayUpdateProducerGithub is a command that updates github producer [Deprecated: Use dynamic-secret-update-github command]
75    pub fn new(name: String) -> GatewayUpdateProducerGithub {
76        GatewayUpdateProducerGithub {
77            delete_protection: None,
78            github_app_id: None,
79            github_app_private_key: None,
80            github_base_url: None,
81            installation_id: None,
82            installation_organization: None,
83            installation_repository: None,
84            item_custom_fields: None,
85            json: None,
86            name,
87            new_name: None,
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