/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SubscribeReq {
/// Channel is the Slack channel the notifier posts to — an id (C…/G…), a #name, or a bare name. Required.
#[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
pub channel: Option<String>,
/// Events narrows delivery to these lifecycle kinds (push.landed, deploy.live, deploy.failed). Omit it to receive every deliverable kind; a kind that is never posted to Slack is refused rather than silently dropped.
#[serde(rename = "events", skip_serializing_if = "Option::is_none")]
pub events: Option<Vec<String>>,
/// Name is the repo to subscribe, from the :name path segment.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
impl SubscribeReq {
pub fn new() -> SubscribeReq {
SubscribeReq {
channel: None,
events: None,
name: None,
}
}
}