Skip to main content

hanzo_client/models/
enable_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 EnableResp {
16    /// AccountToken is the org's own tunnel-account credential. Treat it as a secret: it is what the CLI enables an environment with.
17    #[serde(rename = "accountToken", skip_serializing_if = "Option::is_none")]
18    pub account_token: Option<String>,
19    /// Controller is the public controller endpoint the CLI enables against.
20    #[serde(rename = "controller", skip_serializing_if = "Option::is_none")]
21    pub controller: Option<String>,
22    /// Namespace is the public frontend a share is published into, when the deployment names one.
23    #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
24    pub namespace: Option<String>,
25    /// URLTemplate is the shape a share token expands to, so the CLI can print the resulting URL without asking again.
26    #[serde(rename = "urlTemplate", skip_serializing_if = "Option::is_none")]
27    pub url_template: Option<String>,
28}
29
30impl EnableResp {
31    pub fn new() -> EnableResp {
32        EnableResp {
33            account_token: None,
34            controller: None,
35            namespace: None,
36            url_template: None,
37        }
38    }
39}
40