@@ -25,10 +25,10 @@ class GSDataFormat(object):
2525 See: http://www.genomespace.org/support/api/restful-access-to-dm#appendix_c
2626 """
2727
28- def __init__ (self , name , url , fileExtension , description ):
28+ def __init__ (self , name , url , file_extension , description ):
2929 self .name = name
3030 self .url = url
31- self .fileExtension = fileExtension
31+ self .file_extension = file_extension
3232 self .description = description
3333
3434 @staticmethod
@@ -93,9 +93,9 @@ class GSAclObject(object):
9393 See: http://www.genomespace.org/support/api/restful-access-to-dm#acl
9494 """
9595
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
9999
100100 @staticmethod
101101 def from_json (json_data ):
@@ -113,9 +113,9 @@ class GSEffectiveAcl(object):
113113 See: http://www.genomespace.org/support/api/restful-access-to-dm#appendix_f
114114 """
115115
116- def __init__ (self , accessControlEntries , effective_acl_object ,
116+ def __init__ (self , access_control_entries , effective_acl_object ,
117117 effective_acl_id = None ):
118- self .accessControlEntries = accessControlEntries
118+ self .access_control_entries = access_control_entries
119119 self .object = effective_acl_object
120120 self .id = effective_acl_id
121121
@@ -137,22 +137,22 @@ class GSFileMetadata(object):
137137 See: http://www.genomespace.org/support/api/restful-access-to-dm#appendix_a
138138 """
139139
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 ):
143143 self .name = name
144144 self .path = path
145145 self .url = url
146- self .parentUrl = parentUrl
146+ self .parent_url = parentUrl
147147 self .size = size
148148 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
156156
157157 @staticmethod
158158 def from_json (json_data ):
@@ -578,7 +578,7 @@ def isdir(self, genomespace_url):
578578 """
579579 try :
580580 md = self .get_metadata (genomespace_url )
581- return md .isDirectory
581+ return md .is_directory
582582 except GSClientException :
583583 return False
584584 except HTTPError as e :
0 commit comments