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