kc-sdk-python 0.2.0__tar.gz → 2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kc-sdk-python
3
- Version: 0.2.0
3
+ Version: 2.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
@@ -520,13 +520,16 @@ class KcResourceClient:
520
520
 
521
521
  # Inject a ULID id when absent so the call is idempotent and the caller can
522
522
  # poll the returned requestId. Two body shapes are supported:
523
+ # py-ulid's ULID has no __str__/__repr__ override, so str(ULID()) yields
524
+ # "<ulid.ulid.ULID object at 0x...>" instead of the Crockford-base32 string the
525
+ # API requires — always use .generate() to get the actual string form.
523
526
  if "metadata" in data:
524
527
  # Envelope shape: id lives under metadata.
525
528
  if "id" not in data["metadata"] or not data["metadata"]["id"]:
526
- data["metadata"]["id"] = str(ULID())
529
+ data["metadata"]["id"] = ULID().generate()
527
530
  elif "id" not in data or not data["id"]:
528
531
  # Flat shape: id at the top level.
529
- data["id"] = str(ULID())
532
+ data["id"] = ULID().generate()
530
533
 
531
534
  url = f"{self.__api_url}/api/v1/{self.__resource_type}"
532
535
 
@@ -573,7 +576,7 @@ class KcClient:
573
576
 
574
577
  # Compute
575
578
  vms: KcResourceClient
576
- vm_on_off_maintenance_actions: KcResourceClient
579
+ on_off_schedules: KcResourceClient
577
580
  vm_recurrent_command_maintenance_actions: KcResourceClient
578
581
  volumes: KcResourceClient
579
582
  volume_attachments: KcResourceClient
@@ -594,7 +597,6 @@ class KcClient:
594
597
  route_table_attachments: KcResourceClient
595
598
  route_table_routes: KcResourceClient
596
599
  security_groups: KcResourceClient
597
- nat_gateways: KcResourceClient
598
600
 
599
601
  # Load balancer
600
602
  load_balancers: KcResourceClient
@@ -634,7 +636,6 @@ class KcClient:
634
636
  gitlabs: KcResourceClient
635
637
  gitlab_runners: KcResourceClient
636
638
  grafanas: KcResourceClient
637
- victoria_metrics: KcResourceClient
638
639
  ollamas: KcResourceClient
639
640
 
640
641
  # IaM / org
@@ -677,7 +678,7 @@ class KcClient:
677
678
 
678
679
  # Compute
679
680
  self.vms = _r("vm")
680
- self.vm_on_off_maintenance_actions = _r("vm-on-off-maintenance-action")
681
+ self.on_off_schedules = _r("on-off-schedule")
681
682
  self.vm_recurrent_command_maintenance_actions = _r("vm-recurrent-command-maintenance-action")
682
683
  self.volumes = _r("volume")
683
684
  self.volume_attachments = _r("volume-attachment")
@@ -698,7 +699,6 @@ class KcClient:
698
699
  self.route_table_attachments = _r("route-table-attachment")
699
700
  self.route_table_routes = _r("route-table-route")
700
701
  self.security_groups = _r("security-group")
701
- self.nat_gateways = _r("nat-gateway")
702
702
 
703
703
  # Load balancer
704
704
  self.load_balancers = _r("loadbalancer")
@@ -738,7 +738,6 @@ class KcClient:
738
738
  self.gitlabs = _r("gitlab")
739
739
  self.gitlab_runners = _r("gitlab-runner")
740
740
  self.grafanas = _r("grafana")
741
- self.victoria_metrics = _r("victoria-metrics")
742
741
  self.ollamas = _r("ollama")
743
742
 
744
743
  # IaM / org
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kc-sdk-python
3
- Version: 0.2.0
3
+ Version: 2.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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "kc-sdk-python"
7
- version = "0.2.0"
7
+ version = "2.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