anyscale 0.26.9__py3-none-any.whl → 0.26.11__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 (48) hide show
  1. anyscale/anyscale_halo/LICENSE +21 -0
  2. anyscale/anyscale_halo/README.md +1 -0
  3. anyscale/anyscale_halo/__init__.py +10 -0
  4. anyscale/anyscale_halo/_utils.py +148 -0
  5. anyscale/anyscale_halo/cursor.py +48 -0
  6. anyscale/anyscale_halo/halo.py +609 -0
  7. anyscale/anyscale_halo/halo_notebook.py +122 -0
  8. anyscale/cli_logger.py +1 -1
  9. anyscale/client/README.md +0 -35
  10. anyscale/client/openapi_client/__init__.py +0 -28
  11. anyscale/client/openapi_client/api/default_api.py +107 -878
  12. anyscale/client/openapi_client/models/__init__.py +0 -28
  13. anyscale/version.py +1 -1
  14. {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/METADATA +5 -2
  15. {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/RECORD +20 -41
  16. anyscale/client/openapi_client/models/card.py +0 -181
  17. anyscale/client/openapi_client/models/card_id.py +0 -108
  18. anyscale/client/openapi_client/models/card_list_response.py +0 -147
  19. anyscale/client/openapi_client/models/cluster_features.py +0 -152
  20. anyscale/client/openapi_client/models/clusterfeatures_response.py +0 -121
  21. anyscale/client/openapi_client/models/dismissal_type.py +0 -100
  22. anyscale/client/openapi_client/models/feature_compatibility.py +0 -152
  23. anyscale/client/openapi_client/models/onboarding_user_cards_query.py +0 -122
  24. anyscale/client/openapi_client/models/project_collaborators_put_message.py +0 -121
  25. anyscale/client/openapi_client/models/project_create_message.py +0 -148
  26. anyscale/client/openapi_client/models/project_delete_message.py +0 -121
  27. anyscale/client/openapi_client/models/project_patch_message.py +0 -121
  28. anyscale/client/openapi_client/models/session_autosync_sessions_update_message.py +0 -121
  29. anyscale/client/openapi_client/models/session_create_message.py +0 -148
  30. anyscale/client/openapi_client/models/session_delete_message.py +0 -121
  31. anyscale/client/openapi_client/models/session_execute_message.py +0 -121
  32. anyscale/client/openapi_client/models/session_finish_command_message.py +0 -175
  33. anyscale/client/openapi_client/models/session_kill_command_message.py +0 -121
  34. anyscale/client/openapi_client/models/session_patch_message.py +0 -121
  35. anyscale/client/openapi_client/models/session_state_change_message.py +0 -121
  36. anyscale/client/openapi_client/models/snapshot_create_message.py +0 -148
  37. anyscale/client/openapi_client/models/snapshot_delete_message.py +0 -148
  38. anyscale/client/openapi_client/models/snapshot_patch_message.py +0 -148
  39. anyscale/client/openapi_client/models/socket_message_schemas.py +0 -499
  40. anyscale/client/openapi_client/models/socket_message_types.py +0 -113
  41. anyscale/client/openapi_client/models/socketmessageschemas_response.py +0 -121
  42. anyscale/client/openapi_client/models/socketmessagetypes_response.py +0 -121
  43. anyscale/client/openapi_client/models/visibility.py +0 -100
  44. {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/LICENSE +0 -0
  45. {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/NOTICE +0 -0
  46. {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/WHEEL +0 -0
  47. {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/entry_points.txt +0 -0
  48. {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/top_level.txt +0 -0
@@ -1,148 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Managed Ray 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 openapi_client.configuration import Configuration
19
-
20
-
21
- class SnapshotPatchMessage(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
- 'id': 'str',
37
- 'project_id': 'str'
38
- }
39
-
40
- attribute_map = {
41
- 'id': 'id',
42
- 'project_id': 'project_id'
43
- }
44
-
45
- def __init__(self, id=None, project_id=None, local_vars_configuration=None): # noqa: E501
46
- """SnapshotPatchMessage - 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._id = None
52
- self._project_id = None
53
- self.discriminator = None
54
-
55
- self.id = id
56
- self.project_id = project_id
57
-
58
- @property
59
- def id(self):
60
- """Gets the id of this SnapshotPatchMessage. # noqa: E501
61
-
62
-
63
- :return: The id of this SnapshotPatchMessage. # noqa: E501
64
- :rtype: str
65
- """
66
- return self._id
67
-
68
- @id.setter
69
- def id(self, id):
70
- """Sets the id of this SnapshotPatchMessage.
71
-
72
-
73
- :param id: The id of this SnapshotPatchMessage. # noqa: E501
74
- :type: str
75
- """
76
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
77
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
78
-
79
- self._id = id
80
-
81
- @property
82
- def project_id(self):
83
- """Gets the project_id of this SnapshotPatchMessage. # noqa: E501
84
-
85
-
86
- :return: The project_id of this SnapshotPatchMessage. # noqa: E501
87
- :rtype: str
88
- """
89
- return self._project_id
90
-
91
- @project_id.setter
92
- def project_id(self, project_id):
93
- """Sets the project_id of this SnapshotPatchMessage.
94
-
95
-
96
- :param project_id: The project_id of this SnapshotPatchMessage. # noqa: E501
97
- :type: str
98
- """
99
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
100
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
101
-
102
- self._project_id = project_id
103
-
104
- def to_dict(self):
105
- """Returns the model properties as a dict"""
106
- result = {}
107
-
108
- for attr, _ in six.iteritems(self.openapi_types):
109
- value = getattr(self, attr)
110
- if isinstance(value, list):
111
- result[attr] = list(map(
112
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
113
- value
114
- ))
115
- elif hasattr(value, "to_dict"):
116
- result[attr] = value.to_dict()
117
- elif isinstance(value, dict):
118
- result[attr] = dict(map(
119
- lambda item: (item[0], item[1].to_dict())
120
- if hasattr(item[1], "to_dict") else item,
121
- value.items()
122
- ))
123
- else:
124
- result[attr] = value
125
-
126
- return result
127
-
128
- def to_str(self):
129
- """Returns the string representation of the model"""
130
- return pprint.pformat(self.to_dict())
131
-
132
- def __repr__(self):
133
- """For `print` and `pprint`"""
134
- return self.to_str()
135
-
136
- def __eq__(self, other):
137
- """Returns true if both objects are equal"""
138
- if not isinstance(other, SnapshotPatchMessage):
139
- return False
140
-
141
- return self.to_dict() == other.to_dict()
142
-
143
- def __ne__(self, other):
144
- """Returns true if both objects are not equal"""
145
- if not isinstance(other, SnapshotPatchMessage):
146
- return True
147
-
148
- return self.to_dict() != other.to_dict()
@@ -1,499 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Managed Ray 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 openapi_client.configuration import Configuration
19
-
20
-
21
- class SocketMessageSchemas(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
- 'project_create_message': 'ProjectCreateMessage',
37
- 'project_delete_message': 'ProjectDeleteMessage',
38
- 'project_patch_message': 'ProjectPatchMessage',
39
- 'session_autosync_sessions_update_message': 'SessionAutosyncSessionsUpdateMessage',
40
- 'session_create_message': 'SessionCreateMessage',
41
- 'session_patch_message': 'SessionPatchMessage',
42
- 'session_delete_message': 'SessionDeleteMessage',
43
- 'session_execute_message': 'SessionExecuteMessage',
44
- 'session_state_change_message': 'SessionStateChangeMessage',
45
- 'session_kill_command_message': 'SessionKillCommandMessage',
46
- 'session_finish_command_message': 'SessionFinishCommandMessage',
47
- 'snapshot_create_message': 'SnapshotCreateMessage',
48
- 'snapshot_delete_message': 'SnapshotDeleteMessage',
49
- 'snapshot_patch_message': 'SnapshotPatchMessage',
50
- 'project_collaborators_put_message': 'ProjectCollaboratorsPutMessage'
51
- }
52
-
53
- attribute_map = {
54
- 'project_create_message': 'ProjectCreateMessage',
55
- 'project_delete_message': 'ProjectDeleteMessage',
56
- 'project_patch_message': 'ProjectPatchMessage',
57
- 'session_autosync_sessions_update_message': 'SessionAutosyncSessionsUpdateMessage',
58
- 'session_create_message': 'SessionCreateMessage',
59
- 'session_patch_message': 'SessionPatchMessage',
60
- 'session_delete_message': 'SessionDeleteMessage',
61
- 'session_execute_message': 'SessionExecuteMessage',
62
- 'session_state_change_message': 'SessionStateChangeMessage',
63
- 'session_kill_command_message': 'SessionKillCommandMessage',
64
- 'session_finish_command_message': 'SessionFinishCommandMessage',
65
- 'snapshot_create_message': 'SnapshotCreateMessage',
66
- 'snapshot_delete_message': 'SnapshotDeleteMessage',
67
- 'snapshot_patch_message': 'SnapshotPatchMessage',
68
- 'project_collaborators_put_message': 'ProjectCollaboratorsPutMessage'
69
- }
70
-
71
- def __init__(self, project_create_message=None, project_delete_message=None, project_patch_message=None, session_autosync_sessions_update_message=None, session_create_message=None, session_patch_message=None, session_delete_message=None, session_execute_message=None, session_state_change_message=None, session_kill_command_message=None, session_finish_command_message=None, snapshot_create_message=None, snapshot_delete_message=None, snapshot_patch_message=None, project_collaborators_put_message=None, local_vars_configuration=None): # noqa: E501
72
- """SocketMessageSchemas - a model defined in OpenAPI""" # noqa: E501
73
- if local_vars_configuration is None:
74
- local_vars_configuration = Configuration()
75
- self.local_vars_configuration = local_vars_configuration
76
-
77
- self._project_create_message = None
78
- self._project_delete_message = None
79
- self._project_patch_message = None
80
- self._session_autosync_sessions_update_message = None
81
- self._session_create_message = None
82
- self._session_patch_message = None
83
- self._session_delete_message = None
84
- self._session_execute_message = None
85
- self._session_state_change_message = None
86
- self._session_kill_command_message = None
87
- self._session_finish_command_message = None
88
- self._snapshot_create_message = None
89
- self._snapshot_delete_message = None
90
- self._snapshot_patch_message = None
91
- self._project_collaborators_put_message = None
92
- self.discriminator = None
93
-
94
- self.project_create_message = project_create_message
95
- self.project_delete_message = project_delete_message
96
- self.project_patch_message = project_patch_message
97
- self.session_autosync_sessions_update_message = session_autosync_sessions_update_message
98
- self.session_create_message = session_create_message
99
- self.session_patch_message = session_patch_message
100
- self.session_delete_message = session_delete_message
101
- self.session_execute_message = session_execute_message
102
- self.session_state_change_message = session_state_change_message
103
- self.session_kill_command_message = session_kill_command_message
104
- self.session_finish_command_message = session_finish_command_message
105
- self.snapshot_create_message = snapshot_create_message
106
- self.snapshot_delete_message = snapshot_delete_message
107
- self.snapshot_patch_message = snapshot_patch_message
108
- self.project_collaborators_put_message = project_collaborators_put_message
109
-
110
- @property
111
- def project_create_message(self):
112
- """Gets the project_create_message of this SocketMessageSchemas. # noqa: E501
113
-
114
-
115
- :return: The project_create_message of this SocketMessageSchemas. # noqa: E501
116
- :rtype: ProjectCreateMessage
117
- """
118
- return self._project_create_message
119
-
120
- @project_create_message.setter
121
- def project_create_message(self, project_create_message):
122
- """Sets the project_create_message of this SocketMessageSchemas.
123
-
124
-
125
- :param project_create_message: The project_create_message of this SocketMessageSchemas. # noqa: E501
126
- :type: ProjectCreateMessage
127
- """
128
- if self.local_vars_configuration.client_side_validation and project_create_message is None: # noqa: E501
129
- raise ValueError("Invalid value for `project_create_message`, must not be `None`") # noqa: E501
130
-
131
- self._project_create_message = project_create_message
132
-
133
- @property
134
- def project_delete_message(self):
135
- """Gets the project_delete_message of this SocketMessageSchemas. # noqa: E501
136
-
137
-
138
- :return: The project_delete_message of this SocketMessageSchemas. # noqa: E501
139
- :rtype: ProjectDeleteMessage
140
- """
141
- return self._project_delete_message
142
-
143
- @project_delete_message.setter
144
- def project_delete_message(self, project_delete_message):
145
- """Sets the project_delete_message of this SocketMessageSchemas.
146
-
147
-
148
- :param project_delete_message: The project_delete_message of this SocketMessageSchemas. # noqa: E501
149
- :type: ProjectDeleteMessage
150
- """
151
- if self.local_vars_configuration.client_side_validation and project_delete_message is None: # noqa: E501
152
- raise ValueError("Invalid value for `project_delete_message`, must not be `None`") # noqa: E501
153
-
154
- self._project_delete_message = project_delete_message
155
-
156
- @property
157
- def project_patch_message(self):
158
- """Gets the project_patch_message of this SocketMessageSchemas. # noqa: E501
159
-
160
-
161
- :return: The project_patch_message of this SocketMessageSchemas. # noqa: E501
162
- :rtype: ProjectPatchMessage
163
- """
164
- return self._project_patch_message
165
-
166
- @project_patch_message.setter
167
- def project_patch_message(self, project_patch_message):
168
- """Sets the project_patch_message of this SocketMessageSchemas.
169
-
170
-
171
- :param project_patch_message: The project_patch_message of this SocketMessageSchemas. # noqa: E501
172
- :type: ProjectPatchMessage
173
- """
174
- if self.local_vars_configuration.client_side_validation and project_patch_message is None: # noqa: E501
175
- raise ValueError("Invalid value for `project_patch_message`, must not be `None`") # noqa: E501
176
-
177
- self._project_patch_message = project_patch_message
178
-
179
- @property
180
- def session_autosync_sessions_update_message(self):
181
- """Gets the session_autosync_sessions_update_message of this SocketMessageSchemas. # noqa: E501
182
-
183
-
184
- :return: The session_autosync_sessions_update_message of this SocketMessageSchemas. # noqa: E501
185
- :rtype: SessionAutosyncSessionsUpdateMessage
186
- """
187
- return self._session_autosync_sessions_update_message
188
-
189
- @session_autosync_sessions_update_message.setter
190
- def session_autosync_sessions_update_message(self, session_autosync_sessions_update_message):
191
- """Sets the session_autosync_sessions_update_message of this SocketMessageSchemas.
192
-
193
-
194
- :param session_autosync_sessions_update_message: The session_autosync_sessions_update_message of this SocketMessageSchemas. # noqa: E501
195
- :type: SessionAutosyncSessionsUpdateMessage
196
- """
197
- if self.local_vars_configuration.client_side_validation and session_autosync_sessions_update_message is None: # noqa: E501
198
- raise ValueError("Invalid value for `session_autosync_sessions_update_message`, must not be `None`") # noqa: E501
199
-
200
- self._session_autosync_sessions_update_message = session_autosync_sessions_update_message
201
-
202
- @property
203
- def session_create_message(self):
204
- """Gets the session_create_message of this SocketMessageSchemas. # noqa: E501
205
-
206
-
207
- :return: The session_create_message of this SocketMessageSchemas. # noqa: E501
208
- :rtype: SessionCreateMessage
209
- """
210
- return self._session_create_message
211
-
212
- @session_create_message.setter
213
- def session_create_message(self, session_create_message):
214
- """Sets the session_create_message of this SocketMessageSchemas.
215
-
216
-
217
- :param session_create_message: The session_create_message of this SocketMessageSchemas. # noqa: E501
218
- :type: SessionCreateMessage
219
- """
220
- if self.local_vars_configuration.client_side_validation and session_create_message is None: # noqa: E501
221
- raise ValueError("Invalid value for `session_create_message`, must not be `None`") # noqa: E501
222
-
223
- self._session_create_message = session_create_message
224
-
225
- @property
226
- def session_patch_message(self):
227
- """Gets the session_patch_message of this SocketMessageSchemas. # noqa: E501
228
-
229
-
230
- :return: The session_patch_message of this SocketMessageSchemas. # noqa: E501
231
- :rtype: SessionPatchMessage
232
- """
233
- return self._session_patch_message
234
-
235
- @session_patch_message.setter
236
- def session_patch_message(self, session_patch_message):
237
- """Sets the session_patch_message of this SocketMessageSchemas.
238
-
239
-
240
- :param session_patch_message: The session_patch_message of this SocketMessageSchemas. # noqa: E501
241
- :type: SessionPatchMessage
242
- """
243
- if self.local_vars_configuration.client_side_validation and session_patch_message is None: # noqa: E501
244
- raise ValueError("Invalid value for `session_patch_message`, must not be `None`") # noqa: E501
245
-
246
- self._session_patch_message = session_patch_message
247
-
248
- @property
249
- def session_delete_message(self):
250
- """Gets the session_delete_message of this SocketMessageSchemas. # noqa: E501
251
-
252
-
253
- :return: The session_delete_message of this SocketMessageSchemas. # noqa: E501
254
- :rtype: SessionDeleteMessage
255
- """
256
- return self._session_delete_message
257
-
258
- @session_delete_message.setter
259
- def session_delete_message(self, session_delete_message):
260
- """Sets the session_delete_message of this SocketMessageSchemas.
261
-
262
-
263
- :param session_delete_message: The session_delete_message of this SocketMessageSchemas. # noqa: E501
264
- :type: SessionDeleteMessage
265
- """
266
- if self.local_vars_configuration.client_side_validation and session_delete_message is None: # noqa: E501
267
- raise ValueError("Invalid value for `session_delete_message`, must not be `None`") # noqa: E501
268
-
269
- self._session_delete_message = session_delete_message
270
-
271
- @property
272
- def session_execute_message(self):
273
- """Gets the session_execute_message of this SocketMessageSchemas. # noqa: E501
274
-
275
-
276
- :return: The session_execute_message of this SocketMessageSchemas. # noqa: E501
277
- :rtype: SessionExecuteMessage
278
- """
279
- return self._session_execute_message
280
-
281
- @session_execute_message.setter
282
- def session_execute_message(self, session_execute_message):
283
- """Sets the session_execute_message of this SocketMessageSchemas.
284
-
285
-
286
- :param session_execute_message: The session_execute_message of this SocketMessageSchemas. # noqa: E501
287
- :type: SessionExecuteMessage
288
- """
289
- if self.local_vars_configuration.client_side_validation and session_execute_message is None: # noqa: E501
290
- raise ValueError("Invalid value for `session_execute_message`, must not be `None`") # noqa: E501
291
-
292
- self._session_execute_message = session_execute_message
293
-
294
- @property
295
- def session_state_change_message(self):
296
- """Gets the session_state_change_message of this SocketMessageSchemas. # noqa: E501
297
-
298
-
299
- :return: The session_state_change_message of this SocketMessageSchemas. # noqa: E501
300
- :rtype: SessionStateChangeMessage
301
- """
302
- return self._session_state_change_message
303
-
304
- @session_state_change_message.setter
305
- def session_state_change_message(self, session_state_change_message):
306
- """Sets the session_state_change_message of this SocketMessageSchemas.
307
-
308
-
309
- :param session_state_change_message: The session_state_change_message of this SocketMessageSchemas. # noqa: E501
310
- :type: SessionStateChangeMessage
311
- """
312
- if self.local_vars_configuration.client_side_validation and session_state_change_message is None: # noqa: E501
313
- raise ValueError("Invalid value for `session_state_change_message`, must not be `None`") # noqa: E501
314
-
315
- self._session_state_change_message = session_state_change_message
316
-
317
- @property
318
- def session_kill_command_message(self):
319
- """Gets the session_kill_command_message of this SocketMessageSchemas. # noqa: E501
320
-
321
-
322
- :return: The session_kill_command_message of this SocketMessageSchemas. # noqa: E501
323
- :rtype: SessionKillCommandMessage
324
- """
325
- return self._session_kill_command_message
326
-
327
- @session_kill_command_message.setter
328
- def session_kill_command_message(self, session_kill_command_message):
329
- """Sets the session_kill_command_message of this SocketMessageSchemas.
330
-
331
-
332
- :param session_kill_command_message: The session_kill_command_message of this SocketMessageSchemas. # noqa: E501
333
- :type: SessionKillCommandMessage
334
- """
335
- if self.local_vars_configuration.client_side_validation and session_kill_command_message is None: # noqa: E501
336
- raise ValueError("Invalid value for `session_kill_command_message`, must not be `None`") # noqa: E501
337
-
338
- self._session_kill_command_message = session_kill_command_message
339
-
340
- @property
341
- def session_finish_command_message(self):
342
- """Gets the session_finish_command_message of this SocketMessageSchemas. # noqa: E501
343
-
344
-
345
- :return: The session_finish_command_message of this SocketMessageSchemas. # noqa: E501
346
- :rtype: SessionFinishCommandMessage
347
- """
348
- return self._session_finish_command_message
349
-
350
- @session_finish_command_message.setter
351
- def session_finish_command_message(self, session_finish_command_message):
352
- """Sets the session_finish_command_message of this SocketMessageSchemas.
353
-
354
-
355
- :param session_finish_command_message: The session_finish_command_message of this SocketMessageSchemas. # noqa: E501
356
- :type: SessionFinishCommandMessage
357
- """
358
- if self.local_vars_configuration.client_side_validation and session_finish_command_message is None: # noqa: E501
359
- raise ValueError("Invalid value for `session_finish_command_message`, must not be `None`") # noqa: E501
360
-
361
- self._session_finish_command_message = session_finish_command_message
362
-
363
- @property
364
- def snapshot_create_message(self):
365
- """Gets the snapshot_create_message of this SocketMessageSchemas. # noqa: E501
366
-
367
-
368
- :return: The snapshot_create_message of this SocketMessageSchemas. # noqa: E501
369
- :rtype: SnapshotCreateMessage
370
- """
371
- return self._snapshot_create_message
372
-
373
- @snapshot_create_message.setter
374
- def snapshot_create_message(self, snapshot_create_message):
375
- """Sets the snapshot_create_message of this SocketMessageSchemas.
376
-
377
-
378
- :param snapshot_create_message: The snapshot_create_message of this SocketMessageSchemas. # noqa: E501
379
- :type: SnapshotCreateMessage
380
- """
381
- if self.local_vars_configuration.client_side_validation and snapshot_create_message is None: # noqa: E501
382
- raise ValueError("Invalid value for `snapshot_create_message`, must not be `None`") # noqa: E501
383
-
384
- self._snapshot_create_message = snapshot_create_message
385
-
386
- @property
387
- def snapshot_delete_message(self):
388
- """Gets the snapshot_delete_message of this SocketMessageSchemas. # noqa: E501
389
-
390
-
391
- :return: The snapshot_delete_message of this SocketMessageSchemas. # noqa: E501
392
- :rtype: SnapshotDeleteMessage
393
- """
394
- return self._snapshot_delete_message
395
-
396
- @snapshot_delete_message.setter
397
- def snapshot_delete_message(self, snapshot_delete_message):
398
- """Sets the snapshot_delete_message of this SocketMessageSchemas.
399
-
400
-
401
- :param snapshot_delete_message: The snapshot_delete_message of this SocketMessageSchemas. # noqa: E501
402
- :type: SnapshotDeleteMessage
403
- """
404
- if self.local_vars_configuration.client_side_validation and snapshot_delete_message is None: # noqa: E501
405
- raise ValueError("Invalid value for `snapshot_delete_message`, must not be `None`") # noqa: E501
406
-
407
- self._snapshot_delete_message = snapshot_delete_message
408
-
409
- @property
410
- def snapshot_patch_message(self):
411
- """Gets the snapshot_patch_message of this SocketMessageSchemas. # noqa: E501
412
-
413
-
414
- :return: The snapshot_patch_message of this SocketMessageSchemas. # noqa: E501
415
- :rtype: SnapshotPatchMessage
416
- """
417
- return self._snapshot_patch_message
418
-
419
- @snapshot_patch_message.setter
420
- def snapshot_patch_message(self, snapshot_patch_message):
421
- """Sets the snapshot_patch_message of this SocketMessageSchemas.
422
-
423
-
424
- :param snapshot_patch_message: The snapshot_patch_message of this SocketMessageSchemas. # noqa: E501
425
- :type: SnapshotPatchMessage
426
- """
427
- if self.local_vars_configuration.client_side_validation and snapshot_patch_message is None: # noqa: E501
428
- raise ValueError("Invalid value for `snapshot_patch_message`, must not be `None`") # noqa: E501
429
-
430
- self._snapshot_patch_message = snapshot_patch_message
431
-
432
- @property
433
- def project_collaborators_put_message(self):
434
- """Gets the project_collaborators_put_message of this SocketMessageSchemas. # noqa: E501
435
-
436
-
437
- :return: The project_collaborators_put_message of this SocketMessageSchemas. # noqa: E501
438
- :rtype: ProjectCollaboratorsPutMessage
439
- """
440
- return self._project_collaborators_put_message
441
-
442
- @project_collaborators_put_message.setter
443
- def project_collaborators_put_message(self, project_collaborators_put_message):
444
- """Sets the project_collaborators_put_message of this SocketMessageSchemas.
445
-
446
-
447
- :param project_collaborators_put_message: The project_collaborators_put_message of this SocketMessageSchemas. # noqa: E501
448
- :type: ProjectCollaboratorsPutMessage
449
- """
450
- if self.local_vars_configuration.client_side_validation and project_collaborators_put_message is None: # noqa: E501
451
- raise ValueError("Invalid value for `project_collaborators_put_message`, must not be `None`") # noqa: E501
452
-
453
- self._project_collaborators_put_message = project_collaborators_put_message
454
-
455
- def to_dict(self):
456
- """Returns the model properties as a dict"""
457
- result = {}
458
-
459
- for attr, _ in six.iteritems(self.openapi_types):
460
- value = getattr(self, attr)
461
- if isinstance(value, list):
462
- result[attr] = list(map(
463
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
464
- value
465
- ))
466
- elif hasattr(value, "to_dict"):
467
- result[attr] = value.to_dict()
468
- elif isinstance(value, dict):
469
- result[attr] = dict(map(
470
- lambda item: (item[0], item[1].to_dict())
471
- if hasattr(item[1], "to_dict") else item,
472
- value.items()
473
- ))
474
- else:
475
- result[attr] = value
476
-
477
- return result
478
-
479
- def to_str(self):
480
- """Returns the string representation of the model"""
481
- return pprint.pformat(self.to_dict())
482
-
483
- def __repr__(self):
484
- """For `print` and `pprint`"""
485
- return self.to_str()
486
-
487
- def __eq__(self, other):
488
- """Returns true if both objects are equal"""
489
- if not isinstance(other, SocketMessageSchemas):
490
- return False
491
-
492
- return self.to_dict() == other.to_dict()
493
-
494
- def __ne__(self, other):
495
- """Returns true if both objects are not equal"""
496
- if not isinstance(other, SocketMessageSchemas):
497
- return True
498
-
499
- return self.to_dict() != other.to_dict()