generated from crossplane/upjet-provider-template
/
zz_uplinkhostswitchprofile_types.go
executable file
·409 lines (262 loc) · 12.1 KB
/
zz_uplinkhostswitchprofile_types.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type ActiveObservation struct {
// Name of this uplink
UplinkName *string `json:"uplinkName,omitempty" tf:"uplink_name,omitempty"`
// Type of the uplink
UplinkType *string `json:"uplinkType,omitempty" tf:"uplink_type,omitempty"`
}
type ActiveParameters struct {
// Name of this uplink
// +kubebuilder:validation:Required
UplinkName *string `json:"uplinkName" tf:"uplink_name,omitempty"`
// Type of the uplink
// +kubebuilder:validation:Required
UplinkType *string `json:"uplinkType" tf:"uplink_type,omitempty"`
}
type LagObservation struct {
// unique id
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// LACP load balance Algorithm
LoadBalanceAlgorithm *string `json:"loadBalanceAlgorithm,omitempty" tf:"load_balance_algorithm,omitempty"`
// LACP group mode
Mode *string `json:"mode,omitempty" tf:"mode,omitempty"`
// Lag name
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Number of uplinks
NumberOfUplinks *float64 `json:"numberOfUplinks,omitempty" tf:"number_of_uplinks,omitempty"`
// LACP timeout type
TimeoutType *string `json:"timeoutType,omitempty" tf:"timeout_type,omitempty"`
// uplink names
Uplink []UplinkObservation `json:"uplink,omitempty" tf:"uplink,omitempty"`
}
type LagParameters struct {
// LACP load balance Algorithm
// +kubebuilder:validation:Required
LoadBalanceAlgorithm *string `json:"loadBalanceAlgorithm" tf:"load_balance_algorithm,omitempty"`
// LACP group mode
// +kubebuilder:validation:Required
Mode *string `json:"mode" tf:"mode,omitempty"`
// Lag name
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// Number of uplinks
// +kubebuilder:validation:Required
NumberOfUplinks *float64 `json:"numberOfUplinks" tf:"number_of_uplinks,omitempty"`
// LACP timeout type
// +kubebuilder:validation:Optional
TimeoutType *string `json:"timeoutType,omitempty" tf:"timeout_type,omitempty"`
}
type NamedTeamingObservation struct {
// List of Uplinks used in active list
Active []ActiveObservation `json:"active,omitempty" tf:"active,omitempty"`
// The name of the uplink teaming policy
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Teaming policy
Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`
// List of Uplinks used in standby list
Standby []StandbyObservation `json:"standby,omitempty" tf:"standby,omitempty"`
}
type NamedTeamingParameters struct {
// List of Uplinks used in active list
// +kubebuilder:validation:Required
Active []ActiveParameters `json:"active" tf:"active,omitempty"`
// The name of the uplink teaming policy
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// Teaming policy
// +kubebuilder:validation:Required
Policy *string `json:"policy" tf:"policy,omitempty"`
// List of Uplinks used in standby list
// +kubebuilder:validation:Optional
Standby []StandbyParameters `json:"standby,omitempty" tf:"standby,omitempty"`
}
type StandbyObservation struct {
// Name of this uplink
UplinkName *string `json:"uplinkName,omitempty" tf:"uplink_name,omitempty"`
// Type of the uplink
UplinkType *string `json:"uplinkType,omitempty" tf:"uplink_type,omitempty"`
}
type StandbyParameters struct {
// Name of this uplink
// +kubebuilder:validation:Required
UplinkName *string `json:"uplinkName" tf:"uplink_name,omitempty"`
// Type of the uplink
// +kubebuilder:validation:Required
UplinkType *string `json:"uplinkType" tf:"uplink_type,omitempty"`
}
type TagObservation struct {
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}
type TagParameters struct {
// +kubebuilder:validation:Optional
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
// +kubebuilder:validation:Optional
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}
type TeamingActiveObservation struct {
// Name of this uplink
UplinkName *string `json:"uplinkName,omitempty" tf:"uplink_name,omitempty"`
// Type of the uplink
UplinkType *string `json:"uplinkType,omitempty" tf:"uplink_type,omitempty"`
}
type TeamingActiveParameters struct {
// Name of this uplink
// +kubebuilder:validation:Required
UplinkName *string `json:"uplinkName" tf:"uplink_name,omitempty"`
// Type of the uplink
// +kubebuilder:validation:Required
UplinkType *string `json:"uplinkType" tf:"uplink_type,omitempty"`
}
type TeamingObservation struct {
// List of Uplinks used in active list
Active []TeamingActiveObservation `json:"active,omitempty" tf:"active,omitempty"`
// Teaming policy
Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`
// List of Uplinks used in standby list
Standby []TeamingStandbyObservation `json:"standby,omitempty" tf:"standby,omitempty"`
}
type TeamingParameters struct {
// List of Uplinks used in active list
// +kubebuilder:validation:Required
Active []TeamingActiveParameters `json:"active" tf:"active,omitempty"`
// Teaming policy
// +kubebuilder:validation:Required
Policy *string `json:"policy" tf:"policy,omitempty"`
// List of Uplinks used in standby list
// +kubebuilder:validation:Optional
Standby []TeamingStandbyParameters `json:"standby,omitempty" tf:"standby,omitempty"`
}
type TeamingStandbyObservation struct {
// Name of this uplink
UplinkName *string `json:"uplinkName,omitempty" tf:"uplink_name,omitempty"`
// Type of the uplink
UplinkType *string `json:"uplinkType,omitempty" tf:"uplink_type,omitempty"`
}
type TeamingStandbyParameters struct {
// Name of this uplink
// +kubebuilder:validation:Required
UplinkName *string `json:"uplinkName" tf:"uplink_name,omitempty"`
// Type of the uplink
// +kubebuilder:validation:Required
UplinkType *string `json:"uplinkType" tf:"uplink_type,omitempty"`
}
type UplinkHostSwitchProfileObservation struct {
// Description for this resource
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Display name for this resource
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// List of LACP group
Lag []LagObservation `json:"lag,omitempty" tf:"lag,omitempty"`
// Maximum Transmission Unit used for uplinks
Mtu *float64 `json:"mtu,omitempty" tf:"mtu,omitempty"`
// List of named uplink teaming policies that can be used by logical switches
NamedTeaming []NamedTeamingObservation `json:"namedTeaming,omitempty" tf:"named_teaming,omitempty"`
// NSX ID for this resource
NsxID *string `json:"nsxId,omitempty" tf:"nsx_id,omitempty"`
// The protocol used to encapsulate overlay traffic
OverlayEncap *string `json:"overlayEncap,omitempty" tf:"overlay_encap,omitempty"`
// Policy path for this resource
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Computed ID of the realized object
RealizedID *string `json:"realizedId,omitempty" tf:"realized_id,omitempty"`
// The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
Revision *float64 `json:"revision,omitempty" tf:"revision,omitempty"`
// Set of opaque identifiers meaningful to the user
Tag []TagObservation `json:"tag,omitempty" tf:"tag,omitempty"`
// Default TeamingPolicy associated with this UplinkProfile
Teaming []TeamingObservation `json:"teaming,omitempty" tf:"teaming,omitempty"`
// VLAN used for tagging Overlay traffic of associated HostSwitch
TransportVlan *float64 `json:"transportVlan,omitempty" tf:"transport_vlan,omitempty"`
}
type UplinkHostSwitchProfileParameters struct {
// Description for this resource
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Display name for this resource
// +kubebuilder:validation:Optional
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// List of LACP group
// +kubebuilder:validation:Optional
Lag []LagParameters `json:"lag,omitempty" tf:"lag,omitempty"`
// Maximum Transmission Unit used for uplinks
// +kubebuilder:validation:Optional
Mtu *float64 `json:"mtu,omitempty" tf:"mtu,omitempty"`
// List of named uplink teaming policies that can be used by logical switches
// +kubebuilder:validation:Optional
NamedTeaming []NamedTeamingParameters `json:"namedTeaming,omitempty" tf:"named_teaming,omitempty"`
// NSX ID for this resource
// +kubebuilder:validation:Optional
NsxID *string `json:"nsxId,omitempty" tf:"nsx_id,omitempty"`
// The protocol used to encapsulate overlay traffic
// +kubebuilder:validation:Optional
OverlayEncap *string `json:"overlayEncap,omitempty" tf:"overlay_encap,omitempty"`
// Set of opaque identifiers meaningful to the user
// +kubebuilder:validation:Optional
Tag []TagParameters `json:"tag,omitempty" tf:"tag,omitempty"`
// Default TeamingPolicy associated with this UplinkProfile
// +kubebuilder:validation:Optional
Teaming []TeamingParameters `json:"teaming,omitempty" tf:"teaming,omitempty"`
// VLAN used for tagging Overlay traffic of associated HostSwitch
// +kubebuilder:validation:Optional
TransportVlan *float64 `json:"transportVlan,omitempty" tf:"transport_vlan,omitempty"`
}
type UplinkObservation struct {
UplinkName *string `json:"uplinkName,omitempty" tf:"uplink_name,omitempty"`
UplinkType *string `json:"uplinkType,omitempty" tf:"uplink_type,omitempty"`
}
type UplinkParameters struct {
}
// UplinkHostSwitchProfileSpec defines the desired state of UplinkHostSwitchProfile
type UplinkHostSwitchProfileSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider UplinkHostSwitchProfileParameters `json:"forProvider"`
}
// UplinkHostSwitchProfileStatus defines the observed state of UplinkHostSwitchProfile.
type UplinkHostSwitchProfileStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider UplinkHostSwitchProfileObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// UplinkHostSwitchProfile is the Schema for the UplinkHostSwitchProfiles API. <no value>
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nsxt}
type UplinkHostSwitchProfile struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.displayName)",message="displayName is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.teaming)",message="teaming is a required parameter"
Spec UplinkHostSwitchProfileSpec `json:"spec"`
Status UplinkHostSwitchProfileStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// UplinkHostSwitchProfileList contains a list of UplinkHostSwitchProfiles
type UplinkHostSwitchProfileList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []UplinkHostSwitchProfile `json:"items"`
}
// Repository type metadata.
var (
UplinkHostSwitchProfile_Kind = "UplinkHostSwitchProfile"
UplinkHostSwitchProfile_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: UplinkHostSwitchProfile_Kind}.String()
UplinkHostSwitchProfile_KindAPIVersion = UplinkHostSwitchProfile_Kind + "." + CRDGroupVersion.String()
UplinkHostSwitchProfile_GroupVersionKind = CRDGroupVersion.WithKind(UplinkHostSwitchProfile_Kind)
)
func init() {
SchemeBuilder.Register(&UplinkHostSwitchProfile{}, &UplinkHostSwitchProfileList{})
}