python3-core-api-client 2.12__tar.gz → 3.0__tar.gz

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.
Files changed (65) hide show
  1. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/PKG-INFO +2 -2
  2. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/README.md +1 -1
  3. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/pyproject.toml +1 -1
  4. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/models.py +189 -22
  5. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/clusters.py +0 -19
  6. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +15 -0
  7. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/python3_core_api_client.egg-info/PKG-INFO +2 -2
  8. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/setup.cfg +0 -0
  9. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
  10. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/_encoders.py +0 -0
  11. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/_helpers.py +0 -0
  12. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/connector.py +0 -0
  13. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
  14. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/http.py +0 -0
  15. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
  16. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/__init__.py +0 -0
  17. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +0 -0
  18. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +0 -0
  19. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +0 -0
  20. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +0 -0
  21. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/certificates.py +0 -0
  22. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/cmses.py +0 -0
  23. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/crons.py +0 -0
  24. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +0 -0
  25. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +0 -0
  26. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/customers.py +0 -0
  27. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/daemons.py +0 -0
  28. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +0 -0
  29. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/database_users.py +0 -0
  30. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/databases.py +0 -0
  31. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +0 -0
  32. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +0 -0
  33. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +0 -0
  34. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +0 -0
  35. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +0 -0
  36. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +0 -0
  37. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
  38. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +0 -0
  39. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +0 -0
  40. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +0 -0
  41. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/login.py +0 -0
  42. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/logs.py +0 -0
  43. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +0 -0
  44. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +0 -0
  45. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +0 -0
  46. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +0 -0
  47. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/malwares.py +0 -0
  48. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +0 -0
  49. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/n8n_instances.py +0 -0
  50. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +0 -0
  51. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/nodes.py +0 -0
  52. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +0 -0
  53. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +0 -0
  54. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/regions.py +0 -0
  55. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +0 -0
  56. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +0 -0
  57. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +0 -0
  58. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
  59. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/unix_users.py +0 -0
  60. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +0 -0
  61. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +0 -0
  62. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/python3_core_api_client.egg-info/SOURCES.txt +0 -0
  63. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
  64. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/python3_core_api_client.egg-info/requires.txt +0 -0
  65. {python3_core_api_client-2.12 → python3_core_api_client-3.0}/src/python3_core_api_client.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python3-core-api-client
3
- Version: 2.12
3
+ Version: 3.0
4
4
  Summary: Python client for Core API.
5
5
  Author-email: Cyberfusion <support@cyberfusion.io>
6
6
  Project-URL: Source, https://github.com/CyberfusionIO/python3-core-api-client
@@ -13,7 +13,7 @@ Requires-Dist: pydantic[email]==2.12.5
13
13
 
14
14
  Python client for Core API.
15
15
 
16
- This client was built for and tested on the **1.263.0** version of the API.
16
+ This client was built for and tested on the **1.265.0** version of the API.
17
17
 
18
18
  ## Support
19
19
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Python client for Core API.
4
4
 
5
- This client was built for and tested on the **1.263.0** version of the API.
5
+ This client was built for and tested on the **1.265.0** version of the API.
6
6
 
7
7
  ## Support
8
8
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python3-core-api-client"
7
- version = "2.12"
7
+ version = "3.0"
8
8
  description = "Python client for Core API."
9
9
  readme = "README.md"
