Skip to main content

akeyless_api/models/
huawei_access_rules.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 HuaweiAccessRules {
16    /// The auth URL.
17    #[serde(rename = "auth_endpoint", skip_serializing_if = "Option::is_none")]
18    pub auth_endpoint: Option<String>,
19    /// The list of domain ids that the login is restricted to.
20    #[serde(rename = "domain_id", skip_serializing_if = "Option::is_none")]
21    pub domain_id: Option<Vec<String>>,
22    /// The list of domainNames that the login is restricted to.
23    #[serde(rename = "domain_name", skip_serializing_if = "Option::is_none")]
24    pub domain_name: Option<Vec<String>>,
25    /// The list of tenantIDs  that the login is restricted to.
26    #[serde(rename = "tenant_id", skip_serializing_if = "Option::is_none")]
27    pub tenant_id: Option<Vec<String>>,
28    /// The list of tenantNames  that the login is restricted to.
29    #[serde(rename = "tenant_name", skip_serializing_if = "Option::is_none")]
30    pub tenant_name: Option<Vec<String>>,
31    /// The list of user ids that the login is restricted to.
32    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
33    pub user_id: Option<Vec<String>>,
34    /// The list of user names that the login is restricted to.
35    #[serde(rename = "user_name", skip_serializing_if = "Option::is_none")]
36    pub user_name: Option<Vec<String>>,
37}
38
39impl HuaweiAccessRules {
40    pub fn new() -> HuaweiAccessRules {
41        HuaweiAccessRules {
42            auth_endpoint: None,
43            domain_id: None,
44            domain_name: None,
45            tenant_id: None,
46            tenant_name: None,
47            user_id: None,
48            user_name: None,
49        }
50    }
51}
52