...
1
16
17
18
19 package v1beta1
20
21 import (
22 apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
23 )
24
25
26
27 type CustomResourceDefinitionSpecApplyConfiguration struct {
28 Group *string `json:"group,omitempty"`
29 Version *string `json:"version,omitempty"`
30 Names *CustomResourceDefinitionNamesApplyConfiguration `json:"names,omitempty"`
31 Scope *apiextensionsv1beta1.ResourceScope `json:"scope,omitempty"`
32 Validation *CustomResourceValidationApplyConfiguration `json:"validation,omitempty"`
33 Subresources *CustomResourceSubresourcesApplyConfiguration `json:"subresources,omitempty"`
34 Versions []CustomResourceDefinitionVersionApplyConfiguration `json:"versions,omitempty"`
35 AdditionalPrinterColumns []CustomResourceColumnDefinitionApplyConfiguration `json:"additionalPrinterColumns,omitempty"`
36 SelectableFields []SelectableFieldApplyConfiguration `json:"selectableFields,omitempty"`
37 Conversion *CustomResourceConversionApplyConfiguration `json:"conversion,omitempty"`
38 PreserveUnknownFields *bool `json:"preserveUnknownFields,omitempty"`
39 }
40
41
42
43 func CustomResourceDefinitionSpec() *CustomResourceDefinitionSpecApplyConfiguration {
44 return &CustomResourceDefinitionSpecApplyConfiguration{}
45 }
46
47
48
49
50 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithGroup(value string) *CustomResourceDefinitionSpecApplyConfiguration {
51 b.Group = &value
52 return b
53 }
54
55
56
57
58 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithVersion(value string) *CustomResourceDefinitionSpecApplyConfiguration {
59 b.Version = &value
60 return b
61 }
62
63
64
65
66 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithNames(value *CustomResourceDefinitionNamesApplyConfiguration) *CustomResourceDefinitionSpecApplyConfiguration {
67 b.Names = value
68 return b
69 }
70
71
72
73
74 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithScope(value apiextensionsv1beta1.ResourceScope) *CustomResourceDefinitionSpecApplyConfiguration {
75 b.Scope = &value
76 return b
77 }
78
79
80
81
82 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithValidation(value *CustomResourceValidationApplyConfiguration) *CustomResourceDefinitionSpecApplyConfiguration {
83 b.Validation = value
84 return b
85 }
86
87
88
89
90 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithSubresources(value *CustomResourceSubresourcesApplyConfiguration) *CustomResourceDefinitionSpecApplyConfiguration {
91 b.Subresources = value
92 return b
93 }
94
95
96
97
98 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithVersions(values ...*CustomResourceDefinitionVersionApplyConfiguration) *CustomResourceDefinitionSpecApplyConfiguration {
99 for i := range values {
100 if values[i] == nil {
101 panic("nil value passed to WithVersions")
102 }
103 b.Versions = append(b.Versions, *values[i])
104 }
105 return b
106 }
107
108
109
110
111 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithAdditionalPrinterColumns(values ...*CustomResourceColumnDefinitionApplyConfiguration) *CustomResourceDefinitionSpecApplyConfiguration {
112 for i := range values {
113 if values[i] == nil {
114 panic("nil value passed to WithAdditionalPrinterColumns")
115 }
116 b.AdditionalPrinterColumns = append(b.AdditionalPrinterColumns, *values[i])
117 }
118 return b
119 }
120
121
122
123
124 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithSelectableFields(values ...*SelectableFieldApplyConfiguration) *CustomResourceDefinitionSpecApplyConfiguration {
125 for i := range values {
126 if values[i] == nil {
127 panic("nil value passed to WithSelectableFields")
128 }
129 b.SelectableFields = append(b.SelectableFields, *values[i])
130 }
131 return b
132 }
133
134
135
136
137 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithConversion(value *CustomResourceConversionApplyConfiguration) *CustomResourceDefinitionSpecApplyConfiguration {
138 b.Conversion = value
139 return b
140 }
141
142
143
144
145 func (b *CustomResourceDefinitionSpecApplyConfiguration) WithPreserveUnknownFields(value bool) *CustomResourceDefinitionSpecApplyConfiguration {
146 b.PreserveUnknownFields = &value
147 return b
148 }
149
View as plain text