Skip to main content

akeyless_api/models/
event_forwarder_create_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/// EventForwarderCreateServiceNow : eventForwarderCreateServiceNow is a command that creates service-now event forwarder
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EventForwarderCreateServiceNow {
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    /// 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]
42    #[serde(rename = "event-types", skip_serializing_if = "Option::is_none")]
43    pub event_types: Option<Vec<String>>,
44    /// Rate of periodic runner repetition in hours
45    #[serde(rename = "every", skip_serializing_if = "Option::is_none")]
46    pub every: Option<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    /// The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used)
60    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
61    pub key: Option<String>,
62    /// EventForwarder name
63    #[serde(rename = "name")]
64    pub name: String,
65    #[serde(rename = "runner-type")]
66    pub runner_type: String,
67    /// Targets Event sources
68    #[serde(rename = "targets-event-source-locations", skip_serializing_if = "Option::is_none")]
69    pub targets_event_source_locations: Option<Vec<String>>,
70    /// Authentication token (see `/auth` and `/configure`)
71    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
72    pub token: Option<String>,
73    /// The universal identity token, Required only for universal_identity authentication
74    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
75    pub uid_token: Option<String>,
76    /// The user email to identify with when connecting with jwt authentication
77    #[serde(rename = "user-email", skip_serializing_if = "Option::is_none")]
78    pub user_email: Option<String>,
79}
80
81impl EventForwarderCreateServiceNow {
82    /// eventForwarderCreateServiceNow is a command that creates service-now event forwarder
83    pub fn new(gateways_event_source_locations: Vec<String>, name: String, runner_type: String) -> EventForwarderCreateServiceNow {
84        EventForwarderCreateServiceNow {
85            admin_name: None,
86            admin_pwd: None,
87            app_private_key_base64: None,
88            auth_methods_event_source_locations: None,
89            auth_type: None,
90            client_id: None,
91            client_secret: None,
92            description: None,
93            event_types: None,
94            every: None,
95            gateways_event_source_locations,
96            host: None,
97            items_event_source_locations: None,
98            json: None,
99            key: None,
100            name,
101            runner_type,
102            targets_event_source_locations: None,
103            token: None,
104            uid_token: None,
105            user_email: None,
106        }
107    }
108}
109