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
// 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 AccelerationFunction schema describes an acceleration function that a processor implements.  This can include functions such as audio processing, compression, encryption, packet inspection, packet switching, scheduling, or video processing.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(Default)]
pub struct AccelerationFunction {
    #[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!("#AccelerationFunction.v1_0_3.AccelerationFunction"),
    #[serde(rename = "AccelerationFunctionType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub acceleration_function_type: Option<models::acceleration_function::v1_0_3::AccelerationFunctionType>,
    #[serde(rename = "Actions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub actions: Option<models::acceleration_function::v1_0_3::Actions>,
    #[serde(rename = "Description")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<models::resource::Description>,
    /// An array of the reconfiguration slot identifiers of the FPGA that this acceleration function occupies.
    #[serde(rename = "FpgaReconfigurationSlots")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fpga_reconfiguration_slots: Option<Vec<String>>,
    #[serde(rename = "Id")]
    pub id: models::resource::Id,
    #[serde(rename = "Links")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub links: Option<models::acceleration_function::v1_0_3::Links>,
    /// The acceleration function code manufacturer.
    #[serde(rename = "Manufacturer")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub manufacturer: Option<String>,
    #[serde(rename = "Name")]
    pub name: models::resource::Name,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// The acceleration function power consumption, in watts.
    #[serde(rename = "PowerWatts")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_watts: Option<i64>,
    #[serde(rename = "Status")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<models::resource::Status>,
    #[serde(rename = "UUID")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uuid: Option<models::resource::UUID>,
    /// The acceleration function version.
    #[serde(rename = "Version")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}