11from enum import Enum
2- from .base_model import Page
32from .models import *
3+ from .base_model import Page
4+ from .services .allowlists import Allowlists
45from .services .blocklists import Blocklists
56from .services .integrations import Integrations
67from .services .info import Info
8+ from .services .metrics import Metrics
79from .services .hub import Hub
810from .http_client import ApiKeyAuth
911
1012class Server (Enum ):
1113 production_server = 'https://admin.api.crowdsec.net/v1/'
1214
1315__all__ = [
16+ 'Allowlists' ,
1417 'Blocklists' ,
1518 'Integrations' ,
1619 'Info' ,
20+ 'Metrics' ,
1721 'Hub' ,
22+ 'AllowlistCreateRequest' ,
23+ 'AllowlistCreateResponse' ,
24+ 'AllowlistGetItemsResponse' ,
25+ 'AllowlistGetResponse' ,
26+ 'AllowlistItemUpdateRequest' ,
27+ 'AllowlistItemUpdateResponse' ,
28+ 'AllowlistItemsCreateRequest' ,
29+ 'AllowlistScope' ,
30+ 'AllowlistSubscriberEntity' ,
31+ 'AllowlistSubscribersCount' ,
32+ 'AllowlistSubscriptionRequest' ,
33+ 'AllowlistSubscriptionResponse' ,
34+ 'AllowlistUpdateRequest' ,
35+ 'AllowlistUpdateResponse' ,
1836 'ApiKeyCredentials' ,
37+ 'AttacksMetrics' ,
1938 'BasicAuthCredentials' ,
2039 'BlocklistAddIPsRequest' ,
40+ 'BlocklistCategory' ,
2141 'BlocklistContentStats' ,
2242 'BlocklistCreateRequest' ,
23- 'BlocklistCreateResponse' ,
2443 'BlocklistDeleteIPsRequest' ,
25- 'BlocklistGetResponse' ,
2644 'BlocklistIncludeFilters' ,
27- 'BlocklistResponse ' ,
45+ 'BlocklistOrigin ' ,
2846 'BlocklistSearchRequest' ,
2947 'BlocklistShareRequest' ,
3048 'BlocklistSources' ,
@@ -37,13 +55,16 @@ class Server(Enum):
3755 'BlocklistUpdateRequest' ,
3856 'BlocklistUsageStats' ,
3957 'Body_uploadBlocklistContent' ,
58+ 'ComputedMetrics' ,
59+ 'ComputedSavedMetrics' ,
4060 'CtiAs' ,
4161 'CtiBehavior' ,
4262 'CtiCategory' ,
4363 'CtiCountry' ,
4464 'CtiIp' ,
4565 'CtiScenario' ,
4666 'EntityType' ,
67+ 'GetRemediationMetricsResponse' ,
4768 'HTTPValidationError' ,
4869 'InfoResponse' ,
4970 'IntegrationCreateRequest' ,
@@ -53,18 +74,36 @@ class Server(Enum):
5374 'IntegrationUpdateRequest' ,
5475 'IntegrationUpdateResponse' ,
5576 'Links' ,
77+ 'MetricUnits' ,
78+ 'OriginMetrics' ,
5679 'OutputFormat' ,
57- 'Page_BlocklistResponse_' ,
58- 'Page_IntegrationGetResponse_' ,
59- 'PaginatedBlocklistResponse' ,
80+ 'PageAllowlistGetItemsResponse' ,
81+ 'PageAllowlistGetResponse' ,
82+ 'PageAllowlistSubscriberEntity' ,
83+ 'PageIntegrationGetResponse' ,
84+ 'PagePublicBlocklistResponse' ,
6085 'Permission' ,
6186 'PricingTiers' ,
87+ 'PublicBlocklistResponse' ,
88+ 'PublicPaginatedBlocklistResponse' ,
89+ 'RawMetrics' ,
90+ 'RemediationMetrics' ,
91+ 'RemediationMetricsData' ,
6292 'Share' ,
93+ 'SourceInfo' ,
94+ 'SourceType' ,
6395 'Stats' ,
96+ 'SubscriberEntityType' ,
6497 'ValidationError' ,
65- 'HubItem' ,
66- 'HubType' ,
98+ 'AppsecConfigIndex' ,
99+ 'AppsecRuleIndex' ,
100+ 'CollectionIndex' ,
101+ 'ContextIndex' ,
67102 'Index' ,
103+ 'ParserIndex' ,
104+ 'PostoverflowIndex' ,
105+ 'ScenarioIndex' ,
106+ 'VersionDetail' ,
68107 'ApiKeyAuth' ,
69108 'Server' ,
70109 'Page'
0 commit comments