github.com/spotmaxtech/k8s-apimachinery-v0260@v0.0.1/pkg/apis/meta/v1/zz_generated.conversion.go (about) 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 conversion-gen. DO NOT EDIT. 21 22 package v1 23 24 import ( 25 url "net/url" 26 unsafe "unsafe" 27 28 resource "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/api/resource" 29 conversion "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/conversion" 30 fields "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/fields" 31 labels "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/labels" 32 runtime "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/runtime" 33 intstr "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/util/intstr" 34 watch "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/watch" 35 ) 36 37 func init() { 38 localSchemeBuilder.Register(RegisterConversions) 39 } 40 41 // RegisterConversions adds conversion functions to the given scheme. 42 // Public to allow building arbitrary schemes. 43 func RegisterConversions(s *runtime.Scheme) error { 44 if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*CreateOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 45 return Convert_url_Values_To_v1_CreateOptions(a.(*url.Values), b.(*CreateOptions), scope) 46 }); err != nil { 47 return err 48 } 49 if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 50 return Convert_url_Values_To_v1_DeleteOptions(a.(*url.Values), b.(*DeleteOptions), scope) 51 }); err != nil { 52 return err 53 } 54 if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*GetOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 55 return Convert_url_Values_To_v1_GetOptions(a.(*url.Values), b.(*GetOptions), scope) 56 }); err != nil { 57 return err 58 } 59 if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*ListOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 60 return Convert_url_Values_To_v1_ListOptions(a.(*url.Values), b.(*ListOptions), scope) 61 }); err != nil { 62 return err 63 } 64 if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*PatchOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 65 return Convert_url_Values_To_v1_PatchOptions(a.(*url.Values), b.(*PatchOptions), scope) 66 }); err != nil { 67 return err 68 } 69 if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*TableOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 70 return Convert_url_Values_To_v1_TableOptions(a.(*url.Values), b.(*TableOptions), scope) 71 }); err != nil { 72 return err 73 } 74 if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*UpdateOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 75 return Convert_url_Values_To_v1_UpdateOptions(a.(*url.Values), b.(*UpdateOptions), scope) 76 }); err != nil { 77 return err 78 } 79 if err := s.AddConversionFunc((*map[string]string)(nil), (*LabelSelector)(nil), func(a, b interface{}, scope conversion.Scope) error { 80 return Convert_Map_string_To_string_To_v1_LabelSelector(a.(*map[string]string), b.(*LabelSelector), scope) 81 }); err != nil { 82 return err 83 } 84 if err := s.AddConversionFunc((**bool)(nil), (*bool)(nil), func(a, b interface{}, scope conversion.Scope) error { 85 return Convert_Pointer_bool_To_bool(a.(**bool), b.(*bool), scope) 86 }); err != nil { 87 return err 88 } 89 if err := s.AddConversionFunc((**float64)(nil), (*float64)(nil), func(a, b interface{}, scope conversion.Scope) error { 90 return Convert_Pointer_float64_To_float64(a.(**float64), b.(*float64), scope) 91 }); err != nil { 92 return err 93 } 94 if err := s.AddConversionFunc((**int32)(nil), (*int32)(nil), func(a, b interface{}, scope conversion.Scope) error { 95 return Convert_Pointer_int32_To_int32(a.(**int32), b.(*int32), scope) 96 }); err != nil { 97 return err 98 } 99 if err := s.AddConversionFunc((**int64)(nil), (*int)(nil), func(a, b interface{}, scope conversion.Scope) error { 100 return Convert_Pointer_int64_To_int(a.(**int64), b.(*int), scope) 101 }); err != nil { 102 return err 103 } 104 if err := s.AddConversionFunc((**int64)(nil), (*int64)(nil), func(a, b interface{}, scope conversion.Scope) error { 105 return Convert_Pointer_int64_To_int64(a.(**int64), b.(*int64), scope) 106 }); err != nil { 107 return err 108 } 109 if err := s.AddConversionFunc((**intstr.IntOrString)(nil), (*intstr.IntOrString)(nil), func(a, b interface{}, scope conversion.Scope) error { 110 return Convert_Pointer_intstr_IntOrString_To_intstr_IntOrString(a.(**intstr.IntOrString), b.(*intstr.IntOrString), scope) 111 }); err != nil { 112 return err 113 } 114 if err := s.AddConversionFunc((**string)(nil), (*string)(nil), func(a, b interface{}, scope conversion.Scope) error { 115 return Convert_Pointer_string_To_string(a.(**string), b.(*string), scope) 116 }); err != nil { 117 return err 118 } 119 if err := s.AddConversionFunc((**Duration)(nil), (*Duration)(nil), func(a, b interface{}, scope conversion.Scope) error { 120 return Convert_Pointer_v1_Duration_To_v1_Duration(a.(**Duration), b.(*Duration), scope) 121 }); err != nil { 122 return err 123 } 124 if err := s.AddConversionFunc((*[]string)(nil), (**DeletionPropagation)(nil), func(a, b interface{}, scope conversion.Scope) error { 125 return Convert_Slice_string_To_Pointer_v1_DeletionPropagation(a.(*[]string), b.(**DeletionPropagation), scope) 126 }); err != nil { 127 return err 128 } 129 if err := s.AddConversionFunc((*[]string)(nil), (**Time)(nil), func(a, b interface{}, scope conversion.Scope) error { 130 return Convert_Slice_string_To_Pointer_v1_Time(a.(*[]string), b.(**Time), scope) 131 }); err != nil { 132 return err 133 } 134 if err := s.AddConversionFunc((*[]string)(nil), (*[]int32)(nil), func(a, b interface{}, scope conversion.Scope) error { 135 return Convert_Slice_string_To_Slice_int32(a.(*[]string), b.(*[]int32), scope) 136 }); err != nil { 137 return err 138 } 139 if err := s.AddConversionFunc((*[]string)(nil), (*IncludeObjectPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error { 140 return Convert_Slice_string_To_v1_IncludeObjectPolicy(a.(*[]string), b.(*IncludeObjectPolicy), scope) 141 }); err != nil { 142 return err 143 } 144 if err := s.AddConversionFunc((*[]string)(nil), (*ResourceVersionMatch)(nil), func(a, b interface{}, scope conversion.Scope) error { 145 return Convert_Slice_string_To_v1_ResourceVersionMatch(a.(*[]string), b.(*ResourceVersionMatch), scope) 146 }); err != nil { 147 return err 148 } 149 if err := s.AddConversionFunc((*[]string)(nil), (*Time)(nil), func(a, b interface{}, scope conversion.Scope) error { 150 return Convert_Slice_string_To_v1_Time(a.(*[]string), b.(*Time), scope) 151 }); err != nil { 152 return err 153 } 154 if err := s.AddConversionFunc((*bool)(nil), (**bool)(nil), func(a, b interface{}, scope conversion.Scope) error { 155 return Convert_bool_To_Pointer_bool(a.(*bool), b.(**bool), scope) 156 }); err != nil { 157 return err 158 } 159 if err := s.AddConversionFunc((*fields.Selector)(nil), (*string)(nil), func(a, b interface{}, scope conversion.Scope) error { 160 return Convert_fields_Selector_To_string(a.(*fields.Selector), b.(*string), scope) 161 }); err != nil { 162 return err 163 } 164 if err := s.AddConversionFunc((*float64)(nil), (**float64)(nil), func(a, b interface{}, scope conversion.Scope) error { 165 return Convert_float64_To_Pointer_float64(a.(*float64), b.(**float64), scope) 166 }); err != nil { 167 return err 168 } 169 if err := s.AddConversionFunc((*int32)(nil), (**int32)(nil), func(a, b interface{}, scope conversion.Scope) error { 170 return Convert_int32_To_Pointer_int32(a.(*int32), b.(**int32), scope) 171 }); err != nil { 172 return err 173 } 174 if err := s.AddConversionFunc((*int64)(nil), (**int64)(nil), func(a, b interface{}, scope conversion.Scope) error { 175 return Convert_int64_To_Pointer_int64(a.(*int64), b.(**int64), scope) 176 }); err != nil { 177 return err 178 } 179 if err := s.AddConversionFunc((*int)(nil), (**int64)(nil), func(a, b interface{}, scope conversion.Scope) error { 180 return Convert_int_To_Pointer_int64(a.(*int), b.(**int64), scope) 181 }); err != nil { 182 return err 183 } 184 if err := s.AddConversionFunc((*intstr.IntOrString)(nil), (**intstr.IntOrString)(nil), func(a, b interface{}, scope conversion.Scope) error { 185 return Convert_intstr_IntOrString_To_Pointer_intstr_IntOrString(a.(*intstr.IntOrString), b.(**intstr.IntOrString), scope) 186 }); err != nil { 187 return err 188 } 189 if err := s.AddConversionFunc((*intstr.IntOrString)(nil), (*intstr.IntOrString)(nil), func(a, b interface{}, scope conversion.Scope) error { 190 return Convert_intstr_IntOrString_To_intstr_IntOrString(a.(*intstr.IntOrString), b.(*intstr.IntOrString), scope) 191 }); err != nil { 192 return err 193 } 194 if err := s.AddConversionFunc((*labels.Selector)(nil), (*string)(nil), func(a, b interface{}, scope conversion.Scope) error { 195 return Convert_labels_Selector_To_string(a.(*labels.Selector), b.(*string), scope) 196 }); err != nil { 197 return err 198 } 199 if err := s.AddConversionFunc((*resource.Quantity)(nil), (*resource.Quantity)(nil), func(a, b interface{}, scope conversion.Scope) error { 200 return Convert_resource_Quantity_To_resource_Quantity(a.(*resource.Quantity), b.(*resource.Quantity), scope) 201 }); err != nil { 202 return err 203 } 204 if err := s.AddConversionFunc((*string)(nil), (**string)(nil), func(a, b interface{}, scope conversion.Scope) error { 205 return Convert_string_To_Pointer_string(a.(*string), b.(**string), scope) 206 }); err != nil { 207 return err 208 } 209 if err := s.AddConversionFunc((*string)(nil), (*fields.Selector)(nil), func(a, b interface{}, scope conversion.Scope) error { 210 return Convert_string_To_fields_Selector(a.(*string), b.(*fields.Selector), scope) 211 }); err != nil { 212 return err 213 } 214 if err := s.AddConversionFunc((*string)(nil), (*labels.Selector)(nil), func(a, b interface{}, scope conversion.Scope) error { 215 return Convert_string_To_labels_Selector(a.(*string), b.(*labels.Selector), scope) 216 }); err != nil { 217 return err 218 } 219 if err := s.AddConversionFunc((*url.Values)(nil), (*DeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 220 return Convert_url_Values_To_v1_DeleteOptions(a.(*url.Values), b.(*DeleteOptions), scope) 221 }); err != nil { 222 return err 223 } 224 if err := s.AddConversionFunc((*DeleteOptions)(nil), (*DeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { 225 return Convert_v1_DeleteOptions_To_v1_DeleteOptions(a.(*DeleteOptions), b.(*DeleteOptions), scope) 226 }); err != nil { 227 return err 228 } 229 if err := s.AddConversionFunc((*Duration)(nil), (**Duration)(nil), func(a, b interface{}, scope conversion.Scope) error { 230 return Convert_v1_Duration_To_Pointer_v1_Duration(a.(*Duration), b.(**Duration), scope) 231 }); err != nil { 232 return err 233 } 234 if err := s.AddConversionFunc((*InternalEvent)(nil), (*WatchEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { 235 return Convert_v1_InternalEvent_To_v1_WatchEvent(a.(*InternalEvent), b.(*WatchEvent), scope) 236 }); err != nil { 237 return err 238 } 239 if err := s.AddConversionFunc((*LabelSelector)(nil), (*map[string]string)(nil), func(a, b interface{}, scope conversion.Scope) error { 240 return Convert_v1_LabelSelector_To_Map_string_To_string(a.(*LabelSelector), b.(*map[string]string), scope) 241 }); err != nil { 242 return err 243 } 244 if err := s.AddConversionFunc((*ListMeta)(nil), (*ListMeta)(nil), func(a, b interface{}, scope conversion.Scope) error { 245 return Convert_v1_ListMeta_To_v1_ListMeta(a.(*ListMeta), b.(*ListMeta), scope) 246 }); err != nil { 247 return err 248 } 249 if err := s.AddConversionFunc((*MicroTime)(nil), (*MicroTime)(nil), func(a, b interface{}, scope conversion.Scope) error { 250 return Convert_v1_MicroTime_To_v1_MicroTime(a.(*MicroTime), b.(*MicroTime), scope) 251 }); err != nil { 252 return err 253 } 254 if err := s.AddConversionFunc((*Time)(nil), (*Time)(nil), func(a, b interface{}, scope conversion.Scope) error { 255 return Convert_v1_Time_To_v1_Time(a.(*Time), b.(*Time), scope) 256 }); err != nil { 257 return err 258 } 259 if err := s.AddConversionFunc((*TypeMeta)(nil), (*TypeMeta)(nil), func(a, b interface{}, scope conversion.Scope) error { 260 return Convert_v1_TypeMeta_To_v1_TypeMeta(a.(*TypeMeta), b.(*TypeMeta), scope) 261 }); err != nil { 262 return err 263 } 264 if err := s.AddConversionFunc((*WatchEvent)(nil), (*InternalEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { 265 return Convert_v1_WatchEvent_To_v1_InternalEvent(a.(*WatchEvent), b.(*InternalEvent), scope) 266 }); err != nil { 267 return err 268 } 269 if err := s.AddConversionFunc((*WatchEvent)(nil), (*watch.Event)(nil), func(a, b interface{}, scope conversion.Scope) error { 270 return Convert_v1_WatchEvent_To_watch_Event(a.(*WatchEvent), b.(*watch.Event), scope) 271 }); err != nil { 272 return err 273 } 274 if err := s.AddConversionFunc((*watch.Event)(nil), (*WatchEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { 275 return Convert_watch_Event_To_v1_WatchEvent(a.(*watch.Event), b.(*WatchEvent), scope) 276 }); err != nil { 277 return err 278 } 279 return nil 280 } 281 282 func autoConvert_url_Values_To_v1_CreateOptions(in *url.Values, out *CreateOptions, s conversion.Scope) error { 283 // WARNING: Field TypeMeta does not have json tag, skipping. 284 285 if values, ok := map[string][]string(*in)["dryRun"]; ok && len(values) > 0 { 286 out.DryRun = *(*[]string)(unsafe.Pointer(&values)) 287 } else { 288 out.DryRun = nil 289 } 290 if values, ok := map[string][]string(*in)["fieldManager"]; ok && len(values) > 0 { 291 if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldManager, s); err != nil { 292 return err 293 } 294 } else { 295 out.FieldManager = "" 296 } 297 if values, ok := map[string][]string(*in)["fieldValidation"]; ok && len(values) > 0 { 298 if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldValidation, s); err != nil { 299 return err 300 } 301 } else { 302 out.FieldValidation = "" 303 } 304 return nil 305 } 306 307 // Convert_url_Values_To_v1_CreateOptions is an autogenerated conversion function. 308 func Convert_url_Values_To_v1_CreateOptions(in *url.Values, out *CreateOptions, s conversion.Scope) error { 309 return autoConvert_url_Values_To_v1_CreateOptions(in, out, s) 310 } 311 312 func autoConvert_url_Values_To_v1_DeleteOptions(in *url.Values, out *DeleteOptions, s conversion.Scope) error { 313 // WARNING: Field TypeMeta does not have json tag, skipping. 314 315 if values, ok := map[string][]string(*in)["gracePeriodSeconds"]; ok && len(values) > 0 { 316 if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.GracePeriodSeconds, s); err != nil { 317 return err 318 } 319 } else { 320 out.GracePeriodSeconds = nil 321 } 322 // INFO: in.Preconditions opted out of conversion generation 323 if values, ok := map[string][]string(*in)["orphanDependents"]; ok && len(values) > 0 { 324 if err := runtime.Convert_Slice_string_To_Pointer_bool(&values, &out.OrphanDependents, s); err != nil { 325 return err 326 } 327 } else { 328 out.OrphanDependents = nil 329 } 330 if values, ok := map[string][]string(*in)["propagationPolicy"]; ok && len(values) > 0 { 331 if err := Convert_Slice_string_To_Pointer_v1_DeletionPropagation(&values, &out.PropagationPolicy, s); err != nil { 332 return err 333 } 334 } else { 335 out.PropagationPolicy = nil 336 } 337 if values, ok := map[string][]string(*in)["dryRun"]; ok && len(values) > 0 { 338 out.DryRun = *(*[]string)(unsafe.Pointer(&values)) 339 } else { 340 out.DryRun = nil 341 } 342 return nil 343 } 344 345 func autoConvert_url_Values_To_v1_GetOptions(in *url.Values, out *GetOptions, s conversion.Scope) error { 346 // WARNING: Field TypeMeta does not have json tag, skipping. 347 348 if values, ok := map[string][]string(*in)["resourceVersion"]; ok && len(values) > 0 { 349 if err := runtime.Convert_Slice_string_To_string(&values, &out.ResourceVersion, s); err != nil { 350 return err 351 } 352 } else { 353 out.ResourceVersion = "" 354 } 355 return nil 356 } 357 358 // Convert_url_Values_To_v1_GetOptions is an autogenerated conversion function. 359 func Convert_url_Values_To_v1_GetOptions(in *url.Values, out *GetOptions, s conversion.Scope) error { 360 return autoConvert_url_Values_To_v1_GetOptions(in, out, s) 361 } 362 363 func autoConvert_url_Values_To_v1_ListOptions(in *url.Values, out *ListOptions, s conversion.Scope) error { 364 // WARNING: Field TypeMeta does not have json tag, skipping. 365 366 if values, ok := map[string][]string(*in)["labelSelector"]; ok && len(values) > 0 { 367 if err := runtime.Convert_Slice_string_To_string(&values, &out.LabelSelector, s); err != nil { 368 return err 369 } 370 } else { 371 out.LabelSelector = "" 372 } 373 if values, ok := map[string][]string(*in)["fieldSelector"]; ok && len(values) > 0 { 374 if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldSelector, s); err != nil { 375 return err 376 } 377 } else { 378 out.FieldSelector = "" 379 } 380 if values, ok := map[string][]string(*in)["watch"]; ok && len(values) > 0 { 381 if err := runtime.Convert_Slice_string_To_bool(&values, &out.Watch, s); err != nil { 382 return err 383 } 384 } else { 385 out.Watch = false 386 } 387 if values, ok := map[string][]string(*in)["allowWatchBookmarks"]; ok && len(values) > 0 { 388 if err := runtime.Convert_Slice_string_To_bool(&values, &out.AllowWatchBookmarks, s); err != nil { 389 return err 390 } 391 } else { 392 out.AllowWatchBookmarks = false 393 } 394 if values, ok := map[string][]string(*in)["resourceVersion"]; ok && len(values) > 0 { 395 if err := runtime.Convert_Slice_string_To_string(&values, &out.ResourceVersion, s); err != nil { 396 return err 397 } 398 } else { 399 out.ResourceVersion = "" 400 } 401 if values, ok := map[string][]string(*in)["resourceVersionMatch"]; ok && len(values) > 0 { 402 if err := Convert_Slice_string_To_v1_ResourceVersionMatch(&values, &out.ResourceVersionMatch, s); err != nil { 403 return err 404 } 405 } else { 406 out.ResourceVersionMatch = "" 407 } 408 if values, ok := map[string][]string(*in)["timeoutSeconds"]; ok && len(values) > 0 { 409 if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.TimeoutSeconds, s); err != nil { 410 return err 411 } 412 } else { 413 out.TimeoutSeconds = nil 414 } 415 if values, ok := map[string][]string(*in)["limit"]; ok && len(values) > 0 { 416 if err := runtime.Convert_Slice_string_To_int64(&values, &out.Limit, s); err != nil { 417 return err 418 } 419 } else { 420 out.Limit = 0 421 } 422 if values, ok := map[string][]string(*in)["continue"]; ok && len(values) > 0 { 423 if err := runtime.Convert_Slice_string_To_string(&values, &out.Continue, s); err != nil { 424 return err 425 } 426 } else { 427 out.Continue = "" 428 } 429 return nil 430 } 431 432 // Convert_url_Values_To_v1_ListOptions is an autogenerated conversion function. 433 func Convert_url_Values_To_v1_ListOptions(in *url.Values, out *ListOptions, s conversion.Scope) error { 434 return autoConvert_url_Values_To_v1_ListOptions(in, out, s) 435 } 436 437 func autoConvert_url_Values_To_v1_PatchOptions(in *url.Values, out *PatchOptions, s conversion.Scope) error { 438 // WARNING: Field TypeMeta does not have json tag, skipping. 439 440 if values, ok := map[string][]string(*in)["dryRun"]; ok && len(values) > 0 { 441 out.DryRun = *(*[]string)(unsafe.Pointer(&values)) 442 } else { 443 out.DryRun = nil 444 } 445 if values, ok := map[string][]string(*in)["force"]; ok && len(values) > 0 { 446 if err := runtime.Convert_Slice_string_To_Pointer_bool(&values, &out.Force, s); err != nil { 447 return err 448 } 449 } else { 450 out.Force = nil 451 } 452 if values, ok := map[string][]string(*in)["fieldManager"]; ok && len(values) > 0 { 453 if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldManager, s); err != nil { 454 return err 455 } 456 } else { 457 out.FieldManager = "" 458 } 459 if values, ok := map[string][]string(*in)["fieldValidation"]; ok && len(values) > 0 { 460 if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldValidation, s); err != nil { 461 return err 462 } 463 } else { 464 out.FieldValidation = "" 465 } 466 return nil 467 } 468 469 // Convert_url_Values_To_v1_PatchOptions is an autogenerated conversion function. 470 func Convert_url_Values_To_v1_PatchOptions(in *url.Values, out *PatchOptions, s conversion.Scope) error { 471 return autoConvert_url_Values_To_v1_PatchOptions(in, out, s) 472 } 473 474 func autoConvert_url_Values_To_v1_TableOptions(in *url.Values, out *TableOptions, s conversion.Scope) error { 475 // WARNING: Field TypeMeta does not have json tag, skipping. 476 477 if values, ok := map[string][]string(*in)["-"]; ok && len(values) > 0 { 478 if err := runtime.Convert_Slice_string_To_bool(&values, &out.NoHeaders, s); err != nil { 479 return err 480 } 481 } else { 482 out.NoHeaders = false 483 } 484 if values, ok := map[string][]string(*in)["includeObject"]; ok && len(values) > 0 { 485 if err := Convert_Slice_string_To_v1_IncludeObjectPolicy(&values, &out.IncludeObject, s); err != nil { 486 return err 487 } 488 } else { 489 out.IncludeObject = "" 490 } 491 return nil 492 } 493 494 // Convert_url_Values_To_v1_TableOptions is an autogenerated conversion function. 495 func Convert_url_Values_To_v1_TableOptions(in *url.Values, out *TableOptions, s conversion.Scope) error { 496 return autoConvert_url_Values_To_v1_TableOptions(in, out, s) 497 } 498 499 func autoConvert_url_Values_To_v1_UpdateOptions(in *url.Values, out *UpdateOptions, s conversion.Scope) error { 500 // WARNING: Field TypeMeta does not have json tag, skipping. 501 502 if values, ok := map[string][]string(*in)["dryRun"]; ok && len(values) > 0 { 503 out.DryRun = *(*[]string)(unsafe.Pointer(&values)) 504 } else { 505 out.DryRun = nil 506 } 507 if values, ok := map[string][]string(*in)["fieldManager"]; ok && len(values) > 0 { 508 if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldManager, s); err != nil { 509 return err 510 } 511 } else { 512 out.FieldManager = "" 513 } 514 if values, ok := map[string][]string(*in)["fieldValidation"]; ok && len(values) > 0 { 515 if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldValidation, s); err != nil { 516 return err 517 } 518 } else { 519 out.FieldValidation = "" 520 } 521 return nil 522 } 523 524 // Convert_url_Values_To_v1_UpdateOptions is an autogenerated conversion function. 525 func Convert_url_Values_To_v1_UpdateOptions(in *url.Values, out *UpdateOptions, s conversion.Scope) error { 526 return autoConvert_url_Values_To_v1_UpdateOptions(in, out, s) 527 }