88 lines
3.9 KiB
Go
88 lines
3.9 KiB
Go
/*
|
|
Copyright The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package v1alpha3
|
|
|
|
import (
|
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
|
)
|
|
|
|
// ResourcePoolStatusRequestStatusApplyConfiguration represents a declarative configuration of the ResourcePoolStatusRequestStatus type for use
|
|
// with apply.
|
|
//
|
|
// ResourcePoolStatusRequestStatus contains the calculated pool status information.
|
|
type ResourcePoolStatusRequestStatusApplyConfiguration struct {
|
|
// PoolCount is the total number of pools that matched the filter criteria,
|
|
// regardless of truncation. This helps users understand how many pools exist
|
|
// even when the response is truncated. A value of 0 means no pools matched
|
|
// the filter criteria.
|
|
PoolCount *int32 `json:"poolCount,omitempty"`
|
|
// Pools contains the first `spec.limit` matching pools, sorted by driver
|
|
// then pool name. If `len(pools) < poolCount`, the list was truncated.
|
|
// When omitted, no pools matched the request filters.
|
|
Pools []PoolStatusApplyConfiguration `json:"pools,omitempty"`
|
|
// Conditions provide information about the state of the request.
|
|
// A condition with type=Complete or type=Failed will always be set
|
|
// when the status is populated.
|
|
//
|
|
// Known condition types:
|
|
// - "Complete": True when the request has been processed successfully
|
|
// - "Failed": True when the request could not be processed
|
|
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
|
}
|
|
|
|
// ResourcePoolStatusRequestStatusApplyConfiguration constructs a declarative configuration of the ResourcePoolStatusRequestStatus type for use with
|
|
// apply.
|
|
func ResourcePoolStatusRequestStatus() *ResourcePoolStatusRequestStatusApplyConfiguration {
|
|
return &ResourcePoolStatusRequestStatusApplyConfiguration{}
|
|
}
|
|
|
|
// WithPoolCount sets the PoolCount 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 PoolCount field is set to the value of the last call.
|
|
func (b *ResourcePoolStatusRequestStatusApplyConfiguration) WithPoolCount(value int32) *ResourcePoolStatusRequestStatusApplyConfiguration {
|
|
b.PoolCount = &value
|
|
return b
|
|
}
|
|
|
|
// WithPools adds the given value to the Pools field in the declarative configuration
|
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
|
// If called multiple times, values provided by each call will be appended to the Pools field.
|
|
func (b *ResourcePoolStatusRequestStatusApplyConfiguration) WithPools(values ...*PoolStatusApplyConfiguration) *ResourcePoolStatusRequestStatusApplyConfiguration {
|
|
for i := range values {
|
|
if values[i] == nil {
|
|
panic("nil value passed to WithPools")
|
|
}
|
|
b.Pools = append(b.Pools, *values[i])
|
|
}
|
|
return b
|
|
}
|
|
|
|
// WithConditions adds the given value to the Conditions field in the declarative configuration
|
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
|
// If called multiple times, values provided by each call will be appended to the Conditions field.
|
|
func (b *ResourcePoolStatusRequestStatusApplyConfiguration) WithConditions(values ...*v1.ConditionApplyConfiguration) *ResourcePoolStatusRequestStatusApplyConfiguration {
|
|
for i := range values {
|
|
if values[i] == nil {
|
|
panic("nil value passed to WithConditions")
|
|
}
|
|
b.Conditions = append(b.Conditions, *values[i])
|
|
}
|
|
return b
|
|
}
|