Skip to main content

hanzo_client/models/
usage_analytics_grant.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 UsageAnalyticsGrant {
16    /// 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.
17    #[serde(rename = "datastore", skip_serializing_if = "Option::is_none")]
18    pub datastore: Option<bool>,
19    /// Export is whether the plan may export the analytics it can read.
20    #[serde(rename = "export", skip_serializing_if = "Option::is_none")]
21    pub export: Option<bool>,
22    /// 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.
23    #[serde(rename = "retentionDays", skip_serializing_if = "Option::is_none")]
24    pub retention_days: Option<i32>,
25}
26
27impl UsageAnalyticsGrant {
28    pub fn new() -> UsageAnalyticsGrant {
29        UsageAnalyticsGrant {
30            datastore: None,
31            export: None,
32            retention_days: None,
33        }
34    }
35}
36