anyscale 0.26.17__py3-none-any.whl → 0.26.20__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 (61) hide show
  1. anyscale/_private/docgen/models.md +3 -3
  2. anyscale/anyscale-cloud-setup.yaml +0 -4
  3. anyscale/client/README.md +18 -38
  4. anyscale/client/openapi_client/__init__.py +14 -20
  5. anyscale/client/openapi_client/api/default_api.py +460 -2097
  6. anyscale/client/openapi_client/models/__init__.py +14 -20
  7. anyscale/client/openapi_client/models/aws_config.py +402 -0
  8. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  9. anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
  10. anyscale/client/openapi_client/models/{webterminal_list_response.py → clouddeployment_list_response.py} +15 -15
  11. anyscale/client/openapi_client/models/decorated_production_job_state_transition.py +2 -2
  12. anyscale/client/openapi_client/models/file_storage.py +206 -0
  13. anyscale/client/openapi_client/models/gcp_config.py +402 -0
  14. anyscale/client/openapi_client/models/{session_details.py → job_queue_sort_directive.py} +39 -39
  15. anyscale/client/openapi_client/models/{sessiondescribe_response.py → job_queue_sort_field.py} +20 -34
  16. anyscale/client/openapi_client/models/job_queues_query.py +31 -3
  17. anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
  18. anyscale/client/openapi_client/models/{monitor_logs_extension.py → networking_mode.py} +7 -7
  19. anyscale/client/openapi_client/models/object_storage.py +178 -0
  20. anyscale/client/openapi_client/models/{sessiondetails_response.py → pcp_config.py} +23 -22
  21. anyscale/client/openapi_client/models/production_job_state_transition.py +2 -2
  22. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  23. anyscale/client/openapi_client/models/{external_service_status.py → update_job_queue_request.py} +39 -36
  24. anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
  25. anyscale/client/openapi_client/models/{archivedlogsinfo_response.py → workspacetemplatereadme_response.py} +11 -11
  26. anyscale/commands/cloud_commands.py +55 -7
  27. anyscale/commands/command_examples.py +58 -0
  28. anyscale/commands/job_commands.py +2 -2
  29. anyscale/commands/job_queue_commands.py +172 -0
  30. anyscale/connect_utils/prepare_cluster.py +19 -14
  31. anyscale/controllers/cloud_controller.py +60 -3
  32. anyscale/controllers/job_controller.py +215 -3
  33. anyscale/scripts.py +3 -0
  34. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  35. anyscale/sdk/anyscale_client/models/production_job_state_transition.py +2 -2
  36. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  37. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  38. anyscale/util.py +3 -1
  39. anyscale/utils/connect_helpers.py +34 -0
  40. anyscale/version.py +1 -1
  41. anyscale/workspace/_private/workspace_sdk.py +19 -6
  42. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/METADATA +1 -1
  43. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/RECORD +48 -53
  44. anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
  45. anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
  46. anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
  47. anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
  48. anyscale/client/openapi_client/models/create_session_response.py +0 -174
  49. anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
  50. anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
  51. anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
  52. anyscale/client/openapi_client/models/session_describe.py +0 -175
  53. anyscale/client/openapi_client/models/session_history_item.py +0 -146
  54. anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
  55. anyscale/client/openapi_client/models/update_compute_template.py +0 -146
  56. anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
  57. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/LICENSE +0 -0
  58. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/NOTICE +0 -0
  59. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/WHEEL +0 -0
  60. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/entry_points.txt +0 -0
  61. {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/top_level.txt +0 -0
@@ -1,123 +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 CreateExperimentalWorkspaceFromJob(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
- 'job_id': 'str'
37
- }
38
-
39
- attribute_map = {
40
- 'job_id': 'job_id'
41
- }
42
-
43
- def __init__(self, job_id=None, local_vars_configuration=None): # noqa: E501
44
- """CreateExperimentalWorkspaceFromJob - a model defined in OpenAPI""" # noqa: E501
45
- if local_vars_configuration is None:
46
- local_vars_configuration = Configuration()
47
- self.local_vars_configuration = local_vars_configuration
48
-
49
- self._job_id = None
50
- self.discriminator = None
51
-
52
- self.job_id = job_id
53
-
54
- @property
55
- def job_id(self):
56
- """Gets the job_id of this CreateExperimentalWorkspaceFromJob. # noqa: E501
57
-
58
- Id of the associated job. # noqa: E501
59
-
60
- :return: The job_id of this CreateExperimentalWorkspaceFromJob. # noqa: E501
61
- :rtype: str
62
- """
63
- return self._job_id
64
-
65
- @job_id.setter
66
- def job_id(self, job_id):
67
- """Sets the job_id of this CreateExperimentalWorkspaceFromJob.
68
-
69
- Id of the associated job. # noqa: E501
70
-
71
- :param job_id: The job_id of this CreateExperimentalWorkspaceFromJob. # noqa: E501
72
- :type: str
73
- """
74
- if self.local_vars_configuration.client_side_validation and job_id is None: # noqa: E501
75
- raise ValueError("Invalid value for `job_id`, must not be `None`") # noqa: E501
76
-
77
- self._job_id = job_id
78
-
79
- def to_dict(self):
80
- """Returns the model properties as a dict"""
81
- result = {}
82
-
83
- for attr, _ in six.iteritems(self.openapi_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
-
101
- return result
102
-
103
- def to_str(self):
104
- """Returns the string representation of the model"""
105
- return pprint.pformat(self.to_dict())
106
-
107
- def __repr__(self):
108
- """For `print` and `pprint`"""
109
- return self.to_str()
110
-
111
- def __eq__(self, other):
112
- """Returns true if both objects are equal"""
113
- if not isinstance(other, CreateExperimentalWorkspaceFromJob):
114
- return False
115
-
116
- return self.to_dict() == other.to_dict()
117
-
118
- def __ne__(self, other):
119
- """Returns true if both objects are not equal"""
120
- if not isinstance(other, CreateExperimentalWorkspaceFromJob):
121
- return True
122
-
123
- return self.to_dict() != other.to_dict()
@@ -1,538 +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 CreateSessionFromSnapshotOptions(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_id': 'str',
37
- 'name': 'str',
38
- 'session_params': 'object',
39
- 'command_name': 'str',
40
- 'command_params': 'object',
41
- 'shell': 'bool',
42
- 'min_workers': 'int',
43
- 'max_workers': 'int',
44
- 'cluster_config': 'WriteClusterConfig',
45
- 'build_id': 'str',
46
- 'compute_template_id': 'str',
47
- 'cloud_id': 'str',
48
- 'start_session': 'bool',
49
- 'wait_for_snapshot': 'bool',
50
- 'idle_timeout': 'int',
51
- 'uses_app_config': 'bool',
52
- 'user_service_access': 'UserServiceAccessTypes'
53
- }
54
-
55
- attribute_map = {
56
- 'project_id': 'project_id',
57
- 'name': 'name',
58
- 'session_params': 'session_params',
59
- 'command_name': 'command_name',
60
- 'command_params': 'command_params',
61
- 'shell': 'shell',
62
- 'min_workers': 'min_workers',
63
- 'max_workers': 'max_workers',
64
- 'cluster_config': 'cluster_config',
65
- 'build_id': 'build_id',
66
- 'compute_template_id': 'compute_template_id',
67
- 'cloud_id': 'cloud_id',
68
- 'start_session': 'start_session',
69
- 'wait_for_snapshot': 'wait_for_snapshot',
70
- 'idle_timeout': 'idle_timeout',
71
- 'uses_app_config': 'uses_app_config',
72
- 'user_service_access': 'user_service_access'
73
- }
74
-
75
- def __init__(self, project_id=None, name=None, session_params=None, command_name=None, command_params=None, shell=False, min_workers=None, max_workers=None, cluster_config=None, build_id=None, compute_template_id=None, cloud_id=None, start_session=True, wait_for_snapshot=False, idle_timeout=None, uses_app_config=False, user_service_access=None, local_vars_configuration=None): # noqa: E501
76
- """CreateSessionFromSnapshotOptions - a model defined in OpenAPI""" # noqa: E501
77
- if local_vars_configuration is None:
78
- local_vars_configuration = Configuration()
79
- self.local_vars_configuration = local_vars_configuration
80
-
81
- self._project_id = None
82
- self._name = None
83
- self._session_params = None
84
- self._command_name = None
85
- self._command_params = None
86
- self._shell = None
87
- self._min_workers = None
88
- self._max_workers = None
89
- self._cluster_config = None
90
- self._build_id = None
91
- self._compute_template_id = None
92
- self._cloud_id = None
93
- self._start_session = None
94
- self._wait_for_snapshot = None
95
- self._idle_timeout = None
96
- self._uses_app_config = None
97
- self._user_service_access = None
98
- self.discriminator = None
99
-
100
- self.project_id = project_id
101
- self.name = name
102
- if session_params is not None:
103
- self.session_params = session_params
104
- if command_name is not None:
105
- self.command_name = command_name
106
- if command_params is not None:
107
- self.command_params = command_params
108
- if shell is not None:
109
- self.shell = shell
110
- if min_workers is not None:
111
- self.min_workers = min_workers
112
- if max_workers is not None:
113
- self.max_workers = max_workers
114
- if cluster_config is not None:
115
- self.cluster_config = cluster_config
116
- if build_id is not None:
117
- self.build_id = build_id
118
- if compute_template_id is not None:
119
- self.compute_template_id = compute_template_id
120
- if cloud_id is not None:
121
- self.cloud_id = cloud_id
122
- if start_session is not None:
123
- self.start_session = start_session
124
- if wait_for_snapshot is not None:
125
- self.wait_for_snapshot = wait_for_snapshot
126
- if idle_timeout is not None:
127
- self.idle_timeout = idle_timeout
128
- if uses_app_config is not None:
129
- self.uses_app_config = uses_app_config
130
- if user_service_access is not None:
131
- self.user_service_access = user_service_access
132
-
133
- @property
134
- def project_id(self):
135
- """Gets the project_id of this CreateSessionFromSnapshotOptions. # noqa: E501
136
-
137
-
138
- :return: The project_id of this CreateSessionFromSnapshotOptions. # noqa: E501
139
- :rtype: str
140
- """
141
- return self._project_id
142
-
143
- @project_id.setter
144
- def project_id(self, project_id):
145
- """Sets the project_id of this CreateSessionFromSnapshotOptions.
146
-
147
-
148
- :param project_id: The project_id of this CreateSessionFromSnapshotOptions. # noqa: E501
149
- :type: str
150
- """
151
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
152
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
153
-
154
- self._project_id = project_id
155
-
156
- @property
157
- def name(self):
158
- """Gets the name of this CreateSessionFromSnapshotOptions. # noqa: E501
159
-
160
-
161
- :return: The name of this CreateSessionFromSnapshotOptions. # noqa: E501
162
- :rtype: str
163
- """
164
- return self._name
165
-
166
- @name.setter
167
- def name(self, name):
168
- """Sets the name of this CreateSessionFromSnapshotOptions.
169
-
170
-
171
- :param name: The name of this CreateSessionFromSnapshotOptions. # noqa: E501
172
- :type: str
173
- """
174
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
175
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
176
-
177
- self._name = name
178
-
179
- @property
180
- def session_params(self):
181
- """Gets the session_params of this CreateSessionFromSnapshotOptions. # noqa: E501
182
-
183
-
184
- :return: The session_params of this CreateSessionFromSnapshotOptions. # noqa: E501
185
- :rtype: object
186
- """
187
- return self._session_params
188
-
189
- @session_params.setter
190
- def session_params(self, session_params):
191
- """Sets the session_params of this CreateSessionFromSnapshotOptions.
192
-
193
-
194
- :param session_params: The session_params of this CreateSessionFromSnapshotOptions. # noqa: E501
195
- :type: object
196
- """
197
-
198
- self._session_params = session_params
199
-
200
- @property
201
- def command_name(self):
202
- """Gets the command_name of this CreateSessionFromSnapshotOptions. # noqa: E501
203
-
204
-
205
- :return: The command_name of this CreateSessionFromSnapshotOptions. # noqa: E501
206
- :rtype: str
207
- """
208
- return self._command_name
209
-
210
- @command_name.setter
211
- def command_name(self, command_name):
212
- """Sets the command_name of this CreateSessionFromSnapshotOptions.
213
-
214
-
215
- :param command_name: The command_name of this CreateSessionFromSnapshotOptions. # noqa: E501
216
- :type: str
217
- """
218
-
219
- self._command_name = command_name
220
-
221
- @property
222
- def command_params(self):
223
- """Gets the command_params of this CreateSessionFromSnapshotOptions. # noqa: E501
224
-
225
-
226
- :return: The command_params of this CreateSessionFromSnapshotOptions. # noqa: E501
227
- :rtype: object
228
- """
229
- return self._command_params
230
-
231
- @command_params.setter
232
- def command_params(self, command_params):
233
- """Sets the command_params of this CreateSessionFromSnapshotOptions.
234
-
235
-
236
- :param command_params: The command_params of this CreateSessionFromSnapshotOptions. # noqa: E501
237
- :type: object
238
- """
239
-
240
- self._command_params = command_params
241
-
242
- @property
243
- def shell(self):
244
- """Gets the shell of this CreateSessionFromSnapshotOptions. # noqa: E501
245
-
246
-
247
- :return: The shell of this CreateSessionFromSnapshotOptions. # noqa: E501
248
- :rtype: bool
249
- """
250
- return self._shell
251
-
252
- @shell.setter
253
- def shell(self, shell):
254
- """Sets the shell of this CreateSessionFromSnapshotOptions.
255
-
256
-
257
- :param shell: The shell of this CreateSessionFromSnapshotOptions. # noqa: E501
258
- :type: bool
259
- """
260
-
261
- self._shell = shell
262
-
263
- @property
264
- def min_workers(self):
265
- """Gets the min_workers of this CreateSessionFromSnapshotOptions. # noqa: E501
266
-
267
-
268
- :return: The min_workers of this CreateSessionFromSnapshotOptions. # noqa: E501
269
- :rtype: int
270
- """
271
- return self._min_workers
272
-
273
- @min_workers.setter
274
- def min_workers(self, min_workers):
275
- """Sets the min_workers of this CreateSessionFromSnapshotOptions.
276
-
277
-
278
- :param min_workers: The min_workers of this CreateSessionFromSnapshotOptions. # noqa: E501
279
- :type: int
280
- """
281
-
282
- self._min_workers = min_workers
283
-
284
- @property
285
- def max_workers(self):
286
- """Gets the max_workers of this CreateSessionFromSnapshotOptions. # noqa: E501
287
-
288
-
289
- :return: The max_workers of this CreateSessionFromSnapshotOptions. # noqa: E501
290
- :rtype: int
291
- """
292
- return self._max_workers
293
-
294
- @max_workers.setter
295
- def max_workers(self, max_workers):
296
- """Sets the max_workers of this CreateSessionFromSnapshotOptions.
297
-
298
-
299
- :param max_workers: The max_workers of this CreateSessionFromSnapshotOptions. # noqa: E501
300
- :type: int
301
- """
302
-
303
- self._max_workers = max_workers
304
-
305
- @property
306
- def cluster_config(self):
307
- """Gets the cluster_config of this CreateSessionFromSnapshotOptions. # noqa: E501
308
-
309
-
310
- :return: The cluster_config of this CreateSessionFromSnapshotOptions. # noqa: E501
311
- :rtype: WriteClusterConfig
312
- """
313
- return self._cluster_config
314
-
315
- @cluster_config.setter
316
- def cluster_config(self, cluster_config):
317
- """Sets the cluster_config of this CreateSessionFromSnapshotOptions.
318
-
319
-
320
- :param cluster_config: The cluster_config of this CreateSessionFromSnapshotOptions. # noqa: E501
321
- :type: WriteClusterConfig
322
- """
323
-
324
- self._cluster_config = cluster_config
325
-
326
- @property
327
- def build_id(self):
328
- """Gets the build_id of this CreateSessionFromSnapshotOptions. # noqa: E501
329
-
330
-
331
- :return: The build_id of this CreateSessionFromSnapshotOptions. # noqa: E501
332
- :rtype: str
333
- """
334
- return self._build_id
335
-
336
- @build_id.setter
337
- def build_id(self, build_id):
338
- """Sets the build_id of this CreateSessionFromSnapshotOptions.
339
-
340
-
341
- :param build_id: The build_id of this CreateSessionFromSnapshotOptions. # noqa: E501
342
- :type: str
343
- """
344
-
345
- self._build_id = build_id
346
-
347
- @property
348
- def compute_template_id(self):
349
- """Gets the compute_template_id of this CreateSessionFromSnapshotOptions. # noqa: E501
350
-
351
-
352
- :return: The compute_template_id of this CreateSessionFromSnapshotOptions. # noqa: E501
353
- :rtype: str
354
- """
355
- return self._compute_template_id
356
-
357
- @compute_template_id.setter
358
- def compute_template_id(self, compute_template_id):
359
- """Sets the compute_template_id of this CreateSessionFromSnapshotOptions.
360
-
361
-
362
- :param compute_template_id: The compute_template_id of this CreateSessionFromSnapshotOptions. # noqa: E501
363
- :type: str
364
- """
365
-
366
- self._compute_template_id = compute_template_id
367
-
368
- @property
369
- def cloud_id(self):
370
- """Gets the cloud_id of this CreateSessionFromSnapshotOptions. # noqa: E501
371
-
372
-
373
- :return: The cloud_id of this CreateSessionFromSnapshotOptions. # noqa: E501
374
- :rtype: str
375
- """
376
- return self._cloud_id
377
-
378
- @cloud_id.setter
379
- def cloud_id(self, cloud_id):
380
- """Sets the cloud_id of this CreateSessionFromSnapshotOptions.
381
-
382
-
383
- :param cloud_id: The cloud_id of this CreateSessionFromSnapshotOptions. # noqa: E501
384
- :type: str
385
- """
386
-
387
- self._cloud_id = cloud_id
388
-
389
- @property
390
- def start_session(self):
391
- """Gets the start_session of this CreateSessionFromSnapshotOptions. # noqa: E501
392
-
393
-
394
- :return: The start_session of this CreateSessionFromSnapshotOptions. # noqa: E501
395
- :rtype: bool
396
- """
397
- return self._start_session
398
-
399
- @start_session.setter
400
- def start_session(self, start_session):
401
- """Sets the start_session of this CreateSessionFromSnapshotOptions.
402
-
403
-
404
- :param start_session: The start_session of this CreateSessionFromSnapshotOptions. # noqa: E501
405
- :type: bool
406
- """
407
-
408
- self._start_session = start_session
409
-
410
- @property
411
- def wait_for_snapshot(self):
412
- """Gets the wait_for_snapshot of this CreateSessionFromSnapshotOptions. # noqa: E501
413
-
414
-
415
- :return: The wait_for_snapshot of this CreateSessionFromSnapshotOptions. # noqa: E501
416
- :rtype: bool
417
- """
418
- return self._wait_for_snapshot
419
-
420
- @wait_for_snapshot.setter
421
- def wait_for_snapshot(self, wait_for_snapshot):
422
- """Sets the wait_for_snapshot of this CreateSessionFromSnapshotOptions.
423
-
424
-
425
- :param wait_for_snapshot: The wait_for_snapshot of this CreateSessionFromSnapshotOptions. # noqa: E501
426
- :type: bool
427
- """
428
-
429
- self._wait_for_snapshot = wait_for_snapshot
430
-
431
- @property
432
- def idle_timeout(self):
433
- """Gets the idle_timeout of this CreateSessionFromSnapshotOptions. # noqa: E501
434
-
435
-
436
- :return: The idle_timeout of this CreateSessionFromSnapshotOptions. # noqa: E501
437
- :rtype: int
438
- """
439
- return self._idle_timeout
440
-
441
- @idle_timeout.setter
442
- def idle_timeout(self, idle_timeout):
443
- """Sets the idle_timeout of this CreateSessionFromSnapshotOptions.
444
-
445
-
446
- :param idle_timeout: The idle_timeout of this CreateSessionFromSnapshotOptions. # noqa: E501
447
- :type: int
448
- """
449
-
450
- self._idle_timeout = idle_timeout
451
-
452
- @property
453
- def uses_app_config(self):
454
- """Gets the uses_app_config of this CreateSessionFromSnapshotOptions. # noqa: E501
455
-
456
-
457
- :return: The uses_app_config of this CreateSessionFromSnapshotOptions. # noqa: E501
458
- :rtype: bool
459
- """
460
- return self._uses_app_config
461
-
462
- @uses_app_config.setter
463
- def uses_app_config(self, uses_app_config):
464
- """Sets the uses_app_config of this CreateSessionFromSnapshotOptions.
465
-
466
-
467
- :param uses_app_config: The uses_app_config of this CreateSessionFromSnapshotOptions. # noqa: E501
468
- :type: bool
469
- """
470
-
471
- self._uses_app_config = uses_app_config
472
-
473
- @property
474
- def user_service_access(self):
475
- """Gets the user_service_access of this CreateSessionFromSnapshotOptions. # noqa: E501
476
-
477
-
478
- :return: The user_service_access of this CreateSessionFromSnapshotOptions. # noqa: E501
479
- :rtype: UserServiceAccessTypes
480
- """
481
- return self._user_service_access
482
-
483
- @user_service_access.setter
484
- def user_service_access(self, user_service_access):
485
- """Sets the user_service_access of this CreateSessionFromSnapshotOptions.
486
-
487
-
488
- :param user_service_access: The user_service_access of this CreateSessionFromSnapshotOptions. # noqa: E501
489
- :type: UserServiceAccessTypes
490
- """
491
-
492
- self._user_service_access = user_service_access
493
-
494
- def to_dict(self):
495
- """Returns the model properties as a dict"""
496
- result = {}
497
-
498
- for attr, _ in six.iteritems(self.openapi_types):
499
- value = getattr(self, attr)
500
- if isinstance(value, list):
501
- result[attr] = list(map(
502
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
503
- value
504
- ))
505
- elif hasattr(value, "to_dict"):
506
- result[attr] = value.to_dict()
507
- elif isinstance(value, dict):
508
- result[attr] = dict(map(
509
- lambda item: (item[0], item[1].to_dict())
510
- if hasattr(item[1], "to_dict") else item,
511
- value.items()
512
- ))
513
- else:
514
- result[attr] = value
515
-
516
- return result
517
-
518
- def to_str(self):
519
- """Returns the string representation of the model"""
520
- return pprint.pformat(self.to_dict())
521
-
522
- def __repr__(self):
523
- """For `print` and `pprint`"""
524
- return self.to_str()
525
-
526
- def __eq__(self, other):
527
- """Returns true if both objects are equal"""
528
- if not isinstance(other, CreateSessionFromSnapshotOptions):
529
- return False
530
-
531
- return self.to_dict() == other.to_dict()
532
-
533
- def __ne__(self, other):
534
- """Returns true if both objects are not equal"""
535
- if not isinstance(other, CreateSessionFromSnapshotOptions):
536
- return True
537
-
538
- return self.to_dict() != other.to_dict()