stackit-logme 0.0.1a0__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 (41) hide show
  1. stackit/logme/__init__.py +71 -0
  2. stackit/logme/api/__init__.py +4 -0
  3. stackit/logme/api/default_api.py +4812 -0
  4. stackit/logme/api_client.py +626 -0
  5. stackit/logme/api_response.py +23 -0
  6. stackit/logme/configuration.py +111 -0
  7. stackit/logme/exceptions.py +198 -0
  8. stackit/logme/models/__init__.py +52 -0
  9. stackit/logme/models/backup.py +95 -0
  10. stackit/logme/models/create_backup_response_item.py +82 -0
  11. stackit/logme/models/create_instance_payload.py +96 -0
  12. stackit/logme/models/create_instance_response.py +81 -0
  13. stackit/logme/models/credentials.py +95 -0
  14. stackit/logme/models/credentials_list_item.py +81 -0
  15. stackit/logme/models/credentials_response.py +94 -0
  16. stackit/logme/models/error.py +82 -0
  17. stackit/logme/models/get_metrics_response.py +164 -0
  18. stackit/logme/models/instance.py +147 -0
  19. stackit/logme/models/instance_last_operation.py +99 -0
  20. stackit/logme/models/instance_parameters.py +229 -0
  21. stackit/logme/models/instance_parameters_groks_inner.py +81 -0
  22. stackit/logme/models/instance_schema.py +95 -0
  23. stackit/logme/models/list_backups_response.py +98 -0
  24. stackit/logme/models/list_credentials_response.py +98 -0
  25. stackit/logme/models/list_instances_response.py +98 -0
  26. stackit/logme/models/list_offerings_response.py +98 -0
  27. stackit/logme/models/list_restores_response.py +98 -0
  28. stackit/logme/models/model_schema.py +81 -0
  29. stackit/logme/models/offering.py +127 -0
  30. stackit/logme/models/partial_update_instance_payload.py +96 -0
  31. stackit/logme/models/plan.py +93 -0
  32. stackit/logme/models/raw_credentials.py +88 -0
  33. stackit/logme/models/restore.py +93 -0
  34. stackit/logme/models/trigger_restore_response.py +81 -0
  35. stackit/logme/models/update_backups_config_payload.py +81 -0
  36. stackit/logme/models/update_backups_config_response.py +81 -0
  37. stackit/logme/py.typed +0 -0
  38. stackit/logme/rest.py +148 -0
  39. stackit_logme-0.0.1a0.dist-info/METADATA +45 -0
  40. stackit_logme-0.0.1a0.dist-info/RECORD +41 -0
  41. stackit_logme-0.0.1a0.dist-info/WHEEL +4 -0
