Skip to main content

bitwarden_api_api/models/
pam_target_system_response_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15/// PamTargetSystemResponseModel : A registered target system, as the fleet-admin surface renders
16/// it. The view model for <c>GET             access-connectors/target-systems</c>.
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct PamTargetSystemResponseModel {
19    #[serde(
20        rename = "object",
21        alias = "Object",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub object: Option<String>,
25    /// The target system's unique identifier.
26    #[serde(rename = "id", alias = "Id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<uuid::Uuid>,
28    /// The organization this target system belongs to.
29    #[serde(
30        rename = "organizationId",
31        alias = "OrganizationId",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub organization_id: Option<uuid::Uuid>,
35    /// The target system's display name, shown wherever targets are listed and managed.
36    #[serde(
37        rename = "name",
38        alias = "Name",
39        skip_serializing_if = "Option::is_none"
40    )]
41    pub name: Option<String>,
42    #[serde(
43        rename = "method",
44        alias = "Method",
45        skip_serializing_if = "Option::is_none"
46    )]
47    pub method: Option<models::PamTargetSystemMethod>,
48    #[serde(
49        rename = "kind",
50        alias = "Kind",
51        skip_serializing_if = "Option::is_none"
52    )]
53    pub kind: Option<models::PamTargetSystemKind>,
54    #[serde(
55        rename = "passwordPolicy",
56        alias = "PasswordPolicy",
57        skip_serializing_if = "Option::is_none"
58    )]
59    pub password_policy: Option<Box<models::PamPasswordPolicyResponseModel>>,
60    /// Whether the integration can terminate the account's live sessions after a rotation; gates
61    /// whether rotation configs on this target may request session termination. Null on a manual
62    /// target.
63    #[serde(
64        rename = "supportsSessionTermination",
65        alias = "SupportsSessionTermination",
66        skip_serializing_if = "Option::is_none"
67    )]
68    pub supports_session_termination: Option<bool>,
69    #[serde(
70        rename = "status",
71        alias = "Status",
72        skip_serializing_if = "Option::is_none"
73    )]
74    pub status: Option<models::PamTargetSystemStatus>,
75    /// When the target system was registered (UTC).
76    #[serde(
77        rename = "creationDate",
78        alias = "CreationDate",
79        skip_serializing_if = "Option::is_none"
80    )]
81    pub creation_date: Option<String>,
82    /// When the target system was last modified (UTC).
83    #[serde(
84        rename = "revisionDate",
85        alias = "RevisionDate",
86        skip_serializing_if = "Option::is_none"
87    )]
88    pub revision_date: Option<String>,
89}
90
91impl PamTargetSystemResponseModel {
92    /// A registered target system, as the fleet-admin surface renders it. The view model for <c>GET
93    /// access-connectors/target-systems</c>.
94    pub fn new() -> PamTargetSystemResponseModel {
95        PamTargetSystemResponseModel {
96            object: None,
97            id: None,
98            organization_id: None,
99            name: None,
100            method: None,
101            kind: None,
102            password_policy: None,
103            supports_session_termination: None,
104            status: None,
105            creation_date: None,
106            revision_date: None,
107        }
108    }
109}