managedfieldsentry.go 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by applyconfiguration-gen. DO NOT EDIT.
  14. package v1
  15. import (
  16. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  17. )
  18. // ManagedFieldsEntryApplyConfiguration represents an declarative configuration of the ManagedFieldsEntry type for use
  19. // with apply.
  20. type ManagedFieldsEntryApplyConfiguration struct {
  21. Manager *string `json:"manager,omitempty"`
  22. Operation *v1.ManagedFieldsOperationType `json:"operation,omitempty"`
  23. APIVersion *string `json:"apiVersion,omitempty"`
  24. Time *v1.Time `json:"time,omitempty"`
  25. FieldsType *string `json:"fieldsType,omitempty"`
  26. FieldsV1 *v1.FieldsV1 `json:"fieldsV1,omitempty"`
  27. }
  28. // ManagedFieldsEntryApplyConfiguration constructs an declarative configuration of the ManagedFieldsEntry type for use with
  29. // apply.
  30. func ManagedFieldsEntry() *ManagedFieldsEntryApplyConfiguration {
  31. return &ManagedFieldsEntryApplyConfiguration{}
  32. }
  33. // WithManager sets the Manager field in the declarative configuration to the given value
  34. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  35. // If called multiple times, the Manager field is set to the value of the last call.
  36. func (b *ManagedFieldsEntryApplyConfiguration) WithManager(value string) *ManagedFieldsEntryApplyConfiguration {
  37. b.Manager = &value
  38. return b
  39. }
  40. // WithOperation sets the Operation field in the declarative configuration to the given value
  41. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  42. // If called multiple times, the Operation field is set to the value of the last call.
  43. func (b *ManagedFieldsEntryApplyConfiguration) WithOperation(value v1.ManagedFieldsOperationType) *ManagedFieldsEntryApplyConfiguration {
  44. b.Operation = &value
  45. return b
  46. }
  47. // WithAPIVersion sets the APIVersion field in the declarative configuration to the given value
  48. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  49. // If called multiple times, the APIVersion field is set to the value of the last call.
  50. func (b *ManagedFieldsEntryApplyConfiguration) WithAPIVersion(value string) *ManagedFieldsEntryApplyConfiguration {
  51. b.APIVersion = &value
  52. return b
  53. }
  54. // WithTime sets the Time field in the declarative configuration to the given value
  55. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  56. // If called multiple times, the Time field is set to the value of the last call.
  57. func (b *ManagedFieldsEntryApplyConfiguration) WithTime(value v1.Time) *ManagedFieldsEntryApplyConfiguration {
  58. b.Time = &value
  59. return b
  60. }
  61. // WithFieldsType sets the FieldsType field in the declarative configuration to the given value
  62. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  63. // If called multiple times, the FieldsType field is set to the value of the last call.
  64. func (b *ManagedFieldsEntryApplyConfiguration) WithFieldsType(value string) *ManagedFieldsEntryApplyConfiguration {
  65. b.FieldsType = &value
  66. return b
  67. }
  68. // WithFieldsV1 sets the FieldsV1 field in the declarative configuration to the given value
  69. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  70. // If called multiple times, the FieldsV1 field is set to the value of the last call.
  71. func (b *ManagedFieldsEntryApplyConfiguration) WithFieldsV1(value v1.FieldsV1) *ManagedFieldsEntryApplyConfiguration {
  72. b.FieldsV1 = &value
  73. return b
  74. }