Skip to main content

akeyless_api/models/
event_forwarder_update_email.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/// EventForwarderUpdateEmail : eventForwarderUpdateEmail is a command that updates email event forwarder
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EventForwarderUpdateEmail {
17    /// Auth Method Event sources
18    #[serde(rename = "auth-methods-event-source-locations", skip_serializing_if = "Option::is_none")]
19    pub auth_methods_event_source_locations: Option<Vec<String>>,
20    /// Description of the object
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// A comma seperated list of email addresses to send event to
24    #[serde(rename = "email-to", skip_serializing_if = "Option::is_none")]
25    pub email_to: Option<String>,
26    /// Enable/Disable Event Forwarder [true/false]
27    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
28    pub enable: Option<String>,
29    /// 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]
30    #[serde(rename = "event-types", skip_serializing_if = "Option::is_none")]
31    pub event_types: Option<Vec<String>>,
32    /// Event sources
33    #[serde(rename = "gateways-event-source-locations")]
34    pub gateways_event_source_locations: Vec<String>,
35    /// Set this option to include event errors details [true/false]
36    #[serde(rename = "include-error", skip_serializing_if = "Option::is_none")]
37    pub include_error: Option<String>,
38    /// Items Event sources
39    #[serde(rename = "items-event-source-locations", skip_serializing_if = "Option::is_none")]
40    pub items_event_source_locations: Option<Vec<String>>,
41    /// Set output format to JSON
42    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
43    pub json: Option<bool>,
44    /// Whether to keep previous version [true/false]. If not set, use default according to account settings
45    #[serde(rename = "keep-prev-version", skip_serializing_if = "Option::is_none")]
46    pub keep_prev_version: Option<String>,
47    /// The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used)
48    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
49    pub key: Option<String>,
50    /// EventForwarder name
51    #[serde(rename = "name")]
52    pub name: String,
53    /// New EventForwarder name
54    #[serde(rename = "new-name", skip_serializing_if = "Option::is_none")]
55    pub new_name: Option<String>,
56    /// Override Akeyless default URL with your Gateway url (port 18888)
57    #[serde(rename = "override-url", skip_serializing_if = "Option::is_none")]
58    pub override_url: Option<String>,
59    /// Targets Event sources
60    #[serde(rename = "targets-event-source-locations", skip_serializing_if = "Option::is_none")]
61    pub targets_event_source_locations: Option<Vec<String>>,
62    /// Authentication token (see `/auth` and `/configure`)
63    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
64    pub token: Option<String>,
65    /// The universal identity token, Required only for universal_identity authentication
66    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
67    pub uid_token: Option<String>,
68}
69
70impl EventForwarderUpdateEmail {
71    /// eventForwarderUpdateEmail is a command that updates email event forwarder
72    pub fn new(gateways_event_source_locations: Vec<String>, name: String) -> EventForwarderUpdateEmail {
73        EventForwarderUpdateEmail {
74            auth_methods_event_source_locations: None,
75            description: None,
76            email_to: None,
77            enable: None,
78            event_types: None,
79            gateways_event_source_locations,
80            include_error: None,
81            items_event_source_locations: None,
82            json: None,
83            keep_prev_version: None,
84            key: None,
85            name,
86            new_name: None,
87            override_url: None,
88            targets_event_source_locations: None,
89            token: None,
90            uid_token: None,
91        }
92    }
93}
94