Skip to main content

hanzo_client/models/
embed_status_resp.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct EmbedStatusResp {
16    /// App is the app this verdict is about.
17    #[serde(rename = "app", skip_serializing_if = "Option::is_none")]
18    pub app: Option<String>,
19    /// EmbedURL is the in-app landing URL to frame. Empty when the caller is not entitled — a non-entitled caller never receives it.
20    #[serde(rename = "embedUrl", skip_serializing_if = "Option::is_none")]
21    pub embed_url: Option<String>,
22    /// Entitled is whether the caller's org may frame this brand-owned app.
23    #[serde(rename = "entitled", skip_serializing_if = "Option::is_none")]
24    pub entitled: Option<bool>,
25    /// Origin is the app's origin on this deployment's own brand domain.
26    #[serde(rename = "origin", skip_serializing_if = "Option::is_none")]
27    pub origin: Option<String>,
28    /// Phase is the verdict in one word: not-entitled, not-provisioned or ready.
29    #[serde(rename = "phase", skip_serializing_if = "Option::is_none")]
30    pub phase: Option<String>,
31    /// Reachable is whether the app answered the liveness probe.
32    #[serde(rename = "reachable", skip_serializing_if = "Option::is_none")]
33    pub reachable: Option<bool>,
34}
35
36impl EmbedStatusResp {
37    pub fn new() -> EmbedStatusResp {
38        EmbedStatusResp {
39            app: None,
40            embed_url: None,
41            entitled: None,
42            origin: None,
43            phase: None,
44            reachable: None,
45        }
46    }
47}
48