anyscale 0.26.17__py3-none-any.whl → 0.26.18__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.
- anyscale/anyscale-cloud-setup.yaml +0 -4
- anyscale/client/README.md +0 -37
- anyscale/client/openapi_client/__init__.py +0 -20
- anyscale/client/openapi_client/api/default_api.py +192 -2193
- anyscale/client/openapi_client/models/__init__.py +0 -20
- anyscale/commands/cloud_commands.py +32 -4
- anyscale/connect_utils/prepare_cluster.py +19 -14
- anyscale/controllers/cloud_controller.py +23 -3
- anyscale/version.py +1 -1
- {anyscale-0.26.17.dist-info → anyscale-0.26.18.dist-info}/METADATA +1 -1
- {anyscale-0.26.17.dist-info → anyscale-0.26.18.dist-info}/RECORD +16 -36
- anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
- anyscale/client/openapi_client/models/archivedlogsinfo_response.py +0 -121
- anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
- anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
- anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
- anyscale/client/openapi_client/models/create_session_response.py +0 -174
- anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
- anyscale/client/openapi_client/models/external_service_status.py +0 -147
- anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
- anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
- anyscale/client/openapi_client/models/monitor_logs_extension.py +0 -100
- anyscale/client/openapi_client/models/session_describe.py +0 -175
- anyscale/client/openapi_client/models/session_details.py +0 -148
- anyscale/client/openapi_client/models/session_history_item.py +0 -146
- anyscale/client/openapi_client/models/sessiondescribe_response.py +0 -121
- anyscale/client/openapi_client/models/sessiondetails_response.py +0 -121
- anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
- anyscale/client/openapi_client/models/update_compute_template.py +0 -146
- anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
- anyscale/client/openapi_client/models/webterminal_list_response.py +0 -147
- {anyscale-0.26.17.dist-info → anyscale-0.26.18.dist-info}/LICENSE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.18.dist-info}/NOTICE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.18.dist-info}/WHEEL +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.18.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.18.dist-info}/top_level.txt +0 -0
@@ -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()
|