forked from wso2/api-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerated.go
More file actions
4235 lines (3261 loc) · 180 KB
/
generated.go
File metadata and controls
4235 lines (3261 loc) · 180 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
// Package api provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
package api
import (
"encoding/json"
"fmt"
"time"
"github.com/oapi-codegen/runtime"
openapi_types "github.com/oapi-codegen/runtime/types"
)
const (
BearerAuthScopes = "BearerAuth.Scopes"
)
// Defines values for APIKeyItemStatus.
const (
APIKeyItemStatusActive APIKeyItemStatus = "active"
APIKeyItemStatusExpired APIKeyItemStatus = "expired"
APIKeyItemStatusRevoked APIKeyItemStatus = "revoked"
)
// Defines values for APIKeySecurityIn.
const (
APIKeySecurityInHeader APIKeySecurityIn = "header"
APIKeySecurityInQuery APIKeySecurityIn = "query"
)
// Defines values for ApplicationAssociationSelectorKind.
const (
ApplicationAssociationSelectorKindLlmProvider ApplicationAssociationSelectorKind = "LlmProvider"
ApplicationAssociationSelectorKindLlmProxy ApplicationAssociationSelectorKind = "LlmProxy"
)
// Defines values for ApplicationType.
const (
Genai ApplicationType = "genai"
)
// Defines values for ChannelRequestMethod.
const (
SUB ChannelRequestMethod = "SUB"
)
// Defines values for CreateAPIKeyResponseStatus.
const (
CreateAPIKeyResponseStatusError CreateAPIKeyResponseStatus = "error"
CreateAPIKeyResponseStatusSuccess CreateAPIKeyResponseStatus = "success"
)
// Defines values for CreateDevPortalRequestVisibility.
const (
CreateDevPortalRequestVisibilityPrivate CreateDevPortalRequestVisibility = "private"
CreateDevPortalRequestVisibilityPublic CreateDevPortalRequestVisibility = "public"
)
// Defines values for CreateGatewayRequestFunctionalityType.
const (
CreateGatewayRequestFunctionalityTypeAi CreateGatewayRequestFunctionalityType = "ai"
CreateGatewayRequestFunctionalityTypeEvent CreateGatewayRequestFunctionalityType = "event"
CreateGatewayRequestFunctionalityTypeRegular CreateGatewayRequestFunctionalityType = "regular"
)
// Defines values for CreateRESTAPIRequestLifeCycleStatus.
const (
CreateRESTAPIRequestLifeCycleStatusBLOCKED CreateRESTAPIRequestLifeCycleStatus = "BLOCKED"
CreateRESTAPIRequestLifeCycleStatusCREATED CreateRESTAPIRequestLifeCycleStatus = "CREATED"
CreateRESTAPIRequestLifeCycleStatusDEPRECATED CreateRESTAPIRequestLifeCycleStatus = "DEPRECATED"
CreateRESTAPIRequestLifeCycleStatusPUBLISHED CreateRESTAPIRequestLifeCycleStatus = "PUBLISHED"
CreateRESTAPIRequestLifeCycleStatusRETIRED CreateRESTAPIRequestLifeCycleStatus = "RETIRED"
CreateRESTAPIRequestLifeCycleStatusSTAGED CreateRESTAPIRequestLifeCycleStatus = "STAGED"
)
// Defines values for CreateSubscriptionPlanRequestStatus.
const (
CreateSubscriptionPlanRequestStatusACTIVE CreateSubscriptionPlanRequestStatus = "ACTIVE"
CreateSubscriptionPlanRequestStatusINACTIVE CreateSubscriptionPlanRequestStatus = "INACTIVE"
)
// Defines values for CreateSubscriptionPlanRequestThrottleLimitUnit.
const (
CreateSubscriptionPlanRequestThrottleLimitUnitDay CreateSubscriptionPlanRequestThrottleLimitUnit = "Day"
CreateSubscriptionPlanRequestThrottleLimitUnitHour CreateSubscriptionPlanRequestThrottleLimitUnit = "Hour"
CreateSubscriptionPlanRequestThrottleLimitUnitMin CreateSubscriptionPlanRequestThrottleLimitUnit = "Min"
CreateSubscriptionPlanRequestThrottleLimitUnitMonth CreateSubscriptionPlanRequestThrottleLimitUnit = "Month"
)
// Defines values for CreateSubscriptionRequestStatus.
const (
CreateSubscriptionRequestStatusACTIVE CreateSubscriptionRequestStatus = "ACTIVE"
CreateSubscriptionRequestStatusINACTIVE CreateSubscriptionRequestStatus = "INACTIVE"
CreateSubscriptionRequestStatusREVOKED CreateSubscriptionRequestStatus = "REVOKED"
)
// Defines values for DeploymentResponseStatus.
const (
DeploymentResponseStatusARCHIVED DeploymentResponseStatus = "ARCHIVED"
DeploymentResponseStatusDEPLOYED DeploymentResponseStatus = "DEPLOYED"
DeploymentResponseStatusDEPLOYING DeploymentResponseStatus = "DEPLOYING"
DeploymentResponseStatusFAILED DeploymentResponseStatus = "FAILED"
DeploymentResponseStatusUNDEPLOYED DeploymentResponseStatus = "UNDEPLOYED"
DeploymentResponseStatusUNDEPLOYING DeploymentResponseStatus = "UNDEPLOYING"
)
// Defines values for DevPortalResponseVisibility.
const (
DevPortalResponseVisibilityPrivate DevPortalResponseVisibility = "private"
DevPortalResponseVisibilityPublic DevPortalResponseVisibility = "public"
)
// Defines values for ExtractionIdentifierLocation.
const (
ExtractionIdentifierLocationHeader ExtractionIdentifierLocation = "header"
ExtractionIdentifierLocationPathParam ExtractionIdentifierLocation = "pathParam"
ExtractionIdentifierLocationPayload ExtractionIdentifierLocation = "payload"
ExtractionIdentifierLocationQueryParam ExtractionIdentifierLocation = "queryParam"
)
// Defines values for GatewayArtifactSubType.
const (
ASYNC GatewayArtifactSubType = "ASYNC"
GQL GatewayArtifactSubType = "GQL"
REST GatewayArtifactSubType = "REST"
SOAP GatewayArtifactSubType = "SOAP"
WEBSOCKET GatewayArtifactSubType = "WEBSOCKET"
)
// Defines values for GatewayArtifactType.
const (
GatewayArtifactTypeAPIPRODUCT GatewayArtifactType = "API_PRODUCT"
GatewayArtifactTypeMCP GatewayArtifactType = "MCP"
GatewayArtifactTypeRESTAPI GatewayArtifactType = "REST_API"
)
// Defines values for GatewayResponseFunctionalityType.
const (
GatewayResponseFunctionalityTypeAi GatewayResponseFunctionalityType = "ai"
GatewayResponseFunctionalityTypeEvent GatewayResponseFunctionalityType = "event"
GatewayResponseFunctionalityTypeRegular GatewayResponseFunctionalityType = "regular"
)
// Defines values for GitRepoBranchesRequestProvider.
const (
GitRepoBranchesRequestProviderBitbucket GitRepoBranchesRequestProvider = "bitbucket"
GitRepoBranchesRequestProviderGithub GitRepoBranchesRequestProvider = "github"
GitRepoBranchesRequestProviderGitlab GitRepoBranchesRequestProvider = "gitlab"
)
// Defines values for GitRepoContentRequestProvider.
const (
GitRepoContentRequestProviderBitbucket GitRepoContentRequestProvider = "bitbucket"
GitRepoContentRequestProviderGithub GitRepoContentRequestProvider = "github"
GitRepoContentRequestProviderGitlab GitRepoContentRequestProvider = "gitlab"
)
// Defines values for GitRepoItemType.
const (
Blob GitRepoItemType = "blob"
EOF GitRepoItemType = "EOF"
Tree GitRepoItemType = "tree"
)
// Defines values for ImportAPIProjectRequestApiLifeCycleStatus.
const (
ImportAPIProjectRequestApiLifeCycleStatusBLOCKED ImportAPIProjectRequestApiLifeCycleStatus = "BLOCKED"
ImportAPIProjectRequestApiLifeCycleStatusCREATED ImportAPIProjectRequestApiLifeCycleStatus = "CREATED"
ImportAPIProjectRequestApiLifeCycleStatusDEPRECATED ImportAPIProjectRequestApiLifeCycleStatus = "DEPRECATED"
ImportAPIProjectRequestApiLifeCycleStatusPUBLISHED ImportAPIProjectRequestApiLifeCycleStatus = "PUBLISHED"
ImportAPIProjectRequestApiLifeCycleStatusRETIRED ImportAPIProjectRequestApiLifeCycleStatus = "RETIRED"
ImportAPIProjectRequestApiLifeCycleStatusSTAGED ImportAPIProjectRequestApiLifeCycleStatus = "STAGED"
)
// Defines values for ImportAPIProjectRequestProvider.
const (
ImportAPIProjectRequestProviderBitbucket ImportAPIProjectRequestProvider = "bitbucket"
ImportAPIProjectRequestProviderGithub ImportAPIProjectRequestProvider = "github"
ImportAPIProjectRequestProviderGitlab ImportAPIProjectRequestProvider = "gitlab"
)
// Defines values for LLMAccessControlMode.
const (
AllowAll LLMAccessControlMode = "allow_all"
DenyAll LLMAccessControlMode = "deny_all"
)
// Defines values for LLMPolicyPathMethods.
const (
LLMPolicyPathMethodsAsterisk LLMPolicyPathMethods = "*"
LLMPolicyPathMethodsDELETE LLMPolicyPathMethods = "DELETE"
LLMPolicyPathMethodsGET LLMPolicyPathMethods = "GET"
LLMPolicyPathMethodsHEAD LLMPolicyPathMethods = "HEAD"
LLMPolicyPathMethodsOPTIONS LLMPolicyPathMethods = "OPTIONS"
LLMPolicyPathMethodsPATCH LLMPolicyPathMethods = "PATCH"
LLMPolicyPathMethodsPOST LLMPolicyPathMethods = "POST"
LLMPolicyPathMethodsPUT LLMPolicyPathMethods = "PUT"
)
// Defines values for LLMProviderListItemStatus.
const (
LLMProviderListItemStatusDeployed LLMProviderListItemStatus = "deployed"
LLMProviderListItemStatusFailed LLMProviderListItemStatus = "failed"
LLMProviderListItemStatusPending LLMProviderListItemStatus = "pending"
)
// Defines values for LLMProxyListItemStatus.
const (
LLMProxyListItemStatusDeployed LLMProxyListItemStatus = "deployed"
LLMProxyListItemStatusFailed LLMProxyListItemStatus = "failed"
LLMProxyListItemStatusPending LLMProxyListItemStatus = "pending"
)
// Defines values for MCPProxyMcpSpecVersion.
const (
N20250618 MCPProxyMcpSpecVersion = "2025-06-18"
N20251125 MCPProxyMcpSpecVersion = "2025-11-25"
)
// Defines values for MCPProxyListItemStatus.
const (
MCPProxyListItemStatusDeployed MCPProxyListItemStatus = "deployed"
MCPProxyListItemStatusFailed MCPProxyListItemStatus = "failed"
MCPProxyListItemStatusPending MCPProxyListItemStatus = "pending"
)
// Defines values for OpenAPIValidationResponseApiLifeCycleStatus.
const (
OpenAPIValidationResponseApiLifeCycleStatusBLOCKED OpenAPIValidationResponseApiLifeCycleStatus = "BLOCKED"
OpenAPIValidationResponseApiLifeCycleStatusCREATED OpenAPIValidationResponseApiLifeCycleStatus = "CREATED"
OpenAPIValidationResponseApiLifeCycleStatusDEPRECATED OpenAPIValidationResponseApiLifeCycleStatus = "DEPRECATED"
OpenAPIValidationResponseApiLifeCycleStatusPUBLISHED OpenAPIValidationResponseApiLifeCycleStatus = "PUBLISHED"
OpenAPIValidationResponseApiLifeCycleStatusRETIRED OpenAPIValidationResponseApiLifeCycleStatus = "RETIRED"
OpenAPIValidationResponseApiLifeCycleStatusSTAGED OpenAPIValidationResponseApiLifeCycleStatus = "STAGED"
)
// Defines values for OperationRequestMethod.
const (
OperationRequestMethodDELETE OperationRequestMethod = "DELETE"
OperationRequestMethodGET OperationRequestMethod = "GET"
OperationRequestMethodHEAD OperationRequestMethod = "HEAD"
OperationRequestMethodOPTIONS OperationRequestMethod = "OPTIONS"
OperationRequestMethodPATCH OperationRequestMethod = "PATCH"
OperationRequestMethodPOST OperationRequestMethod = "POST"
OperationRequestMethodPUT OperationRequestMethod = "PUT"
)
// Defines values for PublishRESTAPIInfoVisibility.
const (
PublishRESTAPIInfoVisibilityPrivate PublishRESTAPIInfoVisibility = "private"
PublishRESTAPIInfoVisibilityPublic PublishRESTAPIInfoVisibility = "public"
PublishRESTAPIInfoVisibilityRestricted PublishRESTAPIInfoVisibility = "restricted"
)
// Defines values for RESTAPILifeCycleStatus.
const (
RESTAPILifeCycleStatusBLOCKED RESTAPILifeCycleStatus = "BLOCKED"
RESTAPILifeCycleStatusCREATED RESTAPILifeCycleStatus = "CREATED"
RESTAPILifeCycleStatusDEPRECATED RESTAPILifeCycleStatus = "DEPRECATED"
RESTAPILifeCycleStatusPUBLISHED RESTAPILifeCycleStatus = "PUBLISHED"
RESTAPILifeCycleStatusRETIRED RESTAPILifeCycleStatus = "RETIRED"
RESTAPILifeCycleStatusSTAGED RESTAPILifeCycleStatus = "STAGED"
)
// Defines values for RESTAPIDeploymentDetailsStatus.
const (
RESTAPIDeploymentDetailsStatusAPPROVED RESTAPIDeploymentDetailsStatus = "APPROVED"
RESTAPIDeploymentDetailsStatusCREATED RESTAPIDeploymentDetailsStatus = "CREATED"
RESTAPIDeploymentDetailsStatusREJECTED RESTAPIDeploymentDetailsStatus = "REJECTED"
)
// Defines values for RESTAPIDevPortalResponseVisibility.
const (
RESTAPIDevPortalResponseVisibilityPrivate RESTAPIDevPortalResponseVisibility = "private"
RESTAPIDevPortalResponseVisibilityPublic RESTAPIDevPortalResponseVisibility = "public"
)
// Defines values for RESTAPIGatewayResponseFunctionalityType.
const (
Ai RESTAPIGatewayResponseFunctionalityType = "ai"
Event RESTAPIGatewayResponseFunctionalityType = "event"
Regular RESTAPIGatewayResponseFunctionalityType = "regular"
)
// Defines values for RESTAPIProjectValidationResponseApiLifeCycleStatus.
const (
RESTAPIProjectValidationResponseApiLifeCycleStatusBLOCKED RESTAPIProjectValidationResponseApiLifeCycleStatus = "BLOCKED"
RESTAPIProjectValidationResponseApiLifeCycleStatusCREATED RESTAPIProjectValidationResponseApiLifeCycleStatus = "CREATED"
RESTAPIProjectValidationResponseApiLifeCycleStatusDEPRECATED RESTAPIProjectValidationResponseApiLifeCycleStatus = "DEPRECATED"
RESTAPIProjectValidationResponseApiLifeCycleStatusPUBLISHED RESTAPIProjectValidationResponseApiLifeCycleStatus = "PUBLISHED"
RESTAPIProjectValidationResponseApiLifeCycleStatusRETIRED RESTAPIProjectValidationResponseApiLifeCycleStatus = "RETIRED"
RESTAPIProjectValidationResponseApiLifeCycleStatusSTAGED RESTAPIProjectValidationResponseApiLifeCycleStatus = "STAGED"
)
// Defines values for RESTAPIPublicationDetailsStatus.
const (
RESTAPIPublicationDetailsStatusFailed RESTAPIPublicationDetailsStatus = "failed"
RESTAPIPublicationDetailsStatusPublished RESTAPIPublicationDetailsStatus = "published"
RESTAPIPublicationDetailsStatusPublishing RESTAPIPublicationDetailsStatus = "publishing"
)
// Defines values for RateLimitResetWindowUnit.
const (
RateLimitResetWindowUnitDay RateLimitResetWindowUnit = "day"
RateLimitResetWindowUnitHour RateLimitResetWindowUnit = "hour"
RateLimitResetWindowUnitMinute RateLimitResetWindowUnit = "minute"
RateLimitResetWindowUnitMonth RateLimitResetWindowUnit = "month"
RateLimitResetWindowUnitWeek RateLimitResetWindowUnit = "week"
)
// Defines values for RouteExceptionMethods.
const (
Asterisk RouteExceptionMethods = "*"
DELETE RouteExceptionMethods = "DELETE"
GET RouteExceptionMethods = "GET"
HEAD RouteExceptionMethods = "HEAD"
OPTIONS RouteExceptionMethods = "OPTIONS"
PATCH RouteExceptionMethods = "PATCH"
POST RouteExceptionMethods = "POST"
PUT RouteExceptionMethods = "PUT"
)
// Defines values for SubscriptionStatus.
const (
SubscriptionStatusACTIVE SubscriptionStatus = "ACTIVE"
SubscriptionStatusINACTIVE SubscriptionStatus = "INACTIVE"
SubscriptionStatusREVOKED SubscriptionStatus = "REVOKED"
)
// Defines values for SubscriptionPlanStatus.
const (
SubscriptionPlanStatusACTIVE SubscriptionPlanStatus = "ACTIVE"
SubscriptionPlanStatusINACTIVE SubscriptionPlanStatus = "INACTIVE"
)
// Defines values for TimeUnit.
const (
Days TimeUnit = "days"
Hours TimeUnit = "hours"
Minutes TimeUnit = "minutes"
Months TimeUnit = "months"
Seconds TimeUnit = "seconds"
Weeks TimeUnit = "weeks"
)
// Defines values for TokenInfoResponseStatus.
const (
TokenInfoResponseStatusActive TokenInfoResponseStatus = "active"
TokenInfoResponseStatusRevoked TokenInfoResponseStatus = "revoked"
)
// Defines values for UpdateAPIKeyResponseStatus.
const (
UpdateAPIKeyResponseStatusError UpdateAPIKeyResponseStatus = "error"
UpdateAPIKeyResponseStatusSuccess UpdateAPIKeyResponseStatus = "success"
)
// Defines values for UpdateDevPortalRequestVisibility.
const (
Private UpdateDevPortalRequestVisibility = "private"
Public UpdateDevPortalRequestVisibility = "public"
)
// Defines values for UpdateSubscriptionPlanRequestStatus.
const (
UpdateSubscriptionPlanRequestStatusACTIVE UpdateSubscriptionPlanRequestStatus = "ACTIVE"
UpdateSubscriptionPlanRequestStatusINACTIVE UpdateSubscriptionPlanRequestStatus = "INACTIVE"
)
// Defines values for UpdateSubscriptionPlanRequestThrottleLimitUnit.
const (
Day UpdateSubscriptionPlanRequestThrottleLimitUnit = "Day"
Hour UpdateSubscriptionPlanRequestThrottleLimitUnit = "Hour"
Min UpdateSubscriptionPlanRequestThrottleLimitUnit = "Min"
Month UpdateSubscriptionPlanRequestThrottleLimitUnit = "Month"
)
// Defines values for UpdateSubscriptionRequestStatus.
const (
UpdateSubscriptionRequestStatusACTIVE UpdateSubscriptionRequestStatus = "ACTIVE"
UpdateSubscriptionRequestStatusINACTIVE UpdateSubscriptionRequestStatus = "INACTIVE"
UpdateSubscriptionRequestStatusREVOKED UpdateSubscriptionRequestStatus = "REVOKED"
)
// Defines values for UpstreamAuthType.
const (
ApiKey UpstreamAuthType = "api-key"
Basic UpstreamAuthType = "basic"
Bearer UpstreamAuthType = "bearer"
)
// Defines values for UserAPIKeyItemArtifactType.
const (
UserAPIKeyItemArtifactTypeLlmProvider UserAPIKeyItemArtifactType = "LlmProvider"
UserAPIKeyItemArtifactTypeLlmProxy UserAPIKeyItemArtifactType = "LlmProxy"
UserAPIKeyItemArtifactTypeRestApi UserAPIKeyItemArtifactType = "RestApi"
)
// Defines values for UserAPIKeyItemStatus.
const (
Active UserAPIKeyItemStatus = "active"
Expired UserAPIKeyItemStatus = "expired"
Revoked UserAPIKeyItemStatus = "revoked"
)
// Defines values for ValidateAPIProjectRequestProvider.
const (
ValidateAPIProjectRequestProviderBitbucket ValidateAPIProjectRequestProvider = "bitbucket"
ValidateAPIProjectRequestProviderGithub ValidateAPIProjectRequestProvider = "github"
ValidateAPIProjectRequestProviderGitlab ValidateAPIProjectRequestProvider = "gitlab"
)
// Defines values for WebSubAPILifeCycleStatus.
const (
WebSubAPILifeCycleStatusCREATED WebSubAPILifeCycleStatus = "CREATED"
WebSubAPILifeCycleStatusDEPRECATED WebSubAPILifeCycleStatus = "DEPRECATED"
WebSubAPILifeCycleStatusPUBLISHED WebSubAPILifeCycleStatus = "PUBLISHED"
WebSubAPILifeCycleStatusRETIRED WebSubAPILifeCycleStatus = "RETIRED"
)
// Defines values for WebSubAPITransport.
const (
Http WebSubAPITransport = "http"
Https WebSubAPITransport = "https"
)
// Defines values for WebSubAPIListItemLifeCycleStatus.
const (
WebSubAPIListItemLifeCycleStatusCREATED WebSubAPIListItemLifeCycleStatus = "CREATED"
WebSubAPIListItemLifeCycleStatusDEPRECATED WebSubAPIListItemLifeCycleStatus = "DEPRECATED"
WebSubAPIListItemLifeCycleStatusPUBLISHED WebSubAPIListItemLifeCycleStatus = "PUBLISHED"
WebSubAPIListItemLifeCycleStatusRETIRED WebSubAPIListItemLifeCycleStatus = "RETIRED"
)
// Defines values for ArtifactTypeQ.
const (
ArtifactTypeQAPIPRODUCT ArtifactTypeQ = "API_PRODUCT"
ArtifactTypeQMCP ArtifactTypeQ = "MCP"
ArtifactTypeQRESTAPI ArtifactTypeQ = "REST_API"
)
// Defines values for DeploymentStatusQ.
const (
DeploymentStatusQARCHIVED DeploymentStatusQ = "ARCHIVED"
DeploymentStatusQDEPLOYED DeploymentStatusQ = "DEPLOYED"
DeploymentStatusQDEPLOYING DeploymentStatusQ = "DEPLOYING"
DeploymentStatusQFAILED DeploymentStatusQ = "FAILED"
DeploymentStatusQUNDEPLOYED DeploymentStatusQ = "UNDEPLOYED"
DeploymentStatusQUNDEPLOYING DeploymentStatusQ = "UNDEPLOYING"
)
// Defines values for GetGatewayArtifactsParamsArtifactType.
const (
GetGatewayArtifactsParamsArtifactTypeAPIPRODUCT GetGatewayArtifactsParamsArtifactType = "API_PRODUCT"
GetGatewayArtifactsParamsArtifactTypeMCP GetGatewayArtifactsParamsArtifactType = "MCP"
GetGatewayArtifactsParamsArtifactTypeRESTAPI GetGatewayArtifactsParamsArtifactType = "REST_API"
)
// Defines values for GetLLMProviderDeploymentsParamsStatus.
const (
GetLLMProviderDeploymentsParamsStatusARCHIVED GetLLMProviderDeploymentsParamsStatus = "ARCHIVED"
GetLLMProviderDeploymentsParamsStatusDEPLOYED GetLLMProviderDeploymentsParamsStatus = "DEPLOYED"
GetLLMProviderDeploymentsParamsStatusDEPLOYING GetLLMProviderDeploymentsParamsStatus = "DEPLOYING"
GetLLMProviderDeploymentsParamsStatusFAILED GetLLMProviderDeploymentsParamsStatus = "FAILED"
GetLLMProviderDeploymentsParamsStatusUNDEPLOYED GetLLMProviderDeploymentsParamsStatus = "UNDEPLOYED"
GetLLMProviderDeploymentsParamsStatusUNDEPLOYING GetLLMProviderDeploymentsParamsStatus = "UNDEPLOYING"
)
// Defines values for GetLLMProxyDeploymentsParamsStatus.
const (
GetLLMProxyDeploymentsParamsStatusARCHIVED GetLLMProxyDeploymentsParamsStatus = "ARCHIVED"
GetLLMProxyDeploymentsParamsStatusDEPLOYED GetLLMProxyDeploymentsParamsStatus = "DEPLOYED"
GetLLMProxyDeploymentsParamsStatusDEPLOYING GetLLMProxyDeploymentsParamsStatus = "DEPLOYING"
GetLLMProxyDeploymentsParamsStatusFAILED GetLLMProxyDeploymentsParamsStatus = "FAILED"
GetLLMProxyDeploymentsParamsStatusUNDEPLOYED GetLLMProxyDeploymentsParamsStatus = "UNDEPLOYED"
GetLLMProxyDeploymentsParamsStatusUNDEPLOYING GetLLMProxyDeploymentsParamsStatus = "UNDEPLOYING"
)
// Defines values for GetMCPProxyDeploymentsParamsStatus.
const (
GetMCPProxyDeploymentsParamsStatusARCHIVED GetMCPProxyDeploymentsParamsStatus = "ARCHIVED"
GetMCPProxyDeploymentsParamsStatusDEPLOYED GetMCPProxyDeploymentsParamsStatus = "DEPLOYED"
GetMCPProxyDeploymentsParamsStatusDEPLOYING GetMCPProxyDeploymentsParamsStatus = "DEPLOYING"
GetMCPProxyDeploymentsParamsStatusFAILED GetMCPProxyDeploymentsParamsStatus = "FAILED"
GetMCPProxyDeploymentsParamsStatusUNDEPLOYED GetMCPProxyDeploymentsParamsStatus = "UNDEPLOYED"
GetMCPProxyDeploymentsParamsStatusUNDEPLOYING GetMCPProxyDeploymentsParamsStatus = "UNDEPLOYING"
)
// Defines values for ListUserAPIKeysParamsType.
const (
LlmProvider ListUserAPIKeysParamsType = "LlmProvider"
LlmProxy ListUserAPIKeysParamsType = "LlmProxy"
RestApi ListUserAPIKeysParamsType = "RestApi"
)
// Defines values for GetDeploymentsParamsStatus.
const (
GetDeploymentsParamsStatusARCHIVED GetDeploymentsParamsStatus = "ARCHIVED"
GetDeploymentsParamsStatusDEPLOYED GetDeploymentsParamsStatus = "DEPLOYED"
GetDeploymentsParamsStatusDEPLOYING GetDeploymentsParamsStatus = "DEPLOYING"
GetDeploymentsParamsStatusFAILED GetDeploymentsParamsStatus = "FAILED"
GetDeploymentsParamsStatusUNDEPLOYED GetDeploymentsParamsStatus = "UNDEPLOYED"
GetDeploymentsParamsStatusUNDEPLOYING GetDeploymentsParamsStatus = "UNDEPLOYING"
)
// Defines values for ListSubscriptionsParamsStatus.
const (
ACTIVE ListSubscriptionsParamsStatus = "ACTIVE"
INACTIVE ListSubscriptionsParamsStatus = "INACTIVE"
REVOKED ListSubscriptionsParamsStatus = "REVOKED"
)
// APIKeyItem defines model for APIKeyItem.
type APIKeyItem struct {
// AllowedTargets Comma-separated list of allowed gateways; 'ALL' means unrestricted
AllowedTargets string `binding:"required" json:"allowedTargets" yaml:"allowedTargets"`
// CreatedAt Timestamp when the key was created
CreatedAt time.Time `binding:"required" json:"createdAt" yaml:"createdAt"`
// CreatedBy User who created the key
CreatedBy string `binding:"required" json:"createdBy" yaml:"createdBy"`
// ExpiresAt Optional expiration timestamp
ExpiresAt *time.Time `json:"expiresAt,omitempty" yaml:"expiresAt,omitempty"`
// Issuer Optional identifier of the developer portal that provisioned this key
Issuer *string `json:"issuer,omitempty" yaml:"issuer,omitempty"`
// MaskedApiKey Masked representation of the API key for display purposes
MaskedApiKey string `binding:"required" json:"maskedApiKey" yaml:"maskedApiKey"`
// Name URL-safe identifier of the API key
Name string `binding:"required" json:"name" yaml:"name"`
// Status Current status of the key
Status APIKeyItemStatus `binding:"required" json:"status" yaml:"status"`
// UpdatedAt Timestamp when the key was last updated
UpdatedAt time.Time `binding:"required" json:"updatedAt" yaml:"updatedAt"`
}
// APIKeyItemStatus Current status of the key
type APIKeyItemStatus string
// APIKeyMappingAssociatedEntity defines model for APIKeyMappingAssociatedEntity.
type APIKeyMappingAssociatedEntity struct {
// Id ID of the entity that owns the API key
Id string `binding:"required" json:"id" yaml:"id"`
}
// APIKeyMappingSelector defines model for APIKeyMappingSelector.
type APIKeyMappingSelector struct {
AssociatedEntity APIKeyMappingAssociatedEntity `json:"associatedEntity" yaml:"associatedEntity"`
// KeyId API key name
KeyId string `binding:"required" json:"keyId" yaml:"keyId"`
}
// APIKeySecurity Configuration for API key based authentication
type APIKeySecurity struct {
// Enabled Whether API key authentication is enabled
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
// In Location of the API key (header or query)
In *APIKeySecurityIn `json:"in,omitempty" yaml:"in,omitempty"`
// Key Name of the header or query parameter to be used for the API key
Key *string `json:"key,omitempty" yaml:"key,omitempty"`
}
// APIKeySecurityIn Location of the API key (header or query)
type APIKeySecurityIn string
// AddApplicationAPIKeysRequest defines model for AddApplicationAPIKeysRequest.
type AddApplicationAPIKeysRequest struct {
// ApiKeys List of API key selectors to add to the application mappings
ApiKeys []APIKeyMappingSelector `binding:"required" json:"apiKeys" yaml:"apiKeys"`
}
// AddApplicationAssociationsRequest defines model for AddApplicationAssociationsRequest.
type AddApplicationAssociationsRequest struct {
// Associations List of association selectors to add to the application
Associations []ApplicationAssociationSelector `binding:"required" json:"associations" yaml:"associations"`
}
// AddGatewayToRESTAPIRequest defines model for AddGatewayToRESTAPIRequest.
type AddGatewayToRESTAPIRequest struct {
GatewayId openapi_types.UUID `binding:"required" json:"gatewayId" yaml:"gatewayId"`
}
// Application defines model for Application.
type Application struct {
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
// CreatedBy Creator identifier
CreatedBy *string `json:"createdBy,omitempty" yaml:"createdBy,omitempty"`
// Description Description of the application
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Id Application handle/identifier
Id string `binding:"required" json:"id" yaml:"id"`
// Name Name of the application
Name string `binding:"required" json:"name" yaml:"name"`
// ProjectId UUID of the project this application belongs to
ProjectId openapi_types.UUID `binding:"required" json:"projectId" yaml:"projectId"`
// Type Type of the application
Type ApplicationType `json:"type" yaml:"type"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
}
// ApplicationAssociation defines model for ApplicationAssociation.
type ApplicationAssociation struct {
// CreatedAt Timestamp when the association was created
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
// Id Handle/ID of the associated target
Id string `binding:"required" json:"id" yaml:"id"`
// Kind Type of associated target
Kind string `binding:"required" json:"kind" yaml:"kind"`
// Name Display name of the associated target
Name string `binding:"required" json:"name" yaml:"name"`
// UpdatedAt Timestamp when the association was updated
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// Uuid UUID of the associated target
Uuid openapi_types.UUID `binding:"required" json:"uuid" yaml:"uuid"`
// Version Version of the associated target
Version string `binding:"required" json:"version" yaml:"version"`
}
// ApplicationAssociationListResponse defines model for ApplicationAssociationListResponse.
type ApplicationAssociationListResponse struct {
// Count Number of items in current response
Count int `binding:"required" json:"count" yaml:"count"`
List []ApplicationAssociation `binding:"required" json:"list" yaml:"list"`
Pagination Pagination `json:"pagination" yaml:"pagination"`
}
// ApplicationAssociationSelector defines model for ApplicationAssociationSelector.
type ApplicationAssociationSelector struct {
// Id ID or handle of the association target
Id string `binding:"required" json:"id" yaml:"id"`
// Kind Type of the association target
Kind ApplicationAssociationSelectorKind `binding:"required" json:"kind" yaml:"kind"`
}
// ApplicationAssociationSelectorKind Type of the association target
type ApplicationAssociationSelectorKind string
// ApplicationListResponse defines model for ApplicationListResponse.
type ApplicationListResponse struct {
// Count Number of items in current response
Count int `binding:"required" json:"count" yaml:"count"`
List []Application `binding:"required" json:"list" yaml:"list"`
Pagination Pagination `json:"pagination" yaml:"pagination"`
}
// ApplicationType Type of the application
type ApplicationType string
// AssociatedEntity defines model for AssociatedEntity.
type AssociatedEntity struct {
// Id ID of the associated entity
Id string `binding:"required" json:"id" yaml:"id"`
// Kind Type of the associated entity
Kind string `binding:"required" json:"kind" yaml:"kind"`
}
// Channel Defines a single channel within the Async API
type Channel struct {
// Description Description of the channel
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Name Name of the channel
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
// Request Request details for a channel within the Async API
Request ChannelRequest `json:"request" yaml:"request"`
}
// ChannelRequest Request details for a channel within the Async API
type ChannelRequest struct {
// Method Async method for the channel
Method ChannelRequestMethod `binding:"required" json:"method" yaml:"method"`
// Name Channel name for the event
Name string `binding:"required" json:"name" yaml:"name"`
// Policies List of policies to be applied on the operation
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
}
// ChannelRequestMethod Async method for the channel
type ChannelRequestMethod string
// CommonResponse defines model for CommonResponse.
type CommonResponse struct {
// Message Response message
Message string `binding:"required" json:"message" yaml:"message"`
// Success Whether the operation was successful
Success bool `binding:"required" json:"success" yaml:"success"`
// Timestamp Timestamp of the response
Timestamp time.Time `binding:"required" json:"timestamp" yaml:"timestamp"`
}
// CostRateLimitDimension defines model for CostRateLimitDimension.
type CostRateLimitDimension struct {
// Amount Maximum cost in the reset window.
Amount *float32 `json:"amount,omitempty" yaml:"amount,omitempty"`
// Enabled Enable cost-based limiting.
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
Reset *RateLimitResetWindow `json:"reset,omitempty" yaml:"reset,omitempty"`
}
// CreateAPIKeyRequest defines model for CreateAPIKeyRequest.
type CreateAPIKeyRequest struct {
// ApiKey The plain text API key value that will be hashed before storage
ApiKey string `binding:"required" json:"apiKey" yaml:"apiKey"`
// DisplayName Display name of the API key
DisplayName *string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
// ExpiresAt Optional expiration time in ISO 8601 format
ExpiresAt *time.Time `json:"expiresAt" yaml:"expiresAt"`
ExpiresIn *ExpirationDuration `json:"expiresIn,omitempty" yaml:"expiresIn,omitempty"`
// ExternalRefId Optional reference ID for tracing purposes (from external platforms)
ExternalRefId *string `json:"externalRefId" yaml:"externalRefId"`
// Issuer Identifier of the developer portal that provisioned this API key. Null if not provided.
Issuer *string `json:"issuer" yaml:"issuer"`
// Name Unique identifier for this API key within the API (optional; if omitted,
// generated from displayName)
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
}
// CreateAPIKeyResponse defines model for CreateAPIKeyResponse.
type CreateAPIKeyResponse struct {
// KeyId The internal ID generated for tracking
KeyId *string `json:"keyId,omitempty" yaml:"keyId,omitempty"`
// Message Additional details about the operation result
Message string `binding:"required" json:"message" yaml:"message"`
// Status Status of the operation
Status CreateAPIKeyResponseStatus `binding:"required" json:"status" yaml:"status"`
}
// CreateAPIKeyResponseStatus Status of the operation
type CreateAPIKeyResponseStatus string
// CreateApplicationRequest Request body for creating an application.
type CreateApplicationRequest struct {
// CreatedBy Creator identifier
CreatedBy *string `json:"createdBy,omitempty" yaml:"createdBy,omitempty"`
// Description Description of the application
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Id Unique handle/identifier for the application. Can be provided during creation or auto-generated.
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// Name Name of the application
Name string `binding:"required" json:"name" yaml:"name"`
// ProjectId UUID of the project this application belongs to.
ProjectId openapi_types.UUID `binding:"required" json:"projectId" yaml:"projectId"`
// Type Type of the application
Type ApplicationType `json:"type" yaml:"type"`
}
// CreateDevPortalRequest defines model for CreateDevPortalRequest.
type CreateDevPortalRequest struct {
// ApiKey API key for authentication with the DevPortal
ApiKey string `binding:"required" json:"apiKey" yaml:"apiKey"`
// ApiUrl API URL of the DevPortal
ApiUrl string `binding:"required" json:"apiUrl" yaml:"apiUrl"`
// Description Description of the DevPortal
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// HeaderKeyName Custom header name for API key (optional)
HeaderKeyName *string `json:"headerKeyName,omitempty" yaml:"headerKeyName,omitempty"`
// Hostname Hostname of the DevPortal
Hostname string `binding:"required" json:"hostname" yaml:"hostname"`
// Identifier Unique identifier for the DevPortal
Identifier string `binding:"required" json:"identifier" yaml:"identifier"`
// Name Display name of the DevPortal
Name string `binding:"required" json:"name" yaml:"name"`
// Visibility Visibility of the DevPortal
Visibility *CreateDevPortalRequestVisibility `json:"visibility,omitempty" yaml:"visibility,omitempty"`
}
// CreateDevPortalRequestVisibility Visibility of the DevPortal
type CreateDevPortalRequestVisibility string
// CreateGatewayRequest Request body for creating a gateway. Organization ID is automatically extracted
// from the JWT token and does not need to be provided.
type CreateGatewayRequest struct {
// Description Description of the gateway
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// DisplayName Human-readable gateway name
DisplayName string `binding:"required" json:"displayName" yaml:"displayName"`
// FunctionalityType Type of gateway functionality
FunctionalityType CreateGatewayRequestFunctionalityType `binding:"required" json:"functionalityType" yaml:"functionalityType"`
// IsCritical Whether the gateway is critical for production
IsCritical *bool `json:"isCritical,omitempty" yaml:"isCritical,omitempty"`
// Name URL-friendly gateway identifier (lowercase alphanumeric with hyphens, unique per organization)
Name string `binding:"required" json:"name" yaml:"name"`
// Properties Custom key-value properties for the gateway
Properties *map[string]interface{} `json:"properties,omitempty" yaml:"properties,omitempty"`
// Version Gateway version in `major.minor` format (e.g. `1.0`) or `major.minor.patch-preview-<build>` format (e.g. `1.1.0-preview-202603` or `1.1.0-preview-202603.1`). Defaults to `1.0` if not provided.
Version *string `json:"version,omitempty" yaml:"version,omitempty"`
// Vhost Virtual host (domain name) for the gateway
Vhost string `binding:"required" json:"vhost" yaml:"vhost"`
}
// CreateGatewayRequestFunctionalityType Type of gateway functionality
type CreateGatewayRequestFunctionalityType string
// CreateLLMProviderAPIKeyRequest defines model for CreateLLMProviderAPIKeyRequest.
type CreateLLMProviderAPIKeyRequest struct {
// AllowedTargets Comma-separated list of gateways this key is valid for.
// Use 'ALL' to allow all targets (default).
AllowedTargets *string `json:"allowedTargets" yaml:"allowedTargets"`
// DisplayName User-friendly name for the API key
DisplayName *string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
// ExpiresAt Optional expiration time in ISO 8601 format
ExpiresAt *time.Time `json:"expiresAt,omitempty" yaml:"expiresAt,omitempty"`
// Issuer Identifier of the developer portal that provisioned this API key. Null if not provided.
Issuer *string `json:"issuer" yaml:"issuer"`
// Name Unique identifier for the API key within the LLM provider. If not provided, generated from displayName.
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
}
// CreateLLMProviderAPIKeyResponse defines model for CreateLLMProviderAPIKeyResponse.
type CreateLLMProviderAPIKeyResponse struct {
// ApiKey The generated API key value (shown only once, 64 hexadecimal characters)
ApiKey string `binding:"required" json:"apiKey" yaml:"apiKey"`
// KeyId Unique identifier of the generated key
KeyId string `binding:"required" json:"keyId" yaml:"keyId"`
// Message Detailed message about the operation result
Message string `binding:"required" json:"message" yaml:"message"`
// Status Status of the operation
Status string `binding:"required" json:"status" yaml:"status"`
}
// CreateLLMProxyAPIKeyRequest defines model for CreateLLMProxyAPIKeyRequest.
type CreateLLMProxyAPIKeyRequest struct {
// AllowedTargets Comma-separated list of gateways this key is valid for.
// Use 'ALL' to allow all targets (default).
AllowedTargets *string `json:"allowedTargets" yaml:"allowedTargets"`
// DisplayName User-friendly name for the API key
DisplayName *string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
// ExpiresAt Optional expiration time in ISO 8601 format
ExpiresAt *time.Time `json:"expiresAt,omitempty" yaml:"expiresAt,omitempty"`
// Issuer Identifier of the developer portal that provisioned this API key. Null if not provided.
Issuer *string `json:"issuer" yaml:"issuer"`
// Name Unique identifier for the API key within the LLM proxy. If not provided, generated from displayName.
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
}
// CreateLLMProxyAPIKeyResponse defines model for CreateLLMProxyAPIKeyResponse.
type CreateLLMProxyAPIKeyResponse struct {
// ApiKey The generated API key value (shown only once, 64 hexadecimal characters)
ApiKey string `binding:"required" json:"apiKey" yaml:"apiKey"`
// KeyId Unique identifier of the generated key
KeyId string `binding:"required" json:"keyId" yaml:"keyId"`
// Message Detailed message about the operation result
Message string `binding:"required" json:"message" yaml:"message"`
// Status Status of the operation
Status string `binding:"required" json:"status" yaml:"status"`
}
// CreateProjectRequest Request body for creating a project. Organization ID is automatically extracted
// from the JWT token and does not need to be provided.
type CreateProjectRequest struct {
// Description Description of the project
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Id UUID of the project
Id *openapi_types.UUID `json:"id,omitempty" yaml:"id,omitempty"`
// Name Name of the project
Name string `binding:"required" json:"name" yaml:"name"`
}
// CreateRESTAPIRequest defines model for CreateRESTAPIRequest.
type CreateRESTAPIRequest struct {
// Channels List of channels exposed by this API
Channels *[]Channel `json:"channels,omitempty" yaml:"channels,omitempty"`
Context string `binding:"required" json:"context" yaml:"context"`
// CreatedAt Timestamp when the api was created
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
// CreatedBy If the createdBy value is not given user invoking the api will be used as the createdBy.
CreatedBy *string `json:"createdBy,omitempty" yaml:"createdBy,omitempty"`
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
// Id Unique handle/identifier for the API. Can be provided during creation or auto-generated.
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// Kind Kind of the API based on its communication protocol or architectural style
Kind *string `json:"kind,omitempty" yaml:"kind,omitempty"`
// LifeCycleStatus Current lifecycle status of the API
LifeCycleStatus *CreateRESTAPIRequestLifeCycleStatus `json:"lifeCycleStatus,omitempty" yaml:"lifeCycleStatus,omitempty"`
// Name Display name of the API
Name string `binding:"required" json:"name" yaml:"name"`
// Operations List of operations exposed by this API
Operations *[]Operation `json:"operations,omitempty" yaml:"operations,omitempty"`
// Policies List of policies to be applied on the API
Policies *[]Policy `json:"policies,omitempty" yaml:"policies,omitempty"`
// ProjectId ID of the project this API belongs to
ProjectId openapi_types.UUID `binding:"required" json:"projectId" yaml:"projectId"`
// SubscriptionPlans List of subscription plan names enabled for this API (e.g. Gold, Silver).
// When set, only these plans can be used when subscribing to the API.
SubscriptionPlans *[]string `json:"subscriptionPlans,omitempty" yaml:"subscriptionPlans,omitempty"`
// Transport Supported transports for the API (http and/or https)
Transport *[]string `json:"transport,omitempty" yaml:"transport,omitempty"`
// UpdatedAt Timestamp when the api was last updated
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// Upstream Upstream backend configuration with main and sandbox endpoints
Upstream Upstream `json:"upstream" yaml:"upstream"`
Version string `binding:"required" json:"version" yaml:"version"`
}
// CreateRESTAPIRequestLifeCycleStatus Current lifecycle status of the API
type CreateRESTAPIRequestLifeCycleStatus string
// CreateSubscriptionPlanRequest defines model for CreateSubscriptionPlanRequest.
type CreateSubscriptionPlanRequest struct {
// BillingPlan Billing plan type (e.g. Free, Commercial)
BillingPlan *string `json:"billingPlan,omitempty" yaml:"billingPlan,omitempty"`
// ExpiryTime Optional plan expiry time (RFC3339)
ExpiryTime *time.Time `json:"expiryTime,omitempty" yaml:"expiryTime,omitempty"`
// PlanName Name of the subscription plan
PlanName string `binding:"required" json:"planName" yaml:"planName"`
Status *CreateSubscriptionPlanRequestStatus `json:"status,omitempty" yaml:"status,omitempty"`
// StopOnQuotaReach Whether to block requests when quota is exhausted
StopOnQuotaReach *bool `json:"stopOnQuotaReach,omitempty" yaml:"stopOnQuotaReach,omitempty"`
// ThrottleLimitCount Number of requests allowed in the throttle window (must be paired with throttleLimitUnit)
ThrottleLimitCount *int `json:"throttleLimitCount,omitempty" yaml:"throttleLimitCount,omitempty"`