...

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

Documentation: kubevirt.io/api/clone/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  	v1 "k8s.io/api/core/v1"
    26  	runtime "k8s.io/apimachinery/pkg/runtime"
    27  )
    28  
    29  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    30  func (in *Condition) DeepCopyInto(out *Condition) {
    31  	*out = *in
    32  	in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
    33  	in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
    34  	return
    35  }
    36  
    37  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
    38  func (in *Condition) DeepCopy() *Condition {
    39  	if in == nil {
    40  		return nil
    41  	}
    42  	out := new(Condition)
    43  	in.DeepCopyInto(out)
    44  	return out
    45  }
    46  
    47  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    48  func (in *VirtualMachineClone) DeepCopyInto(out *VirtualMachineClone) {
    49  	*out = *in
    50  	out.TypeMeta = in.TypeMeta
    51  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    52  	in.Spec.DeepCopyInto(&out.Spec)
    53  	in.Status.DeepCopyInto(&out.Status)
    54  	return
    55  }
    56  
    57  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineClone.
    58  func (in *VirtualMachineClone) DeepCopy() *VirtualMachineClone {
    59  	if in == nil {
    60  		return nil
    61  	}
    62  	out := new(VirtualMachineClone)
    63  	in.DeepCopyInto(out)
    64  	return out
    65  }
    66  
    67  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    68  func (in *VirtualMachineClone) DeepCopyObject() runtime.Object {
    69  	if c := in.DeepCopy(); c != nil {
    70  		return c
    71  	}
    72  	return nil
    73  }
    74  
    75  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    76  func (in *VirtualMachineCloneList) DeepCopyInto(out *VirtualMachineCloneList) {
    77  	*out = *in
    78  	out.TypeMeta = in.TypeMeta
    79  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    80  	if in.Items != nil {
    81  		in, out := &in.Items, &out.Items
    82  		*out = make([]VirtualMachineClone, len(*in))
    83  		for i := range *in {
    84  			(*in)[i].DeepCopyInto(&(*out)[i])
    85  		}
    86  	}
    87  	return
    88  }
    89  
    90  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCloneList.
    91  func (in *VirtualMachineCloneList) DeepCopy() *VirtualMachineCloneList {
    92  	if in == nil {
    93  		return nil
    94  	}
    95  	out := new(VirtualMachineCloneList)
    96  	in.DeepCopyInto(out)
    97  	return out
    98  }
    99  
   100  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   101  func (in *VirtualMachineCloneList) DeepCopyObject() runtime.Object {
   102  	if c := in.DeepCopy(); c != nil {
   103  		return c
   104  	}
   105  	return nil
   106  }
   107  
   108  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   109  func (in *VirtualMachineCloneSpec) DeepCopyInto(out *VirtualMachineCloneSpec) {
   110  	*out = *in
   111  	if in.Source != nil {
   112  		in, out := &in.Source, &out.Source
   113  		*out = new(v1.TypedLocalObjectReference)
   114  		(*in).DeepCopyInto(*out)
   115  	}
   116  	if in.Target != nil {
   117  		in, out := &in.Target, &out.Target
   118  		*out = new(v1.TypedLocalObjectReference)
   119  		(*in).DeepCopyInto(*out)
   120  	}
   121  	if in.AnnotationFilters != nil {
   122  		in, out := &in.AnnotationFilters, &out.AnnotationFilters
   123  		*out = make([]string, len(*in))
   124  		copy(*out, *in)
   125  	}
   126  	if in.LabelFilters != nil {
   127  		in, out := &in.LabelFilters, &out.LabelFilters
   128  		*out = make([]string, len(*in))
   129  		copy(*out, *in)
   130  	}
   131  	in.Template.DeepCopyInto(&out.Template)
   132  	if in.NewMacAddresses != nil {
   133  		in, out := &in.NewMacAddresses, &out.NewMacAddresses
   134  		*out = make(map[string]string, len(*in))
   135  		for key, val := range *in {
   136  			(*out)[key] = val
   137  		}
   138  	}
   139  	if in.NewSMBiosSerial != nil {
   140  		in, out := &in.NewSMBiosSerial, &out.NewSMBiosSerial
   141  		*out = new(string)
   142  		**out = **in
   143  	}
   144  	return
   145  }
   146  
   147  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCloneSpec.
   148  func (in *VirtualMachineCloneSpec) DeepCopy() *VirtualMachineCloneSpec {
   149  	if in == nil {
   150  		return nil
   151  	}
   152  	out := new(VirtualMachineCloneSpec)
   153  	in.DeepCopyInto(out)
   154  	return out
   155  }
   156  
   157  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   158  func (in *VirtualMachineCloneStatus) DeepCopyInto(out *VirtualMachineCloneStatus) {
   159  	*out = *in
   160  	if in.CreationTime != nil {
   161  		in, out := &in.CreationTime, &out.CreationTime
   162  		*out = (*in).DeepCopy()
   163  	}
   164  	if in.Conditions != nil {
   165  		in, out := &in.Conditions, &out.Conditions
   166  		*out = make([]Condition, len(*in))
   167  		for i := range *in {
   168  			(*in)[i].DeepCopyInto(&(*out)[i])
   169  		}
   170  	}
   171  	if in.SnapshotName != nil {
   172  		in, out := &in.SnapshotName, &out.SnapshotName
   173  		*out = new(string)
   174  		**out = **in
   175  	}
   176  	if in.RestoreName != nil {
   177  		in, out := &in.RestoreName, &out.RestoreName
   178  		*out = new(string)
   179  		**out = **in
   180  	}
   181  	if in.TargetName != nil {
   182  		in, out := &in.TargetName, &out.TargetName
   183  		*out = new(string)
   184  		**out = **in
   185  	}
   186  	return
   187  }
   188  
   189  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCloneStatus.
   190  func (in *VirtualMachineCloneStatus) DeepCopy() *VirtualMachineCloneStatus {
   191  	if in == nil {
   192  		return nil
   193  	}
   194  	out := new(VirtualMachineCloneStatus)
   195  	in.DeepCopyInto(out)
   196  	return out
   197  }
   198  
   199  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   200  func (in *VirtualMachineCloneTemplateFilters) DeepCopyInto(out *VirtualMachineCloneTemplateFilters) {
   201  	*out = *in
   202  	if in.AnnotationFilters != nil {
   203  		in, out := &in.AnnotationFilters, &out.AnnotationFilters
   204  		*out = make([]string, len(*in))
   205  		copy(*out, *in)
   206  	}
   207  	if in.LabelFilters != nil {
   208  		in, out := &in.LabelFilters, &out.LabelFilters
   209  		*out = make([]string, len(*in))
   210  		copy(*out, *in)
   211  	}
   212  	return
   213  }
   214  
   215  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCloneTemplateFilters.
   216  func (in *VirtualMachineCloneTemplateFilters) DeepCopy() *VirtualMachineCloneTemplateFilters {
   217  	if in == nil {
   218  		return nil
   219  	}
   220  	out := new(VirtualMachineCloneTemplateFilters)
   221  	in.DeepCopyInto(out)
   222  	return out
   223  }
   224  

View as plain text