forked from eda-labs/openapi-example-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.py
More file actions
1208 lines (1031 loc) · 38.5 KB
/
core.py
File metadata and controls
1208 lines (1031 loc) · 38.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# generated by datamodel-codegen:
# filename: core.json
# timestamp: 2025-01-21T07:52:25+00:00
from __future__ import annotations
from datetime import datetime
from typing import Any, Dict, List, Literal, Optional
from pydantic import BaseModel, Field, RootModel
from typing_extensions import Annotated
class AlarmData(BaseModel):
acknowledged: Annotated[
Optional[bool],
Field(description='An indication if the alarm has been acknowledged.'),
] = None
cleared: Annotated[
Optional[bool],
Field(description='An indication if the alarm has been cleared.'),
] = None
clusterMember: Annotated[
Optional[str],
Field(description='The cluster member that generated this alarm.'),
] = None
description: Annotated[
Optional[str], Field(description='A description for the alarm.')
] = None
group: Annotated[
Optional[str],
Field(
description='Indicates the group of the resource the alarm is present on.'
),
] = None
jsPath: Annotated[
Optional[str],
Field(
description='a unnormalized jspath relating to the object in the alarm state. For\nexample\n.node{.name=="spine-1-1"}.srl{.version=="24.10.1"}.interface{.name=="ethernet-1-1"}.'
),
] = None
kind: Annotated[
Optional[str],
Field(description='Indicates the kind of resource the alarm is present on.'),
] = None
lastAcknowledged: Annotated[
Optional[str], Field(description='the time this alarm was last acknowledged.')
] = None
lastChanged: Annotated[
Optional[str],
Field(
description='The last time that the alarm was changed; as provided by the raiser of the alarm.'
),
] = None
name: Annotated[
Optional[str],
Field(
description='The unique name for the alarm, e.g. InterfaceDown-spine-1-1-ethernet-1-1.'
),
] = None
namespace: Annotated[
Optional[str], Field(description='The namespace of the alarm')
] = None
occurrences: Annotated[
Optional[int],
Field(
description='The number of occurrences of this alarm (the number of times it has been raised).'
),
] = None
parentAlarm: Annotated[
Optional[str],
Field(
description='a name of another alarm that is a parent of this alarm. This is used to\nfilter out alarms that are not a root cause.'
),
] = None
probableCause: Annotated[
Optional[str],
Field(
description='the probable cause for raising the alarm. This field is optional, and\nshould also be a description indicating the primary probable cause of the\nalarm, which may be enriched with relevant information from this specific\nalarm instance. The complete alarm below contains an example.'
),
] = None
remedialAction: Annotated[
Optional[str],
Field(
description='any remedial actions the user could try to resolve/clear the alarm. This\nfield is optional, and may also be enriched with relevant information\nfrom this specific alarm instance. The complete alarm below contains an\nexample.'
),
] = None
resource: Annotated[
Optional[str],
Field(description='The name of the resource that this alarm is present on.'),
] = None
severity: Annotated[
Optional[Literal['warning', ' minor', ' major', ' critical']],
Field(description='Severity of the alarm'),
] = None
sourceGroup: Annotated[
Optional[str],
Field(
description='Indicates indicates the group of the resource that raised this alarm, e.g. interfaces.eda.nokia.com.'
),
] = None
sourceKind: Annotated[
Optional[str],
Field(
description='Indicates the Kind of the resource that raised this alarm, e.g. InterfaceState.'
),
] = None
sourceResource: Annotated[
Optional[str],
Field(
description='Indicates the the name of the resource that raised this alarm, e.g. spine-1-1-ethernet-1-1.'
),
] = None
suppressed: Annotated[
Optional[bool],
Field(description='An indication if the alarm has been suppressed.'),
] = None
suppressedUntil: Annotated[
Optional[str],
Field(
description='Indicates the time at which an active instance of the alarm will be raised again.'
),
] = None
type: Annotated[
Optional[str], Field(description='A kind for the alarm, e.g. InterfaceDown')
] = None
class AlarmHistoryData(BaseModel):
alarm: Optional[AlarmData] = None
index: Annotated[
Optional[str],
Field(
description='The index of the history entry within the entries for a single alarm..'
),
] = None
class AlarmNamespaceAndName(BaseModel):
name: Annotated[Optional[str], Field(description='The name of an alarm')] = None
namespace: Annotated[
Optional[str], Field(description='The namespace of an alarm')
] = None
class AuthPasswordPolicy(BaseModel):
allowUserName: Annotated[
Optional[bool],
Field(
description='If true, prevents passwords from being or containing the user name.'
),
] = None
digits: Annotated[
Optional[int],
Field(
description='Minimum number of digits required in a password. Can be zero.'
),
] = None
forceExpiredPasswordChange: Annotated[
Optional[int],
Field(
description='The maximum number of days until a password change is enforced.\nA value of zero means no change is required.'
),
] = None
hashingAlgorithm: Annotated[
Optional[Literal['argon2', 'pbkdf2-sha512', 'pbkdf2-sha256', 'pbkdf2']],
Field(
description='The hashing algorithm to use when hashing stored passwords.'
),
] = None
length: Annotated[
Optional[int],
Field(description='Minimum password length. This must be at least 1.'),
] = None
lowerCase: Annotated[
Optional[int],
Field(
description='Minimum number of lower case characters required in a password. Can be zero.'
),
] = None
maxFailureWaitSeconds: Annotated[
Optional[int],
Field(
description='The number of seconds before the users access will be restored, after too many authentication failures.'
),
] = None
maxLoginFailure: Annotated[
Optional[int],
Field(
description='The number of login/authentication failures before a lockout policy takes effect. Zero means no enforcement.'
),
] = None
passwordHistory: Annotated[
Optional[int],
Field(
description='The number of passwords remembered to enforce no re-use of passwords. Zero means no re-use enforcement.'
),
] = None
permanentLockout: Annotated[
Optional[bool],
Field(
description='If true, lockout is permanent and the users access must be re-enabled by an administrator.\nIf false, the users access will be re-enabled after "maxFailureWaitSeconds" seconds.'
),
] = None
resetTimeSeconds: Annotated[
Optional[int],
Field(
description='When lockout is not permanent, the count of authentication failures for a user will be reset\nthis many seconds after the last authentication failure.'
),
] = None
specialChars: Annotated[
Optional[int],
Field(
description='Minimum number of special characters required in a password. Can be zero.'
),
] = None
upperCase: Annotated[
Optional[int],
Field(
description='Minimum number of upper case characters required in a password. Can be zero.'
),
] = None
class Credentials(BaseModel):
temporary: Annotated[
Optional[bool],
Field(
description='This is true if the password being set is a temporary password. In this case the user\nis required to change the password after they login using the temporary password.'
),
] = None
value: Annotated[
Optional[str], Field(description='The new password for the user.')
] = None
class ErrorIndex(BaseModel):
index: Optional[int] = None
class ErrorItem(BaseModel):
error: Optional[Dict[str, Any]] = None
type: Optional[str] = None
class ErrorResponse(BaseModel):
code: Annotated[
int, Field(description='the numeric HTTP error code for the response.')
]
details: Annotated[
Optional[str], Field(description='The optional details of the error response.')
] = None
dictionary: Annotated[
Optional[Dict[str, Dict[str, Any]]],
Field(
description='Dictionary/map of associated data/information relevant to the error.\nThe error "message" may contain {{name}} escapes that should be substituted\nwith information from this dictionary.'
),
] = None
errors: Annotated[
Optional[List[ErrorItem]],
Field(
description='Collection of errors in cases where more than one exists. This needs to be\nflexible so we can support multiple formats'
),
] = None
index: Optional[ErrorIndex] = None
internal: Annotated[
Optional[int],
Field(
description="Internal error code in cases where we don't have an array of errors"
),
] = None
message: Annotated[
str, Field(description='The basic text error message for the error response.')
]
ref: Annotated[
Optional[str],
Field(
description='Reference to the error source. Should typically be the URI of the request'
),
] = None
type: Annotated[
Optional[str],
Field(
description='URI pointing at a document that describes the error and mitigation steps\nIf there is no document, point to the RFC for the HTTP error code'
),
] = None
class GroupIDs(RootModel[List[str]]):
root: Annotated[
List[str], Field(title='A list of user group identifiers (uuid values).')
]
class GroupProviderConfig(BaseModel):
NameLDAPAttribute: Annotated[
Optional[str], Field(description='The LDAP group name attribute')
] = None
filter: Annotated[
Optional[str],
Field(
description='Further for filtering when retrieving LDAP groups. Ensure starts and ends with parentheses if using.'
),
] = None
groupLDAPDN: Annotated[
Optional[str], Field(description='The LDAP DN where groups are found.')
] = None
memberAttribute: Annotated[
Optional[str],
Field(
description='The group attribute for a members. usually "member" or "memberUid".'
),
] = None
memberOfAttribute: Annotated[
Optional[str],
Field(
description='If strategy is "memberOf", this is the user attribute for group memberships.'
),
] = None
membershipAttributeType: Annotated[
Optional[str],
Field(
description='How users are identified in a group member entry: either DN or UID.'
),
] = None
membershipUserAttribute: Annotated[
Optional[str],
Field(
description='Only valid if membershipAttributeType is UID; then it is\nthe user attribute that should match the group member value.'
),
] = None
objectClasses: Annotated[
Optional[str],
Field(
description='The LDAP object class or classes es used for groups. If more than one, must be comma separated.'
),
] = None
retrievalStrategy: Annotated[
Optional[str],
Field(
description='The strategy for retrieving groups. "member" to get group membership from the group, ObjectNameParam\n"memberOf" to get group membership from the user.'
),
] = None
class GroupVersionKind(BaseModel):
group: Optional[str] = None
kind: Optional[str] = None
version: Optional[str] = None
class HealthServiceStatus(BaseModel):
error: Annotated[
Optional[str], Field(description='Detailed status if the service is not up.')
] = None
status: Annotated[
Literal['UP', 'DOWN'],
Field(description='Health status of the given service. UP or DOWN.'),
]
class LabelCompletionResponse(BaseModel):
results: Optional[List[str]] = None
class LineSegment(BaseModel):
endLine: Optional[int] = None
startLine: Optional[int] = None
class Metadata(BaseModel):
annotations: Optional[Dict[str, str]] = None
labels: Optional[Dict[str, str]] = None
name: Annotated[
str,
Field(
max_length=253,
pattern='^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$',
),
]
namespace: Optional[str] = None
class NsCrGvkName(BaseModel):
gvk: Optional[GroupVersionKind] = None
name: Optional[str] = None
namespace: Optional[str] = None
class ProviderAuth(BaseModel):
bindCredential: Annotated[
Optional[str],
Field(description='Credentials to use when binding to an LDAP provider'),
] = None
bindDN: Annotated[
Optional[str], Field(description='DN to use when binding to an LDAP provider')
] = None
class QueryCompletion(BaseModel):
completion: Optional[str] = None
token: Optional[str] = None
class QueryCompletionResponse(BaseModel):
completions: Annotated[
Optional[List[QueryCompletion]],
Field(description='Array of possible auto-completion results.'),
] = None
class ResourceRule(BaseModel):
apiGroups: List[str]
permissions: Optional[str] = None
resources: List[str]
class StreamResult(BaseModel):
details: Annotated[
Optional[str],
Field(
description='The details for the streaming request; e.g. the query string in the corresponding GET request.'
),
] = None
stream: Annotated[
Optional[str],
Field(
description='The stream identifier specified in the corresponding streaming GET request.'
),
] = None
class TableRule(BaseModel):
path: str
permissions: str
class TopoAttrMetadata(BaseModel):
type: Optional[str] = None
ui_description: Optional[str] = None
ui_description_key: Optional[str] = None
ui_name: Optional[str] = None
ui_name_key: Optional[str] = None
class TopoLinkEndpoint(BaseModel):
endpoint: Optional[str] = None
node: Optional[str] = None
class TopoNodeGrouping(BaseModel):
group: Optional[str] = None
tier: Optional[int] = None
class TopoOverlayBadgeMetadata(BaseModel):
badge_name: Optional[str] = None
badge_path: Optional[str] = None
color: Optional[str] = None
ui_description: Optional[str] = None
ui_description_key: Optional[str] = None
ui_name: Optional[str] = None
ui_name_key: Optional[str] = None
value: Optional[int] = None
class TopoOverlayStateMetadata(BaseModel):
color: Optional[str] = None
ui_description: Optional[str] = None
ui_description_key: Optional[str] = None
ui_name: Optional[str] = None
ui_name_key: Optional[str] = None
value: Optional[int] = None
class TopoOverlayStateRequest(BaseModel):
badge: Optional[str] = None
status: Optional[str] = None
class TopoSchema(BaseModel):
group: Optional[str] = None
kind: Optional[str] = None
version: Optional[str] = None
class TopologyStateGroupSelector(BaseModel):
group: Annotated[
Optional[str],
Field(
description='The group to assign to nodes that match the selector.\n+eda:ui:title="Group"'
),
] = None
nodeSelector: Annotated[
Optional[List[str]],
Field(
description='+kubebuilder:validation:Optional\n+eda:ui:title="Node Selector"\n+eda:ui:format="labelselector"\nLabel selector to use to match nodes that should be assigned to this group.'
),
] = None
class TopologyStateTierSelector(BaseModel):
nodeSelector: Annotated[
Optional[List[str]],
Field(
description='+kubebuilder:validation:Optional\n+eda:ui:title="Node Selector"\n+eda:ui:format="labelselector"\nLabel selector to use to match nodes that should be assigned to this tier.'
),
] = None
tier: Annotated[
Optional[int],
Field(
description='The tier to assign to nodes that match the selector.\n+eda:ui:title="Tier"'
),
] = None
class TransactionContent(BaseModel):
apiVersion: Optional[str] = None
kind: Optional[str] = None
metadata: Optional[Metadata] = None
spec: Optional[Dict[str, Any]] = None
class TransactionId(BaseModel):
id: Annotated[
Optional[int],
Field(
description='A transaction identifier; these are assigned by the system to a posted transaction.'
),
] = None
class TransactionInputCr(BaseModel):
isDelete: Optional[bool] = None
name: Optional[NsCrGvkName] = None
class TransactionNodeResult(BaseModel):
errors: Annotated[
Optional[List[str]], Field(description='Resulting errors for the node')
] = None
name: Annotated[Optional[str], Field(description='The name of the node')] = None
namespace: Annotated[
Optional[str], Field(description='The namespace of the node')
] = None
class TransactionNsCrGvkNames(BaseModel):
gvk: Optional[GroupVersionKind] = None
names: Optional[List[str]] = None
namespace: Optional[str] = None
class TransactionPoolAllocation(BaseModel):
key: Optional[str] = None
poolName: Optional[str] = None
poolTemplate: Optional[str] = None
value: Optional[str] = None
class TransactionResultObjectString(BaseModel):
data: Optional[str] = None
class TransactionScriptResults(BaseModel):
executionTime: Optional[int] = None
output: Optional[str] = None
class TransactionState(BaseModel):
state: Annotated[
Optional[str], Field(description='The state of the transaction')
] = None
class TransactionStructuredAppError(BaseModel):
message: Optional[str] = None
messageKey: Optional[str] = None
values: Optional[Dict[str, Dict[str, Any]]] = None
class TransactionSummaryResult(BaseModel):
commitHash: Annotated[
Optional[str], Field(description='The git commit hash for the transaction')
] = None
description: Annotated[
Optional[str],
Field(
description='The description of the transaction, as posted in the transaction request.'
),
] = None
details: Annotated[
Optional[str],
Field(
description='The type of details available for the transaction, as posted in the transaction request.'
),
] = None
dryRun: Annotated[
Optional[bool],
Field(
description='If true the transaction was not committed and ran in dry run mode.'
),
] = None
id: Annotated[Optional[int], Field(description='The transaction identifier')] = None
lastChangeTimestamp: Annotated[
Optional[str], Field(description='The time that the transaction completed.')
] = None
state: Annotated[
Optional[str], Field(description='The state of the transaction.')
] = None
success: Annotated[
Optional[bool], Field(description='True if the transaction was successful.')
] = None
username: Annotated[
Optional[str], Field(description='The user who posted the transaction.')
] = None
class TransactionSummaryResults(BaseModel):
results: Annotated[
Optional[List[TransactionSummaryResult]],
Field(description='array of summary-results for transactions'),
] = None
class TransactionValue(BaseModel):
value: Optional[TransactionContent] = None
class UrlRule(BaseModel):
path: str
permissions: Optional[str] = None
class UserStatus(BaseModel):
failedLoginSinceSuccessfulLogin: Optional[int] = None
lastFailedLogin: Optional[str] = None
lastSuccessfulLogin: Optional[str] = None
temporarilyDisabled: Optional[bool] = None
class UserStorageInFileContent(BaseModel):
file_content: Annotated[
str,
Field(
alias='file-content',
description='The desired content of the user-storage file. This will be base64 decoded before storing if the request indicates that the content is base64 encoded.',
),
]
class UserStorageOutDirEntry(BaseModel):
modification_time: Annotated[
Optional[datetime],
Field(
alias='modification-time',
description='modification type of the item, if a file',
),
] = None
name: Annotated[str, Field(description='name of the item within the directory')]
type: Annotated[str, Field(description='type of the item; "file" or "directory"')]
class UserStorageOutFileContent(BaseModel):
file_content: Annotated[
Optional[str],
Field(
alias='file-content',
description='content of the file, will be base64 encoded if the request asked for this',
),
] = None
file_deleted: Annotated[
Optional[bool],
Field(
alias='file-deleted',
description='if present and true, indicates the file has been deleted; used for\nstreamed responses',
),
] = None
file_name: Annotated[str, Field(alias='file-name', description='name of the file')]
modification_time: Annotated[
Optional[datetime],
Field(
alias='modification-time',
description='UTC modification time of the file, as an RFC 3339 date/time.\nNot valid if file-deleted is true (in a streamed response)',
),
] = None
class Workflow(BaseModel):
cr: Annotated[
Dict[str, Dict[str, Any]],
Field(description='Custom resource that defines the workflow to execute'),
]
description: Annotated[
str, Field(description='Description message for the workflow')
]
class WorkflowId(BaseModel):
id: Annotated[
Optional[int],
Field(
description='A workflow identifier; these are assigned by the system to a posted workflow.'
),
] = None
class WorkflowState(BaseModel):
runningState: Optional[str] = None
state: Optional[str] = None
class SingleVersionInfo(BaseModel):
builtDate: Annotated[
Optional[str], Field(description='The build-time for the component.')
] = None
version: Annotated[
Optional[str], Field(description='The version string for the component.')
] = None
class VersionInfo(RootModel[Optional[Dict[str, SingleVersionInfo]]]):
root: Optional[Dict[str, SingleVersionInfo]] = None
class AuthProvider(BaseModel):
auth: Optional[ProviderAuth] = None
enabled: Annotated[
Optional[bool],
Field(description='If true, checking/syncing this LDAP provider is enabled.'),
] = None
groupSupport: Optional[GroupProviderConfig] = None
idAttribute: Annotated[
Optional[str],
Field(
description='Name of the LDAP attribute, which is used as a unique object identifier (UUID) for objects in LDAP.'
),
] = None
import_: Annotated[
Optional[bool],
Field(
alias='import',
description='If true, the LDAP information will be imported into the EDA (Keycloak) database.',
),
] = None
name: Annotated[
Optional[str],
Field(description='The name to give to the LDAP provider; must be unique.'),
] = None
pagination: Annotated[
Optional[bool],
Field(description='Set to true if the LDAP server supports pagination.'),
] = None
periodicSync: Annotated[
Optional[bool],
Field(
description='If true, periodic synchronization of new changed or newly created LDAP users to Keycloak will occur.'
),
] = None
periodicSyncSecs: Annotated[
Optional[int],
Field(
description='If periodic sync is enabled, this is the period in seconds that synchronization will occur.'
),
] = None
rdnLDAPAttribute: Annotated[
Optional[str],
Field(
description="Name of the LDAP attribute, which is used as RDN (top attribute) of typical user DN. Usually it's the same as the Username LDAP attribute, however it is not required."
),
] = None
readOnly: Annotated[
Optional[bool],
Field(
description='If true, changes made to LDAP-mapped attribute via EDA will be synced back to the LDAP server. Otherwise, changes are not made in LDAP.'
),
] = None
scope: Annotated[
Optional[str],
Field(
description='Must be "One Level" or "Subtree". If "One Level", the search applies only for users in the DNs specified by User DNs. If "Subtree", the search applies to the whole subtree.'
),
] = None
timeout: Annotated[
Optional[int], Field(description='LDAP connection timeout in milliseconds')
] = None
tls: Annotated[
Optional[bool],
Field(description='If true, encrypts the connection to LDAP using STARTTLS'),
] = None
url: Annotated[
Optional[str], Field(description='Connection URL to your LDAP server')
] = None
userDN: Annotated[
Optional[str],
Field(
description='Full DN of LDAP tree where your users are. This DN is the parent of LDAP users.'
),
] = None
userObjectClasses: Annotated[
Optional[str], Field(examples=["'inetOrgPerson, organizationalPerson'."])
] = None
userSearchFilter: Annotated[
Optional[str],
Field(
description="Additional LDAP filter for filtering searched users. Leave this empty if you don't need an additional filter. Make sure that it starts with '(' and ends with ')'."
),
] = None
usernameAttribute: Annotated[
Optional[str],
Field(
description="Name of the LDAP attribute, which is mapped as EDA username. For many LDAP server vendors it can be 'uid'."
),
] = None
uuid: Annotated[
Optional[str],
Field(
description='The unique identifier given to the entry when it is created.'
),
] = None
vendor: Annotated[Optional[str], Field(description='LDAP vendor (provider).')] = (
None
)
class AuthProviders(RootModel[List[AuthProvider]]):
root: List[AuthProvider]
class AuthRole(BaseModel):
description: str
name: Annotated[
str,
Field(
pattern='^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'
),
]
namespace: Annotated[
Optional[str], Field(pattern='^([a-z0-9]([-a-z0-9]*[a-z0-9])?)?$')
] = None
resourceRules: Optional[List[ResourceRule]] = None
tableRules: Optional[List[TableRule]] = None
urlRules: Optional[List[UrlRule]] = None
class AuthRoles(RootModel[List[AuthRole]]):
root: List[AuthRole]
class AuthUser(BaseModel):
email: Optional[str] = None
enabled: Optional[bool] = None
firstName: Optional[str] = None
groups: Annotated[
Optional[List[str]],
Field(
description='contains the UUIDs of the groups of which the user is a member.'
),
] = None
lastName: Optional[str] = None
maxSessions: Optional[int] = None
password: Optional[str] = None
status: Optional[UserStatus] = None
username: Optional[str] = None
uuid: Optional[str] = None
class AuthUserGroup(BaseModel):
description: Optional[str] = None
full_users: Annotated[
Optional[List[AuthUser]],
Field(
alias='full-users',
description='contains the full user definitions of the users who are members of the group, if requested',
),
] = None
fullRoles: Annotated[
Optional[List[AuthRole]],
Field(
description='contains the full role definitions of the Roles and ClusterRoles associated with the group, if requested'
),
] = None
name: Optional[str] = None
roles: Annotated[
Optional[List[str]],
Field(
description='Contains the names of the ClusterRoles and Roles roles associated with the group.\nA Role name has the form "namesspace:rolename", whereas a ClusteRole name is a\nsimple "rolename", without a colon or a namespace.'
),
] = None
users: Annotated[
Optional[List[str]],
Field(
description='contains the usernames of the users who are members of the group'
),
] = None
uuid: Optional[str] = None
class AuthUserGroups(RootModel[List[AuthUserGroup]]):
root: List[AuthUserGroup]
class AuthUsers(RootModel[List[AuthUser]]):
root: List[AuthUser]
class CrAnnotation(BaseModel):
cr: Optional[NsCrGvkName] = None
lines: Optional[List[LineSegment]] = None
class GetLabelCompletionRequest(BaseModel):
gvk: GroupVersionKind
limit: Annotated[
Optional[int], Field(description='The maximum number of results to return')
] = None
namespace: Annotated[
Optional[str],
Field(
description='The namespace of the GVK if the CRD is namespaced\nrequired: true if the GVK is namespaced'
),
] = None
value: Annotated[
str,
Field(
description='A key value string delimited by =. If the Value does not include an =\nit is assumed to be a Key lookup. If there is an =, everything before\nthe = is assumed to be the key and the lookup will be a value lookup'
),
]
class Health(BaseModel):
mode: Annotated[
Literal['ACTIVE', 'STANDBY'],
Field(description='Indication of the activity of this cluster.'),
]
services: Annotated[
Optional[Dict[str, HealthServiceStatus]],
Field(
description='Detailed health of the services comprising the EDA cluster. Keyed by the name of the service.'
),
] = None
status: Annotated[
Literal['UP', 'DEGRADED', 'DOWN'],
Field(description='Overall health status of the EDA cluster.'),
]
timestamp: Annotated[
datetime, Field(description='Time that the health report was generated.')
]
class NodeConfigResponse(BaseModel):
annotations: Annotated[
Optional[List[CrAnnotation]],
Field(description='The the list of annotations for the node configuration'),
] = None
running: Annotated[
Optional[str], Field(description='The current node configuration for the node')
] = None
class Overlay(BaseModel):
endpoint_state: Optional[List[TopoOverlayStateMetadata]] = None
group: Optional[str] = None
link_state: Optional[List[TopoOverlayStateMetadata]] = None
name: Optional[str] = None
node_badge: Optional[List[TopoOverlayBadgeMetadata]] = None
node_state: Optional[List[TopoOverlayStateMetadata]] = None
ui_description: Optional[str] = None
ui_description_key: Optional[str] = None
ui_name: Optional[str] = None
ui_name_key: Optional[str] = None
version: Optional[str] = None
class Overlays(RootModel[List[Overlay]]):
root: List[Overlay]
class TopoElemMetadata(BaseModel):
attributes: Optional[Dict[str, TopoAttrMetadata]] = None
schema_: Annotated[Optional[TopoSchema], Field(alias='schema')] = None
subtitle: Optional[str] = None
subtitle_key: Optional[str] = None
class TopoEndpoint(BaseModel):
attributes: Optional[Dict[str, Dict[str, Any]]] = None
cr_name: Optional[str] = None
labels: Optional[Dict[str, str]] = None
name: Optional[str] = None
namespace: Optional[str] = None
schema_: Annotated[Optional[TopoSchema], Field(alias='schema')] = None
ui_name: Optional[str] = None
class TopoLink(BaseModel):
attributes: Optional[Dict[str, Dict[str, Any]]] = None
cr_name: Optional[str] = None
endpoint_a: Optional[TopoLinkEndpoint] = None
endpoint_a_details: Optional[TopoEndpoint] = None