/*
* 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 UsageAnalyticsGrant {
/// Datastore is whether the plan may read GET /v1/usage/analytics at all. The free floor is false, and that is what a catalog outage resolves to.
#[serde(rename = "datastore", skip_serializing_if = "Option::is_none")]
pub datastore: Option<bool>,
/// Export is whether the plan may export the analytics it can read.
#[serde(rename = "export", skip_serializing_if = "Option::is_none")]
pub export: Option<bool>,
/// RetentionDays is how far back the plan may read. GET /v1/usage/analytics clamps a custom window's start to this, so an older `start` returns the clamped window rather than an error.
#[serde(rename = "retentionDays", skip_serializing_if = "Option::is_none")]
pub retention_days: Option<i32>,
}
impl UsageAnalyticsGrant {
pub fn new() -> UsageAnalyticsGrant {
UsageAnalyticsGrant {
datastore: None,
export: None,
retention_days: None,
}
}
}