python3-core-api-client 2.9__tar.gz → 2.10.1__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.
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/PKG-INFO +2 -2
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/README.md +1 -1
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/pyproject.toml +1 -1
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/models.py +14 -10
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +6 -6
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/python3_core_api_client.egg-info/PKG-INFO +2 -2
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/setup.cfg +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/_encoders.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/_helpers.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/connector.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/http.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/__init__.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/certificates.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/clusters.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/cmses.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/crons.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/customers.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/daemons.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/database_users.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/databases.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/login.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/logs.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/malwares.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/nodes.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/regions.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/unix_users.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/python3_core_api_client.egg-info/SOURCES.txt +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/python3_core_api_client.egg-info/requires.txt +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/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.
|
|
3
|
+
Version: 2.10.1
|
|
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[dotenv,email]==1.10.4
|
|
|
13
13
|
|
|
14
14
|
Python client for Core API.
|
|
15
15
|
|
|
16
|
-
This client was built for and tested on the **1.
|
|
16
|
+
This client was built for and tested on the **1.260.0** version of the API.
|
|
17
17
|
|
|
18
18
|
## Support
|
|
19
19
|
|
|
@@ -347,7 +347,7 @@ class DaemonCreateRequest(CoreApiModel):
|
|
|
347
347
|
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
348
348
|
unix_user_id: int
|
|
349
349
|
command: constr(regex=r"^[ -~]+$", min_length=1, max_length=65535)
|
|
350
|
-
nodes_ids: List[int] = Field(...,
|
|
350
|
+
nodes_ids: List[int] = Field(..., unique_items=True)
|
|
351
351
|
memory_limit: Optional[conint(ge=256)] = None
|
|
352
352
|
cpu_limit: Optional[int] = None
|
|
353
353
|
|
|
@@ -842,6 +842,7 @@ class PHPSettings(CoreApiModel):
|
|
|
842
842
|
opcache_file_cache: bool = False
|
|
843
843
|
opcache_validate_timestamps: bool = True
|
|
844
844
|
short_open_tag: bool = False
|
|
845
|
+
session_gc_maxlifetime: conint(ge=1440, le=14400) = 1440
|
|
845
846
|
error_reporting: constr(regex=r"^[A-Z&~_ ]+$", min_length=1, max_length=255) = (
|
|
846
847
|
Field(
|
|
847
848
|
"E_ALL & ~E_DEPRECATED & ~E_STRICT",
|
|
@@ -964,6 +965,7 @@ class ServiceAccountGroupEnum(StrEnum):
|
|
|
964
965
|
|
|
965
966
|
class ShellNameEnum(StrEnum):
|
|
966
967
|
BASH = "Bash"
|
|
968
|
+
NOLOGIN = "nologin"
|
|
967
969
|
|
|
968
970
|
|
|
969
971
|
class RegionIncludes(CoreApiModel):
|
|
@@ -1034,17 +1036,17 @@ class UNIXUserComparison(CoreApiModel):
|
|
|
1034
1036
|
|
|
1035
1037
|
class UNIXUserCreateRequest(CoreApiModel):
|
|
1036
1038
|
username: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=32)
|
|
1037
|
-
virtual_hosts_directory: Optional[str]
|
|
1038
|
-
mail_domains_directory: Optional[str]
|
|
1039
|
+
virtual_hosts_directory: Optional[str] = None
|
|
1040
|
+
mail_domains_directory: Optional[str] = None
|
|
1039
1041
|
cluster_id: int
|
|
1040
1042
|
password: Optional[constr(regex=r"^[ -~]+$", min_length=24, max_length=255)]
|
|
1041
1043
|
shell_name: ShellNameEnum = ShellNameEnum.BASH
|
|
1042
1044
|
record_usage_files: bool = False
|
|
1043
|
-
default_php_version: Optional[str]
|
|
1044
|
-
default_nodejs_version: Optional[constr(regex=r"^[0-9]{1,2}\.[0-9]{1,2}$")]
|
|
1045
|
+
default_php_version: Optional[str] = None
|
|
1046
|
+
default_nodejs_version: Optional[constr(regex=r"^[0-9]{1,2}\.[0-9]{1,2}$")] = None
|
|
1045
1047
|
description: Optional[
|
|
1046
1048
|
constr(regex=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=255)
|
|
1047
|
-
]
|
|
1049
|
+
] = None
|
|
1048
1050
|
shell_is_namespaced: bool = True
|
|
1049
1051
|
|
|
1050
1052
|
|
|
@@ -1435,7 +1437,7 @@ class IPAddressProduct(CoreApiModel):
|
|
|
1435
1437
|
currency: constr(regex=r"^[A-Z]+$", min_length=3, max_length=3)
|
|
1436
1438
|
|
|
1437
1439
|
|
|
1438
|
-
class
|
|
1440
|
+
class VirtualHostAccessLogResource(CoreApiModel):
|
|
1439
1441
|
remote_address: str
|
|
1440
1442
|
raw_message: constr(min_length=1, max_length=65535)
|
|
1441
1443
|
method: Optional[LogMethodEnum] = None
|
|
@@ -1445,7 +1447,7 @@ class WebServerLogAccessResource(CoreApiModel):
|
|
|
1445
1447
|
bytes_sent: conint(ge=0)
|
|
1446
1448
|
|
|
1447
1449
|
|
|
1448
|
-
class
|
|
1450
|
+
class VirtualHostErrorLogResource(CoreApiModel):
|
|
1449
1451
|
remote_address: str
|
|
1450
1452
|
raw_message: constr(min_length=1, max_length=65535)
|
|
1451
1453
|
method: Optional[LogMethodEnum] = None
|
|
@@ -1797,7 +1799,7 @@ class DaemonResource(CoreApiModel):
|
|
|
1797
1799
|
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
1798
1800
|
unix_user_id: int
|
|
1799
1801
|
command: constr(regex=r"^[ -~]+$", min_length=1, max_length=65535)
|
|
1800
|
-
nodes_ids: List[int] = Field(...,
|
|
1802
|
+
nodes_ids: List[int] = Field(..., unique_items=True)
|
|
1801
1803
|
memory_limit: Optional[conint(ge=256)]
|
|
1802
1804
|
cpu_limit: Optional[int]
|
|
1803
1805
|
includes: DaemonIncludes
|
|
@@ -2013,7 +2015,9 @@ class NodeCreateRequest(CoreApiModel):
|
|
|
2013
2015
|
...,
|
|
2014
2016
|
unique_items=True,
|
|
2015
2017
|
)
|
|
2016
|
-
comment: Optional[
|
|
2018
|
+
comment: Optional[
|
|
2019
|
+
constr(regex=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=255)
|
|
2020
|
+
] = None
|
|
2017
2021
|
load_balancer_health_checks_groups_pairs: Dict[NodeGroupEnum, List[NodeGroupEnum]]
|
|
2018
2022
|
|
|
2019
2023
|
|
|
@@ -124,14 +124,14 @@ class VirtualHosts(Resource):
|
|
|
124
124
|
|
|
125
125
|
return DtoResponse.from_response(local_response, models.TaskCollectionResource)
|
|
126
126
|
|
|
127
|
-
def
|
|
127
|
+
def list_virtual_host_access_logs(
|
|
128
128
|
self,
|
|
129
129
|
*,
|
|
130
130
|
id_: int,
|
|
131
131
|
timestamp: Optional[str] = None,
|
|
132
132
|
sort: Optional[str] = None,
|
|
133
133
|
page: int = 1,
|
|
134
|
-
) -> DtoResponse[list[models.
|
|
134
|
+
) -> DtoResponse[list[models.VirtualHostAccessLogResource]]:
|
|
135
135
|
local_response = self.api_connector.send_or_fail(
|
|
136
136
|
"GET",
|
|
137
137
|
f"/api/v1/virtual-hosts/{id_}/logs/access",
|
|
@@ -143,17 +143,17 @@ class VirtualHosts(Resource):
|
|
|
143
143
|
)
|
|
144
144
|
|
|
145
145
|
return DtoResponse.from_response(
|
|
146
|
-
local_response, models.
|
|
146
|
+
local_response, models.VirtualHostAccessLogResource
|
|
147
147
|
)
|
|
148
148
|
|
|
149
|
-
def
|
|
149
|
+
def list_virtual_host_error_logs(
|
|
150
150
|
self,
|
|
151
151
|
*,
|
|
152
152
|
id_: int,
|
|
153
153
|
timestamp: Optional[str] = None,
|
|
154
154
|
sort: Optional[str] = None,
|
|
155
155
|
page: int = 1,
|
|
156
|
-
) -> DtoResponse[list[models.
|
|
156
|
+
) -> DtoResponse[list[models.VirtualHostErrorLogResource]]:
|
|
157
157
|
local_response = self.api_connector.send_or_fail(
|
|
158
158
|
"GET",
|
|
159
159
|
f"/api/v1/virtual-hosts/{id_}/logs/error",
|
|
@@ -165,5 +165,5 @@ class VirtualHosts(Resource):
|
|
|
165
165
|
)
|
|
166
166
|
|
|
167
167
|
return DtoResponse.from_response(
|
|
168
|
-
local_response, models.
|
|
168
|
+
local_response, models.VirtualHostErrorLogResource
|
|
169
169
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-core-api-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.10.1
|
|
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[dotenv,email]==1.10.4
|
|
|
13
13
|
|
|
14
14
|
Python client for Core API.
|
|
15
15
|
|
|
16
|
-
This client was built for and tested on the **1.
|
|
16
|
+
This client was built for and tested on the **1.260.0** version of the API.
|
|
17
17
|
|
|
18
18
|
## Support
|
|
19
19
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3_core_api_client-2.9 → python3_core_api_client-2.10.1}/src/cyberfusion/CoreApiClient/http.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|