Debian Codegraph @

applyconfigurations/core/v1/nodesysteminfo.go

raw
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 // Code generated by applyconfiguration-gen. DO NOT EDIT.
18
19 package v1
20
21 // NodeSystemInfoApplyConfiguration represents a declarative configuration of the NodeSystemInfo type for use
22 // with apply.
23 type NodeSystemInfoApplyConfiguration struct {
24 MachineID *string `json:"machineID,omitempty"`
25 SystemUUID *string `json:"systemUUID,omitempty"`
26 BootID *string `json:"bootID,omitempty"`
27 KernelVersion *string `json:"kernelVersion,omitempty"`
28 OSImage *string `json:"osImage,omitempty"`
29 ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"`
30 KubeletVersion *string `json:"kubeletVersion,omitempty"`
31 KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"`
32 OperatingSystem *string `json:"operatingSystem,omitempty"`
33 Architecture *string `json:"architecture,omitempty"`
34 Swap *NodeSwapStatusApplyConfiguration `json:"swap,omitempty"`
35 }
36
37 // NodeSystemInfoApplyConfiguration constructs a declarative configuration of the NodeSystemInfo type for use with
38 // apply.
39 func NodeSystemInfo() *NodeSystemInfoApplyConfiguration {
40 return &NodeSystemInfoApplyConfiguration{}
41 }
42
43 // WithMachineID sets the MachineID field in the declarative configuration to the given value
44 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
45 // If called multiple times, the MachineID field is set to the value of the last call.
46 func (b *NodeSystemInfoApplyConfiguration) WithMachineID(value string) *NodeSystemInfoApplyConfiguration {
47 b.MachineID = &value
48 return b
49 }
50
51 // WithSystemUUID sets the SystemUUID field in the declarative configuration to the given value
52 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
53 // If called multiple times, the SystemUUID field is set to the value of the last call.
54 func (b *NodeSystemInfoApplyConfiguration) WithSystemUUID(value string) *NodeSystemInfoApplyConfiguration {
55 b.SystemUUID = &value
56 return b
57 }
58
59 // WithBootID sets the BootID field in the declarative configuration to the given value
60 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
61 // If called multiple times, the BootID field is set to the value of the last call.
62 func (b *NodeSystemInfoApplyConfiguration) WithBootID(value string) *NodeSystemInfoApplyConfiguration {
63 b.BootID = &value
64 return b
65 }
66
67 // WithKernelVersion sets the KernelVersion field in the declarative configuration to the given value
68 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
69 // If called multiple times, the KernelVersion field is set to the value of the last call.
70 func (b *NodeSystemInfoApplyConfiguration) WithKernelVersion(value string) *NodeSystemInfoApplyConfiguration {
71 b.KernelVersion = &value
72 return b
73 }
74
75 // WithOSImage sets the OSImage field in the declarative configuration to the given value
76 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
77 // If called multiple times, the OSImage field is set to the value of the last call.
78 func (b *NodeSystemInfoApplyConfiguration) WithOSImage(value string) *NodeSystemInfoApplyConfiguration {
79 b.OSImage = &value
80 return b
81 }
82
83 // WithContainerRuntimeVersion sets the ContainerRuntimeVersion field in the declarative configuration to the given value
84 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
85 // If called multiple times, the ContainerRuntimeVersion field is set to the value of the last call.
86 func (b *NodeSystemInfoApplyConfiguration) WithContainerRuntimeVersion(value string) *NodeSystemInfoApplyConfiguration {
87 b.ContainerRuntimeVersion = &value
88 return b
89 }
90
91 // WithKubeletVersion sets the KubeletVersion field in the declarative configuration to the given value
92 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
93 // If called multiple times, the KubeletVersion field is set to the value of the last call.
94 func (b *NodeSystemInfoApplyConfiguration) WithKubeletVersion(value string) *NodeSystemInfoApplyConfiguration {
95 b.KubeletVersion = &value
96 return b
97 }
98
99 // WithKubeProxyVersion sets the KubeProxyVersion field in the declarative configuration to the given value
100 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
101 // If called multiple times, the KubeProxyVersion field is set to the value of the last call.
102 func (b *NodeSystemInfoApplyConfiguration) WithKubeProxyVersion(value string) *NodeSystemInfoApplyConfiguration {
103 b.KubeProxyVersion = &value
104 return b
105 }
106
107 // WithOperatingSystem sets the OperatingSystem field in the declarative configuration to the given value
108 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
109 // If called multiple times, the OperatingSystem field is set to the value of the last call.
110 func (b *NodeSystemInfoApplyConfiguration) WithOperatingSystem(value string) *NodeSystemInfoApplyConfiguration {
111 b.OperatingSystem = &value
112 return b
113 }
114
115 // WithArchitecture sets the Architecture field in the declarative configuration to the given value
116 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
117 // If called multiple times, the Architecture field is set to the value of the last call.
118 func (b *NodeSystemInfoApplyConfiguration) WithArchitecture(value string) *NodeSystemInfoApplyConfiguration {
119 b.Architecture = &value
120 return b
121 }
122
123 // WithSwap sets the Swap field in the declarative configuration to the given value
124 // and returns the receiver, so that objects can be built by chaining "With" function invocations.
125 // If called multiple times, the Swap field is set to the value of the last call.
126 func (b *NodeSystemInfoApplyConfiguration) WithSwap(value *NodeSwapStatusApplyConfiguration) *NodeSystemInfoApplyConfiguration {
127 b.Swap = value
128 return b
129 }