python3-core-api-client 2.1.1__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.1.1 → python3_core_api_client-2.3}/PKG-INFO +2 -2
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/README.md +1 -1
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/pyproject.toml +1 -1
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/models.py +30 -9
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/clusters.py +66 -53
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/python3_core_api_client.egg-info/PKG-INFO +2 -2
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/setup.cfg +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/__init__.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/_encoders.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/connector.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/exceptions.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/http.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/interfaces.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/__init__.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/basic_authentication_realms.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/borg_archives.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/borg_repositories.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/certificate_managers.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/certificates.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/cmses.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/crons.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/custom_config_snippets.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/custom_configs.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/customers.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/daemons.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/database_user_grants.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/database_users.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/databases.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/domain_routers.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/firewall_groups.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/firewall_rules.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/fpm_pools.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/ftp_users.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/haproxy_listens.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/haproxy_listens_to_nodes.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/health.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/hosts_entries.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/htpasswd_files.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/htpasswd_users.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/login.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/logs.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mail_accounts.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mail_aliases.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mail_domains.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mail_hostnames.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/malwares.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/mariadb_encryption_keys.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/node_add_ons.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/nodes.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/passenger_apps.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/redis_instances.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/root_ssh_keys.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/security_txt_policies.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/sites.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/ssh_keys.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/task_collections.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/tombstones.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/unix_users.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/url_redirects.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/cyberfusion/CoreApiClient/resources/virtual_hosts.py +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/python3_core_api_client.egg-info/SOURCES.txt +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/python3_core_api_client.egg-info/dependency_links.txt +0 -0
- {python3_core_api_client-2.1.1 → python3_core_api_client-2.3}/src/python3_core_api_client.egg-info/requires.txt +0 -0
- {python3_core_api_client-2.1.1 → 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
|
|
|
@@ -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,
|
|
@@ -878,7 +861,6 @@ class Clusters(Resource):
|
|
|
878
861
|
def list_borg_properties(
|
|
879
862
|
self,
|
|
880
863
|
*,
|
|
881
|
-
id_: int,
|
|
882
864
|
skip: Optional[int] = None,
|
|
883
865
|
limit: Optional[int] = None,
|
|
884
866
|
filter_: Optional[List[str]] = None,
|
|
@@ -886,7 +868,7 @@ class Clusters(Resource):
|
|
|
886
868
|
) -> DtoResponse[list[models.ClusterBorgPropertiesResource]]:
|
|
887
869
|
local_response = self.api_connector.send_or_fail(
|
|
888
870
|
"GET",
|
|
889
|
-
|
|
871
|
+
"/api/v1/clusters/properties/borg",
|
|
890
872
|
data=None,
|
|
891
873
|
query_parameters={
|
|
892
874
|
"skip": skip,
|
|
@@ -903,7 +885,6 @@ class Clusters(Resource):
|
|
|
903
885
|
def list_redis_properties(
|
|
904
886
|
self,
|
|
905
887
|
*,
|
|
906
|
-
id_: int,
|
|
907
888
|
skip: Optional[int] = None,
|
|
908
889
|
limit: Optional[int] = None,
|
|
909
890
|
filter_: Optional[List[str]] = None,
|
|
@@ -911,7 +892,7 @@ class Clusters(Resource):
|
|
|
911
892
|
) -> DtoResponse[list[models.ClusterRedisPropertiesResource]]:
|
|
912
893
|
local_response = self.api_connector.send_or_fail(
|
|
913
894
|
"GET",
|
|
914
|
-
|
|
895
|
+
"/api/v1/clusters/properties/redis",
|
|
915
896
|
data=None,
|
|
916
897
|
query_parameters={
|
|
917
898
|
"skip": skip,
|
|
@@ -928,7 +909,6 @@ class Clusters(Resource):
|
|
|
928
909
|
def list_elasticsearch_properties(
|
|
929
910
|
self,
|
|
930
911
|
*,
|
|
931
|
-
id_: int,
|
|
932
912
|
skip: Optional[int] = None,
|
|
933
913
|
limit: Optional[int] = None,
|
|
934
914
|
filter_: Optional[List[str]] = None,
|
|
@@ -936,7 +916,7 @@ class Clusters(Resource):
|
|
|
936
916
|
) -> DtoResponse[list[models.ClusterElasticsearchPropertiesResource]]:
|
|
937
917
|
local_response = self.api_connector.send_or_fail(
|
|
938
918
|
"GET",
|
|
939
|
-
|
|
919
|
+
"/api/v1/clusters/properties/elasticsearch",
|
|
940
920
|
data=None,
|
|
941
921
|
query_parameters={
|
|
942
922
|
"skip": skip,
|
|
@@ -953,7 +933,6 @@ class Clusters(Resource):
|
|
|
953
933
|
def list_firewall_properties(
|
|
954
934
|
self,
|
|
955
935
|
*,
|
|
956
|
-
id_: int,
|
|
957
936
|
skip: Optional[int] = None,
|
|
958
937
|
limit: Optional[int] = None,
|
|
959
938
|
filter_: Optional[List[str]] = None,
|
|
@@ -961,7 +940,7 @@ class Clusters(Resource):
|
|
|
961
940
|
) -> DtoResponse[list[models.ClusterFirewallPropertiesResource]]:
|
|
962
941
|
local_response = self.api_connector.send_or_fail(
|
|
963
942
|
"GET",
|
|
964
|
-
|
|
943
|
+
"/api/v1/clusters/properties/firewall",
|
|
965
944
|
data=None,
|
|
966
945
|
query_parameters={
|
|
967
946
|
"skip": skip,
|
|
@@ -978,7 +957,6 @@ class Clusters(Resource):
|
|
|
978
957
|
def list_grafana_properties(
|
|
979
958
|
self,
|
|
980
959
|
*,
|
|
981
|
-
id_: int,
|
|
982
960
|
skip: Optional[int] = None,
|
|
983
961
|
limit: Optional[int] = None,
|
|
984
962
|
filter_: Optional[List[str]] = None,
|
|
@@ -986,7 +964,7 @@ class Clusters(Resource):
|
|
|
986
964
|
) -> DtoResponse[list[models.ClusterGrafanaPropertiesResource]]:
|
|
987
965
|
local_response = self.api_connector.send_or_fail(
|
|
988
966
|
"GET",
|
|
989
|
-
|
|
967
|
+
"/api/v1/clusters/properties/grafana",
|
|
990
968
|
data=None,
|
|
991
969
|
query_parameters={
|
|
992
970
|
"skip": skip,
|
|
@@ -1003,7 +981,6 @@ class Clusters(Resource):
|
|
|
1003
981
|
def list_kernelcare_properties(
|
|
1004
982
|
self,
|
|
1005
983
|
*,
|
|
1006
|
-
id_: int,
|
|
1007
984
|
skip: Optional[int] = None,
|
|
1008
985
|
limit: Optional[int] = None,
|
|
1009
986
|
filter_: Optional[List[str]] = None,
|
|
@@ -1011,7 +988,7 @@ class Clusters(Resource):
|
|
|
1011
988
|
) -> DtoResponse[list[models.ClusterKernelcarePropertiesResource]]:
|
|
1012
989
|
local_response = self.api_connector.send_or_fail(
|
|
1013
990
|
"GET",
|
|
1014
|
-
|
|
991
|
+
"/api/v1/clusters/properties/kernelcare",
|
|
1015
992
|
data=None,
|
|
1016
993
|
query_parameters={
|
|
1017
994
|
"skip": skip,
|
|
@@ -1028,7 +1005,6 @@ class Clusters(Resource):
|
|
|
1028
1005
|
def list_load_balancing_properties(
|
|
1029
1006
|
self,
|
|
1030
1007
|
*,
|
|
1031
|
-
id_: int,
|
|
1032
1008
|
skip: Optional[int] = None,
|
|
1033
1009
|
limit: Optional[int] = None,
|
|
1034
1010
|
filter_: Optional[List[str]] = None,
|
|
@@ -1036,7 +1012,7 @@ class Clusters(Resource):
|
|
|
1036
1012
|
) -> DtoResponse[list[models.ClusterLoadBalancingPropertiesResource]]:
|
|
1037
1013
|
local_response = self.api_connector.send_or_fail(
|
|
1038
1014
|
"GET",
|
|
1039
|
-
|
|
1015
|
+
"/api/v1/clusters/properties/load-balancing",
|
|
1040
1016
|
data=None,
|
|
1041
1017
|
query_parameters={
|
|
1042
1018
|
"skip": skip,
|
|
@@ -1053,7 +1029,6 @@ class Clusters(Resource):
|
|
|
1053
1029
|
def list_mariadb_properties(
|
|
1054
1030
|
self,
|
|
1055
1031
|
*,
|
|
1056
|
-
id_: int,
|
|
1057
1032
|
skip: Optional[int] = None,
|
|
1058
1033
|
limit: Optional[int] = None,
|
|
1059
1034
|
filter_: Optional[List[str]] = None,
|
|
@@ -1061,7 +1036,7 @@ class Clusters(Resource):
|
|
|
1061
1036
|
) -> DtoResponse[list[models.ClusterMariadbPropertiesResource]]:
|
|
1062
1037
|
local_response = self.api_connector.send_or_fail(
|
|
1063
1038
|
"GET",
|
|
1064
|
-
|
|
1039
|
+
"/api/v1/clusters/properties/mariadb",
|
|
1065
1040
|
data=None,
|
|
1066
1041
|
query_parameters={
|
|
1067
1042
|
"skip": skip,
|
|
@@ -1078,7 +1053,6 @@ class Clusters(Resource):
|
|
|
1078
1053
|
def list_meilisearch_properties(
|
|
1079
1054
|
self,
|
|
1080
1055
|
*,
|
|
1081
|
-
id_: int,
|
|
1082
1056
|
skip: Optional[int] = None,
|
|
1083
1057
|
limit: Optional[int] = None,
|
|
1084
1058
|
filter_: Optional[List[str]] = None,
|
|
@@ -1086,7 +1060,7 @@ class Clusters(Resource):
|
|
|
1086
1060
|
) -> DtoResponse[list[models.ClusterMeilisearchPropertiesResource]]:
|
|
1087
1061
|
local_response = self.api_connector.send_or_fail(
|
|
1088
1062
|
"GET",
|
|
1089
|
-
|
|
1063
|
+
"/api/v1/clusters/properties/meilisearch",
|
|
1090
1064
|
data=None,
|
|
1091
1065
|
query_parameters={
|
|
1092
1066
|
"skip": skip,
|
|
@@ -1103,7 +1077,6 @@ class Clusters(Resource):
|
|
|
1103
1077
|
def list_metabase_properties(
|
|
1104
1078
|
self,
|
|
1105
1079
|
*,
|
|
1106
|
-
id_: int,
|
|
1107
1080
|
skip: Optional[int] = None,
|
|
1108
1081
|
limit: Optional[int] = None,
|
|
1109
1082
|
filter_: Optional[List[str]] = None,
|
|
@@ -1111,7 +1084,7 @@ class Clusters(Resource):
|
|
|
1111
1084
|
) -> DtoResponse[list[models.ClusterMetabasePropertiesResource]]:
|
|
1112
1085
|
local_response = self.api_connector.send_or_fail(
|
|
1113
1086
|
"GET",
|
|
1114
|
-
|
|
1087
|
+
"/api/v1/clusters/properties/metabase",
|
|
1115
1088
|
data=None,
|
|
1116
1089
|
query_parameters={
|
|
1117
1090
|
"skip": skip,
|
|
@@ -1128,7 +1101,6 @@ class Clusters(Resource):
|
|
|
1128
1101
|
def list_new_relic_properties(
|
|
1129
1102
|
self,
|
|
1130
1103
|
*,
|
|
1131
|
-
id_: int,
|
|
1132
1104
|
skip: Optional[int] = None,
|
|
1133
1105
|
limit: Optional[int] = None,
|
|
1134
1106
|
filter_: Optional[List[str]] = None,
|
|
@@ -1136,7 +1108,7 @@ class Clusters(Resource):
|
|
|
1136
1108
|
) -> DtoResponse[list[models.ClusterNewRelicPropertiesResource]]:
|
|
1137
1109
|
local_response = self.api_connector.send_or_fail(
|
|
1138
1110
|
"GET",
|
|
1139
|
-
|
|
1111
|
+
"/api/v1/clusters/properties/new-relic",
|
|
1140
1112
|
data=None,
|
|
1141
1113
|
query_parameters={
|
|
1142
1114
|
"skip": skip,
|
|
@@ -1153,7 +1125,6 @@ class Clusters(Resource):
|
|
|
1153
1125
|
def list_nodejs_properties(
|
|
1154
1126
|
self,
|
|
1155
1127
|
*,
|
|
1156
|
-
id_: int,
|
|
1157
1128
|
skip: Optional[int] = None,
|
|
1158
1129
|
limit: Optional[int] = None,
|
|
1159
1130
|
filter_: Optional[List[str]] = None,
|
|
@@ -1161,7 +1132,7 @@ class Clusters(Resource):
|
|
|
1161
1132
|
) -> DtoResponse[list[models.ClusterNodejsPropertiesResource]]:
|
|
1162
1133
|
local_response = self.api_connector.send_or_fail(
|
|
1163
1134
|
"GET",
|
|
1164
|
-
|
|
1135
|
+
"/api/v1/clusters/properties/nodejs",
|
|
1165
1136
|
data=None,
|
|
1166
1137
|
query_parameters={
|
|
1167
1138
|
"skip": skip,
|
|
@@ -1178,7 +1149,6 @@ class Clusters(Resource):
|
|
|
1178
1149
|
def list_os_properties(
|
|
1179
1150
|
self,
|
|
1180
1151
|
*,
|
|
1181
|
-
id_: int,
|
|
1182
1152
|
skip: Optional[int] = None,
|
|
1183
1153
|
limit: Optional[int] = None,
|
|
1184
1154
|
filter_: Optional[List[str]] = None,
|
|
@@ -1186,7 +1156,7 @@ class Clusters(Resource):
|
|
|
1186
1156
|
) -> DtoResponse[list[models.ClusterOsPropertiesResource]]:
|
|
1187
1157
|
local_response = self.api_connector.send_or_fail(
|
|
1188
1158
|
"GET",
|
|
1189
|
-
|
|
1159
|
+
"/api/v1/clusters/properties/os",
|
|
1190
1160
|
data=None,
|
|
1191
1161
|
query_parameters={
|
|
1192
1162
|
"skip": skip,
|
|
@@ -1203,7 +1173,6 @@ class Clusters(Resource):
|
|
|
1203
1173
|
def list_php_properties(
|
|
1204
1174
|
self,
|
|
1205
1175
|
*,
|
|
1206
|
-
id_: int,
|
|
1207
1176
|
skip: Optional[int] = None,
|
|
1208
1177
|
limit: Optional[int] = None,
|
|
1209
1178
|
filter_: Optional[List[str]] = None,
|
|
@@ -1211,7 +1180,7 @@ class Clusters(Resource):
|
|
|
1211
1180
|
) -> DtoResponse[list[models.ClusterPhpPropertiesResource]]:
|
|
1212
1181
|
local_response = self.api_connector.send_or_fail(
|
|
1213
1182
|
"GET",
|
|
1214
|
-
|
|
1183
|
+
"/api/v1/clusters/properties/php",
|
|
1215
1184
|
data=None,
|
|
1216
1185
|
query_parameters={
|
|
1217
1186
|
"skip": skip,
|
|
@@ -1228,7 +1197,6 @@ class Clusters(Resource):
|
|
|
1228
1197
|
def list_postgresql_properties(
|
|
1229
1198
|
self,
|
|
1230
1199
|
*,
|
|
1231
|
-
id_: int,
|
|
1232
1200
|
skip: Optional[int] = None,
|
|
1233
1201
|
limit: Optional[int] = None,
|
|
1234
1202
|
filter_: Optional[List[str]] = None,
|
|
@@ -1236,7 +1204,7 @@ class Clusters(Resource):
|
|
|
1236
1204
|
) -> DtoResponse[list[models.ClusterPostgresqlPropertiesResource]]:
|
|
1237
1205
|
local_response = self.api_connector.send_or_fail(
|
|
1238
1206
|
"GET",
|
|
1239
|
-
|
|
1207
|
+
"/api/v1/clusters/properties/postgresql",
|
|
1240
1208
|
data=None,
|
|
1241
1209
|
query_parameters={
|
|
1242
1210
|
"skip": skip,
|
|
@@ -1253,7 +1221,6 @@ class Clusters(Resource):
|
|
|
1253
1221
|
def list_rabbitmq_properties(
|
|
1254
1222
|
self,
|
|
1255
1223
|
*,
|
|
1256
|
-
id_: int,
|
|
1257
1224
|
skip: Optional[int] = None,
|
|
1258
1225
|
limit: Optional[int] = None,
|
|
1259
1226
|
filter_: Optional[List[str]] = None,
|
|
@@ -1261,7 +1228,7 @@ class Clusters(Resource):
|
|
|
1261
1228
|
) -> DtoResponse[list[models.ClusterRabbitmqPropertiesResource]]:
|
|
1262
1229
|
local_response = self.api_connector.send_or_fail(
|
|
1263
1230
|
"GET",
|
|
1264
|
-
|
|
1231
|
+
"/api/v1/clusters/properties/rabbitmq",
|
|
1265
1232
|
data=None,
|
|
1266
1233
|
query_parameters={
|
|
1267
1234
|
"skip": skip,
|
|
@@ -1278,7 +1245,6 @@ class Clusters(Resource):
|
|
|
1278
1245
|
def list_singlestore_properties(
|
|
1279
1246
|
self,
|
|
1280
1247
|
*,
|
|
1281
|
-
id_: int,
|
|
1282
1248
|
skip: Optional[int] = None,
|
|
1283
1249
|
limit: Optional[int] = None,
|
|
1284
1250
|
filter_: Optional[List[str]] = None,
|
|
@@ -1286,7 +1252,7 @@ class Clusters(Resource):
|
|
|
1286
1252
|
) -> DtoResponse[list[models.ClusterSinglestorePropertiesResource]]:
|
|
1287
1253
|
local_response = self.api_connector.send_or_fail(
|
|
1288
1254
|
"GET",
|
|
1289
|
-
|
|
1255
|
+
"/api/v1/clusters/properties/singlestore",
|
|
1290
1256
|
data=None,
|
|
1291
1257
|
query_parameters={
|
|
1292
1258
|
"skip": skip,
|
|
@@ -1303,7 +1269,6 @@ class Clusters(Resource):
|
|
|
1303
1269
|
def list_unix_users_properties(
|
|
1304
1270
|
self,
|
|
1305
1271
|
*,
|
|
1306
|
-
id_: int,
|
|
1307
1272
|
skip: Optional[int] = None,
|
|
1308
1273
|
limit: Optional[int] = None,
|
|
1309
1274
|
filter_: Optional[List[str]] = None,
|
|
@@ -1311,7 +1276,7 @@ class Clusters(Resource):
|
|
|
1311
1276
|
) -> DtoResponse[list[models.ClusterUnixUsersPropertiesResource]]:
|
|
1312
1277
|
local_response = self.api_connector.send_or_fail(
|
|
1313
1278
|
"GET",
|
|
1314
|
-
|
|
1279
|
+
"/api/v1/clusters/properties/unix-users",
|
|
1315
1280
|
data=None,
|
|
1316
1281
|
query_parameters={
|
|
1317
1282
|
"skip": skip,
|
|
@@ -1342,6 +1307,40 @@ class Clusters(Resource):
|
|
|
1342
1307
|
local_response, models.ClusterBorgPropertiesResource
|
|
1343
1308
|
)
|
|
1344
1309
|
|
|
1310
|
+
def update_singlestore_properties(
|
|
1311
|
+
self,
|
|
1312
|
+
request: models.ClusterSinglestorePropertiesUpdateRequest,
|
|
1313
|
+
*,
|
|
1314
|
+
id_: int,
|
|
1315
|
+
) -> DtoResponse[models.ClusterSinglestorePropertiesResource]:
|
|
1316
|
+
local_response = self.api_connector.send_or_fail(
|
|
1317
|
+
"PATCH",
|
|
1318
|
+
f"/api/v1/clusters/{id_}/properties/singlestore",
|
|
1319
|
+
data=request.dict(exclude_unset=True),
|
|
1320
|
+
query_parameters={},
|
|
1321
|
+
)
|
|
1322
|
+
|
|
1323
|
+
return DtoResponse.from_response(
|
|
1324
|
+
local_response, models.ClusterSinglestorePropertiesResource
|
|
1325
|
+
)
|
|
1326
|
+
|
|
1327
|
+
def update_redis_properties(
|
|
1328
|
+
self,
|
|
1329
|
+
request: models.ClusterRedisPropertiesUpdateRequest,
|
|
1330
|
+
*,
|
|
1331
|
+
id_: int,
|
|
1332
|
+
) -> DtoResponse[models.ClusterRedisPropertiesResource]:
|
|
1333
|
+
local_response = self.api_connector.send_or_fail(
|
|
1334
|
+
"PATCH",
|
|
1335
|
+
f"/api/v1/clusters/{id_}/properties/redis",
|
|
1336
|
+
data=request.dict(exclude_unset=True),
|
|
1337
|
+
query_parameters={},
|
|
1338
|
+
)
|
|
1339
|
+
|
|
1340
|
+
return DtoResponse.from_response(
|
|
1341
|
+
local_response, models.ClusterRedisPropertiesResource
|
|
1342
|
+
)
|
|
1343
|
+
|
|
1345
1344
|
def update_elasticsearch_properties(
|
|
1346
1345
|
self,
|
|
1347
1346
|
request: models.ClusterElasticsearchPropertiesUpdateRequest,
|
|
@@ -1579,3 +1578,17 @@ class Clusters(Resource):
|
|
|
1579
1578
|
return DtoResponse.from_response(
|
|
1580
1579
|
local_response, models.ClusterRabbitmqPropertiesResource
|
|
1581
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.1.1 → 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
|