Skip to main content

akeyless_api/models/
update.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
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 Update {
16    /// Alternative CLI repository url. e.g. https://artifacts.site2.akeyless.io
17    #[serde(rename = "artifact-repository", skip_serializing_if = "Option::is_none")]
18    pub artifact_repository: Option<String>,
19    /// Set output format to JSON
20    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
21    pub json: Option<bool>,
22    /// Show the changelog between the current version and the latest one and exit (update will not be performed)
23    #[serde(rename = "show-changelog", skip_serializing_if = "Option::is_none")]
24    pub show_changelog: Option<bool>,
25    /// The CLI version
26    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
27    pub version: Option<String>,
28}
29
30impl Update {
31    pub fn new() -> Update {
32        Update {
33            artifact_repository: None,
34            json: None,
35            show_changelog: None,
36            version: None,
37        }
38    }
39}
40