Skip to main content

doppler_rs/models/
update_secrets_request.rs

1/*
2 * Core
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0-oas3.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/*
12 * Core
13 *
14 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15 *
16 * The version of the OpenAPI document: 1.0.0-oas3.1
17 * 
18 * Generated by: https://openapi-generator.tech
19 */
20
21use crate::models;
22use serde::{Deserialize, Serialize};
23use chrono::{DateTime, NaiveDate, Utc};
24/// UpdateSecretsRequest
25#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
26pub struct UpdateSecretsRequest {
27    /// Unique identifier for the project object.
28    #[serde(rename = "project")]
29    pub project: String ,
30    /// Name of the config object.
31    #[serde(rename = "config")]
32    pub config: String ,
33    #[serde(rename = "secrets", skip_serializing_if = "Option::is_none")]
34    pub secrets: Option<models::SecretsUpdateMap >,
35    /// Either `secrets` or `change_requests` is required (can't use both). Object of secrets you would like to save to the config. Try it with the sample secrets below.
36    #[serde(rename = "change_requests", skip_serializing_if = "Option::is_none")]
37    pub change_requests: Option<Vec<models::SecretChangeRequest> >,
38}
39
40impl UpdateSecretsRequest {
41    pub fn new(project: String , config: String ) -> UpdateSecretsRequest {
42        UpdateSecretsRequest {
43            project: project,
44            config: config,
45            secrets: None,
46            change_requests: None,
47        }
48    }
49}
50