python3-core-api-client 2.8.1__tar.gz → 2.9__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.8.1 → python3_core_api_client-2.9}/PKG-INFO +2 -2
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/README.md +1 -1
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/pyproject.toml +1 -1
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/models.py +17 -21
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +2 -2
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/python3_core_api_client.egg-info/PKG-INFO +2 -2
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/setup.cfg +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/_encoders.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/_helpers.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/connector.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/http.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/__init__.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/certificates.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/clusters.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/cmses.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/crons.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/customers.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/daemons.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/database_users.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/databases.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/login.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/logs.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/malwares.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/nodes.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/regions.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/unix_users.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/python3_core_api_client.egg-info/SOURCES.txt +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/src/python3_core_api_client.egg-info/requires.txt +0 -0
- {python3_core_api_client-2.8.1 → python3_core_api_client-2.9}/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.9
|
|
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.259** version of the API.
|
|
17
17
|
|
|
18
18
|
## Support
|
|
19
19
|
|
|
@@ -102,6 +102,7 @@ class AllowOverrideOptionDirectiveEnum(StrEnum):
|
|
|
102
102
|
|
|
103
103
|
class BasicAuthenticationRealmCreateRequest(CoreApiModel):
|
|
104
104
|
directory_path: Optional[str]
|
|
105
|
+
uri_path: Optional[str]
|
|
105
106
|
virtual_host_id: int
|
|
106
107
|
name: constr(regex=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=64)
|
|
107
108
|
htpasswd_file_id: int
|
|
@@ -215,7 +216,7 @@ class CMSPlugin(CoreApiModel):
|
|
|
215
216
|
|
|
216
217
|
class CMSSoftwareNameEnum(StrEnum):
|
|
217
218
|
WORDPRESS = "WordPress"
|
|
218
|
-
NEXTCLOUD = "
|
|
219
|
+
NEXTCLOUD = "Nextcloud"
|
|
219
220
|
|
|
220
221
|
|
|
221
222
|
class CMSThemeInstallFromRepositoryRequest(CoreApiModel):
|
|
@@ -753,8 +754,8 @@ class ObjectModelNameEnum(StrEnum):
|
|
|
753
754
|
SERVICE_ACCOUNT_TO_CUSTOMER = "ServiceAccountToCustomer"
|
|
754
755
|
CLUSTER = "Cluster"
|
|
755
756
|
CUSTOMER = "Customer"
|
|
756
|
-
CMS = "
|
|
757
|
-
FPM_POOL = "
|
|
757
|
+
CMS = "Cms"
|
|
758
|
+
FPM_POOL = "FpmPool"
|
|
758
759
|
VIRTUAL_HOST = "VirtualHost"
|
|
759
760
|
PASSENGER_APP = "PassengerApp"
|
|
760
761
|
DATABASE = "Database"
|
|
@@ -762,32 +763,32 @@ class ObjectModelNameEnum(StrEnum):
|
|
|
762
763
|
BASIC_AUTHENTICATION_REALM = "BasicAuthenticationRealm"
|
|
763
764
|
CRON = "Cron"
|
|
764
765
|
DAEMON = "Daemon"
|
|
765
|
-
|
|
766
|
+
MARIADB_ENCRYPTION_KEYS = "MariadbEncryptionKey"
|
|
766
767
|
FIREWALL_RULE = "FirewallRule"
|
|
767
768
|
HOSTS_ENTRY = "HostsEntry"
|
|
768
769
|
NODE_ADD_ON = "NodeAddOn"
|
|
769
|
-
IP_ADDRESS = "
|
|
770
|
-
SECURITY_TXT_POLICY = "
|
|
770
|
+
IP_ADDRESS = "IpAddress"
|
|
771
|
+
SECURITY_TXT_POLICY = "SecurityTxtPolicy"
|
|
771
772
|
DATABASE_USER = "DatabaseUser"
|
|
772
773
|
DATABASE_USER_GRANT = "DatabaseUserGrant"
|
|
773
774
|
HTPASSWD_FILE = "HtpasswdFile"
|
|
774
775
|
HTPASSWD_USER = "HtpasswdUser"
|
|
775
776
|
MAIL_ACCOUNT = "MailAccount"
|
|
776
|
-
|
|
777
|
+
MAIL_ALIASES = "MailAlias"
|
|
777
778
|
MAIL_DOMAIN = "MailDomain"
|
|
778
779
|
NODE = "Node"
|
|
779
780
|
REDIS_INSTANCE = "RedisInstance"
|
|
780
781
|
DOMAIN_ROUTER = "DomainRouter"
|
|
781
782
|
MAIL_HOSTNAME = "MailHostname"
|
|
782
783
|
CERTIFICATE = "Certificate"
|
|
783
|
-
ROOT_SSH_KEY = "
|
|
784
|
-
SSH_KEY = "
|
|
784
|
+
ROOT_SSH_KEY = "RootSshKey"
|
|
785
|
+
SSH_KEY = "SshKey"
|
|
785
786
|
BORG_REPOSITORY_SSH_KEY = "BorgRepositorySshKey"
|
|
786
|
-
UNIX_USER = "
|
|
787
|
-
UNIX_USER_RABBITMQ_CREDENTIALS = "
|
|
788
|
-
HAPROXY_LISTEN = "
|
|
789
|
-
HAPROXY_LISTEN_TO_NODE = "
|
|
790
|
-
URL_REDIRECT = "
|
|
787
|
+
UNIX_USER = "UnixUser"
|
|
788
|
+
UNIX_USER_RABBITMQ_CREDENTIALS = "UnixUserRabbitmqCredentials"
|
|
789
|
+
HAPROXY_LISTEN = "HaproxyListen"
|
|
790
|
+
HAPROXY_LISTEN_TO_NODE = "HaproxyListenToNode"
|
|
791
|
+
URL_REDIRECT = "UrlRedirect"
|
|
791
792
|
REGION_TO_CUSTOMER = "RegionToCustomer"
|
|
792
793
|
SERVICE_ACCOUNT = "ServiceAccount"
|
|
793
794
|
SERVICE_ACCOUNT_SERVER = "ServiceAccountServer"
|
|
@@ -1150,7 +1151,6 @@ class VirtualHostUpdateRequest(CoreApiModel):
|
|
|
1150
1151
|
List[AllowOverrideOptionDirectiveEnum]
|
|
1151
1152
|
] = None
|
|
1152
1153
|
server_software_name: Optional[VirtualHostServerSoftwareNameEnum] = None
|
|
1153
|
-
public_root: Optional[str] = None
|
|
1154
1154
|
|
|
1155
1155
|
|
|
1156
1156
|
class BorgArchiveContent(CoreApiModel):
|
|
@@ -1692,13 +1692,12 @@ class VirtualHostCreateRequest(CoreApiModel):
|
|
|
1692
1692
|
List[AllowOverrideOptionDirectiveEnum]
|
|
1693
1693
|
] = None
|
|
1694
1694
|
domain: str
|
|
1695
|
-
public_root: str
|
|
1696
1695
|
unix_user_id: int
|
|
1697
1696
|
server_aliases: List[str] = Field(
|
|
1698
1697
|
[],
|
|
1699
1698
|
unique_items=True,
|
|
1700
1699
|
)
|
|
1701
|
-
document_root: str
|
|
1700
|
+
document_root: str | None = None
|
|
1702
1701
|
fpm_pool_id: Optional[int] = None
|
|
1703
1702
|
passenger_app_id: Optional[int] = None
|
|
1704
1703
|
custom_config: Optional[
|
|
@@ -2101,10 +2100,8 @@ class VirtualHostResource(CoreApiModel):
|
|
|
2101
2100
|
server_software_name: VirtualHostServerSoftwareNameEnum
|
|
2102
2101
|
allow_override_directives: Optional[List[AllowOverrideDirectiveEnum]]
|
|
2103
2102
|
allow_override_option_directives: Optional[List[AllowOverrideOptionDirectiveEnum]]
|
|
2104
|
-
domain_root: str
|
|
2105
2103
|
cluster_id: int
|
|
2106
2104
|
domain: str
|
|
2107
|
-
public_root: str
|
|
2108
2105
|
server_aliases: List[str] = Field(
|
|
2109
2106
|
...,
|
|
2110
2107
|
unique_items=True,
|
|
@@ -2128,6 +2125,7 @@ class BasicAuthenticationRealmResource(CoreApiModel):
|
|
|
2128
2125
|
updated_at: datetime
|
|
2129
2126
|
cluster_id: int
|
|
2130
2127
|
directory_path: Optional[str]
|
|
2128
|
+
uri_path: Optional[str]
|
|
2131
2129
|
virtual_host_id: int
|
|
2132
2130
|
name: constr(regex=r"^[a-zA-Z0-9-_ ]+$", min_length=1, max_length=64)
|
|
2133
2131
|
htpasswd_file_id: int
|
|
@@ -3310,10 +3308,8 @@ class UrlRedirectsSearchRequest(CoreApiModel):
|
|
|
3310
3308
|
class VirtualHostsSearchRequest(CoreApiModel):
|
|
3311
3309
|
unix_user_id: Optional[int] = None
|
|
3312
3310
|
server_software_name: Optional[VirtualHostServerSoftwareNameEnum] = None
|
|
3313
|
-
domain_root: Optional[str] = None
|
|
3314
3311
|
cluster_id: Optional[int] = None
|
|
3315
3312
|
domain: Optional[str] = None
|
|
3316
|
-
public_root: Optional[str] = None
|
|
3317
3313
|
server_aliases: Optional[str] = None
|
|
3318
3314
|
document_root: Optional[str] = None
|
|
3319
3315
|
fpm_pool_id: Optional[int] = None
|
|
@@ -103,7 +103,7 @@ class VirtualHosts(Resource):
|
|
|
103
103
|
|
|
104
104
|
return DtoResponse.from_response(local_response, models.VirtualHostDocumentRoot)
|
|
105
105
|
|
|
106
|
-
def
|
|
106
|
+
def sync_document_roots_of_virtual_hosts(
|
|
107
107
|
self,
|
|
108
108
|
*,
|
|
109
109
|
left_virtual_host_id: int,
|
|
@@ -113,7 +113,7 @@ class VirtualHosts(Resource):
|
|
|
113
113
|
) -> DtoResponse[models.TaskCollectionResource]:
|
|
114
114
|
local_response = self.api_connector.send_or_fail(
|
|
115
115
|
"POST",
|
|
116
|
-
f"/api/v1/virtual-hosts/{left_virtual_host_id}/
|
|
116
|
+
f"/api/v1/virtual-hosts/{left_virtual_host_id}/document-root/sync",
|
|
117
117
|
data=None,
|
|
118
118
|
query_parameters={
|
|
119
119
|
"callback_url": callback_url,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-core-api-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.9
|
|
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.259** 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.8.1 → python3_core_api_client-2.9}/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
|