uncountedterminatedpods.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. types "k8s.io/apimachinery/pkg/types"
  17. )
  18. // UncountedTerminatedPodsApplyConfiguration represents an declarative configuration of the UncountedTerminatedPods type for use
  19. // with apply.
  20. type UncountedTerminatedPodsApplyConfiguration struct {
  21. Succeeded []types.UID `json:"succeeded,omitempty"`
  22. Failed []types.UID `json:"failed,omitempty"`
  23. }
  24. // UncountedTerminatedPodsApplyConfiguration constructs an declarative configuration of the UncountedTerminatedPods type for use with
  25. // apply.
  26. func UncountedTerminatedPods() *UncountedTerminatedPodsApplyConfiguration {
  27. return &UncountedTerminatedPodsApplyConfiguration{}
  28. }
  29. // WithSucceeded adds the given value to the Succeeded field in the declarative configuration
  30. // and returns the receiver, so that objects can be build by chaining "With" function invocations.
  31. // If called multiple times, values provided by each call will be appended to the Succeeded field.
  32. func (b *UncountedTerminatedPodsApplyConfiguration) WithSucceeded(values ...types.UID) *UncountedTerminatedPodsApplyConfiguration {
  33. for i := range values {
  34. b.Succeeded = append(b.Succeeded, values[i])
  35. }
  36. return b
  37. }
  38. // WithFailed adds the given value to the Failed field in the declarative configuration
  39. // and returns the receiver, so that objects can be build by chaining "With" function invocations.
  40. // If called multiple times, values provided by each call will be appended to the Failed field.
  41. func (b *UncountedTerminatedPodsApplyConfiguration) WithFailed(values ...types.UID) *UncountedTerminatedPodsApplyConfiguration {
  42. for i := range values {
  43. b.Failed = append(b.Failed, values[i])
  44. }
  45. return b
  46. }