/*
* 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 UsageView {
/// Org the rollup is for.
#[serde(rename = "org", skip_serializing_if = "Option::is_none")]
pub org: Option<String>,
/// Repos is every repo the org owns, across every project sub-scope.
#[serde(rename = "repos", skip_serializing_if = "Option::is_none")]
pub repos: Option<Vec<models::UsageRepo>>,
/// TotalBytes is the sum over Repos — the org's whole git footprint.
#[serde(rename = "totalBytes", skip_serializing_if = "Option::is_none")]
pub total_bytes: Option<i32>,
}
impl UsageView {
pub fn new() -> UsageView {
UsageView {
org: None,
repos: None,
total_bytes: None,
}
}
}