daemonsetstatus.go 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. // DaemonSetStatusApplyConfiguration represents an declarative configuration of the DaemonSetStatus type for use
  16. // with apply.
  17. type DaemonSetStatusApplyConfiguration struct {
  18. CurrentNumberScheduled *int32 `json:"currentNumberScheduled,omitempty"`
  19. NumberMisscheduled *int32 `json:"numberMisscheduled,omitempty"`
  20. DesiredNumberScheduled *int32 `json:"desiredNumberScheduled,omitempty"`
  21. NumberReady *int32 `json:"numberReady,omitempty"`
  22. ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
  23. UpdatedNumberScheduled *int32 `json:"updatedNumberScheduled,omitempty"`
  24. NumberAvailable *int32 `json:"numberAvailable,omitempty"`
  25. NumberUnavailable *int32 `json:"numberUnavailable,omitempty"`
  26. CollisionCount *int32 `json:"collisionCount,omitempty"`
  27. Conditions []DaemonSetConditionApplyConfiguration `json:"conditions,omitempty"`
  28. }
  29. // DaemonSetStatusApplyConfiguration constructs an declarative configuration of the DaemonSetStatus type for use with
  30. // apply.
  31. func DaemonSetStatus() *DaemonSetStatusApplyConfiguration {
  32. return &DaemonSetStatusApplyConfiguration{}
  33. }
  34. // WithCurrentNumberScheduled sets the CurrentNumberScheduled 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 CurrentNumberScheduled field is set to the value of the last call.
  37. func (b *DaemonSetStatusApplyConfiguration) WithCurrentNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration {
  38. b.CurrentNumberScheduled = &value
  39. return b
  40. }
  41. // WithNumberMisscheduled sets the NumberMisscheduled 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 NumberMisscheduled field is set to the value of the last call.
  44. func (b *DaemonSetStatusApplyConfiguration) WithNumberMisscheduled(value int32) *DaemonSetStatusApplyConfiguration {
  45. b.NumberMisscheduled = &value
  46. return b
  47. }
  48. // WithDesiredNumberScheduled sets the DesiredNumberScheduled 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 DesiredNumberScheduled field is set to the value of the last call.
  51. func (b *DaemonSetStatusApplyConfiguration) WithDesiredNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration {
  52. b.DesiredNumberScheduled = &value
  53. return b
  54. }
  55. // WithNumberReady sets the NumberReady 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 NumberReady field is set to the value of the last call.
  58. func (b *DaemonSetStatusApplyConfiguration) WithNumberReady(value int32) *DaemonSetStatusApplyConfiguration {
  59. b.NumberReady = &value
  60. return b
  61. }
  62. // WithObservedGeneration sets the ObservedGeneration 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 ObservedGeneration field is set to the value of the last call.
  65. func (b *DaemonSetStatusApplyConfiguration) WithObservedGeneration(value int64) *DaemonSetStatusApplyConfiguration {
  66. b.ObservedGeneration = &value
  67. return b
  68. }
  69. // WithUpdatedNumberScheduled sets the UpdatedNumberScheduled 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 UpdatedNumberScheduled field is set to the value of the last call.
  72. func (b *DaemonSetStatusApplyConfiguration) WithUpdatedNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration {
  73. b.UpdatedNumberScheduled = &value
  74. return b
  75. }
  76. // WithNumberAvailable sets the NumberAvailable 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 NumberAvailable field is set to the value of the last call.
  79. func (b *DaemonSetStatusApplyConfiguration) WithNumberAvailable(value int32) *DaemonSetStatusApplyConfiguration {
  80. b.NumberAvailable = &value
  81. return b
  82. }
  83. // WithNumberUnavailable sets the NumberUnavailable 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 NumberUnavailable field is set to the value of the last call.
  86. func (b *DaemonSetStatusApplyConfiguration) WithNumberUnavailable(value int32) *DaemonSetStatusApplyConfiguration {
  87. b.NumberUnavailable = &value
  88. return b
  89. }
  90. // WithCollisionCount sets the CollisionCount field in the declarative configuration to the given value
  91. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
  92. // If called multiple times, the CollisionCount field is set to the value of the last call.
  93. func (b *DaemonSetStatusApplyConfiguration) WithCollisionCount(value int32) *DaemonSetStatusApplyConfiguration {
  94. b.CollisionCount = &value
  95. return b
  96. }
  97. // WithConditions adds the given value to the Conditions field in the declarative configuration
  98. // and returns the receiver, so that objects can be build by chaining "With" function invocations.
  99. // If called multiple times, values provided by each call will be appended to the Conditions field.
  100. func (b *DaemonSetStatusApplyConfiguration) WithConditions(values ...*DaemonSetConditionApplyConfiguration) *DaemonSetStatusApplyConfiguration {
  101. for i := range values {
  102. if values[i] == nil {
  103. panic("nil value passed to WithConditions")
  104. }
  105. b.Conditions = append(b.Conditions, *values[i])
  106. }
  107. return b
  108. }