generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_policytier0gateway_types.go
executable file
·643 lines (457 loc) · 24.7 KB
/
zz_policytier0gateway_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
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
/*
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 BGPConfigObservation struct {
// Flag to enable ECMP
Ecmp *bool `json:"ecmp,omitempty" tf:"ecmp,omitempty"`
// Flag to enable BGP configuration
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// BGP Graceful Restart Configuration Mode
GracefulRestartMode *string `json:"gracefulRestartMode,omitempty" tf:"graceful_restart_mode,omitempty"`
// BGP Stale Route Timer
GracefulRestartStaleRouteTimer *float64 `json:"gracefulRestartStaleRouteTimer,omitempty" tf:"graceful_restart_stale_route_timer,omitempty"`
// BGP Graceful Restart Timer
GracefulRestartTimer *float64 `json:"gracefulRestartTimer,omitempty" tf:"graceful_restart_timer,omitempty"`
// Enable inter SR IBGP configuration
InterSrIbgp *bool `json:"interSrIbgp,omitempty" tf:"inter_sr_ibgp,omitempty"`
// BGP AS number in ASPLAIN/ASDOT Format
LocalAsNum *string `json:"localAsNum,omitempty" tf:"local_as_num,omitempty"`
// Flag to enable BGP multipath relax option
MultipathRelax *bool `json:"multipathRelax,omitempty" tf:"multipath_relax,omitempty"`
// Policy path for this resource
Path *string `json:"path,omitempty" tf:"path,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"`
// List of routes to be aggregated
RouteAggregation []BGPConfigRouteAggregationObservation `json:"routeAggregation,omitempty" tf:"route_aggregation,omitempty"`
// Set of opaque identifiers meaningful to the user
Tag []BGPConfigTagObservation `json:"tag,omitempty" tf:"tag,omitempty"`
}
type BGPConfigParameters struct {
// Flag to enable ECMP
// +kubebuilder:validation:Optional
Ecmp *bool `json:"ecmp,omitempty" tf:"ecmp,omitempty"`
// Flag to enable BGP configuration
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// BGP Graceful Restart Configuration Mode
// +kubebuilder:validation:Optional
GracefulRestartMode *string `json:"gracefulRestartMode,omitempty" tf:"graceful_restart_mode,omitempty"`
// BGP Stale Route Timer
// +kubebuilder:validation:Optional
GracefulRestartStaleRouteTimer *float64 `json:"gracefulRestartStaleRouteTimer,omitempty" tf:"graceful_restart_stale_route_timer,omitempty"`
// BGP Graceful Restart Timer
// +kubebuilder:validation:Optional
GracefulRestartTimer *float64 `json:"gracefulRestartTimer,omitempty" tf:"graceful_restart_timer,omitempty"`
// Enable inter SR IBGP configuration
// +kubebuilder:validation:Optional
InterSrIbgp *bool `json:"interSrIbgp,omitempty" tf:"inter_sr_ibgp,omitempty"`
// BGP AS number in ASPLAIN/ASDOT Format
// +kubebuilder:validation:Optional
LocalAsNum *string `json:"localAsNum,omitempty" tf:"local_as_num,omitempty"`
// Flag to enable BGP multipath relax option
// +kubebuilder:validation:Optional
MultipathRelax *bool `json:"multipathRelax,omitempty" tf:"multipath_relax,omitempty"`
// List of routes to be aggregated
// +kubebuilder:validation:Optional
RouteAggregation []BGPConfigRouteAggregationParameters `json:"routeAggregation,omitempty" tf:"route_aggregation,omitempty"`
// Set of opaque identifiers meaningful to the user
// +kubebuilder:validation:Optional
Tag []BGPConfigTagParameters `json:"tag,omitempty" tf:"tag,omitempty"`
}
type BGPConfigRouteAggregationObservation struct {
// CIDR of aggregate address
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Send only summarized route
SummaryOnly *bool `json:"summaryOnly,omitempty" tf:"summary_only,omitempty"`
}
type BGPConfigRouteAggregationParameters struct {
// CIDR of aggregate address
// +kubebuilder:validation:Optional
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Send only summarized route
// +kubebuilder:validation:Optional
SummaryOnly *bool `json:"summaryOnly,omitempty" tf:"summary_only,omitempty"`
}
type BGPConfigTagObservation struct {
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}
type BGPConfigTagParameters struct {
// +kubebuilder:validation:Optional
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
// +kubebuilder:validation:Optional
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}
type IntersiteConfigObservation struct {
// Fallback sites to be used as new primary site on current primary site failure
FallbackSitePaths []*string `json:"fallbackSitePaths,omitempty" tf:"fallback_site_paths,omitempty"`
// Primary egress site for gateway
PrimarySitePath *string `json:"primarySitePath,omitempty" tf:"primary_site_path,omitempty"`
// IPv4 subnet for inter-site transit segment connecting service routers across sites for stretched gateway. For IPv6 link local subnet is auto configured
TransitSubnet *string `json:"transitSubnet,omitempty" tf:"transit_subnet,omitempty"`
}
type IntersiteConfigParameters struct {
// Fallback sites to be used as new primary site on current primary site failure
// +kubebuilder:validation:Optional
FallbackSitePaths []*string `json:"fallbackSitePaths,omitempty" tf:"fallback_site_paths,omitempty"`
// Primary egress site for gateway
// +kubebuilder:validation:Optional
PrimarySitePath *string `json:"primarySitePath,omitempty" tf:"primary_site_path,omitempty"`
// IPv4 subnet for inter-site transit segment connecting service routers across sites for stretched gateway. For IPv6 link local subnet is auto configured
// +kubebuilder:validation:Optional
TransitSubnet *string `json:"transitSubnet,omitempty" tf:"transit_subnet,omitempty"`
}
type LocaleServiceObservation struct {
// Display name for this resource
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// The path of the edge cluster connected to this gateway
EdgeClusterPath *string `json:"edgeClusterPath,omitempty" tf:"edge_cluster_path,omitempty"`
// Policy path for this resource
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Paths of specific edge nodes
PreferredEdgePaths []*string `json:"preferredEdgePaths,omitempty" tf:"preferred_edge_paths,omitempty"`
// Route Redistribution configuration
RedistributionConfig []RedistributionConfigObservation `json:"redistributionConfig,omitempty" tf:"redistribution_config,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"`
}
type LocaleServiceParameters struct {
// The path of the edge cluster connected to this gateway
// +kubebuilder:validation:Required
EdgeClusterPath *string `json:"edgeClusterPath" tf:"edge_cluster_path,omitempty"`
// Paths of specific edge nodes
// +kubebuilder:validation:Optional
PreferredEdgePaths []*string `json:"preferredEdgePaths,omitempty" tf:"preferred_edge_paths,omitempty"`
// Route Redistribution configuration
// +kubebuilder:validation:Optional
RedistributionConfig []RedistributionConfigParameters `json:"redistributionConfig,omitempty" tf:"redistribution_config,omitempty"`
}
type PolicyTier0GatewayObservation struct {
// BGP routing configuration
BGPConfig []BGPConfigObservation `json:"bgpConfig,omitempty" tf:"bgp_config,omitempty"`
// Policy path to DHCP server or relay configuration to use for this Tier0
DHCPConfigPath *string `json:"dhcpConfigPath,omitempty" tf:"dhcp_config_path,omitempty"`
// Default rule logging
DefaultRuleLogging *bool `json:"defaultRuleLogging,omitempty" tf:"default_rule_logging,omitempty"`
// 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"`
// The path of the edge cluster connected to this gateway
EdgeClusterPath *string `json:"edgeClusterPath,omitempty" tf:"edge_cluster_path,omitempty"`
// Enable edge firewall
EnableFirewall *bool `json:"enableFirewall,omitempty" tf:"enable_firewall,omitempty"`
// Failover mode
FailoverMode *string `json:"failoverMode,omitempty" tf:"failover_mode,omitempty"`
// Force whitelisting
ForceWhitelisting *bool `json:"forceWhitelisting,omitempty" tf:"force_whitelisting,omitempty"`
// High-availability Mode for Tier-0
HaMode *string `json:"haMode,omitempty" tf:"ha_mode,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The path of an IPv6 DAD profile
IPv6DadProfilePath *string `json:"ipv6DadProfilePath,omitempty" tf:"ipv6_dad_profile_path,omitempty"`
// The path of an IPv6 NDRA profile
IPv6NdraProfilePath *string `json:"ipv6NdraProfilePath,omitempty" tf:"ipv6_ndra_profile_path,omitempty"`
// Internal transit subnets in CIDR format
InternalTransitSubnets []*string `json:"internalTransitSubnets,omitempty" tf:"internal_transit_subnets,omitempty"`
// Locale Service for the gateway
IntersiteConfig []IntersiteConfigObservation `json:"intersiteConfig,omitempty" tf:"intersite_config,omitempty"`
// Locale Service for the gateway
LocaleService []LocaleServiceObservation `json:"localeService,omitempty" tf:"locale_service,omitempty"`
// NSX ID for this resource
NsxID *string `json:"nsxId,omitempty" tf:"nsx_id,omitempty"`
// Policy path for this resource
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Route distinguisher administrator address
RdAdminAddress *string `json:"rdAdminAddress,omitempty" tf:"rd_admin_address,omitempty"`
// Route Redistribution configuration
RedistributionConfig []PolicyTier0GatewayRedistributionConfigObservation `json:"redistributionConfig,omitempty" tf:"redistribution_config,omitempty"`
// Internal flag to indicate whether legacy redistribution config is used
RedistributionSet *bool `json:"redistributionSet,omitempty" tf:"redistribution_set,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 []PolicyTier0GatewayTagObservation `json:"tag,omitempty" tf:"tag,omitempty"`
// Transit subnets in CIDR format
TransitSubnets []*string `json:"transitSubnets,omitempty" tf:"transit_subnets,omitempty"`
// VRF configuration
VrfConfig []VrfConfigObservation `json:"vrfConfig,omitempty" tf:"vrf_config,omitempty"`
}
type PolicyTier0GatewayParameters struct {
// BGP routing configuration
// +kubebuilder:validation:Optional
BGPConfig []BGPConfigParameters `json:"bgpConfig,omitempty" tf:"bgp_config,omitempty"`
// Policy path to DHCP server or relay configuration to use for this Tier0
// +kubebuilder:validation:Optional
DHCPConfigPath *string `json:"dhcpConfigPath,omitempty" tf:"dhcp_config_path,omitempty"`
// Default rule logging
// +kubebuilder:validation:Optional
DefaultRuleLogging *bool `json:"defaultRuleLogging,omitempty" tf:"default_rule_logging,omitempty"`
// 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"`
// The path of the edge cluster connected to this gateway
// +kubebuilder:validation:Optional
EdgeClusterPath *string `json:"edgeClusterPath,omitempty" tf:"edge_cluster_path,omitempty"`
// Enable edge firewall
// +kubebuilder:validation:Optional
EnableFirewall *bool `json:"enableFirewall,omitempty" tf:"enable_firewall,omitempty"`
// Failover mode
// +kubebuilder:validation:Optional
FailoverMode *string `json:"failoverMode,omitempty" tf:"failover_mode,omitempty"`
// Force whitelisting
// +kubebuilder:validation:Optional
ForceWhitelisting *bool `json:"forceWhitelisting,omitempty" tf:"force_whitelisting,omitempty"`
// High-availability Mode for Tier-0
// +kubebuilder:validation:Optional
HaMode *string `json:"haMode,omitempty" tf:"ha_mode,omitempty"`
// The path of an IPv6 DAD profile
// +kubebuilder:validation:Optional
IPv6DadProfilePath *string `json:"ipv6DadProfilePath,omitempty" tf:"ipv6_dad_profile_path,omitempty"`
// The path of an IPv6 NDRA profile
// +kubebuilder:validation:Optional
IPv6NdraProfilePath *string `json:"ipv6NdraProfilePath,omitempty" tf:"ipv6_ndra_profile_path,omitempty"`
// Internal transit subnets in CIDR format
// +kubebuilder:validation:Optional
InternalTransitSubnets []*string `json:"internalTransitSubnets,omitempty" tf:"internal_transit_subnets,omitempty"`
// Locale Service for the gateway
// +kubebuilder:validation:Optional
IntersiteConfig []IntersiteConfigParameters `json:"intersiteConfig,omitempty" tf:"intersite_config,omitempty"`
// Locale Service for the gateway
// +kubebuilder:validation:Optional
LocaleService []LocaleServiceParameters `json:"localeService,omitempty" tf:"locale_service,omitempty"`
// NSX ID for this resource
// +kubebuilder:validation:Optional
NsxID *string `json:"nsxId,omitempty" tf:"nsx_id,omitempty"`
// Route distinguisher administrator address
// +kubebuilder:validation:Optional
RdAdminAddress *string `json:"rdAdminAddress,omitempty" tf:"rd_admin_address,omitempty"`
// Route Redistribution configuration
// +kubebuilder:validation:Optional
RedistributionConfig []PolicyTier0GatewayRedistributionConfigParameters `json:"redistributionConfig,omitempty" tf:"redistribution_config,omitempty"`
// Set of opaque identifiers meaningful to the user
// +kubebuilder:validation:Optional
Tag []PolicyTier0GatewayTagParameters `json:"tag,omitempty" tf:"tag,omitempty"`
// Transit subnets in CIDR format
// +kubebuilder:validation:Optional
TransitSubnets []*string `json:"transitSubnets,omitempty" tf:"transit_subnets,omitempty"`
// VRF configuration
// +kubebuilder:validation:Optional
VrfConfig []VrfConfigParameters `json:"vrfConfig,omitempty" tf:"vrf_config,omitempty"`
}
type PolicyTier0GatewayRedistributionConfigObservation struct {
// Flag to enable route redistribution for BGP
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Flag to enable route redistribution for OSPF
OspfEnabled *bool `json:"ospfEnabled,omitempty" tf:"ospf_enabled,omitempty"`
// List of routes to be aggregated
Rule []PolicyTier0GatewayRedistributionConfigRuleObservation `json:"rule,omitempty" tf:"rule,omitempty"`
}
type PolicyTier0GatewayRedistributionConfigParameters struct {
// Flag to enable route redistribution for BGP
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Flag to enable route redistribution for OSPF
// +kubebuilder:validation:Optional
OspfEnabled *bool `json:"ospfEnabled,omitempty" tf:"ospf_enabled,omitempty"`
// List of routes to be aggregated
// +kubebuilder:validation:Optional
Rule []PolicyTier0GatewayRedistributionConfigRuleParameters `json:"rule,omitempty" tf:"rule,omitempty"`
}
type PolicyTier0GatewayRedistributionConfigRuleObservation struct {
// BGP destination for this rule
BGP *bool `json:"bgp,omitempty" tf:"bgp,omitempty"`
// Rule name
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// OSPF destination for this rule
Ospf *bool `json:"ospf,omitempty" tf:"ospf,omitempty"`
// Route map to be associated with the redistribution rule
RouteMapPath *string `json:"routeMapPath,omitempty" tf:"route_map_path,omitempty"`
// List of redistribution types
Types []*string `json:"types,omitempty" tf:"types,omitempty"`
}
type PolicyTier0GatewayRedistributionConfigRuleParameters struct {
// BGP destination for this rule
// +kubebuilder:validation:Optional
BGP *bool `json:"bgp,omitempty" tf:"bgp,omitempty"`
// Rule name
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// OSPF destination for this rule
// +kubebuilder:validation:Optional
Ospf *bool `json:"ospf,omitempty" tf:"ospf,omitempty"`
// Route map to be associated with the redistribution rule
// +kubebuilder:validation:Optional
RouteMapPath *string `json:"routeMapPath,omitempty" tf:"route_map_path,omitempty"`
// List of redistribution types
// +kubebuilder:validation:Optional
Types []*string `json:"types,omitempty" tf:"types,omitempty"`
}
type PolicyTier0GatewayTagObservation struct {
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}
type PolicyTier0GatewayTagParameters struct {
// +kubebuilder:validation:Optional
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
// +kubebuilder:validation:Optional
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}
type RedistributionConfigObservation struct {
// Flag to enable route redistribution for BGP
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Flag to enable route redistribution for OSPF
OspfEnabled *bool `json:"ospfEnabled,omitempty" tf:"ospf_enabled,omitempty"`
// List of routes to be aggregated
Rule []RedistributionConfigRuleObservation `json:"rule,omitempty" tf:"rule,omitempty"`
}
type RedistributionConfigParameters struct {
// Flag to enable route redistribution for BGP
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Flag to enable route redistribution for OSPF
// +kubebuilder:validation:Optional
OspfEnabled *bool `json:"ospfEnabled,omitempty" tf:"ospf_enabled,omitempty"`
// List of routes to be aggregated
// +kubebuilder:validation:Optional
Rule []RedistributionConfigRuleParameters `json:"rule,omitempty" tf:"rule,omitempty"`
}
type RedistributionConfigRuleObservation struct {
// BGP destination for this rule
BGP *bool `json:"bgp,omitempty" tf:"bgp,omitempty"`
// Rule name
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// OSPF destination for this rule
Ospf *bool `json:"ospf,omitempty" tf:"ospf,omitempty"`
// Route map to be associated with the redistribution rule
RouteMapPath *string `json:"routeMapPath,omitempty" tf:"route_map_path,omitempty"`
// List of redistribution types
Types []*string `json:"types,omitempty" tf:"types,omitempty"`
}
type RedistributionConfigRuleParameters struct {
// BGP destination for this rule
// +kubebuilder:validation:Optional
BGP *bool `json:"bgp,omitempty" tf:"bgp,omitempty"`
// Rule name
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// OSPF destination for this rule
// +kubebuilder:validation:Optional
Ospf *bool `json:"ospf,omitempty" tf:"ospf,omitempty"`
// Route map to be associated with the redistribution rule
// +kubebuilder:validation:Optional
RouteMapPath *string `json:"routeMapPath,omitempty" tf:"route_map_path,omitempty"`
// List of redistribution types
// +kubebuilder:validation:Optional
Types []*string `json:"types,omitempty" tf:"types,omitempty"`
}
type RouteTargetObservation struct {
AddressFamily *string `json:"addressFamily,omitempty" tf:"address_family,omitempty"`
// When set to false, targets should be configured
AutoMode *bool `json:"autoMode,omitempty" tf:"auto_mode,omitempty"`
ExportTargets []*string `json:"exportTargets,omitempty" tf:"export_targets,omitempty"`
ImportTargets []*string `json:"importTargets,omitempty" tf:"import_targets,omitempty"`
}
type RouteTargetParameters struct {
// +kubebuilder:validation:Optional
AddressFamily *string `json:"addressFamily,omitempty" tf:"address_family,omitempty"`
// When set to false, targets should be configured
// +kubebuilder:validation:Optional
AutoMode *bool `json:"autoMode,omitempty" tf:"auto_mode,omitempty"`
// +kubebuilder:validation:Optional
ExportTargets []*string `json:"exportTargets,omitempty" tf:"export_targets,omitempty"`
// +kubebuilder:validation:Optional
ImportTargets []*string `json:"importTargets,omitempty" tf:"import_targets,omitempty"`
}
type VrfConfigObservation struct {
// L3 VNI associated with the VRF for overlay traffic. VNI must be unique and belong to configured VNI pool
EvpnTransitVni *float64 `json:"evpnTransitVni,omitempty" tf:"evpn_transit_vni,omitempty"`
// Default tier0 path
GatewayPath *string `json:"gatewayPath,omitempty" tf:"gateway_path,omitempty"`
// Policy path for this resource
Path *string `json:"path,omitempty" tf:"path,omitempty"`
RouteDistinguisher *string `json:"routeDistinguisher,omitempty" tf:"route_distinguisher,omitempty"`
// Route targets
RouteTarget []RouteTargetObservation `json:"routeTarget,omitempty" tf:"route_target,omitempty"`
// Set of opaque identifiers meaningful to the user
Tag []VrfConfigTagObservation `json:"tag,omitempty" tf:"tag,omitempty"`
}
type VrfConfigParameters struct {
// L3 VNI associated with the VRF for overlay traffic. VNI must be unique and belong to configured VNI pool
// +kubebuilder:validation:Optional
EvpnTransitVni *float64 `json:"evpnTransitVni,omitempty" tf:"evpn_transit_vni,omitempty"`
// Default tier0 path
// +kubebuilder:validation:Required
GatewayPath *string `json:"gatewayPath" tf:"gateway_path,omitempty"`
// +kubebuilder:validation:Optional
RouteDistinguisher *string `json:"routeDistinguisher,omitempty" tf:"route_distinguisher,omitempty"`
// Route targets
// +kubebuilder:validation:Optional
RouteTarget []RouteTargetParameters `json:"routeTarget,omitempty" tf:"route_target,omitempty"`
// Set of opaque identifiers meaningful to the user
// +kubebuilder:validation:Optional
Tag []VrfConfigTagParameters `json:"tag,omitempty" tf:"tag,omitempty"`
}
type VrfConfigTagObservation struct {
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}
type VrfConfigTagParameters struct {
// +kubebuilder:validation:Optional
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
// +kubebuilder:validation:Optional
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}
// PolicyTier0GatewaySpec defines the desired state of PolicyTier0Gateway
type PolicyTier0GatewaySpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider PolicyTier0GatewayParameters `json:"forProvider"`
}
// PolicyTier0GatewayStatus defines the observed state of PolicyTier0Gateway.
type PolicyTier0GatewayStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider PolicyTier0GatewayObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// PolicyTier0Gateway is the Schema for the PolicyTier0Gateways 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 PolicyTier0Gateway 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"
Spec PolicyTier0GatewaySpec `json:"spec"`
Status PolicyTier0GatewayStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// PolicyTier0GatewayList contains a list of PolicyTier0Gateways
type PolicyTier0GatewayList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PolicyTier0Gateway `json:"items"`
}
// Repository type metadata.
var (
PolicyTier0Gateway_Kind = "PolicyTier0Gateway"
PolicyTier0Gateway_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: PolicyTier0Gateway_Kind}.String()
PolicyTier0Gateway_KindAPIVersion = PolicyTier0Gateway_Kind + "." + CRDGroupVersion.String()
PolicyTier0Gateway_GroupVersionKind = CRDGroupVersion.WithKind(PolicyTier0Gateway_Kind)
)
func init() {
SchemeBuilder.Register(&PolicyTier0Gateway{}, &PolicyTier0GatewayList{})
}