@@ -25,10 +25,10 @@ class GSDataFormat(object):
25
25
See: http://www.genomespace.org/support/api/restful-access-to-dm#appendix_c
26
26
"""
27
27
28
- def __init__ (self , name , url , fileExtension , description ):
28
+ def __init__ (self , name , url , file_extension , description ):
29
29
self .name = name
30
30
self .url = url
31
- self .fileExtension = fileExtension
31
+ self .file_extension = file_extension
32
32
self .description = description
33
33
34
34
@staticmethod
@@ -93,9 +93,9 @@ class GSAclObject(object):
93
93
See: http://www.genomespace.org/support/api/restful-access-to-dm#acl
94
94
"""
95
95
96
- def __init__ (self , objectId , objectType ):
97
- self .objectId = objectId
98
- self .objectType = objectType
96
+ def __init__ (self , object_id , object_type ):
97
+ self .object_id = object_id
98
+ self .object_type = object_type
99
99
100
100
@staticmethod
101
101
def from_json (json_data ):
@@ -113,9 +113,9 @@ class GSEffectiveAcl(object):
113
113
See: http://www.genomespace.org/support/api/restful-access-to-dm#appendix_f
114
114
"""
115
115
116
- def __init__ (self , accessControlEntries , effective_acl_object ,
116
+ def __init__ (self , access_control_entries , effective_acl_object ,
117
117
effective_acl_id = None ):
118
- self .accessControlEntries = accessControlEntries
118
+ self .access_control_entries = access_control_entries
119
119
self .object = effective_acl_object
120
120
self .id = effective_acl_id
121
121
@@ -137,22 +137,22 @@ class GSFileMetadata(object):
137
137
See: http://www.genomespace.org/support/api/restful-access-to-dm#appendix_a
138
138
"""
139
139
140
- def __init__ (self , name , path , url , parentUrl , size , owner , isDirectory ,
141
- isLink , targetPath , lastModified , dataFormat ,
142
- availableDataFormats , effectiveAcl ):
140
+ def __init__ (self , name , path , url , parentUrl , size , owner , is_directory ,
141
+ is_link , target_path , last_modified , data_format ,
142
+ available_data_formats , effective_acl ):
143
143
self .name = name
144
144
self .path = path
145
145
self .url = url
146
- self .parentUrl = parentUrl
146
+ self .parent_url = parentUrl
147
147
self .size = size
148
148
self .owner = owner
149
- self .isDirectory = isDirectory
150
- self .isLink = isLink
151
- self .targetPath = targetPath
152
- self .lastModified = lastModified
153
- self .dataFormat = dataFormat
154
- self .availableDataFormats = availableDataFormats
155
- self .effectiveAcl = effectiveAcl
149
+ self .is_directory = is_directory
150
+ self .is_link = is_link
151
+ self .target_path = target_path
152
+ self .last_modified = last_modified
153
+ self .data_format = data_format
154
+ self .available_data_formats = available_data_formats
155
+ self .effective_acl = effective_acl
156
156
157
157
@staticmethod
158
158
def from_json (json_data ):
@@ -578,7 +578,7 @@ def isdir(self, genomespace_url):
578
578
"""
579
579
try :
580
580
md = self .get_metadata (genomespace_url )
581
- return md .isDirectory
581
+ return md .is_directory
582
582
except GSClientException :
583
583
return False
584
584
except HTTPError as e :
0 commit comments