forked from basespace/basespace-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppSession.py
More file actions
40 lines (35 loc) · 1.36 KB
/
AppSession.py
File metadata and controls
40 lines (35 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from BaseSpacePy.model.AppSessionSemiCompact import AppSessionSemiCompact
class AppSession(AppSessionSemiCompact):
'''
Returned from getAppSessionById() and getAppSesssion()
'''
def __init__(self):
self.swaggerTypes = {
'Id':'str',
'Href': 'str',
'Type': 'str',
'Name': 'str',
'UserCreatedBy':'UserCompact',
'DateCreated': 'datetime',
'ModifiedOn': 'datetime',
'Status':'str',
'StatusSummary': 'str',
'Application':'Application',
'References':'list<AppSessionLaunchObject>',
'Properties':'PropertyList',
'AuthorizationCode': 'str',
'OriginatingUri': 'str',
}
def __deserializeReferences__(self, api):
'''
Convert References (actually, the Content of each AppSessionLaunchObject) from dicts to objects,
if the type is a primary BaseSpace item (eg., Project)
:param api: A BaseSpaceAPI instance
:returns: Self, with each Reference's Content converted from dict to an object if the type is a major BaseSpace item (eg., a Project)
'''
ref = []
for r in self.References:
res = r.__deserializeObject__(api)
ref.append(res)
self.References = ref
return self