managedfieldsentry.go 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. Subresource *string `json:"subresource,omitempty"`
  28. }
  29. // ManagedFieldsEntryApplyConfiguration constructs an declarative configuration of the ManagedFieldsEntry type for use with
  30. // apply.
  31. func ManagedFieldsEntry() *ManagedFieldsEntryApplyConfiguration {
  32. return &ManagedFieldsEntryApplyConfiguration{}
  33. }
  34. // WithManager sets the Manager field in the declarative configuration to the given value
  35. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  36. // If called multiple times, the Manager field is set to the value of the last call.
  37. func (b *ManagedFieldsEntryApplyConfiguration) WithManager(value string) *ManagedFieldsEntryApplyConfiguration {
  38. b.Manager = &value
  39. return b
  40. }
  41. // WithOperation sets the Operation field in the declarative configuration to the given value
  42. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  43. // If called multiple times, the Operation field is set to the value of the last call.
  44. func (b *ManagedFieldsEntryApplyConfiguration) WithOperation(value v1.ManagedFieldsOperationType) *ManagedFieldsEntryApplyConfiguration {
  45. b.Operation = &value
  46. return b
  47. }
  48. // WithAPIVersion sets the APIVersion field in the declarative configuration to the given value
  49. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  50. // If called multiple times, the APIVersion field is set to the value of the last call.
  51. func (b *ManagedFieldsEntryApplyConfiguration) WithAPIVersion(value string) *ManagedFieldsEntryApplyConfiguration {
  52. b.APIVersion = &value
  53. return b
  54. }
  55. // WithTime sets the Time field in the declarative configuration to the given value
  56. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  57. // If called multiple times, the Time field is set to the value of the last call.
  58. func (b *ManagedFieldsEntryApplyConfiguration) WithTime(value v1.Time) *ManagedFieldsEntryApplyConfiguration {
  59. b.Time = &value
  60. return b
  61. }
  62. // WithFieldsType sets the FieldsType field in the declarative configuration to the given value
  63. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  64. // If called multiple times, the FieldsType field is set to the value of the last call.
  65. func (b *ManagedFieldsEntryApplyConfiguration) WithFieldsType(value string) *ManagedFieldsEntryApplyConfiguration {
  66. b.FieldsType = &value
  67. return b
  68. }
  69. // WithFieldsV1 sets the FieldsV1 field in the declarative configuration to the given value
  70. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  71. // If called multiple times, the FieldsV1 field is set to the value of the last call.
  72. func (b *ManagedFieldsEntryApplyConfiguration) WithFieldsV1(value v1.FieldsV1) *ManagedFieldsEntryApplyConfiguration {
  73. b.FieldsV1 = &value
  74. return b
  75. }
  76. // WithSubresource sets the Subresource field in the declarative configuration to the given value
  77. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  78. // If called multiple times, the Subresource field is set to the value of the last call.
  79. func (b *ManagedFieldsEntryApplyConfiguration) WithSubresource(value string) *ManagedFieldsEntryApplyConfiguration {
  80. b.Subresource = &value
  81. return b
  82. }