-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoperatingsystemstatus.go
More file actions
155 lines (136 loc) · 8.35 KB
/
operatingsystemstatus.go
File metadata and controls
155 lines (136 loc) · 8.35 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
// Code generated by controller-gen. DO NOT EDIT.
package v1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// OperatingSystemStatusApplyConfiguration represents a declarative configuration of the OperatingSystemStatus type for use
// with apply.
type OperatingSystemStatusApplyConfiguration struct {
Version *string `json:"version,omitempty"`
VariantID *string `json:"variantID,omitempty"`
PrettyVersion *string `json:"prettyVersion,omitempty"`
KernelName *string `json:"kernelName,omitempty"`
KernelRelease *string `json:"kernelRelease,omitempty"`
KernelVersion *string `json:"kernelVersion,omitempty"`
KernelCommandLine *string `json:"kernelCommandLine,omitempty"`
HardwareVendor *string `json:"hardwareVendor,omitempty"`
HardwareModel *string `json:"hardwareModel,omitempty"`
HardwareSerial *string `json:"hardwareSerial,omitempty"`
FirmwareVersion *string `json:"firmwareVersion,omitempty"`
FirmwareVendor *string `json:"firmwareVendor,omitempty"`
FirmwareDate *metav1.Time `json:"firmwareDate,omitempty"`
GardenLinuxCommitID *string `json:"gardenLinuxCommitID,omitempty"`
GardenLinuxFeatures []string `json:"gardenLinuxFeatures,omitempty"`
}
// OperatingSystemStatusApplyConfiguration constructs a declarative configuration of the OperatingSystemStatus type for use with
// apply.
func OperatingSystemStatus() *OperatingSystemStatusApplyConfiguration {
return &OperatingSystemStatusApplyConfiguration{}
}
// WithVersion sets the Version field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Version field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithVersion(value string) *OperatingSystemStatusApplyConfiguration {
b.Version = &value
return b
}
// WithVariantID sets the VariantID field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the VariantID field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithVariantID(value string) *OperatingSystemStatusApplyConfiguration {
b.VariantID = &value
return b
}
// WithPrettyVersion sets the PrettyVersion field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PrettyVersion field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithPrettyVersion(value string) *OperatingSystemStatusApplyConfiguration {
b.PrettyVersion = &value
return b
}
// WithKernelName sets the KernelName field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the KernelName field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithKernelName(value string) *OperatingSystemStatusApplyConfiguration {
b.KernelName = &value
return b
}
// WithKernelRelease sets the KernelRelease field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the KernelRelease field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithKernelRelease(value string) *OperatingSystemStatusApplyConfiguration {
b.KernelRelease = &value
return b
}
// WithKernelVersion sets the KernelVersion field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the KernelVersion field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithKernelVersion(value string) *OperatingSystemStatusApplyConfiguration {
b.KernelVersion = &value
return b
}
// WithKernelCommandLine sets the KernelCommandLine field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the KernelCommandLine field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithKernelCommandLine(value string) *OperatingSystemStatusApplyConfiguration {
b.KernelCommandLine = &value
return b
}
// WithHardwareVendor sets the HardwareVendor field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HardwareVendor field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithHardwareVendor(value string) *OperatingSystemStatusApplyConfiguration {
b.HardwareVendor = &value
return b
}
// WithHardwareModel sets the HardwareModel field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HardwareModel field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithHardwareModel(value string) *OperatingSystemStatusApplyConfiguration {
b.HardwareModel = &value
return b
}
// WithHardwareSerial sets the HardwareSerial field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the HardwareSerial field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithHardwareSerial(value string) *OperatingSystemStatusApplyConfiguration {
b.HardwareSerial = &value
return b
}
// WithFirmwareVersion sets the FirmwareVersion field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FirmwareVersion field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareVersion(value string) *OperatingSystemStatusApplyConfiguration {
b.FirmwareVersion = &value
return b
}
// WithFirmwareVendor sets the FirmwareVendor field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FirmwareVendor field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareVendor(value string) *OperatingSystemStatusApplyConfiguration {
b.FirmwareVendor = &value
return b
}
// WithFirmwareDate sets the FirmwareDate field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the FirmwareDate field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithFirmwareDate(value metav1.Time) *OperatingSystemStatusApplyConfiguration {
b.FirmwareDate = &value
return b
}
// WithGardenLinuxCommitID sets the GardenLinuxCommitID field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the GardenLinuxCommitID field is set to the value of the last call.
func (b *OperatingSystemStatusApplyConfiguration) WithGardenLinuxCommitID(value string) *OperatingSystemStatusApplyConfiguration {
b.GardenLinuxCommitID = &value
return b
}
// WithGardenLinuxFeatures adds the given value to the GardenLinuxFeatures field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the GardenLinuxFeatures field.
func (b *OperatingSystemStatusApplyConfiguration) WithGardenLinuxFeatures(values ...string) *OperatingSystemStatusApplyConfiguration {
for i := range values {
b.GardenLinuxFeatures = append(b.GardenLinuxFeatures, values[i])
}
return b
}