Skip to main content

akeyless_api/models/
update_assoc.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/// UpdateAssoc : updateAssoc is a command that updates the sub-claims of an association between role and auth method.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateAssoc {
17    /// The association id to be updated
18    #[serde(rename = "assoc-id")]
19    pub assoc_id: String,
20    /// Treat sub claims as case-sensitive [true/false]
21    #[serde(rename = "case-sensitive", skip_serializing_if = "Option::is_none")]
22    pub case_sensitive: Option<String>,
23    /// Set output format to JSON
24    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
25    pub json: Option<bool>,
26    /// key/val of sub claims, e.g group=admins,developers
27    #[serde(rename = "sub-claims", skip_serializing_if = "Option::is_none")]
28    pub sub_claims: Option<std::collections::HashMap<String, String>>,
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 UpdateAssoc {
38    /// updateAssoc is a command that updates the sub-claims of an association between role and auth method.
39    pub fn new(assoc_id: String) -> UpdateAssoc {
40        UpdateAssoc {
41            assoc_id,
42            case_sensitive: None,
43            json: None,
44            sub_claims: None,
45            token: None,
46            uid_token: None,
47        }
48    }
49}
50