10
10
  authors = [
@@ -1,7 +1,7 @@
1
1
  from datetime import datetime
2
2
  from enum import StrEnum, IntEnum
3
3
  from ipaddress import IPv4Address, IPv6Address
4
- from typing import Dict, List, Optional, Union, Any
4
+ from typing import Dict, List, Optional, Union, Any, Literal
5
5
  from pydantic import RootModel
6
6
  from pydantic import UUID4, AnyUrl, EmailStr, Field, confloat, conint, constr, BaseModel
7
7
  from typing import Iterator
@@ -52,14 +52,20 @@ class SpecificationMode(StrEnum):
52
52
  AND = "And"
53
53
 
54
54
 
55
+ class DeploymentStatusEnum(StrEnum):
56
+ PENDING = "Pending"
57
+ FAILED = "Failed"
58
+ SUCCEEDED = "Succeeded"
59
+
60
+
55
61
  class ObjectLogTypeEnum(StrEnum):
56
- Create = "Create"
57
- Update = "Update"
58
- Delete = "Delete"
62
+ CREATE = "Create"
63
+ UPDATE = "Update"
64
+ DELETE = "Delete"
59
65
 
60
66
 
61
67
  class CauserTypeEnum(StrEnum):
62
- API_User = "API User"
68
+ API_USER = "API User"
63
69
 
64
70
 
65
71
  class HTTPMethod(StrEnum):
@@ -722,10 +728,8 @@ class NodeGroupEnum(StrEnum):
722
728
  HAPROXY = "HAProxy"
723
729
  REDIS = "Redis"
724
730
  COMPOSER = "Composer"
725
- WP_CLI = "WP-CLI"
726
731
  KERNELCARE = "KernelCare"
727
732
  IMAGEMAGICK = "ImageMagick"
728
- WKHTMLTOPDF = "wkhtmltopdf"
729
733
  GNU_MAILUTILS = "GNU Mailutils"
730
734
  CLAMAV = "ClamAV"
731
735
  PUPPETEER = "Puppeteer"
@@ -886,6 +890,28 @@ class PHPSettings(BaseCoreApiModel):
886
890
  newrelic_browser_monitoring_auto_instrument: bool = True
887
891
 
888
892
 
893
+ class FpmPoolPhpSettings(BaseCoreApiModel):
894
+ apc_enable_cli: bool | None = None
895
+ opcache_file_cache: bool | None = None
896
+ opcache_validate_timestamps: bool | None = None
897
+ short_open_tag: bool | None = None
898
+ session_gc_maxlifetime: conint(ge=1440, le=14400) | None = None
899
+ error_reporting: (
900
+ constr(pattern=r"^[A-Z&~_ ]+$", min_length=1, max_length=255) | None
901
+ ) = None
902
+ opcache_memory_consumption: conint(ge=192, le=1024) | None = None
903
+ max_execution_time: conint(ge=30, le=120) | None = None
904
+ max_file_uploads: conint(ge=100, le=1000) | None = None
905
+ memory_limit: conint(ge=256, le=4096) | None = None
906
+ post_max_size: conint(ge=32, le=256) | None = None
907
+ upload_max_filesize: conint(ge=32, le=256) | None = None
908
+ tideways_api_key: (
909
+ constr(pattern=r"^[a-zA-Z0-9_]+$", min_length=16, max_length=32) | None
910
+ ) = None
911
+ tideways_sample_rate: conint(ge=1, le=100) | None = None
912
+ newrelic_browser_monitoring_auto_instrument: bool | None = None
913
+
914
+
889
915
  class PassengerAppTypeEnum(StrEnum):
890
916
  NODEJS = "NodeJS"
891
917
 
@@ -1239,12 +1265,6 @@ class ClusterCreateRequest(BaseCoreApiModel):
1239
1265
  cephfs_enabled: bool
1240
1266
 
1241
1267
 
1242
- class ClusterDeploymentTaskResult(BaseCoreApiModel):
1243
- description: constr(pattern=r"^[ -~]+$", min_length=1, max_length=65535)
1244
- message: Optional[str]
1245
- state: TaskStateEnum
1246
-
1247
-
1248
1268
  class ClusterIPAddressCreateRequest(BaseCoreApiModel):
1249
1269
  service_account_name: str
1250
1270
  dns_name: str
@@ -1305,6 +1325,7 @@ class CustomConfigResource(BaseCoreApiModel):
1305
1325
  cluster_id: int
1306
1326
  contents: constr(pattern=r"^[ -~\n]+$", min_length=1, max_length=65535)
1307
1327
  server_software_name: CustomConfigServerSoftwareNameEnum
1328
+ deployment_status: DeploymentStatusEnum
1308
1329
  includes: CustomConfigIncludes
1309
1330
 
1310
1331
 
@@ -1337,6 +1358,7 @@ class CustomConfigSnippetResource(BaseCoreApiModel):
1337
1358
  contents: constr(pattern=r"^[ -~\n]+$", min_length=1, max_length=65535)
1338
1359
  cluster_id: int
1339
1360
  is_default: bool
1361
+ deployment_status: DeploymentStatusEnum
1340
1362
  includes: CustomConfigSnippetIncludes
1341
1363
 
1342
1364
 
@@ -1367,6 +1389,7 @@ class DatabaseResource(BaseCoreApiModel):
1367
1389
  cluster_id: int
1368
1390
  optimizing_enabled: bool
1369
1391
  backups_enabled: bool
1392
+ deployment_status: DeploymentStatusEnum
1370
1393
  includes: DatabaseIncludes
1371
1394
 
1372
1395
 
@@ -1400,6 +1423,7 @@ class DatabaseUserResource(BaseCoreApiModel):
1400
1423
  host: Optional[str]
1401
1424
  cluster_id: int
1402
1425
  phpmyadmin_firewall_groups_ids: Optional[List[int]]
1426
+ deployment_status: DeploymentStatusEnum
1403
1427
  includes: DatabaseUserIncludes
1404
1428
 
1405
1429
 
@@ -1417,6 +1441,7 @@ class FirewallGroupResource(BaseCoreApiModel):
1417
1441
  ...,
1418
1442
  min_length=1,
1419
1443
  )
1444
+ deployment_status: DeploymentStatusEnum
1420
1445
  includes: FirewallGroupIncludes
1421
1446
 
1422
1447
 
@@ -1461,6 +1486,7 @@ class HAProxyListenResource(BaseCoreApiModel):
1461
1486
  LoadBalancingMethodEnum.SOURCE_IP_ADDRESS
1462
1487
  )
1463
1488
  destination_cluster_id: int
1489
+ deployment_status: DeploymentStatusEnum
1464
1490
  includes: HAProxyListenIncludes
1465
1491
 
1466
1492
 
@@ -1511,6 +1537,7 @@ class MariaDBEncryptionKeyResource(BaseCoreApiModel):
1511
1537
  identifier: int
1512
1538
  key: constr(pattern=r"^[a-z0-9]+$", min_length=64, max_length=64)