@@ -0,0 +1,81 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT LogMe API
5
+
6
+ The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
7
+
8
+ The version of the OpenAPI document: 1.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501 docstring might be too long
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 typing_extensions import Self
22
+
23
+
24
+ class CreateInstanceResponse(BaseModel):
25
+ """
26
+ CreateInstanceResponse
27
+ """
28
+
29
+ instance_id: StrictStr = Field(alias="instanceId")
30
+ __properties: ClassVar[List[str]] = ["instanceId"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.model_dump(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
45
+ return json.dumps(self.to_dict())
46
+
47
+ @classmethod
48
+ def from_json(cls, json_str: str) -> Optional[Self]:
49
+ """Create an instance of CreateInstanceResponse from a JSON string"""
50
+ return cls.from_dict(json.loads(json_str))
51
+
52
+ def to_dict(self) -> Dict[str, Any]:
53
+ """Return the dictionary representation of the model using alias.
54
+
55
+ This has the following differences from calling pydantic's
56
+ `self.model_dump(by_alias=True)`:
57
+
58
+ * `None` is only added to the output dict for nullable fields that
59
+ were set at model initialization. Other fields with value `None`
60
+ are ignored.
61
+ """
62
+ excluded_fields: Set[str] = set([])
63
+
64
+ _dict = self.model_dump(
65
+ by_alias=True,
66
+ exclude=excluded_fields,
67
+ exclude_none=True,
68
+ )
69
+ return _dict
70
+
71
+ @classmethod
72
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
73
+ """Create an instance of CreateInstanceResponse from a dict"""
74
+ if obj is None:
75
+ return None
76
+
77
+ if not isinstance(obj, dict):
78
+ return cls.model_validate(obj)
79
+
80
+ _obj = cls.model_validate({"instanceId": obj.get("instanceId")})
81
+ return _obj
@@ -0,0 +1,95 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT LogMe API
5
+
6
+ The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
7
+
8
+ The version of the OpenAPI document: 1.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501 docstring might be too long
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, StrictInt, StrictStr
21
+ from typing_extensions import Self
22
+
23
+
24
+ class Credentials(BaseModel):
25
+ """
26
+ Credentials
27
+ """
28
+
29
+ host: StrictStr
30
+ password: StrictStr
31
+ port: Optional[StrictInt] = None
32
+ syslog_drain_url: Optional[StrictStr] = None
33
+ uri: Optional[StrictStr] = None
34
+ username: StrictStr
35
+ __properties: ClassVar[List[str]] = ["host", "password", "port", "syslog_drain_url", "uri", "username"]
36
+
37
+ model_config = ConfigDict(
38
+ populate_by_name=True,
39
+ validate_assignment=True,
40
+ protected_namespaces=(),
41
+ )
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.model_dump(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
+ return json.dumps(self.to_dict())
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Optional[Self]:
54
+ """Create an instance of Credentials from a JSON string"""
55
+ return cls.from_dict(json.loads(json_str))
56
+
57
+ def to_dict(self) -> Dict[str, Any]:
58
+ """Return the dictionary representation of the model using alias.
59
+
60
+ This has the following differences from calling pydantic's
61
+ `self.model_dump(by_alias=True)`:
62
+
63
+ * `None` is only added to the output dict for nullable fields that
64
+ were set at model initialization. Other fields with value `None`
65
+ are ignored.
66
+ """
67
+ excluded_fields: Set[str] = set([])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of Credentials from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate(
86
+ {
87
+ "host": obj.get("host"),
88
+ "password": obj.get("password"),
89
+ "port": obj.get("port"),
90
+ "syslog_drain_url": obj.get("syslog_drain_url"),
91
+ "uri": obj.get("uri"),
92
+ "username": obj.get("username"),
93
+ }
94
+ )
95
+ return _obj
@@ -0,0 +1,81 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT LogMe API
5
+
6
+ The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
7
+
8
+ The version of the OpenAPI document: 1.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501 docstring might be too long
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, StrictStr
21
+ from typing_extensions import Self
22
+
23
+
24
+ class CredentialsListItem(BaseModel):
25
+ """
26
+ CredentialsListItem
27
+ """
28
+
29
+ id: StrictStr
30
+ __properties: ClassVar[List[str]] = ["id"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+ def to_str(self) -> str:
39
+ """Returns the string representation of the model using alias"""
40
+ return pprint.pformat(self.model_dump(by_alias=True))
41
+
42
+ def to_json(self) -> str:
43
+ """Returns the JSON representation of the model using alias"""
44
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
45
+ return json.dumps(self.to_dict())
46
+
47
+ @classmethod
48
+ def from_json(cls, json_str: str) -> Optional[Self]:
49
+ """Create an instance of CredentialsListItem from a JSON string"""
50
+ return cls.from_dict(json.loads(json_str))
51
+
52
+ def to_dict(self) -> Dict[str, Any]:
53
+ """Return the dictionary representation of the model using alias.
54
+
55
+ This has the following differences from calling pydantic's
56
+ `self.model_dump(by_alias=True)`:
57
+
58
+ * `None` is only added to the output dict for nullable fields that
59
+ were set at model initialization. Other fields with value `None`
60
+ are ignored.
61
+ """
62
+ excluded_fields: Set[str] = set([])
63
+
64
+ _dict = self.model_dump(
65
+ by_alias=True,
66
+ exclude=excluded_fields,
67
+ exclude_none=True,
68
+ )
69
+ return _dict
70
+
71
+ @classmethod
72
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
73
+ """Create an instance of CredentialsListItem from a dict"""
74
+ if obj is None:
75
+ return None
76
+
77
+ if not isinstance(obj, dict):
78
+ return cls.model_validate(obj)
79
+
80
+ _obj = cls.model_validate({"id": obj.get("id")})
81
+ return _obj
@@ -0,0 +1,94 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT LogMe API
5
+
6
+ The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
7
+
8
+ The version of the OpenAPI document: 1.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501 docstring might be too long
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, StrictStr
21
+ from typing_extensions import Self
22
+
23
+ from stackit.logme.models.raw_credentials import RawCredentials
24
+
25
+
26
+ class CredentialsResponse(BaseModel):
27
+ """
28
+ CredentialsResponse
29
+ """
30
+
31
+ id: StrictStr
32
+ raw: Optional[RawCredentials] = None
33
+ uri: StrictStr
34
+ __properties: ClassVar[List[str]] = ["id", "raw", "uri"]
35
+
36
+ model_config = ConfigDict(
37
+ populate_by_name=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
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of CredentialsResponse from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([])
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 raw
74
+ if self.raw:
75
+ _dict["raw"] = self.raw.to_dict()
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
+ """Create an instance of CredentialsResponse from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return cls.model_validate(obj)
86
+
87
+ _obj = cls.model_validate(
88
+ {
89
+ "id": obj.get("id"),
90
+ "raw": RawCredentials.from_dict(obj["raw"]) if obj.get("raw") is not None else None,
91
+ "uri": obj.get("uri"),
92
+ }
93
+ )
94
+ return _obj
@@ -0,0 +1,82 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT LogMe API
5
+
6
+ The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
7
+
8
+ The version of the OpenAPI document: 1.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501 docstring might be too long
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, StrictStr
21
+ from typing_extensions import Self
22
+
23
+
24
+ class Error(BaseModel):
25
+ """
26
+ Error
27
+ """
28
+
29
+ description: StrictStr
30
+ error: StrictStr
31
+ __properties: ClassVar[List[str]] = ["description", "error"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of Error 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 Error 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({"description": obj.get("description"), "error": obj.get("error")})
82
+ return _obj
@@ -0,0 +1,164 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ STACKIT LogMe API
5
+
6
+ The STACKIT LogMe API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
7
+
8
+ The version of the OpenAPI document: 1.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501 docstring might be too long
13
+
14
+ from __future__ import annotations
15
+
16
+ import json
17
+ import pprint
18
+ from typing import Any, ClassVar, Dict, List, Optional, Set, Union
19
+
20
+ from pydantic import (
21
+ BaseModel,
22
+ ConfigDict,
23
+ Field,
24
+ StrictBool,
25
+ StrictFloat,
26
+ StrictInt,
27
+ StrictStr,
28
+ )
29
+ from typing_extensions import Self
30
+
31
+
32
+ class GetMetricsResponse(BaseModel):
33
+ """
34
+ GetMetricsResponse
35
+ """
36
+
37
+ cpu_idle_time: Optional[StrictInt] = Field(default=None, alias="cpuIdleTime")
38
+ cpu_load_percent: Union[StrictFloat, StrictInt] = Field(alias="cpuLoadPercent")
39
+ cpu_system_time: Optional[StrictInt] = Field(default=None, alias="cpuSystemTime")
40
+ cpu_user_time: Optional[StrictInt] = Field(default=None, alias="cpuUserTime")
41
+ disk_ephemeral_total: StrictInt = Field(alias="diskEphemeralTotal")
42
+ disk_ephemeral_used: StrictInt = Field(alias="diskEphemeralUsed")
43
+ disk_persistent_total: StrictInt = Field(alias="diskPersistentTotal")
44
+ disk_persistent_used: StrictInt = Field(alias="diskPersistentUsed")
45
+ load1: Union[StrictFloat, StrictInt]
46
+ load15: Union[StrictFloat, StrictInt]
47
+ load5: Union[StrictFloat, StrictInt]
48
+ memory_total: StrictInt = Field(alias="memoryTotal")
49
+ memory_used: StrictInt = Field(alias="memoryUsed")
50
+ opensearch_dashboard_url: StrictStr = Field(alias="opensearchDashboardURL")
51
+ parachute_disk_ephemeral_activated: StrictBool = Field(alias="parachuteDiskEphemeralActivated")
52
+ parachute_disk_ephemeral_total: StrictInt = Field(alias="parachuteDiskEphemeralTotal")
53
+ parachute_disk_ephemeral_used: StrictInt = Field(alias="parachuteDiskEphemeralUsed")
54
+ parachute_disk_ephemeral_used_percent: StrictInt = Field(alias="parachuteDiskEphemeralUsedPercent")
55
+ parachute_disk_ephemeral_used_threshold: StrictInt = Field(alias="parachuteDiskEphemeralUsedThreshold")
56
+ parachute_disk_persistent_activated: StrictBool = Field(alias="parachuteDiskPersistentActivated")
57
+ parachute_disk_persistent_total: StrictInt = Field(alias="parachuteDiskPersistentTotal")
58
+ parachute_disk_persistent_used: StrictInt = Field(alias="parachuteDiskPersistentUsed")
59
+ parachute_disk_persistent_used_percent: StrictInt = Field(alias="parachuteDiskPersistentUsedPercent")
60
+ parachute_disk_persistent_used_threshold: StrictInt = Field(alias="parachuteDiskPersistentUsedThreshold")
61
+ __properties: ClassVar[List[str]] = [
62
+ "cpuIdleTime",
63
+ "cpuLoadPercent",
64
+ "cpuSystemTime",
65
+ "cpuUserTime",
66
+ "diskEphemeralTotal",
67
+ "diskEphemeralUsed",
68
+ "diskPersistentTotal",
69
+ "diskPersistentUsed",
70
+ "load1",
71
+ "load15",
72
+ "load5",
73
+ "memoryTotal",
74
+ "memoryUsed",
75
+ "opensearchDashboardURL",
76
+ "parachuteDiskEphemeralActivated",
77
+ "parachuteDiskEphemeralTotal",
78
+ "parachuteDiskEphemeralUsed",
79
+ "parachuteDiskEphemeralUsedPercent",
80
+ "parachuteDiskEphemeralUsedThreshold",
81
+ "parachuteDiskPersistentActivated",
82
+ "parachuteDiskPersistentTotal",
83
+ "parachuteDiskPersistentUsed",
84
+ "parachuteDiskPersistentUsedPercent",
85
+ "parachuteDiskPersistentUsedThreshold",
86
+ ]
87
+
88
+ model_config = ConfigDict(
89
+ populate_by_name=True,
90
+ validate_assignment=True,
91
+ protected_namespaces=(),
92
+ )
93
+
94
+ def to_str(self) -> str:
95
+ """Returns the string representation of the model using alias"""
96
+ return pprint.pformat(self.model_dump(by_alias=True))
97
+
98
+ def to_json(self) -> str:
99
+ """Returns the JSON representation of the model using alias"""
100
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
101
+ return json.dumps(self.to_dict())
102
+
103
+ @classmethod
104
+ def from_json(cls, json_str: str) -> Optional[Self]:
105
+ """Create an instance of GetMetricsResponse from a JSON string"""
106
+ return cls.from_dict(json.loads(json_str))
107
+
108
+ def to_dict(self) -> Dict[str, Any]:
109
+ """Return the dictionary representation of the model using alias.
110
+
111
+ This has the following differences from calling pydantic's
112
+ `self.model_dump(by_alias=True)`:
113
+
114
+ * `None` is only added to the output dict for nullable fields that
115
+ were set at model initialization. Other fields with value `None`
116
+ are ignored.
117
+ """
118
+ excluded_fields: Set[str] = set([])
119
+
120
+ _dict = self.model_dump(
121
+ by_alias=True,
122
+ exclude=excluded_fields,
123
+ exclude_none=True,
124
+ )
125
+ return _dict
126
+
127
+ @classmethod
128
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
129
+ """Create an instance of GetMetricsResponse from a dict"""
130
+ if obj is None:
131
+ return None
132
+
133
+ if not isinstance(obj, dict):
134
+ return cls.model_validate(obj)
135
+
136
+ _obj = cls.model_validate(
137
+ {
138
+ "cpuIdleTime": obj.get("cpuIdleTime"),
139
+ "cpuLoadPercent": obj.get("cpuLoadPercent"),
140
+ "cpuSystemTime": obj.get("cpuSystemTime"),
141
+ "cpuUserTime": obj.get("cpuUserTime"),
142
+ "diskEphemeralTotal": obj.get("diskEphemeralTotal"),
143
+ "diskEphemeralUsed": obj.get("diskEphemeralUsed"),
144
+ "diskPersistentTotal": obj.get("diskPersistentTotal"),
145
+ "diskPersistentUsed": obj.get("diskPersistentUsed"),
146
+ "load1": obj.get("load1"),
147
+ "load15": obj.get("load15"),
148
+ "load5": obj.get("load5"),
149
+ "memoryTotal": obj.get("memoryTotal"),
150
+ "memoryUsed": obj.get("memoryUsed"),
151
+ "opensearchDashboardURL": obj.get("opensearchDashboardURL"),
152
+ "parachuteDiskEphemeralActivated": obj.get("parachuteDiskEphemeralActivated"),
153
+ "parachuteDiskEphemeralTotal": obj.get("parachuteDiskEphemeralTotal"),
154
+ "parachuteDiskEphemeralUsed": obj.get("parachuteDiskEphemeralUsed"),
155
+ "parachuteDiskEphemeralUsedPercent": obj.get("parachuteDiskEphemeralUsedPercent"),
156
+ "parachuteDiskEphemeralUsedThreshold": obj.get("parachuteDiskEphemeralUsedThreshold"),
157
+ "parachuteDiskPersistentActivated": obj.get("parachuteDiskPersistentActivated"),
158
+ "parachuteDiskPersistentTotal": obj.get("parachuteDiskPersistentTotal"),
159
+ "parachuteDiskPersistentUsed": obj.get("parachuteDiskPersistentUsed"),
160
+ "parachuteDiskPersistentUsedPercent": obj.get("parachuteDiskPersistentUsedPercent"),
161
+ "parachuteDiskPersistentUsedThreshold": obj.get("parachuteDiskPersistentUsedThreshold"),
162
+ }
163
+ )
164
+ return _obj