|
25 | 25 | from gcl_sdk.agents.universal.dm import models as ua_models |
26 | 26 |
|
27 | 27 | from genesis_core.common.dm import models as cm |
| 28 | +from genesis_core.common import constants as c |
28 | 29 | from genesis_core.secret import constants as sc |
29 | 30 |
|
30 | 31 |
|
@@ -92,21 +93,21 @@ def get_resource_target_fields(self) -> set[str]: |
92 | 93 |
|
93 | 94 | @classmethod |
94 | 95 | def get_new_passwords( |
95 | | - cls, limit: int = sc.DEFAULT_SQL_LIMIT |
| 96 | + cls, limit: int = c.DEFAULT_SQL_LIMIT |
96 | 97 | ) -> list["Password"]: |
97 | 98 | return cls.get_new_entities(cls.__tablename__, sc.PASSWORD_KIND, limit) |
98 | 99 |
|
99 | 100 | @classmethod |
100 | 101 | def get_updated_passwords( |
101 | | - cls, limit: int = sc.DEFAULT_SQL_LIMIT |
| 102 | + cls, limit: int = c.DEFAULT_SQL_LIMIT |
102 | 103 | ) -> list["Password"]: |
103 | 104 | return cls.get_updated_entities( |
104 | 105 | cls.__tablename__, sc.PASSWORD_KIND, limit |
105 | 106 | ) |
106 | 107 |
|
107 | 108 | @classmethod |
108 | 109 | def get_deleted_passwords( |
109 | | - cls, limit: int = sc.DEFAULT_SQL_LIMIT |
| 110 | + cls, limit: int = c.DEFAULT_SQL_LIMIT |
110 | 111 | ) -> list[ua_models.TargetResource]: |
111 | 112 | return cls.get_deleted_target_resources( |
112 | 113 | cls.__tablename__, sc.PASSWORD_KIND, limit |
@@ -185,23 +186,23 @@ def get_resource_target_fields(self) -> set[str]: |
185 | 186 |
|
186 | 187 | @classmethod |
187 | 188 | def get_new_certificates( |
188 | | - cls, limit: int = sc.DEFAULT_SQL_LIMIT |
| 189 | + cls, limit: int = c.DEFAULT_SQL_LIMIT |
189 | 190 | ) -> list["Certificate"]: |
190 | 191 | return cls.get_new_entities( |
191 | 192 | cls.__tablename__, sc.CERTIFICATE_KIND, limit |
192 | 193 | ) |
193 | 194 |
|
194 | 195 | @classmethod |
195 | 196 | def get_updated_certificates( |
196 | | - cls, limit: int = sc.DEFAULT_SQL_LIMIT |
| 197 | + cls, limit: int = c.DEFAULT_SQL_LIMIT |
197 | 198 | ) -> list["Certificate"]: |
198 | 199 | return cls.get_updated_entities( |
199 | 200 | cls.__tablename__, sc.CERTIFICATE_KIND, limit |
200 | 201 | ) |
201 | 202 |
|
202 | 203 | @classmethod |
203 | 204 | def get_deleted_certificates( |
204 | | - cls, limit: int = sc.DEFAULT_SQL_LIMIT |
| 205 | + cls, limit: int = c.DEFAULT_SQL_LIMIT |
205 | 206 | ) -> list[ua_models.TargetResource]: |
206 | 207 | return cls.get_deleted_target_resources( |
207 | 208 | cls.__tablename__, sc.CERTIFICATE_KIND, limit |
|
0 commit comments