1513
1539
  cluster_id: int
1540
+ deployment_status: DeploymentStatusEnum
1514
1541
  includes: MariaDBEncryptionKeyIncludes
1515
1542
 
1516
1543
 
@@ -1545,6 +1572,7 @@ class NodeResource(BaseCoreApiModel):
1545
1572
  load_balancer_health_checks_groups_pairs: Dict[NodeGroupEnum, List[NodeGroupEnum]]
1546
1573
  groups_properties: NodeGroupsProperties
1547
1574
  is_ready: bool
1575
+ deployment_status: DeploymentStatusEnum
1548
1576
  includes: NodeIncludes
1549
1577
 
1550
1578
 
@@ -1603,6 +1631,7 @@ class RedisInstanceResource(BaseCoreApiModel):
1603
1631
  memory_limit: conint(ge=8)
1604
1632
  max_databases: int
1605
1633
  eviction_policy: RedisEvictionPolicyEnum
1634
+ deployment_status: DeploymentStatusEnum
1606
1635
  includes: RedisInstanceIncludes
1607
1636
 
1608
1637
 
@@ -1618,6 +1647,7 @@ class RootSSHKeyResource(BaseCoreApiModel):
1618
1647
  public_key: Optional[str]
1619
1648
  private_key: Optional[str]
1620
1649
  name: constr(pattern=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=64)
1650
+ deployment_status: DeploymentStatusEnum
1621
1651
  includes: RootSSHKeyIncludes
1622
1652
 
1623
1653
 
@@ -1638,6 +1668,7 @@ class SecurityTXTPolicyResource(BaseCoreApiModel):
1638
1668
  policy_urls: List[AnyUrl]
1639
1669
  opening_urls: List[AnyUrl]
1640
1670
  preferred_languages: List[LanguageCodeEnum]
1671
+ deployment_status: DeploymentStatusEnum
1641
1672
  includes: SecurityTXTPolicyIncludes
1642
1673
 
1643
1674
 
@@ -1697,6 +1728,7 @@ class UNIXUserResource(BaseCoreApiModel):
1697
1728
  constr(pattern=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=255)
1698
1729
  ]
1699
1730
  shell_is_namespaced: bool
1731
+ deployment_status: DeploymentStatusEnum
1700
1732
  includes: UNIXUserIncludes
1701
1733
 
1702
1734
 
@@ -1718,6 +1750,7 @@ class URLRedirectResource(BaseCoreApiModel):
1718
1750
  description: Optional[
1719
1751
  constr(pattern=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=255)
1720
1752
  ]
1753
+ deployment_status: DeploymentStatusEnum
1721
1754
  includes: URLRedirectIncludes
1722
1755
 
1723
1756
 
@@ -1757,9 +1790,9 @@ class BorgRepositoryResource(BaseCoreApiModel):
1757
1790
  keep_weekly: Optional[int]
1758
1791
  keep_monthly: Optional[int]
1759
1792
  keep_yearly: Optional[int]
1760
- identity_file_path: Optional[str]
1761
1793
  unix_user_id: Optional[int]
1762
1794
  unix_id: int
1795
+ deployment_status: DeploymentStatusEnum
1763
1796
  includes: BorgRepositoryIncludes
1764
1797
 
1765
1798
 
@@ -1786,15 +1819,11 @@ class CertificateResource(BaseCoreApiModel):
1786
1819
  private_key: constr(
1787
1820
  pattern=r"^[a-zA-Z0-9-_\+\/=\n\\ ]+$", min_length=1, max_length=65535
1788
1821
  )
1822
+ deployment_status: DeploymentStatusEnum
1789
1823
  cluster_id: int
1790
1824
  includes: CertificateIncludes
1791
1825
 
1792
1826
 
1793
- class ClusterDeploymentResults(BaseCoreApiModel):
1794
- created_at: datetime
1795
- tasks_results: List[ClusterDeploymentTaskResult]
1796
-
1797
-
1798
1827
  class CronIncludes(BaseCoreApiModel):
1799
1828
  cluster: Optional[ClusterResource]
1800
1829
  unix_user: Optional[UNIXUserResource]
@@ -1819,6 +1848,7 @@ class CronResource(BaseCoreApiModel):
1819
1848
  is_active: bool
1820
1849
  memory_limit: Optional[conint(ge=256)]
1821
1850
  cpu_limit: Optional[int]
1851
+ deployment_status: DeploymentStatusEnum
1822
1852
  includes: CronIncludes
1823
1853
 
1824
1854
 
@@ -1838,6 +1868,7 @@ class DaemonResource(BaseCoreApiModel):
1838
1868
  nodes_ids: List[int]
1839
1869
  memory_limit: Optional[conint(ge=256)]
1840
1870
  cpu_limit: Optional[int]
1871
+ deployment_status: DeploymentStatusEnum
1841
1872
  includes: DaemonIncludes
1842
1873
 
1843
1874
 
@@ -1858,6 +1889,7 @@ class DatabaseUserGrantResource(BaseCoreApiModel):
1858
1889
  constr(pattern=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=64)
1859
1890
  ]
1860
1891
  privilege_name: MariaDBPrivilegeEnum
