Skip to main content

windmill_api/models/
sign_s3_objects_request.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.798.0
7 * Contact: contact@windmill.dev
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 SignS3ObjectsRequest {
16    #[serde(rename = "s3_objects")]
17    pub s3_objects: Vec<models::S3Object>,
18    /// how long the signature stays valid, in seconds. Defaults to 43200 (12h) and is clamped server-side to [60, 604800] (1 minute to 7 days).
19    #[serde(rename = "expiry_secs", skip_serializing_if = "Option::is_none")]
20    pub expiry_secs: Option<i64>,
21}
22
23impl SignS3ObjectsRequest {
24    pub fn new(s3_objects: Vec<models::S3Object>) -> SignS3ObjectsRequest {
25        SignS3ObjectsRequest {
26            s3_objects,
27            expiry_secs: None,
28        }
29    }
30}
31