anyscale 0.26.4__py3-none-any.whl → 0.26.6__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 (53) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +1 -5
  2. anyscale/_private/docgen/__main__.py +0 -3
  3. anyscale/_private/docgen/api.md +0 -40
  4. anyscale/_private/docgen/models.md +0 -49
  5. anyscale/anyscale-cloud-setup-gcp-oa.yaml +2 -1
  6. anyscale/anyscale-cloud-setup-gcp.yaml +4 -2
  7. anyscale/client/README.md +9 -27
  8. anyscale/client/openapi_client/__init__.py +7 -13
  9. anyscale/client/openapi_client/api/default_api.py +476 -1946
  10. anyscale/client/openapi_client/models/__init__.py +7 -13
  11. anyscale/client/openapi_client/models/{clusterconfigwithsessionidletimeout_response.py → backend_server_api_product_models_dataset_runs_dataset_response.py} +22 -22
  12. anyscale/client/openapi_client/models/{dataset_response.py → backend_server_api_product_routers_datasets_router_dataset_response.py} +8 -8
  13. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +3 -30
  14. anyscale/client/openapi_client/models/{clusterconfig_response.py → dataset_jobs.py} +22 -22
  15. anyscale/client/openapi_client/models/dataset_metrics.py +390 -0
  16. anyscale/{sdk/anyscale_client/models/session_command_types.py → client/openapi_client/models/dataset_state.py} +11 -9
  17. anyscale/client/openapi_client/models/{organization_availability.py → metric.py} +64 -39
  18. anyscale/client/openapi_client/models/operator_metrics.py +256 -0
  19. anyscale/client/openapi_client/models/train_run.py +28 -1
  20. anyscale/cluster.py +5 -2
  21. anyscale/commands/anyscale_api/api_commands.py +0 -2
  22. anyscale/commands/workspace_commands.py +3 -3
  23. anyscale/connect_utils/start_interactive_session.py +4 -1
  24. anyscale/controllers/cluster_controller.py +15 -26
  25. anyscale/controllers/project_controller.py +1 -6
  26. anyscale/job/_private/job_sdk.py +6 -1
  27. anyscale/job/models.py +8 -0
  28. anyscale/project_utils.py +9 -20
  29. anyscale/sdk/anyscale_client/__init__.py +0 -5
  30. anyscale/sdk/anyscale_client/api/default_api.py +0 -474
  31. anyscale/sdk/anyscale_client/models/__init__.py +0 -5
  32. anyscale/version.py +1 -1
  33. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/METADATA +1 -1
  34. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/RECORD +39 -51
  35. anyscale/client/openapi_client/models/anyscale_version_response.py +0 -121
  36. anyscale/client/openapi_client/models/anyscaleversionresponse_response.py +0 -121
  37. anyscale/client/openapi_client/models/cluster_config.py +0 -178
  38. anyscale/client/openapi_client/models/cluster_config_with_session_idle_timeout.py +0 -204
  39. anyscale/client/openapi_client/models/cluster_startup.py +0 -208
  40. anyscale/client/openapi_client/models/decoratedjob_list_response.py +0 -147
  41. anyscale/client/openapi_client/models/execute_shell_command_options.py +0 -121
  42. anyscale/client/openapi_client/models/organizationavailability_response.py +0 -121
  43. anyscale/client/openapi_client/models/setup_initialize_session_options.py +0 -225
  44. anyscale/commands/anyscale_api/session_commands_commands.py +0 -80
  45. anyscale/sdk/anyscale_client/models/create_session_command.py +0 -152
  46. anyscale/sdk/anyscale_client/models/session_command.py +0 -350
  47. anyscale/sdk/anyscale_client/models/sessioncommand_list_response.py +0 -147
  48. anyscale/sdk/anyscale_client/models/sessioncommand_response.py +0 -121
  49. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/LICENSE +0 -0
  50. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/NOTICE +0 -0
  51. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/WHEEL +0 -0
  52. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/entry_points.txt +0 -0
  53. {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/top_level.txt +0 -0
@@ -1,152 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Anyscale API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- import pprint
14
- import re # noqa: F401
15
-
16
- import six
17
-
18
- from anyscale_client.configuration import Configuration
19
-
20
-
21
- class CreateSessionCommand(object):
22
- """NOTE: This class is auto generated by OpenAPI Generator.
23
- Ref: https://openapi-generator.tech
24
-
25
- Do not edit the class manually.
26
- """
27
-
28
- """
29
- Attributes:
30
- openapi_types (dict): The key is attribute name
31
- and the value is attribute type.
32
- attribute_map (dict): The key is attribute name
33
- and the value is json key in definition.
34
- """
35
- openapi_types = {
36
- 'session_id': 'str',
37
- 'shell_command': 'str'
38
- }
39
-
40
- attribute_map = {
41
- 'session_id': 'session_id',
42
- 'shell_command': 'shell_command'
43
- }
44
-
45
- def __init__(self, session_id=None, shell_command=None, local_vars_configuration=None): # noqa: E501
46
- """CreateSessionCommand - a model defined in OpenAPI""" # noqa: E501
47
- if local_vars_configuration is None:
48
- local_vars_configuration = Configuration()
49
- self.local_vars_configuration = local_vars_configuration
50
-
51
- self._session_id = None
52
- self._shell_command = None
53
- self.discriminator = None
54
-
55
- self.session_id = session_id
56
- self.shell_command = shell_command
57
-
58
- @property
59
- def session_id(self):
60
- """Gets the session_id of this CreateSessionCommand. # noqa: E501
61
-
62
- ID of the Session to execute this command on. # noqa: E501
63
-
64
- :return: The session_id of this CreateSessionCommand. # noqa: E501
65
- :rtype: str
66
- """
67
- return self._session_id
68
-
69
- @session_id.setter
70
- def session_id(self, session_id):
71
- """Sets the session_id of this CreateSessionCommand.
72
-
73
- ID of the Session to execute this command on. # noqa: E501
74
-
75
- :param session_id: The session_id of this CreateSessionCommand. # noqa: E501
76
- :type: str
77
- """
78
- if self.local_vars_configuration.client_side_validation and session_id is None: # noqa: E501
79
- raise ValueError("Invalid value for `session_id`, must not be `None`") # noqa: E501
80
-
81
- self._session_id = session_id
82
-
83
- @property
84
- def shell_command(self):
85
- """Gets the shell_command of this CreateSessionCommand. # noqa: E501
86
-
87
- Shell command string that will be executed. # noqa: E501
88
-
89
- :return: The shell_command of this CreateSessionCommand. # noqa: E501
90
- :rtype: str
91
- """
92
- return self._shell_command
93
-
94
- @shell_command.setter
95
- def shell_command(self, shell_command):
96
- """Sets the shell_command of this CreateSessionCommand.
97
-
98
- Shell command string that will be executed. # noqa: E501
99
-
100
- :param shell_command: The shell_command of this CreateSessionCommand. # noqa: E501
101
- :type: str
102
- """
103
- if self.local_vars_configuration.client_side_validation and shell_command is None: # noqa: E501
104
- raise ValueError("Invalid value for `shell_command`, must not be `None`") # noqa: E501
105
-
106
- self._shell_command = shell_command
107
-
108
- def to_dict(self):
109
- """Returns the model properties as a dict"""
110
- result = {}
111
-
112
- for attr, _ in six.iteritems(self.openapi_types):
113
- value = getattr(self, attr)
114
- if isinstance(value, list):
115
- result[attr] = list(map(
116
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
117
- value
118
- ))
119
- elif hasattr(value, "to_dict"):
120
- result[attr] = value.to_dict()
121
- elif isinstance(value, dict):
122
- result[attr] = dict(map(
123
- lambda item: (item[0], item[1].to_dict())
124
- if hasattr(item[1], "to_dict") else item,
125
- value.items()
126
- ))
127
- else:
128
- result[attr] = value
129
-
130
- return result
131
-
132
- def to_str(self):
133
- """Returns the string representation of the model"""
134
- return pprint.pformat(self.to_dict())
135
-
136
- def __repr__(self):
137
- """For `print` and `pprint`"""
138
- return self.to_str()
139
-
140
- def __eq__(self, other):
141
- """Returns true if both objects are equal"""
142
- if not isinstance(other, CreateSessionCommand):
143
- return False
144
-
145
- return self.to_dict() == other.to_dict()
146
-
147
- def __ne__(self, other):
148
- """Returns true if both objects are not equal"""
149
- if not isinstance(other, CreateSessionCommand):
150
- return True
151
-
152
- return self.to_dict() != other.to_dict()
@@ -1,350 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Anyscale API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- import pprint
14
- import re # noqa: F401
15
-
16
- import six
17
-
18
- from anyscale_client.configuration import Configuration
19
-
20
-
21
- class SessionCommand(object):
22
- """NOTE: This class is auto generated by OpenAPI Generator.
23
- Ref: https://openapi-generator.tech
24
-
25
- Do not edit the class manually.
26
- """
27
-
28
- """
29
- Attributes:
30
- openapi_types (dict): The key is attribute name
31
- and the value is attribute type.
32
- attribute_map (dict): The key is attribute name
33
- and the value is json key in definition.
34
- """
35
- openapi_types = {
36
- 'session_id': 'str',
37
- 'shell_command': 'str',
38
- 'id': 'str',
39
- 'type': 'SessionCommandTypes',
40
- 'created_at': 'datetime',
41
- 'finished_at': 'datetime',
42
- 'status_code': 'int',
43
- 'killed_at': 'datetime',
44
- 'web_terminal_tab_id': 'str'
45
- }
46
-
47
- attribute_map = {
48
- 'session_id': 'session_id',
49
- 'shell_command': 'shell_command',
50
- 'id': 'id',
51
- 'type': 'type',
52
- 'created_at': 'created_at',
53
- 'finished_at': 'finished_at',
54
- 'status_code': 'status_code',
55
- 'killed_at': 'killed_at',
56
- 'web_terminal_tab_id': 'web_terminal_tab_id'
57
- }
58
-
59
- def __init__(self, session_id=None, shell_command=None, id=None, type=None, created_at=None, finished_at=None, status_code=None, killed_at=None, web_terminal_tab_id=None, local_vars_configuration=None): # noqa: E501
60
- """SessionCommand - a model defined in OpenAPI""" # noqa: E501
61
- if local_vars_configuration is None:
62
- local_vars_configuration = Configuration()
63
- self.local_vars_configuration = local_vars_configuration
64
-
65
- self._session_id = None
66
- self._shell_command = None
67
- self._id = None
68
- self._type = None
69
- self._created_at = None
70
- self._finished_at = None
71
- self._status_code = None
72
- self._killed_at = None
73
- self._web_terminal_tab_id = None
74
- self.discriminator = None
75
-
76
- self.session_id = session_id
77
- self.shell_command = shell_command
78
- self.id = id
79
- if type is not None:
80
- self.type = type
81
- self.created_at = created_at
82
- if finished_at is not None:
83
- self.finished_at = finished_at
84
- if status_code is not None:
85
- self.status_code = status_code
86
- if killed_at is not None:
87
- self.killed_at = killed_at
88
- if web_terminal_tab_id is not None:
89
- self.web_terminal_tab_id = web_terminal_tab_id
90
-
91
- @property
92
- def session_id(self):
93
- """Gets the session_id of this SessionCommand. # noqa: E501
94
-
95
- ID of the Session to execute this command on. # noqa: E501
96
-
97
- :return: The session_id of this SessionCommand. # noqa: E501
98
- :rtype: str
99
- """
100
- return self._session_id
101
-
102
- @session_id.setter
103
- def session_id(self, session_id):
104
- """Sets the session_id of this SessionCommand.
105
-
106
- ID of the Session to execute this command on. # noqa: E501
107
-
108
- :param session_id: The session_id of this SessionCommand. # noqa: E501
109
- :type: str
110
- """
111
- if self.local_vars_configuration.client_side_validation and session_id is None: # noqa: E501
112
- raise ValueError("Invalid value for `session_id`, must not be `None`") # noqa: E501
113
-
114
- self._session_id = session_id
115
-
116
- @property
117
- def shell_command(self):
118
- """Gets the shell_command of this SessionCommand. # noqa: E501
119
-
120
- Shell command string that will be executed. # noqa: E501
121
-
122
- :return: The shell_command of this SessionCommand. # noqa: E501
123
- :rtype: str
124
- """
125
- return self._shell_command
126
-
127
- @shell_command.setter
128
- def shell_command(self, shell_command):
129
- """Sets the shell_command of this SessionCommand.
130
-
131
- Shell command string that will be executed. # noqa: E501
132
-
133
- :param shell_command: The shell_command of this SessionCommand. # noqa: E501
134
- :type: str
135
- """
136
- if self.local_vars_configuration.client_side_validation and shell_command is None: # noqa: E501
137
- raise ValueError("Invalid value for `shell_command`, must not be `None`") # noqa: E501
138
-
139
- self._shell_command = shell_command
140
-
141
- @property
142
- def id(self):
143
- """Gets the id of this SessionCommand. # noqa: E501
144
-
145
- Server assigned unique identifier. # noqa: E501
146
-
147
- :return: The id of this SessionCommand. # noqa: E501
148
- :rtype: str
149
- """
150
- return self._id
151
-
152
- @id.setter
153
- def id(self, id):
154
- """Sets the id of this SessionCommand.
155
-
156
- Server assigned unique identifier. # noqa: E501
157
-
158
- :param id: The id of this SessionCommand. # noqa: E501
159
- :type: str
160
- """
161
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
162
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
163
-
164
- self._id = id
165
-
166
- @property
167
- def type(self):
168
- """Gets the type of this SessionCommand. # noqa: E501
169
-
170
- Where this command was executed # noqa: E501
171
-
172
- :return: The type of this SessionCommand. # noqa: E501
173
- :rtype: SessionCommandTypes
174
- """
175
- return self._type
176
-
177
- @type.setter
178
- def type(self, type):
179
- """Sets the type of this SessionCommand.
180
-
181
- Where this command was executed # noqa: E501
182
-
183
- :param type: The type of this SessionCommand. # noqa: E501
184
- :type: SessionCommandTypes
185
- """
186
-
187
- self._type = type
188
-
189
- @property
190
- def created_at(self):
191
- """Gets the created_at of this SessionCommand. # noqa: E501
192
-
193
- Timestamp of when this command was created. # noqa: E501
194
-
195
- :return: The created_at of this SessionCommand. # noqa: E501
196
- :rtype: datetime
197
- """
198
- return self._created_at
199
-
200
- @created_at.setter
201
- def created_at(self, created_at):
202
- """Sets the created_at of this SessionCommand.
203
-
204
- Timestamp of when this command was created. # noqa: E501
205
-
206
- :param created_at: The created_at of this SessionCommand. # noqa: E501
207
- :type: datetime
208
- """
209
- if self.local_vars_configuration.client_side_validation and created_at is None: # noqa: E501
210
- raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501
211
-
212
- self._created_at = created_at
213
-
214
- @property
215
- def finished_at(self):
216
- """Gets the finished_at of this SessionCommand. # noqa: E501
217
-
218
- Timestamp of when this command completed its execution. This value will be absent if the command is still running. # noqa: E501
219
-
220
- :return: The finished_at of this SessionCommand. # noqa: E501
221
- :rtype: datetime
222
- """
223
- return self._finished_at
224
-
225
- @finished_at.setter
226
- def finished_at(self, finished_at):
227
- """Sets the finished_at of this SessionCommand.
228
-
229
- Timestamp of when this command completed its execution. This value will be absent if the command is still running. # noqa: E501
230
-
231
- :param finished_at: The finished_at of this SessionCommand. # noqa: E501
232
- :type: datetime
233
- """
234
-
235
- self._finished_at = finished_at
236
-
237
- @property
238
- def status_code(self):
239
- """Gets the status_code of this SessionCommand. # noqa: E501
240
-
241
- Exit status of this command. This value will be absent if the command is still running. # noqa: E501
242
-
243
- :return: The status_code of this SessionCommand. # noqa: E501
244
- :rtype: int
245
- """
246
- return self._status_code
247
-
248
- @status_code.setter
249
- def status_code(self, status_code):
250
- """Sets the status_code of this SessionCommand.
251
-
252
- Exit status of this command. This value will be absent if the command is still running. # noqa: E501
253
-
254
- :param status_code: The status_code of this SessionCommand. # noqa: E501
255
- :type: int
256
- """
257
-
258
- self._status_code = status_code
259
-
260
- @property
261
- def killed_at(self):
262
- """Gets the killed_at of this SessionCommand. # noqa: E501
263
-
264
- Timestamp of when this command was killed. This value will be absent if the command is still running or completed its execution normally. # noqa: E501
265
-
266
- :return: The killed_at of this SessionCommand. # noqa: E501
267
- :rtype: datetime
268
- """
269
- return self._killed_at
270
-
271
- @killed_at.setter
272
- def killed_at(self, killed_at):
273
- """Sets the killed_at of this SessionCommand.
274
-
275
- Timestamp of when this command was killed. This value will be absent if the command is still running or completed its execution normally. # noqa: E501
276
-
277
- :param killed_at: The killed_at of this SessionCommand. # noqa: E501
278
- :type: datetime
279
- """
280
-
281
- self._killed_at = killed_at
282
-
283
- @property
284
- def web_terminal_tab_id(self):
285
- """Gets the web_terminal_tab_id of this SessionCommand. # noqa: E501
286
-
287
- The id for the web terminal tab in which this command was executed. # noqa: E501
288
-
289
- :return: The web_terminal_tab_id of this SessionCommand. # noqa: E501
290
- :rtype: str
291
- """
292
- return self._web_terminal_tab_id
293
-
294
- @web_terminal_tab_id.setter
295
- def web_terminal_tab_id(self, web_terminal_tab_id):
296
- """Sets the web_terminal_tab_id of this SessionCommand.
297
-
298
- The id for the web terminal tab in which this command was executed. # noqa: E501
299
-
300
- :param web_terminal_tab_id: The web_terminal_tab_id of this SessionCommand. # noqa: E501
301
- :type: str
302
- """
303
-
304
- self._web_terminal_tab_id = web_terminal_tab_id
305
-
306
- def to_dict(self):
307
- """Returns the model properties as a dict"""
308
- result = {}
309
-
310
- for attr, _ in six.iteritems(self.openapi_types):
311
- value = getattr(self, attr)
312
- if isinstance(value, list):
313
- result[attr] = list(map(
314
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
315
- value
316
- ))
317
- elif hasattr(value, "to_dict"):
318
- result[attr] = value.to_dict()
319
- elif isinstance(value, dict):
320
- result[attr] = dict(map(
321
- lambda item: (item[0], item[1].to_dict())
322
- if hasattr(item[1], "to_dict") else item,
323
- value.items()
324
- ))
325
- else:
326
- result[attr] = value
327
-
328
- return result
329
-
330
- def to_str(self):
331
- """Returns the string representation of the model"""
332
- return pprint.pformat(self.to_dict())
333
-
334
- def __repr__(self):
335
- """For `print` and `pprint`"""
336
- return self.to_str()
337
-
338
- def __eq__(self, other):
339
- """Returns true if both objects are equal"""
340
- if not isinstance(other, SessionCommand):
341
- return False
342
-
343
- return self.to_dict() == other.to_dict()
344
-
345
- def __ne__(self, other):
346
- """Returns true if both objects are not equal"""
347
- if not isinstance(other, SessionCommand):
348
- return True
349
-
350
- return self.to_dict() != other.to_dict()
@@ -1,147 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Anyscale API
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- import pprint
14
- import re # noqa: F401
15
-
16
- import six
17
-
18
- from anyscale_client.configuration import Configuration
19
-
20
-
21
- class SessioncommandListResponse(object):
22
- """NOTE: This class is auto generated by OpenAPI Generator.
23
- Ref: https://openapi-generator.tech
24
-
25
- Do not edit the class manually.
26
- """
27
-
28
- """
29
- Attributes:
30
- openapi_types (dict): The key is attribute name
31
- and the value is attribute type.
32
- attribute_map (dict): The key is attribute name
33
- and the value is json key in definition.
34
- """
35
- openapi_types = {
36
- 'results': 'list[SessionCommand]',
37
- 'metadata': 'ListResponseMetadata'
38
- }
39
-
40
- attribute_map = {
41
- 'results': 'results',
42
- 'metadata': 'metadata'
43
- }
44
-
45
- def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
46
- """SessioncommandListResponse - a model defined in OpenAPI""" # noqa: E501
47
- if local_vars_configuration is None:
48
- local_vars_configuration = Configuration()
49
- self.local_vars_configuration = local_vars_configuration
50
-
51
- self._results = None
52
- self._metadata = None
53
- self.discriminator = None
54
-
55
- self.results = results
56
- if metadata is not None:
57
- self.metadata = metadata
58
-
59
- @property
60
- def results(self):
61
- """Gets the results of this SessioncommandListResponse. # noqa: E501
62
-
63
-
64
- :return: The results of this SessioncommandListResponse. # noqa: E501
65
- :rtype: list[SessionCommand]
66
- """
67
- return self._results
68
-
69
- @results.setter
70
- def results(self, results):
71
- """Sets the results of this SessioncommandListResponse.
72
-
73
-
74
- :param results: The results of this SessioncommandListResponse. # noqa: E501
75
- :type: list[SessionCommand]
76
- """
77
- if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
78
- raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
79
-
80
- self._results = results
81
-
82
- @property
83
- def metadata(self):
84
- """Gets the metadata of this SessioncommandListResponse. # noqa: E501
85
-
86
-
87
- :return: The metadata of this SessioncommandListResponse. # noqa: E501
88
- :rtype: ListResponseMetadata
89
- """
90
- return self._metadata
91
-
92
- @metadata.setter
93
- def metadata(self, metadata):
94
- """Sets the metadata of this SessioncommandListResponse.
95
-
96
-
97
- :param metadata: The metadata of this SessioncommandListResponse. # noqa: E501
98
- :type: ListResponseMetadata
99
- """
100
-
101
- self._metadata = metadata
102
-
103
- def to_dict(self):
104
- """Returns the model properties as a dict"""
105
- result = {}
106
-
107
- for attr, _ in six.iteritems(self.openapi_types):
108
- value = getattr(self, attr)
109
- if isinstance(value, list):
110
- result[attr] = list(map(
111
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
- value
113
- ))
114
- elif hasattr(value, "to_dict"):
115
- result[attr] = value.to_dict()
116
- elif isinstance(value, dict):
117
- result[attr] = dict(map(
118
- lambda item: (item[0], item[1].to_dict())
119
- if hasattr(item[1], "to_dict") else item,
120
- value.items()
121
- ))
122
- else:
123
- result[attr] = value
124
-
125
- return result
126
-
127
- def to_str(self):
128
- """Returns the string representation of the model"""
129
- return pprint.pformat(self.to_dict())
130
-
131
- def __repr__(self):
132
- """For `print` and `pprint`"""
133
- return self.to_str()
134
-
135
- def __eq__(self, other):
136
- """Returns true if both objects are equal"""
137
- if not isinstance(other, SessioncommandListResponse):
138
- return False
139
-
140
- return self.to_dict() == other.to_dict()
141
-
142
- def __ne__(self, other):
143
- """Returns true if both objects are not equal"""
144
- if not isinstance(other, SessioncommandListResponse):
145
- return True
146
-
147
- return self.to_dict() != other.to_dict()