1892
+ deployment_status: DeploymentStatusEnum
1861
1893
  includes: DatabaseUserGrantIncludes
1862
1894
 
1863
1895
 
@@ -1881,6 +1913,8 @@ class FPMPoolResource(BaseCoreApiModel):
1881
1913
  log_slow_requests_threshold: Optional[int]
1882
1914
  is_namespaced: bool
1883
1915
  memory_limit: Optional[conint(ge=256)]
1916
+ php_settings: FpmPoolPhpSettings
1917
+ deployment_status: DeploymentStatusEnum
1884
1918
  includes: FPMPoolIncludes
1885
1919
 
1886
1920
 
@@ -1897,6 +1931,7 @@ class FTPUserResource(BaseCoreApiModel):
1897
1931
  username: constr(pattern=r"^[a-z0-9-_.@]+$", min_length=1, max_length=32)
1898
1932
  unix_user_id: int
1899
1933
  directory_path: str
1934
+ deployment_status: DeploymentStatusEnum
1900
1935
  includes: FTPUserIncludes
1901
1936
 
1902
1937
 
@@ -1918,6 +1953,7 @@ class FirewallRuleResource(BaseCoreApiModel):
1918
1953
  service_name: Optional[FirewallRuleServiceNameEnum]
1919
1954
  haproxy_listen_id: Optional[int]
1920
1955
  port: Optional[int]
1956
+ deployment_status: DeploymentStatusEnum
1921
1957
  includes: FirewallRuleIncludes
1922
1958
 
1923
1959
 
@@ -1934,6 +1970,7 @@ class HAProxyListenToNodeResource(BaseCoreApiModel):
1934
1970
  cluster_id: int
1935
1971
  haproxy_listen_id: int
1936
1972
  node_id: int
1973
+ deployment_status: DeploymentStatusEnum
1937
1974
  includes: HAProxyListenToNodeIncludes
1938
1975
 
1939
1976
 
@@ -1948,6 +1985,7 @@ class HostsEntryResource(BaseCoreApiModel):
1948
1985
  updated_at: datetime
1949
1986
  node_id: int
1950
1987
  host_name: str
1988
+ deployment_status: DeploymentStatusEnum
1951
1989
  cluster_id: int
1952
1990
  includes: HostsEntryIncludes
1953
1991
 
@@ -1963,6 +2001,7 @@ class HtpasswdFileResource(BaseCoreApiModel):
1963
2001
  updated_at: datetime
1964
2002
  cluster_id: int
1965
2003
  unix_user_id: int
2004
+ deployment_status: DeploymentStatusEnum
1966
2005
  includes: HtpasswdFileIncludes
1967
2006
 
1968
2007
 
@@ -1978,6 +2017,7 @@ class HtpasswdUserResource(BaseCoreApiModel):
1978
2017
  cluster_id: int
1979
2018
  username: constr(pattern=r"^[a-z0-9-_]+$", min_length=1, max_length=255)
1980
2019
  htpasswd_file_id: int
2020
+ deployment_status: DeploymentStatusEnum
1981
2021
  includes: HtpasswdUserIncludes
1982
2022
 
1983
2023
 
@@ -1995,6 +2035,7 @@ class MailDomainResource(BaseCoreApiModel):
1995
2035
  unix_user_id: int
1996
2036
  catch_all_forward_email_addresses: List[EmailStr]
1997
2037
  is_local: bool
2038
+ deployment_status: DeploymentStatusEnum
1998
2039
  includes: MailDomainIncludes
1999
2040
 
2000
2041
 
@@ -2010,6 +2051,7 @@ class MailHostnameResource(BaseCoreApiModel):
2010
2051
  domain: str
2011
2052
  cluster_id: int
2012
2053
  certificate_id: int
2054
+ deployment_status: DeploymentStatusEnum
2013
2055
  includes: MailHostnameIncludes
2014
2056
 
2015
2057
 
@@ -2103,6 +2145,7 @@ class PassengerAppResource(BaseCoreApiModel):
2103
2145
  cpu_limit: Optional[int]
2104
2146
  includes: PassengerAppIncludes
2105
2147
  nodejs_version: Optional[constr(pattern=r"^[0-9]{1,2}\.[0-9]{1,2}$")]
2148
+ deployment_status: DeploymentStatusEnum
2106
2149
  startup_file: Optional[str]
2107
2150
 
2108
2151
 
@@ -2121,6 +2164,7 @@ class SSHKeyResource(BaseCoreApiModel):
2121
2164
  identity_file_path: Optional[str]
2122
2165
  name: constr(pattern=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=128)
2123
2166
  unix_user_id: int
2167
+ deployment_status: DeploymentStatusEnum
2124
2168
  includes: SSHKeyIncludes
2125
2169
 
2126
2170
 
@@ -2148,6 +2192,7 @@ class VirtualHostResource(BaseCoreApiModel):
2148
2192
  custom_config: Optional[
2149
2193
  constr(pattern=r"^[ -~\n]+$", min_length=1, max_length=65535)
2150
2194
  ]
2195
+ deployment_status: DeploymentStatusEnum
2151
2196
  includes: VirtualHostIncludes
2152
2197
 
2153
2198
 
