-
Notifications
You must be signed in to change notification settings - Fork 142
/
gatherconfig.go
38 lines (32 loc) · 1.61 KB
/
gatherconfig.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
import (
v1alpha1 "github.com/openshift/api/config/v1alpha1"
)
// GatherConfigApplyConfiguration represents an declarative configuration of the GatherConfig type for use
// with apply.
type GatherConfigApplyConfiguration struct {
DataPolicy *v1alpha1.DataPolicy `json:"dataPolicy,omitempty"`
DisabledGatherers []string `json:"disabledGatherers,omitempty"`
}
// GatherConfigApplyConfiguration constructs an declarative configuration of the GatherConfig type for use with
// apply.
func GatherConfig() *GatherConfigApplyConfiguration {
return &GatherConfigApplyConfiguration{}
}
// WithDataPolicy sets the DataPolicy 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 DataPolicy field is set to the value of the last call.
func (b *GatherConfigApplyConfiguration) WithDataPolicy(value v1alpha1.DataPolicy) *GatherConfigApplyConfiguration {
b.DataPolicy = &value
return b
}
// WithDisabledGatherers adds the given value to the DisabledGatherers 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 DisabledGatherers field.
func (b *GatherConfigApplyConfiguration) WithDisabledGatherers(values ...string) *GatherConfigApplyConfiguration {
for i := range values {
b.DisabledGatherers = append(b.DisabledGatherers, values[i])
}
return b
}