original_docstring: Creates a base property to build from
docstring: Creates a base property to build from
docstring_tokens: Creates a base property to build from
code: def create_property(property_name, property_type, readonly=True, required=False, type=None, description=None, longDescription=None, items=None):
      """Creates a base property to build from"""
      description = description if description else "TBD"
      longDescription = longDescription if longDescription else "TBD"
      readonly = "OData.Permission/Read" if readonly else "OData.Permission/ReadWrite"
  
      property_string = "ComplexType" if complex else "Property"
  
      added_property = etree.Element("Property", attrib={"Name": property_name, "Type": property_type, "Nullable": "false"})
      etree.SubElement(added_property, "Annotation", attrib={"Term": "OData.Permissions", "EnumMember": readonly})
      etree.SubElement(added_property, "Annotation", attrib={"Term": "OData.Description", "String": description})
      etree.SubElement(added_property, "Annotation", attrib={"Term": "OData.LongDescription", "String": longDescription})
      if required:
          etree.SubElement(added_property, "Annotation", attrib={"Term": "Redfish.Required"})
  
      return added_property
code_tokens: def create_property ( property_name , property_type , readonly = True , required = False , type = None , description = None , longDescription = None , items = None ) : description = description if description else "TBD" longDescription = longDescription if longDescription else "TBD" readonly = "OData.Permission/Read" if readonly else "OData.Permission/ReadWrite" property_string = "ComplexType" if complex else "Property" added_property = etree . Element ( "Property" , attrib = { "Name" : property_name , "Type" : property_type , "Nullable" : "false" } ) etree . SubElement ( added_property , "Annotation" , attrib = { "Term" : "OData.Permissions" , "EnumMember" : readonly } ) etree . SubElement ( added_property , "Annotation" , attrib = { "Term" : "OData.Description" , "String" : description } ) etree . SubElement ( added_property , "Annotation" , attrib = { "Term" : "OData.LongDescription" , "String" : longDescription } ) if required : etree . SubElement ( added_property , "Annotation" , attrib = { "Term" : "Redfish.Required" } ) return added_property
short_docstring: Creates a base property to build from
short_docstring_tokens: Creates a base property to build from
comment: """Creates a base property to build from"""