crowdsec-tracker-api 1.94.2__py3-none-any.whl → 1.95.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crowdsec_tracker_api/models.py +11 -1
- crowdsec_tracker_api/services/cves.py +1 -1
- crowdsec_tracker_api/services/integrations.py +7 -2
- {crowdsec_tracker_api-1.94.2.dist-info → crowdsec_tracker_api-1.95.0.dist-info}/METADATA +1 -1
- crowdsec_tracker_api-1.95.0.dist-info/RECORD +12 -0
- crowdsec_tracker_api-1.94.2.dist-info/RECORD +0 -12
- {crowdsec_tracker_api-1.94.2.dist-info → crowdsec_tracker_api-1.95.0.dist-info}/WHEEL +0 -0
- {crowdsec_tracker_api-1.94.2.dist-info → crowdsec_tracker_api-1.95.0.dist-info}/licenses/LICENSE +0 -0
- {crowdsec_tracker_api-1.94.2.dist-info → crowdsec_tracker_api-1.95.0.dist-info}/top_level.txt +0 -0
crowdsec_tracker_api/models.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: <stdin>
|
|
3
|
-
# timestamp: 2025-12-
|
|
3
|
+
# timestamp: 2025-12-31T15:56:47+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -445,6 +445,16 @@ class IntegrationsUpdateIntegrationPathParameters(BaseModelSdk):
|
|
|
445
445
|
integration_id: Annotated[str, Field(title='Integration Id')]
|
|
446
446
|
|
|
447
447
|
|
|
448
|
+
class IntegrationsDeleteIntegrationQueryParameters(BaseModelSdk):
|
|
449
|
+
force: Annotated[
|
|
450
|
+
Optional[bool],
|
|
451
|
+
Field(
|
|
452
|
+
description='Force delete the integration even if it has active subscriptions (it will unsubscribe from all lists)',
|
|
453
|
+
title='Force',
|
|
454
|
+
),
|
|
455
|
+
] = False
|
|
456
|
+
|
|
457
|
+
|
|
448
458
|
class IntegrationsDeleteIntegrationPathParameters(BaseModelSdk):
|
|
449
459
|
integration_id: Annotated[str, Field(title='Integration Id')]
|
|
450
460
|
|
|
@@ -11,7 +11,7 @@ from ..http_client import HttpClient
|
|
|
11
11
|
|
|
12
12
|
class Cves(Service):
|
|
13
13
|
def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
|
|
14
|
-
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.
|
|
14
|
+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.95.0")
|
|
15
15
|
|
|
16
16
|
def get_cves(
|
|
17
17
|
self,
|
|
@@ -11,7 +11,7 @@ from ..http_client import HttpClient
|
|
|
11
11
|
|
|
12
12
|
class Integrations(Service):
|
|
13
13
|
def __init__(self, auth: Auth, base_url: str = "https://admin.api.crowdsec.net/v1") -> None:
|
|
14
|
-
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.
|
|
14
|
+
super().__init__(base_url=base_url, auth=auth, user_agent="crowdsec_tracker_api/1.95.0")
|
|
15
15
|
|
|
16
16
|
def get_integrations(
|
|
17
17
|
self,
|
|
@@ -77,11 +77,16 @@ class Integrations(Service):
|
|
|
77
77
|
def delete_integration(
|
|
78
78
|
self,
|
|
79
79
|
integration_id: str,
|
|
80
|
+
force: bool = False,
|
|
80
81
|
):
|
|
81
82
|
endpoint_url = "/integrations/{integration_id}"
|
|
82
83
|
loc = locals()
|
|
83
84
|
headers = {}
|
|
84
|
-
params =
|
|
85
|
+
params = json.loads(
|
|
86
|
+
IntegrationsDeleteIntegrationQueryParameters(**loc).model_dump_json(
|
|
87
|
+
exclude_none=True
|
|
88
|
+
)
|
|
89
|
+
)
|
|
85
90
|
path_params = json.loads(
|
|
86
91
|
IntegrationsDeleteIntegrationPathParameters(**loc).model_dump_json(
|
|
87
92
|
exclude_none=True
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
crowdsec_tracker_api/__init__.py,sha256=qVgdTR0nEMf7N9E1vr2W8fushTJNNahUiKRrkKPK5eE,1359
|
|
2
|
+
crowdsec_tracker_api/base_model.py,sha256=z6dOHObB9zrdrBvt1sEymqWkTo2jKVo3tj0rtQmah9A,1978
|
|
3
|
+
crowdsec_tracker_api/http_client.py,sha256=HdEn7rolYXCSVZDy2l5AejO9mYdHVjuXWAPt_5W7xT0,4794
|
|
4
|
+
crowdsec_tracker_api/models.py,sha256=gJtYV2XxtFfZji7aHgBOVfL3yoY9bpRSyumYDGyzRRo,31599
|
|
5
|
+
crowdsec_tracker_api/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
crowdsec_tracker_api/services/cves.py,sha256=33JL3AR6o1i8J7EJWDgDnyYlNhrXfLSD6enbbKH7A8I,5435
|
|
7
|
+
crowdsec_tracker_api/services/integrations.py,sha256=HBERLc8Mi5eQr0fhdbDJNRuJixjH7p1pZOSQGH1L5TI,5484
|
|
8
|
+
crowdsec_tracker_api-1.95.0.dist-info/licenses/LICENSE,sha256=fDPfY1qTG2iqaRIHXQOfPol7DIaWatUayHa8SUPk4cE,1064
|
|
9
|
+
crowdsec_tracker_api-1.95.0.dist-info/METADATA,sha256=-_JGlqz06fXN4zSTZVb9WkQezkdg0nIxPdv-j_HFp-E,1206
|
|
10
|
+
crowdsec_tracker_api-1.95.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
crowdsec_tracker_api-1.95.0.dist-info/top_level.txt,sha256=PjzuJQNS-E2cYLihw-evV3MrsY9OWAb8QNKEFEg1hhE,21
|
|
12
|
+
crowdsec_tracker_api-1.95.0.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
crowdsec_tracker_api/__init__.py,sha256=qVgdTR0nEMf7N9E1vr2W8fushTJNNahUiKRrkKPK5eE,1359
|
|
2
|
-
crowdsec_tracker_api/base_model.py,sha256=z6dOHObB9zrdrBvt1sEymqWkTo2jKVo3tj0rtQmah9A,1978
|
|
3
|
-
crowdsec_tracker_api/http_client.py,sha256=HdEn7rolYXCSVZDy2l5AejO9mYdHVjuXWAPt_5W7xT0,4794
|
|
4
|
-
crowdsec_tracker_api/models.py,sha256=bvZy3rhXxczSRRBAa7Q_omSCMrX60d50hQREkI9T-cM,31289
|
|
5
|
-
crowdsec_tracker_api/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
crowdsec_tracker_api/services/cves.py,sha256=WDCvqdpiCgtPz_lLvROqy1ubyj_kcTQ3RcRyRrnxCjI,5435
|
|
7
|
-
crowdsec_tracker_api/services/integrations.py,sha256=qko4vX944CRK4kRFhr7ut0XAQaeyUSb3QxAy_KSxOuQ,5307
|
|
8
|
-
crowdsec_tracker_api-1.94.2.dist-info/licenses/LICENSE,sha256=fDPfY1qTG2iqaRIHXQOfPol7DIaWatUayHa8SUPk4cE,1064
|
|
9
|
-
crowdsec_tracker_api-1.94.2.dist-info/METADATA,sha256=iKkccyRy3Oc1rkTzlUtm5CnEZ2ldcOW7FM8W4-g49a0,1206
|
|
10
|
-
crowdsec_tracker_api-1.94.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
-
crowdsec_tracker_api-1.94.2.dist-info/top_level.txt,sha256=PjzuJQNS-E2cYLihw-evV3MrsY9OWAb8QNKEFEg1hhE,21
|
|
12
|
-
crowdsec_tracker_api-1.94.2.dist-info/RECORD,,
|
|
File without changes
|
{crowdsec_tracker_api-1.94.2.dist-info → crowdsec_tracker_api-1.95.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{crowdsec_tracker_api-1.94.2.dist-info → crowdsec_tracker_api-1.95.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|