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
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
/// Provides summary information for a package installed on a managed instance group.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ManagedInstanceGroupInstalledPackageSummary {
/// The name of the package that is installed on the managed instance group.
pub name: String,
/// The architecture of the package that is installed on the managed instance group.
pub architecture: String,
}
/// Required fields for ManagedInstanceGroupInstalledPackageSummary
pub struct ManagedInstanceGroupInstalledPackageSummaryRequired {
/// The name of the package that is installed on the managed instance group.
pub name: String,
/// The architecture of the package that is installed on the managed instance group.
pub architecture: String,
}
impl ManagedInstanceGroupInstalledPackageSummary {
/// Create a new ManagedInstanceGroupInstalledPackageSummary with required fields
pub fn new(required: ManagedInstanceGroupInstalledPackageSummaryRequired) -> Self {
Self {
name: required.name,
architecture: required.architecture,
}
}
/// Set name
pub fn set_name(mut self, value: String) -> Self {
self.name = value;
self
}
/// Set architecture
pub fn set_architecture(mut self, value: String) -> Self {
self.architecture = value;
self
}
}