stackit-ske 1.11.0__tar.gz → 1.13.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.
Files changed (62) hide show
  1. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/PKG-INFO +3 -4
  2. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/pyproject.toml +7 -7
  3. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/__init__.py +7 -6
  4. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/api/default_api.py +26 -11
  5. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/api_client.py +5 -6
  6. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/api_response.py +0 -1
  7. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/configuration.py +5 -6
  8. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/exceptions.py +5 -5
  9. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/__init__.py +6 -5
  10. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/access.py +5 -5
  11. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/access_scope.py +5 -5
  12. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/acl.py +5 -5
  13. stackit_ske-1.13.0/src/stackit/ske/models/audit.py +84 -0
  14. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/availability_zone.py +5 -5
  15. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/cluster.py +31 -7
  16. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/cluster_error.py +5 -5
  17. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/cluster_status.py +5 -5
  18. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/cluster_status_state.py +5 -5
  19. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/create_kubeconfig_payload.py +5 -5
  20. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/create_or_update_cluster_payload.py +12 -5
  21. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/credentials_rotation_state.py +5 -5
  22. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/cri.py +5 -5
  23. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/dns.py +5 -5
  24. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/expiration_status.py +5 -5
  25. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/expiration_status_kubernetes.py +5 -5
  26. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/expiration_status_nodepool.py +5 -5
  27. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/extension.py +5 -5
  28. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/get_provider_options_request_version_state.py +5 -5
  29. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/hibernation.py +5 -5
  30. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/hibernation_schedule.py +5 -5
  31. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/idp.py +5 -5
  32. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/idp_kubeconfig.py +5 -5
  33. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/image.py +5 -5
  34. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/kubeconfig.py +5 -5
  35. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/kubernetes.py +5 -5
  36. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/kubernetes_version.py +5 -5
  37. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/list_clusters_response.py +5 -5
  38. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/login_kubeconfig.py +5 -5
  39. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/machine.py +5 -5
  40. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/machine_image.py +5 -5
  41. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/machine_image_version.py +5 -5
  42. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/machine_type.py +5 -5
  43. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/maintenance.py +5 -5
  44. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/maintenance_auto_update.py +5 -5
  45. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/network.py +5 -5
  46. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/nodepool.py +5 -5
  47. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/nodepool_kubernetes.py +5 -5
  48. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/observability.py +5 -5
  49. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/provider_options.py +5 -5
  50. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/runtime_error.py +5 -5
  51. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/taint.py +5 -5
  52. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/time_window.py +5 -5
  53. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/v2_control_plane_network.py +5 -5
  54. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/volume.py +5 -5
  55. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/models/volume_type.py +5 -5
  56. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/rest.py +5 -6
  57. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/.gitignore +0 -0
  58. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/LICENSE.md +0 -0
  59. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/NOTICE.txt +0 -0
  60. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/README.md +0 -0
  61. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/api/__init__.py +0 -0
  62. {stackit_ske-1.11.0 → stackit_ske-1.13.0}/src/stackit/ske/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackit-ske
3
- Version: 1.11.0
3
+ Version: 1.13.0
4
4
  Summary: SKE-API
5
5
  Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
6
6
  Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
@@ -10,16 +10,15 @@ License-File: NOTICE.txt
10
10
  Classifier: License :: OSI Approved :: Apache Software License
11
11
  Classifier: Operating System :: OS Independent
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.9
14
13
  Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
18
17
  Classifier: Programming Language :: Python :: 3.14
19
- Requires-Python: <4.0,>=3.9
18
+ Requires-Python: <4.0,>=3.10
20
19
  Requires-Dist: pydantic>=2.9.2
21
20
  Requires-Dist: python-dateutil>=2.9.0.post0
22
- Requires-Dist: requests>=2.32.3
21
+ Requires-Dist: requests>=2.33.0
23
22
  Requires-Dist: stackit-core>=0.0.1a
24
23
  Description-Content-Type: text/markdown
25
24
 
@@ -1,15 +1,14 @@
1
1
  [project]
2
2
  name = "stackit-ske"
3
- version = "v1.11.0"
3
+ version = "v1.13.0"
4
4
  description = "SKE-API"
5
5
  authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
6
- requires-python = ">=3.9,<4.0"
6
+ requires-python = ">=3.10,<4.0"
7
7
  readme = "README.md"
