/*
* 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 ProjectionView {
/// Apps says, per console app, whether the org may open it. The SAME six keys are always present (studio, bot, world, platform, team, admin), so a client maps over it unconditionally; a key is false both when the plan does not grant the app and when commerce could not be reached, because a read that decides what to SHOW fails to LOCKED rather than to an error.
#[serde(rename = "apps", skip_serializing_if = "Option::is_none")]
pub apps: Option<std::collections::HashMap<String, bool>>,
/// Tier is the plan slug commerce resolved for the org, or \"\" when the org has no active licensing subscription — which the console treats as its free default.
#[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
pub tier: Option<String>,
}
impl ProjectionView {
pub fn new() -> ProjectionView {
ProjectionView {
apps: None,
tier: None,
}
}
}