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 an 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 } 35 36 // NodeSystemInfoApplyConfiguration constructs an declarative configuration of the NodeSystemInfo type for use with 37 // apply. 38 func NodeSystemInfo() *NodeSystemInfoApplyConfiguration { 39 return &NodeSystemInfoApplyConfiguration{} 40 } 41 42 // WithMachineID sets the MachineID field in the declarative configuration to the given value 43 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 44 // If called multiple times, the MachineID field is set to the value of the last call. 45 func (b *NodeSystemInfoApplyConfiguration) WithMachineID(value string) *NodeSystemInfoApplyConfiguration { 46 b.MachineID = &value 47 return b 48 } 49 50 // WithSystemUUID sets the SystemUUID field in the declarative configuration to the given value 51 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 52 // If called multiple times, the SystemUUID field is set to the value of the last call. 53 func (b *NodeSystemInfoApplyConfiguration) WithSystemUUID(value string) *NodeSystemInfoApplyConfiguration { 54 b.SystemUUID = &value 55 return b 56 } 57 58 // WithBootID sets the BootID field in the declarative configuration to the given value 59 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 60 // If called multiple times, the BootID field is set to the value of the last call. 61 func (b *NodeSystemInfoApplyConfiguration) WithBootID(value string) *NodeSystemInfoApplyConfiguration { 62 b.BootID = &value 63 return b 64 } 65 66 // WithKernelVersion sets the KernelVersion field in the declarative configuration to the given value 67 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 68 // If called multiple times, the KernelVersion field is set to the value of the last call. 69 func (b *NodeSystemInfoApplyConfiguration) WithKernelVersion(value string) *NodeSystemInfoApplyConfiguration { 70 b.KernelVersion = &value 71 return b 72 } 73 74 // WithOSImage sets the OSImage field in the declarative configuration to the given value 75 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 76 // If called multiple times, the OSImage field is set to the value of the last call. 77 func (b *NodeSystemInfoApplyConfiguration) WithOSImage(value string) *NodeSystemInfoApplyConfiguration { 78 b.OSImage = &value 79 return b 80 } 81 82 // WithContainerRuntimeVersion sets the ContainerRuntimeVersion field in the declarative configuration to the given value 83 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 84 // If called multiple times, the ContainerRuntimeVersion field is set to the value of the last call. 85 func (b *NodeSystemInfoApplyConfiguration) WithContainerRuntimeVersion(value string) *NodeSystemInfoApplyConfiguration { 86 b.ContainerRuntimeVersion = &value 87 return b 88 } 89 90 // WithKubeletVersion sets the KubeletVersion field in the declarative configuration to the given value 91 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 92 // If called multiple times, the KubeletVersion field is set to the value of the last call. 93 func (b *NodeSystemInfoApplyConfiguration) WithKubeletVersion(value string) *NodeSystemInfoApplyConfiguration { 94 b.KubeletVersion = &value 95 return b 96 } 97 98 // WithKubeProxyVersion sets the KubeProxyVersion field in the declarative configuration to the given value 99 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 100 // If called multiple times, the KubeProxyVersion field is set to the value of the last call. 101 func (b *NodeSystemInfoApplyConfiguration) WithKubeProxyVersion(value string) *NodeSystemInfoApplyConfiguration { 102 b.KubeProxyVersion = &value 103 return b 104 } 105 106 // WithOperatingSystem sets the OperatingSystem field in the declarative configuration to the given value 107 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 108 // If called multiple times, the OperatingSystem field is set to the value of the last call. 109 func (b *NodeSystemInfoApplyConfiguration) WithOperatingSystem(value string) *NodeSystemInfoApplyConfiguration { 110 b.OperatingSystem = &value 111 return b 112 } 113 114 // WithArchitecture sets the Architecture field in the declarative configuration to the given value 115 // and returns the receiver, so that objects can be built by chaining "With" function invocations. 116 // If called multiple times, the Architecture field is set to the value of the last call. 117 func (b *NodeSystemInfoApplyConfiguration) WithArchitecture(value string) *NodeSystemInfoApplyConfiguration { 118 b.Architecture = &value 119 return b 120 } 121