python3-core-api-client 2.9__tar.gz → 2.10__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}/PKG-INFO +2 -2
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/README.md +1 -1
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/pyproject.toml +1 -1
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/models.py +13 -10
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +6 -6
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/python3_core_api_client.egg-info/PKG-INFO +2 -2
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/setup.cfg +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/_encoders.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/_helpers.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/connector.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/http.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/__init__.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/certificates.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/clusters.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/cmses.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/crons.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/customers.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/daemons.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/database_users.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/databases.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/login.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/logs.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/malwares.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/nodes.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/regions.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/unix_users.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/python3_core_api_client.egg-info/SOURCES.txt +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/python3_core_api_client.egg-info/requires.txt +0 -0
- {python3_core_api_client-2.9 → python3_core_api_client-2.10}/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
|
|
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
|
|
{python3_core_api_client-2.9 → python3_core_api_client-2.10}/src/cyberfusion/CoreApiClient/models.py
RENAMED
|
@@ -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
|
|
|
@@ -964,6 +964,7 @@ class ServiceAccountGroupEnum(StrEnum):
|
|
|
964
964
|
|
|
965
965
|
class ShellNameEnum(StrEnum):
|
|
966
966
|
BASH = "Bash"
|
|
967
|
+
NOLOGIN = "nologin"
|
|
967
968
|
|
|
968
969
|
|
|
969
970
|
class RegionIncludes(CoreApiModel):
|
|
@@ -1034,17 +1035,17 @@ class UNIXUserComparison(CoreApiModel):
|
|
|
1034
1035
|
|
|
1035
1036
|
class UNIXUserCreateRequest(CoreApiModel):
|
|
1036
1037
|
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]
|
|
1038
|
+
virtual_hosts_directory: Optional[str] = None
|
|
1039
|
+
mail_domains_directory: Optional[str] = None
|
|
1039
1040
|
cluster_id: int
|
|
1040
1041
|
password: Optional[constr(regex=r"^[ -~]+$", min_length=24, max_length=255)]
|
|
1041
1042
|
shell_name: ShellNameEnum = ShellNameEnum.BASH
|
|
1042
1043
|
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}$")]
|
|
1044
|
+
default_php_version: Optional[str] = None
|
|
1045
|
+
default_nodejs_version: Optional[constr(regex=r"^[0-9]{1,2}\.[0-9]{1,2}$")] = None
|
|
1045
1046
|
description: Optional[
|
|
1046
1047
|
constr(regex=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=255)
|
|
1047
|
-
]
|
|
1048
|
+
] = None
|
|
1048
1049
|
shell_is_namespaced: bool = True
|
|
1049
1050
|
|
|
1050
1051
|
|
|
@@ -1435,7 +1436,7 @@ class IPAddressProduct(CoreApiModel):
|
|
|
1435
1436
|
currency: constr(regex=r"^[A-Z]+$", min_length=3, max_length=3)
|
|
1436
1437
|
|
|
1437
1438
|
|
|
1438
|
-
class
|
|
1439
|
+
class VirtualHostAccessLogResource(CoreApiModel):
|
|
1439
1440
|
remote_address: str
|
|
1440
1441
|
raw_message: constr(min_length=1, max_length=65535)
|
|
1441
1442
|
method: Optional[LogMethodEnum] = None
|
|
@@ -1445,7 +1446,7 @@ class WebServerLogAccessResource(CoreApiModel):
|
|
|
1445
1446
|
bytes_sent: conint(ge=0)
|
|
1446
1447
|
|
|
1447
1448
|
|
|
1448
|
-
class
|
|
1449
|
+
class VirtualHostErrorLogResource(CoreApiModel):
|
|
1449
1450
|
remote_address: str
|
|
1450
1451
|
raw_message: constr(min_length=1, max_length=65535)
|
|
1451
1452
|
method: Optional[LogMethodEnum] = None
|
|
@@ -1797,7 +1798,7 @@ class DaemonResource(CoreApiModel):
|
|
|
1797
1798
|
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
1798
1799
|
unix_user_id: int
|
|
1799
1800
|
command: constr(regex=r"^[ -~]+$", min_length=1, max_length=65535)
|
|
1800
|
-
nodes_ids: List[int] = Field(...,
|
|
1801
|
+
nodes_ids: List[int] = Field(..., unique_items=True)
|
|
1801
1802
|
memory_limit: Optional[conint(ge=256)]
|
|
1802
1803
|
cpu_limit: Optional[int]
|
|
1803
1804
|
includes: DaemonIncludes
|
|
@@ -2013,7 +2014,9 @@ class NodeCreateRequest(CoreApiModel):
|
|
|
2013
2014
|
...,
|
|
2014
2015
|
unique_items=True,
|
|
2015
2016
|
)
|
|
2016
|
-
comment: Optional[
|
|
2017
|
+
comment: Optional[
|
|
2018
|
+
constr(regex=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=255)
|
|
2019
|
+
] = None
|
|
2017
2020
|
load_balancer_health_checks_groups_pairs: Dict[NodeGroupEnum, List[NodeGroupEnum]]
|
|
2018
2021
|
|
|
2019
2022
|
|
|
@@ -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
|
|
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}/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
|