generated from crossplane/upjet-provider-template
/
zz_ldap_types.go
executable file
·484 lines (379 loc) · 29 KB
/
zz_ldap_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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type LdapInitParameters struct {
// (String) The SASL realm to bind to. Required if authScheme is CRAM_MD5 or DIGEST_MD5
// The SASL realm to bind to. Required if authScheme is CRAM_MD5 or DIGEST_MD5
AuthRealm *string `json:"authRealm,omitempty" tf:"auth_realm,omitempty"`
// (String) Authentication scheme used for connecting to LDAP server
// Authentication scheme used for connecting to LDAP server
AuthSchema *string `json:"authSchema,omitempty" tf:"auth_schema,omitempty"`
// (String) This must be a fully qualified username if simple authentication is used. Required if authScheme other than none.
// This must be a fully qualified username if simple authentication is used. Required if authScheme other than none.
AuthUsername *string `json:"authUsername,omitempty" tf:"auth_username,omitempty"`
// (Number) How long to wait before retrying
// How long to wait before retrying
ConnectionRetryDelaySeconds *float64 `json:"connectionRetryDelaySeconds,omitempty" tf:"connection_retry_delay_seconds,omitempty"`
// (Number) How long to wait before timeout
// How long to wait before timeout
ConnectionTimeoutSeconds *float64 `json:"connectionTimeoutSeconds,omitempty" tf:"connection_timeout_seconds,omitempty"`
// (String) The relative DN where group objects are found (e.g. ou=Group). This value will have the Search base DN value appended to form the full Group search base DN.
// The relative DN where group objects are found (e.g. ou=Group). This value will have the Search base DN value appended to form the full Group search base DN.
GroupBaseDn *string `json:"groupBaseDn,omitempty" tf:"group_base_dn,omitempty"`
// (String) This field specifies the attribute of the Object class that defines the Group ID. Required if groupType is static
// This field specifies the attribute of the Object class that defines the Group ID. Required if groupType is static
GroupIDAttribute *string `json:"groupIdAttribute,omitempty" tf:"group_id_attribute,omitempty"`
// (String) LDAP attribute containing the usernames for the group. Required if groupType is static
// LDAP attribute containing the usernames for the group. Required if groupType is static
GroupMemberAttribute *string `json:"groupMemberAttribute,omitempty" tf:"group_member_attribute,omitempty"`
// (String) The format of user ID stored in the group member attribute. Required if groupType is static
// The format of user ID stored in the group member attribute. Required if groupType is static
GroupMemberFormat *string `json:"groupMemberFormat,omitempty" tf:"group_member_format,omitempty"`
// (String) LDAP class for group objects. Required if groupType is static
// LDAP class for group objects. Required if groupType is static
GroupObjectClass *string `json:"groupObjectClass,omitempty" tf:"group_object_class,omitempty"`
// (Boolean) Are groups located in structures below the group base DN
// Are groups located in structures below the group base DN
GroupSubtree *bool `json:"groupSubtree,omitempty" tf:"group_subtree,omitempty"`
// (String) Defines a type of groups used: static (a group contains a list of users) or dynamic (a user contains a list of groups). Required if ldapGroupsAsRoles is true.
// Defines a type of groups used: static (a group contains a list of users) or dynamic (a user contains a list of groups). Required if ldapGroupsAsRoles is true.
GroupType *string `json:"groupType,omitempty" tf:"group_type,omitempty"`
// (String) LDAP server connection hostname
// LDAP server connection hostname
Host *string `json:"host,omitempty" tf:"host,omitempty"`
// (Boolean) Denotes whether LDAP assigned roles are used as Nexus Repository Manager roles
// Denotes whether LDAP assigned roles are used as Nexus Repository Manager roles
LdapGroupsAsRoles *bool `json:"ldapGroupsAsRoles,omitempty" tf:"ldap_groups_as_roles,omitempty"`
// (Number) How many retry attempts
// How many retry attempts
MaxIncidentCount *float64 `json:"maxIncidentCount,omitempty" tf:"max_incident_count,omitempty"`
// (String) LDAP server name
// LDAP server name
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// (Number) LDAP server connection port to use
// LDAP server connection port to use
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// (String) LDAP server connection Protocol to use
// LDAP server connection Protocol to use
Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`
// (String) LDAP location to be added to the connection URL
// LDAP location to be added to the connection URL
SearchBase *string `json:"searchBase,omitempty" tf:"search_base,omitempty"`
// (Boolean) Whether to use certificates stored in Nexus Repository Manager's truststore
// Whether to use certificates stored in Nexus Repository Manager's truststore
UseTrustStore *bool `json:"useTrustStore,omitempty" tf:"use_trust_store,omitempty"`
// (String) The relative DN where user objects are found (e.g. ou=people). This value will have the Search base DN value appended to form the full User search base DN.
// The relative DN where user objects are found (e.g. ou=people). This value will have the Search base DN value appended to form the full User search base DN.
UserBaseDn *string `json:"userBaseDn,omitempty" tf:"user_base_dn,omitempty"`
// (String) This is used to find an email address given the user ID
// This is used to find an email address given the user ID
UserEmailAddressAttribute *string `json:"userEmailAddressAttribute,omitempty" tf:"user_email_address_attribute,omitempty"`
// (String) This is used to find a user given its user ID
// This is used to find a user given its user ID
UserIDAttribute *string `json:"userIdAttribute,omitempty" tf:"user_id_attribute,omitempty"`
// (String) LDAP search filter to limit user search
// LDAP search filter to limit user search
UserLdapFilter *string `json:"userLdapFilter,omitempty" tf:"user_ldap_filter,omitempty"`
// (String) Set this to the attribute used to store the attribute which holds groups DN in the user object. Required if groupType is dynamic
// Set this to the attribute used to store the attribute which holds groups DN in the user object. Required if groupType is dynamic
UserMemberOfAttribute *string `json:"userMemberOfAttribute,omitempty" tf:"user_member_of_attribute,omitempty"`
// (String) LDAP class for user objects
// LDAP class for user objects
UserObjectClass *string `json:"userObjectClass,omitempty" tf:"user_object_class,omitempty"`
// (String) If this field is blank the user will be authenticated against a bind with the LDAP server
// If this field is blank the user will be authenticated against a bind with the LDAP server
UserPasswordAttribute *string `json:"userPasswordAttribute,omitempty" tf:"user_password_attribute,omitempty"`
// (String) This is used to find a real name given the user ID
// This is used to find a real name given the user ID
UserRealNameAttribute *string `json:"userRealNameAttribute,omitempty" tf:"user_real_name_attribute,omitempty"`
// (Boolean) Are users located in structures below the user base DN?
// Are users located in structures below the user base DN?
UserSubtree *bool `json:"userSubtree,omitempty" tf:"user_subtree,omitempty"`
}
type LdapObservation struct {
// (String) The SASL realm to bind to. Required if authScheme is CRAM_MD5 or DIGEST_MD5
// The SASL realm to bind to. Required if authScheme is CRAM_MD5 or DIGEST_MD5
AuthRealm *string `json:"authRealm,omitempty" tf:"auth_realm,omitempty"`
// (String) Authentication scheme used for connecting to LDAP server
// Authentication scheme used for connecting to LDAP server
AuthSchema *string `json:"authSchema,omitempty" tf:"auth_schema,omitempty"`
// (String) This must be a fully qualified username if simple authentication is used. Required if authScheme other than none.
// This must be a fully qualified username if simple authentication is used. Required if authScheme other than none.
AuthUsername *string `json:"authUsername,omitempty" tf:"auth_username,omitempty"`
// (Number) How long to wait before retrying
// How long to wait before retrying
ConnectionRetryDelaySeconds *float64 `json:"connectionRetryDelaySeconds,omitempty" tf:"connection_retry_delay_seconds,omitempty"`
// (Number) How long to wait before timeout
// How long to wait before timeout
ConnectionTimeoutSeconds *float64 `json:"connectionTimeoutSeconds,omitempty" tf:"connection_timeout_seconds,omitempty"`
// (String) The relative DN where group objects are found (e.g. ou=Group). This value will have the Search base DN value appended to form the full Group search base DN.
// The relative DN where group objects are found (e.g. ou=Group). This value will have the Search base DN value appended to form the full Group search base DN.
GroupBaseDn *string `json:"groupBaseDn,omitempty" tf:"group_base_dn,omitempty"`
// (String) This field specifies the attribute of the Object class that defines the Group ID. Required if groupType is static
// This field specifies the attribute of the Object class that defines the Group ID. Required if groupType is static
GroupIDAttribute *string `json:"groupIdAttribute,omitempty" tf:"group_id_attribute,omitempty"`
// (String) LDAP attribute containing the usernames for the group. Required if groupType is static
// LDAP attribute containing the usernames for the group. Required if groupType is static
GroupMemberAttribute *string `json:"groupMemberAttribute,omitempty" tf:"group_member_attribute,omitempty"`
// (String) The format of user ID stored in the group member attribute. Required if groupType is static
// The format of user ID stored in the group member attribute. Required if groupType is static
GroupMemberFormat *string `json:"groupMemberFormat,omitempty" tf:"group_member_format,omitempty"`
// (String) LDAP class for group objects. Required if groupType is static
// LDAP class for group objects. Required if groupType is static
GroupObjectClass *string `json:"groupObjectClass,omitempty" tf:"group_object_class,omitempty"`
// (Boolean) Are groups located in structures below the group base DN
// Are groups located in structures below the group base DN
GroupSubtree *bool `json:"groupSubtree,omitempty" tf:"group_subtree,omitempty"`
// (String) Defines a type of groups used: static (a group contains a list of users) or dynamic (a user contains a list of groups). Required if ldapGroupsAsRoles is true.
// Defines a type of groups used: static (a group contains a list of users) or dynamic (a user contains a list of groups). Required if ldapGroupsAsRoles is true.
GroupType *string `json:"groupType,omitempty" tf:"group_type,omitempty"`
// (String) LDAP server connection hostname
// LDAP server connection hostname
Host *string `json:"host,omitempty" tf:"host,omitempty"`
// (String) Used to identify resource at nexus
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// (Boolean) Denotes whether LDAP assigned roles are used as Nexus Repository Manager roles
// Denotes whether LDAP assigned roles are used as Nexus Repository Manager roles
LdapGroupsAsRoles *bool `json:"ldapGroupsAsRoles,omitempty" tf:"ldap_groups_as_roles,omitempty"`
// (Number) How many retry attempts
// How many retry attempts
MaxIncidentCount *float64 `json:"maxIncidentCount,omitempty" tf:"max_incident_count,omitempty"`
// (String) LDAP server name
// LDAP server name
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// (Number) LDAP server connection port to use
// LDAP server connection port to use
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// (String) LDAP server connection Protocol to use
// LDAP server connection Protocol to use
Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`
// (String) LDAP location to be added to the connection URL
// LDAP location to be added to the connection URL
SearchBase *string `json:"searchBase,omitempty" tf:"search_base,omitempty"`
// (Boolean) Whether to use certificates stored in Nexus Repository Manager's truststore
// Whether to use certificates stored in Nexus Repository Manager's truststore
UseTrustStore *bool `json:"useTrustStore,omitempty" tf:"use_trust_store,omitempty"`
// (String) The relative DN where user objects are found (e.g. ou=people). This value will have the Search base DN value appended to form the full User search base DN.
// The relative DN where user objects are found (e.g. ou=people). This value will have the Search base DN value appended to form the full User search base DN.
UserBaseDn *string `json:"userBaseDn,omitempty" tf:"user_base_dn,omitempty"`
// (String) This is used to find an email address given the user ID
// This is used to find an email address given the user ID
UserEmailAddressAttribute *string `json:"userEmailAddressAttribute,omitempty" tf:"user_email_address_attribute,omitempty"`
// (String) This is used to find a user given its user ID
// This is used to find a user given its user ID
UserIDAttribute *string `json:"userIdAttribute,omitempty" tf:"user_id_attribute,omitempty"`
// (String) LDAP search filter to limit user search
// LDAP search filter to limit user search
UserLdapFilter *string `json:"userLdapFilter,omitempty" tf:"user_ldap_filter,omitempty"`
// (String) Set this to the attribute used to store the attribute which holds groups DN in the user object. Required if groupType is dynamic
// Set this to the attribute used to store the attribute which holds groups DN in the user object. Required if groupType is dynamic
UserMemberOfAttribute *string `json:"userMemberOfAttribute,omitempty" tf:"user_member_of_attribute,omitempty"`
// (String) LDAP class for user objects
// LDAP class for user objects
UserObjectClass *string `json:"userObjectClass,omitempty" tf:"user_object_class,omitempty"`
// (String) If this field is blank the user will be authenticated against a bind with the LDAP server
// If this field is blank the user will be authenticated against a bind with the LDAP server
UserPasswordAttribute *string `json:"userPasswordAttribute,omitempty" tf:"user_password_attribute,omitempty"`
// (String) This is used to find a real name given the user ID
// This is used to find a real name given the user ID
UserRealNameAttribute *string `json:"userRealNameAttribute,omitempty" tf:"user_real_name_attribute,omitempty"`
// (Boolean) Are users located in structures below the user base DN?
// Are users located in structures below the user base DN?
UserSubtree *bool `json:"userSubtree,omitempty" tf:"user_subtree,omitempty"`
}
type LdapParameters struct {
// (String, Sensitive) The password to bind with. Required if authScheme other than none.
// The password to bind with. Required if authScheme other than none.
// +kubebuilder:validation:Optional
AuthPasswordSecretRef *v1.SecretKeySelector `json:"authPasswordSecretRef,omitempty" tf:"-"`
// (String) The SASL realm to bind to. Required if authScheme is CRAM_MD5 or DIGEST_MD5
// The SASL realm to bind to. Required if authScheme is CRAM_MD5 or DIGEST_MD5
// +kubebuilder:validation:Optional
AuthRealm *string `json:"authRealm,omitempty" tf:"auth_realm,omitempty"`
// (String) Authentication scheme used for connecting to LDAP server
// Authentication scheme used for connecting to LDAP server
// +kubebuilder:validation:Optional
AuthSchema *string `json:"authSchema,omitempty" tf:"auth_schema,omitempty"`
// (String) This must be a fully qualified username if simple authentication is used. Required if authScheme other than none.
// This must be a fully qualified username if simple authentication is used. Required if authScheme other than none.
// +kubebuilder:validation:Optional
AuthUsername *string `json:"authUsername,omitempty" tf:"auth_username,omitempty"`
// (Number) How long to wait before retrying
// How long to wait before retrying
// +kubebuilder:validation:Optional
ConnectionRetryDelaySeconds *float64 `json:"connectionRetryDelaySeconds,omitempty" tf:"connection_retry_delay_seconds,omitempty"`
// (Number) How long to wait before timeout
// How long to wait before timeout
// +kubebuilder:validation:Optional
ConnectionTimeoutSeconds *float64 `json:"connectionTimeoutSeconds,omitempty" tf:"connection_timeout_seconds,omitempty"`
// (String) The relative DN where group objects are found (e.g. ou=Group). This value will have the Search base DN value appended to form the full Group search base DN.
// The relative DN where group objects are found (e.g. ou=Group). This value will have the Search base DN value appended to form the full Group search base DN.
// +kubebuilder:validation:Optional
GroupBaseDn *string `json:"groupBaseDn,omitempty" tf:"group_base_dn,omitempty"`
// (String) This field specifies the attribute of the Object class that defines the Group ID. Required if groupType is static
// This field specifies the attribute of the Object class that defines the Group ID. Required if groupType is static
// +kubebuilder:validation:Optional
GroupIDAttribute *string `json:"groupIdAttribute,omitempty" tf:"group_id_attribute,omitempty"`
// (String) LDAP attribute containing the usernames for the group. Required if groupType is static
// LDAP attribute containing the usernames for the group. Required if groupType is static
// +kubebuilder:validation:Optional
GroupMemberAttribute *string `json:"groupMemberAttribute,omitempty" tf:"group_member_attribute,omitempty"`
// (String) The format of user ID stored in the group member attribute. Required if groupType is static
// The format of user ID stored in the group member attribute. Required if groupType is static
// +kubebuilder:validation:Optional
GroupMemberFormat *string `json:"groupMemberFormat,omitempty" tf:"group_member_format,omitempty"`
// (String) LDAP class for group objects. Required if groupType is static
// LDAP class for group objects. Required if groupType is static
// +kubebuilder:validation:Optional
GroupObjectClass *string `json:"groupObjectClass,omitempty" tf:"group_object_class,omitempty"`
// (Boolean) Are groups located in structures below the group base DN
// Are groups located in structures below the group base DN
// +kubebuilder:validation:Optional
GroupSubtree *bool `json:"groupSubtree,omitempty" tf:"group_subtree,omitempty"`
// (String) Defines a type of groups used: static (a group contains a list of users) or dynamic (a user contains a list of groups). Required if ldapGroupsAsRoles is true.
// Defines a type of groups used: static (a group contains a list of users) or dynamic (a user contains a list of groups). Required if ldapGroupsAsRoles is true.
// +kubebuilder:validation:Optional
GroupType *string `json:"groupType,omitempty" tf:"group_type,omitempty"`
// (String) LDAP server connection hostname
// LDAP server connection hostname
// +kubebuilder:validation:Optional
Host *string `json:"host,omitempty" tf:"host,omitempty"`
// (Boolean) Denotes whether LDAP assigned roles are used as Nexus Repository Manager roles
// Denotes whether LDAP assigned roles are used as Nexus Repository Manager roles
// +kubebuilder:validation:Optional
LdapGroupsAsRoles *bool `json:"ldapGroupsAsRoles,omitempty" tf:"ldap_groups_as_roles,omitempty"`
// (Number) How many retry attempts
// How many retry attempts
// +kubebuilder:validation:Optional
MaxIncidentCount *float64 `json:"maxIncidentCount,omitempty" tf:"max_incident_count,omitempty"`
// (String) LDAP server name
// LDAP server name
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// (Number) LDAP server connection port to use
// LDAP server connection port to use
// +kubebuilder:validation:Optional
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// (String) LDAP server connection Protocol to use
// LDAP server connection Protocol to use
// +kubebuilder:validation:Optional
Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`
// (String) LDAP location to be added to the connection URL
// LDAP location to be added to the connection URL
// +kubebuilder:validation:Optional
SearchBase *string `json:"searchBase,omitempty" tf:"search_base,omitempty"`
// (Boolean) Whether to use certificates stored in Nexus Repository Manager's truststore
// Whether to use certificates stored in Nexus Repository Manager's truststore
// +kubebuilder:validation:Optional
UseTrustStore *bool `json:"useTrustStore,omitempty" tf:"use_trust_store,omitempty"`
// (String) The relative DN where user objects are found (e.g. ou=people). This value will have the Search base DN value appended to form the full User search base DN.
// The relative DN where user objects are found (e.g. ou=people). This value will have the Search base DN value appended to form the full User search base DN.
// +kubebuilder:validation:Optional
UserBaseDn *string `json:"userBaseDn,omitempty" tf:"user_base_dn,omitempty"`
// (String) This is used to find an email address given the user ID
// This is used to find an email address given the user ID
// +kubebuilder:validation:Optional
UserEmailAddressAttribute *string `json:"userEmailAddressAttribute,omitempty" tf:"user_email_address_attribute,omitempty"`
// (String) This is used to find a user given its user ID
// This is used to find a user given its user ID
// +kubebuilder:validation:Optional
UserIDAttribute *string `json:"userIdAttribute,omitempty" tf:"user_id_attribute,omitempty"`
// (String) LDAP search filter to limit user search
// LDAP search filter to limit user search
// +kubebuilder:validation:Optional
UserLdapFilter *string `json:"userLdapFilter,omitempty" tf:"user_ldap_filter,omitempty"`
// (String) Set this to the attribute used to store the attribute which holds groups DN in the user object. Required if groupType is dynamic
// Set this to the attribute used to store the attribute which holds groups DN in the user object. Required if groupType is dynamic
// +kubebuilder:validation:Optional
UserMemberOfAttribute *string `json:"userMemberOfAttribute,omitempty" tf:"user_member_of_attribute,omitempty"`
// (String) LDAP class for user objects
// LDAP class for user objects
// +kubebuilder:validation:Optional
UserObjectClass *string `json:"userObjectClass,omitempty" tf:"user_object_class,omitempty"`
// (String) If this field is blank the user will be authenticated against a bind with the LDAP server
// If this field is blank the user will be authenticated against a bind with the LDAP server
// +kubebuilder:validation:Optional
UserPasswordAttribute *string `json:"userPasswordAttribute,omitempty" tf:"user_password_attribute,omitempty"`
// (String) This is used to find a real name given the user ID
// This is used to find a real name given the user ID
// +kubebuilder:validation:Optional
UserRealNameAttribute *string `json:"userRealNameAttribute,omitempty" tf:"user_real_name_attribute,omitempty"`
// (Boolean) Are users located in structures below the user base DN?
// Are users located in structures below the user base DN?
// +kubebuilder:validation:Optional
UserSubtree *bool `json:"userSubtree,omitempty" tf:"user_subtree,omitempty"`
}
// LdapSpec defines the desired state of Ldap
type LdapSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider LdapParameters `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 LdapInitParameters `json:"initProvider,omitempty"`
}
// LdapStatus defines the observed state of Ldap.
type LdapStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider LdapObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// Ldap is the Schema for the Ldaps API. Use this resource to create a Nexus Security LDAP configuration.
// +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:resource:scope=Cluster,categories={crossplane,managed,nexus}
type Ldap 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.authSchema) || (has(self.initProvider) && has(self.initProvider.authSchema))",message="spec.forProvider.authSchema is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.authUsername) || (has(self.initProvider) && has(self.initProvider.authUsername))",message="spec.forProvider.authUsername is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.connectionRetryDelaySeconds) || (has(self.initProvider) && has(self.initProvider.connectionRetryDelaySeconds))",message="spec.forProvider.connectionRetryDelaySeconds is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.connectionTimeoutSeconds) || (has(self.initProvider) && has(self.initProvider.connectionTimeoutSeconds))",message="spec.forProvider.connectionTimeoutSeconds is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.groupType) || (has(self.initProvider) && has(self.initProvider.groupType))",message="spec.forProvider.groupType is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.host) || (has(self.initProvider) && has(self.initProvider.host))",message="spec.forProvider.host is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.maxIncidentCount) || (has(self.initProvider) && has(self.initProvider.maxIncidentCount))",message="spec.forProvider.maxIncidentCount is a required parameter"
// +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"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.port) || (has(self.initProvider) && has(self.initProvider.port))",message="spec.forProvider.port is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.protocol) || (has(self.initProvider) && has(self.initProvider.protocol))",message="spec.forProvider.protocol is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.searchBase) || (has(self.initProvider) && has(self.initProvider.searchBase))",message="spec.forProvider.searchBase is a required parameter"
Spec LdapSpec `json:"spec"`
Status LdapStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// LdapList contains a list of Ldaps
type LdapList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Ldap `json:"items"`
}
// Repository type metadata.
var (
Ldap_Kind = "Ldap"
Ldap_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Ldap_Kind}.String()
Ldap_KindAPIVersion = Ldap_Kind + "." + CRDGroupVersion.String()
Ldap_GroupVersionKind = CRDGroupVersion.WithKind(Ldap_Kind)
)
func init() {
SchemeBuilder.Register(&Ldap{}, &LdapList{})
}