stackit-edge 0.4.0__tar.gz → 0.6.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 (29) hide show
  1. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/PKG-INFO +3 -4
  2. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/pyproject.toml +7 -7
  3. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/__init__.py +9 -6
  4. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/api/default_api.py +241 -12
  5. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/api_client.py +5 -6
  6. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/api_response.py +0 -1
  7. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/configuration.py +5 -6
  8. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/exceptions.py +5 -5
  9. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/__init__.py +6 -5
  10. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/bad_request.py +5 -5
  11. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/create_instance_payload.py +5 -5
  12. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/instance.py +5 -5
  13. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/instance_list.py +5 -5
  14. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/kubeconfig.py +5 -5
  15. stackit_edge-0.6.0/src/stackit/edge/models/kubernetes_release_list.py +82 -0
  16. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/plan.py +5 -5
  17. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/plan_list.py +5 -5
  18. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/token.py +5 -5
  19. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/unauthorized_request.py +5 -5
  20. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/update_instance_by_name_payload.py +5 -5
  21. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/update_instance_payload.py +5 -5
  22. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/models/user.py +5 -5
  23. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/rest.py +5 -6
  24. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/.gitignore +0 -0
  25. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/LICENSE.md +0 -0
  26. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/NOTICE.txt +0 -0
  27. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/README.md +0 -0
  28. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/api/__init__.py +0 -0
  29. {stackit_edge-0.4.0 → stackit_edge-0.6.0}/src/stackit/edge/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackit-edge
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: STACKIT Edge Cloud 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,>=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-edge"
3
- version = "v0.4.0"
3
+ version = "v0.6.0"
4
4
  description = "STACKIT Edge Cloud API"
5
5
  authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
6
- requires-python = ">=3.9,<4"
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 Edge Cloud API
6
+ STACKIT Edge Cloud API
7
7
 
8
- This API provides endpoints for managing STACKIT Edge Cloud instances.
8
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
9
9
 
