github.com/giantswarm/apiextensions/v6@v6.6.0/pkg/apis/capzexp/v1alpha3/zz_generated.deepcopy.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2023 Giant Swarm GmbH. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by controller-gen. DO NOT EDIT. 21 22 package v1alpha3 23 24 import ( 25 "k8s.io/apimachinery/pkg/runtime" 26 apiv1alpha3 "sigs.k8s.io/cluster-api-provider-azure/api/v1alpha3" 27 cluster_apiapiv1alpha3 "sigs.k8s.io/cluster-api/api/v1alpha3" 28 "sigs.k8s.io/cluster-api/errors" 29 ) 30 31 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 32 func (in *AzureMachinePool) DeepCopyInto(out *AzureMachinePool) { 33 *out = *in 34 out.TypeMeta = in.TypeMeta 35 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) 36 in.Spec.DeepCopyInto(&out.Spec) 37 in.Status.DeepCopyInto(&out.Status) 38 } 39 40 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachinePool. 41 func (in *AzureMachinePool) DeepCopy() *AzureMachinePool { 42 if in == nil { 43 return nil 44 } 45 out := new(AzureMachinePool) 46 in.DeepCopyInto(out) 47 return out 48 } 49 50 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 51 func (in *AzureMachinePool) DeepCopyObject() runtime.Object { 52 if c := in.DeepCopy(); c != nil { 53 return c 54 } 55 return nil 56 } 57 58 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 59 func (in *AzureMachinePoolInstanceStatus) DeepCopyInto(out *AzureMachinePoolInstanceStatus) { 60 *out = *in 61 if in.ProvisioningState != nil { 62 in, out := &in.ProvisioningState, &out.ProvisioningState 63 *out = new(apiv1alpha3.VMState) 64 **out = **in 65 } 66 } 67 68 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachinePoolInstanceStatus. 69 func (in *AzureMachinePoolInstanceStatus) DeepCopy() *AzureMachinePoolInstanceStatus { 70 if in == nil { 71 return nil 72 } 73 out := new(AzureMachinePoolInstanceStatus) 74 in.DeepCopyInto(out) 75 return out 76 } 77 78 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 79 func (in *AzureMachinePoolList) DeepCopyInto(out *AzureMachinePoolList) { 80 *out = *in 81 out.TypeMeta = in.TypeMeta 82 in.ListMeta.DeepCopyInto(&out.ListMeta) 83 if in.Items != nil { 84 in, out := &in.Items, &out.Items 85 *out = make([]AzureMachinePool, len(*in)) 86 for i := range *in { 87 (*in)[i].DeepCopyInto(&(*out)[i]) 88 } 89 } 90 } 91 92 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachinePoolList. 93 func (in *AzureMachinePoolList) DeepCopy() *AzureMachinePoolList { 94 if in == nil { 95 return nil 96 } 97 out := new(AzureMachinePoolList) 98 in.DeepCopyInto(out) 99 return out 100 } 101 102 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. 103 func (in *AzureMachinePoolList) DeepCopyObject() runtime.Object { 104 if c := in.DeepCopy(); c != nil { 105 return c 106 } 107 return nil 108 } 109 110 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 111 func (in *AzureMachinePoolSpec) DeepCopyInto(out *AzureMachinePoolSpec) { 112 *out = *in 113 in.Template.DeepCopyInto(&out.Template) 114 if in.AdditionalTags != nil { 115 in, out := &in.AdditionalTags, &out.AdditionalTags 116 *out = make(apiv1alpha3.Tags, len(*in)) 117 for key, val := range *in { 118 (*out)[key] = val 119 } 120 } 121 if in.ProviderIDList != nil { 122 in, out := &in.ProviderIDList, &out.ProviderIDList 123 *out = make([]string, len(*in)) 124 copy(*out, *in) 125 } 126 if in.UserAssignedIdentities != nil { 127 in, out := &in.UserAssignedIdentities, &out.UserAssignedIdentities 128 *out = make([]apiv1alpha3.UserAssignedIdentity, len(*in)) 129 copy(*out, *in) 130 } 131 } 132 133 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachinePoolSpec. 134 func (in *AzureMachinePoolSpec) DeepCopy() *AzureMachinePoolSpec { 135 if in == nil { 136 return nil 137 } 138 out := new(AzureMachinePoolSpec) 139 in.DeepCopyInto(out) 140 return out 141 } 142 143 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 144 func (in *AzureMachinePoolStatus) DeepCopyInto(out *AzureMachinePoolStatus) { 145 *out = *in 146 if in.Instances != nil { 147 in, out := &in.Instances, &out.Instances 148 *out = make([]*AzureMachinePoolInstanceStatus, len(*in)) 149 for i := range *in { 150 if (*in)[i] != nil { 151 in, out := &(*in)[i], &(*out)[i] 152 *out = new(AzureMachinePoolInstanceStatus) 153 (*in).DeepCopyInto(*out) 154 } 155 } 156 } 157 if in.ProvisioningState != nil { 158 in, out := &in.ProvisioningState, &out.ProvisioningState 159 *out = new(apiv1alpha3.VMState) 160 **out = **in 161 } 162 if in.FailureReason != nil { 163 in, out := &in.FailureReason, &out.FailureReason 164 *out = new(errors.MachineStatusError) 165 **out = **in 166 } 167 if in.FailureMessage != nil { 168 in, out := &in.FailureMessage, &out.FailureMessage 169 *out = new(string) 170 **out = **in 171 } 172 if in.Conditions != nil { 173 in, out := &in.Conditions, &out.Conditions 174 *out = make(cluster_apiapiv1alpha3.Conditions, len(*in)) 175 for i := range *in { 176 (*in)[i].DeepCopyInto(&(*out)[i]) 177 } 178 } 179 if in.LongRunningOperationState != nil { 180 in, out := &in.LongRunningOperationState, &out.LongRunningOperationState 181 *out = new(apiv1alpha3.Future) 182 **out = **in 183 } 184 } 185 186 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachinePoolStatus. 187 func (in *AzureMachinePoolStatus) DeepCopy() *AzureMachinePoolStatus { 188 if in == nil { 189 return nil 190 } 191 out := new(AzureMachinePoolStatus) 192 in.DeepCopyInto(out) 193 return out 194 } 195 196 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 197 func (in *AzureMachineTemplate) DeepCopyInto(out *AzureMachineTemplate) { 198 *out = *in 199 if in.Image != nil { 200 in, out := &in.Image, &out.Image 201 *out = new(apiv1alpha3.Image) 202 (*in).DeepCopyInto(*out) 203 } 204 in.OSDisk.DeepCopyInto(&out.OSDisk) 205 if in.DataDisks != nil { 206 in, out := &in.DataDisks, &out.DataDisks 207 *out = make([]apiv1alpha3.DataDisk, len(*in)) 208 for i := range *in { 209 (*in)[i].DeepCopyInto(&(*out)[i]) 210 } 211 } 212 if in.AcceleratedNetworking != nil { 213 in, out := &in.AcceleratedNetworking, &out.AcceleratedNetworking 214 *out = new(bool) 215 **out = **in 216 } 217 if in.TerminateNotificationTimeout != nil { 218 in, out := &in.TerminateNotificationTimeout, &out.TerminateNotificationTimeout 219 *out = new(int) 220 **out = **in 221 } 222 if in.SecurityProfile != nil { 223 in, out := &in.SecurityProfile, &out.SecurityProfile 224 *out = new(apiv1alpha3.SecurityProfile) 225 (*in).DeepCopyInto(*out) 226 } 227 if in.SpotVMOptions != nil { 228 in, out := &in.SpotVMOptions, &out.SpotVMOptions 229 *out = new(apiv1alpha3.SpotVMOptions) 230 (*in).DeepCopyInto(*out) 231 } 232 } 233 234 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureMachineTemplate. 235 func (in *AzureMachineTemplate) DeepCopy() *AzureMachineTemplate { 236 if in == nil { 237 return nil 238 } 239 out := new(AzureMachineTemplate) 240 in.DeepCopyInto(out) 241 return out 242 } 243 244 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 245 func (in *VMSS) DeepCopyInto(out *VMSS) { 246 *out = *in 247 if in.Zones != nil { 248 in, out := &in.Zones, &out.Zones 249 *out = make([]string, len(*in)) 250 copy(*out, *in) 251 } 252 in.Image.DeepCopyInto(&out.Image) 253 if in.Tags != nil { 254 in, out := &in.Tags, &out.Tags 255 *out = make(apiv1alpha3.Tags, len(*in)) 256 for key, val := range *in { 257 (*out)[key] = val 258 } 259 } 260 if in.Instances != nil { 261 in, out := &in.Instances, &out.Instances 262 *out = make([]VMSSVM, len(*in)) 263 copy(*out, *in) 264 } 265 } 266 267 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMSS. 268 func (in *VMSS) DeepCopy() *VMSS { 269 if in == nil { 270 return nil 271 } 272 out := new(VMSS) 273 in.DeepCopyInto(out) 274 return out 275 } 276 277 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 278 func (in *VMSSVM) DeepCopyInto(out *VMSSVM) { 279 *out = *in 280 } 281 282 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMSSVM. 283 func (in *VMSSVM) DeepCopy() *VMSSVM { 284 if in == nil { 285 return nil 286 } 287 out := new(VMSSVM) 288 in.DeepCopyInto(out) 289 return out 290 }