python3-core-api-client 2.7__tar.gz → 2.8.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.7 → python3_core_api_client-2.8.1}/PKG-INFO +1 -1
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/pyproject.toml +1 -1
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/connector.py +0 -4
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/models.py +6 -318
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/__init__.py +0 -2
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +2 -1
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/python3_core_api_client.egg-info/PKG-INFO +1 -1
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/python3_core_api_client.egg-info/SOURCES.txt +0 -1
- python3_core_api_client-2.7/src/cyberfusion/CoreApiClient/resources/tombstones.py +0 -29
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/README.md +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/setup.cfg +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/_encoders.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/_helpers.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/http.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/certificates.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/clusters.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/cmses.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/crons.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/customers.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/daemons.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/database_users.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/databases.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/login.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/logs.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/malwares.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/nodes.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/regions.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/unix_users.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/python3_core_api_client.egg-info/requires.txt +0 -0
- {python3_core_api_client-2.7 → python3_core_api_client-2.8.1}/src/python3_core_api_client.egg-info/top_level.txt +0 -0
|
@@ -219,10 +219,6 @@ class CoreApiConnector(CoreApiClient):
|
|
|
219
219
|
) -> resources.certificate_managers.CertificateManagers:
|
|
220
220
|
return resources.certificate_managers.CertificateManagers(self)
|
|
221
221
|
|
|
222
|
-
@cached_property
|
|
223
|
-
def tombstones(self) -> resources.tombstones.Tombstones:
|
|
224
|
-
return resources.tombstones.Tombstones(self)
|
|
225
|
-
|
|
226
222
|
@cached_property
|
|
227
223
|
def clusters(self) -> resources.clusters.Clusters:
|
|
228
224
|
return resources.clusters.Clusters(self)
|
|
@@ -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,
|
|
4
|
+
from typing import Dict, List, Optional, Union, Any
|
|
5
5
|
|
|
6
6
|
from pydantic import UUID4, AnyUrl, EmailStr, Field, confloat, conint, constr, BaseModel
|
|
7
7
|
from typing import Iterator
|
|
@@ -449,8 +449,8 @@ class FPMPoolCreateRequest(CoreApiModel):
|
|
|
449
449
|
max_children: int = 25
|
|
450
450
|
max_requests: int = 20
|
|
451
451
|
process_idle_timeout: int = 10
|
|
452
|
-
cpu_limit: Optional[int]
|
|
453
|
-
log_slow_requests_threshold: Optional[int]
|
|
452
|
+
cpu_limit: Optional[int] = None
|
|
453
|
+
log_slow_requests_threshold: Optional[int] = None
|
|
454
454
|
is_namespaced: bool = True
|
|
455
455
|
memory_limit: Optional[conint(ge=256)] = None
|
|
456
456
|
|
|
@@ -1103,7 +1103,7 @@ class URLRedirectCreateRequest(CoreApiModel):
|
|
|
1103
1103
|
unique_items=True,
|
|
1104
1104
|
)
|
|
1105
1105
|
destination_url: AnyUrl
|
|
1106
|
-
status_code: StatusCodeEnum = StatusCodeEnum.
|
|
1106
|
+
status_code: StatusCodeEnum = StatusCodeEnum.INTEGER_301
|
|
1107
1107
|
keep_query_parameters: bool = True
|
|
1108
1108
|
keep_path: bool = True
|
|
1109
1109
|
description: Optional[
|
|
@@ -1330,7 +1330,7 @@ class DatabaseUserCreateRequest(CoreApiModel):
|
|
|
1330
1330
|
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=63)
|
|
1331
1331
|
server_software_name: DatabaseServerSoftwareNameEnum
|
|
1332
1332
|
cluster_id: int
|
|
1333
|
-
phpmyadmin_firewall_groups_ids: Optional[List[int]] =
|
|
1333
|
+
phpmyadmin_firewall_groups_ids: Optional[List[int]] = None
|
|
1334
1334
|
|
|
1335
1335
|
|
|
1336
1336
|
class DatabaseUserGrantCreateRequest(CoreApiModel):
|
|
@@ -1348,9 +1348,6 @@ class DatabaseUserResource(CoreApiModel):
|
|
|
1348
1348
|
id: int
|
|
1349
1349
|
created_at: datetime
|
|
1350
1350
|
updated_at: datetime
|
|
1351
|
-
hashed_password: Optional[
|
|
1352
|
-
constr(regex=r"^[a-zA-Z0-9.\/$=*]+$", min_length=1, max_length=255)
|
|
1353
|
-
]
|
|
1354
1351
|
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=63)
|
|
1355
1352
|
server_software_name: DatabaseServerSoftwareNameEnum
|
|
1356
1353
|
host: Optional[str]
|
|
@@ -1527,7 +1524,7 @@ class PassengerAppCreateNodeJSRequest(CoreApiModel):
|
|
|
1527
1524
|
max_requests: int = 2000
|
|
1528
1525
|
pool_idle_time: int = 10
|
|
1529
1526
|
is_namespaced: bool = True
|
|
1530
|
-
cpu_limit: Optional[int]
|
|
1527
|
+
cpu_limit: Optional[int] = None
|
|
1531
1528
|
nodejs_version: constr(regex=r"^[0-9]{1,2}\.[0-9]{1,2}$")
|
|
1532
1529
|
startup_file: str
|
|
1533
1530
|
|
|
@@ -1646,9 +1643,6 @@ class UNIXUserResource(CoreApiModel):
|
|
|
1646
1643
|
id: int
|
|
1647
1644
|
created_at: datetime
|
|
1648
1645
|
updated_at: datetime
|
|
1649
|
-
hashed_password: Optional[
|
|
1650
|
-
constr(regex=r"^[a-zA-Z0-9.\/$=*]+$", min_length=1, max_length=255)
|
|
1651
|
-
]
|
|
1652
1646
|
username: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=32)
|
|
1653
1647
|
unix_id: int
|
|
1654
1648
|
home_directory: str
|
|
@@ -1723,10 +1717,6 @@ class BorgRepositoryResource(CoreApiModel):
|
|
|
1723
1717
|
created_at: datetime
|
|
1724
1718
|
updated_at: datetime
|
|
1725
1719
|
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
1726
|
-
passphrase: constr(regex=r"^[ -~]+$", min_length=24, max_length=255)
|
|
1727
|
-
remote_host: str
|
|
1728
|
-
remote_path: str
|
|
1729
|
-
remote_username: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=32)
|
|
1730
1720
|
cluster_id: int
|
|
1731
1721
|
keep_hourly: Optional[int]
|
|
1732
1722
|
keep_daily: Optional[int]
|
|
@@ -1864,7 +1854,6 @@ class FTPUserResource(CoreApiModel):
|
|
|
1864
1854
|
id: int
|
|
1865
1855
|
created_at: datetime
|
|
1866
1856
|
updated_at: datetime
|
|
1867
|
-
hashed_password: constr(regex=r"^[a-zA-Z0-9.\/$=*]+$", min_length=1, max_length=255)
|
|
1868
1857
|
cluster_id: int
|
|
1869
1858
|
username: constr(regex=r"^[a-z0-9-_.@]+$", min_length=1, max_length=32)
|
|
1870
1859
|
unix_user_id: int
|
|
@@ -1947,7 +1936,6 @@ class HtpasswdUserResource(CoreApiModel):
|
|
|
1947
1936
|
id: int
|
|
1948
1937
|
created_at: datetime
|
|
1949
1938
|
updated_at: datetime
|
|
1950
|
-
hashed_password: constr(regex=r"^[a-zA-Z0-9.\/$=*]+$", min_length=1, max_length=255)
|
|
1951
1939
|
cluster_id: int
|
|
1952
1940
|
username: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=255)
|
|
1953
1941
|
htpasswd_file_id: int
|
|
@@ -2235,7 +2223,6 @@ class MailAccountResource(CoreApiModel):
|
|
|
2235
2223
|
id: int
|
|
2236
2224
|
created_at: datetime
|
|
2237
2225
|
updated_at: datetime
|
|
2238
|
-
hashed_password: constr(regex=r"^[a-zA-Z0-9.\/$=*]+$", min_length=1, max_length=255)
|
|
2239
2226
|
local_part: constr(regex=r"^[a-z0-9-.]+$", min_length=1, max_length=64)
|
|
2240
2227
|
mail_domain_id: int
|
|
2241
2228
|
cluster_id: int
|
|
@@ -2266,291 +2253,6 @@ class NodeDomainRouterDependency(CoreApiModel):
|
|
|
2266
2253
|
domain_router: DomainRouterResource
|
|
2267
2254
|
|
|
2268
2255
|
|
|
2269
|
-
class TombstoneDataCertificateIncludes(CoreApiModel):
|
|
2270
|
-
pass
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
class TombstoneDataDaemonIncludes(CoreApiModel):
|
|
2274
|
-
pass
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
class TombstoneDataDatabaseIncludes(CoreApiModel):
|
|
2278
|
-
pass
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
class TombstoneDataFPMPoolIncludes(CoreApiModel):
|
|
2282
|
-
pass
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
class TombstoneDataPassengerAppIncludes(CoreApiModel):
|
|
2286
|
-
pass
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
class TombstoneDataRedisInstanceIncludes(CoreApiModel):
|
|
2290
|
-
pass
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
class TombstoneDataUNIXUserIncludes(CoreApiModel):
|
|
2294
|
-
pass
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
class TombstoneDataUNIXUserRabbitMQCredentialsIncludes(CoreApiModel):
|
|
2298
|
-
pass
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
class TombstoneDataVirtualHostIncludes(CoreApiModel):
|
|
2302
|
-
pass
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
class TombstoneDataDatabaseUserIncludes(CoreApiModel):
|
|
2306
|
-
pass
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
class TombstoneDataDomainRouterIncludes(CoreApiModel):
|
|
2310
|
-
pass
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
class TombstoneDataRootSSHKeyIncludes(CoreApiModel):
|
|
2314
|
-
pass
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
class TombstoneDataSSHKeyIncludes(CoreApiModel):
|
|
2318
|
-
pass
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
class TombstoneDataMailHostnameIncludes(CoreApiModel):
|
|
2322
|
-
pass
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
class TombstoneDataCustomConfigIncludes(CoreApiModel):
|
|
2326
|
-
pass
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
class TombstoneDataDatabaseUser(CoreApiModel):
|
|
2330
|
-
id: int
|
|
2331
|
-
data_type: Literal["database_user"]
|
|
2332
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=63)
|
|
2333
|
-
host: Optional[str]
|
|
2334
|
-
server_software_name: DatabaseServerSoftwareNameEnum
|
|
2335
|
-
includes: TombstoneDataDatabaseUserIncludes
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
class TombstoneDataDatabase(CoreApiModel):
|
|
2339
|
-
id: int
|
|
2340
|
-
data_type: Literal["database"]
|
|
2341
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=63)
|
|
2342
|
-
server_software_name: DatabaseServerSoftwareNameEnum
|
|
2343
|
-
delete_on_cluster: Optional[bool] = False
|
|
2344
|
-
includes: TombstoneDataDatabaseIncludes
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
class TombstoneDataDatabaseUserGrantIncludes(CoreApiModel):
|
|
2348
|
-
database: Union[DatabaseResource, TombstoneDataDatabase]
|
|
2349
|
-
database_user: Union[DatabaseUserResource, TombstoneDataDatabaseUser]
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
class TombstoneDataDatabaseUserGrant(CoreApiModel):
|
|
2353
|
-
id: int
|
|
2354
|
-
data_type: Literal["database_user_grant"]
|
|
2355
|
-
table_name: Optional[constr(regex=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=64)]
|
|
2356
|
-
privilege_name: MariaDBPrivilegeEnum
|
|
2357
|
-
database_id: int
|
|
2358
|
-
database_user_id: int
|
|
2359
|
-
includes: TombstoneDataDatabaseUserGrantIncludes
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
class TombstoneDataDomainRouter(CoreApiModel):
|
|
2363
|
-
id: int
|
|
2364
|
-
data_type: Literal["domain_router"]
|
|
2365
|
-
domain: str
|
|
2366
|
-
includes: TombstoneDataDomainRouterIncludes
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
class TombstoneDataRootSSHKey(CoreApiModel):
|
|
2370
|
-
id: int
|
|
2371
|
-
data_type: Literal["root_ssh_key"]
|
|
2372
|
-
name: constr(regex=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=64)
|
|
2373
|
-
is_private_key: bool
|
|
2374
|
-
includes: TombstoneDataRootSSHKeyIncludes
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
class TombstoneDataSSHKey(CoreApiModel):
|
|
2378
|
-
id: int
|
|
2379
|
-
data_type: Literal["ssh_key"]
|
|
2380
|
-
name: constr(regex=r"^[a-zA-Z0-9-_]+$", min_length=1, max_length=64)
|
|
2381
|
-
identity_file_path: Optional[str]
|
|
2382
|
-
includes: TombstoneDataSSHKeyIncludes
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
class TombstoneDataMailHostname(CoreApiModel):
|
|
2386
|
-
id: int
|
|
2387
|
-
data_type: Literal["mail_hostname"]
|
|
2388
|
-
domain: str
|
|
2389
|
-
includes: TombstoneDataMailHostnameIncludes
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
class TombstoneDataCertificate(CoreApiModel):
|
|
2393
|
-
id: int
|
|
2394
|
-
data_type: Literal["certificate"]
|
|
2395
|
-
includes: TombstoneDataCertificateIncludes
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
class TombstoneDataDaemon(CoreApiModel):
|
|
2399
|
-
id: int
|
|
2400
|
-
data_type: Literal["daemon"]
|
|
2401
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
2402
|
-
nodes_ids: List[int] = Field(..., min_items=1, unique_items=True)
|
|
2403
|
-
includes: TombstoneDataDaemonIncludes
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
class TombstoneDataFPMPool(CoreApiModel):
|
|
2407
|
-
id: int
|
|
2408
|
-
data_type: Literal["fpm_pool"]
|
|
2409
|
-
version: str
|
|
2410
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
2411
|
-
includes: TombstoneDataFPMPoolIncludes
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
class TombstoneDataPassengerApp(CoreApiModel):
|
|
2415
|
-
id: int
|
|
2416
|
-
data_type: Literal["passenger_app"]
|
|
2417
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
2418
|
-
app_root: str
|
|
2419
|
-
delete_on_cluster: Optional[bool] = False
|
|
2420
|
-
includes: TombstoneDataPassengerAppIncludes
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
class TombstoneDataRedisInstance(CoreApiModel):
|
|
2424
|
-
id: int
|
|
2425
|
-
data_type: Literal["redis_instance"]
|
|
2426
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
2427
|
-
delete_on_cluster: Optional[bool] = False
|
|
2428
|
-
includes: TombstoneDataRedisInstanceIncludes
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
class TombstoneDataUNIXUser(CoreApiModel):
|
|
2432
|
-
id: int
|
|
2433
|
-
data_type: Literal["unix_user"]
|
|
2434
|
-
home_directory: str
|
|
2435
|
-
mail_domains_directory: Optional[str]
|
|
2436
|
-
delete_on_cluster: Optional[bool] = False
|
|
2437
|
-
includes: TombstoneDataUNIXUserIncludes
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
class TombstoneDataCronIncludes(CoreApiModel):
|
|
2441
|
-
node: NodeResource
|
|
2442
|
-
unix_user: Union[TombstoneDataUNIXUser, UNIXUserResource]
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
class TombstoneDataHtpasswdFileIncludes(CoreApiModel):
|
|
2446
|
-
unix_user: Union[UNIXUserResource, TombstoneDataUNIXUser]
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
class TombstoneDataHtpasswdFile(CoreApiModel):
|
|
2450
|
-
id: int
|
|
2451
|
-
data_type: Literal["htpasswd_file"]
|
|
2452
|
-
unix_user_id: int
|
|
2453
|
-
includes: TombstoneDataHtpasswdFileIncludes
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
class TombstoneDataMailDomainIncludes(CoreApiModel):
|
|
2457
|
-
unix_user: Union[UNIXUserResource, TombstoneDataUNIXUser]
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
class TombstoneDataMailDomain(CoreApiModel):
|
|
2461
|
-
id: int
|
|
2462
|
-
data_type: Literal["mail_domain"]
|
|
2463
|
-
domain: str
|
|
2464
|
-
unix_user_id: int
|
|
2465
|
-
delete_on_cluster: Optional[bool] = False
|
|
2466
|
-
includes: TombstoneDataMailDomainIncludes
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
class TombstoneDataMailAccountIncludes(CoreApiModel):
|
|
2470
|
-
mail_domain: Union[MailDomainResource, TombstoneDataMailDomain]
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
class TombstoneDataMailAccount(CoreApiModel):
|
|
2474
|
-
id: int
|
|
2475
|
-
data_type: Literal["mail_account"]
|
|
2476
|
-
local_part: constr(regex=r"^[a-z0-9-.]+$", min_length=1, max_length=64)
|
|
2477
|
-
mail_domain_id: int
|
|
2478
|
-
delete_on_cluster: Optional[bool] = False
|
|
2479
|
-
includes: TombstoneDataMailAccountIncludes
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
class TombstoneDataCron(CoreApiModel):
|
|
2483
|
-
id: int
|
|
2484
|
-
data_type: Literal["cron"]
|
|
2485
|
-
node_id: int
|
|
2486
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=64)
|
|
2487
|
-
unix_user_id: int
|
|
2488
|
-
includes: TombstoneDataCronIncludes
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
class TombstoneDataUNIXUserRabbitMQCredentials(CoreApiModel):
|
|
2492
|
-
id: int
|
|
2493
|
-
data_type: Literal["unix_user_rabbitmq_credentials"]
|
|
2494
|
-
rabbitmq_virtual_host_name: constr(
|
|
2495
|
-
regex=r"^[a-z0-9-.]+$", min_length=1, max_length=32
|
|
2496
|
-
)
|
|
2497
|
-
includes: TombstoneDataUNIXUserRabbitMQCredentialsIncludes
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
class TombstoneDataVirtualHost(CoreApiModel):
|
|
2501
|
-
id: int
|
|
2502
|
-
data_type: Literal["virtual_host"]
|
|
2503
|
-
domain_root: str
|
|
2504
|
-
delete_on_cluster: Optional[bool] = False
|
|
2505
|
-
includes: TombstoneDataVirtualHostIncludes
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
class TombstoneDataCustomConfig(CoreApiModel):
|
|
2509
|
-
id: int
|
|
2510
|
-
data_type: Literal["custom_config"]
|
|
2511
|
-
name: constr(regex=r"^[a-z0-9-_]+$", min_length=1, max_length=128)
|
|
2512
|
-
includes: TombstoneDataCustomConfigIncludes
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
class TombstoneIncludes(CoreApiModel):
|
|
2516
|
-
cluster: Optional[ClusterResource]
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
class TombstoneResource(CoreApiModel):
|
|
2520
|
-
id: int
|
|
2521
|
-
created_at: datetime
|
|
2522
|
-
updated_at: datetime
|
|
2523
|
-
data: Union[
|
|
2524
|
-
TombstoneDataPassengerApp,
|
|
2525
|
-
TombstoneDataCertificate,
|
|
2526
|
-
TombstoneDataFPMPool,
|
|
2527
|
-
TombstoneDataUNIXUserRabbitMQCredentials,
|
|
2528
|
-
TombstoneDataUNIXUser,
|
|
2529
|
-
TombstoneDataCron,
|
|
2530
|
-
TombstoneDataDaemon,
|
|
2531
|
-
TombstoneDataDatabase,
|
|
2532
|
-
TombstoneDataMailAccount,
|
|
2533
|
-
TombstoneDataRedisInstance,
|
|
2534
|
-
TombstoneDataVirtualHost,
|
|
2535
|
-
TombstoneDataDatabaseUser,
|
|
2536
|
-
TombstoneDataDatabaseUserGrant,
|
|
2537
|
-
TombstoneDataDomainRouter,
|
|
2538
|
-
TombstoneDataHtpasswdFile,
|
|
2539
|
-
TombstoneDataRootSSHKey,
|
|
2540
|
-
TombstoneDataSSHKey,
|
|
2541
|
-
TombstoneDataMailDomain,
|
|
2542
|
-
TombstoneDataMailHostname,
|
|
2543
|
-
TombstoneDataCustomConfig,
|
|
2544
|
-
] = Field(
|
|
2545
|
-
...,
|
|
2546
|
-
discriminator="data_type",
|
|
2547
|
-
)
|
|
2548
|
-
object_id: int
|
|
2549
|
-
object_model_name: ObjectModelNameEnum
|
|
2550
|
-
cluster_id: int
|
|
2551
|
-
includes: TombstoneIncludes
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
2256
|
class NodeDependenciesResource(CoreApiModel):
|
|
2555
2257
|
hostname: str
|
|
2556
2258
|
groups: List[NodeGroupDependency]
|
|
@@ -2790,7 +2492,6 @@ class ClusterMariadbPropertiesResource(CoreApiModel):
|
|
|
2790
2492
|
created_at: datetime
|
|
2791
2493
|
updated_at: datetime
|
|
2792
2494
|
mariadb_version: str
|
|
2793
|
-
mariadb_cluster_name: constr(regex=r"^[a-z.]+$", min_length=1, max_length=64)
|
|
2794
2495
|
mariadb_backup_interval: conint(ge=1, le=24)
|
|
2795
2496
|
mariadb_backup_local_retention: conint(ge=1, le=24)
|
|
2796
2497
|
cluster_id: int
|
|
@@ -2819,7 +2520,6 @@ class ClusterMetabasePropertiesResource(CoreApiModel):
|
|
|
2819
2520
|
created_at: datetime
|
|
2820
2521
|
updated_at: datetime
|
|
2821
2522
|
metabase_domain: str
|
|
2822
|
-
metabase_database_password: constr(regex=r"^[ -~]+$", min_length=24, max_length=255)
|
|
2823
2523
|
cluster_id: int
|
|
2824
2524
|
includes: ClusterMetabasePropertiesIncludes
|
|
2825
2525
|
|
|
@@ -2845,7 +2545,6 @@ class ClusterNewRelicPropertiesResource(CoreApiModel):
|
|
|
2845
2545
|
id: int
|
|
2846
2546
|
created_at: datetime
|
|
2847
2547
|
updated_at: datetime
|
|
2848
|
-
new_relic_mariadb_password: constr(regex=r"^[ -~]+$", min_length=24, max_length=255)
|
|
2849
2548
|
new_relic_apm_license_key: Optional[
|
|
2850
2549
|
constr(regex=r"^[a-zA-Z0-9]+$", min_length=40, max_length=40)
|
|
2851
2550
|
]
|
|
@@ -2857,9 +2556,6 @@ class ClusterNewRelicPropertiesResource(CoreApiModel):
|
|
|
2857
2556
|
|
|
2858
2557
|
|
|
2859
2558
|
class ClusterNewRelicPropertiesUpdateRequest(CoreApiModel):
|
|
2860
|
-
new_relic_mariadb_password: Optional[
|
|
2861
|
-
constr(regex=r"^[ -~]+$", min_length=24, max_length=255)
|
|
2862
|
-
] = None
|
|
2863
2559
|
new_relic_apm_license_key: Optional[
|
|
2864
2560
|
constr(regex=r"^[a-zA-Z0-9]+$", min_length=40, max_length=40)
|
|
2865
2561
|
] = None
|
|
@@ -2961,7 +2657,6 @@ class ClusterRabbitmqPropertiesResource(CoreApiModel):
|
|
|
2961
2657
|
id: int
|
|
2962
2658
|
created_at: datetime
|
|
2963
2659
|
updated_at: datetime
|
|
2964
|
-
rabbitmq_erlang_cookie: constr(regex=r"^[A-Z0-9]+$", min_length=20, max_length=20)
|
|
2965
2660
|
rabbitmq_admin_password: constr(
|
|
2966
2661
|
regex=r"^[a-zA-Z0-9]+$", min_length=24, max_length=255
|
|
2967
2662
|
)
|
|
@@ -3314,7 +3009,6 @@ class ClustersKernelcarePropertiesSearchRequest(CoreApiModel):
|
|
|
3314
3009
|
|
|
3315
3010
|
class ClustersMariadbPropertiesSearchRequest(CoreApiModel):
|
|
3316
3011
|
mariadb_version: Optional[str] = None
|
|
3317
|
-
mariadb_cluster_name: Optional[str] = None
|
|
3318
3012
|
mariadb_backup_interval: Optional[int] = None
|
|
3319
3013
|
mariadb_backup_local_retention: Optional[int] = None
|
|
3320
3014
|
cluster_id: Optional[int] = None
|
|
@@ -3591,12 +3285,6 @@ class SshKeysSearchRequest(CoreApiModel):
|
|
|
3591
3285
|
unix_user_id: Optional[int] = None
|
|
3592
3286
|
|
|
3593
3287
|
|
|
3594
|
-
class TombstonesSearchRequest(CoreApiModel):
|
|
3595
|
-
object_id: Optional[int] = None
|
|
3596
|
-
object_model_name: Optional[ObjectModelNameEnum] = None
|
|
3597
|
-
cluster_id: Optional[int] = None
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
3288
|
class UnixUsersSearchRequest(CoreApiModel):
|
|
3601
3289
|
username: Optional[str] = None
|
|
3602
3290
|
unix_id: Optional[int] = None
|
|
@@ -45,7 +45,6 @@ from . import (
|
|
|
45
45
|
mail_accounts,
|
|
46
46
|
fpm_pools,
|
|
47
47
|
mail_domains,
|
|
48
|
-
tombstones,
|
|
49
48
|
)
|
|
50
49
|
|
|
51
50
|
__all__ = [
|
|
@@ -90,7 +89,6 @@ __all__ = [
|
|
|
90
89
|
"regions",
|
|
91
90
|
"ssh_keys",
|
|
92
91
|
"task_collections",
|
|
93
|
-
"tombstones",
|
|
94
92
|
"unix_users",
|
|
95
93
|
"url_redirects",
|
|
96
94
|
"virtual_hosts",
|
|
@@ -35,7 +35,8 @@ class MailDomains(Resource):
|
|
|
35
35
|
"page": page,
|
|
36
36
|
"per_page": per_page,
|
|
37
37
|
}
|
|
38
|
-
| (include_filters.dict(exclude_unset=True) if include_filters else {})
|
|
38
|
+
| (include_filters.dict(exclude_unset=True) if include_filters else {})
|
|
39
|
+
| construct_includes_query_parameter(includes),
|
|
39
40
|
)
|
|
40
41
|
|
|
41
42
|
return DtoResponse.from_response(local_response, models.MailDomainResource)
|
|
@@ -53,7 +53,6 @@ src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py
|
|
|
53
53
|
src/cyberfusion/CoreApiClient/resources/security_txt_policies.py
|
|
54
54
|
src/cyberfusion/CoreApiClient/resources/ssh_keys.py
|
|
55
55
|
src/cyberfusion/CoreApiClient/resources/task_collections.py
|
|
56
|
-
src/cyberfusion/CoreApiClient/resources/tombstones.py
|
|
57
56
|
src/cyberfusion/CoreApiClient/resources/unix_users.py
|
|
58
57
|
src/cyberfusion/CoreApiClient/resources/url_redirects.py
|
|
59
58
|
src/cyberfusion/CoreApiClient/resources/virtual_hosts.py
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
from cyberfusion.CoreApiClient import models
|
|
2
|
-
|
|
3
|
-
from cyberfusion.CoreApiClient._helpers import construct_includes_query_parameter
|
|
4
|
-
from cyberfusion.CoreApiClient.http import DtoResponse
|
|
5
|
-
from cyberfusion.CoreApiClient.interfaces import Resource
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class Tombstones(Resource):
|
|
9
|
-
def list_tombstones(
|
|
10
|
-
self,
|
|
11
|
-
*,
|
|
12
|
-
page: int = 1,
|
|
13
|
-
per_page: int = 0,
|
|
14
|
-
include_filters: models.TombstonesSearchRequest | None = None,
|
|
15
|
-
includes: list[str] | None = None,
|
|
16
|
-
) -> DtoResponse[list[models.TombstoneResource]]:
|
|
17
|
-
local_response = self.api_connector.send_or_fail(
|
|
18
|
-
"GET",
|
|
19
|
-
"/api/v1/tombstones",
|
|
20
|
-
data=None,
|
|
21
|
-
query_parameters={
|
|
22
|
-
"page": page,
|
|
23
|
-
"per_page": per_page,
|
|
24
|
-
}
|
|
25
|
-
| (include_filters.dict(exclude_unset=True) if include_filters else {})
|
|
26
|
-
| construct_includes_query_parameter(includes),
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
return DtoResponse.from_response(local_response, models.TombstoneResource)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python3_core_api_client-2.7 → python3_core_api_client-2.8.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
|