@@ -2167,6 +2212,7 @@ class BasicAuthenticationRealmResource(BaseCoreApiModel):
2167
2212
  virtual_host_id: int
2168
2213
  name: constr(pattern=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=64)
2169
2214
  htpasswd_file_id: int
2215
+ deployment_status: DeploymentStatusEnum
2170
2216
  includes: BasicAuthenticationRealmIncludes
2171
2217
 
2172
2218
 
@@ -2246,6 +2292,7 @@ class DomainRouterResource(BaseCoreApiModel):
2246
2292
  security_txt_policy_id: Optional[int]
2247
2293
  firewall_groups_ids: Optional[List[int]]
2248
2294
  force_ssl: bool
2295
+ deployment_status: DeploymentStatusEnum
2249
2296
  includes: DomainRouterIncludes
2250
2297
 
2251
2298
 
@@ -2262,6 +2309,7 @@ class MailAccountResource(BaseCoreApiModel):
2262
2309
  mail_domain_id: int
2263
2310
  cluster_id: int
2264
2311
  quota: Optional[int]
2312
+ deployment_status: DeploymentStatusEnum
2265
2313
  includes: MailAccountIncludes
2266
2314
 
2267
2315
 
@@ -2281,6 +2329,7 @@ class MailAliasResource(BaseCoreApiModel):
2281
2329
  ...,
2282
2330
  min_length=1,
2283
2331
  )
2332
+ deployment_status: DeploymentStatusEnum
2284
2333
  includes: MailAliasIncludes
2285
2334
 
2286
2335
 
@@ -2347,13 +2396,14 @@ class ObjectLogResource(BaseCoreApiModel):
2347
2396
  updated_at: datetime
2348
2397
  object_id: int
2349
2398
  object_model_name: Optional[
2350
- constr(pattern=r"^[a-zA-Z]+$", min_length=1, max_length=255)
2399
+ constr(pattern=r"^[a-zA-Z0-9]+$", min_length=1, max_length=255)
2351
2400
  ]
2352
2401
  request_id: Optional[UUID4]
2353
2402
  type: ObjectLogTypeEnum
2354
2403
  causer_type: Optional[CauserTypeEnum]
2355
2404
  causer_id: Optional[int]
2356
2405
  customer_id: Optional[int]
2406
+ changes: dict[str, tuple[Any, Any]] | None
2357
2407
  includes: ObjectLogIncludes
2358
2408
 
2359
2409
 
@@ -2405,6 +2455,7 @@ class ClusterBorgPropertiesResource(BaseCoreApiModel):
2405
2455
  updated_at: datetime
2406
2456
  automatic_borg_repositories_prune_enabled: bool
2407
2457
  cluster_id: int
2458
+ deployment_status: DeploymentStatusEnum
2408
2459
  includes: ClusterBorgPropertiesIncludes
2409
2460
 
2410
2461
 
@@ -2432,6 +2483,7 @@ class ClusterElasticsearchPropertiesResource(BaseCoreApiModel):
2432
2483
  )
2433
2484
  kibana_domain: str
2434
2485
  cluster_id: int
2486
+ deployment_status: DeploymentStatusEnum
2435
2487
  includes: ClusterElasticsearchPropertiesIncludes
2436
2488
 
2437
2489
 
@@ -2456,6 +2508,7 @@ class ClusterFirewallPropertiesResource(BaseCoreApiModel):
2456
2508
  updated_at: datetime
2457
2509
  firewall_rules_external_providers_enabled: bool
2458
2510
  cluster_id: int
2511
+ deployment_status: DeploymentStatusEnum
2459
2512
  includes: ClusterFirewallPropertiesIncludes
2460
2513
 
2461
2514
 
@@ -2477,6 +2530,7 @@ class ClusterGrafanaPropertiesResource(BaseCoreApiModel):
2477
2530
  updated_at: datetime
2478
2531
  grafana_domain: str
2479
2532
  cluster_id: int
2533
+ deployment_status: DeploymentStatusEnum
2480
2534
  includes: ClusterGrafanaPropertiesIncludes
2481
2535
 
2482
2536
 
@@ -2502,6 +2556,7 @@ class ClusterKernelcarePropertiesResource(BaseCoreApiModel):
2502
2556
  pattern=r"^[a-zA-Z0-9]+$", min_length=16, max_length=16
2503
2557
  )
2504
2558
  cluster_id: int
2559
+ deployment_status: DeploymentStatusEnum
2505
2560
  includes: ClusterKernelcarePropertiesIncludes
2506
2561
 
2507
2562
 
@@ -2533,6 +2588,7 @@ class ClusterMariadbPropertiesResource(BaseCoreApiModel):
2533
2588
  mariadb_backup_interval: conint(ge=1, le=24)
2534
2589
  mariadb_backup_local_retention: conint(ge=1, le=24)
2535
2590
  cluster_id: int
2591
+ deployment_status: DeploymentStatusEnum
2536
2592
  includes: ClusterMariadbPropertiesIncludes
2537
2593
 
2538
2594
 
@@ -2559,6 +2615,7 @@ class ClusterMetabasePropertiesResource(BaseCoreApiModel):
2559
2615
  updated_at: datetime
