hanzo_client/models/provider_view.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 ProviderView {
16 /// Available is whether THIS DEPLOYMENT has the provider's app credentials, so connect can succeed. False renders the card without a working Connect button.
17 #[serde(rename = "available", skip_serializing_if = "Option::is_none")]
18 pub available: Option<bool>,
19 /// Category groups the card (\"Communication\", \"Developer\", \"Marketing\").
20 #[serde(rename = "category", skip_serializing_if = "Option::is_none")]
21 pub category: Option<String>,
22 /// Connected is whether this org has a live connection to the provider.
23 #[serde(rename = "connected", skip_serializing_if = "Option::is_none")]
24 pub connected: Option<bool>,
25 /// Connection is the connected account's non-secret detail. Absent when the org has no connection; tokens NEVER appear here (they live only in KMS).
26 #[serde(rename = "connection", skip_serializing_if = "Option::is_none")]
27 pub connection: Option<Box<models::ConnectionView>>,
28 /// Description is the one-line pitch the console card shows.
29 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
30 pub description: Option<String>,
31 /// ID is the provider's registry id and the :provider path segment (\"slack\").
32 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
33 pub id: Option<String>,
34 /// Name is the provider's display name (\"Slack\").
35 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
36 pub name: Option<String>,
37}
38
39impl ProviderView {
40 pub fn new() -> ProviderView {
41 ProviderView {
42 available: None,
43 category: None,
44 connected: None,
45 connection: None,
46 description: None,
47 id: None,
48 name: None,
49 }
50 }
51}
52