/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.2
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// PushConfig : Configuration for push delivery mode.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PushConfig {
    /// The audience claim for OIDC tokens used in push authentication.
    #[serde(rename = "audience", skip_serializing_if = "Option::is_none")]
    pub audience: Option<String>,
    /// If true, push messages will include OIDC authentication tokens.
    #[serde(rename = "authenticate")]
    pub authenticate: bool,
}

impl PushConfig {
    /// Configuration for push delivery mode.
    pub fn new(authenticate: bool) -> PushConfig {
        PushConfig {
            audience: None,
            authenticate,
        }
    }
}

