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
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
/// An object that defines an installed update for a Windows instance.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct InstalledWindowsUpdateSummary {
/// Name of the Windows update.
pub name: String,
/// Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
pub update_id: String,
/// The type of Windows update.
pub update_type: ClassificationTypes,
}
/// Required fields for InstalledWindowsUpdateSummary
pub struct InstalledWindowsUpdateSummaryRequired {
/// Name of the Windows update.
pub name: String,
/// Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
pub update_id: String,
/// The type of Windows update.
pub update_type: ClassificationTypes,
}
impl InstalledWindowsUpdateSummary {
/// Create a new InstalledWindowsUpdateSummary with required fields
pub fn new(required: InstalledWindowsUpdateSummaryRequired) -> Self {
Self {
name: required.name,
update_id: required.update_id,
update_type: required.update_type,
}
}
/// Set name
pub fn set_name(mut self, value: String) -> Self {
self.name = value;
self
}
/// Set update_id
pub fn set_update_id(mut self, value: String) -> Self {
self.update_id = value;
self
}
/// Set update_type
pub fn set_update_type(mut self, value: ClassificationTypes) -> Self {
self.update_type = value;
self
}
}