...

Source file src/kubevirt.io/api/instancetype/v1alpha1/deepcopy_generated.go

Documentation: kubevirt.io/api/instancetype/v1alpha1

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The KubeVirt Authors.
     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 deepcopy-gen. DO NOT EDIT.
    21  
    22  package v1alpha1
    23  
    24  import (
    25  	runtime "k8s.io/apimachinery/pkg/runtime"
    26  	v1 "kubevirt.io/api/core/v1"
    27  )
    28  
    29  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    30  func (in *CPUInstancetype) DeepCopyInto(out *CPUInstancetype) {
    31  	*out = *in
    32  	if in.NUMA != nil {
    33  		in, out := &in.NUMA, &out.NUMA
    34  		*out = new(v1.NUMA)
    35  		(*in).DeepCopyInto(*out)
    36  	}
    37  	if in.Realtime != nil {
    38  		in, out := &in.Realtime, &out.Realtime
    39  		*out = new(v1.Realtime)
    40  		**out = **in
    41  	}
    42  	return
    43  }
    44  
    45  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CPUInstancetype.
    46  func (in *CPUInstancetype) DeepCopy() *CPUInstancetype {
    47  	if in == nil {
    48  		return nil
    49  	}
    50  	out := new(CPUInstancetype)
    51  	in.DeepCopyInto(out)
    52  	return out
    53  }
    54  
    55  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    56  func (in *CPUPreferences) DeepCopyInto(out *CPUPreferences) {
    57  	*out = *in
    58  	return
    59  }
    60  
    61  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CPUPreferences.
    62  func (in *CPUPreferences) DeepCopy() *CPUPreferences {
    63  	if in == nil {
    64  		return nil
    65  	}
    66  	out := new(CPUPreferences)
    67  	in.DeepCopyInto(out)
    68  	return out
    69  }
    70  
    71  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    72  func (in *ClockPreferences) DeepCopyInto(out *ClockPreferences) {
    73  	*out = *in
    74  	if in.PreferredClockOffset != nil {
    75  		in, out := &in.PreferredClockOffset, &out.PreferredClockOffset
    76  		*out = new(v1.ClockOffset)
    77  		(*in).DeepCopyInto(*out)
    78  	}
    79  	if in.PreferredTimer != nil {
    80  		in, out := &in.PreferredTimer, &out.PreferredTimer
    81  		*out = new(v1.Timer)
    82  		(*in).DeepCopyInto(*out)
    83  	}
    84  	return
    85  }
    86  
    87  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClockPreferences.
    88  func (in *ClockPreferences) DeepCopy() *ClockPreferences {
    89  	if in == nil {
    90  		return nil
    91  	}
    92  	out := new(ClockPreferences)
    93  	in.DeepCopyInto(out)
    94  	return out
    95  }
    96  
    97  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    98  func (in *DevicePreferences) DeepCopyInto(out *DevicePreferences) {
    99  	*out = *in
   100  	if in.PreferredAutoattachGraphicsDevice != nil {
   101  		in, out := &in.PreferredAutoattachGraphicsDevice, &out.PreferredAutoattachGraphicsDevice
   102  		*out = new(bool)
   103  		**out = **in
   104  	}
   105  	if in.PreferredAutoattachMemBalloon != nil {
   106  		in, out := &in.PreferredAutoattachMemBalloon, &out.PreferredAutoattachMemBalloon
   107  		*out = new(bool)
   108  		**out = **in
   109  	}
   110  	if in.PreferredAutoattachPodInterface != nil {
   111  		in, out := &in.PreferredAutoattachPodInterface, &out.PreferredAutoattachPodInterface
   112  		*out = new(bool)
   113  		**out = **in
   114  	}
   115  	if in.PreferredAutoattachSerialConsole != nil {
   116  		in, out := &in.PreferredAutoattachSerialConsole, &out.PreferredAutoattachSerialConsole
   117  		*out = new(bool)
   118  		**out = **in
   119  	}
   120  	if in.PreferredAutoattachInputDevice != nil {
   121  		in, out := &in.PreferredAutoattachInputDevice, &out.PreferredAutoattachInputDevice
   122  		*out = new(bool)
   123  		**out = **in
   124  	}
   125  	if in.PreferredDisableHotplug != nil {
   126  		in, out := &in.PreferredDisableHotplug, &out.PreferredDisableHotplug
   127  		*out = new(bool)
   128  		**out = **in
   129  	}
   130  	if in.PreferredVirtualGPUOptions != nil {
   131  		in, out := &in.PreferredVirtualGPUOptions, &out.PreferredVirtualGPUOptions
   132  		*out = new(v1.VGPUOptions)
   133  		(*in).DeepCopyInto(*out)
   134  	}
   135  	if in.PreferredUseVirtioTransitional != nil {
   136  		in, out := &in.PreferredUseVirtioTransitional, &out.PreferredUseVirtioTransitional
   137  		*out = new(bool)
   138  		**out = **in
   139  	}
   140  	if in.PreferredDiskDedicatedIoThread != nil {
   141  		in, out := &in.PreferredDiskDedicatedIoThread, &out.PreferredDiskDedicatedIoThread
   142  		*out = new(bool)
   143  		**out = **in
   144  	}
   145  	if in.PreferredDiskBlockSize != nil {
   146  		in, out := &in.PreferredDiskBlockSize, &out.PreferredDiskBlockSize
   147  		*out = new(v1.BlockSize)
   148  		(*in).DeepCopyInto(*out)
   149  	}
   150  	if in.PreferredRng != nil {
   151  		in, out := &in.PreferredRng, &out.PreferredRng
   152  		*out = new(v1.Rng)
   153  		**out = **in
   154  	}
   155  	if in.PreferredBlockMultiQueue != nil {
   156  		in, out := &in.PreferredBlockMultiQueue, &out.PreferredBlockMultiQueue
   157  		*out = new(bool)
   158  		**out = **in
   159  	}
   160  	if in.PreferredNetworkInterfaceMultiQueue != nil {
   161  		in, out := &in.PreferredNetworkInterfaceMultiQueue, &out.PreferredNetworkInterfaceMultiQueue
   162  		*out = new(bool)
   163  		**out = **in
   164  	}
   165  	if in.PreferredTPM != nil {
   166  		in, out := &in.PreferredTPM, &out.PreferredTPM
   167  		*out = new(v1.TPMDevice)
   168  		(*in).DeepCopyInto(*out)
   169  	}
   170  	return
   171  }
   172  
   173  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevicePreferences.
   174  func (in *DevicePreferences) DeepCopy() *DevicePreferences {
   175  	if in == nil {
   176  		return nil
   177  	}
   178  	out := new(DevicePreferences)
   179  	in.DeepCopyInto(out)
   180  	return out
   181  }
   182  
   183  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   184  func (in *FeaturePreferences) DeepCopyInto(out *FeaturePreferences) {
   185  	*out = *in
   186  	if in.PreferredAcpi != nil {
   187  		in, out := &in.PreferredAcpi, &out.PreferredAcpi
   188  		*out = new(v1.FeatureState)
   189  		(*in).DeepCopyInto(*out)
   190  	}
   191  	if in.PreferredApic != nil {
   192  		in, out := &in.PreferredApic, &out.PreferredApic
   193  		*out = new(v1.FeatureAPIC)
   194  		(*in).DeepCopyInto(*out)
   195  	}
   196  	if in.PreferredHyperv != nil {
   197  		in, out := &in.PreferredHyperv, &out.PreferredHyperv
   198  		*out = new(v1.FeatureHyperv)
   199  		(*in).DeepCopyInto(*out)
   200  	}
   201  	if in.PreferredKvm != nil {
   202  		in, out := &in.PreferredKvm, &out.PreferredKvm
   203  		*out = new(v1.FeatureKVM)
   204  		**out = **in
   205  	}
   206  	if in.PreferredPvspinlock != nil {
   207  		in, out := &in.PreferredPvspinlock, &out.PreferredPvspinlock
   208  		*out = new(v1.FeatureState)
   209  		(*in).DeepCopyInto(*out)
   210  	}
   211  	if in.PreferredSmm != nil {
   212  		in, out := &in.PreferredSmm, &out.PreferredSmm
   213  		*out = new(v1.FeatureState)
   214  		(*in).DeepCopyInto(*out)
   215  	}
   216  	return
   217  }
   218  
   219  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeaturePreferences.
   220  func (in *FeaturePreferences) DeepCopy() *FeaturePreferences {
   221  	if in == nil {
   222  		return nil
   223  	}
   224  	out := new(FeaturePreferences)
   225  	in.DeepCopyInto(out)
   226  	return out
   227  }
   228  
   229  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   230  func (in *FirmwarePreferences) DeepCopyInto(out *FirmwarePreferences) {
   231  	*out = *in
   232  	if in.PreferredUseBios != nil {
   233  		in, out := &in.PreferredUseBios, &out.PreferredUseBios
   234  		*out = new(bool)
   235  		**out = **in
   236  	}
   237  	if in.PreferredUseBiosSerial != nil {
   238  		in, out := &in.PreferredUseBiosSerial, &out.PreferredUseBiosSerial
   239  		*out = new(bool)
   240  		**out = **in
   241  	}
   242  	if in.PreferredUseEfi != nil {
   243  		in, out := &in.PreferredUseEfi, &out.PreferredUseEfi
   244  		*out = new(bool)
   245  		**out = **in
   246  	}
   247  	if in.PreferredUseSecureBoot != nil {
   248  		in, out := &in.PreferredUseSecureBoot, &out.PreferredUseSecureBoot
   249  		*out = new(bool)
   250  		**out = **in
   251  	}
   252  	return
   253  }
   254  
   255  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirmwarePreferences.
   256  func (in *FirmwarePreferences) DeepCopy() *FirmwarePreferences {
   257  	if in == nil {
   258  		return nil
   259  	}
   260  	out := new(FirmwarePreferences)
   261  	in.DeepCopyInto(out)
   262  	return out
   263  }
   264  
   265  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   266  func (in *MachinePreferences) DeepCopyInto(out *MachinePreferences) {
   267  	*out = *in
   268  	return
   269  }
   270  
   271  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePreferences.
   272  func (in *MachinePreferences) DeepCopy() *MachinePreferences {
   273  	if in == nil {
   274  		return nil
   275  	}
   276  	out := new(MachinePreferences)
   277  	in.DeepCopyInto(out)
   278  	return out
   279  }
   280  
   281  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   282  func (in *MemoryInstancetype) DeepCopyInto(out *MemoryInstancetype) {
   283  	*out = *in
   284  	out.Guest = in.Guest.DeepCopy()
   285  	if in.Hugepages != nil {
   286  		in, out := &in.Hugepages, &out.Hugepages
   287  		*out = new(v1.Hugepages)
   288  		**out = **in
   289  	}
   290  	return
   291  }
   292  
   293  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryInstancetype.
   294  func (in *MemoryInstancetype) DeepCopy() *MemoryInstancetype {
   295  	if in == nil {
   296  		return nil
   297  	}
   298  	out := new(MemoryInstancetype)
   299  	in.DeepCopyInto(out)
   300  	return out
   301  }
   302  
   303  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   304  func (in *VirtualMachineClusterInstancetype) DeepCopyInto(out *VirtualMachineClusterInstancetype) {
   305  	*out = *in
   306  	out.TypeMeta = in.TypeMeta
   307  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   308  	in.Spec.DeepCopyInto(&out.Spec)
   309  	return
   310  }
   311  
   312  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineClusterInstancetype.
   313  func (in *VirtualMachineClusterInstancetype) DeepCopy() *VirtualMachineClusterInstancetype {
   314  	if in == nil {
   315  		return nil
   316  	}
   317  	out := new(VirtualMachineClusterInstancetype)
   318  	in.DeepCopyInto(out)
   319  	return out
   320  }
   321  
   322  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   323  func (in *VirtualMachineClusterInstancetype) DeepCopyObject() runtime.Object {
   324  	if c := in.DeepCopy(); c != nil {
   325  		return c
   326  	}
   327  	return nil
   328  }
   329  
   330  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   331  func (in *VirtualMachineClusterInstancetypeList) DeepCopyInto(out *VirtualMachineClusterInstancetypeList) {
   332  	*out = *in
   333  	out.TypeMeta = in.TypeMeta
   334  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   335  	if in.Items != nil {
   336  		in, out := &in.Items, &out.Items
   337  		*out = make([]VirtualMachineClusterInstancetype, len(*in))
   338  		for i := range *in {
   339  			(*in)[i].DeepCopyInto(&(*out)[i])
   340  		}
   341  	}
   342  	return
   343  }
   344  
   345  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineClusterInstancetypeList.
   346  func (in *VirtualMachineClusterInstancetypeList) DeepCopy() *VirtualMachineClusterInstancetypeList {
   347  	if in == nil {
   348  		return nil
   349  	}
   350  	out := new(VirtualMachineClusterInstancetypeList)
   351  	in.DeepCopyInto(out)
   352  	return out
   353  }
   354  
   355  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   356  func (in *VirtualMachineClusterInstancetypeList) DeepCopyObject() runtime.Object {
   357  	if c := in.DeepCopy(); c != nil {
   358  		return c
   359  	}
   360  	return nil
   361  }
   362  
   363  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   364  func (in *VirtualMachineClusterPreference) DeepCopyInto(out *VirtualMachineClusterPreference) {
   365  	*out = *in
   366  	out.TypeMeta = in.TypeMeta
   367  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   368  	in.Spec.DeepCopyInto(&out.Spec)
   369  	return
   370  }
   371  
   372  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineClusterPreference.
   373  func (in *VirtualMachineClusterPreference) DeepCopy() *VirtualMachineClusterPreference {
   374  	if in == nil {
   375  		return nil
   376  	}
   377  	out := new(VirtualMachineClusterPreference)
   378  	in.DeepCopyInto(out)
   379  	return out
   380  }
   381  
   382  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   383  func (in *VirtualMachineClusterPreference) DeepCopyObject() runtime.Object {
   384  	if c := in.DeepCopy(); c != nil {
   385  		return c
   386  	}
   387  	return nil
   388  }
   389  
   390  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   391  func (in *VirtualMachineClusterPreferenceList) DeepCopyInto(out *VirtualMachineClusterPreferenceList) {
   392  	*out = *in
   393  	out.TypeMeta = in.TypeMeta
   394  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   395  	if in.Items != nil {
   396  		in, out := &in.Items, &out.Items
   397  		*out = make([]VirtualMachineClusterPreference, len(*in))
   398  		for i := range *in {
   399  			(*in)[i].DeepCopyInto(&(*out)[i])
   400  		}
   401  	}
   402  	return
   403  }
   404  
   405  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineClusterPreferenceList.
   406  func (in *VirtualMachineClusterPreferenceList) DeepCopy() *VirtualMachineClusterPreferenceList {
   407  	if in == nil {
   408  		return nil
   409  	}
   410  	out := new(VirtualMachineClusterPreferenceList)
   411  	in.DeepCopyInto(out)
   412  	return out
   413  }
   414  
   415  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   416  func (in *VirtualMachineClusterPreferenceList) DeepCopyObject() runtime.Object {
   417  	if c := in.DeepCopy(); c != nil {
   418  		return c
   419  	}
   420  	return nil
   421  }
   422  
   423  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   424  func (in *VirtualMachineInstancetype) DeepCopyInto(out *VirtualMachineInstancetype) {
   425  	*out = *in
   426  	out.TypeMeta = in.TypeMeta
   427  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   428  	in.Spec.DeepCopyInto(&out.Spec)
   429  	return
   430  }
   431  
   432  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstancetype.
   433  func (in *VirtualMachineInstancetype) DeepCopy() *VirtualMachineInstancetype {
   434  	if in == nil {
   435  		return nil
   436  	}
   437  	out := new(VirtualMachineInstancetype)
   438  	in.DeepCopyInto(out)
   439  	return out
   440  }
   441  
   442  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   443  func (in *VirtualMachineInstancetype) DeepCopyObject() runtime.Object {
   444  	if c := in.DeepCopy(); c != nil {
   445  		return c
   446  	}
   447  	return nil
   448  }
   449  
   450  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   451  func (in *VirtualMachineInstancetypeList) DeepCopyInto(out *VirtualMachineInstancetypeList) {
   452  	*out = *in
   453  	out.TypeMeta = in.TypeMeta
   454  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   455  	if in.Items != nil {
   456  		in, out := &in.Items, &out.Items
   457  		*out = make([]VirtualMachineInstancetype, len(*in))
   458  		for i := range *in {
   459  			(*in)[i].DeepCopyInto(&(*out)[i])
   460  		}
   461  	}
   462  	return
   463  }
   464  
   465  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstancetypeList.
   466  func (in *VirtualMachineInstancetypeList) DeepCopy() *VirtualMachineInstancetypeList {
   467  	if in == nil {
   468  		return nil
   469  	}
   470  	out := new(VirtualMachineInstancetypeList)
   471  	in.DeepCopyInto(out)
   472  	return out
   473  }
   474  
   475  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   476  func (in *VirtualMachineInstancetypeList) DeepCopyObject() runtime.Object {
   477  	if c := in.DeepCopy(); c != nil {
   478  		return c
   479  	}
   480  	return nil
   481  }
   482  
   483  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   484  func (in *VirtualMachineInstancetypeSpec) DeepCopyInto(out *VirtualMachineInstancetypeSpec) {
   485  	*out = *in
   486  	in.CPU.DeepCopyInto(&out.CPU)
   487  	in.Memory.DeepCopyInto(&out.Memory)
   488  	if in.GPUs != nil {
   489  		in, out := &in.GPUs, &out.GPUs
   490  		*out = make([]v1.GPU, len(*in))
   491  		for i := range *in {
   492  			(*in)[i].DeepCopyInto(&(*out)[i])
   493  		}
   494  	}
   495  	if in.HostDevices != nil {
   496  		in, out := &in.HostDevices, &out.HostDevices
   497  		*out = make([]v1.HostDevice, len(*in))
   498  		copy(*out, *in)
   499  	}
   500  	if in.IOThreadsPolicy != nil {
   501  		in, out := &in.IOThreadsPolicy, &out.IOThreadsPolicy
   502  		*out = new(v1.IOThreadsPolicy)
   503  		**out = **in
   504  	}
   505  	if in.LaunchSecurity != nil {
   506  		in, out := &in.LaunchSecurity, &out.LaunchSecurity
   507  		*out = new(v1.LaunchSecurity)
   508  		(*in).DeepCopyInto(*out)
   509  	}
   510  	return
   511  }
   512  
   513  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstancetypeSpec.
   514  func (in *VirtualMachineInstancetypeSpec) DeepCopy() *VirtualMachineInstancetypeSpec {
   515  	if in == nil {
   516  		return nil
   517  	}
   518  	out := new(VirtualMachineInstancetypeSpec)
   519  	in.DeepCopyInto(out)
   520  	return out
   521  }
   522  
   523  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   524  func (in *VirtualMachineInstancetypeSpecRevision) DeepCopyInto(out *VirtualMachineInstancetypeSpecRevision) {
   525  	*out = *in
   526  	if in.Spec != nil {
   527  		in, out := &in.Spec, &out.Spec
   528  		*out = make([]byte, len(*in))
   529  		copy(*out, *in)
   530  	}
   531  	return
   532  }
   533  
   534  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstancetypeSpecRevision.
   535  func (in *VirtualMachineInstancetypeSpecRevision) DeepCopy() *VirtualMachineInstancetypeSpecRevision {
   536  	if in == nil {
   537  		return nil
   538  	}
   539  	out := new(VirtualMachineInstancetypeSpecRevision)
   540  	in.DeepCopyInto(out)
   541  	return out
   542  }
   543  
   544  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   545  func (in *VirtualMachinePreference) DeepCopyInto(out *VirtualMachinePreference) {
   546  	*out = *in
   547  	out.TypeMeta = in.TypeMeta
   548  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   549  	in.Spec.DeepCopyInto(&out.Spec)
   550  	return
   551  }
   552  
   553  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePreference.
   554  func (in *VirtualMachinePreference) DeepCopy() *VirtualMachinePreference {
   555  	if in == nil {
   556  		return nil
   557  	}
   558  	out := new(VirtualMachinePreference)
   559  	in.DeepCopyInto(out)
   560  	return out
   561  }
   562  
   563  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   564  func (in *VirtualMachinePreference) DeepCopyObject() runtime.Object {
   565  	if c := in.DeepCopy(); c != nil {
   566  		return c
   567  	}
   568  	return nil
   569  }
   570  
   571  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   572  func (in *VirtualMachinePreferenceList) DeepCopyInto(out *VirtualMachinePreferenceList) {
   573  	*out = *in
   574  	out.TypeMeta = in.TypeMeta
   575  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   576  	if in.Items != nil {
   577  		in, out := &in.Items, &out.Items
   578  		*out = make([]VirtualMachinePreference, len(*in))
   579  		for i := range *in {
   580  			(*in)[i].DeepCopyInto(&(*out)[i])
   581  		}
   582  	}
   583  	return
   584  }
   585  
   586  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePreferenceList.
   587  func (in *VirtualMachinePreferenceList) DeepCopy() *VirtualMachinePreferenceList {
   588  	if in == nil {
   589  		return nil
   590  	}
   591  	out := new(VirtualMachinePreferenceList)
   592  	in.DeepCopyInto(out)
   593  	return out
   594  }
   595  
   596  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   597  func (in *VirtualMachinePreferenceList) DeepCopyObject() runtime.Object {
   598  	if c := in.DeepCopy(); c != nil {
   599  		return c
   600  	}
   601  	return nil
   602  }
   603  
   604  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   605  func (in *VirtualMachinePreferenceSpec) DeepCopyInto(out *VirtualMachinePreferenceSpec) {
   606  	*out = *in
   607  	if in.Clock != nil {
   608  		in, out := &in.Clock, &out.Clock
   609  		*out = new(ClockPreferences)
   610  		(*in).DeepCopyInto(*out)
   611  	}
   612  	if in.CPU != nil {
   613  		in, out := &in.CPU, &out.CPU
   614  		*out = new(CPUPreferences)
   615  		**out = **in
   616  	}
   617  	if in.Devices != nil {
   618  		in, out := &in.Devices, &out.Devices
   619  		*out = new(DevicePreferences)
   620  		(*in).DeepCopyInto(*out)
   621  	}
   622  	if in.Features != nil {
   623  		in, out := &in.Features, &out.Features
   624  		*out = new(FeaturePreferences)
   625  		(*in).DeepCopyInto(*out)
   626  	}
   627  	if in.Firmware != nil {
   628  		in, out := &in.Firmware, &out.Firmware
   629  		*out = new(FirmwarePreferences)
   630  		(*in).DeepCopyInto(*out)
   631  	}
   632  	if in.Machine != nil {
   633  		in, out := &in.Machine, &out.Machine
   634  		*out = new(MachinePreferences)
   635  		**out = **in
   636  	}
   637  	return
   638  }
   639  
   640  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePreferenceSpec.
   641  func (in *VirtualMachinePreferenceSpec) DeepCopy() *VirtualMachinePreferenceSpec {
   642  	if in == nil {
   643  		return nil
   644  	}
   645  	out := new(VirtualMachinePreferenceSpec)
   646  	in.DeepCopyInto(out)
   647  	return out
   648  }
   649  
   650  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   651  func (in *VirtualMachinePreferenceSpecRevision) DeepCopyInto(out *VirtualMachinePreferenceSpecRevision) {
   652  	*out = *in
   653  	if in.Spec != nil {
   654  		in, out := &in.Spec, &out.Spec
   655  		*out = make([]byte, len(*in))
   656  		copy(*out, *in)
   657  	}
   658  	return
   659  }
   660  
   661  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePreferenceSpecRevision.
   662  func (in *VirtualMachinePreferenceSpecRevision) DeepCopy() *VirtualMachinePreferenceSpecRevision {
   663  	if in == nil {
   664  		return nil
   665  	}
   666  	out := new(VirtualMachinePreferenceSpecRevision)
   667  	in.DeepCopyInto(out)
   668  	return out
   669  }
   670  

View as plain text