-
Notifications
You must be signed in to change notification settings - Fork 113
/
pulumiTypes.go
875 lines (727 loc) · 50.2 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
// 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"
corev1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/core/v1"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
type EventType struct {
// action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.
Action *string `pulumi:"action"`
// 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"`
// deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedCount *int `pulumi:"deprecatedCount"`
// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedFirstTimestamp *string `pulumi:"deprecatedFirstTimestamp"`
// deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedLastTimestamp *string `pulumi:"deprecatedLastTimestamp"`
// deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedSource *corev1.EventSource `pulumi:"deprecatedSource"`
// eventTime is the time when this Event was first observed. It is required.
EventTime string `pulumi:"eventTime"`
// 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"`
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
Note *string `pulumi:"note"`
// reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.
Reason *string `pulumi:"reason"`
// regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.
Regarding *corev1.ObjectReference `pulumi:"regarding"`
// related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.
Related *corev1.ObjectReference `pulumi:"related"`
// reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
ReportingController *string `pulumi:"reportingController"`
// reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
ReportingInstance *string `pulumi:"reportingInstance"`
// series is data about the Event series this event represents or nil if it's a singleton Event.
Series *EventSeries `pulumi:"series"`
// type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.
Type *string `pulumi:"type"`
}
// EventTypeInput is an input type that accepts EventTypeArgs and EventTypeOutput values.
// You can construct a concrete instance of `EventTypeInput` via:
//
// EventTypeArgs{...}
type EventTypeInput interface {
pulumi.Input
ToEventTypeOutput() EventTypeOutput
ToEventTypeOutputWithContext(context.Context) EventTypeOutput
}
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
type EventTypeArgs struct {
// action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.
Action pulumi.StringPtrInput `pulumi:"action"`
// 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"`
// deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedCount pulumi.IntPtrInput `pulumi:"deprecatedCount"`
// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedFirstTimestamp pulumi.StringPtrInput `pulumi:"deprecatedFirstTimestamp"`
// deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedLastTimestamp pulumi.StringPtrInput `pulumi:"deprecatedLastTimestamp"`
// deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedSource corev1.EventSourcePtrInput `pulumi:"deprecatedSource"`
// eventTime is the time when this Event was first observed. It is required.
EventTime pulumi.StringInput `pulumi:"eventTime"`
// 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"`
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
Note pulumi.StringPtrInput `pulumi:"note"`
// reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.
Reason pulumi.StringPtrInput `pulumi:"reason"`
// regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.
Regarding corev1.ObjectReferencePtrInput `pulumi:"regarding"`
// related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.
Related corev1.ObjectReferencePtrInput `pulumi:"related"`
// reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
ReportingController pulumi.StringPtrInput `pulumi:"reportingController"`
// reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
ReportingInstance pulumi.StringPtrInput `pulumi:"reportingInstance"`
// series is data about the Event series this event represents or nil if it's a singleton Event.
Series EventSeriesPtrInput `pulumi:"series"`
// type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.
Type pulumi.StringPtrInput `pulumi:"type"`
}
func (EventTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EventType)(nil)).Elem()
}
func (i EventTypeArgs) ToEventTypeOutput() EventTypeOutput {
return i.ToEventTypeOutputWithContext(context.Background())
}
func (i EventTypeArgs) ToEventTypeOutputWithContext(ctx context.Context) EventTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventTypeOutput)
}
// EventTypeArrayInput is an input type that accepts EventTypeArray and EventTypeArrayOutput values.
// You can construct a concrete instance of `EventTypeArrayInput` via:
//
// EventTypeArray{ EventTypeArgs{...} }
type EventTypeArrayInput interface {
pulumi.Input
ToEventTypeArrayOutput() EventTypeArrayOutput
ToEventTypeArrayOutputWithContext(context.Context) EventTypeArrayOutput
}
type EventTypeArray []EventTypeInput
func (EventTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]EventType)(nil)).Elem()
}
func (i EventTypeArray) ToEventTypeArrayOutput() EventTypeArrayOutput {
return i.ToEventTypeArrayOutputWithContext(context.Background())
}
func (i EventTypeArray) ToEventTypeArrayOutputWithContext(ctx context.Context) EventTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventTypeArrayOutput)
}
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
type EventTypeOutput struct{ *pulumi.OutputState }
func (EventTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EventType)(nil)).Elem()
}
func (o EventTypeOutput) ToEventTypeOutput() EventTypeOutput {
return o
}
func (o EventTypeOutput) ToEventTypeOutputWithContext(ctx context.Context) EventTypeOutput {
return o
}
// action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.
func (o EventTypeOutput) Action() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.Action }).(pulumi.StringPtrOutput)
}
// 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 EventTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
func (o EventTypeOutput) DeprecatedCount() pulumi.IntPtrOutput {
return o.ApplyT(func(v EventType) *int { return v.DeprecatedCount }).(pulumi.IntPtrOutput)
}
// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
func (o EventTypeOutput) DeprecatedFirstTimestamp() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.DeprecatedFirstTimestamp }).(pulumi.StringPtrOutput)
}
// deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
func (o EventTypeOutput) DeprecatedLastTimestamp() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.DeprecatedLastTimestamp }).(pulumi.StringPtrOutput)
}
// deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
func (o EventTypeOutput) DeprecatedSource() corev1.EventSourcePtrOutput {
return o.ApplyT(func(v EventType) *corev1.EventSource { return v.DeprecatedSource }).(corev1.EventSourcePtrOutput)
}
// eventTime is the time when this Event was first observed. It is required.
func (o EventTypeOutput) EventTime() pulumi.StringOutput {
return o.ApplyT(func(v EventType) string { return v.EventTime }).(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 EventTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o EventTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v EventType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
func (o EventTypeOutput) Note() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.Note }).(pulumi.StringPtrOutput)
}
// reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.
func (o EventTypeOutput) Reason() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.Reason }).(pulumi.StringPtrOutput)
}
// regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.
func (o EventTypeOutput) Regarding() corev1.ObjectReferencePtrOutput {
return o.ApplyT(func(v EventType) *corev1.ObjectReference { return v.Regarding }).(corev1.ObjectReferencePtrOutput)
}
// related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.
func (o EventTypeOutput) Related() corev1.ObjectReferencePtrOutput {
return o.ApplyT(func(v EventType) *corev1.ObjectReference { return v.Related }).(corev1.ObjectReferencePtrOutput)
}
// reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
func (o EventTypeOutput) ReportingController() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.ReportingController }).(pulumi.StringPtrOutput)
}
// reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
func (o EventTypeOutput) ReportingInstance() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.ReportingInstance }).(pulumi.StringPtrOutput)
}
// series is data about the Event series this event represents or nil if it's a singleton Event.
func (o EventTypeOutput) Series() EventSeriesPtrOutput {
return o.ApplyT(func(v EventType) *EventSeries { return v.Series }).(EventSeriesPtrOutput)
}
// type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.
func (o EventTypeOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventType) *string { return v.Type }).(pulumi.StringPtrOutput)
}
type EventTypeArrayOutput struct{ *pulumi.OutputState }
func (EventTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]EventType)(nil)).Elem()
}
func (o EventTypeArrayOutput) ToEventTypeArrayOutput() EventTypeArrayOutput {
return o
}
func (o EventTypeArrayOutput) ToEventTypeArrayOutputWithContext(ctx context.Context) EventTypeArrayOutput {
return o
}
func (o EventTypeArrayOutput) Index(i pulumi.IntInput) EventTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) EventType {
return vs[0].([]EventType)[vs[1].(int)]
}).(EventTypeOutput)
}
// EventList is a list of Event objects.
type EventListType 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"`
// items is a list of schema objects.
Items []EventType `pulumi:"items"`
// 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"`
// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// EventListTypeInput is an input type that accepts EventListTypeArgs and EventListTypeOutput values.
// You can construct a concrete instance of `EventListTypeInput` via:
//
// EventListTypeArgs{...}
type EventListTypeInput interface {
pulumi.Input
ToEventListTypeOutput() EventListTypeOutput
ToEventListTypeOutputWithContext(context.Context) EventListTypeOutput
}
// EventList is a list of Event objects.
type EventListTypeArgs 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"`
// items is a list of schema objects.
Items EventTypeArrayInput `pulumi:"items"`
// 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"`
// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (EventListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EventListType)(nil)).Elem()
}
func (i EventListTypeArgs) ToEventListTypeOutput() EventListTypeOutput {
return i.ToEventListTypeOutputWithContext(context.Background())
}
func (i EventListTypeArgs) ToEventListTypeOutputWithContext(ctx context.Context) EventListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventListTypeOutput)
}
// EventList is a list of Event objects.
type EventListTypeOutput struct{ *pulumi.OutputState }
func (EventListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EventListType)(nil)).Elem()
}
func (o EventListTypeOutput) ToEventListTypeOutput() EventListTypeOutput {
return o
}
func (o EventListTypeOutput) ToEventListTypeOutputWithContext(ctx context.Context) EventListTypeOutput {
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 EventListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// items is a list of schema objects.
func (o EventListTypeOutput) Items() EventTypeArrayOutput {
return o.ApplyT(func(v EventListType) []EventType { return v.Items }).(EventTypeArrayOutput)
}
// 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 EventListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o EventListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v EventListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
type EventPatchType struct {
// action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.
Action *string `pulumi:"action"`
// 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"`
// deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedCount *int `pulumi:"deprecatedCount"`
// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedFirstTimestamp *string `pulumi:"deprecatedFirstTimestamp"`
// deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedLastTimestamp *string `pulumi:"deprecatedLastTimestamp"`
// deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedSource *corev1.EventSourcePatch `pulumi:"deprecatedSource"`
// eventTime is the time when this Event was first observed. It is required.
EventTime *string `pulumi:"eventTime"`
// 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"`
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ObjectMetaPatch `pulumi:"metadata"`
// note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
Note *string `pulumi:"note"`
// reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.
Reason *string `pulumi:"reason"`
// regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.
Regarding *corev1.ObjectReferencePatch `pulumi:"regarding"`
// related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.
Related *corev1.ObjectReferencePatch `pulumi:"related"`
// reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
ReportingController *string `pulumi:"reportingController"`
// reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
ReportingInstance *string `pulumi:"reportingInstance"`
// series is data about the Event series this event represents or nil if it's a singleton Event.
Series *EventSeriesPatch `pulumi:"series"`
// type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.
Type *string `pulumi:"type"`
}
// EventPatchTypeInput is an input type that accepts EventPatchTypeArgs and EventPatchTypeOutput values.
// You can construct a concrete instance of `EventPatchTypeInput` via:
//
// EventPatchTypeArgs{...}
type EventPatchTypeInput interface {
pulumi.Input
ToEventPatchTypeOutput() EventPatchTypeOutput
ToEventPatchTypeOutputWithContext(context.Context) EventPatchTypeOutput
}
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
type EventPatchTypeArgs struct {
// action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.
Action pulumi.StringPtrInput `pulumi:"action"`
// 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"`
// deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedCount pulumi.IntPtrInput `pulumi:"deprecatedCount"`
// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedFirstTimestamp pulumi.StringPtrInput `pulumi:"deprecatedFirstTimestamp"`
// deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedLastTimestamp pulumi.StringPtrInput `pulumi:"deprecatedLastTimestamp"`
// deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
DeprecatedSource corev1.EventSourcePatchPtrInput `pulumi:"deprecatedSource"`
// eventTime is the time when this Event was first observed. It is required.
EventTime pulumi.StringPtrInput `pulumi:"eventTime"`
// 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"`
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ObjectMetaPatchPtrInput `pulumi:"metadata"`
// note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
Note pulumi.StringPtrInput `pulumi:"note"`
// reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.
Reason pulumi.StringPtrInput `pulumi:"reason"`
// regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.
Regarding corev1.ObjectReferencePatchPtrInput `pulumi:"regarding"`
// related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.
Related corev1.ObjectReferencePatchPtrInput `pulumi:"related"`
// reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
ReportingController pulumi.StringPtrInput `pulumi:"reportingController"`
// reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
ReportingInstance pulumi.StringPtrInput `pulumi:"reportingInstance"`
// series is data about the Event series this event represents or nil if it's a singleton Event.
Series EventSeriesPatchPtrInput `pulumi:"series"`
// type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.
Type pulumi.StringPtrInput `pulumi:"type"`
}
func (EventPatchTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EventPatchType)(nil)).Elem()
}
func (i EventPatchTypeArgs) ToEventPatchTypeOutput() EventPatchTypeOutput {
return i.ToEventPatchTypeOutputWithContext(context.Background())
}
func (i EventPatchTypeArgs) ToEventPatchTypeOutputWithContext(ctx context.Context) EventPatchTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventPatchTypeOutput)
}
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
type EventPatchTypeOutput struct{ *pulumi.OutputState }
func (EventPatchTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EventPatchType)(nil)).Elem()
}
func (o EventPatchTypeOutput) ToEventPatchTypeOutput() EventPatchTypeOutput {
return o
}
func (o EventPatchTypeOutput) ToEventPatchTypeOutputWithContext(ctx context.Context) EventPatchTypeOutput {
return o
}
// action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.
func (o EventPatchTypeOutput) Action() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.Action }).(pulumi.StringPtrOutput)
}
// 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 EventPatchTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
func (o EventPatchTypeOutput) DeprecatedCount() pulumi.IntPtrOutput {
return o.ApplyT(func(v EventPatchType) *int { return v.DeprecatedCount }).(pulumi.IntPtrOutput)
}
// deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
func (o EventPatchTypeOutput) DeprecatedFirstTimestamp() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.DeprecatedFirstTimestamp }).(pulumi.StringPtrOutput)
}
// deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
func (o EventPatchTypeOutput) DeprecatedLastTimestamp() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.DeprecatedLastTimestamp }).(pulumi.StringPtrOutput)
}
// deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
func (o EventPatchTypeOutput) DeprecatedSource() corev1.EventSourcePatchPtrOutput {
return o.ApplyT(func(v EventPatchType) *corev1.EventSourcePatch { return v.DeprecatedSource }).(corev1.EventSourcePatchPtrOutput)
}
// eventTime is the time when this Event was first observed. It is required.
func (o EventPatchTypeOutput) EventTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.EventTime }).(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 EventPatchTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o EventPatchTypeOutput) Metadata() metav1.ObjectMetaPatchPtrOutput {
return o.ApplyT(func(v EventPatchType) *metav1.ObjectMetaPatch { return v.Metadata }).(metav1.ObjectMetaPatchPtrOutput)
}
// note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
func (o EventPatchTypeOutput) Note() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.Note }).(pulumi.StringPtrOutput)
}
// reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.
func (o EventPatchTypeOutput) Reason() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.Reason }).(pulumi.StringPtrOutput)
}
// regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.
func (o EventPatchTypeOutput) Regarding() corev1.ObjectReferencePatchPtrOutput {
return o.ApplyT(func(v EventPatchType) *corev1.ObjectReferencePatch { return v.Regarding }).(corev1.ObjectReferencePatchPtrOutput)
}
// related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.
func (o EventPatchTypeOutput) Related() corev1.ObjectReferencePatchPtrOutput {
return o.ApplyT(func(v EventPatchType) *corev1.ObjectReferencePatch { return v.Related }).(corev1.ObjectReferencePatchPtrOutput)
}
// reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
func (o EventPatchTypeOutput) ReportingController() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.ReportingController }).(pulumi.StringPtrOutput)
}
// reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
func (o EventPatchTypeOutput) ReportingInstance() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.ReportingInstance }).(pulumi.StringPtrOutput)
}
// series is data about the Event series this event represents or nil if it's a singleton Event.
func (o EventPatchTypeOutput) Series() EventSeriesPatchPtrOutput {
return o.ApplyT(func(v EventPatchType) *EventSeriesPatch { return v.Series }).(EventSeriesPatchPtrOutput)
}
// type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.
func (o EventPatchTypeOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventPatchType) *string { return v.Type }).(pulumi.StringPtrOutput)
}
// EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
type EventSeries struct {
// count is the number of occurrences in this series up to the last heartbeat time.
Count int `pulumi:"count"`
// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
LastObservedTime string `pulumi:"lastObservedTime"`
}
// EventSeriesInput is an input type that accepts EventSeriesArgs and EventSeriesOutput values.
// You can construct a concrete instance of `EventSeriesInput` via:
//
// EventSeriesArgs{...}
type EventSeriesInput interface {
pulumi.Input
ToEventSeriesOutput() EventSeriesOutput
ToEventSeriesOutputWithContext(context.Context) EventSeriesOutput
}
// EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
type EventSeriesArgs struct {
// count is the number of occurrences in this series up to the last heartbeat time.
Count pulumi.IntInput `pulumi:"count"`
// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
LastObservedTime pulumi.StringInput `pulumi:"lastObservedTime"`
}
func (EventSeriesArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EventSeries)(nil)).Elem()
}
func (i EventSeriesArgs) ToEventSeriesOutput() EventSeriesOutput {
return i.ToEventSeriesOutputWithContext(context.Background())
}
func (i EventSeriesArgs) ToEventSeriesOutputWithContext(ctx context.Context) EventSeriesOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventSeriesOutput)
}
func (i EventSeriesArgs) ToEventSeriesPtrOutput() EventSeriesPtrOutput {
return i.ToEventSeriesPtrOutputWithContext(context.Background())
}
func (i EventSeriesArgs) ToEventSeriesPtrOutputWithContext(ctx context.Context) EventSeriesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventSeriesOutput).ToEventSeriesPtrOutputWithContext(ctx)
}
// EventSeriesPtrInput is an input type that accepts EventSeriesArgs, EventSeriesPtr and EventSeriesPtrOutput values.
// You can construct a concrete instance of `EventSeriesPtrInput` via:
//
// EventSeriesArgs{...}
//
// or:
//
// nil
type EventSeriesPtrInput interface {
pulumi.Input
ToEventSeriesPtrOutput() EventSeriesPtrOutput
ToEventSeriesPtrOutputWithContext(context.Context) EventSeriesPtrOutput
}
type eventSeriesPtrType EventSeriesArgs
func EventSeriesPtr(v *EventSeriesArgs) EventSeriesPtrInput {
return (*eventSeriesPtrType)(v)
}
func (*eventSeriesPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**EventSeries)(nil)).Elem()
}
func (i *eventSeriesPtrType) ToEventSeriesPtrOutput() EventSeriesPtrOutput {
return i.ToEventSeriesPtrOutputWithContext(context.Background())
}
func (i *eventSeriesPtrType) ToEventSeriesPtrOutputWithContext(ctx context.Context) EventSeriesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventSeriesPtrOutput)
}
// EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
type EventSeriesOutput struct{ *pulumi.OutputState }
func (EventSeriesOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EventSeries)(nil)).Elem()
}
func (o EventSeriesOutput) ToEventSeriesOutput() EventSeriesOutput {
return o
}
func (o EventSeriesOutput) ToEventSeriesOutputWithContext(ctx context.Context) EventSeriesOutput {
return o
}
func (o EventSeriesOutput) ToEventSeriesPtrOutput() EventSeriesPtrOutput {
return o.ToEventSeriesPtrOutputWithContext(context.Background())
}
func (o EventSeriesOutput) ToEventSeriesPtrOutputWithContext(ctx context.Context) EventSeriesPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v EventSeries) *EventSeries {
return &v
}).(EventSeriesPtrOutput)
}
// count is the number of occurrences in this series up to the last heartbeat time.
func (o EventSeriesOutput) Count() pulumi.IntOutput {
return o.ApplyT(func(v EventSeries) int { return v.Count }).(pulumi.IntOutput)
}
// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
func (o EventSeriesOutput) LastObservedTime() pulumi.StringOutput {
return o.ApplyT(func(v EventSeries) string { return v.LastObservedTime }).(pulumi.StringOutput)
}
type EventSeriesPtrOutput struct{ *pulumi.OutputState }
func (EventSeriesPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**EventSeries)(nil)).Elem()
}
func (o EventSeriesPtrOutput) ToEventSeriesPtrOutput() EventSeriesPtrOutput {
return o
}
func (o EventSeriesPtrOutput) ToEventSeriesPtrOutputWithContext(ctx context.Context) EventSeriesPtrOutput {
return o
}
func (o EventSeriesPtrOutput) Elem() EventSeriesOutput {
return o.ApplyT(func(v *EventSeries) EventSeries {
if v != nil {
return *v
}
var ret EventSeries
return ret
}).(EventSeriesOutput)
}
// count is the number of occurrences in this series up to the last heartbeat time.
func (o EventSeriesPtrOutput) Count() pulumi.IntPtrOutput {
return o.ApplyT(func(v *EventSeries) *int {
if v == nil {
return nil
}
return &v.Count
}).(pulumi.IntPtrOutput)
}
// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
func (o EventSeriesPtrOutput) LastObservedTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v *EventSeries) *string {
if v == nil {
return nil
}
return &v.LastObservedTime
}).(pulumi.StringPtrOutput)
}
// EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
type EventSeriesPatch struct {
// count is the number of occurrences in this series up to the last heartbeat time.
Count *int `pulumi:"count"`
// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
LastObservedTime *string `pulumi:"lastObservedTime"`
}
// EventSeriesPatchInput is an input type that accepts EventSeriesPatchArgs and EventSeriesPatchOutput values.
// You can construct a concrete instance of `EventSeriesPatchInput` via:
//
// EventSeriesPatchArgs{...}
type EventSeriesPatchInput interface {
pulumi.Input
ToEventSeriesPatchOutput() EventSeriesPatchOutput
ToEventSeriesPatchOutputWithContext(context.Context) EventSeriesPatchOutput
}
// EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
type EventSeriesPatchArgs struct {
// count is the number of occurrences in this series up to the last heartbeat time.
Count pulumi.IntPtrInput `pulumi:"count"`
// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
LastObservedTime pulumi.StringPtrInput `pulumi:"lastObservedTime"`
}
func (EventSeriesPatchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EventSeriesPatch)(nil)).Elem()
}
func (i EventSeriesPatchArgs) ToEventSeriesPatchOutput() EventSeriesPatchOutput {
return i.ToEventSeriesPatchOutputWithContext(context.Background())
}
func (i EventSeriesPatchArgs) ToEventSeriesPatchOutputWithContext(ctx context.Context) EventSeriesPatchOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventSeriesPatchOutput)
}
func (i EventSeriesPatchArgs) ToEventSeriesPatchPtrOutput() EventSeriesPatchPtrOutput {
return i.ToEventSeriesPatchPtrOutputWithContext(context.Background())
}
func (i EventSeriesPatchArgs) ToEventSeriesPatchPtrOutputWithContext(ctx context.Context) EventSeriesPatchPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventSeriesPatchOutput).ToEventSeriesPatchPtrOutputWithContext(ctx)
}
// EventSeriesPatchPtrInput is an input type that accepts EventSeriesPatchArgs, EventSeriesPatchPtr and EventSeriesPatchPtrOutput values.
// You can construct a concrete instance of `EventSeriesPatchPtrInput` via:
//
// EventSeriesPatchArgs{...}
//
// or:
//
// nil
type EventSeriesPatchPtrInput interface {
pulumi.Input
ToEventSeriesPatchPtrOutput() EventSeriesPatchPtrOutput
ToEventSeriesPatchPtrOutputWithContext(context.Context) EventSeriesPatchPtrOutput
}
type eventSeriesPatchPtrType EventSeriesPatchArgs
func EventSeriesPatchPtr(v *EventSeriesPatchArgs) EventSeriesPatchPtrInput {
return (*eventSeriesPatchPtrType)(v)
}
func (*eventSeriesPatchPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**EventSeriesPatch)(nil)).Elem()
}
func (i *eventSeriesPatchPtrType) ToEventSeriesPatchPtrOutput() EventSeriesPatchPtrOutput {
return i.ToEventSeriesPatchPtrOutputWithContext(context.Background())
}
func (i *eventSeriesPatchPtrType) ToEventSeriesPatchPtrOutputWithContext(ctx context.Context) EventSeriesPatchPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(EventSeriesPatchPtrOutput)
}
// EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
type EventSeriesPatchOutput struct{ *pulumi.OutputState }
func (EventSeriesPatchOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EventSeriesPatch)(nil)).Elem()
}
func (o EventSeriesPatchOutput) ToEventSeriesPatchOutput() EventSeriesPatchOutput {
return o
}
func (o EventSeriesPatchOutput) ToEventSeriesPatchOutputWithContext(ctx context.Context) EventSeriesPatchOutput {
return o
}
func (o EventSeriesPatchOutput) ToEventSeriesPatchPtrOutput() EventSeriesPatchPtrOutput {
return o.ToEventSeriesPatchPtrOutputWithContext(context.Background())
}
func (o EventSeriesPatchOutput) ToEventSeriesPatchPtrOutputWithContext(ctx context.Context) EventSeriesPatchPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v EventSeriesPatch) *EventSeriesPatch {
return &v
}).(EventSeriesPatchPtrOutput)
}
// count is the number of occurrences in this series up to the last heartbeat time.
func (o EventSeriesPatchOutput) Count() pulumi.IntPtrOutput {
return o.ApplyT(func(v EventSeriesPatch) *int { return v.Count }).(pulumi.IntPtrOutput)
}
// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
func (o EventSeriesPatchOutput) LastObservedTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v EventSeriesPatch) *string { return v.LastObservedTime }).(pulumi.StringPtrOutput)
}
type EventSeriesPatchPtrOutput struct{ *pulumi.OutputState }
func (EventSeriesPatchPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**EventSeriesPatch)(nil)).Elem()
}
func (o EventSeriesPatchPtrOutput) ToEventSeriesPatchPtrOutput() EventSeriesPatchPtrOutput {
return o
}
func (o EventSeriesPatchPtrOutput) ToEventSeriesPatchPtrOutputWithContext(ctx context.Context) EventSeriesPatchPtrOutput {
return o
}
func (o EventSeriesPatchPtrOutput) Elem() EventSeriesPatchOutput {
return o.ApplyT(func(v *EventSeriesPatch) EventSeriesPatch {
if v != nil {
return *v
}
var ret EventSeriesPatch
return ret
}).(EventSeriesPatchOutput)
}
// count is the number of occurrences in this series up to the last heartbeat time.
func (o EventSeriesPatchPtrOutput) Count() pulumi.IntPtrOutput {
return o.ApplyT(func(v *EventSeriesPatch) *int {
if v == nil {
return nil
}
return v.Count
}).(pulumi.IntPtrOutput)
}
// lastObservedTime is the time when last Event from the series was seen before last heartbeat.
func (o EventSeriesPatchPtrOutput) LastObservedTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v *EventSeriesPatch) *string {
if v == nil {
return nil
}
return v.LastObservedTime
}).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*EventTypeInput)(nil)).Elem(), EventTypeArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*EventTypeArrayInput)(nil)).Elem(), EventTypeArray{})
pulumi.RegisterInputType(reflect.TypeOf((*EventListTypeInput)(nil)).Elem(), EventListTypeArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*EventPatchTypeInput)(nil)).Elem(), EventPatchTypeArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*EventSeriesInput)(nil)).Elem(), EventSeriesArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*EventSeriesPtrInput)(nil)).Elem(), EventSeriesArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*EventSeriesPatchInput)(nil)).Elem(), EventSeriesPatchArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*EventSeriesPatchPtrInput)(nil)).Elem(), EventSeriesPatchArgs{})
pulumi.RegisterOutputType(EventTypeOutput{})
pulumi.RegisterOutputType(EventTypeArrayOutput{})
pulumi.RegisterOutputType(EventListTypeOutput{})
pulumi.RegisterOutputType(EventPatchTypeOutput{})
pulumi.RegisterOutputType(EventSeriesOutput{})
pulumi.RegisterOutputType(EventSeriesPtrOutput{})
pulumi.RegisterOutputType(EventSeriesPatchOutput{})
pulumi.RegisterOutputType(EventSeriesPatchPtrOutput{})
}