#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct NormalizedProjectRevisionHook {
#[serde(rename = "config_key")]
pub config_key: String,
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "hook")]
pub hook: String,
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "project_revision_id", skip_serializing_if = "Option::is_none")]
pub project_revision_id: Option<String>,
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<String>,
#[serde(rename = "web_hook_config_auth_api_key_in", skip_serializing_if = "Option::is_none")]
pub web_hook_config_auth_api_key_in: Option<String>,
#[serde(rename = "web_hook_config_auth_api_key_name", skip_serializing_if = "Option::is_none")]
pub web_hook_config_auth_api_key_name: Option<String>,
#[serde(rename = "web_hook_config_auth_api_key_value", skip_serializing_if = "Option::is_none")]
pub web_hook_config_auth_api_key_value: Option<String>,
#[serde(rename = "web_hook_config_auth_basic_auth_password", skip_serializing_if = "Option::is_none")]
pub web_hook_config_auth_basic_auth_password: Option<String>,
#[serde(rename = "web_hook_config_auth_basic_auth_user", skip_serializing_if = "Option::is_none")]
pub web_hook_config_auth_basic_auth_user: Option<String>,
#[serde(rename = "web_hook_config_auth_type", skip_serializing_if = "Option::is_none")]
pub web_hook_config_auth_type: Option<String>,
#[serde(rename = "web_hook_config_body", skip_serializing_if = "Option::is_none")]
pub web_hook_config_body: Option<String>,
#[serde(rename = "web_hook_config_can_interrupt", skip_serializing_if = "Option::is_none")]
pub web_hook_config_can_interrupt: Option<bool>,
#[serde(rename = "web_hook_config_method", skip_serializing_if = "Option::is_none")]
pub web_hook_config_method: Option<String>,
#[serde(rename = "web_hook_config_response_ignore", skip_serializing_if = "Option::is_none")]
pub web_hook_config_response_ignore: Option<bool>,
#[serde(rename = "web_hook_config_response_parse", skip_serializing_if = "Option::is_none")]
pub web_hook_config_response_parse: Option<bool>,
#[serde(rename = "web_hook_config_url", skip_serializing_if = "Option::is_none")]
pub web_hook_config_url: Option<String>,
}
impl NormalizedProjectRevisionHook {
pub fn new(config_key: String, hook: String) -> NormalizedProjectRevisionHook {
NormalizedProjectRevisionHook {
config_key,
created_at: None,
hook,
id: None,
project_revision_id: None,
updated_at: None,
web_hook_config_auth_api_key_in: None,
web_hook_config_auth_api_key_name: None,
web_hook_config_auth_api_key_value: None,
web_hook_config_auth_basic_auth_password: None,
web_hook_config_auth_basic_auth_user: None,
web_hook_config_auth_type: None,
web_hook_config_body: None,
web_hook_config_can_interrupt: None,
web_hook_config_method: None,
web_hook_config_response_ignore: None,
web_hook_config_response_parse: None,
web_hook_config_url: None,
}
}
}