-
Notifications
You must be signed in to change notification settings - Fork 69
/
zz_eventsubscription_types.go
executable file
·694 lines (510 loc) · 28.3 KB
/
zz_eventsubscription_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AdvancedFilterObservation struct {
}
type AdvancedFilterParameters struct {
// Compares a value of an event using a single boolean value.
// +kubebuilder:validation:Optional
BoolEquals []BoolEqualsParameters `json:"boolEquals,omitempty" tf:"bool_equals,omitempty"`
// Evaluates if a value of an event isn't NULL or undefined.
// +kubebuilder:validation:Optional
IsNotNull []IsNotNullParameters `json:"isNotNull,omitempty" tf:"is_not_null,omitempty"`
// Evaluates if a value of an event is NULL or undefined.
// +kubebuilder:validation:Optional
IsNullOrUndefined []IsNullOrUndefinedParameters `json:"isNullOrUndefined,omitempty" tf:"is_null_or_undefined,omitempty"`
// Compares a value of an event using a single floating point number.
// +kubebuilder:validation:Optional
NumberGreaterThan []NumberGreaterThanParameters `json:"numberGreaterThan,omitempty" tf:"number_greater_than,omitempty"`
// Compares a value of an event using a single floating point number.
// +kubebuilder:validation:Optional
NumberGreaterThanOrEquals []NumberGreaterThanOrEqualsParameters `json:"numberGreaterThanOrEquals,omitempty" tf:"number_greater_than_or_equals,omitempty"`
// Compares a value of an event using multiple floating point numbers.
// +kubebuilder:validation:Optional
NumberIn []NumberInParameters `json:"numberIn,omitempty" tf:"number_in,omitempty"`
// Compares a value of an event using multiple floating point number ranges.
// +kubebuilder:validation:Optional
NumberInRange []NumberInRangeParameters `json:"numberInRange,omitempty" tf:"number_in_range,omitempty"`
// Compares a value of an event using a single floating point number.
// +kubebuilder:validation:Optional
NumberLessThan []NumberLessThanParameters `json:"numberLessThan,omitempty" tf:"number_less_than,omitempty"`
// Compares a value of an event using a single floating point number.
// +kubebuilder:validation:Optional
NumberLessThanOrEquals []NumberLessThanOrEqualsParameters `json:"numberLessThanOrEquals,omitempty" tf:"number_less_than_or_equals,omitempty"`
// Compares a value of an event using multiple floating point numbers.
// +kubebuilder:validation:Optional
NumberNotIn []NumberNotInParameters `json:"numberNotIn,omitempty" tf:"number_not_in,omitempty"`
// Compares a value of an event using multiple floating point number ranges.
// +kubebuilder:validation:Optional
NumberNotInRange []NumberNotInRangeParameters `json:"numberNotInRange,omitempty" tf:"number_not_in_range,omitempty"`
// Compares a value of an event using multiple string values.
// +kubebuilder:validation:Optional
StringBeginsWith []StringBeginsWithParameters `json:"stringBeginsWith,omitempty" tf:"string_begins_with,omitempty"`
// Compares a value of an event using multiple string values.
// +kubebuilder:validation:Optional
StringContains []StringContainsParameters `json:"stringContains,omitempty" tf:"string_contains,omitempty"`
// Compares a value of an event using multiple string values.
// +kubebuilder:validation:Optional
StringEndsWith []StringEndsWithParameters `json:"stringEndsWith,omitempty" tf:"string_ends_with,omitempty"`
// Compares a value of an event using multiple string values.
// +kubebuilder:validation:Optional
StringIn []StringInParameters `json:"stringIn,omitempty" tf:"string_in,omitempty"`
// Compares a value of an event using multiple string values.
// +kubebuilder:validation:Optional
StringNotBeginsWith []StringNotBeginsWithParameters `json:"stringNotBeginsWith,omitempty" tf:"string_not_begins_with,omitempty"`
// Compares a value of an event using multiple string values.
// +kubebuilder:validation:Optional
StringNotContains []StringNotContainsParameters `json:"stringNotContains,omitempty" tf:"string_not_contains,omitempty"`
// Compares a value of an event using multiple string values.
// +kubebuilder:validation:Optional
StringNotEndsWith []StringNotEndsWithParameters `json:"stringNotEndsWith,omitempty" tf:"string_not_ends_with,omitempty"`
// Compares a value of an event using multiple string values.
// +kubebuilder:validation:Optional
StringNotIn []StringNotInParameters `json:"stringNotIn,omitempty" tf:"string_not_in,omitempty"`
}
type AzureFunctionEndpointObservation struct {
}
type AzureFunctionEndpointParameters struct {
// Specifies the ID of the Function where the Event Subscription will receive events. This must be the functions ID in format {function_app.id}/functions/{name}.
// +kubebuilder:validation:Required
FunctionID *string `json:"functionId" tf:"function_id,omitempty"`
// Maximum number of events per batch.
// +kubebuilder:validation:Optional
MaxEventsPerBatch *float64 `json:"maxEventsPerBatch,omitempty" tf:"max_events_per_batch,omitempty"`
// Preferred batch size in Kilobytes.
// +kubebuilder:validation:Optional
PreferredBatchSizeInKilobytes *float64 `json:"preferredBatchSizeInKilobytes,omitempty" tf:"preferred_batch_size_in_kilobytes,omitempty"`
}
type BoolEqualsObservation struct {
}
type BoolEqualsParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies a single value to compare to when using a single value operator.
// +kubebuilder:validation:Required
Value *bool `json:"value" tf:"value,omitempty"`
}
type DeadLetterIdentityObservation struct {
}
type DeadLetterIdentityParameters struct {
// Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is SystemAssigned, UserAssigned.
// +kubebuilder:validation:Required
Type *string `json:"type" tf:"type,omitempty"`
// The user identity associated with the resource.
// +kubebuilder:validation:Optional
UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty" tf:"user_assigned_identity,omitempty"`
}
type DeliveryIdentityObservation struct {
}
type DeliveryIdentityParameters struct {
// Specifies the type of Managed Service Identity that is used for event delivery. Allowed value is SystemAssigned, UserAssigned.
// +kubebuilder:validation:Required
Type *string `json:"type" tf:"type,omitempty"`
// The user identity associated with the resource.
// +kubebuilder:validation:Optional
UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty" tf:"user_assigned_identity,omitempty"`
}
type DeliveryPropertyObservation struct {
}
type DeliveryPropertyParameters struct {
// The name of the header to send on to the destination
// +kubebuilder:validation:Required
HeaderName *string `json:"headerName" tf:"header_name,omitempty"`
// True if the value is a secret and should be protected, otherwise false. If True, then this value won't be returned from Azure API calls
// +kubebuilder:validation:Optional
Secret *bool `json:"secret,omitempty" tf:"secret,omitempty"`
// If the type is Dynamic, then provide the payload field to be used as the value. Valid source fields differ by subscription type.
// +kubebuilder:validation:Optional
SourceField *string `json:"sourceField,omitempty" tf:"source_field,omitempty"`
// Either Static or Dynamic
// +kubebuilder:validation:Required
Type *string `json:"type" tf:"type,omitempty"`
// If the type is Static, then provide the value to use
// +kubebuilder:validation:Optional
ValueSecretRef *v1.SecretKeySelector `json:"valueSecretRef,omitempty" tf:"-"`
}
type EventSubscriptionObservation struct {
// The ID of the EventGrid Event Subscription.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// A webhook_endpoint block as defined below.
// +kubebuilder:validation:Optional
WebhookEndpoint []WebhookEndpointObservation `json:"webhookEndpoint,omitempty" tf:"webhook_endpoint,omitempty"`
}
type EventSubscriptionParameters struct {
// A advanced_filter block as defined below.
// +kubebuilder:validation:Optional
AdvancedFilter []AdvancedFilterParameters `json:"advancedFilter,omitempty" tf:"advanced_filter,omitempty"`
// Specifies whether advanced filters should be evaluated against an array of values instead of expecting a singular value. Defaults to false.
// +kubebuilder:validation:Optional
AdvancedFilteringOnArraysEnabled *bool `json:"advancedFilteringOnArraysEnabled,omitempty" tf:"advanced_filtering_on_arrays_enabled,omitempty"`
// An azure_function_endpoint block as defined below.
// +kubebuilder:validation:Optional
AzureFunctionEndpoint []AzureFunctionEndpointParameters `json:"azureFunctionEndpoint,omitempty" tf:"azure_function_endpoint,omitempty"`
// A dead_letter_identity block as defined below.
// +kubebuilder:validation:Optional
DeadLetterIdentity []DeadLetterIdentityParameters `json:"deadLetterIdentity,omitempty" tf:"dead_letter_identity,omitempty"`
// A delivery_identity block as defined below.
// +kubebuilder:validation:Optional
DeliveryIdentity []DeliveryIdentityParameters `json:"deliveryIdentity,omitempty" tf:"delivery_identity,omitempty"`
// One or more delivery_property blocks as defined below.
// +kubebuilder:validation:Optional
DeliveryProperty []DeliveryPropertyParameters `json:"deliveryProperty,omitempty" tf:"delivery_property,omitempty"`
// Specifies the event delivery schema for the event subscription. Possible values include: EventGridSchema, CloudEventSchemaV1_0, CustomInputSchema. Defaults to EventGridSchema. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
EventDeliverySchema *string `json:"eventDeliverySchema,omitempty" tf:"event_delivery_schema,omitempty"`
// Specifies the id where the Event Hub is located.
// +kubebuilder:validation:Optional
EventHubEndpointID *string `json:"eventhubEndpointId,omitempty" tf:"eventhub_endpoint_id,omitempty"`
// Specifies the expiration time of the event subscription (Datetime Format RFC 3339).
// +kubebuilder:validation:Optional
ExpirationTimeUtc *string `json:"expirationTimeUtc,omitempty" tf:"expiration_time_utc,omitempty"`
// Specifies the id where the Hybrid Connection is located.
// +kubebuilder:validation:Optional
HybridConnectionEndpointID *string `json:"hybridConnectionEndpointId,omitempty" tf:"hybrid_connection_endpoint_id,omitempty"`
// A list of applicable event types that need to be part of the event subscription.
// +kubebuilder:validation:Optional
IncludedEventTypes []*string `json:"includedEventTypes,omitempty" tf:"included_event_types,omitempty"`
// A list of labels to assign to the event subscription.
// +kubebuilder:validation:Optional
Labels []*string `json:"labels,omitempty" tf:"labels,omitempty"`
// Specifies the name of the EventGrid Event Subscription resource. Changing this forces a new resource to be created.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// A retry_policy block as defined below.
// +kubebuilder:validation:Optional
RetryPolicy []RetryPolicyParameters `json:"retryPolicy,omitempty" tf:"retry_policy,omitempty"`
// Specifies the scope at which the EventGrid Event Subscription should be created. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`
// Reference to a ResourceGroup in azure to populate scope.
// +kubebuilder:validation:Optional
ScopeRef *v1.Reference `json:"scopeRef,omitempty" tf:"-"`
// Selector for a ResourceGroup in azure to populate scope.
// +kubebuilder:validation:Optional
ScopeSelector *v1.Selector `json:"scopeSelector,omitempty" tf:"-"`
// Specifies the id where the Service Bus Queue is located.
// +kubebuilder:validation:Optional
ServiceBusQueueEndpointID *string `json:"serviceBusQueueEndpointId,omitempty" tf:"service_bus_queue_endpoint_id,omitempty"`
// Specifies the id where the Service Bus Topic is located.
// +kubebuilder:validation:Optional
ServiceBusTopicEndpointID *string `json:"serviceBusTopicEndpointId,omitempty" tf:"service_bus_topic_endpoint_id,omitempty"`
// A storage_blob_dead_letter_destination block as defined below.
// +kubebuilder:validation:Optional
StorageBlobDeadLetterDestination []StorageBlobDeadLetterDestinationParameters `json:"storageBlobDeadLetterDestination,omitempty" tf:"storage_blob_dead_letter_destination,omitempty"`
// A storage_queue_endpoint block as defined below.
// +kubebuilder:validation:Optional
StorageQueueEndpoint []StorageQueueEndpointParameters `json:"storageQueueEndpoint,omitempty" tf:"storage_queue_endpoint,omitempty"`
// A subject_filter block as defined below.
// +kubebuilder:validation:Optional
SubjectFilter []SubjectFilterParameters `json:"subjectFilter,omitempty" tf:"subject_filter,omitempty"`
// A webhook_endpoint block as defined below.
// +kubebuilder:validation:Optional
WebhookEndpoint []WebhookEndpointParameters `json:"webhookEndpoint,omitempty" tf:"webhook_endpoint,omitempty"`
}
type IsNotNullObservation struct {
}
type IsNotNullParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
}
type IsNullOrUndefinedObservation struct {
}
type IsNullOrUndefinedParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
}
type NumberGreaterThanObservation struct {
}
type NumberGreaterThanOrEqualsObservation struct {
}
type NumberGreaterThanOrEqualsParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies a single value to compare to when using a single value operator.
// +kubebuilder:validation:Required
Value *float64 `json:"value" tf:"value,omitempty"`
}
type NumberGreaterThanParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies a single value to compare to when using a single value operator.
// +kubebuilder:validation:Required
Value *float64 `json:"value" tf:"value,omitempty"`
}
type NumberInObservation struct {
}
type NumberInParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*float64 `json:"values" tf:"values,omitempty"`
}
type NumberInRangeObservation struct {
}
type NumberInRangeParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values [][]*float64 `json:"values" tf:"values,omitempty"`
}
type NumberLessThanObservation struct {
}
type NumberLessThanOrEqualsObservation struct {
}
type NumberLessThanOrEqualsParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies a single value to compare to when using a single value operator.
// +kubebuilder:validation:Required
Value *float64 `json:"value" tf:"value,omitempty"`
}
type NumberLessThanParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies a single value to compare to when using a single value operator.
// +kubebuilder:validation:Required
Value *float64 `json:"value" tf:"value,omitempty"`
}
type NumberNotInObservation struct {
}
type NumberNotInParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*float64 `json:"values" tf:"values,omitempty"`
}
type NumberNotInRangeObservation struct {
}
type NumberNotInRangeParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values [][]*float64 `json:"values" tf:"values,omitempty"`
}
type RetryPolicyObservation struct {
}
type RetryPolicyParameters struct {
// Specifies the time to live (in minutes) for events. Supported range is 1 to 1440. See official documentation for more details.
// +kubebuilder:validation:Required
EventTimeToLive *float64 `json:"eventTimeToLive" tf:"event_time_to_live,omitempty"`
// Specifies the maximum number of delivery retry attempts for events.
// +kubebuilder:validation:Required
MaxDeliveryAttempts *float64 `json:"maxDeliveryAttempts" tf:"max_delivery_attempts,omitempty"`
}
type StorageBlobDeadLetterDestinationObservation struct {
}
type StorageBlobDeadLetterDestinationParameters struct {
// Specifies the id of the storage account id where the storage blob is located.
// +kubebuilder:validation:Required
StorageAccountID *string `json:"storageAccountId" tf:"storage_account_id,omitempty"`
// Specifies the name of the Storage blob container that is the destination of the deadletter events.
// +kubebuilder:validation:Required
StorageBlobContainerName *string `json:"storageBlobContainerName" tf:"storage_blob_container_name,omitempty"`
}
type StorageQueueEndpointObservation struct {
}
type StorageQueueEndpointParameters struct {
// Storage queue message time to live in seconds.
// +kubebuilder:validation:Optional
QueueMessageTimeToLiveInSeconds *float64 `json:"queueMessageTimeToLiveInSeconds,omitempty" tf:"queue_message_time_to_live_in_seconds,omitempty"`
// Specifies the name of the storage queue where the Event Subscription will receive events.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta1.Queue
// +kubebuilder:validation:Optional
QueueName *string `json:"queueName,omitempty" tf:"queue_name,omitempty"`
// Reference to a Queue in storage to populate queueName.
// +kubebuilder:validation:Optional
QueueNameRef *v1.Reference `json:"queueNameRef,omitempty" tf:"-"`
// Selector for a Queue in storage to populate queueName.
// +kubebuilder:validation:Optional
QueueNameSelector *v1.Selector `json:"queueNameSelector,omitempty" tf:"-"`
// Specifies the id of the storage account id where the storage queue is located.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta1.Account
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
StorageAccountID *string `json:"storageAccountId,omitempty" tf:"storage_account_id,omitempty"`
// Reference to a Account in storage to populate storageAccountId.
// +kubebuilder:validation:Optional
StorageAccountIDRef *v1.Reference `json:"storageAccountIdRef,omitempty" tf:"-"`
// Selector for a Account in storage to populate storageAccountId.
// +kubebuilder:validation:Optional
StorageAccountIDSelector *v1.Selector `json:"storageAccountIdSelector,omitempty" tf:"-"`
}
type StringBeginsWithObservation struct {
}
type StringBeginsWithParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type StringContainsObservation struct {
}
type StringContainsParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type StringEndsWithObservation struct {
}
type StringEndsWithParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type StringInObservation struct {
}
type StringInParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type StringNotBeginsWithObservation struct {
}
type StringNotBeginsWithParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type StringNotContainsObservation struct {
}
type StringNotContainsParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type StringNotEndsWithObservation struct {
}
type StringNotEndsWithParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type StringNotInObservation struct {
}
type StringNotInParameters struct {
// Specifies the field within the event data that you want to use for filtering. Type of the field can be a number, boolean, or string.
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Specifies an array of values to compare to when using a multiple values operator.
// +kubebuilder:validation:Required
Values []*string `json:"values" tf:"values,omitempty"`
}
type SubjectFilterObservation struct {
}
type SubjectFilterParameters struct {
// Specifies if subject_begins_with and subject_ends_with case sensitive. This value
// +kubebuilder:validation:Optional
CaseSensitive *bool `json:"caseSensitive,omitempty" tf:"case_sensitive,omitempty"`
// A string to filter events for an event subscription based on a resource path prefix.
// +kubebuilder:validation:Optional
SubjectBeginsWith *string `json:"subjectBeginsWith,omitempty" tf:"subject_begins_with,omitempty"`
// A string to filter events for an event subscription based on a resource path suffix.
// +kubebuilder:validation:Optional
SubjectEndsWith *string `json:"subjectEndsWith,omitempty" tf:"subject_ends_with,omitempty"`
}
type WebhookEndpointObservation struct {
// (Computed) The base url of the webhook where the Event Subscription will receive events.
BaseURL *string `json:"baseUrl,omitempty" tf:"base_url,omitempty"`
}
type WebhookEndpointParameters struct {
// The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.
// +kubebuilder:validation:Optional
ActiveDirectoryAppIDOrURI *string `json:"activeDirectoryAppIdOrUri,omitempty" tf:"active_directory_app_id_or_uri,omitempty"`
// The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.
// +kubebuilder:validation:Optional
ActiveDirectoryTenantID *string `json:"activeDirectoryTenantId,omitempty" tf:"active_directory_tenant_id,omitempty"`
// Maximum number of events per batch.
// +kubebuilder:validation:Optional
MaxEventsPerBatch *float64 `json:"maxEventsPerBatch,omitempty" tf:"max_events_per_batch,omitempty"`
// Preferred batch size in Kilobytes.
// +kubebuilder:validation:Optional
PreferredBatchSizeInKilobytes *float64 `json:"preferredBatchSizeInKilobytes,omitempty" tf:"preferred_batch_size_in_kilobytes,omitempty"`
// Specifies the url of the webhook where the Event Subscription will receive events.
// +kubebuilder:validation:Required
URL *string `json:"url" tf:"url,omitempty"`
}
// EventSubscriptionSpec defines the desired state of EventSubscription
type EventSubscriptionSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider EventSubscriptionParameters `json:"forProvider"`
}
// EventSubscriptionStatus defines the observed state of EventSubscription.
type EventSubscriptionStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider EventSubscriptionObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// EventSubscription is the Schema for the EventSubscriptions API. Manages an EventGrid Event Subscription
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure}
type EventSubscription struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec EventSubscriptionSpec `json:"spec"`
Status EventSubscriptionStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// EventSubscriptionList contains a list of EventSubscriptions
type EventSubscriptionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []EventSubscription `json:"items"`
}
// Repository type metadata.
var (
EventSubscription_Kind = "EventSubscription"
EventSubscription_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: EventSubscription_Kind}.String()
EventSubscription_KindAPIVersion = EventSubscription_Kind + "." + CRDGroupVersion.String()
EventSubscription_GroupVersionKind = CRDGroupVersion.WithKind(EventSubscription_Kind)
)
func init() {
SchemeBuilder.Register(&EventSubscription{}, &EventSubscriptionList{})
}