Skip to main content

akeyless_api/models/
policy_output.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/// PolicyOutput : it exposes object_types and intentionally hides enforce_on_items/enforce_on_targets.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PolicyOutput {
17    #[serde(rename = "account_id", skip_serializing_if = "Option::is_none")]
18    pub account_id: Option<String>,
19    #[serde(rename = "allowed_algorithms", skip_serializing_if = "Option::is_none")]
20    pub allowed_algorithms: Option<Vec<String>>,
21    #[serde(rename = "allowed_key_names", skip_serializing_if = "Option::is_none")]
22    pub allowed_key_names: Option<Vec<String>>,
23    #[serde(rename = "allowed_key_types", skip_serializing_if = "Option::is_none")]
24    pub allowed_key_types: Option<Vec<String>>,
25    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
26    pub id: Option<String>,
27    #[serde(rename = "max_rotation_interval_days", skip_serializing_if = "Option::is_none")]
28    pub max_rotation_interval_days: Option<i32>,
29    #[serde(rename = "object_types", skip_serializing_if = "Option::is_none")]
30    pub object_types: Option<Vec<String>>,
31    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
32    pub path: Option<String>,
33    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
34    pub r#type: Option<String>,
35}
36
37impl PolicyOutput {
38    /// it exposes object_types and intentionally hides enforce_on_items/enforce_on_targets.
39    pub fn new() -> PolicyOutput {
40        PolicyOutput {
41            account_id: None,
42            allowed_algorithms: None,
43            allowed_key_names: None,
44            allowed_key_types: None,
45            id: None,
46            max_rotation_interval_days: None,
47            object_types: None,
48            path: None,
49            r#type: None,
50        }
51    }
52}
53