python3-core-api-client 1.0.3__tar.gz → 1.0.5__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-1.0.3 → python3_core_api_client-1.0.5}/PKG-INFO +2 -2
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/README.md +1 -1
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/pyproject.toml +1 -1
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/models.py +110 -112
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/clusters.py +0 -11
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/python3_core_api_client.egg-info/PKG-INFO +2 -2
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/setup.cfg +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/_encoders.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/connector.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/http.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/__init__.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/certificates.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/cmses.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/crons.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/customers.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/daemons.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/database_users.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/databases.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/login.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/logs.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/malwares.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/nodes.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/sites.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/tombstones.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/unix_users.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/python3_core_api_client.egg-info/SOURCES.txt +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/src/python3_core_api_client.egg-info/requires.txt +0 -0
- {python3_core_api_client-1.0.3 → python3_core_api_client-1.0.5}/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: 1.0.
|
3
|
+
Version: 1.0.5
|
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.246** version of the API.
|
17
17
|
|
18
18
|
## Support
|
19
19
|
|
@@ -1,5 +1,3 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
1
|
from datetime import datetime
|
4
2
|
from enum import StrEnum, IntEnum
|
5
3
|
from ipaddress import IPv4Address, IPv6Address
|
@@ -1409,7 +1407,7 @@ class MeilisearchEnvironmentEnum(StrEnum):
|
|
1409
1407
|
|
1410
1408
|
|
1411
1409
|
class NestedPathsDict(RootModelCollectionMixin, CoreApiModel): # type: ignore[misc]
|
1412
|
-
__root__: Optional[Dict[str, Optional[NestedPathsDict]]] = None
|
1410
|
+
__root__: Optional[Dict[str, Optional["NestedPathsDict"]]] = None
|
1413
1411
|
|
1414
1412
|
|
1415
1413
|
class NodeAddOnCreateRequest(CoreApiModel):
|
@@ -1598,7 +1596,7 @@ class PHPSettings(CoreApiModel):
|
|
1598
1596
|
post_max_size: conint(ge=32, le=256) = Field(32, title="Post Max Size")
|
1599
1597
|
upload_max_filesize: conint(ge=32, le=256) = Field(32, title="Upload Max Filesize")
|
1600
1598
|
tideways_api_key: Optional[
|
1601
|
-
constr(regex=r"^[a-zA-Z0-
|
1599
|
+
constr(regex=r"^[a-zA-Z0-9_]+$", min_length=16, max_length=32)
|
1602
1600
|
] = Field(None, title="Tideways Api Key")
|
1603
1601
|
tideways_sample_rate: Optional[conint(ge=1, le=100)] = Field(
|
1604
1602
|
None, title="Tideways Sample Rate"
|
@@ -1884,114 +1882,6 @@ class TokenTypeEnum(StrEnum):
|
|
1884
1882
|
BEARER = "bearer"
|
1885
1883
|
|
1886
1884
|
|
1887
|
-
class TombstoneDataCertificate(CoreApiModel):
|
1888
|
-
data_type: Literal["certificate"] = Field(..., title="Data Type")
|
1889
|
-
|
1890
|
-
|
1891
|
-
class TombstoneDataCron(CoreApiModel):
|
1892
|
-
data_type: Literal["cron"] = Field(..., title="Data Type")
|
1893
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
1894
|
-
..., title="Name"
|
1895
|
-
)
|
1896
|
-
unix_user_id: int = Field(..., title="Unix User Id")
|
1897
|
-
|
1898
|
-
|
1899
|
-
class TombstoneDataDaemon(CoreApiModel):
|
1900
|
-
data_type: Literal["daemon"] = Field(..., title="Data Type")
|
1901
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
1902
|
-
..., title="Name"
|
1903
|
-
)
|
1904
|
-
|
1905
|
-
|
1906
|
-
class TombstoneDataFPMPool(CoreApiModel):
|
1907
|
-
data_type: Literal["fpm_pool"] = Field(..., title="Data Type")
|
1908
|
-
version: str = Field(..., title="Version")
|
1909
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
1910
|
-
..., title="Name"
|
1911
|
-
)
|
1912
|
-
|
1913
|
-
|
1914
|
-
class TombstoneDataMailAccount(CoreApiModel):
|
1915
|
-
data_type: Literal["mail_account"] = Field(..., title="Data Type")
|
1916
|
-
local_part: constr(regex=r"^[a-z0-9-.]+$", min_length=1, max_length=64) = Field(
|
1917
|
-
...,
|
1918
|
-
description="May not be in use by mail alias in the same mail domain.",
|
1919
|
-
title="Local Part",
|
1920
|
-
)
|
1921
|
-
mail_domain_id: int = Field(..., title="Mail Domain Id")
|
1922
|
-
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
1923
|
-
|
1924
|
-
|
1925
|
-
class TombstoneDataPassengerApp(CoreApiModel):
|
1926
|
-
data_type: Literal["passenger_app"] = Field(..., title="Data Type")
|
1927
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
1928
|
-
..., title="Name"
|
1929
|
-
)
|
1930
|
-
|
1931
|
-
|
1932
|
-
class TombstoneDataRedisInstance(CoreApiModel):
|
1933
|
-
data_type: Literal["redis_instance"] = Field(..., title="Data Type")
|
1934
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
1935
|
-
..., title="Name"
|
1936
|
-
)
|
1937
|
-
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
1938
|
-
|
1939
|
-
|
1940
|
-
class TombstoneDataUNIXUser(CoreApiModel):
|
1941
|
-
data_type: Literal["unix_user"] = Field(..., title="Data Type")
|
1942
|
-
home_directory: str = Field(..., title="Home Directory")
|
1943
|
-
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
1944
|
-
|
1945
|
-
|
1946
|
-
class TombstoneDataUNIXUserRabbitMQCredentials(CoreApiModel):
|
1947
|
-
data_type: Literal["unix_user_rabbitmq_credentials"] = Field(..., title="Data Type")
|
1948
|
-
rabbitmq_virtual_host_name: constr(
|
1949
|
-
regex=r"^[a-z0-9-.]+$", min_length=1, max_length=32
|
1950
|
-
) = Field(..., title="Rabbitmq Virtual Host Name")
|
1951
|
-
|
1952
|
-
|
1953
|
-
class TombstoneDataVirtualHost(CoreApiModel):
|
1954
|
-
data_type: Literal["virtual_host"] = Field(..., title="Data Type")
|
1955
|
-
domain_root: str = Field(..., title="Domain Root")
|
1956
|
-
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
1957
|
-
|
1958
|
-
|
1959
|
-
class TombstoneIncludes(CoreApiModel):
|
1960
|
-
pass
|
1961
|
-
|
1962
|
-
|
1963
|
-
class TombstoneDataDatabase(CoreApiModel):
|
1964
|
-
data_type: Literal["database"] = Field(..., title="Data Type")
|
1965
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=63) = Field(
|
1966
|
-
..., title="Name"
|
1967
|
-
)
|
1968
|
-
server_software_name: DatabaseServerSoftwareNameEnum
|
1969
|
-
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
1970
|
-
|
1971
|
-
|
1972
|
-
class TombstoneResource(CoreApiModel):
|
1973
|
-
id: int = Field(..., title="Id")
|
1974
|
-
created_at: datetime = Field(..., title="Created At")
|
1975
|
-
updated_at: datetime = Field(..., title="Updated At")
|
1976
|
-
data: Union[
|
1977
|
-
TombstoneDataPassengerApp,
|
1978
|
-
TombstoneDataCertificate,
|
1979
|
-
TombstoneDataFPMPool,
|
1980
|
-
TombstoneDataUNIXUserRabbitMQCredentials,
|
1981
|
-
TombstoneDataUNIXUser,
|
1982
|
-
TombstoneDataCron,
|
1983
|
-
TombstoneDataDaemon,
|
1984
|
-
TombstoneDataDatabase,
|
1985
|
-
TombstoneDataMailAccount,
|
1986
|
-
TombstoneDataRedisInstance,
|
1987
|
-
TombstoneDataVirtualHost,
|
1988
|
-
] = Field(..., discriminator="data_type", title="Data")
|
1989
|
-
object_id: int = Field(..., title="Object Id")
|
1990
|
-
object_model_name: ObjectModelNameEnum
|
1991
|
-
cluster_id: int = Field(..., title="Cluster Id")
|
1992
|
-
includes: TombstoneIncludes
|
1993
|
-
|
1994
|
-
|
1995
1885
|
class UNIXUserComparison(CoreApiModel):
|
1996
1886
|
not_identical_paths: NestedPathsDict
|
1997
1887
|
only_left_files_paths: NestedPathsDict
|
@@ -5374,4 +5264,112 @@ class MailAliasResource(CoreApiModel):
|
|
5374
5264
|
includes: MailAliasIncludes
|
5375
5265
|
|
5376
5266
|
|
5267
|
+
class TombstoneDataCertificate(CoreApiModel):
|
5268
|
+
data_type: Literal["certificate"] = Field(..., title="Data Type")
|
5269
|
+
|
5270
|
+
|
5271
|
+
class TombstoneDataCron(CoreApiModel):
|
5272
|
+
data_type: Literal["cron"] = Field(..., title="Data Type")
|
5273
|
+
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
5274
|
+
..., title="Name"
|
5275
|
+
)
|
5276
|
+
unix_user_id: int = Field(..., title="Unix User Id")
|
5277
|
+
|
5278
|
+
|
5279
|
+
class TombstoneDataDaemon(CoreApiModel):
|
5280
|
+
data_type: Literal["daemon"] = Field(..., title="Data Type")
|
5281
|
+
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
5282
|
+
..., title="Name"
|
5283
|
+
)
|
5284
|
+
|
5285
|
+
|
5286
|
+
class TombstoneDataFPMPool(CoreApiModel):
|
5287
|
+
data_type: Literal["fpm_pool"] = Field(..., title="Data Type")
|
5288
|
+
version: str = Field(..., title="Version")
|
5289
|
+
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
5290
|
+
..., title="Name"
|
5291
|
+
)
|
5292
|
+
|
5293
|
+
|
5294
|
+
class TombstoneDataMailAccount(CoreApiModel):
|
5295
|
+
data_type: Literal["mail_account"] = Field(..., title="Data Type")
|
5296
|
+
local_part: constr(regex=r"^[a-z0-9-.]+$", min_length=1, max_length=64) = Field(
|
5297
|
+
...,
|
5298
|
+
description="May not be in use by mail alias in the same mail domain.",
|
5299
|
+
title="Local Part",
|
5300
|
+
)
|
5301
|
+
mail_domain_id: int = Field(..., title="Mail Domain Id")
|
5302
|
+
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
5303
|
+
|
5304
|
+
|
5305
|
+
class TombstoneDataPassengerApp(CoreApiModel):
|
5306
|
+
data_type: Literal["passenger_app"] = Field(..., title="Data Type")
|
5307
|
+
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
5308
|
+
..., title="Name"
|
5309
|
+
)
|
5310
|
+
|
5311
|
+
|
5312
|
+
class TombstoneDataRedisInstance(CoreApiModel):
|
5313
|
+
data_type: Literal["redis_instance"] = Field(..., title="Data Type")
|
5314
|
+
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64) = Field(
|
5315
|
+
..., title="Name"
|
5316
|
+
)
|
5317
|
+
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
5318
|
+
|
5319
|
+
|
5320
|
+
class TombstoneDataUNIXUser(CoreApiModel):
|
5321
|
+
data_type: Literal["unix_user"] = Field(..., title="Data Type")
|
5322
|
+
home_directory: str = Field(..., title="Home Directory")
|
5323
|
+
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
5324
|
+
|
5325
|
+
|
5326
|
+
class TombstoneDataUNIXUserRabbitMQCredentials(CoreApiModel):
|
5327
|
+
data_type: Literal["unix_user_rabbitmq_credentials"] = Field(..., title="Data Type")
|
5328
|
+
rabbitmq_virtual_host_name: constr(
|
5329
|
+
regex=r"^[a-z0-9-.]+$", min_length=1, max_length=32
|
5330
|
+
) = Field(..., title="Rabbitmq Virtual Host Name")
|
5331
|
+
|
5332
|
+
|
5333
|
+
class TombstoneDataVirtualHost(CoreApiModel):
|
5334
|
+
data_type: Literal["virtual_host"] = Field(..., title="Data Type")
|
5335
|
+
domain_root: str = Field(..., title="Domain Root")
|
5336
|
+
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
5337
|
+
|
5338
|
+
|
5339
|
+
class TombstoneIncludes(CoreApiModel):
|
5340
|
+
cluster: ClusterResource
|
5341
|
+
|
5342
|
+
|
5343
|
+
class TombstoneDataDatabase(CoreApiModel):
|
5344
|
+
data_type: Literal["database"] = Field(..., title="Data Type")
|
5345
|
+
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=63) = Field(
|
5346
|
+
..., title="Name"
|
5347
|
+
)
|
5348
|
+
server_software_name: DatabaseServerSoftwareNameEnum
|
5349
|
+
delete_on_cluster: Optional[bool] = Field(False, title="Delete On Cluster")
|
5350
|
+
|
5351
|
+
|
5352
|
+
class TombstoneResource(CoreApiModel):
|
5353
|
+
id: int = Field(..., title="Id")
|
5354
|
+
created_at: datetime = Field(..., title="Created At")
|
5355
|
+
updated_at: datetime = Field(..., title="Updated At")
|
5356
|
+
data: Union[
|
5357
|
+
TombstoneDataPassengerApp,
|
5358
|
+
TombstoneDataCertificate,
|
5359
|
+
TombstoneDataFPMPool,
|
5360
|
+
TombstoneDataUNIXUserRabbitMQCredentials,
|
5361
|
+
TombstoneDataUNIXUser,
|
5362
|
+
TombstoneDataCron,
|
5363
|
+
TombstoneDataDaemon,
|
5364
|
+
TombstoneDataDatabase,
|
5365
|
+
TombstoneDataMailAccount,
|
5366
|
+
TombstoneDataRedisInstance,
|
5367
|
+
TombstoneDataVirtualHost,
|
5368
|
+
] = Field(..., discriminator="data_type", title="Data")
|
5369
|
+
object_id: int = Field(..., title="Object Id")
|
5370
|
+
object_model_name: ObjectModelNameEnum
|
5371
|
+
cluster_id: int = Field(..., title="Cluster Id")
|
5372
|
+
includes: TombstoneIncludes
|
5373
|
+
|
5374
|
+
|
5377
5375
|
NestedPathsDict.update_forward_refs()
|
@@ -83,17 +83,6 @@ class Clusters(Resource):
|
|
83
83
|
).json
|
84
84
|
)
|
85
85
|
|
86
|
-
def delete_cluster(
|
87
|
-
self,
|
88
|
-
*,
|
89
|
-
id_: int,
|
90
|
-
) -> models.DetailMessage:
|
91
|
-
return models.DetailMessage.parse_obj(
|
92
|
-
self.api_connector.send_or_fail(
|
93
|
-
"DELETE", f"/api/v1/clusters/{id_}", data=None, query_parameters={}
|
94
|
-
).json
|
95
|
-
)
|
96
|
-
|
97
86
|
def get_borg_ssh_key(
|
98
87
|
self,
|
99
88
|
*,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: python3-core-api-client
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.5
|
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.246** 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
|
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
|