...

Source file src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/zz_generated.deepcopy.go

Documentation: k8s.io/apiextensions-apiserver/pkg/apiserver/schema

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes 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 schema
    23  
    24  import (
    25  	v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
    26  )
    27  
    28  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    29  func (in *Extensions) DeepCopyInto(out *Extensions) {
    30  	*out = *in
    31  	if in.XListMapKeys != nil {
    32  		in, out := &in.XListMapKeys, &out.XListMapKeys
    33  		*out = make([]string, len(*in))
    34  		copy(*out, *in)
    35  	}
    36  	if in.XListType != nil {
    37  		in, out := &in.XListType, &out.XListType
    38  		*out = new(string)
    39  		**out = **in
    40  	}
    41  	if in.XMapType != nil {
    42  		in, out := &in.XMapType, &out.XMapType
    43  		*out = new(string)
    44  		**out = **in
    45  	}
    46  	if in.XValidations != nil {
    47  		in, out := &in.XValidations, &out.XValidations
    48  		*out = make(v1.ValidationRules, len(*in))
    49  		for i := range *in {
    50  			(*in)[i].DeepCopyInto(&(*out)[i])
    51  		}
    52  	}
    53  	return
    54  }
    55  
    56  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Extensions.
    57  func (in *Extensions) DeepCopy() *Extensions {
    58  	if in == nil {
    59  		return nil
    60  	}
    61  	out := new(Extensions)
    62  	in.DeepCopyInto(out)
    63  	return out
    64  }
    65  
    66  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    67  func (in *Generic) DeepCopyInto(out *Generic) {
    68  	*out = *in
    69  	out.Default = in.Default.DeepCopy()
    70  	if in.AdditionalProperties != nil {
    71  		in, out := &in.AdditionalProperties, &out.AdditionalProperties
    72  		*out = new(StructuralOrBool)
    73  		(*in).DeepCopyInto(*out)
    74  	}
    75  	return
    76  }
    77  
    78  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Generic.
    79  func (in *Generic) DeepCopy() *Generic {
    80  	if in == nil {
    81  		return nil
    82  	}
    83  	out := new(Generic)
    84  	in.DeepCopyInto(out)
    85  	return out
    86  }
    87  
    88  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    89  func (in *NestedValueValidation) DeepCopyInto(out *NestedValueValidation) {
    90  	*out = *in
    91  	in.ValueValidation.DeepCopyInto(&out.ValueValidation)
    92  	if in.Items != nil {
    93  		in, out := &in.Items, &out.Items
    94  		*out = new(NestedValueValidation)
    95  		(*in).DeepCopyInto(*out)
    96  	}
    97  	if in.Properties != nil {
    98  		in, out := &in.Properties, &out.Properties
    99  		*out = make(map[string]NestedValueValidation, len(*in))
   100  		for key, val := range *in {
   101  			(*out)[key] = *val.DeepCopy()
   102  		}
   103  	}
   104  	in.ForbiddenGenerics.DeepCopyInto(&out.ForbiddenGenerics)
   105  	in.ForbiddenExtensions.DeepCopyInto(&out.ForbiddenExtensions)
   106  	return
   107  }
   108  
   109  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NestedValueValidation.
   110  func (in *NestedValueValidation) DeepCopy() *NestedValueValidation {
   111  	if in == nil {
   112  		return nil
   113  	}
   114  	out := new(NestedValueValidation)
   115  	in.DeepCopyInto(out)
   116  	return out
   117  }
   118  
   119  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   120  func (in *Structural) DeepCopyInto(out *Structural) {
   121  	*out = *in
   122  	if in.Items != nil {
   123  		in, out := &in.Items, &out.Items
   124  		*out = new(Structural)
   125  		(*in).DeepCopyInto(*out)
   126  	}
   127  	if in.Properties != nil {
   128  		in, out := &in.Properties, &out.Properties
   129  		*out = make(map[string]Structural, len(*in))
   130  		for key, val := range *in {
   131  			(*out)[key] = *val.DeepCopy()
   132  		}
   133  	}
   134  	in.Generic.DeepCopyInto(&out.Generic)
   135  	in.Extensions.DeepCopyInto(&out.Extensions)
   136  	if in.ValueValidation != nil {
   137  		in, out := &in.ValueValidation, &out.ValueValidation
   138  		*out = new(ValueValidation)
   139  		(*in).DeepCopyInto(*out)
   140  	}
   141  	return
   142  }
   143  
   144  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Structural.
   145  func (in *Structural) DeepCopy() *Structural {
   146  	if in == nil {
   147  		return nil
   148  	}
   149  	out := new(Structural)
   150  	in.DeepCopyInto(out)
   151  	return out
   152  }
   153  
   154  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   155  func (in *StructuralOrBool) DeepCopyInto(out *StructuralOrBool) {
   156  	*out = *in
   157  	if in.Structural != nil {
   158  		in, out := &in.Structural, &out.Structural
   159  		*out = new(Structural)
   160  		(*in).DeepCopyInto(*out)
   161  	}
   162  	return
   163  }
   164  
   165  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StructuralOrBool.
   166  func (in *StructuralOrBool) DeepCopy() *StructuralOrBool {
   167  	if in == nil {
   168  		return nil
   169  	}
   170  	out := new(StructuralOrBool)
   171  	in.DeepCopyInto(out)
   172  	return out
   173  }
   174  
   175  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   176  func (in *ValueValidation) DeepCopyInto(out *ValueValidation) {
   177  	*out = *in
   178  	if in.Maximum != nil {
   179  		in, out := &in.Maximum, &out.Maximum
   180  		*out = new(float64)
   181  		**out = **in
   182  	}
   183  	if in.Minimum != nil {
   184  		in, out := &in.Minimum, &out.Minimum
   185  		*out = new(float64)
   186  		**out = **in
   187  	}
   188  	if in.MaxLength != nil {
   189  		in, out := &in.MaxLength, &out.MaxLength
   190  		*out = new(int64)
   191  		**out = **in
   192  	}
   193  	if in.MinLength != nil {
   194  		in, out := &in.MinLength, &out.MinLength
   195  		*out = new(int64)
   196  		**out = **in
   197  	}
   198  	if in.MaxItems != nil {
   199  		in, out := &in.MaxItems, &out.MaxItems
   200  		*out = new(int64)
   201  		**out = **in
   202  	}
   203  	if in.MinItems != nil {
   204  		in, out := &in.MinItems, &out.MinItems
   205  		*out = new(int64)
   206  		**out = **in
   207  	}
   208  	if in.MultipleOf != nil {
   209  		in, out := &in.MultipleOf, &out.MultipleOf
   210  		*out = new(float64)
   211  		**out = **in
   212  	}
   213  	if in.Enum != nil {
   214  		in, out := &in.Enum, &out.Enum
   215  		*out = make([]JSON, len(*in))
   216  		for i := range *in {
   217  			(*in)[i].DeepCopyInto(&(*out)[i])
   218  		}
   219  	}
   220  	if in.MaxProperties != nil {
   221  		in, out := &in.MaxProperties, &out.MaxProperties
   222  		*out = new(int64)
   223  		**out = **in
   224  	}
   225  	if in.MinProperties != nil {
   226  		in, out := &in.MinProperties, &out.MinProperties
   227  		*out = new(int64)
   228  		**out = **in
   229  	}
   230  	if in.Required != nil {
   231  		in, out := &in.Required, &out.Required
   232  		*out = make([]string, len(*in))
   233  		copy(*out, *in)
   234  	}
   235  	if in.AllOf != nil {
   236  		in, out := &in.AllOf, &out.AllOf
   237  		*out = make([]NestedValueValidation, len(*in))
   238  		for i := range *in {
   239  			(*in)[i].DeepCopyInto(&(*out)[i])
   240  		}
   241  	}
   242  	if in.OneOf != nil {
   243  		in, out := &in.OneOf, &out.OneOf
   244  		*out = make([]NestedValueValidation, len(*in))
   245  		for i := range *in {
   246  			(*in)[i].DeepCopyInto(&(*out)[i])
   247  		}
   248  	}
   249  	if in.AnyOf != nil {
   250  		in, out := &in.AnyOf, &out.AnyOf
   251  		*out = make([]NestedValueValidation, len(*in))
   252  		for i := range *in {
   253  			(*in)[i].DeepCopyInto(&(*out)[i])
   254  		}
   255  	}
   256  	if in.Not != nil {
   257  		in, out := &in.Not, &out.Not
   258  		*out = new(NestedValueValidation)
   259  		(*in).DeepCopyInto(*out)
   260  	}
   261  	return
   262  }
   263  
   264  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueValidation.
   265  func (in *ValueValidation) DeepCopy() *ValueValidation {
   266  	if in == nil {
   267  		return nil
   268  	}
   269  	out := new(ValueValidation)
   270  	in.DeepCopyInto(out)
   271  	return out
   272  }
   273  

View as plain text