-
Notifications
You must be signed in to change notification settings - Fork 113
/
pulumiTypes.go
6489 lines (5368 loc) · 376 KB
/
pulumiTypes.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 pulumigen DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// APIGroup contains the name, the supported versions, and the preferred version of a group.
type APIGroup struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// name is the name of the group.
Name string `pulumi:"name"`
// preferredVersion is the version preferred by the API server, which probably is the storage version.
PreferredVersion *GroupVersionForDiscovery `pulumi:"preferredVersion"`
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs []ServerAddressByClientCIDR `pulumi:"serverAddressByClientCIDRs"`
// versions are the versions supported in this group.
Versions []GroupVersionForDiscovery `pulumi:"versions"`
}
// APIGroupInput is an input type that accepts APIGroupArgs and APIGroupOutput values.
// You can construct a concrete instance of `APIGroupInput` via:
//
// APIGroupArgs{...}
type APIGroupInput interface {
pulumi.Input
ToAPIGroupOutput() APIGroupOutput
ToAPIGroupOutputWithContext(context.Context) APIGroupOutput
}
// APIGroup contains the name, the supported versions, and the preferred version of a group.
type APIGroupArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// name is the name of the group.
Name pulumi.StringInput `pulumi:"name"`
// preferredVersion is the version preferred by the API server, which probably is the storage version.
PreferredVersion GroupVersionForDiscoveryPtrInput `pulumi:"preferredVersion"`
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs ServerAddressByClientCIDRArrayInput `pulumi:"serverAddressByClientCIDRs"`
// versions are the versions supported in this group.
Versions GroupVersionForDiscoveryArrayInput `pulumi:"versions"`
}
func (APIGroupArgs) ElementType() reflect.Type {
return reflect.TypeOf((*APIGroup)(nil)).Elem()
}
func (i APIGroupArgs) ToAPIGroupOutput() APIGroupOutput {
return i.ToAPIGroupOutputWithContext(context.Background())
}
func (i APIGroupArgs) ToAPIGroupOutputWithContext(ctx context.Context) APIGroupOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIGroupOutput)
}
// APIGroupArrayInput is an input type that accepts APIGroupArray and APIGroupArrayOutput values.
// You can construct a concrete instance of `APIGroupArrayInput` via:
//
// APIGroupArray{ APIGroupArgs{...} }
type APIGroupArrayInput interface {
pulumi.Input
ToAPIGroupArrayOutput() APIGroupArrayOutput
ToAPIGroupArrayOutputWithContext(context.Context) APIGroupArrayOutput
}
type APIGroupArray []APIGroupInput
func (APIGroupArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]APIGroup)(nil)).Elem()
}
func (i APIGroupArray) ToAPIGroupArrayOutput() APIGroupArrayOutput {
return i.ToAPIGroupArrayOutputWithContext(context.Background())
}
func (i APIGroupArray) ToAPIGroupArrayOutputWithContext(ctx context.Context) APIGroupArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIGroupArrayOutput)
}
// APIGroup contains the name, the supported versions, and the preferred version of a group.
type APIGroupOutput struct{ *pulumi.OutputState }
func (APIGroupOutput) ElementType() reflect.Type {
return reflect.TypeOf((*APIGroup)(nil)).Elem()
}
func (o APIGroupOutput) ToAPIGroupOutput() APIGroupOutput {
return o
}
func (o APIGroupOutput) ToAPIGroupOutputWithContext(ctx context.Context) APIGroupOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o APIGroupOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIGroup) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o APIGroupOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIGroup) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// name is the name of the group.
func (o APIGroupOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v APIGroup) string { return v.Name }).(pulumi.StringOutput)
}
// preferredVersion is the version preferred by the API server, which probably is the storage version.
func (o APIGroupOutput) PreferredVersion() GroupVersionForDiscoveryPtrOutput {
return o.ApplyT(func(v APIGroup) *GroupVersionForDiscovery { return v.PreferredVersion }).(GroupVersionForDiscoveryPtrOutput)
}
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
func (o APIGroupOutput) ServerAddressByClientCIDRs() ServerAddressByClientCIDRArrayOutput {
return o.ApplyT(func(v APIGroup) []ServerAddressByClientCIDR { return v.ServerAddressByClientCIDRs }).(ServerAddressByClientCIDRArrayOutput)
}
// versions are the versions supported in this group.
func (o APIGroupOutput) Versions() GroupVersionForDiscoveryArrayOutput {
return o.ApplyT(func(v APIGroup) []GroupVersionForDiscovery { return v.Versions }).(GroupVersionForDiscoveryArrayOutput)
}
type APIGroupArrayOutput struct{ *pulumi.OutputState }
func (APIGroupArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]APIGroup)(nil)).Elem()
}
func (o APIGroupArrayOutput) ToAPIGroupArrayOutput() APIGroupArrayOutput {
return o
}
func (o APIGroupArrayOutput) ToAPIGroupArrayOutputWithContext(ctx context.Context) APIGroupArrayOutput {
return o
}
func (o APIGroupArrayOutput) Index(i pulumi.IntInput) APIGroupOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) APIGroup {
return vs[0].([]APIGroup)[vs[1].(int)]
}).(APIGroupOutput)
}
// APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.
type APIGroupList struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// groups is a list of APIGroup.
Groups []APIGroup `pulumi:"groups"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
}
// APIGroupListInput is an input type that accepts APIGroupListArgs and APIGroupListOutput values.
// You can construct a concrete instance of `APIGroupListInput` via:
//
// APIGroupListArgs{...}
type APIGroupListInput interface {
pulumi.Input
ToAPIGroupListOutput() APIGroupListOutput
ToAPIGroupListOutputWithContext(context.Context) APIGroupListOutput
}
// APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.
type APIGroupListArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// groups is a list of APIGroup.
Groups APIGroupArrayInput `pulumi:"groups"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
}
func (APIGroupListArgs) ElementType() reflect.Type {
return reflect.TypeOf((*APIGroupList)(nil)).Elem()
}
func (i APIGroupListArgs) ToAPIGroupListOutput() APIGroupListOutput {
return i.ToAPIGroupListOutputWithContext(context.Background())
}
func (i APIGroupListArgs) ToAPIGroupListOutputWithContext(ctx context.Context) APIGroupListOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIGroupListOutput)
}
// APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.
type APIGroupListOutput struct{ *pulumi.OutputState }
func (APIGroupListOutput) ElementType() reflect.Type {
return reflect.TypeOf((*APIGroupList)(nil)).Elem()
}
func (o APIGroupListOutput) ToAPIGroupListOutput() APIGroupListOutput {
return o
}
func (o APIGroupListOutput) ToAPIGroupListOutputWithContext(ctx context.Context) APIGroupListOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o APIGroupListOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIGroupList) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// groups is a list of APIGroup.
func (o APIGroupListOutput) Groups() APIGroupArrayOutput {
return o.ApplyT(func(v APIGroupList) []APIGroup { return v.Groups }).(APIGroupArrayOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o APIGroupListOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIGroupList) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// APIGroup contains the name, the supported versions, and the preferred version of a group.
type APIGroupPatch struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// name is the name of the group.
Name *string `pulumi:"name"`
// preferredVersion is the version preferred by the API server, which probably is the storage version.
PreferredVersion *GroupVersionForDiscoveryPatch `pulumi:"preferredVersion"`
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs []ServerAddressByClientCIDRPatch `pulumi:"serverAddressByClientCIDRs"`
// versions are the versions supported in this group.
Versions []GroupVersionForDiscoveryPatch `pulumi:"versions"`
}
// APIGroupPatchInput is an input type that accepts APIGroupPatchArgs and APIGroupPatchOutput values.
// You can construct a concrete instance of `APIGroupPatchInput` via:
//
// APIGroupPatchArgs{...}
type APIGroupPatchInput interface {
pulumi.Input
ToAPIGroupPatchOutput() APIGroupPatchOutput
ToAPIGroupPatchOutputWithContext(context.Context) APIGroupPatchOutput
}
// APIGroup contains the name, the supported versions, and the preferred version of a group.
type APIGroupPatchArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// name is the name of the group.
Name pulumi.StringPtrInput `pulumi:"name"`
// preferredVersion is the version preferred by the API server, which probably is the storage version.
PreferredVersion GroupVersionForDiscoveryPatchPtrInput `pulumi:"preferredVersion"`
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs ServerAddressByClientCIDRPatchArrayInput `pulumi:"serverAddressByClientCIDRs"`
// versions are the versions supported in this group.
Versions GroupVersionForDiscoveryPatchArrayInput `pulumi:"versions"`
}
func (APIGroupPatchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*APIGroupPatch)(nil)).Elem()
}
func (i APIGroupPatchArgs) ToAPIGroupPatchOutput() APIGroupPatchOutput {
return i.ToAPIGroupPatchOutputWithContext(context.Background())
}
func (i APIGroupPatchArgs) ToAPIGroupPatchOutputWithContext(ctx context.Context) APIGroupPatchOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIGroupPatchOutput)
}
// APIGroup contains the name, the supported versions, and the preferred version of a group.
type APIGroupPatchOutput struct{ *pulumi.OutputState }
func (APIGroupPatchOutput) ElementType() reflect.Type {
return reflect.TypeOf((*APIGroupPatch)(nil)).Elem()
}
func (o APIGroupPatchOutput) ToAPIGroupPatchOutput() APIGroupPatchOutput {
return o
}
func (o APIGroupPatchOutput) ToAPIGroupPatchOutputWithContext(ctx context.Context) APIGroupPatchOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o APIGroupPatchOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIGroupPatch) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o APIGroupPatchOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIGroupPatch) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// name is the name of the group.
func (o APIGroupPatchOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIGroupPatch) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// preferredVersion is the version preferred by the API server, which probably is the storage version.
func (o APIGroupPatchOutput) PreferredVersion() GroupVersionForDiscoveryPatchPtrOutput {
return o.ApplyT(func(v APIGroupPatch) *GroupVersionForDiscoveryPatch { return v.PreferredVersion }).(GroupVersionForDiscoveryPatchPtrOutput)
}
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
func (o APIGroupPatchOutput) ServerAddressByClientCIDRs() ServerAddressByClientCIDRPatchArrayOutput {
return o.ApplyT(func(v APIGroupPatch) []ServerAddressByClientCIDRPatch { return v.ServerAddressByClientCIDRs }).(ServerAddressByClientCIDRPatchArrayOutput)
}
// versions are the versions supported in this group.
func (o APIGroupPatchOutput) Versions() GroupVersionForDiscoveryPatchArrayOutput {
return o.ApplyT(func(v APIGroupPatch) []GroupVersionForDiscoveryPatch { return v.Versions }).(GroupVersionForDiscoveryPatchArrayOutput)
}
// APIResource specifies the name of a resource and whether it is namespaced.
type APIResource struct {
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
Categories []string `pulumi:"categories"`
// group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".
Group *string `pulumi:"group"`
// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
Kind string `pulumi:"kind"`
// name is the plural name of the resource.
Name string `pulumi:"name"`
// namespaced indicates if a resource is namespaced or not.
Namespaced bool `pulumi:"namespaced"`
// shortNames is a list of suggested short names of the resource.
ShortNames []string `pulumi:"shortNames"`
// singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.
SingularName string `pulumi:"singularName"`
// The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.
StorageVersionHash *string `pulumi:"storageVersionHash"`
// verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
Verbs []string `pulumi:"verbs"`
// version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
Version *string `pulumi:"version"`
}
// APIResourceInput is an input type that accepts APIResourceArgs and APIResourceOutput values.
// You can construct a concrete instance of `APIResourceInput` via:
//
// APIResourceArgs{...}
type APIResourceInput interface {
pulumi.Input
ToAPIResourceOutput() APIResourceOutput
ToAPIResourceOutputWithContext(context.Context) APIResourceOutput
}
// APIResource specifies the name of a resource and whether it is namespaced.
type APIResourceArgs struct {
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
Categories pulumi.StringArrayInput `pulumi:"categories"`
// group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".
Group pulumi.StringPtrInput `pulumi:"group"`
// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
Kind pulumi.StringInput `pulumi:"kind"`
// name is the plural name of the resource.
Name pulumi.StringInput `pulumi:"name"`
// namespaced indicates if a resource is namespaced or not.
Namespaced pulumi.BoolInput `pulumi:"namespaced"`
// shortNames is a list of suggested short names of the resource.
ShortNames pulumi.StringArrayInput `pulumi:"shortNames"`
// singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.
SingularName pulumi.StringInput `pulumi:"singularName"`
// The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.
StorageVersionHash pulumi.StringPtrInput `pulumi:"storageVersionHash"`
// verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
Verbs pulumi.StringArrayInput `pulumi:"verbs"`
// version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
Version pulumi.StringPtrInput `pulumi:"version"`
}
func (APIResourceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*APIResource)(nil)).Elem()
}
func (i APIResourceArgs) ToAPIResourceOutput() APIResourceOutput {
return i.ToAPIResourceOutputWithContext(context.Background())
}
func (i APIResourceArgs) ToAPIResourceOutputWithContext(ctx context.Context) APIResourceOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIResourceOutput)
}
// APIResourceArrayInput is an input type that accepts APIResourceArray and APIResourceArrayOutput values.
// You can construct a concrete instance of `APIResourceArrayInput` via:
//
// APIResourceArray{ APIResourceArgs{...} }
type APIResourceArrayInput interface {
pulumi.Input
ToAPIResourceArrayOutput() APIResourceArrayOutput
ToAPIResourceArrayOutputWithContext(context.Context) APIResourceArrayOutput
}
type APIResourceArray []APIResourceInput
func (APIResourceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]APIResource)(nil)).Elem()
}
func (i APIResourceArray) ToAPIResourceArrayOutput() APIResourceArrayOutput {
return i.ToAPIResourceArrayOutputWithContext(context.Background())
}
func (i APIResourceArray) ToAPIResourceArrayOutputWithContext(ctx context.Context) APIResourceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIResourceArrayOutput)
}
// APIResource specifies the name of a resource and whether it is namespaced.
type APIResourceOutput struct{ *pulumi.OutputState }
func (APIResourceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*APIResource)(nil)).Elem()
}
func (o APIResourceOutput) ToAPIResourceOutput() APIResourceOutput {
return o
}
func (o APIResourceOutput) ToAPIResourceOutputWithContext(ctx context.Context) APIResourceOutput {
return o
}
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
func (o APIResourceOutput) Categories() pulumi.StringArrayOutput {
return o.ApplyT(func(v APIResource) []string { return v.Categories }).(pulumi.StringArrayOutput)
}
// group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".
func (o APIResourceOutput) Group() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResource) *string { return v.Group }).(pulumi.StringPtrOutput)
}
// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
func (o APIResourceOutput) Kind() pulumi.StringOutput {
return o.ApplyT(func(v APIResource) string { return v.Kind }).(pulumi.StringOutput)
}
// name is the plural name of the resource.
func (o APIResourceOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v APIResource) string { return v.Name }).(pulumi.StringOutput)
}
// namespaced indicates if a resource is namespaced or not.
func (o APIResourceOutput) Namespaced() pulumi.BoolOutput {
return o.ApplyT(func(v APIResource) bool { return v.Namespaced }).(pulumi.BoolOutput)
}
// shortNames is a list of suggested short names of the resource.
func (o APIResourceOutput) ShortNames() pulumi.StringArrayOutput {
return o.ApplyT(func(v APIResource) []string { return v.ShortNames }).(pulumi.StringArrayOutput)
}
// singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.
func (o APIResourceOutput) SingularName() pulumi.StringOutput {
return o.ApplyT(func(v APIResource) string { return v.SingularName }).(pulumi.StringOutput)
}
// The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.
func (o APIResourceOutput) StorageVersionHash() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResource) *string { return v.StorageVersionHash }).(pulumi.StringPtrOutput)
}
// verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
func (o APIResourceOutput) Verbs() pulumi.StringArrayOutput {
return o.ApplyT(func(v APIResource) []string { return v.Verbs }).(pulumi.StringArrayOutput)
}
// version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
func (o APIResourceOutput) Version() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResource) *string { return v.Version }).(pulumi.StringPtrOutput)
}
type APIResourceArrayOutput struct{ *pulumi.OutputState }
func (APIResourceArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]APIResource)(nil)).Elem()
}
func (o APIResourceArrayOutput) ToAPIResourceArrayOutput() APIResourceArrayOutput {
return o
}
func (o APIResourceArrayOutput) ToAPIResourceArrayOutputWithContext(ctx context.Context) APIResourceArrayOutput {
return o
}
func (o APIResourceArrayOutput) Index(i pulumi.IntInput) APIResourceOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) APIResource {
return vs[0].([]APIResource)[vs[1].(int)]
}).(APIResourceOutput)
}
// APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
type APIResourceList struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// groupVersion is the group and version this APIResourceList is for.
GroupVersion string `pulumi:"groupVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// resources contains the name of the resources and if they are namespaced.
Resources []APIResource `pulumi:"resources"`
}
// APIResourceListInput is an input type that accepts APIResourceListArgs and APIResourceListOutput values.
// You can construct a concrete instance of `APIResourceListInput` via:
//
// APIResourceListArgs{...}
type APIResourceListInput interface {
pulumi.Input
ToAPIResourceListOutput() APIResourceListOutput
ToAPIResourceListOutputWithContext(context.Context) APIResourceListOutput
}
// APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
type APIResourceListArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// groupVersion is the group and version this APIResourceList is for.
GroupVersion pulumi.StringInput `pulumi:"groupVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// resources contains the name of the resources and if they are namespaced.
Resources APIResourceArrayInput `pulumi:"resources"`
}
func (APIResourceListArgs) ElementType() reflect.Type {
return reflect.TypeOf((*APIResourceList)(nil)).Elem()
}
func (i APIResourceListArgs) ToAPIResourceListOutput() APIResourceListOutput {
return i.ToAPIResourceListOutputWithContext(context.Background())
}
func (i APIResourceListArgs) ToAPIResourceListOutputWithContext(ctx context.Context) APIResourceListOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIResourceListOutput)
}
// APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
type APIResourceListOutput struct{ *pulumi.OutputState }
func (APIResourceListOutput) ElementType() reflect.Type {
return reflect.TypeOf((*APIResourceList)(nil)).Elem()
}
func (o APIResourceListOutput) ToAPIResourceListOutput() APIResourceListOutput {
return o
}
func (o APIResourceListOutput) ToAPIResourceListOutputWithContext(ctx context.Context) APIResourceListOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o APIResourceListOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResourceList) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// groupVersion is the group and version this APIResourceList is for.
func (o APIResourceListOutput) GroupVersion() pulumi.StringOutput {
return o.ApplyT(func(v APIResourceList) string { return v.GroupVersion }).(pulumi.StringOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o APIResourceListOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResourceList) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// resources contains the name of the resources and if they are namespaced.
func (o APIResourceListOutput) Resources() APIResourceArrayOutput {
return o.ApplyT(func(v APIResourceList) []APIResource { return v.Resources }).(APIResourceArrayOutput)
}
// APIResource specifies the name of a resource and whether it is namespaced.
type APIResourcePatch struct {
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
Categories []string `pulumi:"categories"`
// group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".
Group *string `pulumi:"group"`
// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
Kind *string `pulumi:"kind"`
// name is the plural name of the resource.
Name *string `pulumi:"name"`
// namespaced indicates if a resource is namespaced or not.
Namespaced *bool `pulumi:"namespaced"`
// shortNames is a list of suggested short names of the resource.
ShortNames []string `pulumi:"shortNames"`
// singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.
SingularName *string `pulumi:"singularName"`
// The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.
StorageVersionHash *string `pulumi:"storageVersionHash"`
// verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
Verbs []string `pulumi:"verbs"`
// version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
Version *string `pulumi:"version"`
}
// APIResourcePatchInput is an input type that accepts APIResourcePatchArgs and APIResourcePatchOutput values.
// You can construct a concrete instance of `APIResourcePatchInput` via:
//
// APIResourcePatchArgs{...}
type APIResourcePatchInput interface {
pulumi.Input
ToAPIResourcePatchOutput() APIResourcePatchOutput
ToAPIResourcePatchOutputWithContext(context.Context) APIResourcePatchOutput
}
// APIResource specifies the name of a resource and whether it is namespaced.
type APIResourcePatchArgs struct {
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
Categories pulumi.StringArrayInput `pulumi:"categories"`
// group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".
Group pulumi.StringPtrInput `pulumi:"group"`
// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
Kind pulumi.StringPtrInput `pulumi:"kind"`
// name is the plural name of the resource.
Name pulumi.StringPtrInput `pulumi:"name"`
// namespaced indicates if a resource is namespaced or not.
Namespaced pulumi.BoolPtrInput `pulumi:"namespaced"`
// shortNames is a list of suggested short names of the resource.
ShortNames pulumi.StringArrayInput `pulumi:"shortNames"`
// singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.
SingularName pulumi.StringPtrInput `pulumi:"singularName"`
// The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.
StorageVersionHash pulumi.StringPtrInput `pulumi:"storageVersionHash"`
// verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
Verbs pulumi.StringArrayInput `pulumi:"verbs"`
// version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
Version pulumi.StringPtrInput `pulumi:"version"`
}
func (APIResourcePatchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*APIResourcePatch)(nil)).Elem()
}
func (i APIResourcePatchArgs) ToAPIResourcePatchOutput() APIResourcePatchOutput {
return i.ToAPIResourcePatchOutputWithContext(context.Background())
}
func (i APIResourcePatchArgs) ToAPIResourcePatchOutputWithContext(ctx context.Context) APIResourcePatchOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIResourcePatchOutput)
}
// APIResource specifies the name of a resource and whether it is namespaced.
type APIResourcePatchOutput struct{ *pulumi.OutputState }
func (APIResourcePatchOutput) ElementType() reflect.Type {
return reflect.TypeOf((*APIResourcePatch)(nil)).Elem()
}
func (o APIResourcePatchOutput) ToAPIResourcePatchOutput() APIResourcePatchOutput {
return o
}
func (o APIResourcePatchOutput) ToAPIResourcePatchOutputWithContext(ctx context.Context) APIResourcePatchOutput {
return o
}
// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
func (o APIResourcePatchOutput) Categories() pulumi.StringArrayOutput {
return o.ApplyT(func(v APIResourcePatch) []string { return v.Categories }).(pulumi.StringArrayOutput)
}
// group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".
func (o APIResourcePatchOutput) Group() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResourcePatch) *string { return v.Group }).(pulumi.StringPtrOutput)
}
// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
func (o APIResourcePatchOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResourcePatch) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// name is the plural name of the resource.
func (o APIResourcePatchOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResourcePatch) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// namespaced indicates if a resource is namespaced or not.
func (o APIResourcePatchOutput) Namespaced() pulumi.BoolPtrOutput {
return o.ApplyT(func(v APIResourcePatch) *bool { return v.Namespaced }).(pulumi.BoolPtrOutput)
}
// shortNames is a list of suggested short names of the resource.
func (o APIResourcePatchOutput) ShortNames() pulumi.StringArrayOutput {
return o.ApplyT(func(v APIResourcePatch) []string { return v.ShortNames }).(pulumi.StringArrayOutput)
}
// singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.
func (o APIResourcePatchOutput) SingularName() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResourcePatch) *string { return v.SingularName }).(pulumi.StringPtrOutput)
}
// The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.
func (o APIResourcePatchOutput) StorageVersionHash() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResourcePatch) *string { return v.StorageVersionHash }).(pulumi.StringPtrOutput)
}
// verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
func (o APIResourcePatchOutput) Verbs() pulumi.StringArrayOutput {
return o.ApplyT(func(v APIResourcePatch) []string { return v.Verbs }).(pulumi.StringArrayOutput)
}
// version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
func (o APIResourcePatchOutput) Version() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIResourcePatch) *string { return v.Version }).(pulumi.StringPtrOutput)
}
// APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
type APIVersions struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs []ServerAddressByClientCIDR `pulumi:"serverAddressByClientCIDRs"`
// versions are the api versions that are available.
Versions []string `pulumi:"versions"`
}
// APIVersionsInput is an input type that accepts APIVersionsArgs and APIVersionsOutput values.
// You can construct a concrete instance of `APIVersionsInput` via:
//
// APIVersionsArgs{...}
type APIVersionsInput interface {
pulumi.Input
ToAPIVersionsOutput() APIVersionsOutput
ToAPIVersionsOutputWithContext(context.Context) APIVersionsOutput
}
// APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
type APIVersionsArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs ServerAddressByClientCIDRArrayInput `pulumi:"serverAddressByClientCIDRs"`
// versions are the api versions that are available.
Versions pulumi.StringArrayInput `pulumi:"versions"`
}
func (APIVersionsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*APIVersions)(nil)).Elem()
}
func (i APIVersionsArgs) ToAPIVersionsOutput() APIVersionsOutput {
return i.ToAPIVersionsOutputWithContext(context.Background())
}
func (i APIVersionsArgs) ToAPIVersionsOutputWithContext(ctx context.Context) APIVersionsOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIVersionsOutput)
}
// APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
type APIVersionsOutput struct{ *pulumi.OutputState }
func (APIVersionsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*APIVersions)(nil)).Elem()
}
func (o APIVersionsOutput) ToAPIVersionsOutput() APIVersionsOutput {
return o
}
func (o APIVersionsOutput) ToAPIVersionsOutputWithContext(ctx context.Context) APIVersionsOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o APIVersionsOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIVersions) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o APIVersionsOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIVersions) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
func (o APIVersionsOutput) ServerAddressByClientCIDRs() ServerAddressByClientCIDRArrayOutput {
return o.ApplyT(func(v APIVersions) []ServerAddressByClientCIDR { return v.ServerAddressByClientCIDRs }).(ServerAddressByClientCIDRArrayOutput)
}
// versions are the api versions that are available.
func (o APIVersionsOutput) Versions() pulumi.StringArrayOutput {
return o.ApplyT(func(v APIVersions) []string { return v.Versions }).(pulumi.StringArrayOutput)
}
// APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
type APIVersionsPatch struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs []ServerAddressByClientCIDRPatch `pulumi:"serverAddressByClientCIDRs"`
// versions are the api versions that are available.
Versions []string `pulumi:"versions"`
}
// APIVersionsPatchInput is an input type that accepts APIVersionsPatchArgs and APIVersionsPatchOutput values.
// You can construct a concrete instance of `APIVersionsPatchInput` via:
//
// APIVersionsPatchArgs{...}
type APIVersionsPatchInput interface {
pulumi.Input
ToAPIVersionsPatchOutput() APIVersionsPatchOutput
ToAPIVersionsPatchOutputWithContext(context.Context) APIVersionsPatchOutput
}
// APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
type APIVersionsPatchArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
ServerAddressByClientCIDRs ServerAddressByClientCIDRPatchArrayInput `pulumi:"serverAddressByClientCIDRs"`
// versions are the api versions that are available.
Versions pulumi.StringArrayInput `pulumi:"versions"`
}
func (APIVersionsPatchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*APIVersionsPatch)(nil)).Elem()
}
func (i APIVersionsPatchArgs) ToAPIVersionsPatchOutput() APIVersionsPatchOutput {
return i.ToAPIVersionsPatchOutputWithContext(context.Background())
}
func (i APIVersionsPatchArgs) ToAPIVersionsPatchOutputWithContext(ctx context.Context) APIVersionsPatchOutput {
return pulumi.ToOutputWithContext(ctx, i).(APIVersionsPatchOutput)
}
// APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
type APIVersionsPatchOutput struct{ *pulumi.OutputState }
func (APIVersionsPatchOutput) ElementType() reflect.Type {
return reflect.TypeOf((*APIVersionsPatch)(nil)).Elem()
}
func (o APIVersionsPatchOutput) ToAPIVersionsPatchOutput() APIVersionsPatchOutput {
return o
}
func (o APIVersionsPatchOutput) ToAPIVersionsPatchOutputWithContext(ctx context.Context) APIVersionsPatchOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o APIVersionsPatchOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIVersionsPatch) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o APIVersionsPatchOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v APIVersionsPatch) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
func (o APIVersionsPatchOutput) ServerAddressByClientCIDRs() ServerAddressByClientCIDRPatchArrayOutput {
return o.ApplyT(func(v APIVersionsPatch) []ServerAddressByClientCIDRPatch { return v.ServerAddressByClientCIDRs }).(ServerAddressByClientCIDRPatchArrayOutput)
}
// versions are the api versions that are available.
func (o APIVersionsPatchOutput) Versions() pulumi.StringArrayOutput {
return o.ApplyT(func(v APIVersionsPatch) []string { return v.Versions }).(pulumi.StringArrayOutput)
}
// Condition contains details for one aspect of the current state of this API Resource.
type Condition struct {
// lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
LastTransitionTime string `pulumi:"lastTransitionTime"`
// message is a human readable message indicating details about the transition. This may be an empty string.
Message string `pulumi:"message"`
// observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
ObservedGeneration *int `pulumi:"observedGeneration"`
// reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
Reason string `pulumi:"reason"`
// status of the condition, one of True, False, Unknown.
Status string `pulumi:"status"`
// type of condition in CamelCase or in foo.example.com/CamelCase.
Type string `pulumi:"type"`
}
// ConditionInput is an input type that accepts ConditionArgs and ConditionOutput values.
// You can construct a concrete instance of `ConditionInput` via:
//
// ConditionArgs{...}
type ConditionInput interface {
pulumi.Input
ToConditionOutput() ConditionOutput
ToConditionOutputWithContext(context.Context) ConditionOutput
}
// Condition contains details for one aspect of the current state of this API Resource.
type ConditionArgs struct {
// lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
LastTransitionTime pulumi.StringInput `pulumi:"lastTransitionTime"`
// message is a human readable message indicating details about the transition. This may be an empty string.
Message pulumi.StringInput `pulumi:"message"`
// observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
ObservedGeneration pulumi.IntPtrInput `pulumi:"observedGeneration"`
// reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
Reason pulumi.StringInput `pulumi:"reason"`
// status of the condition, one of True, False, Unknown.
Status pulumi.StringInput `pulumi:"status"`
// type of condition in CamelCase or in foo.example.com/CamelCase.
Type pulumi.StringInput `pulumi:"type"`
}
func (ConditionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*Condition)(nil)).Elem()
}
func (i ConditionArgs) ToConditionOutput() ConditionOutput {
return i.ToConditionOutputWithContext(context.Background())
}
func (i ConditionArgs) ToConditionOutputWithContext(ctx context.Context) ConditionOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConditionOutput)
}
// ConditionArrayInput is an input type that accepts ConditionArray and ConditionArrayOutput values.
// You can construct a concrete instance of `ConditionArrayInput` via:
//
// ConditionArray{ ConditionArgs{...} }
type ConditionArrayInput interface {
pulumi.Input
ToConditionArrayOutput() ConditionArrayOutput
ToConditionArrayOutputWithContext(context.Context) ConditionArrayOutput
}
type ConditionArray []ConditionInput
func (ConditionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]Condition)(nil)).Elem()
}
func (i ConditionArray) ToConditionArrayOutput() ConditionArrayOutput {
return i.ToConditionArrayOutputWithContext(context.Background())
}
func (i ConditionArray) ToConditionArrayOutputWithContext(ctx context.Context) ConditionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ConditionArrayOutput)
}
// Condition contains details for one aspect of the current state of this API Resource.
type ConditionOutput struct{ *pulumi.OutputState }
func (ConditionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*Condition)(nil)).Elem()
}
func (o ConditionOutput) ToConditionOutput() ConditionOutput {
return o
}
func (o ConditionOutput) ToConditionOutputWithContext(ctx context.Context) ConditionOutput {
return o
}
// lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
func (o ConditionOutput) LastTransitionTime() pulumi.StringOutput {
return o.ApplyT(func(v Condition) string { return v.LastTransitionTime }).(pulumi.StringOutput)
}
// message is a human readable message indicating details about the transition. This may be an empty string.
func (o ConditionOutput) Message() pulumi.StringOutput {
return o.ApplyT(func(v Condition) string { return v.Message }).(pulumi.StringOutput)
}
// observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
func (o ConditionOutput) ObservedGeneration() pulumi.IntPtrOutput {