/
zz_webpubsubhub_types.go
executable file
·337 lines (254 loc) · 16.9 KB
/
zz_webpubsubhub_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
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// 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 AuthInitParameters struct {
// Specify the identity ID of the target resource.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/managedidentity/v1beta1.UserAssignedIdentity
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
ManagedIdentityID *string `json:"managedIdentityId,omitempty" tf:"managed_identity_id,omitempty"`
// Reference to a UserAssignedIdentity in managedidentity to populate managedIdentityId.
// +kubebuilder:validation:Optional
ManagedIdentityIDRef *v1.Reference `json:"managedIdentityIdRef,omitempty" tf:"-"`
// Selector for a UserAssignedIdentity in managedidentity to populate managedIdentityId.
// +kubebuilder:validation:Optional
ManagedIdentityIDSelector *v1.Selector `json:"managedIdentityIdSelector,omitempty" tf:"-"`
}
type AuthObservation struct {
// Specify the identity ID of the target resource.
ManagedIdentityID *string `json:"managedIdentityId,omitempty" tf:"managed_identity_id,omitempty"`
}
type AuthParameters struct {
// Specify the identity ID of the target resource.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/managedidentity/v1beta1.UserAssignedIdentity
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
ManagedIdentityID *string `json:"managedIdentityId,omitempty" tf:"managed_identity_id,omitempty"`
// Reference to a UserAssignedIdentity in managedidentity to populate managedIdentityId.
// +kubebuilder:validation:Optional
ManagedIdentityIDRef *v1.Reference `json:"managedIdentityIdRef,omitempty" tf:"-"`
// Selector for a UserAssignedIdentity in managedidentity to populate managedIdentityId.
// +kubebuilder:validation:Optional
ManagedIdentityIDSelector *v1.Selector `json:"managedIdentityIdSelector,omitempty" tf:"-"`
}
type EventHandlerInitParameters struct {
// An auth block as defined below.
Auth []AuthInitParameters `json:"auth,omitempty" tf:"auth,omitempty"`
// Specifies the list of system events. Supported values are connect, connected and disconnected.
// +listType=set
SystemEvents []*string `json:"systemEvents,omitempty" tf:"system_events,omitempty"`
// The Event Handler URL Template. Two predefined parameters {hub} and {event} are available to use in the template. The value of the EventHandler URL is dynamically calculated when the client request comes in. Example: http://example.com/api/{hub}/{event}.
URLTemplate *string `json:"urlTemplate,omitempty" tf:"url_template,omitempty"`
// Specifies the matching event names. There are 3 kind of patterns supported: * * matches any event name * , Combine multiple events with , for example event1,event2, it matches event event1 and event2 * The single event name, for example event1, it matches event1.
UserEventPattern *string `json:"userEventPattern,omitempty" tf:"user_event_pattern,omitempty"`
}
type EventHandlerObservation struct {
// An auth block as defined below.
Auth []AuthObservation `json:"auth,omitempty" tf:"auth,omitempty"`
// Specifies the list of system events. Supported values are connect, connected and disconnected.
// +listType=set
SystemEvents []*string `json:"systemEvents,omitempty" tf:"system_events,omitempty"`
// The Event Handler URL Template. Two predefined parameters {hub} and {event} are available to use in the template. The value of the EventHandler URL is dynamically calculated when the client request comes in. Example: http://example.com/api/{hub}/{event}.
URLTemplate *string `json:"urlTemplate,omitempty" tf:"url_template,omitempty"`
// Specifies the matching event names. There are 3 kind of patterns supported: * * matches any event name * , Combine multiple events with , for example event1,event2, it matches event event1 and event2 * The single event name, for example event1, it matches event1.
UserEventPattern *string `json:"userEventPattern,omitempty" tf:"user_event_pattern,omitempty"`
}
type EventHandlerParameters struct {
// An auth block as defined below.
// +kubebuilder:validation:Optional
Auth []AuthParameters `json:"auth,omitempty" tf:"auth,omitempty"`
// Specifies the list of system events. Supported values are connect, connected and disconnected.
// +kubebuilder:validation:Optional
// +listType=set
SystemEvents []*string `json:"systemEvents,omitempty" tf:"system_events,omitempty"`
// The Event Handler URL Template. Two predefined parameters {hub} and {event} are available to use in the template. The value of the EventHandler URL is dynamically calculated when the client request comes in. Example: http://example.com/api/{hub}/{event}.
// +kubebuilder:validation:Optional
URLTemplate *string `json:"urlTemplate" tf:"url_template,omitempty"`
// Specifies the matching event names. There are 3 kind of patterns supported: * * matches any event name * , Combine multiple events with , for example event1,event2, it matches event event1 and event2 * The single event name, for example event1, it matches event1.
// +kubebuilder:validation:Optional
UserEventPattern *string `json:"userEventPattern,omitempty" tf:"user_event_pattern,omitempty"`
}
type EventListenerInitParameters struct {
// Specifies the event hub name to receive the events.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHub
EventHubName *string `json:"eventhubName,omitempty" tf:"eventhub_name,omitempty"`
// Reference to a EventHub in eventhub to populate eventhubName.
// +kubebuilder:validation:Optional
EventHubNameRef *v1.Reference `json:"eventhubNameRef,omitempty" tf:"-"`
// Selector for a EventHub in eventhub to populate eventhubName.
// +kubebuilder:validation:Optional
EventHubNameSelector *v1.Selector `json:"eventhubNameSelector,omitempty" tf:"-"`
// Specifies the event hub namespace name to receive the events.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHubNamespace
EventHubNamespaceName *string `json:"eventhubNamespaceName,omitempty" tf:"eventhub_namespace_name,omitempty"`
// Reference to a EventHubNamespace in eventhub to populate eventhubNamespaceName.
// +kubebuilder:validation:Optional
EventHubNamespaceNameRef *v1.Reference `json:"eventhubNamespaceNameRef,omitempty" tf:"-"`
// Selector for a EventHubNamespace in eventhub to populate eventhubNamespaceName.
// +kubebuilder:validation:Optional
EventHubNamespaceNameSelector *v1.Selector `json:"eventhubNamespaceNameSelector,omitempty" tf:"-"`
// Specifies the list of system events. Supported values are connected and disconnected.
SystemEventNameFilter []*string `json:"systemEventNameFilter,omitempty" tf:"system_event_name_filter,omitempty"`
// Specifies the list of matching user event names. ["*"] can be used to match all events.
UserEventNameFilter []*string `json:"userEventNameFilter,omitempty" tf:"user_event_name_filter,omitempty"`
}
type EventListenerObservation struct {
// Specifies the event hub name to receive the events.
EventHubName *string `json:"eventhubName,omitempty" tf:"eventhub_name,omitempty"`
// Specifies the event hub namespace name to receive the events.
EventHubNamespaceName *string `json:"eventhubNamespaceName,omitempty" tf:"eventhub_namespace_name,omitempty"`
// Specifies the list of system events. Supported values are connected and disconnected.
SystemEventNameFilter []*string `json:"systemEventNameFilter,omitempty" tf:"system_event_name_filter,omitempty"`
// Specifies the list of matching user event names. ["*"] can be used to match all events.
UserEventNameFilter []*string `json:"userEventNameFilter,omitempty" tf:"user_event_name_filter,omitempty"`
}
type EventListenerParameters struct {
// Specifies the event hub name to receive the events.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHub
// +kubebuilder:validation:Optional
EventHubName *string `json:"eventhubName,omitempty" tf:"eventhub_name,omitempty"`
// Reference to a EventHub in eventhub to populate eventhubName.
// +kubebuilder:validation:Optional
EventHubNameRef *v1.Reference `json:"eventhubNameRef,omitempty" tf:"-"`
// Selector for a EventHub in eventhub to populate eventhubName.
// +kubebuilder:validation:Optional
EventHubNameSelector *v1.Selector `json:"eventhubNameSelector,omitempty" tf:"-"`
// Specifies the event hub namespace name to receive the events.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/eventhub/v1beta1.EventHubNamespace
// +kubebuilder:validation:Optional
EventHubNamespaceName *string `json:"eventhubNamespaceName,omitempty" tf:"eventhub_namespace_name,omitempty"`
// Reference to a EventHubNamespace in eventhub to populate eventhubNamespaceName.
// +kubebuilder:validation:Optional
EventHubNamespaceNameRef *v1.Reference `json:"eventhubNamespaceNameRef,omitempty" tf:"-"`
// Selector for a EventHubNamespace in eventhub to populate eventhubNamespaceName.
// +kubebuilder:validation:Optional
EventHubNamespaceNameSelector *v1.Selector `json:"eventhubNamespaceNameSelector,omitempty" tf:"-"`
// Specifies the list of system events. Supported values are connected and disconnected.
// +kubebuilder:validation:Optional
SystemEventNameFilter []*string `json:"systemEventNameFilter,omitempty" tf:"system_event_name_filter,omitempty"`
// Specifies the list of matching user event names. ["*"] can be used to match all events.
// +kubebuilder:validation:Optional
UserEventNameFilter []*string `json:"userEventNameFilter,omitempty" tf:"user_event_name_filter,omitempty"`
}
type WebPubsubHubInitParameters struct {
// Is anonymous connections are allowed for this hub? Defaults to false.
// Possible values are true, false.
AnonymousConnectionsEnabled *bool `json:"anonymousConnectionsEnabled,omitempty" tf:"anonymous_connections_enabled,omitempty"`
// An event_handler block as defined below.
EventHandler []EventHandlerInitParameters `json:"eventHandler,omitempty" tf:"event_handler,omitempty"`
// An event_listener block as defined below.
EventListener []EventListenerInitParameters `json:"eventListener,omitempty" tf:"event_listener,omitempty"`
// The name of the Web Pubsub hub service. Changing this forces a new resource to be created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Specifies the id of the Web Pubsub. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/signalrservice/v1beta1.WebPubsub
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
WebPubsubID *string `json:"webPubsubId,omitempty" tf:"web_pubsub_id,omitempty"`
// Reference to a WebPubsub in signalrservice to populate webPubsubId.
// +kubebuilder:validation:Optional
WebPubsubIDRef *v1.Reference `json:"webPubsubIdRef,omitempty" tf:"-"`
// Selector for a WebPubsub in signalrservice to populate webPubsubId.
// +kubebuilder:validation:Optional
WebPubsubIDSelector *v1.Selector `json:"webPubsubIdSelector,omitempty" tf:"-"`
}
type WebPubsubHubObservation struct {
// Is anonymous connections are allowed for this hub? Defaults to false.
// Possible values are true, false.
AnonymousConnectionsEnabled *bool `json:"anonymousConnectionsEnabled,omitempty" tf:"anonymous_connections_enabled,omitempty"`
// An event_handler block as defined below.
EventHandler []EventHandlerObservation `json:"eventHandler,omitempty" tf:"event_handler,omitempty"`
// An event_listener block as defined below.
EventListener []EventListenerObservation `json:"eventListener,omitempty" tf:"event_listener,omitempty"`
// The ID of the Web Pubsub Hub resource.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The name of the Web Pubsub hub service. Changing this forces a new resource to be created.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Specifies the id of the Web Pubsub. Changing this forces a new resource to be created.
WebPubsubID *string `json:"webPubsubId,omitempty" tf:"web_pubsub_id,omitempty"`
}
type WebPubsubHubParameters struct {
// Is anonymous connections are allowed for this hub? Defaults to false.
// Possible values are true, false.
// +kubebuilder:validation:Optional
AnonymousConnectionsEnabled *bool `json:"anonymousConnectionsEnabled,omitempty" tf:"anonymous_connections_enabled,omitempty"`
// An event_handler block as defined below.
// +kubebuilder:validation:Optional
EventHandler []EventHandlerParameters `json:"eventHandler,omitempty" tf:"event_handler,omitempty"`
// An event_listener block as defined below.
// +kubebuilder:validation:Optional
EventListener []EventListenerParameters `json:"eventListener,omitempty" tf:"event_listener,omitempty"`
// The name of the Web Pubsub hub service. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Specifies the id of the Web Pubsub. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/signalrservice/v1beta1.WebPubsub
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
WebPubsubID *string `json:"webPubsubId,omitempty" tf:"web_pubsub_id,omitempty"`
// Reference to a WebPubsub in signalrservice to populate webPubsubId.
// +kubebuilder:validation:Optional
WebPubsubIDRef *v1.Reference `json:"webPubsubIdRef,omitempty" tf:"-"`
// Selector for a WebPubsub in signalrservice to populate webPubsubId.
// +kubebuilder:validation:Optional
WebPubsubIDSelector *v1.Selector `json:"webPubsubIdSelector,omitempty" tf:"-"`
}
// WebPubsubHubSpec defines the desired state of WebPubsubHub
type WebPubsubHubSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider WebPubsubHubParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider WebPubsubHubInitParameters `json:"initProvider,omitempty"`
}
// WebPubsubHubStatus defines the observed state of WebPubsubHub.
type WebPubsubHubStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider WebPubsubHubObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// WebPubsubHub is the Schema for the WebPubsubHubs API. Manages the hub settings for a Web Pubsub service.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,azure}
type WebPubsubHub struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
Spec WebPubsubHubSpec `json:"spec"`
Status WebPubsubHubStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// WebPubsubHubList contains a list of WebPubsubHubs
type WebPubsubHubList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []WebPubsubHub `json:"items"`
}
// Repository type metadata.
var (
WebPubsubHub_Kind = "WebPubsubHub"
WebPubsubHub_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: WebPubsubHub_Kind}.String()
WebPubsubHub_KindAPIVersion = WebPubsubHub_Kind + "." + CRDGroupVersion.String()
WebPubsubHub_GroupVersionKind = CRDGroupVersion.WithKind(WebPubsubHub_Kind)
)
func init() {
SchemeBuilder.Register(&WebPubsubHub{}, &WebPubsubHubList{})
}