hanzo_client/models/usage_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 UsageView {
16 /// Org the rollup is for.
17 #[serde(rename = "org", skip_serializing_if = "Option::is_none")]
18 pub org: Option<String>,
19 /// Repos is every repo the org owns, across every project sub-scope.
20 #[serde(rename = "repos", skip_serializing_if = "Option::is_none")]
21 pub repos: Option<Vec<models::UsageRepo>>,
22 /// TotalBytes is the sum over Repos — the org's whole git footprint.
23 #[serde(rename = "totalBytes", skip_serializing_if = "Option::is_none")]
24 pub total_bytes: Option<i32>,
25}
26
27impl UsageView {
28 pub fn new() -> UsageView {
29 UsageView {
30 org: None,
31 repos: None,
32 total_bytes: None,
33 }
34 }
35}
36