lightning-sdk 2025.10.8__py3-none-any.whl → 2025.10.14__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 (60) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/cloud_account_api.py +0 -2
  3. lightning_sdk/api/studio_api.py +8 -0
  4. lightning_sdk/job/job.py +5 -0
  5. lightning_sdk/job/v1.py +8 -0
  6. lightning_sdk/job/v2.py +8 -0
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  9. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +19 -19
  10. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -0
  11. lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +1463 -240
  12. lightning_sdk/lightning_cloud/openapi/api/sdk_command_history_service_api.py +141 -0
  13. lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
  14. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +27 -1
  15. lightning_sdk/lightning_cloud/openapi/models/cluster_id_metrics_body.py +53 -1
  16. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +53 -1
  18. lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +53 -1
  19. lightning_sdk/lightning_cloud/openapi/models/incident_id_messages_body.py +149 -0
  20. lightning_sdk/lightning_cloud/openapi/models/incidents_id_body.py +279 -0
  21. lightning_sdk/lightning_cloud/openapi/models/messages_message_id_body.py +149 -0
  22. lightning_sdk/lightning_cloud/openapi/models/project_id_incidents_body.py +279 -0
  23. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +15 -15
  25. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_transfer_metadata.py +53 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_request.py +253 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_create_sdk_command_history_response.py +97 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_message_response.py +97 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_delete_incident_response.py +97 -0
  31. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_transfer_estimate_response.py +123 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_group_pod_metrics.py +1241 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_incident.py +539 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_incident_message.py +253 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +1 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_job.py +53 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_kai_scheduler_queue_metrics.py +627 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_list_group_pod_metrics_response.py +123 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_messages_response.py +149 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_list_incidents_response.py +149 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_list_kai_scheduler_queues_metrics_response.py +123 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_machine.py +53 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +1 -27
  49. lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_severity.py +104 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_sdk_command_history_type.py +104 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -53
  53. lightning_sdk/machine.py +0 -1
  54. lightning_sdk/studio.py +8 -0
  55. {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/METADATA +1 -1
  56. {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/RECORD +60 -40
  57. {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/LICENSE +0 -0
  58. {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/WHEEL +0 -0
  59. {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/entry_points.txt +0 -0
  60. {lightning_sdk-2025.10.8.dist-info → lightning_sdk-2025.10.14.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1ListGroupPodMetricsResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'metrics': 'list[V1GroupPodMetrics]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'metrics': 'metrics'
49
+ }
50
+
51
+ def __init__(self, metrics: 'list[V1GroupPodMetrics]' =None): # noqa: E501
52
+ """V1ListGroupPodMetricsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._metrics = None
54
+ self.discriminator = None
55
+ if metrics is not None:
56
+ self.metrics = metrics
57
+
58
+ @property
59
+ def metrics(self) -> 'list[V1GroupPodMetrics]':
60
+ """Gets the metrics of this V1ListGroupPodMetricsResponse. # noqa: E501
61
+
62
+
63
+ :return: The metrics of this V1ListGroupPodMetricsResponse. # noqa: E501
64
+ :rtype: list[V1GroupPodMetrics]
65
+ """
66
+ return self._metrics
67
+
68
+ @metrics.setter
69
+ def metrics(self, metrics: 'list[V1GroupPodMetrics]'):
70
+ """Sets the metrics of this V1ListGroupPodMetricsResponse.
71
+
72
+
73
+ :param metrics: The metrics of this V1ListGroupPodMetricsResponse. # noqa: E501
74
+ :type: list[V1GroupPodMetrics]
75
+ """
76
+
77
+ self._metrics = metrics
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(V1ListGroupPodMetricsResponse, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'V1ListGroupPodMetricsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListGroupPodMetricsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListGroupPodMetricsResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -0,0 +1,149 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1ListIncidentMessagesResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'messages': 'list[V1IncidentMessage]',
45
+ 'next_page_token': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'messages': 'messages',
50
+ 'next_page_token': 'nextPageToken'
51
+ }
52
+
53
+ def __init__(self, messages: 'list[V1IncidentMessage]' =None, next_page_token: 'str' =None): # noqa: E501
54
+ """V1ListIncidentMessagesResponse - a model defined in Swagger""" # noqa: E501
55
+ self._messages = None
56
+ self._next_page_token = None
57
+ self.discriminator = None
58
+ if messages is not None:
59
+ self.messages = messages
60
+ if next_page_token is not None:
61
+ self.next_page_token = next_page_token
62
+
63
+ @property
64
+ def messages(self) -> 'list[V1IncidentMessage]':
65
+ """Gets the messages of this V1ListIncidentMessagesResponse. # noqa: E501
66
+
67
+
68
+ :return: The messages of this V1ListIncidentMessagesResponse. # noqa: E501
69
+ :rtype: list[V1IncidentMessage]
70
+ """
71
+ return self._messages
72
+
73
+ @messages.setter
74
+ def messages(self, messages: 'list[V1IncidentMessage]'):
75
+ """Sets the messages of this V1ListIncidentMessagesResponse.
76
+
77
+
78
+ :param messages: The messages of this V1ListIncidentMessagesResponse. # noqa: E501
79
+ :type: list[V1IncidentMessage]
80
+ """
81
+
82
+ self._messages = messages
83
+
84
+ @property
85
+ def next_page_token(self) -> 'str':
86
+ """Gets the next_page_token of this V1ListIncidentMessagesResponse. # noqa: E501
87
+
88
+
89
+ :return: The next_page_token of this V1ListIncidentMessagesResponse. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._next_page_token
93
+
94
+ @next_page_token.setter
95
+ def next_page_token(self, next_page_token: 'str'):
96
+ """Sets the next_page_token of this V1ListIncidentMessagesResponse.
97
+
98
+
99
+ :param next_page_token: The next_page_token of this V1ListIncidentMessagesResponse. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._next_page_token = next_page_token
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1ListIncidentMessagesResponse, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1ListIncidentMessagesResponse') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1ListIncidentMessagesResponse):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1ListIncidentMessagesResponse') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -0,0 +1,149 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1ListIncidentsResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'incidents': 'list[V1Incident]',
45
+ 'next_page_token': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'incidents': 'incidents',
50
+ 'next_page_token': 'nextPageToken'
51
+ }
52
+
53
+ def __init__(self, incidents: 'list[V1Incident]' =None, next_page_token: 'str' =None): # noqa: E501
54
+ """V1ListIncidentsResponse - a model defined in Swagger""" # noqa: E501
55
+ self._incidents = None
56
+ self._next_page_token = None
57
+ self.discriminator = None
58
+ if incidents is not None:
59
+ self.incidents = incidents
60
+ if next_page_token is not None:
61
+ self.next_page_token = next_page_token
62
+
63
+ @property
64
+ def incidents(self) -> 'list[V1Incident]':
65
+ """Gets the incidents of this V1ListIncidentsResponse. # noqa: E501
66
+
67
+
68
+ :return: The incidents of this V1ListIncidentsResponse. # noqa: E501
69
+ :rtype: list[V1Incident]
70
+ """
71
+ return self._incidents
72
+
73
+ @incidents.setter
74
+ def incidents(self, incidents: 'list[V1Incident]'):
75
+ """Sets the incidents of this V1ListIncidentsResponse.
76
+
77
+
78
+ :param incidents: The incidents of this V1ListIncidentsResponse. # noqa: E501
79
+ :type: list[V1Incident]
80
+ """
81
+
82
+ self._incidents = incidents
83
+
84
+ @property
85
+ def next_page_token(self) -> 'str':
86
+ """Gets the next_page_token of this V1ListIncidentsResponse. # noqa: E501
87
+
88
+
89
+ :return: The next_page_token of this V1ListIncidentsResponse. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._next_page_token
93
+
94
+ @next_page_token.setter
95
+ def next_page_token(self, next_page_token: 'str'):
96
+ """Sets the next_page_token of this V1ListIncidentsResponse.
97
+
98
+
99
+ :param next_page_token: The next_page_token of this V1ListIncidentsResponse. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._next_page_token = next_page_token
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1ListIncidentsResponse, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1ListIncidentsResponse') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1ListIncidentsResponse):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1ListIncidentsResponse') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1ListKaiSchedulerQueuesMetricsResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'metrics': 'list[V1KaiSchedulerQueueMetrics]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'metrics': 'metrics'
49
+ }
50
+
51
+ def __init__(self, metrics: 'list[V1KaiSchedulerQueueMetrics]' =None): # noqa: E501
52
+ """V1ListKaiSchedulerQueuesMetricsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._metrics = None
54
+ self.discriminator = None
55
+ if metrics is not None:
56
+ self.metrics = metrics
57
+
58
+ @property
59
+ def metrics(self) -> 'list[V1KaiSchedulerQueueMetrics]':
60
+ """Gets the metrics of this V1ListKaiSchedulerQueuesMetricsResponse. # noqa: E501
61
+
62
+
63
+ :return: The metrics of this V1ListKaiSchedulerQueuesMetricsResponse. # noqa: E501
64
+ :rtype: list[V1KaiSchedulerQueueMetrics]
65
+ """
66
+ return self._metrics
67
+
68
+ @metrics.setter
69
+ def metrics(self, metrics: 'list[V1KaiSchedulerQueueMetrics]'):
70
+ """Sets the metrics of this V1ListKaiSchedulerQueuesMetricsResponse.
71
+
72
+
73
+ :param metrics: The metrics of this V1ListKaiSchedulerQueuesMetricsResponse. # noqa: E501
74
+ :type: list[V1KaiSchedulerQueueMetrics]
75
+ """
76
+
77
+ self._metrics = metrics
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(V1ListKaiSchedulerQueuesMetricsResponse, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'V1ListKaiSchedulerQueuesMetricsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1ListKaiSchedulerQueuesMetricsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1ListKaiSchedulerQueuesMetricsResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -53,6 +53,8 @@ class V1Machine(object):
53
53
  'provider_region': 'str',
54
54
  'provisioning_method': 'str',
55
55
  'ready_at': 'datetime',
56
+ 'resource_id': 'str',
57
+ 'resource_type': 'str',
56
58
  'resources': 'V1Resources',
57
59
  'status': 'str',
58
60
  'unschedulable': 'bool',
@@ -73,6 +75,8 @@ class V1Machine(object):
73
75
  'provider_region': 'providerRegion',
74
76
  'provisioning_method': 'provisioningMethod',
75
77
  'ready_at': 'readyAt',
78
+ 'resource_id': 'resourceId',
79
+ 'resource_type': 'resourceType',
76
80
  'resources': 'resources',
77
81
  'status': 'status',
78
82
  'unschedulable': 'unschedulable',
@@ -80,7 +84,7 @@ class V1Machine(object):
80
84
  'warning_message': 'warningMessage'
81
85
  }
82
86
 
83
- def __init__(self, address: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, instance_type: 'str' =None, name: 'str' =None, org_id: 'str' =None, provider: 'str' =None, provider_instance_id: 'str' =None, provider_region: 'str' =None, provisioning_method: 'str' =None, ready_at: 'datetime' =None, resources: 'V1Resources' =None, status: 'str' =None, unschedulable: 'bool' =None, updated_at: 'datetime' =None, warning_message: 'str' =None): # noqa: E501
87
+ def __init__(self, address: 'str' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, instance_type: 'str' =None, name: 'str' =None, org_id: 'str' =None, provider: 'str' =None, provider_instance_id: 'str' =None, provider_region: 'str' =None, provisioning_method: 'str' =None, ready_at: 'datetime' =None, resource_id: 'str' =None, resource_type: 'str' =None, resources: 'V1Resources' =None, status: 'str' =None, unschedulable: 'bool' =None, updated_at: 'datetime' =None, warning_message: 'str' =None): # noqa: E501
84
88
  """V1Machine - a model defined in Swagger""" # noqa: E501
85
89
  self._address = None
86
90
  self._cluster_id = None
@@ -94,6 +98,8 @@ class V1Machine(object):
94
98
  self._provider_region = None
95
99
  self._provisioning_method = None
96
100
  self._ready_at = None
101
+ self._resource_id = None
102
+ self._resource_type = None
97
103
  self._resources = None
98
104
  self._status = None
99
105
  self._unschedulable = None
@@ -124,6 +130,10 @@ class V1Machine(object):
124
130
  self.provisioning_method = provisioning_method
125
131
  if ready_at is not None:
126
132
  self.ready_at = ready_at
133
+ if resource_id is not None:
134
+ self.resource_id = resource_id
135
+ if resource_type is not None:
136
+ self.resource_type = resource_type
127
137
  if resources is not None:
128
138
  self.resources = resources
129
139
  if status is not None:
@@ -387,6 +397,48 @@ class V1Machine(object):
387
397
 
388
398
  self._ready_at = ready_at
389
399
 
400
+ @property
401
+ def resource_id(self) -> 'str':
402
+ """Gets the resource_id of this V1Machine. # noqa: E501
403
+
404
+
405
+ :return: The resource_id of this V1Machine. # noqa: E501
406
+ :rtype: str
407
+ """
408
+ return self._resource_id
409
+
410
+ @resource_id.setter
411
+ def resource_id(self, resource_id: 'str'):
412
+ """Sets the resource_id of this V1Machine.
413
+
414
+
415
+ :param resource_id: The resource_id of this V1Machine. # noqa: E501
416
+ :type: str
417
+ """
418
+
419
+ self._resource_id = resource_id
420
+
421
+ @property
422
+ def resource_type(self) -> 'str':
423
+ """Gets the resource_type of this V1Machine. # noqa: E501
424
+
425
+
426
+ :return: The resource_type of this V1Machine. # noqa: E501
427
+ :rtype: str
428
+ """
429
+ return self._resource_type
430
+
431
+ @resource_type.setter
432
+ def resource_type(self, resource_type: 'str'):
433
+ """Sets the resource_type of this V1Machine.
434
+
435
+
436
+ :param resource_type: The resource_type of this V1Machine. # noqa: E501
437
+ :type: str
438
+ """
439
+
440
+ self._resource_type = resource_type
441
+
390
442
  @property
391
443
  def resources(self) -> 'V1Resources':
392
444
  """Gets the resources of this V1Machine. # noqa: E501