diff --git a/pybis/src/python/pybis/pybis.py b/pybis/src/python/pybis/pybis.py index db5733c542f909981e15b7e973ad7f9274cd7600..dea7652d1d2f327d7896188c1fb415682b9c09f1 100644 --- a/pybis/src/python/pybis/pybis.py +++ b/pybis/src/python/pybis/pybis.py @@ -2627,8 +2627,31 @@ class Openbis: return Plugin(self, name=name, pluginType=pluginType, **kwargs) - def new_property_type(self, code, label, description, dataType, **kwargs): - return PropertyType(openbis_obj=self, code=code, label=label, description=description, dataType=dataType, **kwargs) + def new_property_type(self, + code, + label, + description, + dataType, + managedInternally = False, + internalNameSpace= False, + vocabulary = None, + materialType = None, + schema = None, + transformation = None, + ): + return PropertyType( + openbis_obj=self, + code=code, + label=label, + description=description, + dataType=dataType, + managedInternally = managedInternally, + internalNameSpace= internalNameSpace, + vocabulary = vocabulary, + materialType = materialType, + schema = schema, + transformation = transformation, + ) def get_property_type(self, code, only_data=False, start_with=None, count=None): identifiers = [] @@ -2639,7 +2662,7 @@ class Openbis: for c in code: identifiers.append({ - "permId": c, + "permId": c.upper(), "@type": "as.dto.property.id.PropertyTypePermId" }) @@ -3372,12 +3395,14 @@ class Openbis: def new_sample_type(self, code, generatedCodePrefix, + subcodeUnique=False autoGeneratedCode=False, listable=True, showContainer=False, showParents=True, showParentMetadata=False, - validationPlugin=None): + validationPlugin=None + ): """Creates a new sample type. """