2560
2616
  metabase_domain: str
2561
2617
  cluster_id: int
2618
+ deployment_status: DeploymentStatusEnum
2562
2619
  includes: ClusterMetabasePropertiesIncludes
2563
2620
 
2564
2621
 
@@ -2590,6 +2647,7 @@ class ClusterNewRelicPropertiesResource(BaseCoreApiModel):
2590
2647
  constr(pattern=r"^[a-zA-Z0-9]+$", min_length=40, max_length=40)
2591
2648
  ]
2592
2649
  cluster_id: int
2650
+ deployment_status: DeploymentStatusEnum
2593
2651
  includes: ClusterNewRelicPropertiesIncludes
2594
2652
 
2595
2653
 
@@ -2616,6 +2674,7 @@ class ClusterNodejsPropertiesResource(BaseCoreApiModel):
2616
2674
  updated_at: datetime
2617
2675
  nodejs_versions: List[NodejsVersion]
2618
2676
  cluster_id: int
2677
+ deployment_status: DeploymentStatusEnum
2619
2678
  includes: ClusterNodejsPropertiesIncludes
2620
2679
 
2621
2680
 
@@ -2637,6 +2696,7 @@ class ClusterOsPropertiesResource(BaseCoreApiModel):
2637
2696
  updated_at: datetime
2638
2697
  automatic_upgrades_enabled: bool
2639
2698
  cluster_id: int
2699
+ deployment_status: DeploymentStatusEnum
2640
2700
  includes: ClusterOsPropertiesIncludes
2641
2701
 
2642
2702
 
@@ -2666,6 +2726,7 @@ class ClusterPostgresqlPropertiesResource(BaseCoreApiModel):
2666
2726
  postgresql_backup_local_retention: conint(ge=1, le=24)
2667
2727
  postgresql_backup_interval: conint(ge=1, le=24)
2668
2728
  cluster_id: int
2729
+ deployment_status: DeploymentStatusEnum
2669
2730
  includes: ClusterPostgresqlPropertiesIncludes
2670
2731
 
2671
2732
 
@@ -2694,6 +2755,7 @@ class ClusterRabbitmqPropertiesResource(BaseCoreApiModel):
2694
2755
  )
2695
2756
  rabbitmq_management_domain: str
2696
2757
  cluster_id: int
2758
+ deployment_status: DeploymentStatusEnum
2697
2759
  includes: ClusterRabbitmqPropertiesIncludes
2698
2760
 
2699
2761
 
@@ -2720,6 +2782,7 @@ class ClusterRedisPropertiesResource(BaseCoreApiModel):
2720
2782
  redis_password: constr(pattern=r"^[a-zA-Z0-9]+$", min_length=24, max_length=255)
2721
2783
  redis_memory_limit: int
2722
2784
  cluster_id: int
2785
+ deployment_status: DeploymentStatusEnum
2723
2786
  includes: ClusterRedisPropertiesIncludes
2724
2787
 
2725
2788
 
@@ -2756,6 +2819,7 @@ class ClusterSinglestorePropertiesResource(BaseCoreApiModel):
2756
2819
  pattern=r"^[a-zA-Z0-9]+$", min_length=24, max_length=255
2757
2820
  )
2758
2821
  cluster_id: int
2822
+ deployment_status: DeploymentStatusEnum
2759
2823
  includes: ClusterSinglestorePropertiesIncludes
2760
2824
 
2761
2825
 
@@ -2781,6 +2845,7 @@ class ClusterLoadBalancingPropertiesResource(BaseCoreApiModel):
2781
2845
  http_retry_properties: HTTPRetryProperties
2782
2846
  load_balancing_method: LoadBalancingMethodEnum
2783
2847
  cluster_id: int
2848
+ deployment_status: DeploymentStatusEnum
2784
2849
  includes: ClusterLoadBalancingPropertiesIncludes
2785
2850
 
2786
2851
 
@@ -2809,6 +2874,7 @@ class ClusterMeilisearchPropertiesResource(BaseCoreApiModel):
2809
2874
  meilisearch_environment: MeilisearchEnvironmentEnum
2810
2875
  meilisearch_backup_interval: conint(ge=1, le=24)
2811
2876
  cluster_id: int
2877
+ deployment_status: DeploymentStatusEnum
2812
2878
  includes: ClusterMeilisearchPropertiesIncludes
2813
2879
 
2814
2880
 
@@ -2841,6 +2907,7 @@ class ClusterPhpPropertiesResource(BaseCoreApiModel):
2841
2907
  php_ioncube_enabled: bool
2842
2908
  php_sessions_spread_enabled: bool
2843
2909
  cluster_id: int
2910
+ deployment_status: DeploymentStatusEnum
2844
2911
  includes: ClusterPhpPropertiesIncludes
2845
2912
 
2846
2913
 
@@ -2858,6 +2925,7 @@ class ClusterUnixUsersPropertiesResource(BaseCoreApiModel):
2858
2925
  updated_at: datetime
2859
2926
  unix_users_home_directory: UNIXUserHomeDirectoryEnum
2860
2927
  cluster_id: int
2928
+ deployment_status: DeploymentStatusEnum
2861
2929
  includes: ClusterUnixUsersPropertiesIncludes
