Skip to main content

akeyless_api/models/
target_item_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/// TargetItemAssociation : TargetItemAssociation includes details of an association between a target and an item. Also, between targets in case of child target or Linked target.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TargetItemAssociation {
17    #[serde(rename = "assoc_id", skip_serializing_if = "Option::is_none")]
18    pub assoc_id: Option<String>,
19    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
20    pub attributes: Option<std::collections::HashMap<String, String>>,
21    #[serde(rename = "cluster_id", skip_serializing_if = "Option::is_none")]
22    pub cluster_id: Option<i64>,
23    #[serde(rename = "item_id", skip_serializing_if = "Option::is_none")]
24    pub item_id: Option<i64>,
25    #[serde(rename = "item_name", skip_serializing_if = "Option::is_none")]
26    pub item_name: Option<String>,
27    #[serde(rename = "item_type", skip_serializing_if = "Option::is_none")]
28    pub item_type: Option<String>,
29    #[serde(rename = "relationship", skip_serializing_if = "Option::is_none")]
30    pub relationship: Option<String>,
31}
32
33impl TargetItemAssociation {
34    /// TargetItemAssociation includes details of an association between a target and an item. Also, between targets in case of child target or Linked target.
35    pub fn new() -> TargetItemAssociation {
36        TargetItemAssociation {
37            assoc_id: None,
38            attributes: None,
39            cluster_id: None,
40            item_id: None,
41            item_name: None,
42            item_type: None,
43            relationship: None,
44        }
45    }
46}
47