hanzo_client/models/reachability.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 Reachability {
16 /// Configured is whether the wholesale credentials are present at all.
17 #[serde(rename = "configured", skip_serializing_if = "Option::is_none")]
18 pub configured: Option<bool>,
19 /// Env is the registrar environment. It is the fact that decides whether money moves: only \"prod\" reaches the live, billable registrar — anything else, including unset, is the sandbox.
20 #[serde(rename = "env", skip_serializing_if = "Option::is_none")]
21 pub env: Option<String>,
22 /// Error is the blocker, so an operator reads it instead of guessing at it.
23 #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
24 pub error: Option<String>,
25 /// Reachable is whether the registrar accepted those credentials on a live call made while the caller waited.
26 #[serde(rename = "reachable", skip_serializing_if = "Option::is_none")]
27 pub reachable: Option<bool>,
28 /// Registrar names the wholesale registrar behind it.
29 #[serde(rename = "registrar", skip_serializing_if = "Option::is_none")]
30 pub registrar: Option<String>,
31 /// Service names the subsystem answering.
32 #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
33 pub service: Option<String>,
34 /// Status is \"ok\" when a live call succeeded, else \"degraded\".
35 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
36 pub status: Option<String>,
37}
38
39impl Reachability {
40 pub fn new() -> Reachability {
41 Reachability {
42 configured: None,
43 env: None,
44 error: None,
45 reachable: None,
46 registrar: None,
47 service: None,
48 status: None,
49 }
50 }
51}
52