8
8
  classifiers = [
9
9
  "Programming Language :: Python :: 3",
10
10
  "License :: OSI Approved :: Apache Software License",
11
11
  "Operating System :: OS Independent",
12
- "Programming Language :: Python :: 3.9",
13
12
  "Programming Language :: Python :: 3.10",
14
13
  "Programming Language :: Python :: 3.11",
15
14
  "Programming Language :: Python :: 3.12",
@@ -18,7 +17,7 @@ classifiers = [
18
17
  ]
19
18
  dependencies = [
20
19
  "stackit-core>=0.0.1a",
21
- "requests>=2.32.3",
20
+ "requests>=2.33.0",
22
21
  "pydantic>=2.9.2",
23
22
  "python-dateutil>=2.9.0.post0",
24
23
  ]
@@ -29,8 +28,8 @@ Issues = "https://github.com/stackitcloud/stackit-sdk-python/issues"
29
28
 
30
29
  [dependency-groups]
31
30
  dev = [
32
- "black>=24.8.0",
33
- "pytest>=8.3.3",
31
+ "black>=26.3.1",
32
+ "pytest>=9.1.1",
34
33
  "flake8>=5.0.3 ; python_full_version < '3.12'",
35
34
  "flake8>=6.0.1 ; python_full_version >= '3.12'",
36
35
  "flake8-black>=0.3.6",
@@ -102,7 +101,8 @@ show-source = false
102
101
  max-line-length = 120
103
102
  # E203,W503 and E704 are incompatible with the formatter black
104
103
  # W291 needs to be disabled because some doc-strings get generated with trailing whitespace but black won't re-format comments
105
- ignore = ["E203", "W503", "E704", "W291"]
104
+ # fixing B042 in upstream exceptions.mustache would be a breaking change
105
+ ignore = ["E203", "W503", "E704", "W291", "B042"]
106
106
  inline-quotes = '"'
107
107
  docstring-quotes = '"""'
108
108
  multiline-quotes = '"""'
@@ -3,17 +3,16 @@
3
3
  # flake8: noqa
4
4
 
5
5
  """
6
- STACKIT Kubernetes Engine API
6
+ STACKIT Kubernetes Engine API
7
7
 
8
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
8
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
9
9
 
10
- The version of the OpenAPI document: 2.0
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+ The version of the OpenAPI document: 2.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
13
- Do not edit the class manually.
13
+ Do not edit the class manually.
14
14
  """ # noqa: E501
15
15
 
16
-
17
16
  __version__ = "1.0.0"
18
17
 
19
18
  # Define package exports
@@ -31,6 +30,7 @@ __all__ = [
31
30
  "ACL",
32
31
  "Access",
33
32
  "AccessScope",
33
+ "Audit",
34
34
  "AvailabilityZone",
35
35
  "CRI",
36
36
  "Cluster",
@@ -93,6 +93,7 @@ from stackit.ske.models.access_scope import AccessScope as AccessScope
93
93
 
94
94
  # import models into sdk package
95
95
  from stackit.ske.models.acl import ACL as ACL
96
+ from stackit.ske.models.audit import Audit as Audit
96
97
  from stackit.ske.models.availability_zone import AvailabilityZone as AvailabilityZone
97
98
  from stackit.ske.models.cluster import Cluster as Cluster
98
99
  from stackit.ske.models.cluster_error import ClusterError as ClusterError
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from typing import Any, Dict, List, Optional, Tuple, Union
@@ -609,7 +609,12 @@ class DefaultApi:
609
609
  self,
610
610
  project_id: StrictStr,
611
611
  region: StrictStr,
612
- cluster_name: StrictStr,
612
+ cluster_name: Annotated[
613
+ StrictStr,
614
+ Field(
615
+ description="Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long."
616
+ ),
617
+ ],
613
618
  create_or_update_cluster_payload: CreateOrUpdateClusterPayload,
614
619
  _request_timeout: Union[
615
620
  None,
@@ -629,7 +634,7 @@ class DefaultApi:
629
634
  :type project_id: str
630
635
  :param region: (required)
631
636
  :type region: str
632
- :param cluster_name: (required)
637
+ :param cluster_name: Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. (required)
633
638
  :type cluster_name: str
634
639
  :param create_or_update_cluster_payload: (required)
635
640
  :type create_or_update_cluster_payload: CreateOrUpdateClusterPayload
@@ -684,7 +689,12 @@ class DefaultApi:
684
689
  self,
685
690
  project_id: StrictStr,
686
691
  region: StrictStr,
687
- cluster_name: StrictStr,
692
+ cluster_name: Annotated[
693
+ StrictStr,
694
+ Field(
695
+ description="Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long."
696
+ ),
697
+ ],
688
698
  create_or_update_cluster_payload: CreateOrUpdateClusterPayload,
689
699
  _request_timeout: Union[
690
700
  None,
@@ -704,7 +714,7 @@ class DefaultApi:
704
714
  :type project_id: str
705
715
  :param region: (required)
706
716
  :type region: str
707
- :param cluster_name: (required)
717
+ :param cluster_name: Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. (required)
708
718
  :type cluster_name: str
709
719
  :param create_or_update_cluster_payload: (required)
710
720
  :type create_or_update_cluster_payload: CreateOrUpdateClusterPayload
@@ -759,7 +769,12 @@ class DefaultApi:
759
769
  self,
760
770
  project_id: StrictStr,
761
771
  region: StrictStr,
762
- cluster_name: StrictStr,
772
+ cluster_name: Annotated[
773
+ StrictStr,
774
+ Field(
775
+ description="Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long."
776
+ ),
777
+ ],
763
778
  create_or_update_cluster_payload: CreateOrUpdateClusterPayload,
764
779
  _request_timeout: Union[
765
780
  None,
@@ -779,7 +794,7 @@ class DefaultApi:
779
794
  :type project_id: str
780
795
  :param region: (required)
781
796
  :type region: str
782
- :param cluster_name: (required)
797
+ :param cluster_name: Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long. (required)
783
798
  :type cluster_name: str
784
799
  :param create_or_update_cluster_payload: (required)
785
800
  :type create_or_update_cluster_payload: CreateOrUpdateClusterPayload
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import datetime
@@ -36,7 +36,6 @@ from stackit.ske.exceptions import (
36
36
  ApiException,
37
37
  )
38
38
 
39
-
40
39
  RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
41
40
 
42
41
 
@@ -6,7 +6,6 @@ from typing import Generic, Mapping, Optional, TypeVar
6
6
 
7
7
  from pydantic import BaseModel, Field, StrictBytes, StrictInt
8
8
 
9
-
10
9
  T = TypeVar("T")
11
10
 
12
11
 
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  import sys
@@ -18,7 +18,6 @@ from typing_extensions import NotRequired
18
18
 
19
19
  import os
20
20
 
21
-
22
21
  ServerVariablesT = Dict[str, str]
23
22
 
24
23
 
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from typing import Any, Optional
@@ -2,14 +2,14 @@
2
2
 
3
3
  # flake8: noqa
4
4
  """
5
- STACKIT Kubernetes Engine API
5
+ STACKIT Kubernetes Engine API
6
6
 
7
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
8
8
 
9
- The version of the OpenAPI document: 2.0
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 2.0
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
- Do not edit the class manually.
12
+ Do not edit the class manually.
13
13
  """ # noqa: E501
14
14
 
15
15
  from stackit.ske.models.access import Access
@@ -17,6 +17,7 @@ from stackit.ske.models.access_scope import AccessScope
17
17
 
18
18
  # import models into model package
19
19
  from stackit.ske.models.acl import ACL
20
+ from stackit.ske.models.audit import Audit
20
21
  from stackit.ske.models.availability_zone import AvailabilityZone
21
22
  from stackit.ske.models.cluster import Cluster
22
23
  from stackit.ske.models.cluster_error import ClusterError
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -0,0 +1,84 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT Kubernetes Engine API
5
+
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
+
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ from __future__ import annotations
15
+
16
+ import json
17
+ import pprint
18
+ from typing import Any, ClassVar, Dict, List, Optional, Set
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool
21
+ from pydantic_core import to_jsonable_python
22
+ from typing_extensions import Self
23
+
24
+
25
+ class Audit(BaseModel):
26
+ """
27
+ Audit
28
+ """ # noqa: E501
29
+
30
+ enabled: StrictBool = Field(
31
+ description="Enable cluster audit log forwarding to a Telemetry Router. ⚠️ Note: This feature is in private preview. Enabling audit logging is only possible for enabled accounts. Otherwise the request will be rejected."
32
+ )
33
+ __properties: ClassVar[List[str]] = ["enabled"]
34
+
35
+ model_config = ConfigDict(
36
+ validate_by_name=True,
37
+ validate_by_alias=True,
38
+ validate_assignment=True,
39
+ protected_namespaces=(),
40
+ )
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ return json.dumps(to_jsonable_python(self.to_dict()))
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of Audit from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ """
65
+ excluded_fields: Set[str] = set([])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of Audit from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({"enabled": obj.get("enabled")})
84
+ return _obj
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -1,27 +1,29 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
15
15
 
16
16
  import json
17
17
  import pprint
18
+ import re # noqa: F401
18
19
  from typing import Any, ClassVar, Dict, List, Optional, Set
19
20
 
20
- from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, field_validator
21
22
  from pydantic_core import to_jsonable_python
22
23
  from typing_extensions import Annotated, Self
23
24
 
24
25
  from stackit.ske.models.access import Access
26
+ from stackit.ske.models.audit import Audit
25
27
  from stackit.ske.models.cluster_status import ClusterStatus
26
28
  from stackit.ske.models.extension import Extension
27
29
  from stackit.ske.models.hibernation import Hibernation
@@ -37,16 +39,21 @@ class Cluster(BaseModel):
37
39
  """ # noqa: E501
38
40
 
39
41
  access: Optional[Access] = None
42
+ audit: Optional[Audit] = None
40
43
  extensions: Optional[Extension] = None
41
44
  hibernation: Optional[Hibernation] = None
42
45
  kubernetes: Kubernetes
43
46
  maintenance: Optional[Maintenance] = None
44
- name: Optional[StrictStr] = None
47
+ name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=11)]] = Field(
48
+ default=None,
49
+ description="Use lowercase alphanumeric characters or -, must start and end with an alphanumeric character, and be between 1 and 11 characters long.",
50
+ )
45
51
  network: Optional[Network] = None
46
52
  nodepools: Annotated[List[Nodepool], Field(min_length=1, max_length=50)]
47
53
  status: Optional[ClusterStatus] = None
48
54
  __properties: ClassVar[List[str]] = [
49
55
  "access",
56
+ "audit",
50
57
  "extensions",
51
58
  "hibernation",
52
59
  "kubernetes",
@@ -57,6 +64,19 @@ class Cluster(BaseModel):
57
64
  "status",
58
65
  ]
59
66
 
67
+ @field_validator("name")
68
+ def name_validate_regular_expression(cls, value):
69
+ """Validates the regular expression"""
70
+ if value is None:
71
+ return value
72
+
73
+ if not isinstance(value, str):
74
+ value = str(value)
75
+
76
+ if not re.match(r"^[a-z0-9]([a-z0-9-]{0,9}[a-z0-9])?$", value):
77
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]([a-z0-9-]{0,9}[a-z0-9])?$/")
78
+ return value
79
+
60
80
  model_config = ConfigDict(
61
81
  validate_by_name=True,
62
82
  validate_by_alias=True,
@@ -102,6 +122,9 @@ class Cluster(BaseModel):
102
122
  # override the default output from pydantic by calling `to_dict()` of access
103
123
  if self.access:
104
124
  _dict["access"] = self.access.to_dict()
125
+ # override the default output from pydantic by calling `to_dict()` of audit
126
+ if self.audit:
127
+ _dict["audit"] = self.audit.to_dict()
105
128
  # override the default output from pydantic by calling `to_dict()` of extensions
106
129
  if self.extensions:
107
130
  _dict["extensions"] = self.extensions.to_dict()
@@ -141,6 +164,7 @@ class Cluster(BaseModel):
141
164
  _obj = cls.model_validate(
142
165
  {
143
166
  "access": Access.from_dict(obj["access"]) if obj.get("access") is not None else None,
167
+ "audit": Audit.from_dict(obj["audit"]) if obj.get("audit") is not None else None,
144
168
  "extensions": Extension.from_dict(obj["extensions"]) if obj.get("extensions") is not None else None,
145
169
  "hibernation": (
146
170
  Hibernation.from_dict(obj["hibernation"]) if obj.get("hibernation") is not None else None
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Kubernetes Engine API
4
+ STACKIT Kubernetes Engine API
5
5
 
6
- The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
6
+ The SKE API provides endpoints to create, update or delete clusters within STACKIT projects and to trigger further cluster management tasks.
7
7
 
8
- The version of the OpenAPI document: 2.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 2.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
10
 
11
- Do not edit the class manually.
11
+ Do not edit the class manually.
12
12
  """ # noqa: E501
13
13
 
14
14
  from __future__ import annotations