...

Source file src/k8s.io/api/apidiscovery/v2/zz_generated.deepcopy.go

Documentation: k8s.io/api/apidiscovery/v2

     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 v2
    23  
    24  import (
    25  	v1 "k8s.io/apimachinery/pkg/apis/meta/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 *APIGroupDiscovery) DeepCopyInto(out *APIGroupDiscovery) {
    31  	*out = *in
    32  	out.TypeMeta = in.TypeMeta
    33  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    34  	if in.Versions != nil {
    35  		in, out := &in.Versions, &out.Versions
    36  		*out = make([]APIVersionDiscovery, len(*in))
    37  		for i := range *in {
    38  			(*in)[i].DeepCopyInto(&(*out)[i])
    39  		}
    40  	}
    41  	return
    42  }
    43  
    44  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupDiscovery.
    45  func (in *APIGroupDiscovery) DeepCopy() *APIGroupDiscovery {
    46  	if in == nil {
    47  		return nil
    48  	}
    49  	out := new(APIGroupDiscovery)
    50  	in.DeepCopyInto(out)
    51  	return out
    52  }
    53  
    54  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    55  func (in *APIGroupDiscovery) DeepCopyObject() runtime.Object {
    56  	if c := in.DeepCopy(); c != nil {
    57  		return c
    58  	}
    59  	return nil
    60  }
    61  
    62  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    63  func (in *APIGroupDiscoveryList) DeepCopyInto(out *APIGroupDiscoveryList) {
    64  	*out = *in
    65  	out.TypeMeta = in.TypeMeta
    66  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    67  	if in.Items != nil {
    68  		in, out := &in.Items, &out.Items
    69  		*out = make([]APIGroupDiscovery, len(*in))
    70  		for i := range *in {
    71  			(*in)[i].DeepCopyInto(&(*out)[i])
    72  		}
    73  	}
    74  	return
    75  }
    76  
    77  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupDiscoveryList.
    78  func (in *APIGroupDiscoveryList) DeepCopy() *APIGroupDiscoveryList {
    79  	if in == nil {
    80  		return nil
    81  	}
    82  	out := new(APIGroupDiscoveryList)
    83  	in.DeepCopyInto(out)
    84  	return out
    85  }
    86  
    87  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    88  func (in *APIGroupDiscoveryList) DeepCopyObject() runtime.Object {
    89  	if c := in.DeepCopy(); c != nil {
    90  		return c
    91  	}
    92  	return nil
    93  }
    94  
    95  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    96  func (in *APIResourceDiscovery) DeepCopyInto(out *APIResourceDiscovery) {
    97  	*out = *in
    98  	if in.ResponseKind != nil {
    99  		in, out := &in.ResponseKind, &out.ResponseKind
   100  		*out = new(v1.GroupVersionKind)
   101  		**out = **in
   102  	}
   103  	if in.Verbs != nil {
   104  		in, out := &in.Verbs, &out.Verbs
   105  		*out = make([]string, len(*in))
   106  		copy(*out, *in)
   107  	}
   108  	if in.ShortNames != nil {
   109  		in, out := &in.ShortNames, &out.ShortNames
   110  		*out = make([]string, len(*in))
   111  		copy(*out, *in)
   112  	}
   113  	if in.Categories != nil {
   114  		in, out := &in.Categories, &out.Categories
   115  		*out = make([]string, len(*in))
   116  		copy(*out, *in)
   117  	}
   118  	if in.Subresources != nil {
   119  		in, out := &in.Subresources, &out.Subresources
   120  		*out = make([]APISubresourceDiscovery, len(*in))
   121  		for i := range *in {
   122  			(*in)[i].DeepCopyInto(&(*out)[i])
   123  		}
   124  	}
   125  	return
   126  }
   127  
   128  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResourceDiscovery.
   129  func (in *APIResourceDiscovery) DeepCopy() *APIResourceDiscovery {
   130  	if in == nil {
   131  		return nil
   132  	}
   133  	out := new(APIResourceDiscovery)
   134  	in.DeepCopyInto(out)
   135  	return out
   136  }
   137  
   138  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   139  func (in *APISubresourceDiscovery) DeepCopyInto(out *APISubresourceDiscovery) {
   140  	*out = *in
   141  	if in.ResponseKind != nil {
   142  		in, out := &in.ResponseKind, &out.ResponseKind
   143  		*out = new(v1.GroupVersionKind)
   144  		**out = **in
   145  	}
   146  	if in.AcceptedTypes != nil {
   147  		in, out := &in.AcceptedTypes, &out.AcceptedTypes
   148  		*out = make([]v1.GroupVersionKind, len(*in))
   149  		copy(*out, *in)
   150  	}
   151  	if in.Verbs != nil {
   152  		in, out := &in.Verbs, &out.Verbs
   153  		*out = make([]string, len(*in))
   154  		copy(*out, *in)
   155  	}
   156  	return
   157  }
   158  
   159  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APISubresourceDiscovery.
   160  func (in *APISubresourceDiscovery) DeepCopy() *APISubresourceDiscovery {
   161  	if in == nil {
   162  		return nil
   163  	}
   164  	out := new(APISubresourceDiscovery)
   165  	in.DeepCopyInto(out)
   166  	return out
   167  }
   168  
   169  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   170  func (in *APIVersionDiscovery) DeepCopyInto(out *APIVersionDiscovery) {
   171  	*out = *in
   172  	if in.Resources != nil {
   173  		in, out := &in.Resources, &out.Resources
   174  		*out = make([]APIResourceDiscovery, len(*in))
   175  		for i := range *in {
   176  			(*in)[i].DeepCopyInto(&(*out)[i])
   177  		}
   178  	}
   179  	return
   180  }
   181  
   182  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIVersionDiscovery.
   183  func (in *APIVersionDiscovery) DeepCopy() *APIVersionDiscovery {
   184  	if in == nil {
   185  		return nil
   186  	}
   187  	out := new(APIVersionDiscovery)
   188  	in.DeepCopyInto(out)
   189  	return out
   190  }
   191  

View as plain text