10
- The version of the OpenAPI document: 1beta1
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+ The version of the OpenAPI document: 1beta1
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
@@ -33,6 +32,7 @@ __all__ = [
33
32
  "Instance",
34
33
  "InstanceList",
35
34
  "Kubeconfig",
35
+ "KubernetesReleaseList",
36
36
  "Plan",
37
37
  "PlanList",
38
38
  "Token",
@@ -64,6 +64,9 @@ from stackit.edge.models.create_instance_payload import (
64
64
  from stackit.edge.models.instance import Instance as Instance
65
65
  from stackit.edge.models.instance_list import InstanceList as InstanceList
66
66
  from stackit.edge.models.kubeconfig import Kubeconfig as Kubeconfig
67
+ from stackit.edge.models.kubernetes_release_list import (
68
+ KubernetesReleaseList as KubernetesReleaseList,
69
+ )
67
70
  from stackit.edge.models.plan import Plan as Plan
68
71
  from stackit.edge.models.plan_list import PlanList as PlanList
69
72
  from stackit.edge.models.token import Token as Token
@@ -1,26 +1,20 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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
15
15
  from uuid import UUID
16
16
 
17
- from pydantic import (
18
- Field,
19
- StrictFloat,
20
- StrictInt,
21
- StrictStr,
22
- validate_call,
23
- )
17
+ from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call
24
18
  from stackit.core.configuration import Configuration
25
19
  from typing_extensions import Annotated
26
20
 
@@ -30,6 +24,7 @@ from stackit.edge.models.create_instance_payload import CreateInstancePayload
30
24
  from stackit.edge.models.instance import Instance
31
25
  from stackit.edge.models.instance_list import InstanceList
32
26
  from stackit.edge.models.kubeconfig import Kubeconfig
27
+ from stackit.edge.models.kubernetes_release_list import KubernetesReleaseList
33
28
  from stackit.edge.models.plan_list import PlanList
34
29
  from stackit.edge.models.token import Token
35
30
  from stackit.edge.models.update_instance_by_name_payload import (
@@ -2627,6 +2622,240 @@ class DefaultApi:
2627
2622
  _request_auth=_request_auth,
2628
2623
  )
2629
2624
 
2625
+ @validate_call
2626
+ def list_compatible_kubernetes_releases(
2627
+ self,
2628
+ talos_version: Annotated[StrictStr, Field(description="The name of the Talos release.")],
2629
+ _request_timeout: Union[
2630
+ None,
2631
+ Annotated[StrictFloat, Field(gt=0)],
2632
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2633
+ ] = None,
2634
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2635
+ _content_type: Optional[StrictStr] = None,
2636
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2637
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2638
+ ) -> KubernetesReleaseList:
2639
+ """list_compatible_kubernetes_releases
2640
+
2641
+
2642
+ :param talos_version: The name of the Talos release. (required)
2643
+ :type talos_version: str
2644
+ :param _request_timeout: timeout setting for this request. If one
2645
+ number provided, it will be total request
2646
+ timeout. It can also be a pair (tuple) of
2647
+ (connection, read) timeouts.
2648
+ :type _request_timeout: int, tuple(int, int), optional
2649
+ :param _request_auth: set to override the auth_settings for an a single
2650
+ request; this effectively ignores the
2651
+ authentication in the spec for a single request.
2652
+ :type _request_auth: dict, optional
2653
+ :param _content_type: force content-type for the request.
2654
+ :type _content_type: str, Optional
2655
+ :param _headers: set to override the headers for a single
2656
+ request; this effectively ignores the headers
2657
+ in the spec for a single request.
2658
+ :type _headers: dict, optional
2659
+ :param _host_index: set to override the host_index for a single
2660
+ request; this effectively ignores the host_index
2661
+ in the spec for a single request.
2662
+ :type _host_index: int, optional
2663
+ :return: Returns the result object.
2664
+ """ # noqa: E501
2665
+
2666
+ _param = self._list_compatible_kubernetes_releases_serialize(
2667
+ talos_version=talos_version,
2668
+ _request_auth=_request_auth,
2669
+ _content_type=_content_type,
2670
+ _headers=_headers,
2671
+ _host_index=_host_index,
2672
+ )
2673
+
2674
+ _response_types_map: Dict[str, Optional[str]] = {
2675
+ "200": "KubernetesReleaseList",
2676
+ "400": "BadRequest",
2677
+ "404": None,
2678
+ "500": None,
2679
+ }
2680
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2681
+ response_data.read()
2682
+ return self.api_client.response_deserialize(
2683
+ response_data=response_data,
2684
+ response_types_map=_response_types_map,
2685
+ ).data
2686
+
2687
+ @validate_call
2688
+ def list_compatible_kubernetes_releases_with_http_info(
2689
+ self,
2690
+ talos_version: Annotated[StrictStr, Field(description="The name of the Talos release.")],
2691
+ _request_timeout: Union[
2692
+ None,
2693
+ Annotated[StrictFloat, Field(gt=0)],
2694
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2695
+ ] = None,
2696
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2697
+ _content_type: Optional[StrictStr] = None,
2698
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2699
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2700
+ ) -> ApiResponse[KubernetesReleaseList]:
2701
+ """list_compatible_kubernetes_releases
2702
+
2703
+
2704
+ :param talos_version: The name of the Talos release. (required)
2705
+ :type talos_version: str
2706
+ :param _request_timeout: timeout setting for this request. If one
2707
+ number provided, it will be total request
2708
+ timeout. It can also be a pair (tuple) of
2709
+ (connection, read) timeouts.
2710
+ :type _request_timeout: int, tuple(int, int), optional
2711
+ :param _request_auth: set to override the auth_settings for an a single
2712
+ request; this effectively ignores the
2713
+ authentication in the spec for a single request.
2714
+ :type _request_auth: dict, optional
2715
+ :param _content_type: force content-type for the request.
2716
+ :type _content_type: str, Optional
2717
+ :param _headers: set to override the headers for a single
2718
+ request; this effectively ignores the headers
2719
+ in the spec for a single request.
2720
+ :type _headers: dict, optional
2721
+ :param _host_index: set to override the host_index for a single
2722
+ request; this effectively ignores the host_index
2723
+ in the spec for a single request.
2724
+ :type _host_index: int, optional
2725
+ :return: Returns the result object.
2726
+ """ # noqa: E501
2727
+
2728
+ _param = self._list_compatible_kubernetes_releases_serialize(
2729
+ talos_version=talos_version,
2730
+ _request_auth=_request_auth,
2731
+ _content_type=_content_type,
2732
+ _headers=_headers,
2733
+ _host_index=_host_index,
2734
+ )
2735
+
2736
+ _response_types_map: Dict[str, Optional[str]] = {
2737
+ "200": "KubernetesReleaseList",
2738
+ "400": "BadRequest",
2739
+ "404": None,
2740
+ "500": None,
2741
+ }
2742
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2743
+ response_data.read()
2744
+ return self.api_client.response_deserialize(
2745
+ response_data=response_data,
2746
+ response_types_map=_response_types_map,
2747
+ )
2748
+
2749
+ @validate_call
2750
+ def list_compatible_kubernetes_releases_without_preload_content(
2751
+ self,
2752
+ talos_version: Annotated[StrictStr, Field(description="The name of the Talos release.")],
2753
+ _request_timeout: Union[
2754
+ None,
2755
+ Annotated[StrictFloat, Field(gt=0)],
2756
+ Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]],
2757
+ ] = None,
2758
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2759
+ _content_type: Optional[StrictStr] = None,
2760
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2761
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2762
+ ) -> RESTResponseType:
2763
+ """list_compatible_kubernetes_releases
2764
+
2765
+
2766
+ :param talos_version: The name of the Talos release. (required)
2767
+ :type talos_version: str
2768
+ :param _request_timeout: timeout setting for this request. If one
2769
+ number provided, it will be total request
2770
+ timeout. It can also be a pair (tuple) of
2771
+ (connection, read) timeouts.
2772
+ :type _request_timeout: int, tuple(int, int), optional
2773
+ :param _request_auth: set to override the auth_settings for an a single
2774
+ request; this effectively ignores the
2775
+ authentication in the spec for a single request.
2776
+ :type _request_auth: dict, optional
2777
+ :param _content_type: force content-type for the request.
2778
+ :type _content_type: str, Optional
2779
+ :param _headers: set to override the headers for a single
2780
+ request; this effectively ignores the headers
2781
+ in the spec for a single request.
2782
+ :type _headers: dict, optional
2783
+ :param _host_index: set to override the host_index for a single
2784
+ request; this effectively ignores the host_index
2785
+ in the spec for a single request.
2786
+ :type _host_index: int, optional
2787
+ :return: Returns the result object.
2788
+ """ # noqa: E501
2789
+
2790
+ _param = self._list_compatible_kubernetes_releases_serialize(
2791
+ talos_version=talos_version,
2792
+ _request_auth=_request_auth,
2793
+ _content_type=_content_type,
2794
+ _headers=_headers,
2795
+ _host_index=_host_index,
2796
+ )
2797
+
2798
+ _response_types_map: Dict[str, Optional[str]] = {
2799
+ "200": "KubernetesReleaseList",
2800
+ "400": "BadRequest",
2801
+ "404": None,
2802
+ "500": None,
2803
+ }
2804
+ response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
2805
+ return response_data.response
2806
+
2807
+ def _list_compatible_kubernetes_releases_serialize(
2808
+ self,
2809
+ talos_version,
2810
+ _request_auth,
2811
+ _content_type,
2812
+ _headers,
2813
+ _host_index,
2814
+ ) -> RequestSerialized:
2815
+
2816
+ _host = None
2817
+
2818
+ _collection_formats: Dict[str, str] = {}
2819
+
2820
+ _path_params: Dict[str, str] = {}
2821
+ _query_params: List[Tuple[str, str]] = []
2822
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2823
+ _form_params: List[Tuple[str, str]] = []
2824
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2825
+ _body_params: Optional[bytes] = None
2826
+
2827
+ # process the path parameters
2828
+ # process the query parameters
2829
+ if talos_version is not None:
2830
+
2831
+ _query_params.append(("talosVersion", talos_version))
2832
+
2833
+ # process the header parameters
2834
+ # process the form parameters
2835
+ # process the body parameter
2836
+
2837
+ # set the HTTP header `Accept`
2838
+ if "Accept" not in _header_params:
2839
+ _header_params["Accept"] = self.api_client.select_header_accept(["application/json"])
2840
+
2841
+ # authentication setting
2842
+ _auth_settings: List[str] = []
2843
+
2844
+ return self.api_client.param_serialize(
2845
+ method="GET",
2846
+ resource_path="/v1beta1/listcompatiblekubernetesreleases",
2847
+ path_params=_path_params,
2848
+ query_params=_query_params,
2849
+ header_params=_header_params,
2850
+ body=_body_params,
2851
+ post_params=_form_params,
2852
+ files=_files,
2853
+ auth_settings=_auth_settings,
2854
+ collection_formats=_collection_formats,
2855
+ _host=_host,
2856
+ _request_auth=_request_auth,
2857
+ )
2858
+
2630
2859
  @validate_call
