Skip to main content

akeyless_api/models/
auth_method_role_association.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/// AuthMethodRoleAssociation : AuthMethodRoleAssociation includes details of an association between an auth method and a role.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuthMethodRoleAssociation {
17    #[serde(rename = "allowed_ops", skip_serializing_if = "Option::is_none")]
18    pub allowed_ops: Option<Vec<String>>,
19    #[serde(rename = "assoc_id", skip_serializing_if = "Option::is_none")]
20    pub assoc_id: Option<String>,
21    #[serde(rename = "auth_method_sub_claims", skip_serializing_if = "Option::is_none")]
22    pub auth_method_sub_claims: Option<std::collections::HashMap<String, Vec<String>>>,
23    #[serde(rename = "is_sub_claims_case_sensitive", skip_serializing_if = "Option::is_none")]
24    pub is_sub_claims_case_sensitive: Option<bool>,
25    #[serde(rename = "is_subclaims_with_operator", skip_serializing_if = "Option::is_none")]
26    pub is_subclaims_with_operator: Option<bool>,
27    #[serde(rename = "role_id", skip_serializing_if = "Option::is_none")]
28    pub role_id: Option<i64>,
29    #[serde(rename = "role_name", skip_serializing_if = "Option::is_none")]
30    pub role_name: Option<String>,
31    #[serde(rename = "rules", skip_serializing_if = "Option::is_none")]
32    pub rules: Option<Box<models::Rules>>,
33}
34
35impl AuthMethodRoleAssociation {
36    /// AuthMethodRoleAssociation includes details of an association between an auth method and a role.
37    pub fn new() -> AuthMethodRoleAssociation {
38        AuthMethodRoleAssociation {
39            allowed_ops: None,
40            assoc_id: None,
41            auth_method_sub_claims: None,
42            is_sub_claims_case_sensitive: None,
43            is_subclaims_with_operator: None,
44            role_id: None,
45            role_name: None,
46            rules: None,
47        }
48    }
49}
50