def get_versions(self):
if not self.object_id:<EOL><INDENT>return []<EOL><DEDENT>url = self.build_url(<EOL>self._endpoints.get('<STR_LIT>').format(id=self.object_id))<EOL>response = self.con.get(url)<EOL>if not response:<EOL><INDENT>return []<EOL><DEDENT>data = response.json()<EOL>return [DriveItemVersion(parent=self, **{self._cloud_data_key: item})<EOL>for item in data.get('<STR_LIT:value>', [])]<EOL>
Returns a list of available versions for this item

        :return: list of versions
        :rtype: list[DriveItemVersion]