kc-sdk-python 4.2.0__tar.gz → 5.0.0__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.
- {kc_sdk_python-4.2.0/kc_sdk_python.egg-info → kc_sdk_python-5.0.0}/PKG-INFO +2 -2
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/README.md +1 -1
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/kc_api.py +16 -3
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0/kc_sdk_python.egg-info}/PKG-INFO +2 -2
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/pyproject.toml +1 -1
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/LICENSE +0 -0
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/kc_sdk_python.egg-info/SOURCES.txt +0 -0
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/kc_sdk_python.egg-info/dependency_links.txt +0 -0
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/kc_sdk_python.egg-info/requires.txt +0 -0
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/kc_sdk_python.egg-info/top_level.txt +0 -0
- {kc_sdk_python-4.2.0 → kc_sdk_python-5.0.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kc-sdk-python
|
|
3
|
-
Version:
|
|
3
|
+
Version: 5.0.0
|
|
4
4
|
Summary: Kvindo Cloud Python SDK — typed client for managing Kvindo Cloud infrastructure (VMs, S3, Kubernetes, load balancers, VPCs, PostgreSQL) via the REST API
|
|
5
5
|
Author: Kvindo
|
|
6
6
|
License-Expression: MIT
|
|
@@ -97,7 +97,7 @@ object carries `errorMessage` / `errorCode` (a typed `KcApi*ErrorCode`) which ar
|
|
|
97
97
|
|
|
98
98
|
`KcClient` exposes one `KcResourceClient` per type, e.g. `client.vms`,
|
|
99
99
|
`client.volumes`, `client.s3_buckets`, `client.kubernetes`,
|
|
100
|
-
`client.load_balancers`, `client.vpcs`, `client.
|
|
100
|
+
`client.load_balancers`, `client.vpcs`, `client.postgresql_parameters_sets`,
|
|
101
101
|
`client.folders`, `client.transactions`, … (the surface mirrors the official
|
|
102
102
|
Kvindo Cloud API).
|
|
103
103
|
|
|
@@ -63,7 +63,7 @@ object carries `errorMessage` / `errorCode` (a typed `KcApi*ErrorCode`) which ar
|
|
|
63
63
|
|
|
64
64
|
`KcClient` exposes one `KcResourceClient` per type, e.g. `client.vms`,
|
|
65
65
|
`client.volumes`, `client.s3_buckets`, `client.kubernetes`,
|
|
66
|
-
`client.load_balancers`, `client.vpcs`, `client.
|
|
66
|
+
`client.load_balancers`, `client.vpcs`, `client.postgresql_parameters_sets`,
|
|
67
67
|
`client.folders`, `client.transactions`, … (the surface mirrors the official
|
|
68
68
|
Kvindo Cloud API).
|
|
69
69
|
|
|
@@ -149,7 +149,22 @@ class KcApiModificationErrorCode(Enum):
|
|
|
149
149
|
"""The organization's quota for this resource type/parameter would be exceeded, counting
|
|
150
150
|
resources that are submitted but not yet reconciled ("holds"). Not retryable - the caller
|
|
151
151
|
must delete resources or raise the quota. HTTP 409."""
|
|
152
|
-
|
|
152
|
+
SubmitLockBusy = "SubmitLockBusy"
|
|
153
|
+
"""The per-organization submit lock (QuotaSubmitLock) could not be acquired within its
|
|
154
|
+
budget window (concurrent submit contention for the same org - another create/modify/delete
|
|
155
|
+
was already in flight). Retryable - safe to retry the identical request, the lock exists
|
|
156
|
+
precisely to serialize this race. HTTP 422."""
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
# All three response classes below mirror KvindoCloud.Api.Models.ApiModificationResponse -
|
|
160
|
+
# marshmallow_dataclass's default Schema().load() raises ValidationError on any field the C#
|
|
161
|
+
# side sends that isn't declared here (unknown = RAISE is the marshmallow default), so every
|
|
162
|
+
# field ApiModificationResponse carries must have a matching one here or parsing crashes for
|
|
163
|
+
# every caller of create/update/delete, not just the endpoint that happens to populate it.
|
|
164
|
+
# (A retryAfterSeconds body field was added and removed again the same day for the synchronous
|
|
165
|
+
# submit-time quota gate - it crashed every create/update/delete call for exactly this reason.
|
|
166
|
+
# The retry hint is now carried as a real HTTP Retry-After response header instead, which this
|
|
167
|
+
# marshmallow schema never sees, so there is nothing to mirror here for it.)
|
|
153
168
|
|
|
154
169
|
@dataclass
|
|
155
170
|
class KcResourceDeleteResponse(object):
|
|
@@ -636,7 +651,6 @@ class KcClient:
|
|
|
636
651
|
kubernetes_node_groups: KcResourceClient
|
|
637
652
|
kubernetes_users: KcResourceClient
|
|
638
653
|
kubernetes_user_roles: KcResourceClient
|
|
639
|
-
postgresql_standalones: KcResourceClient
|
|
640
654
|
postgresql_parameters_sets: KcResourceClient
|
|
641
655
|
open_vpns: KcResourceClient
|
|
642
656
|
open_vpn_users: KcResourceClient
|
|
@@ -742,7 +756,6 @@ class KcClient:
|
|
|
742
756
|
self.kubernetes_node_groups = _r("kubernetes-node-group")
|
|
743
757
|
self.kubernetes_users = _r("kubernetes-user")
|
|
744
758
|
self.kubernetes_user_roles = _r("kubernetes-user-role")
|
|
745
|
-
self.postgresql_standalones = _r("postgresql-standalone")
|
|
746
759
|
self.postgresql_parameters_sets = _r("postgresql-parameters-set")
|
|
747
760
|
self.open_vpns = _r("open-vpn")
|
|
748
761
|
self.open_vpn_users = _r("open-vpn-user")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kc-sdk-python
|
|
3
|
-
Version:
|
|
3
|
+
Version: 5.0.0
|
|
4
4
|
Summary: Kvindo Cloud Python SDK — typed client for managing Kvindo Cloud infrastructure (VMs, S3, Kubernetes, load balancers, VPCs, PostgreSQL) via the REST API
|
|
5
5
|
Author: Kvindo
|
|
6
6
|
License-Expression: MIT
|
|
@@ -97,7 +97,7 @@ object carries `errorMessage` / `errorCode` (a typed `KcApi*ErrorCode`) which ar
|
|
|
97
97
|
|
|
98
98
|
`KcClient` exposes one `KcResourceClient` per type, e.g. `client.vms`,
|
|
99
99
|
`client.volumes`, `client.s3_buckets`, `client.kubernetes`,
|
|
100
|
-
`client.load_balancers`, `client.vpcs`, `client.
|
|
100
|
+
`client.load_balancers`, `client.vpcs`, `client.postgresql_parameters_sets`,
|
|
101
101
|
`client.folders`, `client.transactions`, … (the surface mirrors the official
|
|
102
102
|
Kvindo Cloud API).
|
|
103
103
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "kc-sdk-python"
|
|
7
|
-
version = "
|
|
7
|
+
version = "5.0.0"
|
|
8
8
|
description = "Kvindo Cloud Python SDK — typed client for managing Kvindo Cloud infrastructure (VMs, S3, Kubernetes, load balancers, VPCs, PostgreSQL) via the REST API"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|