1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// Generated by redfish-codegen. Do not modify.
// Author: Ethan D. Twardy <ethan.twardy@gmail.com>
//
// Copyright 2023, Ethan Twardy. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the \"License\");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an \"AS IS\" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::models;

/// The properties associated with a Host Interface.  A Host Interface is a connection between host software and a Redfish Service.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(Default)]
pub struct HostInterface {
    #[serde(rename = "@odata.context")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub odata_context: Option<models::odata_v4::Context>,
    #[serde(rename = "@odata.etag")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub odata_etag: Option<models::odata_v4::Etag>,
    #[serde(rename = "@odata.id")]
    pub odata_id: models::odata_v4::Id,
    #[serde(rename = "@odata.type")]
    pub odata_type: monostate::MustBe!("#HostInterface.v1_3_0.HostInterface"),
    #[serde(rename = "Actions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub actions: Option<models::host_interface::v1_3_0::Actions>,
    /// The role when no authentication on this interface is used.
    #[serde(rename = "AuthNoneRoleId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub auth_none_role_id: Option<String>,
    /// The authentication modes available on this interface.
    #[serde(rename = "AuthenticationModes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub authentication_modes: Option<Vec<models::host_interface::v1_3_0::AuthenticationMode>>,
    #[serde(rename = "CredentialBootstrapping")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub credential_bootstrapping: Option<models::host_interface::v1_3_0::CredentialBootstrapping>,
    #[serde(rename = "Description")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<models::resource::Description>,
    /// An indication of whether external entities can access this interface.  External entities are non-host entities.  For example, if the host and manager are connected through a switch and the switch also exposes an external port on the system, external clients can also use the interface, and this property value is `true`.
    #[serde(rename = "ExternallyAccessible")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub externally_accessible: Option<bool>,
    /// An indication of whether this firmware authentication is enabled for this interface.
    #[serde(rename = "FirmwareAuthEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub firmware_auth_enabled: Option<bool>,
    /// The Role used for firmware authentication on this interface.
    #[serde(rename = "FirmwareAuthRoleId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub firmware_auth_role_id: Option<String>,
    #[serde(rename = "HostEthernetInterfaces")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host_ethernet_interfaces: Option<models::odata_v4::IdRef>,
    #[serde(rename = "HostInterfaceType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub host_interface_type: Option<models::host_interface::v1_3_0::HostInterfaceType>,
    #[serde(rename = "Id")]
    pub id: models::resource::Id,
    /// An indication of whether this interface is enabled.
    #[serde(rename = "InterfaceEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub interface_enabled: Option<bool>,
    /// An indication of whether this kernel authentication is enabled for this interface.
    #[serde(rename = "KernelAuthEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kernel_auth_enabled: Option<bool>,
    /// The Role used for kernel authentication on this interface.
    #[serde(rename = "KernelAuthRoleId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kernel_auth_role_id: Option<String>,
    #[serde(rename = "Links")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub links: Option<models::host_interface::v1_3_0::Links>,
    #[serde(rename = "ManagerEthernetInterface")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub manager_ethernet_interface: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Name")]
    pub name: models::resource::Name,
    #[serde(rename = "NetworkProtocol")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_protocol: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    #[serde(rename = "Status")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<models::resource::Status>,
}