Skip to main content

doppler_rs/models/
update_webhook_request.rs

1/*
2 * Core
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0-oas3.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/*
12 * Core
13 *
14 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15 *
16 * The version of the OpenAPI document: 1.0.0-oas3.1
17 * 
18 * Generated by: https://openapi-generator.tech
19 */
20
21use crate::models;
22use serde::{Deserialize, Serialize};
23use chrono::{DateTime, NaiveDate, Utc};
24/// UpdateWebhookRequest
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct UpdateWebhookRequest {
27    /// The webhook URL. Must be https
28    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
29    pub url: Option<String >,
30    /// See: https://docs.doppler.com/docs/webhooks#verify-webhook-with-request-signing
31    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
32    pub secret: Option<String >,
33    #[serde(rename = "authentication", skip_serializing_if = "Option::is_none")]
34    pub authentication: Option<models::WebhookAuthentication >,
35    /// See: https://docs.doppler.com/docs/webhooks#default-payload
36    #[serde(rename = "payload", skip_serializing_if = "Option::is_none")]
37    pub payload: Option<String >,
38    /// Name of the webhook.
39    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
40    pub name: Option<String >,
41    /// Config slugs that the webhook should be enabled for
42    #[serde(rename = "enableConfigs", skip_serializing_if = "Option::is_none")]
43    pub enable_configs: Option<Vec<String> >,
44    /// Config slugs that the webhook should be disabled for
45    #[serde(rename = "disableConfigs", skip_serializing_if = "Option::is_none")]
46    pub disable_configs: Option<Vec<String> >,
47}
48
49impl UpdateWebhookRequest {
50    pub fn new() -> UpdateWebhookRequest {
51        UpdateWebhookRequest {
52            url: None,
53            secret: None,
54            authentication: None,
55            payload: None,
56            name: None,
57            enable_configs: None,
58            disable_configs: None,
59        }
60    }
61}
62