hanzo_client/models/bucket_write.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 BucketWrite {
16 /// Bucket is the bucket's name within the org, from the path: 1–64 of [A-Za-z0-9_], no dash.
17 #[serde(rename = "bucket", skip_serializing_if = "Option::is_none")]
18 pub bucket: Option<String>,
19 /// History is how many revisions each key keeps, 1–64. 0 means 1.
20 #[serde(rename = "history", skip_serializing_if = "Option::is_none")]
21 pub history: Option<i32>,
22 /// MaxValue caps one value's size in bytes. 0 or less means the server's ceiling.
23 #[serde(rename = "maxValue", skip_serializing_if = "Option::is_none")]
24 pub max_value: Option<i32>,
25 /// TTL expires entries after this many SECONDS. 0 means no expiry.
26 #[serde(rename = "ttl", skip_serializing_if = "Option::is_none")]
27 pub ttl: Option<i32>,
28}
29
30impl BucketWrite {
31 pub fn new() -> BucketWrite {
32 BucketWrite {
33 bucket: None,
34 history: None,
35 max_value: None,
36 ttl: None,
37 }
38 }
39}
40