python3-core-api-client 2.2__tar.gz → 2.3__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.
Potentially problematic release.
This version of python3-core-api-client might be problematic. Click here for more details.
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/PKG-INFO +2 -2
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/README.md +1 -1
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/pyproject.toml +1 -1
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/models.py +30 -9
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/clusters.py +14 -17
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/python3_core_api_client.egg-info/PKG-INFO +2 -2
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/setup.cfg +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/_encoders.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/connector.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/http.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/__init__.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/certificates.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/cmses.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/crons.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/customers.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/daemons.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/database_users.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/databases.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/login.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/logs.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/malwares.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/nodes.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/sites.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/tombstones.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/unix_users.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/python3_core_api_client.egg-info/SOURCES.txt +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/python3_core_api_client.egg-info/requires.txt +0 -0
- {python3_core_api_client-2.2 → python3_core_api_client-2.3}/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.3
|
|
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.252** version of the API.
|
|
17
17
|
|
|
18
18
|
## Support
|
|
19
19
|
|
{python3_core_api_client-2.2 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/models.py
RENAMED
|
@@ -2357,7 +2357,6 @@ class TombstoneDataDatabase(CoreApiModel):
|
|
|
2357
2357
|
|
|
2358
2358
|
|
|
2359
2359
|
class TombstoneDataDatabaseUserGrantIncludes(CoreApiModel):
|
|
2360
|
-
id: int
|
|
2361
2360
|
database: Union[DatabaseResource, TombstoneDataDatabase]
|
|
2362
2361
|
database_user: Union[DatabaseUserResource, TombstoneDataDatabaseUser]
|
|
2363
2362
|
|
|
@@ -2630,7 +2629,7 @@ class ObjectLogResource(CoreApiModel):
|
|
|
2630
2629
|
includes: ObjectLogIncludes
|
|
2631
2630
|
|
|
2632
2631
|
|
|
2633
|
-
class SimpleSpecificationsResource(RootModelCollectionMixin,
|
|
2632
|
+
class SimpleSpecificationsResource(RootModelCollectionMixin, CoreApiModel): # type: ignore[misc]
|
|
2634
2633
|
__root__: List[str]
|
|
2635
2634
|
|
|
2636
2635
|
|
|
@@ -3063,13 +3062,6 @@ class ClusterUnixUsersPropertiesIncludes(CoreApiModel):
|
|
|
3063
3062
|
pass
|
|
3064
3063
|
|
|
3065
3064
|
|
|
3066
|
-
class ClusterLoadBalancingPropertiesCreateRequest(CoreApiModel):
|
|
3067
|
-
http_retry_properties: HTTPRetryProperties = Field(
|
|
3068
|
-
default_factory=lambda: HTTPRetryProperties.parse_obj({"conditions": []})
|
|
3069
|
-
)
|
|
3070
|
-
load_balancing_method: LoadBalancingMethodEnum = LoadBalancingMethodEnum.ROUND_ROBIN
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
3065
|
class ClusterLoadBalancingPropertiesResource(CoreApiModel):
|
|
3074
3066
|
id: int
|
|
3075
3067
|
created_at: datetime
|
|
@@ -3173,6 +3165,12 @@ class ClusterUnixUsersPropertiesResource(CoreApiModel):
|
|
|
3173
3165
|
includes: ClusterUnixUsersPropertiesIncludes
|
|
3174
3166
|
|
|
3175
3167
|
|
|
3168
|
+
class SpecificationModeEnum(StrEnum):
|
|
3169
|
+
SINGLE = "Single"
|
|
3170
|
+
OR = "Or"
|
|
3171
|
+
AND = "And"
|
|
3172
|
+
|
|
3173
|
+
|
|
3176
3174
|
class SpecificationNameEnum(StrEnum):
|
|
3177
3175
|
CLUSTER_SUPPORTS_VIRTUAL_HOSTS = "Cluster supports virtual hosts"
|
|
3178
3176
|
CLUSTER_SUPPORTS_MARIADB_ENCRYPTION_KEYS = (
|
|
@@ -3242,6 +3240,29 @@ class SpecificationNameEnum(StrEnum):
|
|
|
3242
3240
|
UNIX_USER_SUPPORTS_VIRTUAL_HOSTS = "UNIX user supports virtual hosts"
|
|
3243
3241
|
UNIX_USER_SUPPORTS_MAIL_DOMAINS = "UNIX user supports mail domains"
|
|
3244
3242
|
UNIX_USER_SUPPORTS_BORG_REPOSITORIES = "UNIX user supports Borg repositories"
|
|
3243
|
+
CLUSTER_SUPPORTS_LOAD_BALANCER_SERVICE_ACCOUNT_SERVICE_ACCOUNT_TO_CLUSTER = (
|
|
3244
|
+
"Cluster supports 'Load Balancer' service account service account to cluster"
|
|
3245
|
+
)
|
|
3246
|
+
CLUSTER_SUPPORTS_DOMAIN_ROUTERS = "Cluster supports domain routers"
|
|
3247
|
+
|
|
3248
|
+
|
|
3249
|
+
class TableInnodbDataLengths(CoreApiModel):
|
|
3250
|
+
name: str
|
|
3251
|
+
data_length_bytes: int
|
|
3252
|
+
index_length_bytes: int
|
|
3253
|
+
total_length_bytes: int
|
|
3254
|
+
|
|
3255
|
+
|
|
3256
|
+
class DatabaseInnodbDataLengths(CoreApiModel):
|
|
3257
|
+
name: str
|
|
3258
|
+
total_length_bytes: int
|
|
3259
|
+
tables_data_lengths: List[TableInnodbDataLengths]
|
|
3260
|
+
|
|
3261
|
+
|
|
3262
|
+
class DatabaseInnodbReport(CoreApiModel):
|
|
3263
|
+
innodb_buffer_pool_size_bytes: int
|
|
3264
|
+
total_innodb_data_length_bytes: int
|
|
3265
|
+
databases_innodb_data_lengths: List[DatabaseInnodbDataLengths]
|
|
3245
3266
|
|
|
3246
3267
|
|
|
3247
3268
|
NestedPathsDict.update_forward_refs()
|
|
@@ -654,23 +654,6 @@ class Clusters(Resource):
|
|
|
654
654
|
local_response, models.ClusterKernelcarePropertiesResource
|
|
655
655
|
)
|
|
656
656
|
|
|
657
|
-
def create_load_balancing_properties(
|
|
658
|
-
self,
|
|
659
|
-
request: models.ClusterLoadBalancingPropertiesCreateRequest,
|
|
660
|
-
*,
|
|
661
|
-
id_: int,
|
|
662
|
-
) -> DtoResponse[models.ClusterLoadBalancingPropertiesResource]:
|
|
663
|
-
local_response = self.api_connector.send_or_fail(
|
|
664
|
-
"POST",
|
|
665
|
-
f"/api/v1/clusters/{id_}/properties/load-balancing",
|
|
666
|
-
data=request.dict(exclude_unset=True),
|
|
667
|
-
query_parameters={},
|
|
668
|
-
)
|
|
669
|
-
|
|
670
|
-
return DtoResponse.from_response(
|
|
671
|
-
local_response, models.ClusterLoadBalancingPropertiesResource
|
|
672
|
-
)
|
|
673
|
-
|
|
674
657
|
def create_mariadb_properties(
|
|
675
658
|
self,
|
|
676
659
|
request: models.ClusterMariadbPropertiesCreateRequest,
|
|
@@ -1595,3 +1578,17 @@ class Clusters(Resource):
|
|
|
1595
1578
|
return DtoResponse.from_response(
|
|
1596
1579
|
local_response, models.ClusterRabbitmqPropertiesResource
|
|
1597
1580
|
)
|
|
1581
|
+
|
|
1582
|
+
def generate_innodb_report(
|
|
1583
|
+
self,
|
|
1584
|
+
*,
|
|
1585
|
+
id_: int,
|
|
1586
|
+
) -> DtoResponse[models.DatabaseInnodbReport]:
|
|
1587
|
+
local_response = self.api_connector.send_or_fail(
|
|
1588
|
+
"POST",
|
|
1589
|
+
f"/api/v1/clusters/{id_}/reports/innodb-data",
|
|
1590
|
+
data=None,
|
|
1591
|
+
query_parameters={},
|
|
1592
|
+
)
|
|
1593
|
+
|
|
1594
|
+
return DtoResponse.from_response(local_response, models.DatabaseInnodbReport)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python3-core-api-client
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3
|
|
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.252** 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
|
{python3_core_api_client-2.2 → python3_core_api_client-2.3}/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
|
|
File without changes
|