Skip to main content

hanzo_client/models/
refresh_reference_in.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 RefreshReferenceIn {
16    /// Force accepts a take whose size moved past the change bound. A publisher serving a tenth or ten times its previous list is refused by default and the previous version is left standing; this is the operator saying the change is real. It cannot make an empty, truncated or unparseable take land — those are errors, not magnitudes.
17    #[serde(rename = "force", skip_serializing_if = "Option::is_none")]
18    pub force: Option<bool>,
19    /// Receipts are supplied by the component that holds the membership, for a set of kind attest. They are refused on any other kind, and a set of kind attest is refused without them: this plane never invents a freshness it did not observe.
20    #[serde(rename = "receipts", skip_serializing_if = "Option::is_none")]
21    pub receipts: Option<Vec<models::ReferenceReceipt>>,
22    /// Set is the set to refresh.
23    #[serde(rename = "set", skip_serializing_if = "Option::is_none")]
24    pub set: Option<String>,
25}
26
27impl RefreshReferenceIn {
28    pub fn new() -> RefreshReferenceIn {
29        RefreshReferenceIn {
30            force: None,
31            receipts: None,
32            set: None,
33        }
34    }
35}
36