2631
2860
  def list_instances(
2632
2861
  self,
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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.edge.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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
5
+ STACKIT Edge Cloud API
6
6
 
7
- This API provides endpoints for managing STACKIT Edge Cloud instances.
7
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
8
8
 
9
- The version of the OpenAPI document: 1beta1
10
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+ The version of the OpenAPI document: 1beta1
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
  # import models into model package
@@ -18,6 +18,7 @@ from stackit.edge.models.create_instance_payload import CreateInstancePayload
18
18
  from stackit.edge.models.instance import Instance
19
19
  from stackit.edge.models.instance_list import InstanceList
20
20
  from stackit.edge.models.kubeconfig import Kubeconfig
21
+ from stackit.edge.models.kubernetes_release_list import KubernetesReleaseList
21
22
  from stackit.edge.models.plan import Plan
22
23
  from stackit.edge.models.plan_list import PlanList
23
24
  from stackit.edge.models.token import Token
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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,82 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT Edge Cloud API
5
+
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
+
8
+ The version of the OpenAPI document: 1beta1
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, StrictStr
21
+ from pydantic_core import to_jsonable_python
22
+ from typing_extensions import Self
23
+
24
+
25
+ class KubernetesReleaseList(BaseModel):
26
+ """
27
+ A list of compatible Kubernetes releases.
28
+ """ # noqa: E501
29
+
30
+ k8s_releases: List[StrictStr] = Field(description="Array of Kubernetes version strings.")
31
+ __properties: ClassVar[List[str]] = ["k8s_releases"]
32
+
33
+ model_config = ConfigDict(
34
+ validate_by_name=True,
35
+ validate_by_alias=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ return json.dumps(to_jsonable_python(self.to_dict()))
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of KubernetesReleaseList from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([])
64
+
65
+ _dict = self.model_dump(
66
+ by_alias=True,
67
+ exclude=excluded_fields,
68
+ exclude_none=True,
69
+ )
70
+ return _dict
71
+
72
+ @classmethod
73
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
74
+ """Create an instance of KubernetesReleaseList from a dict"""
75
+ if obj is None:
76
+ return None
77
+
78
+ if not isinstance(obj, dict):
79
+ return cls.model_validate(obj)
80
+
81
+ _obj = cls.model_validate({"k8s_releases": obj.get("k8s_releases")})
82
+ return _obj
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- STACKIT Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 Edge Cloud API
4
+ STACKIT Edge Cloud API
5
5
 
6
- This API provides endpoints for managing STACKIT Edge Cloud instances.
6
+ This API provides endpoints for managing STACKIT Edge Cloud instances.
7
7
 
8
- The version of the OpenAPI document: 1beta1
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+ The version of the OpenAPI document: 1beta1
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 io
@@ -21,7 +21,6 @@ from stackit.core.configuration import Configuration
21
21
 
22
22
  from stackit.edge.exceptions import ApiException, ApiValueError
23
23
 
24
-
25
24
  RESTResponseType = requests.Response
26
25
 
27
26
 
File without changes
File without changes
File without changes
File without changes