python3-core-api-client 6.0.2__py3-none-any.whl → 8.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.
- cyberfusion/CoreApiClient/connector.py +8 -0
- cyberfusion/CoreApiClient/models.py +381 -102
- cyberfusion/CoreApiClient/resources/__init__.py +4 -0
- cyberfusion/CoreApiClient/resources/available_versions.py +51 -0
- cyberfusion/CoreApiClient/resources/clusters.py +43 -38
- cyberfusion/CoreApiClient/resources/cmses.py +92 -0
- cyberfusion/CoreApiClient/resources/customers.py +2 -2
- cyberfusion/CoreApiClient/resources/daemons.py +20 -0
- cyberfusion/CoreApiClient/resources/database_users.py +22 -0
- cyberfusion/CoreApiClient/resources/node_add_ons.py +2 -2
- cyberfusion/CoreApiClient/resources/nodes.py +2 -2
- cyberfusion/CoreApiClient/resources/standards_scans.py +56 -0
- {python3_core_api_client-6.0.2.dist-info → python3_core_api_client-8.0.dist-info}/METADATA +2 -2
- {python3_core_api_client-6.0.2.dist-info → python3_core_api_client-8.0.dist-info}/RECORD +16 -14
- {python3_core_api_client-6.0.2.dist-info → python3_core_api_client-8.0.dist-info}/WHEEL +0 -0
- {python3_core_api_client-6.0.2.dist-info → python3_core_api_client-8.0.dist-info}/top_level.txt +0 -0
|
@@ -144,6 +144,13 @@ class BorgArchiveContentObjectTypeEnum(StrEnum):
|
|
|
144
144
|
SYMBOLIC_LINK = "symbolic_link"
|
|
145
145
|
|
|
146
146
|
|
|
147
|
+
class TimeUnitEnum(StrEnum):
|
|
148
|
+
HOURLY = "hourly"
|
|
149
|
+
DAILY = "daily"
|
|
150
|
+
WEEKLY = "weekly"
|
|
151
|
+
MONTHLY = "monthly"
|
|
152
|
+
|
|
153
|
+
|
|
147
154
|
class BorgArchiveCreateRequest(BaseCoreApiModel):
|
|
148
155
|
borg_repository_id: int
|
|
149
156
|
name: constr(pattern=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=64)
|
|
@@ -153,7 +160,7 @@ class BorgArchiveMetadata(BaseCoreApiModel):
|
|
|
153
160
|
name: constr(pattern=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=64)
|
|
154
161
|
borg_archive_id: int
|
|
155
162
|
exists_on_server: bool
|
|
156
|
-
contents_path:
|
|
163
|
+
contents_path: str
|
|
157
164
|
|
|
158
165
|
|
|
159
166
|
class BorgRepositoryCreateRequest(BaseCoreApiModel):
|
|
@@ -165,6 +172,7 @@ class BorgRepositoryCreateRequest(BaseCoreApiModel):
|
|
|
165
172
|
keep_monthly: Optional[int]
|
|
166
173
|
keep_yearly: Optional[int]
|
|
167
174
|
database_id: Optional[int]
|
|
175
|
+
frequency: TimeUnitEnum
|
|
168
176
|
|
|
169
177
|
|
|
170
178
|
class BorgRepositoryUpdateRequest(BaseCoreApiModel):
|
|
@@ -173,6 +181,7 @@ class BorgRepositoryUpdateRequest(BaseCoreApiModel):
|
|
|
173
181
|
keep_weekly: Optional[int] = None
|
|
174
182
|
keep_monthly: Optional[int] = None
|
|
175
183
|
keep_yearly: Optional[int] = None
|
|
184
|
+
frequency: Optional[TimeUnitEnum] = None
|
|
176
185
|
|
|
177
186
|
|
|
178
187
|
class CmsConfigurationConstant(BaseCoreApiModel):
|
|
@@ -205,7 +214,7 @@ class CmsInstallWordpressRequest(BaseCoreApiModel):
|
|
|
205
214
|
site_title: constr(pattern=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=253)
|
|
206
215
|
site_url: AnyUrl
|
|
207
216
|
locale: constr(pattern=r"^[a-zA-Z_]+$", min_length=1, max_length=15)
|
|
208
|
-
version: constr(pattern=r"^[0-9.]+$", min_length=1, max_length=
|
|
217
|
+
version: constr(pattern=r"^[0-9.]+$", min_length=1, max_length=20)
|
|
209
218
|
admin_email_address: EmailStr
|
|
210
219
|
|
|
211
220
|
|
|
@@ -242,6 +251,26 @@ class CmsThemeInstallFromUrlRequest(BaseCoreApiModel):
|
|
|
242
251
|
url: AnyUrl
|
|
243
252
|
|
|
244
253
|
|
|
254
|
+
class CmsConfigureRedisRequest(BaseCoreApiModel):
|
|
255
|
+
memory_limit: conint(ge=8)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
class CmsAutoInstallWordpressRequest(BaseCoreApiModel):
|
|
259
|
+
site_title: constr(pattern=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=253)
|
|
260
|
+
locale: constr(pattern=r"^[a-zA-Z_]+$", min_length=1, max_length=15)
|
|
261
|
+
version: constr(pattern=r"^[0-9.]+$", min_length=1, max_length=20)
|
|
262
|
+
admin_email_address: EmailStr
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
class CmsWoocommerceHpos(BaseCoreApiModel):
|
|
266
|
+
enabled: bool
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
class CmsDatabaseIndex(BaseCoreApiModel):
|
|
270
|
+
table_name: constr(min_length=1)
|
|
271
|
+
column_name: constr(min_length=1)
|
|
272
|
+
|
|
273
|
+
|
|
245
274
|
class CmsUserCredentialsUpdateRequest(BaseCoreApiModel):
|
|
246
275
|
password: constr(pattern=r"^[ -~]+$", min_length=24, max_length=255)
|
|
247
276
|
|
|
@@ -273,10 +302,56 @@ class NodejsVersion(RootCoreApiModel):
|
|
|
273
302
|
root: constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$")
|
|
274
303
|
|
|
275
304
|
|
|
305
|
+
class NodejsVersionIncludes(BaseCoreApiModel):
|
|
306
|
+
pass
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
class NodejsVersionResource(BaseCoreApiModel):
|
|
310
|
+
id: int
|
|
311
|
+
created_at: datetime
|
|
312
|
+
updated_at: datetime
|
|
313
|
+
major_release: conint(ge=0)
|
|
314
|
+
minor_release: conint(ge=0)
|
|
315
|
+
point_release: conint(ge=0)
|
|
316
|
+
includes: NodejsVersionIncludes
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
class PhpVersionIncludes(BaseCoreApiModel):
|
|
320
|
+
pass
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
class PhpVersionResource(BaseCoreApiModel):
|
|
324
|
+
id: int
|
|
325
|
+
created_at: datetime
|
|
326
|
+
updated_at: datetime
|
|
327
|
+
version: str
|
|
328
|
+
security_support_ends_at: datetime
|
|
329
|
+
includes: PhpVersionIncludes
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
class WordpressVersionStabilityEnum(StrEnum):
|
|
333
|
+
LATEST = "latest"
|
|
334
|
+
OUTDATED = "outdated"
|
|
335
|
+
INSECURE = "insecure"
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
class WordpressVersionIncludes(BaseCoreApiModel):
|
|
339
|
+
pass
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
class WordpressVersionResource(BaseCoreApiModel):
|
|
343
|
+
id: int
|
|
344
|
+
created_at: datetime
|
|
345
|
+
updated_at: datetime
|
|
346
|
+
version: str
|
|
347
|
+
stability: WordpressVersionStabilityEnum
|
|
348
|
+
includes: WordpressVersionIncludes
|
|
349
|
+
|
|
350
|
+
|
|
276
351
|
class ClusterIpAddress(BaseCoreApiModel):
|
|
277
352
|
ip_address: Union[IPv6Address, IPv4Address]
|
|
278
353
|
dns_name: Optional[str]
|
|
279
|
-
l3_ddos_protection_enabled: bool
|
|
354
|
+
l3_ddos_protection_enabled: bool = False
|
|
280
355
|
|
|
281
356
|
|
|
282
357
|
class ClusterIpAddresses(RootModelCollectionMixin, RootCoreApiModel): # type: ignore[misc]
|
|
@@ -426,6 +501,44 @@ class DatabaseUsageResource(BaseCoreApiModel):
|
|
|
426
501
|
includes: DatabaseUsageIncludes
|
|
427
502
|
|
|
428
503
|
|
|
504
|
+
class DaemonCpuUsageMetricResource(BaseCoreApiModel):
|
|
505
|
+
daemon_name: str
|
|
506
|
+
node_hostname: str
|
|
507
|
+
timestamp: int
|
|
508
|
+
value: float
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
class DaemonMemoryUsageMetricResource(BaseCoreApiModel):
|
|
512
|
+
daemon_name: str
|
|
513
|
+
node_hostname: str
|
|
514
|
+
timestamp: int
|
|
515
|
+
value: int
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
class DaemonsMetricsResource(BaseCoreApiModel):
|
|
519
|
+
cpu_usages: List[DaemonCpuUsageMetricResource]
|
|
520
|
+
memory_usages: List[DaemonMemoryUsageMetricResource]
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
class DatabaseUserCpuUsageMetricResource(BaseCoreApiModel):
|
|
524
|
+
database_user_name: str
|
|
525
|
+
node_hostname: str
|
|
526
|
+
timestamp: int
|
|
527
|
+
value: float
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
class DatabaseUserTotalConnectionMetricResource(BaseCoreApiModel):
|
|
531
|
+
database_user_name: str
|
|
532
|
+
node_hostname: str
|
|
533
|
+
timestamp: int
|
|
534
|
+
value: int
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
class DatabaseUsersMetricsResource(BaseCoreApiModel):
|
|
538
|
+
total_connections: List[DatabaseUserTotalConnectionMetricResource]
|
|
539
|
+
cpu_usages: List[DatabaseUserCpuUsageMetricResource]
|
|
540
|
+
|
|
541
|
+
|
|
429
542
|
class DatabaseUserUpdateRequest(BaseCoreApiModel):
|
|
430
543
|
phpmyadmin_firewall_groups_ids: Optional[List[int]] = None
|
|
431
544
|
password: Optional[constr(pattern=r"^[ -~]+$", min_length=24, max_length=255)] = (
|
|
@@ -459,6 +572,8 @@ class DomainRouterUpdateRequest(BaseCoreApiModel):
|
|
|
459
572
|
security_txt_policy_id: Optional[int] = None
|
|
460
573
|
firewall_groups_ids: Optional[List[int]] = None
|
|
461
574
|
force_ssl: Optional[bool] = None
|
|
575
|
+
quic_enabled: Optional[bool] = None
|
|
576
|
+
is_standards_scan_enabled: Optional[bool] = None
|
|
462
577
|
|
|
463
578
|
|
|
464
579
|
class EncryptionTypeEnum(StrEnum):
|
|
@@ -469,7 +584,7 @@ class EncryptionTypeEnum(StrEnum):
|
|
|
469
584
|
|
|
470
585
|
class FpmPoolCreateRequest(BaseCoreApiModel):
|
|
471
586
|
name: constr(pattern=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
472
|
-
version:
|
|
587
|
+
version: constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$", min_length=3, max_length=4)
|
|
473
588
|
unix_user_id: int
|
|
474
589
|
max_children: int = 25
|
|
475
590
|
max_requests: int = 20
|
|
@@ -844,9 +959,11 @@ class IpAddressFamilyEnum(StrEnum):
|
|
|
844
959
|
IPV4 = "IPv4"
|
|
845
960
|
|
|
846
961
|
|
|
847
|
-
class
|
|
848
|
-
|
|
849
|
-
|
|
962
|
+
class ProductTypeEnum(StrEnum):
|
|
963
|
+
NODE = "Node"
|
|
964
|
+
NODE_ADD_ON = "Node Add-On"
|
|
965
|
+
INCOMING_IP_ADDRESS = "Incoming IP Address"
|
|
966
|
+
OUTGOING_IP_ADDRESS = "Outgoing IP Address"
|
|
850
967
|
|
|
851
968
|
|
|
852
969
|
class LanguageCodeEnum(StrEnum):
|
|
@@ -958,17 +1075,6 @@ class NodeAddOnCreateRequest(BaseCoreApiModel):
|
|
|
958
1075
|
quantity: int
|
|
959
1076
|
|
|
960
1077
|
|
|
961
|
-
class NodeAddOnProduct(BaseCoreApiModel):
|
|
962
|
-
uuid: UUID4
|
|
963
|
-
name: constr(pattern=r"^[a-zA-Z0-9 ]+$", min_length=1, max_length=64)
|
|
964
|
-
memory_mib: Optional[int]
|
|
965
|
-
cpu_cores: Optional[int]
|
|
966
|
-
disk_gib: Optional[int]
|
|
967
|
-
price: confloat(ge=0.0)
|
|
968
|
-
period: constr(pattern=r"^[A-Z0-9]+$", min_length=2, max_length=2)
|
|
969
|
-
currency: constr(pattern=r"^[A-Z]+$", min_length=3, max_length=3)
|
|
970
|
-
|
|
971
|
-
|
|
972
1078
|
class NodeGroupEnum(StrEnum):
|
|
973
1079
|
ADMIN = "Admin"
|
|
974
1080
|
APACHE = "Apache"
|
|
@@ -1008,19 +1114,6 @@ class NodeMariadbGroupProperties(BaseCoreApiModel):
|
|
|
1008
1114
|
is_master: bool
|
|
1009
1115
|
|
|
1010
1116
|
|
|
1011
|
-
class NodeProduct(BaseCoreApiModel):
|
|
1012
|
-
uuid: UUID4
|
|
1013
|
-
name: constr(pattern=r"^[A-Z]+$", min_length=1, max_length=2)
|
|
1014
|
-
memory_mib: int
|
|
1015
|
-
cpu_cores: int
|
|
1016
|
-
disk_gib: int
|
|
1017
|
-
allow_upgrade_to: List[constr(pattern=r"^[A-Z]+$", min_length=1, max_length=2)]
|
|
1018
|
-
allow_downgrade_to: List[constr(pattern=r"^[A-Z]+$", min_length=1, max_length=2)]
|
|
1019
|
-
price: confloat(ge=0.0)
|
|
1020
|
-
period: constr(pattern=r"^[A-Z0-9]+$", min_length=2, max_length=2)
|
|
1021
|
-
currency: constr(pattern=r"^[A-Z]+$", min_length=3, max_length=3)
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
1117
|
class NodeRabbitmqGroupProperties(BaseCoreApiModel):
|
|
1025
1118
|
is_master: bool
|
|
1026
1119
|
|
|
@@ -1076,6 +1169,9 @@ class ObjectModelNameEnum(StrEnum):
|
|
|
1076
1169
|
SERVICE_ACCOUNT = "ServiceAccount"
|
|
1077
1170
|
SERVICE_ACCOUNT_SERVER = "ServiceAccountServer"
|
|
1078
1171
|
CUSTOM_CONFIG = "CustomConfig"
|
|
1172
|
+
CUSTOM_CONFIG_SNIPPET = "CustomConfigSnippet"
|
|
1173
|
+
FIREWALL_GROUP = "FirewallGroup"
|
|
1174
|
+
FTP_USER = "FtpUser"
|
|
1079
1175
|
N8N_INSTANCE = "N8nInstance"
|
|
1080
1176
|
CLUSTERS_PHP_PROPERTIES = "ClustersPhpProperties"
|
|
1081
1177
|
CLUSTERS_NODEJS_PROPERTIES = "ClustersNodejsProperties"
|
|
@@ -1097,6 +1193,10 @@ class ObjectModelNameEnum(StrEnum):
|
|
|
1097
1193
|
CLUSTERS_OS_PROPERTIES = "ClustersOsProperties"
|
|
1098
1194
|
PROJECT = "Project"
|
|
1099
1195
|
PROJECT_ENVIRONMENT = "ProjectEnvironment"
|
|
1196
|
+
PRODUCT = "Product"
|
|
1197
|
+
TOMBSTONE = "Tombstone"
|
|
1198
|
+
MALWARE = "Malware"
|
|
1199
|
+
STANDARDS_SCAN = "StandardsScan"
|
|
1100
1200
|
|
|
1101
1201
|
|
|
1102
1202
|
class PhpExtensionEnum(StrEnum):
|
|
@@ -1135,6 +1235,7 @@ class PhpSettings(BaseCoreApiModel):
|
|
|
1135
1235
|
)
|
|
1136
1236
|
)
|
|
1137
1237
|
opcache_memory_consumption: conint(ge=192, le=1024) = 192
|
|
1238
|
+
opcache_interned_strings_buffer: conint(ge=8, le=4095) = 8
|
|
1138
1239
|
max_execution_time: conint(ge=30, le=120) = 120
|
|
1139
1240
|
max_file_uploads: conint(ge=100, le=1000) = 100
|
|
1140
1241
|
memory_limit: conint(ge=256, le=4096) = 256
|
|
@@ -1157,6 +1258,7 @@ class FpmPoolPhpSettings(BaseCoreApiModel):
|
|
|
1157
1258
|
constr(pattern=r"^[A-Z&~_ ]+$", min_length=1, max_length=255) | None
|
|
1158
1259
|
) = None
|
|
1159
1260
|
opcache_memory_consumption: conint(ge=192, le=1024) | None = None
|
|
1261
|
+
opcache_interned_strings_buffer: int | None = None
|
|
1160
1262
|
max_execution_time: conint(ge=30, le=120) | None = None
|
|
1161
1263
|
max_file_uploads: conint(ge=100, le=1000) | None = None
|
|
1162
1264
|
memory_limit: conint(ge=256, le=4096) | None = None
|
|
@@ -1211,7 +1313,7 @@ class RedisInstanceCreateRequest(BaseCoreApiModel):
|
|
|
1211
1313
|
password: constr(pattern=r"^[a-zA-Z0-9]+$", min_length=24, max_length=255)
|
|
1212
1314
|
memory_limit: conint(ge=8)
|
|
1213
1315
|
max_databases: int = 16
|
|
1214
|
-
eviction_policy: RedisEvictionPolicyEnum = RedisEvictionPolicyEnum.
|
|
1316
|
+
eviction_policy: RedisEvictionPolicyEnum = RedisEvictionPolicyEnum.ALLKEYS_LFU
|
|
1215
1317
|
|
|
1216
1318
|
|
|
1217
1319
|
class RedisInstanceUpdateRequest(BaseCoreApiModel):
|
|
@@ -1286,12 +1388,12 @@ class SecurityTxtPolicyUpdateRequest(BaseCoreApiModel):
|
|
|
1286
1388
|
|
|
1287
1389
|
class ServiceAccountGroupEnum(StrEnum):
|
|
1288
1390
|
SECURITY_TXT_POLICY_SERVER = "Security TXT Policy Server"
|
|
1391
|
+
CARBON_TXT_SERVER = "Carbon TXT Server"
|
|
1289
1392
|
LOAD_BALANCER = "Load Balancer"
|
|
1290
1393
|
BORG = "Borg"
|
|
1291
1394
|
MAIL_PROXY = "Mail Proxy"
|
|
1292
1395
|
MAIL_GATEWAY = "Mail Gateway"
|
|
1293
1396
|
INTERNET_ROUTER = "Internet Router"
|
|
1294
|
-
STORAGE_ROUTER = "Storage Router"
|
|
1295
1397
|
PHPMYADMIN = "phpMyAdmin"
|
|
1296
1398
|
|
|
1297
1399
|
|
|
@@ -1348,13 +1450,6 @@ class TemporaryFtpUserResource(BaseCoreApiModel):
|
|
|
1348
1450
|
file_manager_url: AnyUrl
|
|
1349
1451
|
|
|
1350
1452
|
|
|
1351
|
-
class TimeUnitEnum(StrEnum):
|
|
1352
|
-
HOURLY = "hourly"
|
|
1353
|
-
DAILY = "daily"
|
|
1354
|
-
WEEKLY = "weekly"
|
|
1355
|
-
MONTHLY = "monthly"
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
1453
|
class TokenTypeEnum(StrEnum):
|
|
1359
1454
|
BEARER = "bearer"
|
|
1360
1455
|
|
|
@@ -1375,12 +1470,15 @@ class UnixUserCreateRequest(BaseCoreApiModel):
|
|
|
1375
1470
|
password: Optional[constr(pattern=r"^[ -~]+$", min_length=24, max_length=255)]
|
|
1376
1471
|
shell_name: ShellNameEnum = ShellNameEnum.BASH
|
|
1377
1472
|
record_usage_files: bool = False
|
|
1378
|
-
default_php_version: Optional[
|
|
1473
|
+
default_php_version: Optional[
|
|
1474
|
+
constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$", min_length=3, max_length=4)
|
|
1475
|
+
] = None
|
|
1379
1476
|
default_nodejs_version: Optional[constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$")] = None
|
|
1380
1477
|
description: Optional[
|
|
1381
1478
|
constr(pattern=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=255)
|
|
1382
1479
|
] = None
|
|
1383
1480
|
shell_is_namespaced: bool = True
|
|
1481
|
+
create_borg_repository: bool = False
|
|
1384
1482
|
|
|
1385
1483
|
|
|
1386
1484
|
class UnixUserHomeDirectoryEnum(StrEnum):
|
|
@@ -1397,7 +1495,9 @@ class UnixUserUpdateRequest(BaseCoreApiModel):
|
|
|
1397
1495
|
)
|
|
1398
1496
|
shell_name: Optional[ShellNameEnum] = None
|
|
1399
1497
|
record_usage_files: Optional[bool] = None
|
|
1400
|
-
default_php_version: Optional[
|
|
1498
|
+
default_php_version: Optional[
|
|
1499
|
+
constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$", min_length=3, max_length=4)
|
|
1500
|
+
] = None
|
|
1401
1501
|
default_nodejs_version: Optional[constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$")] = None
|
|
1402
1502
|
description: Optional[
|
|
1403
1503
|
constr(pattern=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=255)
|
|
@@ -1525,7 +1625,8 @@ class ClusterCreateRequest(BaseCoreApiModel):
|
|
|
1525
1625
|
customer_id: int
|
|
1526
1626
|
region_id: int
|
|
1527
1627
|
description: constr(pattern=r"^[a-zA-Z0-9-_. ]+$", min_length=1, max_length=255)
|
|
1528
|
-
|
|
1628
|
+
nfs_enabled: bool
|
|
1629
|
+
cephfs_enabled: Optional[bool] = None
|
|
1529
1630
|
|
|
1530
1631
|
|
|
1531
1632
|
class ClusterIpAddressCreateRequest(BaseCoreApiModel):
|
|
@@ -1548,6 +1649,8 @@ class ClusterResource(BaseCoreApiModel):
|
|
|
1548
1649
|
region_id: int
|
|
1549
1650
|
description: constr(pattern=r"^[a-zA-Z0-9-_. ]+$", min_length=1, max_length=255)
|
|
1550
1651
|
includes: ClusterIncludes
|
|
1652
|
+
nfs_enabled: bool
|
|
1653
|
+
cephfs_enabled: bool | None = None
|
|
1551
1654
|
|
|
1552
1655
|
|
|
1553
1656
|
class ClusterUpdateRequest(BaseCoreApiModel):
|
|
@@ -1637,6 +1740,7 @@ class DatabaseCreateRequest(BaseCoreApiModel):
|
|
|
1637
1740
|
cluster_id: int
|
|
1638
1741
|
optimizing_enabled: bool = False
|
|
1639
1742
|
backups_enabled: bool = True
|
|
1743
|
+
create_borg_repository: bool = False
|
|
1640
1744
|
|
|
1641
1745
|
|
|
1642
1746
|
class DatabaseIncludes(BaseCoreApiModel):
|
|
@@ -1762,10 +1866,19 @@ class HealthResource(BaseCoreApiModel):
|
|
|
1762
1866
|
status: HealthStatusEnum
|
|
1763
1867
|
|
|
1764
1868
|
|
|
1765
|
-
class
|
|
1766
|
-
|
|
1869
|
+
class ProductResource(BaseCoreApiModel):
|
|
1870
|
+
id: int
|
|
1871
|
+
created_at: datetime
|
|
1872
|
+
updated_at: datetime
|
|
1873
|
+
external_id: UUID4
|
|
1767
1874
|
name: constr(pattern=r"^[a-zA-Z0-9 ]+$", min_length=1, max_length=64)
|
|
1768
|
-
|
|
1875
|
+
identifier: constr(pattern=r"^[a-zA-Z0-9- ]+$", min_length=1, max_length=64)
|
|
1876
|
+
type: ProductTypeEnum
|
|
1877
|
+
memory_mib: Optional[int]
|
|
1878
|
+
cpu_cores: Optional[int]
|
|
1879
|
+
disk_gib: Optional[int]
|
|
1880
|
+
allow_upgrade_to: List[str]
|
|
1881
|
+
allow_downgrade_to: List[str]
|
|
1769
1882
|
price: confloat(ge=0.0)
|
|
1770
1883
|
period: constr(pattern=r"^[A-Z0-9]+$", min_length=2, max_length=2)
|
|
1771
1884
|
currency: constr(pattern=r"^[A-Z]+$", min_length=3, max_length=3)
|
|
@@ -1827,7 +1940,7 @@ class NodeResource(BaseCoreApiModel):
|
|
|
1827
1940
|
created_at: datetime
|
|
1828
1941
|
updated_at: datetime
|
|
1829
1942
|
hostname: str
|
|
1830
|
-
product: constr(pattern=r"^[
|
|
1943
|
+
product: constr(pattern=r"^[a-zA-Z0-9 ]+$", min_length=1, max_length=64)
|
|
1831
1944
|
cluster_id: int
|
|
1832
1945
|
groups: List[NodeGroupEnum]
|
|
1833
1946
|
comment: Optional[
|
|
@@ -1965,6 +2078,9 @@ class TaskResult(BaseCoreApiModel):
|
|
|
1965
2078
|
state: TaskStateEnum
|
|
1966
2079
|
retries: conint(ge=0)
|
|
1967
2080
|
free_form_data: Dict[str, Any]
|
|
2081
|
+
started_at: datetime | None = None
|
|
2082
|
+
completed_at: datetime | None = None
|
|
2083
|
+
duration_human_readable: str | None = None
|
|
1968
2084
|
|
|
1969
2085
|
|
|
1970
2086
|
class TokenResource(BaseCoreApiModel):
|
|
@@ -2059,7 +2175,9 @@ class BorgRepositoryResource(BaseCoreApiModel):
|
|
|
2059
2175
|
keep_monthly: Optional[int]
|
|
2060
2176
|
keep_yearly: Optional[int]
|
|
2061
2177
|
unix_user_id: Optional[int]
|
|
2178
|
+
database_id: Optional[int]
|
|
2062
2179
|
unix_id: int
|
|
2180
|
+
frequency: str
|
|
2063
2181
|
deployment_status: DeploymentStatusEnum
|
|
2064
2182
|
includes: BorgRepositoryIncludes
|
|
2065
2183
|
|
|
@@ -2172,7 +2290,7 @@ class FpmPoolResource(BaseCoreApiModel):
|
|
|
2172
2290
|
updated_at: datetime
|
|
2173
2291
|
cluster_id: int
|
|
2174
2292
|
name: constr(pattern=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
2175
|
-
version:
|
|
2293
|
+
version: constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$", min_length=3, max_length=4)
|
|
2176
2294
|
unix_user_id: int
|
|
2177
2295
|
max_children: int
|
|
2178
2296
|
max_requests: int
|
|
@@ -2357,7 +2475,7 @@ class NodeAddOnResource(BaseCoreApiModel):
|
|
|
2357
2475
|
|
|
2358
2476
|
|
|
2359
2477
|
class NodeCreateRequest(BaseCoreApiModel):
|
|
2360
|
-
product: constr(pattern=r"^[
|
|
2478
|
+
product: constr(pattern=r"^[a-zA-Z0-9 ]+$", min_length=1, max_length=64)
|
|
2361
2479
|
cluster_id: int
|
|
2362
2480
|
groups: List[NodeGroupEnum]
|
|
2363
2481
|
comment: Optional[
|
|
@@ -2496,6 +2614,7 @@ class BorgArchiveResource(BaseCoreApiModel):
|
|
|
2496
2614
|
cluster_id: int
|
|
2497
2615
|
borg_repository_id: int
|
|
2498
2616
|
name: constr(pattern=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=64)
|
|
2617
|
+
is_manually_created: bool
|
|
2499
2618
|
includes: BorgArchiveIncludes
|
|
2500
2619
|
|
|
2501
2620
|
|
|
@@ -2537,34 +2656,6 @@ class CertificateManagerResource(BaseCoreApiModel):
|
|
|
2537
2656
|
includes: CertificateManagerIncludes
|
|
2538
2657
|
|
|
2539
2658
|
|
|
2540
|
-
class DomainRouterIncludes(BaseCoreApiModel):
|
|
2541
|
-
virtual_host: Optional[VirtualHostResource]
|
|
2542
|
-
url_redirect: Optional[UrlRedirectResource]
|
|
2543
|
-
node: Optional[NodeResource]
|
|
2544
|
-
certificate: Optional[CertificateResource]
|
|
2545
|
-
security_txt_policy: Optional[SecurityTxtPolicyResource]
|
|
2546
|
-
cluster: Optional[ClusterResource]
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
class DomainRouterResource(BaseCoreApiModel):
|
|
2550
|
-
id: int
|
|
2551
|
-
created_at: datetime
|
|
2552
|
-
updated_at: datetime
|
|
2553
|
-
domain: str
|
|
2554
|
-
virtual_host_id: Optional[int]
|
|
2555
|
-
url_redirect_id: Optional[int]
|
|
2556
|
-
n8n_instance_id: Optional[int]
|
|
2557
|
-
category: DomainRouterCategoryEnum
|
|
2558
|
-
cluster_id: int
|
|
2559
|
-
node_id: Optional[int]
|
|
2560
|
-
certificate_id: Optional[int]
|
|
2561
|
-
security_txt_policy_id: Optional[int]
|
|
2562
|
-
firewall_groups_ids: Optional[List[int]]
|
|
2563
|
-
force_ssl: bool
|
|
2564
|
-
deployment_status: DeploymentStatusEnum
|
|
2565
|
-
includes: DomainRouterIncludes
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
2659
|
class MailAccountIncludes(BaseCoreApiModel):
|
|
2569
2660
|
mail_domain: Optional[MailDomainResource]
|
|
2570
2661
|
cluster: Optional[ClusterResource]
|
|
@@ -2602,22 +2693,6 @@ class MailAliasResource(BaseCoreApiModel):
|
|
|
2602
2693
|
includes: MailAliasIncludes
|
|
2603
2694
|
|
|
2604
2695
|
|
|
2605
|
-
class NodeDomainRouterDependency(BaseCoreApiModel):
|
|
2606
|
-
is_dependency: bool
|
|
2607
|
-
impact: Optional[str]
|
|
2608
|
-
reason: str
|
|
2609
|
-
domain_router: DomainRouterResource
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
class NodeDependenciesResource(BaseCoreApiModel):
|
|
2613
|
-
hostname: str
|
|
2614
|
-
groups: List[NodeGroupDependency]
|
|
2615
|
-
domain_routers: List[NodeDomainRouterDependency]
|
|
2616
|
-
daemons: List[NodeDaemonDependency]
|
|
2617
|
-
crons: List[NodeCronDependency]
|
|
2618
|
-
hosts_entries: List[NodeHostsEntryDependency]
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
2696
|
class DaemonLogResource(BaseCoreApiModel):
|
|
2622
2697
|
application_name: constr(min_length=1, max_length=65535)
|
|
2623
2698
|
priority: int
|
|
@@ -2652,6 +2727,7 @@ class RequestLogResource(BaseCoreApiModel):
|
|
|
2652
2727
|
body: Any
|
|
2653
2728
|
api_user_id: int
|
|
2654
2729
|
request_id: UUID4
|
|
2730
|
+
correlation_id: UUID4
|
|
2655
2731
|
includes: RequestLogIncludes
|
|
2656
2732
|
|
|
2657
2733
|
|
|
@@ -2680,6 +2756,17 @@ class SimpleSpecificationsResource(RootModelCollectionMixin, RootCoreApiModel):
|
|
|
2680
2756
|
root: List[str]
|
|
2681
2757
|
|
|
2682
2758
|
|
|
2759
|
+
class PolicyResultResource(BaseCoreApiModel):
|
|
2760
|
+
satisfied: bool
|
|
2761
|
+
object_id: Optional[int]
|
|
2762
|
+
results: Dict[str, "PolicyResultResource"]
|
|
2763
|
+
|
|
2764
|
+
|
|
2765
|
+
class PolicyResultsResource(BaseCoreApiModel):
|
|
2766
|
+
summary: str
|
|
2767
|
+
results: Dict[str, PolicyResultResource]
|
|
2768
|
+
|
|
2769
|
+
|
|
2683
2770
|
class ConcreteSpecificationSatisfyResult(BaseCoreApiModel):
|
|
2684
2771
|
satisfied: bool
|
|
2685
2772
|
requirement: str
|
|
@@ -2840,7 +2927,7 @@ class ClusterLoadBalancingPropertiesIncludes(BaseCoreApiModel):
|
|
|
2840
2927
|
|
|
2841
2928
|
|
|
2842
2929
|
class ClusterMariadbPropertiesCreateRequest(BaseCoreApiModel):
|
|
2843
|
-
mariadb_version:
|
|
2930
|
+
mariadb_version: Literal["11.8"] = "11.8"
|
|
2844
2931
|
mariadb_backup_interval: conint(ge=1, le=24) = 24
|
|
2845
2932
|
mariadb_backup_local_retention: conint(ge=1, le=24) = 3
|
|
2846
2933
|
|
|
@@ -2853,7 +2940,7 @@ class ClusterMariadbPropertiesResource(BaseCoreApiModel):
|
|
|
2853
2940
|
id: int
|
|
2854
2941
|
created_at: datetime
|
|
2855
2942
|
updated_at: datetime
|
|
2856
|
-
mariadb_version:
|
|
2943
|
+
mariadb_version: constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$")
|
|
2857
2944
|
mariadb_backup_interval: conint(ge=1, le=24)
|
|
2858
2945
|
mariadb_backup_local_retention: conint(ge=1, le=24)
|
|
2859
2946
|
cluster_id: int
|
|
@@ -3157,7 +3244,9 @@ class ClusterMeilisearchPropertiesUpdateRequest(BaseCoreApiModel):
|
|
|
3157
3244
|
|
|
3158
3245
|
|
|
3159
3246
|
class ClusterPhpPropertiesCreateRequest(BaseCoreApiModel):
|
|
3160
|
-
php_versions: List[
|
|
3247
|
+
php_versions: List[
|
|
3248
|
+
constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$", min_length=3, max_length=4)
|
|
3249
|
+
]
|
|
3161
3250
|
custom_php_modules_names: List[PhpExtensionEnum] = Field(
|
|
3162
3251
|
[],
|
|
3163
3252
|
)
|
|
@@ -3170,7 +3259,9 @@ class ClusterPhpPropertiesResource(BaseCoreApiModel):
|
|
|
3170
3259
|
id: int
|
|
3171
3260
|
created_at: datetime
|
|
3172
3261
|
updated_at: datetime
|
|
3173
|
-
php_versions: List[
|
|
3262
|
+
php_versions: List[
|
|
3263
|
+
constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$", min_length=3, max_length=4)
|
|
3264
|
+
]
|
|
3174
3265
|
custom_php_modules_names: List[PhpExtensionEnum]
|
|
3175
3266
|
php_settings: PhpSettings
|
|
3176
3267
|
php_ioncube_enabled: bool
|
|
@@ -3181,7 +3272,9 @@ class ClusterPhpPropertiesResource(BaseCoreApiModel):
|
|
|
3181
3272
|
|
|
3182
3273
|
|
|
3183
3274
|
class ClusterPhpPropertiesUpdateRequest(BaseCoreApiModel):
|
|
3184
|
-
php_versions: Optional[
|
|
3275
|
+
php_versions: Optional[
|
|
3276
|
+
List[constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$", min_length=3, max_length=4)]
|
|
3277
|
+
] = None
|
|
3185
3278
|
custom_php_modules_names: Optional[List[PhpExtensionEnum]] = None
|
|
3186
3279
|
php_settings: Optional[PhpSettings] = None
|
|
3187
3280
|
php_ioncube_enabled: Optional[bool] = None
|
|
@@ -3305,10 +3398,10 @@ class DatabaseInnodbReport(BaseCoreApiModel):
|
|
|
3305
3398
|
|
|
3306
3399
|
class FpmPoolChildStatus(BaseCoreApiModel):
|
|
3307
3400
|
current_request_duration: int
|
|
3308
|
-
http_method:
|
|
3401
|
+
http_method: str
|
|
3309
3402
|
http_uri: str
|
|
3310
3403
|
basic_authentication_user: Optional[str]
|
|
3311
|
-
script: str
|
|
3404
|
+
script: Optional[str]
|
|
3312
3405
|
|
|
3313
3406
|
|
|
3314
3407
|
class FpmPoolNodeStatus(BaseCoreApiModel):
|
|
@@ -3327,6 +3420,7 @@ class BasicAuthenticationRealmsSearchRequest(BaseCoreApiModel):
|
|
|
3327
3420
|
class BorgArchivesSearchRequest(BaseCoreApiModel):
|
|
3328
3421
|
cluster_id: Optional[int] = None
|
|
3329
3422
|
borg_repository_id: Optional[int] = None
|
|
3423
|
+
is_manually_created: Optional[bool] = None
|
|
3330
3424
|
name: Optional[str] = None
|
|
3331
3425
|
|
|
3332
3426
|
|
|
@@ -3417,7 +3511,8 @@ class ClustersSearchRequest(BaseCoreApiModel):
|
|
|
3417
3511
|
region_id: Optional[int] = None
|
|
3418
3512
|
description: Optional[str] = None
|
|
3419
3513
|
customer_id: Optional[int] = None
|
|
3420
|
-
cephfs_enabled: bool
|
|
3514
|
+
cephfs_enabled: Optional[bool] = None
|
|
3515
|
+
nfs_enabled: Optional[bool] = None
|
|
3421
3516
|
|
|
3422
3517
|
|
|
3423
3518
|
class ClustersSinglestorePropertiesSearchRequest(BaseCoreApiModel):
|
|
@@ -3441,6 +3536,8 @@ class CronsSearchRequest(BaseCoreApiModel):
|
|
|
3441
3536
|
email_address: Optional[EmailStr] = None
|
|
3442
3537
|
locking_enabled: Optional[bool] = None
|
|
3443
3538
|
is_active: Optional[bool] = None
|
|
3539
|
+
command: Optional[str] = None
|
|
3540
|
+
schedule: Optional[str] = None
|
|
3444
3541
|
|
|
3445
3542
|
|
|
3446
3543
|
class CustomConfigsSearchRequest(BaseCoreApiModel):
|
|
@@ -3465,6 +3562,9 @@ class DaemonsSearchRequest(BaseCoreApiModel):
|
|
|
3465
3562
|
|
|
3466
3563
|
class DatabaseUsersSearchRequest(BaseCoreApiModel):
|
|
3467
3564
|
phpmyadmin_firewall_group_id: Optional[int] = None
|
|
3565
|
+
name: Optional[str] = None
|
|
3566
|
+
server_software_name: Optional[DatabaseServerSoftwareNameEnum] = None
|
|
3567
|
+
cluster_id: Optional[int] = None
|
|
3468
3568
|
|
|
3469
3569
|
|
|
3470
3570
|
class DatabasesSearchRequest(BaseCoreApiModel):
|
|
@@ -3487,6 +3587,8 @@ class DomainRoutersSearchRequest(BaseCoreApiModel):
|
|
|
3487
3587
|
security_txt_policy_id: Optional[int] = None
|
|
3488
3588
|
firewall_group_id: Optional[int] = None
|
|
3489
3589
|
force_ssl: Optional[bool] = None
|
|
3590
|
+
quic_enabled: Optional[bool] = None
|
|
3591
|
+
is_standards_scan_enabled: Optional[bool] = None
|
|
3490
3592
|
|
|
3491
3593
|
|
|
3492
3594
|
class FirewallGroupsSearchRequest(BaseCoreApiModel):
|
|
@@ -3623,6 +3725,53 @@ class N8nInstanceResource(BaseCoreApiModel):
|
|
|
3623
3725
|
includes: N8nInstanceIncludes
|
|
3624
3726
|
|
|
3625
3727
|
|
|
3728
|
+
class DomainRouterIncludes(BaseCoreApiModel):
|
|
3729
|
+
virtual_host: Optional[VirtualHostResource]
|
|
3730
|
+
url_redirect: Optional[UrlRedirectResource]
|
|
3731
|
+
node: Optional[NodeResource]
|
|
3732
|
+
certificate: Optional[CertificateResource]
|
|
3733
|
+
security_txt_policy: Optional[SecurityTxtPolicyResource]
|
|
3734
|
+
n8n_instance: Optional[N8nInstanceResource]
|
|
3735
|
+
cluster: Optional[ClusterResource]
|
|
3736
|
+
|
|
3737
|
+
|
|
3738
|
+
class DomainRouterResource(BaseCoreApiModel):
|
|
3739
|
+
id: int
|
|
3740
|
+
created_at: datetime
|
|
3741
|
+
updated_at: datetime
|
|
3742
|
+
domain: str
|
|
3743
|
+
virtual_host_id: Optional[int]
|
|
3744
|
+
url_redirect_id: Optional[int]
|
|
3745
|
+
n8n_instance_id: Optional[int]
|
|
3746
|
+
category: DomainRouterCategoryEnum
|
|
3747
|
+
cluster_id: int
|
|
3748
|
+
node_id: Optional[int]
|
|
3749
|
+
certificate_id: Optional[int]
|
|
3750
|
+
security_txt_policy_id: Optional[int]
|
|
3751
|
+
firewall_groups_ids: Optional[List[int]]
|
|
3752
|
+
force_ssl: bool
|
|
3753
|
+
quic_enabled: bool
|
|
3754
|
+
is_standards_scan_enabled: bool
|
|
3755
|
+
deployment_status: DeploymentStatusEnum
|
|
3756
|
+
includes: DomainRouterIncludes
|
|
3757
|
+
|
|
3758
|
+
|
|
3759
|
+
class NodeDomainRouterDependency(BaseCoreApiModel):
|
|
3760
|
+
is_dependency: bool
|
|
3761
|
+
impact: Optional[str]
|
|
3762
|
+
reason: str
|
|
3763
|
+
domain_router: DomainRouterResource
|
|
3764
|
+
|
|
3765
|
+
|
|
3766
|
+
class NodeDependenciesResource(BaseCoreApiModel):
|
|
3767
|
+
hostname: str
|
|
3768
|
+
groups: List[NodeGroupDependency]
|
|
3769
|
+
domain_routers: List[NodeDomainRouterDependency]
|
|
3770
|
+
daemons: List[NodeDaemonDependency]
|
|
3771
|
+
crons: List[NodeCronDependency]
|
|
3772
|
+
hosts_entries: List[NodeHostsEntryDependency]
|
|
3773
|
+
|
|
3774
|
+
|
|
3626
3775
|
class RedisInstancesSearchRequest(BaseCoreApiModel):
|
|
3627
3776
|
port: Optional[int] = None
|
|
3628
3777
|
name: Optional[str] = None
|
|
@@ -3641,6 +3790,7 @@ class RequestLogsSearchRequest(BaseCoreApiModel):
|
|
|
3641
3790
|
method: Optional[HTTPMethod] = None
|
|
3642
3791
|
api_user_id: Optional[int] = None
|
|
3643
3792
|
request_id: Optional[UUID4] = None
|
|
3793
|
+
correlation_id: Optional[UUID4] = None
|
|
3644
3794
|
|
|
3645
3795
|
|
|
3646
3796
|
class RootSshKeysSearchRequest(BaseCoreApiModel):
|
|
@@ -3671,7 +3821,9 @@ class UnixUsersSearchRequest(BaseCoreApiModel):
|
|
|
3671
3821
|
cluster_id: Optional[int] = None
|
|
3672
3822
|
shell_name: Optional[ShellNameEnum] = None
|
|
3673
3823
|
record_usage_files: Optional[bool] = None
|
|
3674
|
-
default_php_version: Optional[
|
|
3824
|
+
default_php_version: Optional[
|
|
3825
|
+
constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$", min_length=3, max_length=4)
|
|
3826
|
+
] = None
|
|
3675
3827
|
default_nodejs_version: Optional[str] = None
|
|
3676
3828
|
description: Optional[str] = None
|
|
3677
3829
|
|
|
@@ -3849,6 +4001,11 @@ class FpmPoolUpdateSettingPairUploadMaxFilesizeRequest(BaseCoreApiModel):
|
|
|
3849
4001
|
value: conint(ge=32, le=256)
|
|
3850
4002
|
|
|
3851
4003
|
|
|
4004
|
+
class FpmPoolUpdateSettingPairOpcacheInternedStringsBufferRequest(BaseCoreApiModel):
|
|
4005
|
+
setting: Literal["opcache_interned_strings_buffer"]
|
|
4006
|
+
value: conint(ge=8, le=4095)
|
|
4007
|
+
|
|
4008
|
+
|
|
3852
4009
|
class FpmPoolUpdateSettingPairRequest(RootCoreApiModel):
|
|
3853
4010
|
root: (
|
|
3854
4011
|
FpmPoolUpdateSettingPairApcEnableCliRequest
|
|
@@ -3857,6 +4014,7 @@ class FpmPoolUpdateSettingPairRequest(RootCoreApiModel):
|
|
|
3857
4014
|
| FpmPoolUpdateSettingPairShortOpenTagRequest
|
|
3858
4015
|
| FpmPoolUpdateSettingPairErrorReportingRequest
|
|
3859
4016
|
| FpmPoolUpdateSettingPairOpcacheMemoryConsumptionRequest
|
|
4017
|
+
| FpmPoolUpdateSettingPairOpcacheInternedStringsBufferRequest
|
|
3860
4018
|
| FpmPoolUpdateSettingPairSessionGcMaxlifetimeRequest
|
|
3861
4019
|
| FpmPoolUpdateSettingPairMaxExecutionTimeRequest
|
|
3862
4020
|
| FpmPoolUpdateSettingPairMaxFileUploadsRequest
|
|
@@ -3873,6 +4031,127 @@ class FpmPoolUpdateSettingsRequest(RootCoreApiModel):
|
|
|
3873
4031
|
root: list[FpmPoolUpdateSettingPairRequest]
|
|
3874
4032
|
|
|
3875
4033
|
|
|
4034
|
+
class StandardsScanVerdictEnum(StrEnum):
|
|
4035
|
+
GREAT = "great"
|
|
4036
|
+
GOOD = "good"
|
|
4037
|
+
FINE = "fine"
|
|
4038
|
+
BAD = "bad"
|
|
4039
|
+
|
|
4040
|
+
|
|
4041
|
+
class StandardsScanCheckStatusEnum(StrEnum):
|
|
4042
|
+
REGISTERING_DOMAINS = "registering_domains"
|
|
4043
|
+
TESTING_DOMAINS = "testing_domains"
|
|
4044
|
+
GENERATING_REPORT = "generating_report"
|
|
4045
|
+
COMPLETED = "completed"
|
|
4046
|
+
CANCELLED = "cancelled"
|
|
4047
|
+
REGISTRATION_FAILED = "registration_failed"
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
class StandardsScanDnssecStatusEnum(StrEnum):
|
|
4051
|
+
SIGNED = "signed"
|
|
4052
|
+
NOT_CONFIGURED = "not_configured"
|
|
4053
|
+
INVALID_SIGNATURE = "invalid_signature"
|
|
4054
|
+
UNSUPPORTED_ALGORITHM = "unsupported_algorithm"
|
|
4055
|
+
RESOLVER_ERROR = "resolver_error"
|
|
4056
|
+
DNS_ERROR = "dns_error"
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
class StandardsScanDomainCheckStatusEnum(StrEnum):
|
|
4060
|
+
COMPLETED = "completed"
|
|
4061
|
+
RESULTS_UNAVAILABLE = "results_unavailable"
|
|
4062
|
+
|
|
4063
|
+
|
|
4064
|
+
class StandardsScanHttpsRedirectEnum(StrEnum):
|
|
4065
|
+
ENFORCED = "enforced"
|
|
4066
|
+
NOT_ENFORCED = "not_enforced"
|
|
4067
|
+
HTTP_NOT_AVAILABLE = "http_not_available"
|
|
4068
|
+
HTTPS_NOT_AVAILABLE = "https_not_available"
|
|
4069
|
+
|
|
4070
|
+
|
|
4071
|
+
class StandardsScanScores(BaseCoreApiModel):
|
|
4072
|
+
great: float
|
|
4073
|
+
good: float
|
|
4074
|
+
fine: float
|
|
4075
|
+
bad: float
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
class StandardsScanNameserverAddresses(BaseCoreApiModel):
|
|
4079
|
+
ipv4: Dict[str, bool]
|
|
4080
|
+
ipv6: Dict[str, bool]
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
class StandardsScanReachability(BaseCoreApiModel):
|
|
4084
|
+
nameserver_reachable: Dict[str, StandardsScanNameserverAddresses]
|
|
4085
|
+
website_ipv4_reachable: Dict[str, Optional[bool]]
|
|
4086
|
+
website_ipv6_reachable: Dict[str, Optional[bool]]
|
|
4087
|
+
verdict: StandardsScanVerdictEnum
|
|
4088
|
+
|
|
4089
|
+
|
|
4090
|
+
class StandardsScanDns(BaseCoreApiModel):
|
|
4091
|
+
dnssec_status: StandardsScanDnssecStatusEnum
|
|
4092
|
+
caa_enabled: bool
|
|
4093
|
+
verdict: StandardsScanVerdictEnum
|
|
4094
|
+
|
|
4095
|
+
|
|
4096
|
+
class StandardsScanHttps(BaseCoreApiModel):
|
|
4097
|
+
ipv4_enabled: bool
|
|
4098
|
+
ipv6_enabled: bool
|
|
4099
|
+
redirect: StandardsScanHttpsRedirectEnum
|
|
4100
|
+
hsts: bool
|
|
4101
|
+
verdict: StandardsScanVerdictEnum
|
|
4102
|
+
|
|
4103
|
+
|
|
4104
|
+
class StandardsScanSecurityTxt(BaseCoreApiModel):
|
|
4105
|
+
enabled: bool
|
|
4106
|
+
verdict: StandardsScanVerdictEnum
|
|
4107
|
+
|
|
4108
|
+
|
|
4109
|
+
class StandardsScanSecurityHeaders(BaseCoreApiModel):
|
|
4110
|
+
x_frame_options_enabled: bool
|
|
4111
|
+
x_content_type_options_enabled: bool
|
|
4112
|
+
content_security_policy_enabled: bool
|
|
4113
|
+
referrer_policy_enabled: bool
|
|
4114
|
+
verdict: StandardsScanVerdictEnum
|
|
4115
|
+
|
|
4116
|
+
|
|
4117
|
+
class StandardsScanDomainResult(BaseCoreApiModel):
|
|
4118
|
+
domain: str
|
|
4119
|
+
check_status: StandardsScanDomainCheckStatusEnum
|
|
4120
|
+
verdict: StandardsScanVerdictEnum
|
|
4121
|
+
scores: StandardsScanScores
|
|
4122
|
+
reachability: StandardsScanReachability
|
|
4123
|
+
dns: StandardsScanDns
|
|
4124
|
+
https: StandardsScanHttps
|
|
4125
|
+
security_txt: StandardsScanSecurityTxt
|
|
4126
|
+
security_headers: StandardsScanSecurityHeaders
|
|
4127
|
+
|
|
4128
|
+
|
|
4129
|
+
class StandardsScanResults(BaseCoreApiModel):
|
|
4130
|
+
check_status: StandardsScanCheckStatusEnum
|
|
4131
|
+
scores: Optional[StandardsScanScores] = None
|
|
4132
|
+
domains: List[StandardsScanDomainResult]
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
class StandardsScanIncludes(BaseCoreApiModel):
|
|
4136
|
+
cluster: Optional[ClusterResource]
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
class StandardsScanResource(BaseCoreApiModel):
|
|
4140
|
+
id: int
|
|
4141
|
+
created_at: datetime
|
|
4142
|
+
updated_at: datetime
|
|
4143
|
+
cluster_id: int
|
|
4144
|
+
started_at: datetime
|
|
4145
|
+
domain_routers_ids: List[int]
|
|
4146
|
+
deployment_status: DeploymentStatusEnum
|
|
4147
|
+
includes: StandardsScanIncludes
|
|
4148
|
+
|
|
4149
|
+
|
|
4150
|
+
class StandardsScansSearchRequest(BaseCoreApiModel):
|
|
4151
|
+
cluster_id: Optional[int] = None
|
|
4152
|
+
|
|
4153
|
+
|
|
3876
4154
|
NestedPathsDict.model_rebuild()
|
|
3877
4155
|
CompositeSpecificationSatisfyResult.model_rebuild()
|
|
3878
4156
|
CompositeSpecificationSatisfyResultResource.model_rebuild()
|
|
4157
|
+
PolicyResultResource.model_rebuild()
|