generated from crossplane/upjet-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zz_loadbalancer_types.go
executable file
·1131 lines (809 loc) · 45.8 KB
/
zz_loadbalancer_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
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// 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 AddressInitParameters struct {
// External IPv4 address. The structure is documented below.
ExternalIPv4Address []ExternalIPv4AddressInitParameters `json:"externalIpv4Address,omitempty" tf:"external_ipv4_address,omitempty"`
// External IPv6 address. The structure is documented below.
ExternalIPv6Address []ExternalIPv6AddressInitParameters `json:"externalIpv6Address,omitempty" tf:"external_ipv6_address,omitempty"`
// Internal IPv4 address. The structure is documented below.
InternalIPv4Address []InternalIPv4AddressInitParameters `json:"internalIpv4Address,omitempty" tf:"internal_ipv4_address,omitempty"`
}
type AddressObservation struct {
// External IPv4 address. The structure is documented below.
ExternalIPv4Address []ExternalIPv4AddressObservation `json:"externalIpv4Address,omitempty" tf:"external_ipv4_address,omitempty"`
// External IPv6 address. The structure is documented below.
ExternalIPv6Address []ExternalIPv6AddressObservation `json:"externalIpv6Address,omitempty" tf:"external_ipv6_address,omitempty"`
// Internal IPv4 address. The structure is documented below.
InternalIPv4Address []InternalIPv4AddressObservation `json:"internalIpv4Address,omitempty" tf:"internal_ipv4_address,omitempty"`
}
type AddressParameters struct {
// External IPv4 address. The structure is documented below.
// +kubebuilder:validation:Optional
ExternalIPv4Address []ExternalIPv4AddressParameters `json:"externalIpv4Address,omitempty" tf:"external_ipv4_address,omitempty"`
// External IPv6 address. The structure is documented below.
// +kubebuilder:validation:Optional
ExternalIPv6Address []ExternalIPv6AddressParameters `json:"externalIpv6Address,omitempty" tf:"external_ipv6_address,omitempty"`
// Internal IPv4 address. The structure is documented below.
// +kubebuilder:validation:Optional
InternalIPv4Address []InternalIPv4AddressParameters `json:"internalIpv4Address,omitempty" tf:"internal_ipv4_address,omitempty"`
}
type AllocationPolicyInitParameters struct {
// Unique set of locations. The structure is documented below.
Location []LocationInitParameters `json:"location,omitempty" tf:"location,omitempty"`
}
type AllocationPolicyObservation struct {
// Unique set of locations. The structure is documented below.
Location []LocationObservation `json:"location,omitempty" tf:"location,omitempty"`
}
type AllocationPolicyParameters struct {
// Unique set of locations. The structure is documented below.
// +kubebuilder:validation:Optional
Location []LocationParameters `json:"location" tf:"location,omitempty"`
}
type DefaultHandlerInitParameters struct {
// Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
// with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
// +listType=set
CertificateIds []*string `json:"certificateIds,omitempty" tf:"certificate_ids,omitempty"`
// HTTP handler resource. The structure is documented below.
HTTPHandler []HTTPHandlerInitParameters `json:"httpHandler,omitempty" tf:"http_handler,omitempty"`
// Stream handler resource. The structure is documented below.
StreamHandler []DefaultHandlerStreamHandlerInitParameters `json:"streamHandler,omitempty" tf:"stream_handler,omitempty"`
}
type DefaultHandlerObservation struct {
// Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
// with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
// +listType=set
CertificateIds []*string `json:"certificateIds,omitempty" tf:"certificate_ids,omitempty"`
// HTTP handler resource. The structure is documented below.
HTTPHandler []HTTPHandlerObservation `json:"httpHandler,omitempty" tf:"http_handler,omitempty"`
// Stream handler resource. The structure is documented below.
StreamHandler []DefaultHandlerStreamHandlerObservation `json:"streamHandler,omitempty" tf:"stream_handler,omitempty"`
}
type DefaultHandlerParameters struct {
// Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
// with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
// +kubebuilder:validation:Optional
// +listType=set
CertificateIds []*string `json:"certificateIds" tf:"certificate_ids,omitempty"`
// HTTP handler resource. The structure is documented below.
// +kubebuilder:validation:Optional
HTTPHandler []HTTPHandlerParameters `json:"httpHandler,omitempty" tf:"http_handler,omitempty"`
// Stream handler resource. The structure is documented below.
// +kubebuilder:validation:Optional
StreamHandler []DefaultHandlerStreamHandlerParameters `json:"streamHandler,omitempty" tf:"stream_handler,omitempty"`
}
type DefaultHandlerStreamHandlerInitParameters struct {
// Backend group id.
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
}
type DefaultHandlerStreamHandlerObservation struct {
// Backend group id.
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
}
type DefaultHandlerStreamHandlerParameters struct {
// Backend group id.
// +kubebuilder:validation:Optional
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
}
type DiscardRuleInitParameters struct {
DiscardPercent *float64 `json:"discardPercent,omitempty" tf:"discard_percent,omitempty"`
// list of grpc codes by name, e.g, ["NOT_FOUND", "RESOURCE_EXHAUSTED"]
GRPCCodes []*string `json:"grpcCodes,omitempty" tf:"grpc_codes,omitempty"`
// 5XX or ALL
HTTPCodeIntervals []*string `json:"httpCodeIntervals,omitempty" tf:"http_code_intervals,omitempty"`
// 599
HTTPCodes []*float64 `json:"httpCodes,omitempty" tf:"http_codes,omitempty"`
}
type DiscardRuleObservation struct {
DiscardPercent *float64 `json:"discardPercent,omitempty" tf:"discard_percent,omitempty"`
// list of grpc codes by name, e.g, ["NOT_FOUND", "RESOURCE_EXHAUSTED"]
GRPCCodes []*string `json:"grpcCodes,omitempty" tf:"grpc_codes,omitempty"`
// 5XX or ALL
HTTPCodeIntervals []*string `json:"httpCodeIntervals,omitempty" tf:"http_code_intervals,omitempty"`
// 599
HTTPCodes []*float64 `json:"httpCodes,omitempty" tf:"http_codes,omitempty"`
}
type DiscardRuleParameters struct {
// +kubebuilder:validation:Optional
DiscardPercent *float64 `json:"discardPercent,omitempty" tf:"discard_percent,omitempty"`
// list of grpc codes by name, e.g, ["NOT_FOUND", "RESOURCE_EXHAUSTED"]
// +kubebuilder:validation:Optional
GRPCCodes []*string `json:"grpcCodes,omitempty" tf:"grpc_codes,omitempty"`
// 5XX or ALL
// +kubebuilder:validation:Optional
HTTPCodeIntervals []*string `json:"httpCodeIntervals,omitempty" tf:"http_code_intervals,omitempty"`
// 599
// +kubebuilder:validation:Optional
HTTPCodes []*float64 `json:"httpCodes,omitempty" tf:"http_codes,omitempty"`
}
type EndpointInitParameters struct {
// Provided by the client or computed automatically.
Address []AddressInitParameters `json:"address,omitempty" tf:"address,omitempty"`
// One or more ports to listen on.
Ports []*float64 `json:"ports,omitempty" tf:"ports,omitempty"`
}
type EndpointObservation struct {
// Provided by the client or computed automatically.
Address []AddressObservation `json:"address,omitempty" tf:"address,omitempty"`
// One or more ports to listen on.
Ports []*float64 `json:"ports,omitempty" tf:"ports,omitempty"`
}
type EndpointParameters struct {
// Provided by the client or computed automatically.
// +kubebuilder:validation:Optional
Address []AddressParameters `json:"address" tf:"address,omitempty"`
// One or more ports to listen on.
// +kubebuilder:validation:Optional
Ports []*float64 `json:"ports" tf:"ports,omitempty"`
}
type ExternalIPv4AddressInitParameters struct {
// Provided by the client or computed automatically.
Address *string `json:"address,omitempty" tf:"address,omitempty"`
}
type ExternalIPv4AddressObservation struct {
// Provided by the client or computed automatically.
Address *string `json:"address,omitempty" tf:"address,omitempty"`
}
type ExternalIPv4AddressParameters struct {
// Provided by the client or computed automatically.
// +kubebuilder:validation:Optional
Address *string `json:"address,omitempty" tf:"address,omitempty"`
}
type ExternalIPv6AddressInitParameters struct {
// Provided by the client or computed automatically.
Address *string `json:"address,omitempty" tf:"address,omitempty"`
}
type ExternalIPv6AddressObservation struct {
// Provided by the client or computed automatically.
Address *string `json:"address,omitempty" tf:"address,omitempty"`
}
type ExternalIPv6AddressParameters struct {
// Provided by the client or computed automatically.
// +kubebuilder:validation:Optional
Address *string `json:"address,omitempty" tf:"address,omitempty"`
}
type HTTPHandlerHttp2OptionsInitParameters struct {
// Maximum number of concurrent streams.
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type HTTPHandlerHttp2OptionsObservation struct {
// Maximum number of concurrent streams.
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type HTTPHandlerHttp2OptionsParameters struct {
// Maximum number of concurrent streams.
// +kubebuilder:validation:Optional
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type HTTPHandlerInitParameters struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
Http2Options []HTTPHandlerHttp2OptionsInitParameters `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HTTPHandlerObservation struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
Http2Options []HTTPHandlerHttp2OptionsObservation `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HTTPHandlerParameters struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
// +kubebuilder:validation:Optional
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
// +kubebuilder:validation:Optional
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
// +kubebuilder:validation:Optional
Http2Options []HTTPHandlerHttp2OptionsParameters `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
// +kubebuilder:validation:Optional
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HTTPInitParameters struct {
// Stream handler that sets plaintext Stream backend group. The structure is documented below.
Handler []HandlerInitParameters `json:"handler,omitempty" tf:"handler,omitempty"`
// Shortcut for adding http -> https redirects. The structure is documented below.
Redirects []RedirectsInitParameters `json:"redirects,omitempty" tf:"redirects,omitempty"`
}
type HTTPObservation struct {
// Stream handler that sets plaintext Stream backend group. The structure is documented below.
Handler []HandlerObservation `json:"handler,omitempty" tf:"handler,omitempty"`
// Shortcut for adding http -> https redirects. The structure is documented below.
Redirects []RedirectsObservation `json:"redirects,omitempty" tf:"redirects,omitempty"`
}
type HTTPParameters struct {
// Stream handler that sets plaintext Stream backend group. The structure is documented below.
// +kubebuilder:validation:Optional
Handler []HandlerParameters `json:"handler,omitempty" tf:"handler,omitempty"`
// Shortcut for adding http -> https redirects. The structure is documented below.
// +kubebuilder:validation:Optional
Redirects []RedirectsParameters `json:"redirects,omitempty" tf:"redirects,omitempty"`
}
type HandlerHTTPHandlerHttp2OptionsInitParameters struct {
// Maximum number of concurrent streams.
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type HandlerHTTPHandlerHttp2OptionsObservation struct {
// Maximum number of concurrent streams.
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type HandlerHTTPHandlerHttp2OptionsParameters struct {
// Maximum number of concurrent streams.
// +kubebuilder:validation:Optional
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type HandlerHTTPHandlerInitParameters struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
Http2Options []HandlerHTTPHandlerHttp2OptionsInitParameters `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HandlerHTTPHandlerObservation struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
Http2Options []HandlerHTTPHandlerHttp2OptionsObservation `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HandlerHTTPHandlerParameters struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
// +kubebuilder:validation:Optional
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
// +kubebuilder:validation:Optional
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
// +kubebuilder:validation:Optional
Http2Options []HandlerHTTPHandlerHttp2OptionsParameters `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
// +kubebuilder:validation:Optional
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HandlerInitParameters struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
// +crossplane:generate:reference:type=HTTPRouter
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// Reference to a HTTPRouter to populate httpRouterId.
// +kubebuilder:validation:Optional
HTTPRouterIDRef *v1.Reference `json:"httpRouterIdRef,omitempty" tf:"-"`
// Selector for a HTTPRouter to populate httpRouterId.
// +kubebuilder:validation:Optional
HTTPRouterIDSelector *v1.Selector `json:"httpRouterIdSelector,omitempty" tf:"-"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
Http2Options []Http2OptionsInitParameters `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HandlerObservation struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
Http2Options []Http2OptionsObservation `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HandlerParameters struct {
// If set, will enable only HTTP1 protocol with HTTP1.0 support.
// +kubebuilder:validation:Optional
AllowHttp10 *bool `json:"allowHttp10,omitempty" tf:"allow_http10,omitempty"`
// HTTP router id.
// +crossplane:generate:reference:type=HTTPRouter
// +kubebuilder:validation:Optional
HTTPRouterID *string `json:"httpRouterId,omitempty" tf:"http_router_id,omitempty"`
// Reference to a HTTPRouter to populate httpRouterId.
// +kubebuilder:validation:Optional
HTTPRouterIDRef *v1.Reference `json:"httpRouterIdRef,omitempty" tf:"-"`
// Selector for a HTTPRouter to populate httpRouterId.
// +kubebuilder:validation:Optional
HTTPRouterIDSelector *v1.Selector `json:"httpRouterIdSelector,omitempty" tf:"-"`
// If set, will enable HTTP2 protocol for the handler. The structure is documented below.
// +kubebuilder:validation:Optional
Http2Options []Http2OptionsParameters `json:"http2Options,omitempty" tf:"http2_options,omitempty"`
// When unset, will preserve the incoming x-request-id header, otherwise would rewrite it with a new value.
// +kubebuilder:validation:Optional
RewriteRequestID *bool `json:"rewriteRequestId,omitempty" tf:"rewrite_request_id,omitempty"`
}
type HandlerStreamHandlerInitParameters struct {
// Backend group id.
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
}
type HandlerStreamHandlerObservation struct {
// Backend group id.
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
}
type HandlerStreamHandlerParameters struct {
// Backend group id.
// +kubebuilder:validation:Optional
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
}
type Http2OptionsInitParameters struct {
// Maximum number of concurrent streams.
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type Http2OptionsObservation struct {
// Maximum number of concurrent streams.
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type Http2OptionsParameters struct {
// Maximum number of concurrent streams.
// +kubebuilder:validation:Optional
MaxConcurrentStreams *float64 `json:"maxConcurrentStreams,omitempty" tf:"max_concurrent_streams,omitempty"`
}
type InternalIPv4AddressInitParameters struct {
// Provided by the client or computed automatically.
Address *string `json:"address,omitempty" tf:"address,omitempty"`
// Provided by the client or computed automatically.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
}
type InternalIPv4AddressObservation struct {
// Provided by the client or computed automatically.
Address *string `json:"address,omitempty" tf:"address,omitempty"`
// Provided by the client or computed automatically.
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
}
type InternalIPv4AddressParameters struct {
// Provided by the client or computed automatically.
// +kubebuilder:validation:Optional
Address *string `json:"address,omitempty" tf:"address,omitempty"`
// Provided by the client or computed automatically.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
// +kubebuilder:validation:Optional
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
}
type ListenerInitParameters struct {
// Network endpoints (addresses and ports) of the listener. The structure is documented below.
Endpoint []EndpointInitParameters `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// HTTP listener resource. The structure is documented below.
HTTP []HTTPInitParameters `json:"http,omitempty" tf:"http,omitempty"`
// name of the listener.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Stream listener resource. The structure is documented below.
Stream []StreamInitParameters `json:"stream,omitempty" tf:"stream,omitempty"`
// TLS listener resource. The structure is documented below.
TLS []ListenerTLSInitParameters `json:"tls,omitempty" tf:"tls,omitempty"`
}
type ListenerObservation struct {
// Network endpoints (addresses and ports) of the listener. The structure is documented below.
Endpoint []EndpointObservation `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// HTTP listener resource. The structure is documented below.
HTTP []HTTPObservation `json:"http,omitempty" tf:"http,omitempty"`
// name of the listener.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Stream listener resource. The structure is documented below.
Stream []StreamObservation `json:"stream,omitempty" tf:"stream,omitempty"`
// TLS listener resource. The structure is documented below.
TLS []ListenerTLSObservation `json:"tls,omitempty" tf:"tls,omitempty"`
}
type ListenerParameters struct {
// Network endpoints (addresses and ports) of the listener. The structure is documented below.
// +kubebuilder:validation:Optional
Endpoint []EndpointParameters `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// HTTP listener resource. The structure is documented below.
// +kubebuilder:validation:Optional
HTTP []HTTPParameters `json:"http,omitempty" tf:"http,omitempty"`
// name of the listener.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// Stream listener resource. The structure is documented below.
// +kubebuilder:validation:Optional
Stream []StreamParameters `json:"stream,omitempty" tf:"stream,omitempty"`
// TLS listener resource. The structure is documented below.
// +kubebuilder:validation:Optional
TLS []ListenerTLSParameters `json:"tls,omitempty" tf:"tls,omitempty"`
}
type ListenerTLSInitParameters struct {
// TLS handler resource. The structure is documented below.
DefaultHandler []DefaultHandlerInitParameters `json:"defaultHandler,omitempty" tf:"default_handler,omitempty"`
// SNI match resource. The structure is documented below.
SniHandler []SniHandlerInitParameters `json:"sniHandler,omitempty" tf:"sni_handler,omitempty"`
}
type ListenerTLSObservation struct {
// TLS handler resource. The structure is documented below.
DefaultHandler []DefaultHandlerObservation `json:"defaultHandler,omitempty" tf:"default_handler,omitempty"`
// SNI match resource. The structure is documented below.
SniHandler []SniHandlerObservation `json:"sniHandler,omitempty" tf:"sni_handler,omitempty"`
}
type ListenerTLSParameters struct {
// TLS handler resource. The structure is documented below.
// +kubebuilder:validation:Optional
DefaultHandler []DefaultHandlerParameters `json:"defaultHandler" tf:"default_handler,omitempty"`
// SNI match resource. The structure is documented below.
// +kubebuilder:validation:Optional
SniHandler []SniHandlerParameters `json:"sniHandler,omitempty" tf:"sni_handler,omitempty"`
}
type LoadBalancerInitParameters struct {
// Allocation zones for the Load Balancer instance. The structure is documented below.
AllocationPolicy []AllocationPolicyInitParameters `json:"allocationPolicy,omitempty" tf:"allocation_policy,omitempty"`
// An optional description of the Load Balancer.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/resourcemanager/v1alpha1.Folder
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// Reference to a Folder in resourcemanager to populate folderId.
// +kubebuilder:validation:Optional
FolderIDRef *v1.Reference `json:"folderIdRef,omitempty" tf:"-"`
// Selector for a Folder in resourcemanager to populate folderId.
// +kubebuilder:validation:Optional
FolderIDSelector *v1.Selector `json:"folderIdSelector,omitempty" tf:"-"`
// Labels to assign to this Load Balancer. A list of key/value pairs.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// List of listeners for the Load Balancer. The structure is documented below.
Listener []ListenerInitParameters `json:"listener,omitempty" tf:"listener,omitempty"`
// Cloud Logging settings. The structure is documented below.
LogOptions []LogOptionsInitParameters `json:"logOptions,omitempty" tf:"log_options,omitempty"`
// Name of the Load Balancer. Provided by the client when the Load Balancer is created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// ID of the network that the Load Balancer is located at.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Network
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Reference to a Network in vpc to populate networkId.
// +kubebuilder:validation:Optional
NetworkIDRef *v1.Reference `json:"networkIdRef,omitempty" tf:"-"`
// Selector for a Network in vpc to populate networkId.
// +kubebuilder:validation:Optional
NetworkIDSelector *v1.Selector `json:"networkIdSelector,omitempty" tf:"-"`
// ID of the region that the Load Balancer is located at.
RegionID *string `json:"regionId,omitempty" tf:"region_id,omitempty"`
// A list of ID's of security groups attached to the Load Balancer.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.SecurityGroup
// +listType=set
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// References to SecurityGroup in vpc to populate securityGroupIds.
// +kubebuilder:validation:Optional
SecurityGroupIdsRefs []v1.Reference `json:"securityGroupIdsRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in vpc to populate securityGroupIds.
// +kubebuilder:validation:Optional
SecurityGroupIdsSelector *v1.Selector `json:"securityGroupIdsSelector,omitempty" tf:"-"`
}
type LoadBalancerObservation struct {
// Allocation zones for the Load Balancer instance. The structure is documented below.
AllocationPolicy []AllocationPolicyObservation `json:"allocationPolicy,omitempty" tf:"allocation_policy,omitempty"`
// The Load Balancer creation timestamp.
CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`
// An optional description of the Load Balancer.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// The ID of the Load Balancer.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Labels to assign to this Load Balancer. A list of key/value pairs.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// List of listeners for the Load Balancer. The structure is documented below.
Listener []ListenerObservation `json:"listener,omitempty" tf:"listener,omitempty"`
// Cloud log group used by the Load Balancer to store access logs.
LogGroupID *string `json:"logGroupId,omitempty" tf:"log_group_id,omitempty"`
// Cloud Logging settings. The structure is documented below.
LogOptions []LogOptionsObservation `json:"logOptions,omitempty" tf:"log_options,omitempty"`
// Name of the Load Balancer. Provided by the client when the Load Balancer is created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// ID of the network that the Load Balancer is located at.
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// ID of the region that the Load Balancer is located at.
RegionID *string `json:"regionId,omitempty" tf:"region_id,omitempty"`
// A list of ID's of security groups attached to the Load Balancer.
// +listType=set
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// Status of the Load Balancer.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
type LoadBalancerParameters struct {
// Allocation zones for the Load Balancer instance. The structure is documented below.
// +kubebuilder:validation:Optional
AllocationPolicy []AllocationPolicyParameters `json:"allocationPolicy,omitempty" tf:"allocation_policy,omitempty"`
// An optional description of the Load Balancer.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The ID of the folder to which the resource belongs. If omitted, the provider folder is used.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/resourcemanager/v1alpha1.Folder
// +kubebuilder:validation:Optional
FolderID *string `json:"folderId,omitempty" tf:"folder_id,omitempty"`
// Reference to a Folder in resourcemanager to populate folderId.
// +kubebuilder:validation:Optional
FolderIDRef *v1.Reference `json:"folderIdRef,omitempty" tf:"-"`
// Selector for a Folder in resourcemanager to populate folderId.
// +kubebuilder:validation:Optional
FolderIDSelector *v1.Selector `json:"folderIdSelector,omitempty" tf:"-"`
// Labels to assign to this Load Balancer. A list of key/value pairs.
// +kubebuilder:validation:Optional
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// List of listeners for the Load Balancer. The structure is documented below.
// +kubebuilder:validation:Optional
Listener []ListenerParameters `json:"listener,omitempty" tf:"listener,omitempty"`
// Cloud Logging settings. The structure is documented below.
// +kubebuilder:validation:Optional
LogOptions []LogOptionsParameters `json:"logOptions,omitempty" tf:"log_options,omitempty"`
// Name of the Load Balancer. Provided by the client when the Load Balancer is created.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// ID of the network that the Load Balancer is located at.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Network
// +kubebuilder:validation:Optional
NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"`
// Reference to a Network in vpc to populate networkId.
// +kubebuilder:validation:Optional
NetworkIDRef *v1.Reference `json:"networkIdRef,omitempty" tf:"-"`
// Selector for a Network in vpc to populate networkId.
// +kubebuilder:validation:Optional
NetworkIDSelector *v1.Selector `json:"networkIdSelector,omitempty" tf:"-"`
// ID of the region that the Load Balancer is located at.
// +kubebuilder:validation:Optional
RegionID *string `json:"regionId,omitempty" tf:"region_id,omitempty"`
// A list of ID's of security groups attached to the Load Balancer.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.SecurityGroup
// +kubebuilder:validation:Optional
// +listType=set
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// References to SecurityGroup in vpc to populate securityGroupIds.
// +kubebuilder:validation:Optional
SecurityGroupIdsRefs []v1.Reference `json:"securityGroupIdsRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in vpc to populate securityGroupIds.
// +kubebuilder:validation:Optional
SecurityGroupIdsSelector *v1.Selector `json:"securityGroupIdsSelector,omitempty" tf:"-"`
}
type LocationInitParameters struct {
// If set, will disable all L7 instances in the zone for request handling.
DisableTraffic *bool `json:"disableTraffic,omitempty" tf:"disable_traffic,omitempty"`
// ID of the subnet that location is located at.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// ID of the zone that location is located at.
ZoneID *string `json:"zoneId,omitempty" tf:"zone_id,omitempty"`
}
type LocationObservation struct {
// If set, will disable all L7 instances in the zone for request handling.
DisableTraffic *bool `json:"disableTraffic,omitempty" tf:"disable_traffic,omitempty"`
// ID of the subnet that location is located at.
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// ID of the zone that location is located at.
ZoneID *string `json:"zoneId,omitempty" tf:"zone_id,omitempty"`
}
type LocationParameters struct {
// If set, will disable all L7 instances in the zone for request handling.
// +kubebuilder:validation:Optional
DisableTraffic *bool `json:"disableTraffic,omitempty" tf:"disable_traffic,omitempty"`
// ID of the subnet that location is located at.
// +crossplane:generate:reference:type=github.com/tagesjump/provider-upjet-yc/apis/vpc/v1alpha1.Subnet
// +kubebuilder:validation:Optional
SubnetID *string `json:"subnetId,omitempty" tf:"subnet_id,omitempty"`
// Reference to a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDRef *v1.Reference `json:"subnetIdRef,omitempty" tf:"-"`
// Selector for a Subnet in vpc to populate subnetId.
// +kubebuilder:validation:Optional
SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// ID of the zone that location is located at.
// +kubebuilder:validation:Optional
ZoneID *string `json:"zoneId" tf:"zone_id,omitempty"`
}
type LogOptionsInitParameters struct {
// Set to true to disable Cloud Logging for the balancer
Disable *bool `json:"disable,omitempty" tf:"disable,omitempty"`
// List of rules to discard a fraction of logs. The structure is documented below.
DiscardRule []DiscardRuleInitParameters `json:"discardRule,omitempty" tf:"discard_rule,omitempty"`
// Cloud Logging group ID to send logs to. Leave empty to use the balancer folder default log group.
LogGroupID *string `json:"logGroupId,omitempty" tf:"log_group_id,omitempty"`
}
type LogOptionsObservation struct {
// Set to true to disable Cloud Logging for the balancer
Disable *bool `json:"disable,omitempty" tf:"disable,omitempty"`
// List of rules to discard a fraction of logs. The structure is documented below.
DiscardRule []DiscardRuleObservation `json:"discardRule,omitempty" tf:"discard_rule,omitempty"`
// Cloud Logging group ID to send logs to. Leave empty to use the balancer folder default log group.
LogGroupID *string `json:"logGroupId,omitempty" tf:"log_group_id,omitempty"`
}
type LogOptionsParameters struct {
// Set to true to disable Cloud Logging for the balancer
// +kubebuilder:validation:Optional
Disable *bool `json:"disable,omitempty" tf:"disable,omitempty"`
// List of rules to discard a fraction of logs. The structure is documented below.
// +kubebuilder:validation:Optional
DiscardRule []DiscardRuleParameters `json:"discardRule,omitempty" tf:"discard_rule,omitempty"`
// Cloud Logging group ID to send logs to. Leave empty to use the balancer folder default log group.
// +kubebuilder:validation:Optional
LogGroupID *string `json:"logGroupId,omitempty" tf:"log_group_id,omitempty"`
}
type RedirectsInitParameters struct {
// If set redirects all unencrypted HTTP requests to the same URI with scheme changed to https.
HTTPToHTTPS *bool `json:"httpToHttps,omitempty" tf:"http_to_https,omitempty"`
}
type RedirectsObservation struct {
// If set redirects all unencrypted HTTP requests to the same URI with scheme changed to https.
HTTPToHTTPS *bool `json:"httpToHttps,omitempty" tf:"http_to_https,omitempty"`
}
type RedirectsParameters struct {
// If set redirects all unencrypted HTTP requests to the same URI with scheme changed to https.
// +kubebuilder:validation:Optional
HTTPToHTTPS *bool `json:"httpToHttps,omitempty" tf:"http_to_https,omitempty"`
}
type SniHandlerHandlerInitParameters struct {
// Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
// with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
// +listType=set
CertificateIds []*string `json:"certificateIds,omitempty" tf:"certificate_ids,omitempty"`
// HTTP handler resource. The structure is documented below.
HTTPHandler []HandlerHTTPHandlerInitParameters `json:"httpHandler,omitempty" tf:"http_handler,omitempty"`
// Stream handler resource. The structure is documented below.
StreamHandler []HandlerStreamHandlerInitParameters `json:"streamHandler,omitempty" tf:"stream_handler,omitempty"`
}
type SniHandlerHandlerObservation struct {
// Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
// with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
// +listType=set
CertificateIds []*string `json:"certificateIds,omitempty" tf:"certificate_ids,omitempty"`
// HTTP handler resource. The structure is documented below.
HTTPHandler []HandlerHTTPHandlerObservation `json:"httpHandler,omitempty" tf:"http_handler,omitempty"`
// Stream handler resource. The structure is documented below.
StreamHandler []HandlerStreamHandlerObservation `json:"streamHandler,omitempty" tf:"stream_handler,omitempty"`
}
type SniHandlerHandlerParameters struct {
// Certificate IDs in the Certificate Manager. Multiple TLS certificates can be associated
// with the same context to allow both RSA and ECDSA certificates. Only the first certificate of each type will be used.
// +kubebuilder:validation:Optional
// +listType=set
CertificateIds []*string `json:"certificateIds" tf:"certificate_ids,omitempty"`
// HTTP handler resource. The structure is documented below.
// +kubebuilder:validation:Optional
HTTPHandler []HandlerHTTPHandlerParameters `json:"httpHandler,omitempty" tf:"http_handler,omitempty"`
// Stream handler resource. The structure is documented below.
// +kubebuilder:validation:Optional
StreamHandler []HandlerStreamHandlerParameters `json:"streamHandler,omitempty" tf:"stream_handler,omitempty"`
}
type SniHandlerInitParameters struct {
// Stream handler that sets plaintext Stream backend group. The structure is documented below.
Handler []SniHandlerHandlerInitParameters `json:"handler,omitempty" tf:"handler,omitempty"`
// name of SNI match.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// A set of server names.
// +listType=set