2862
2930
 
2863
2931
 
@@ -2909,7 +2977,6 @@ class SpecificationNameEnum(StrEnum):
2909
2977
  CLUSTER_SUPPORTS_N8N_NODES = "Cluster supports n8n nodes"
2910
2978
  CLUSTER_SUPPORTS_CLAMAV_NODES = "Cluster supports ClamAV nodes"
2911
2979
  CLUSTER_SUPPORTS_GNU_MAILUTILS_NODES = "Cluster supports GNU Mailutils nodes"
2912
- CLUSTER_SUPPORTS_WKHTMLTOPDF_NODES = "Cluster supports wkhtmltopdf nodes"
2913
2980
  CLUSTER_SUPPORTS_IMAGEMAGICK_NODES = "Cluster supports ImageMagick nodes"
2914
2981
  CLUSTER_SUPPORTS_HAPROXY_NODES = "Cluster supports HAProxy nodes"
2915
2982
  CLUSTER_SUPPORTS_PROFTPD_NODES = "Cluster supports ProFTPD nodes"
@@ -2922,7 +2989,6 @@ class SpecificationNameEnum(StrEnum):
2922
2989
  CLUSTER_SUPPORTS_POSTGRESQL_NODES = "Cluster supports PostgreSQL nodes"
2923
2990
  CLUSTER_SUPPORTS_PHP_NODES = "Cluster supports PHP nodes"
2924
2991
  CLUSTER_SUPPORTS_COMPOSER_NODES = "Cluster supports Composer nodes"
2925
- CLUSTER_SUPPORTS_WP_CLI_NODES = "Cluster supports WP-CLI nodes"
2926
2992
  CLUSTER_SUPPORTS_NODEJS_NODES = "Cluster supports NodeJS nodes"
2927
2993
  CLUSTER_SUPPORTS_PASSENGER_NODES = "Cluster supports Passenger nodes"
2928
2994
  CLUSTER_SUPPORTS_KERNELCARE_NODES = "Cluster supports KernelCare nodes"
@@ -3433,6 +3499,107 @@ class PassengerAppsSearchRequest(BaseCoreApiModel):
3433
3499
  nodejs_version: Optional[str] = None
3434
3500
 
3435
3501
 
3502
+ class FpmPoolUpdateSettingPairApcEnableCliRequest(BaseCoreApiModel):
3503
+ setting: Literal["apc_enable_cli"]
3504
+ value: bool
3505
+
3506
+
3507
+ class FpmPoolUpdateSettingPairErrorReportingRequest(BaseCoreApiModel):
3508
+ setting: Literal["error_reporting"]
3509
+ value: constr(pattern=r"^[A-Z&~_ ]+$", min_length=1, max_length=255)
3510
+
3511
+
3512
+ class FpmPoolUpdateSettingPairMaxExecutionTimeRequest(BaseCoreApiModel):
3513
+ setting: Literal["max_execution_time"]
3514
+ value: conint(ge=30, le=120)
3515
+
3516
+
3517
+ class FpmPoolUpdateSettingPairMaxFileUploadsRequest(BaseCoreApiModel):
3518
+ setting: Literal["max_file_uploads"]
3519
+ value: conint(ge=100, le=1000)
3520
+
3521
+
3522
+ class FpmPoolUpdateSettingPairMemoryLimitRequest(BaseCoreApiModel):
3523
+ setting: Literal["memory_limit"]
3524
+ value: conint(ge=256, le=4096)
3525
+
3526
+
3527
+ class FpmPoolUpdateSettingPairNewrelicBrowserMonitoringAutoInstrumentRequest(
3528
+ BaseCoreApiModel
3529
+ ):
3530
+ setting: Literal["newrelic_browser_monitoring_auto_instrument"]
3531
+ value: bool
3532
+
3533
+
3534
+ class FpmPoolUpdateSettingPairOpcacheFileCacheRequest(BaseCoreApiModel):
3535
+ setting: Literal["opcache_file_cache"]
3536
+ value: bool
3537
+
3538
+
3539
+ class FpmPoolUpdateSettingPairOpcacheMemoryConsumptionRequest(BaseCoreApiModel):
3540
+ setting: Literal["opcache_memory_consumption"]
3541
+ value: conint(ge=192, le=1024)
3542
+
3543
+
3544
+ class FpmPoolUpdateSettingPairOpcacheValidateTimestampsRequest(BaseCoreApiModel):
3545
+ setting: Literal["opcache_validate_timestamps"]
3546
+ value: bool
3547
+
3548
+
3549
+ class FpmPoolUpdateSettingPairPostMaxSizeRequest(BaseCoreApiModel):
3550
+ setting: Literal["post_max_size"]
3551
+ value: conint(ge=32, le=256)
3552
+
3553
+
3554
+ class FpmPoolUpdateSettingPairSessionGcMaxlifetimeRequest(BaseCoreApiModel):
3555
+ setting: Literal["session_gc_maxlifetime"]
3556
+ value: conint(ge=1440, le=14400)
3557
+
3558
+
3559
+ class FpmPoolUpdateSettingPairShortOpenTagRequest(BaseCoreApiModel):
3560
+ setting: Literal["short_open_tag"]
3561
+ value: bool
3562
+
3563
+
3564
+ class FpmPoolUpdateSettingPairTidewaysApiKeyRequest(BaseCoreApiModel):
3565
+ setting: Literal["tideways_api_key"]
3566
+ value: constr(pattern=r"^[a-zA-Z0-9_]+$", min_length=16, max_length=32)
3567
+
3568
+
3569
+ class FpmPoolUpdateSettingPairTidewaysSampleRateRequest(BaseCoreApiModel):
3570
+ setting: Literal["tideways_sample_rate"]
3571
+ value: conint(ge=1, le=100)
3572
+
3573
+
3574
+ class FpmPoolUpdateSettingPairUploadMaxFilesizeRequest(BaseCoreApiModel):
3575
+ setting: Literal["upload_max_filesize"]
3576
+ value: conint(ge=32, le=256)
3577
+
3578
+
3579
+ class FpmPoolUpdateSettingPairRequest(RootCoreApiModel):
3580
+ root: (
3581
+ FpmPoolUpdateSettingPairApcEnableCliRequest
3582
+ | FpmPoolUpdateSettingPairOpcacheFileCacheRequest
3583
+ | FpmPoolUpdateSettingPairOpcacheValidateTimestampsRequest
3584
+ | FpmPoolUpdateSettingPairShortOpenTagRequest
3585
+ | FpmPoolUpdateSettingPairErrorReportingRequest
3586
+ | FpmPoolUpdateSettingPairOpcacheMemoryConsumptionRequest
3587
+ | FpmPoolUpdateSettingPairSessionGcMaxlifetimeRequest
3588
+ | FpmPoolUpdateSettingPairMaxExecutionTimeRequest
3589
+ | FpmPoolUpdateSettingPairMaxFileUploadsRequest
3590
+ | FpmPoolUpdateSettingPairMemoryLimitRequest
3591
+ | FpmPoolUpdateSettingPairPostMaxSizeRequest
3592
+ | FpmPoolUpdateSettingPairUploadMaxFilesizeRequest
3593
+ | FpmPoolUpdateSettingPairTidewaysApiKeyRequest
3594
+ | FpmPoolUpdateSettingPairTidewaysSampleRateRequest
3595
+ | FpmPoolUpdateSettingPairNewrelicBrowserMonitoringAutoInstrumentRequest
3596
+ ) = Field(..., discriminator="setting")
3597
+
3598
+
3599
+ class FpmPoolUpdateSettingsRequest(RootCoreApiModel):
3600
+ root: list[FpmPoolUpdateSettingPairRequest]
3601
+
3602
+
3436
3603
  NestedPathsDict.model_rebuild()
