diff --git a/applyconfigurations/internal/internal.go b/applyconfigurations/internal/internal.go index 4c6dbd01..f14cc835 100644 --- a/applyconfigurations/internal/internal.go +++ b/applyconfigurations/internal/internal.go @@ -12821,7 +12821,7 @@ var schemaYAML = typed.YAMLObject(`types: - name: io.k8s.api.resource.v1beta1.DeviceCapacity map: fields: - - name: quantity + - name: value type: namedType: io.k8s.apimachinery.pkg.api.resource.Quantity - name: io.k8s.api.resource.v1beta1.DeviceClaim diff --git a/applyconfigurations/resource/v1beta1/devicecapacity.go b/applyconfigurations/resource/v1beta1/devicecapacity.go index 89c61b12..dcb3504b 100644 --- a/applyconfigurations/resource/v1beta1/devicecapacity.go +++ b/applyconfigurations/resource/v1beta1/devicecapacity.go @@ -25,7 +25,7 @@ import ( // DeviceCapacityApplyConfiguration represents a declarative configuration of the DeviceCapacity type for use // with apply. type DeviceCapacityApplyConfiguration struct { - Quantity *resource.Quantity `json:"quantity,omitempty"` + Value *resource.Quantity `json:"value,omitempty"` } // DeviceCapacityApplyConfiguration constructs a declarative configuration of the DeviceCapacity type for use with @@ -34,10 +34,10 @@ func DeviceCapacity() *DeviceCapacityApplyConfiguration { return &DeviceCapacityApplyConfiguration{} } -// WithQuantity sets the Quantity field in the declarative configuration to the given value +// WithValue sets the Value field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Quantity field is set to the value of the last call. -func (b *DeviceCapacityApplyConfiguration) WithQuantity(value resource.Quantity) *DeviceCapacityApplyConfiguration { - b.Quantity = &value +// If called multiple times, the Value field is set to the value of the last call. +func (b *DeviceCapacityApplyConfiguration) WithValue(value resource.Quantity) *DeviceCapacityApplyConfiguration { + b.Value = &value return b }