platform-api-python-client 4.15.0__py3-none-any.whl → 4.20.0__py3-none-any.whl

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 (59) hide show
  1. platform_api_python_client/__init__.py +44 -3
  2. platform_api_python_client/api/external_api.py +4217 -1581
  3. platform_api_python_client/api_client.py +1 -1
  4. platform_api_python_client/configuration.py +1 -1
  5. platform_api_python_client/models/__init__.py +43 -2
  6. platform_api_python_client/models/argo_rollouts.py +89 -0
  7. platform_api_python_client/models/cert_manager.py +89 -0
  8. platform_api_python_client/models/cloud_provider.py +39 -0
  9. platform_api_python_client/models/cluster_components.py +193 -0
  10. platform_api_python_client/models/cluster_config.py +91 -0
  11. platform_api_python_client/models/cluster_credential.py +91 -0
  12. platform_api_python_client/models/cluster_registration_request.py +110 -0
  13. platform_api_python_client/models/{create_url_response.py → cluster_registration_response.py} +8 -9
  14. platform_api_python_client/models/create_block_volume_request.py +108 -0
  15. platform_api_python_client/models/create_c_serve_v3_deployment_request.py +3 -1
  16. platform_api_python_client/models/create_compute_deployment_request.py +14 -3
  17. platform_api_python_client/models/create_compute_deployment_response.py +3 -10
  18. platform_api_python_client/models/create_inference_v3_deployment_request.py +3 -1
  19. platform_api_python_client/models/create_job_deployment_request.py +15 -2
  20. platform_api_python_client/models/create_object_volume_request.py +136 -0
  21. platform_api_python_client/models/create_service_account_request.py +97 -0
  22. platform_api_python_client/models/create_service_account_response.py +120 -0
  23. platform_api_python_client/models/create_volume_request.py +140 -0
  24. platform_api_python_client/models/external_dns.py +89 -0
  25. platform_api_python_client/models/final_stack.py +89 -0
  26. platform_api_python_client/models/fluent_bit.py +89 -0
  27. platform_api_python_client/models/{create_url_request.py → generate_service_account_secret_response.py} +7 -9
  28. platform_api_python_client/models/get_block_volume_response.py +113 -0
  29. platform_api_python_client/models/get_compute_deployment_response.py +12 -1
  30. platform_api_python_client/models/get_job_deployment_response.py +13 -2
  31. platform_api_python_client/models/get_object_volume_response.py +141 -0
  32. platform_api_python_client/models/get_volume_response.py +140 -0
  33. platform_api_python_client/models/gpu_operator.py +89 -0
  34. platform_api_python_client/models/ingress_nginx.py +89 -0
  35. platform_api_python_client/models/istio.py +98 -0
  36. platform_api_python_client/models/istio_cni_overrides.py +99 -0
  37. platform_api_python_client/models/istio_cni_subchart_overrides.py +96 -0
  38. platform_api_python_client/models/istio_overrides.py +96 -0
  39. platform_api_python_client/models/keda.py +89 -0
  40. platform_api_python_client/models/kube_prometheus_stack.py +89 -0
  41. platform_api_python_client/models/list_service_accounts_response.py +95 -0
  42. platform_api_python_client/models/list_volumes_response.py +95 -0
  43. platform_api_python_client/models/longhorn.py +89 -0
  44. platform_api_python_client/models/metrics_server.py +89 -0
  45. platform_api_python_client/models/network_operator.py +89 -0
  46. platform_api_python_client/models/object_storage_provider.py +36 -0
  47. platform_api_python_client/models/opentelemetry_collector.py +89 -0
  48. platform_api_python_client/models/prometheus_adapter.py +89 -0
  49. platform_api_python_client/models/service_account_response.py +118 -0
  50. platform_api_python_client/models/spire.py +89 -0
  51. platform_api_python_client/models/spire_crds.py +89 -0
  52. platform_api_python_client/models/teleport_kube_agent.py +89 -0
  53. platform_api_python_client/models/update_service_account_request.py +107 -0
  54. platform_api_python_client/models/volume_access_mode.py +37 -0
  55. platform_api_python_client/models/volume_status.py +37 -0
  56. {platform_api_python_client-4.15.0.dist-info → platform_api_python_client-4.20.0.dist-info}/METADATA +1 -1
  57. {platform_api_python_client-4.15.0.dist-info → platform_api_python_client-4.20.0.dist-info}/RECORD +59 -18
  58. {platform_api_python_client-4.15.0.dist-info → platform_api_python_client-4.20.0.dist-info}/WHEEL +1 -1
  59. {platform_api_python_client-4.15.0.dist-info → platform_api_python_client-4.20.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class GpuOperator(BaseModel):
26
+ """
27
+ GpuOperator
28
+ """ # noqa: E501
29
+ enabled: Optional[StrictBool] = True
30
+ values: Optional[Dict[str, Any]] = None
31
+ __properties: ClassVar[List[str]] = ["enabled", "values"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
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
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of GpuOperator from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
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 GpuOperator 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({
84
+ "enabled": obj.get("enabled") if obj.get("enabled") is not None else True,
85
+ "values": obj.get("values")
86
+ })
87
+ return _obj
88
+
89
+
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class IngressNginx(BaseModel):
26
+ """
27
+ IngressNginx
28
+ """ # noqa: E501
29
+ enabled: Optional[StrictBool] = True
30
+ values: Optional[Dict[str, Any]] = None
31
+ __properties: ClassVar[List[str]] = ["enabled", "values"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
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
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of IngressNginx from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
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 IngressNginx 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({
84
+ "enabled": obj.get("enabled") if obj.get("enabled") is not None else True,
85
+ "values": obj.get("values")
86
+ })
87
+ return _obj
88
+
89
+
@@ -0,0 +1,98 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from platform_api_python_client.models.istio_overrides import IstioOverrides
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class Istio(BaseModel):
27
+ """
28
+ Istio
29
+ """ # noqa: E501
30
+ enabled: Optional[StrictBool] = True
31
+ values: Optional[IstioOverrides] = None
32
+ __properties: ClassVar[List[str]] = ["enabled", "values"]
33
+
34
+ model_config = ConfigDict(
35
+ populate_by_name=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of Istio 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
+
68
+ _dict = self.model_dump(
69
+ by_alias=True,
70
+ exclude=excluded_fields,
71
+ exclude_none=True,
72
+ )
73
+ # override the default output from pydantic by calling `to_dict()` of values
74
+ if self.values:
75
+ _dict['values'] = self.values.to_dict()
76
+ # set to None if values (nullable) is None
77
+ # and model_fields_set contains the field
78
+ if self.values is None and "values" in self.model_fields_set:
79
+ _dict['values'] = None
80
+
81
+ return _dict
82
+
83
+ @classmethod
84
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
85
+ """Create an instance of Istio from a dict"""
86
+ if obj is None:
87
+ return None
88
+
89
+ if not isinstance(obj, dict):
90
+ return cls.model_validate(obj)
91
+
92
+ _obj = cls.model_validate({
93
+ "enabled": obj.get("enabled") if obj.get("enabled") is not None else True,
94
+ "values": IstioOverrides.from_dict(obj["values"]) if obj.get("values") is not None else None
95
+ })
96
+ return _obj
97
+
98
+
@@ -0,0 +1,99 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class IstioCniOverrides(BaseModel):
26
+ """
27
+ IstioCniOverrides
28
+ """ # noqa: E501
29
+ cni_bin_dir: Optional[StrictStr] = Field(default=None, alias="cniBinDir")
30
+ cni_conf_dir: Optional[StrictStr] = Field(default=None, alias="cniConfDir")
31
+ __properties: ClassVar[List[str]] = ["cniBinDir", "cniConfDir"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
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
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of IstioCniOverrides from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ # set to None if cni_bin_dir (nullable) is None
73
+ # and model_fields_set contains the field
74
+ if self.cni_bin_dir is None and "cni_bin_dir" in self.model_fields_set:
75
+ _dict['cniBinDir'] = None
76
+
77
+ # set to None if cni_conf_dir (nullable) is None
78
+ # and model_fields_set contains the field
79
+ if self.cni_conf_dir is None and "cni_conf_dir" in self.model_fields_set:
80
+ _dict['cniConfDir'] = None
81
+
82
+ return _dict
83
+
84
+ @classmethod
85
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
86
+ """Create an instance of IstioCniOverrides from a dict"""
87
+ if obj is None:
88
+ return None
89
+
90
+ if not isinstance(obj, dict):
91
+ return cls.model_validate(obj)
92
+
93
+ _obj = cls.model_validate({
94
+ "cniBinDir": obj.get("cniBinDir"),
95
+ "cniConfDir": obj.get("cniConfDir")
96
+ })
97
+ return _obj
98
+
99
+
@@ -0,0 +1,96 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class IstioCniSubchartOverrides(BaseModel):
27
+ """
28
+ IstioCniSubchartOverrides
29
+ """ # noqa: E501
30
+ cni: Optional[IstioCniOverrides] = None
31
+ __properties: ClassVar[List[str]] = ["cni"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
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
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of IstioCniSubchartOverrides from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ # override the default output from pydantic by calling `to_dict()` of cni
73
+ if self.cni:
74
+ _dict['cni'] = self.cni.to_dict()
75
+ # set to None if cni (nullable) is None
76
+ # and model_fields_set contains the field
77
+ if self.cni is None and "cni" in self.model_fields_set:
78
+ _dict['cni'] = None
79
+
80
+ return _dict
81
+
82
+ @classmethod
83
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
+ """Create an instance of IstioCniSubchartOverrides from a dict"""
85
+ if obj is None:
86
+ return None
87
+
88
+ if not isinstance(obj, dict):
89
+ return cls.model_validate(obj)
90
+
91
+ _obj = cls.model_validate({
92
+ "cni": IstioCniOverrides.from_dict(obj["cni"]) if obj.get("cni") is not None else None
93
+ })
94
+ return _obj
95
+
96
+
@@ -0,0 +1,96 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class IstioOverrides(BaseModel):
27
+ """
28
+ IstioOverrides
29
+ """ # noqa: E501
30
+ istio_cni: Optional[IstioCniSubchartOverrides] = Field(default=None, alias="istio-cni")
31
+ __properties: ClassVar[List[str]] = ["istio-cni"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
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
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of IstioOverrides from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ # override the default output from pydantic by calling `to_dict()` of istio_cni
73
+ if self.istio_cni:
74
+ _dict['istio-cni'] = self.istio_cni.to_dict()
75
+ # set to None if istio_cni (nullable) is None
76
+ # and model_fields_set contains the field
77
+ if self.istio_cni is None and "istio_cni" in self.model_fields_set:
78
+ _dict['istio-cni'] = None
79
+
80
+ return _dict
81
+
82
+ @classmethod
83
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
+ """Create an instance of IstioOverrides from a dict"""
85
+ if obj is None:
86
+ return None
87
+
88
+ if not isinstance(obj, dict):
89
+ return cls.model_validate(obj)
90
+
91
+ _obj = cls.model_validate({
92
+ "istio-cni": IstioCniSubchartOverrides.from_dict(obj["istio-cni"]) if obj.get("istio-cni") is not None else None
93
+ })
94
+ return _obj
95
+
96
+
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class Keda(BaseModel):
26
+ """
27
+ Keda
28
+ """ # noqa: E501
29
+ enabled: Optional[StrictBool] = True
30
+ values: Optional[Dict[str, Any]] = None
31
+ __properties: ClassVar[List[str]] = ["enabled", "values"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
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
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of Keda from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
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 Keda 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({
84
+ "enabled": obj.get("enabled") if obj.get("enabled") is not None else True,
85
+ "values": obj.get("values")
86
+ })
87
+ return _obj
88
+
89
+