3437
3604
  CompositeSpecificationSatisfyResult.model_rebuild()
3438
3605
  CompositeSpecificationSatisfyResultResource.model_rebuild()
@@ -192,25 +192,6 @@ class Clusters(Resource):
192
192
 
193
193
  return DtoResponse.from_response(local_response, models.IPAddressProduct)
194
194
 
195
- def list_cluster_deployments_results(
196
- self,
197
- *,
198
- id_: int,
199
- get_non_running: Optional[bool] = None,
200
- ) -> DtoResponse[models.ClusterDeploymentResults]:
201
- local_response = self.api_connector.send_or_fail(
202
- "GET",
203
- f"/api/v1/clusters/{id_}/deployments-results",
204
- data=None,
205
- query_parameters={
206
- "get_non_running": get_non_running,
207
- },
208
- )
209
-
210
- return DtoResponse.from_response(
211
- local_response, models.ClusterDeploymentResults
212
- )
213
-
214
195
  def list_unix_users_home_directory_usages(
215
196
  self,
216
197
  *,
@@ -152,3 +152,18 @@ class FPMPools(Resource):
152
152
  )
153
153
 
154
154
  return DtoResponse.from_response(local_response, models.TaskCollectionResource)
155
+
156
+ def update_fpm_pool_settings(
157
+ self,
158
+ request: models.FpmPoolUpdateSettingsRequest,
159
+ *,
160
+ id_: int,
161
+ ) -> DtoResponse[models.FPMPoolResource]:
162
+ local_response = self.api_connector.send_or_fail(
163
+ "PATCH",
164
+ f"/api/v1/fpm-pools/{id_}/settings",
165
+ data=request.model_dump(exclude_unset=True),
166
+ query_parameters={},
167
+ )
168
+
169
+ return DtoResponse.from_response(local_response, models.FPMPoolResource)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python3-core-api-client
3
- Version: 2.12
3
+ Version: 3.0
4
4
  Summary: Python client for Core API.
5
5
  Author-email: Cyberfusion <support@cyberfusion.io>
6
6
  Project-URL: Source, https://github.com/CyberfusionIO/python3-core-api-client
@@ -13,7 +13,7 @@ Requires-Dist: pydantic[email]==2.12.5
13
13
 
14
14
  Python client for Core API.
15
15
 
16
- This client was built for and tested on the **1.263.0** version of the API.
16
+ This client was built for and tested on the **1.265.0** version of the API.
17
17
 
18
18
  ## Support
19
19