Skip to main content

akeyless_api/models/
account_custom_field_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/// AccountCustomFieldUpdate : accountCustomFieldUpdate is a command to update an account custom field
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AccountCustomFieldUpdate {
17    /// The custom field id
18    #[serde(rename = "id")]
19    pub id: i64,
20    /// Set output format to JSON
21    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
22    pub json: Option<bool>,
23    /// The new name of the custom field
24    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
25    pub name: Option<String>,
26    /// Specify whether the custom field is mandatory
27    #[serde(rename = "required", skip_serializing_if = "Option::is_none")]
28    pub required: Option<bool>,
29    /// Authentication token (see `/auth` and `/configure`)
30    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
31    pub token: Option<String>,
32    /// The universal identity token, Required only for universal_identity authentication
33    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
34    pub uid_token: Option<String>,
35}
36
37impl AccountCustomFieldUpdate {
38    /// accountCustomFieldUpdate is a command to update an account custom field
39    pub fn new(id: i64) -> AccountCustomFieldUpdate {
40        AccountCustomFieldUpdate {
41            id,
42            json: None,
43            name: None,
44            required: None,
45            token: None,
46            uid_token: None,
47        }
48    }
49}
50