Skip to main content

akeyless_api/models/
event_forwarder_update_service_now.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/// EventForwarderUpdateServiceNow : eventForwarderUpdateServiceNow is a command that updates service now event forwarder
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EventForwarderUpdateServiceNow {
17    /// Workstation Admin Name
18    #[serde(rename = "admin-name", skip_serializing_if = "Option::is_none")]
19    pub admin_name: Option<String>,
20    /// Workstation Admin Password
21    #[serde(rename = "admin-pwd", skip_serializing_if = "Option::is_none")]
22    pub admin_pwd: Option<String>,
23    /// The RSA Private Key to use when connecting with jwt authentication
24    #[serde(rename = "app-private-key-base64", skip_serializing_if = "Option::is_none")]
25    pub app_private_key_base64: Option<String>,
26    /// Auth Method Event sources
27    #[serde(rename = "auth-methods-event-source-locations", skip_serializing_if = "Option::is_none")]
28    pub auth_methods_event_source_locations: Option<Vec<String>>,
29    /// The authentication type to use [user-pass/jwt]
30    #[serde(rename = "auth-type", skip_serializing_if = "Option::is_none")]
31    pub auth_type: Option<String>,
32    /// The client ID to use when connecting with jwt authentication
33    #[serde(rename = "client-id", skip_serializing_if = "Option::is_none")]
34    pub client_id: Option<String>,
35    /// The client secret to use when connecting with jwt authentication
36    #[serde(rename = "client-secret", skip_serializing_if = "Option::is_none")]
37    pub client_secret: Option<String>,
38    /// Description of the object
39    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
40    pub description: Option<String>,
41    /// Enable/Disable Event Forwarder [true/false]
42    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
43    pub enable: Option<String>,
44    /// List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, next-automatic-rotation, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated, rate-limiting, usage-report, secret-sync]
45    #[serde(rename = "event-types", skip_serializing_if = "Option::is_none")]
46    pub event_types: Option<Vec<String>>,
47    /// Event sources
48    #[serde(rename = "gateways-event-source-locations")]
49    pub gateways_event_source_locations: Vec<String>,
50    /// Workstation Host
51    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
52    pub host: Option<String>,
53    /// Items Event sources
54    #[serde(rename = "items-event-source-locations", skip_serializing_if = "Option::is_none")]
55    pub items_event_source_locations: Option<Vec<String>>,
56    /// Set output format to JSON
57    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
58    pub json: Option<bool>,
59    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
60    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
61    pub keep_prev_version: Option<String>,
62    /// The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used)
63    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
64    pub key: Option<String>,
65    /// EventForwarder name
66    #[serde(rename = "name")]
67    pub name: String,
68    /// New EventForwarder name
69    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
70    pub new_name: Option<String>,
71    /// Targets Event sources
72    #[serde(rename = "targets-event-source-locations", skip_serializing_if = "Option::is_none")]
73    pub targets_event_source_locations: Option<Vec<String>>,
74    /// Authentication token (see `/auth` and `/configure`)
75    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
76    pub token: Option<String>,
77    /// The universal identity token, Required only for universal_identity authentication
78    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
79    pub uid_token: Option<String>,
80    /// The user email to identify with when connecting with jwt authentication
81    #[serde(rename = "user-email", skip_serializing_if = "Option::is_none")]
82    pub user_email: Option<String>,
83}
84
85impl EventForwarderUpdateServiceNow {
86    /// eventForwarderUpdateServiceNow is a command that updates service now event forwarder
87    pub fn new(gateways_event_source_locations: Vec<String>, name: String) -> EventForwarderUpdateServiceNow {
88        EventForwarderUpdateServiceNow {
89            admin_name: None,
90            admin_pwd: None,
91            app_private_key_base64: None,
92            auth_methods_event_source_locations: None,
93            auth_type: None,
94            client_id: None,
95            client_secret: None,
96            description: None,
97            enable: None,
98            event_types: None,
99            gateways_event_source_locations,
100            host: None,
101            items_event_source_locations: None,
102            json: None,
103            keep_prev_version: None,
104            key: None,
105            name,
106            new_name: None,
107            targets_event_source_locations: None,
108            token: None,
109            uid_token: None,
110            user_email: None,
111        }
112    }
113}
114